:root{
    --btn-color: #fdfdfd;
    --btn-bg: #4a7c22;
    --btn-bg-hover: #3b651a;
    --accent-green: #8BC34A;
    --primary-text-color: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--primary-text-color);
}

.khula-font {
    font-family: 'Khula', 'Poppins', sans-serif;
    font-style: normal;
    line-height: 1.15;
}

header{
    background-color: transparent;
    color: #fff;
}

header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.animated-collapse{
    transition: width 0.3s ease;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 25px;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.header-links:hover {
    background-color: #ffffff;
    color: #240606;
}

.header-white-bg{
    color: #000;
}

.header-white-bg:hover{
    background-color: #4a7c22 !important;
    color: #fff !important;
}

header.header-solid{
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

header.header-solid .header-links{
    color: #000000;
}

header.header-solid .header-links:hover{
    background-color: #4a7c22;
    color: #ffffff;
}

header.header-solid #collapse-btn{
    color: #000000;
}

@media not all and (min-width: 768px) {
    header.header-solid .header-links{
        color: #ffffff;
    }
}

.legal-page{
    flex: 1;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 100px 24px 64px;
    color: #1e293b;
    line-height: 1.7;
}

.legal-page h1{
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.legal-page h2{
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-placeholder{
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    color: #334155;
}

.primary-text-color{
    color: var(--primary-text-color);
}

.accent-text-color{
    color: #4a7c22;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 18px;
    width: max-content;
    border-radius: 25px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.btn:hover{
    background-color: var(--btn-bg-hover);
}

.hero-cta-primary:hover{
    background-color: #4a7c22;
    color: #ffffff;
}

.input{
    padding: 10px;
    border-radius: 10px;
    outline: none;
    min-width: 100px;
    border: 2px solid #cecece;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 2px solid #4a7c22;
}

/* ----- the menu here refers to food menu ------- */
.menu-item-container{
    border: 1px solid #e2e8f0;
    padding: 0;
    text-align: inherit;
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.menu-item-container::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-item-container:hover::after{
    opacity: 0.75;
}

.menu-btn{
    position: absolute;
    left: 50%;
    top: 50%;
    width: max-content;
    max-width: 90%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: #0f172a;
    background-color: rgba(255, 255, 255, 0.96);
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.menu-item-container:hover .menu-btn,
.menu-btn:hover{
    background-color: #4a7c22;
    color: #fff;
}

.menu-flags{
    font-size: 0.72rem;
    color: #64748b;
    margin-left: 4px;
    font-weight: 400;
}

.menu-legend{
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #64748b;
}

/* ----- Printed Speisekarte Gallery & Lightbox ------- */
.printed-menu-section{
    width: 100%;
    max-width: 1020px;
    margin-top: 3.5rem;
    text-align: center;
}

.printed-menu-heading{
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.printed-menu-subtitle{
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.printed-menu-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.printed-menu-card{
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.printed-menu-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.printed-menu-trigger{
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f8fafc;
    cursor: zoom-in;
    overflow: hidden;
}

.printed-menu-trigger img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.printed-menu-card:hover .printed-menu-trigger img{
    transform: scale(1.03);
}

.printed-menu-zoom-badge{
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
}

.printed-menu-caption{
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.lightbox-overlay{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active{
    display: flex;
}

.lightbox-dialog{
    position: relative;
    max-width: 1100px;
    max-height: 92vh;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.lightbox-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.lightbox-title{
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.lightbox-close{
    background: none;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    padding: 0 4px;
}

.lightbox-close:hover{
    color: #0f172a;
}

.lightbox-body{
    overflow: auto;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12px;
}

.lightbox-body img{
    max-width: 100%;
    max-height: calc(92vh - 80px);
    width: auto;
    height: auto;
    border-radius: 6px;
}

/* ---- Footer -------*/
.site-footer{
    background-color: #4a7c22;
    color: #ffffff;
}

.footer-link{
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-link:hover{
    color: #fef08a;
    text-decoration: underline;
}

@media not all and (min-width: 768px) {
    header .collapsible-header {
        position: absolute;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #4a7c22;
        color: white;
        overflow-y: auto;
    }

    .header-links{
        color: white;
    }

    .menu-item-container{
        height: 230px !important;
        width: 100% !important;
    }

    .menu-btn{
        font-size: 1rem !important;
        letter-spacing: 1.5px;
        padding: 8px 14px;
    }

    .printed-menu-grid{
        grid-template-columns: 1fr;
    }

    .about-section{
        gap: 2rem !important;
    }

    .site-footer{
        text-align: center;
        align-items: center;
    }

    .site-footer > div{
        width: 100% !important;
        align-items: center;
    }
}