/* --- Self-Hosted Fonts --- */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/cormorant-garamond-v20-latin-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lora-v36-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/lora-v36-latin-600.woff2') format('woff2');
}



/* --- Reset Browser Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* --- Color Theme --- */
:root {
    --height-header: 95px;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lora', serif;

    --width-content: 1000px;
    --width-text:     800px;

    --color-light-teal:       rgba(  0, 128, 115, 1.0);
    --color-middle-teal:      rgba(  0,  95,  86, 1.0);
    --color-dark-teal:        rgba(  8,  56,  57, 1.0);
    --color-dark-teal-trans:  rgba(  8,  56,  57, 0.95);
    --color-light-brown:      rgba(159,  79,  24, 1.0);
    --color-middle-brown:     rgba(108,  53,  16, 1.0);
    --color-dark-brown:       rgba( 64,  33,  30, 1.0);
    --color-text-on-dark:     rgba(215, 205, 190, 1.0);
    --color-link-on-dark:     rgba(255, 255, 255, 1.0);
    --color-highlight-bronze: rgba(197, 165, 117, 1.0);
    --color-shadow-bronze:    rgba(197, 165, 117, 0.3);
    --color-highlight-silver: rgba(135, 135, 135, 1.0);
    --color-shadow-silver:    rgba(135, 135, 135, 0.3);
}



/* --- Special Font Effects --- */
.gold-text {
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(
        145deg,
        #FFFAD4,
        #FDF5B7 25%,
        #AA771C 50%,
        #B9975B 75%,
        #FFFAD4 100%
    );
    text-shadow:
        1px 1px 1px rgba(0,0,0,0.3),
        -1px -1px 1px rgba(255,255,255,0.2);
}

.silver-text {
    color: transparent;
    background-clip: text;
    background-image: linear-gradient(
        145deg,
        #E8E8E8,
        #C0C0C0 50%,
        #B0B0B0
    );
    text-shadow: 
        1px 1px 1px rgba(0,0,0,0.2), 
        -1px -1px 1px rgba(255,255,255,0.2);
}

.vegetarian span[data-char]::before {
    content: attr(data-char);
}



/* --- Page Frame --- */
html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    color: var(--color-text-on-dark);
    background-color: var(--color-middle-teal);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}



/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    max-width: var(--width-text); 
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto;
}

h3, h4, h5, h6 {
    color: var(--color-highlight-bronze);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

h3, h4, h5 {
    border-bottom: 1px solid var(--color-shadow-bronze);
}

h1 {
    font-size: 3rem;
    line-height: 1;
    counter-reset: h2 h3 h4 h5 h6;
    counter-increment: h1;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    counter-reset: h3 h4 h5 h6;
    counter-increment: h2;
    width: fit-content;
}

h3 {
    font-size: 1.8rem;
    counter-reset: h4 h5 h6;
    counter-increment: h3;
}

h4 {
    font-size: 1.4rem;
    counter-reset: h5 h6;
    counter-increment: h4;
}

h4::before {
    content: counter(h4,upper-roman) ". ";
}

h5 {
    font-size: 1.2rem;
    counter-reset: h6;
    counter-increment: h5;
}

h5::before {
    content: counter(h5,decimal) ". ";
}

h6 {
    font-size: 1.2rem;
    font-style: italic;
    counter-increment: h6;
}

h6::before {
    content: counter(h6,lower-alpha) ") ";
}



/* --- Anchors and Links --- */
a {
    color: var(--color-highlight-bronze);
    text-decoration: none;
    transition: color 0.3s ease;

    &:hover,
    &:focus {
        color:  var(--color-link-on-dark);
    }
}



/* --- Fixed Header --- */
header {
    background-color: var(--color-light-teal);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--height-header);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display:flex;
    justify-content: space-evenly;
    align-items: center;
}

header hgroup p {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-on-dark);
}


header label,
header input {
    display: none;
}

header label {
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1100;

    span {
        display: block;
        position: relative;
        width: 24px;
        height: 3px;
        background-color: var(--color-text-on-dark);
        border-radius: 2px;
        transition: background-color 0.4s ease;

        &::before,
        &::after {
            content: '';
            display: block;
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: var(--color-text-on-dark);
            border-radius: 2px;
            transition: transform 0.4s ease, top 0.4s ease;
        }

        &::before {
            top: -8px;
        }

        &::after {
            top: 8px;
        }
    }
}

header input:checked ~ label span {
    background-color: transparent;

    &::before {
        transform: rotate(45deg);
        top: 0;
    }

    &::after {
        transform: rotate(-45deg);
        top: 0;
    }
}



/* --- Hideable Navigation Menu --- */
header nav {
    position: static;
    transform: translateX(0);
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    z-index: 1050;

    ul {
        list-style: none;
        display: flex;
        gap: 0.75rem;
    }
}


/* Menu Buttons in Emerald Style */
@keyframes shimmer {
    0%   { left: -60%; opacity: 0; }
    15%  { opacity: 0.4; }
    50%  { opacity: 0.4; }
    85%  { opacity: 0.25; }
    100% { left: 125%; opacity: 0; }
}

header nav a {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0.5em 1.2em;

    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-text-on-dark);
    text-shadow:
        0  1px 1px rgba(255, 255, 255, 0.25),
        0 -1px 1px rgba(0, 0, 0, 0.3);

    border-radius: 0.4em;

    background: linear-gradient(
        145deg,
        rgba(0, 145, 135,   1)   0%,
        rgba(0, 125, 115,   1)  20%,
        rgba(0, 105,  95, 0.7)  70%,
        rgba(0, 115, 100,   1) 100%
    );
    box-shadow:
        inset 0  1px 3px rgba(255, 255, 255, 0.25),
        inset 0 -1px 1px rgba(0, 0, 0, 0.4),
              0  1px 2px rgba(0, 0, 0, 0.4);

    transition: background 0.7s ease-in-out, box-shadow 0.1s ease;

    &::after {
        content: "";
        position: absolute;
        top: 0; left: -60%;
        width: 35%;
        height: 100%;
        background: linear-gradient(
            120deg,
            rgba(255, 255, 255,    0)   0%,
            rgba(180, 255, 245, 0.08)  35%,
            rgba(180, 255, 245, 0.18)  50%,
            rgba(180, 255, 245, 0.08)  65%,
            rgba(255, 255, 255,    0) 100%
        );
        transform: skewX(-20deg);
        pointer-events: none;
    }

    &:hover,
    &:focus {
        background: linear-gradient(
            145deg,
            rgba(0, 165, 150, 1)   0%,
            rgba(0, 140, 125, 1)  30%,
            rgba(0, 120, 105, 1)  70%,
            rgba(0, 105,  95, 1) 100%
        );
    }

    &:hover::after,
    &:focus::after {
        animation: shimmer 0.75s ease-in-out forwards;
    }

    &:active {
        background: linear-gradient(
            145deg,
            rgba(0, 105, 95, 1) 0%,
            rgba(0, 120, 105, 1) 30%,
            rgba(0, 140, 125, 1) 70%,
            rgba(0, 165, 150, 1) 100%
        );
        box-shadow:
            inset 0  1px 3px rgba(0, 0, 0, 0.5),
            inset 0 -1px 2px rgba(255, 255, 255, 0.15);
        transform: translateY(1px);
    }
}


@media (prefers-reduced-motion: reduce) {
    header nav a:hover::after, header nav a:focus::after {
        animation: none !important;
    }
}


/* Main Content on Teal Canvas. */
main {
    background-color: var(--color-dark-teal);
    width: 100%;
    max-width: var(--width-content);
    min-height: calc(100vh - var(--height-header) - 3rem);
    margin: var(--height-header) auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 0px 0px 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

main section {
    padding: 3rem 2rem;

    footer {
        max-width: var(--width-text);
        font-style: italic;
        text-align: right;
        font-weight: 600;
        color: var(--color-highlight-bronze);
        margin: 3em auto 0 auto;
        padding-left: 25%;
    }

    div:has(> h2) {
        position: sticky;
        top: var(--height-header);
        margin: -10px;
        padding: 5px;
        background: linear-gradient(
            180deg,
            var(--color-dark-teal) 70%,
            transparent 85%
        );
        z-index: 950;
    }

    p {
        line-height: 1.7;
        max-width: var(--width-text);
        text-align: justify;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }
}


summary {
    text-align: center;
}



/* Styled block with bronze border. */
blockquote,
address,
section.card-popups a img {
    margin: 2rem auto 3rem auto;
    padding: 1.5rem 2rem;
    border-left: 5px solid var(--color-highlight-bronze);
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
    max-width: var(--width-text);
    opacity: 0.9;
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

blockquote {
    font-style: italic;
}

@keyframes wiggle {
    0%   { transform: rotate(10deg) translate(0, 0); }
    5%   { transform: rotate(12deg) translate(0.05lh, -0.05lh); }
    10%  { transform: rotate( 8deg) translate(-0.05lh, -0.1lh); }
    15%  { transform: rotate(12deg) translate(0.02lh, -0.02lh); }
    20%  { transform: rotate(10deg) translate(0, 0); }
}

address {
    font-style: normal;
    position: relative;
    /* needed for the background envelope */
    z-index: 1;
    overflow: clip;

    &::before {
        content: "";
        position: absolute;
        top: -1rem;
        right: -1rem;
        width: 5lh;
        height: 100%;
        background-image: url("data:image/svg+xml;utf8,\
            <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' fill='none' stroke='rgba(197, 165, 117, 0.3)' stroke-width='1.5'> \
                <rect x='1' y='1' width='98' height='58' rx='4' ry='4'/> \
                <path d='M2,2 L50,40 L98,2'/> \
            </svg>");
        background-repeat: no-repeat;
        background-size: contain;
        transform: rotate(10deg);
        pointer-events: none;
        z-index: 0;
        animation: wiggle 10s ease-in-out infinite;
    }
}



/* List of picture cards linking to other pages. */
ul.card-links {
    list-style: none;

    display: flex;
    flex-wrap: wrap;

    gap: 1rem;
    padding: 0;
    margin: 1rem 0;

    li {
        break-inside: avoid;
        padding: 1rem;
        flex: 1 1 30%; /* grow, shrink, base width */
        min-width: 300px;

        a {
            display: block;

            border-radius: 8px;
            border: 3px solid var(--color-highlight-bronze);
            overflow: hidden; 
            box-shadow: 0 8px 16px rgba(0,0,0,0.4);
            transition: transform 0.4s ease, box-shadow 0.4s ease;

            img {
                width: 100%;
                height: 100%;

                display: block;
                transition: transform 0.4s ease, box-shadow 0.4s ease;
            }

            div {
                position: relative;
                width: 100%;

                text-align: center;
                font-size: 1.5rem;
                background-color: var(--color-dark-brown);
                background-image: linear-gradient(
                    160deg, 
                    rgba(255, 255, 255, 0.1),
                    rgba(0, 0, 0, 0.3)
                );
                border-top: 1px solid var(--color-highlight-bronze);
            }

            &:hover, &:active, &:focus-within {
                transform: translateY(-5px) scale(1.01);
                box-shadow: 0 14px 16px rgba(0,0,0,0.25);
                color: var(--color-text-on-dark);

                img {
                    transform: scale(1.2);
                }
            }

            &:target {
                scroll-margin-top: calc(2 * var(--height-header));
            }
        }
    }
}


section.card-popups {

    a {
        cursor: default;
        background-color: var(--color-dark-teal-trans);

        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        z-index: 2000;
        visibility: hidden;
        opacity: 0.0;

        transition:
            visibility 0s 0.5s,
            opacity 0.5s ease;

        &:target, &:active, &:focus-within {
            visibility: visible;
            opacity: 1.0;

            transition:
                visibility 0s 0s,
                opacity 0.3s ease;
        }

        img {
            cursor: pointer;
            max-width: 90vw;
            max-height: 90vh;
        }
    }
}



/* Generic Footer. */
footer {
    padding: 1.6rem 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        width: 80%;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.4);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}



/* Lists used in the legal imprint. */
ol {
    max-width: var(--width-text);
    margin: 0 auto 2em auto;
    padding-left: 4em;
    padding-right: 3em;
    text-align: justify;

    li {
        padding: 0.2em;

        &::marker {
            content: "(" counter(list-item) ") ";
        }
    }
}




/* For Smaller Screens. */
@media (max-width: 1000px) {

    header {
        justify-content:space-between;
        padding-left: 25px;
        padding-right: 25px;

        label {
            display: flex;
        }

        hgroup p {
            font-size: 0.85rem;
            font-style: italic;
            color: var(--color-text-on-dark);
        }

        nav {
            position: fixed;
            top: 0;
            right: 0;
            width: min(320px, 90vw);
            height: 100vh;

            background-color: var(--color-dark-teal);
            box-shadow: -5px 0 20px rgba(0,0,0,0.3);
            transform: translateX(100%);
            padding-top: var(--height-header);
            text-align: center;

            transition: transform 0.3s ease;

            ul {
                flex-direction: column;
                padding: 0 1.5rem;
                gap: 1.5rem;
            }

            a {
                font-size: 1.5rem;
            }
        }

        input:checked ~ nav {
            transform: translateX(0);
        }
    }

    ol {
        padding: 0;
        list-style-position: inside;
    }
}





@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
    }
}













































/* --- 5. Content, Cards & Components --- */
/*.welcome-section { padding: 4rem 2rem; text-align: center; }
.welcome-section h2 { font-size: 4rem; margin-bottom: 2.5rem; }*/


/*.card-grid, .material-selection { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }*/











/*


.material-card { position: relative; display: flex; justify-content: center; align-items: flex-end; width: 300px; height: 200px; padding: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.2); background-color: var(--color-dark-teal); border: 2px solid var(--color-highlight-bronze); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; }

.material-card:hover, .material-card:focus-within { transform: translateY(-5px) scale(1.02); box-shadow: 0 12px 22px rgba(0,0,0,0.25); }

.material-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.material-card:hover img, .material-card:focus-within img { transform: scale(1.1); }
.material-card h3 { font-size: 2.2rem; color: white; z-index: 10; text-shadow: 0px -1px 1px rgba(255,255,255,0.1), 0px 2px 5px rgba(0,0,0,0.8); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), font-size 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.material-card:hover h3, .material-card:focus-within h3 { font-size: 2.3rem; transform: translateY(-10px); }





.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 56, 57, 0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; visibility: hidden; opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s ease;
}
.modal-overlay:target { visibility: visible; opacity: 1; transition: visibility 0s 0s, opacity 0.3s ease; }
.modal-close { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: default; }
.modal-content { padding: 1rem; border-left: 5px solid var(--color-highlight-bronze); background-color: rgba(0,0,0,0.2); border-radius: 5px; max-width: 90vw; max-height: 90vh; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-content img { display: block; max-width: 100%; max-height: calc(90vh - 2rem); object-fit: contain; }


*/












/*.interactive-card { cursor: pointer; }
.interactive-card summary { list-style: none; width: 100%; height: 100%; position: relative; outline: none; display: block; }
.interactive-card summary::-webkit-details-marker { display: none; }
.interactive-card .revealed-text { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 1.2rem; text-align: center; padding: 1rem; background-color: rgba(8, 56, 57, 0.8); border-radius: 8px; width: 90%; z-index: 20; }
.interactive-card[open] h3 { opacity: 0; transition: opacity 0.1s ease; }
.interactive-card[open] .revealed-text { display: block; }
.interactive-card[open]:hover, .interactive-card[open]:focus-within { transform: none; box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.interactive-card[open]:hover::after { background-color: rgba(0, 0, 0, 0.4); }*/









/* --- 7. Responsive Styles --- */
/* @media (max-width: 1000px) { */
/*     .page-wrapper { padding-bottom: 0; } */
/*     .page-content { margin: 0; border-radius: 0; } */
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
/*     body { font-size: 16px; } */
    
/*     header h1 { font-size: 2.5rem; } */
/*     header .tagline { display: none; } */
/*    .card-grid, .material-selection { flex-direction: column; align-items: center; }*/
/*     .content-section h2.page-title, .welcome-section h2 { font-size: 2.5rem; } */
/*     .content-section h3, .collection-group h3 { font-size: 1.5rem; } */
/*     .page-content { box-shadow: none; } */
/* } */
