/* ---------- Fonts (lokal) ---------- */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('fonts/inter.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --beige: #D9D2C0;
    --beige-dark: #b8b09d;
    --navy: #2D3E50;
    --navy-dark: #1f2d3a;
    --ink: #2b2622;
    --ink-rgb: 43, 38, 34;
    --cream: #f4efe4;
    --cream-rgb: 244, 239, 228;
    --success: #3a6b3a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
}

h1, h2 {
    text-indent: -0.04em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

h3.impressum-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75rem 1rem;
    background-color: var(--ink);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 1000;
    transform: translateY(-150%);
    transition: transform 0.2s ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--beige);
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.75;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 1;
}

/* ---------- Sektionen ---------- */
.section {
    padding: 9rem 0 7rem;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.section-light {
    background-color: var(--beige);
    color: var(--ink);
}

.section-dark {
    background-color: var(--navy);
    color: var(--cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-narrow {
    max-width: 1200px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    opacity: 0.65;
}

.lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 42em;
}

/* ---------- Karussell ---------- */
.carousel {
    overflow: hidden;
    margin-top: 3.5rem;
    width: 100%;
    padding: 1.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: carousel-scroll 45s linear infinite;
}

.carousel-track img {
    height: 320px;
    width: auto;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

/* Hover-Effekt nur bei echtem Pointer (Desktop-Maus, iPad mit Trackpad) — Touch-Tablets behalten den Lauf */
@media (hover: hover) and (pointer: fine) {
    .carousel-track:hover {
        animation-play-state: paused;
    }

    .carousel-track:hover img {
        opacity: 0.5;
        transform: scale(0.97);
    }

    .carousel-track img:hover {
        opacity: 1;
        transform: scale(1.07);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
        position: relative;
        z-index: 10;
    }
}

@keyframes carousel-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 0.625rem)); }
}

@media (max-width: 720px) {
    .carousel-track img {
        height: 220px;
    }

    .carousel-track {
        animation-duration: 22s;
    }
}

/* ---------- Speisekarte ---------- */
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.menu-single {
    display: block;
    max-width: 720px;
}

.menu-group h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--cream-rgb), 0.3);
    margin-bottom: 2rem;
}

.menu-single .menu-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(var(--cream-rgb), 0.18);
    margin-bottom: 0;
}

.menu-single .menu-item:last-child {
    border-bottom: none;
}

.menu-item {
    margin-bottom: 1.75rem;
}

.menu-footnote {
    max-width: 720px;
    margin-top: 2.5rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    opacity: 0.85;
}

.menu-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.menu-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
}

.menu-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    opacity: 0.9;
    white-space: nowrap;
}

.menu-item-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.5;
}

.menu-item-variant {
    margin-top: 0.4rem;
}

.menu-item-variant .menu-item-name {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* ---------- Formular ---------- */
.botcheck {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.form {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink);
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.3);
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--navy);
}

.btn {
    align-self: flex-start;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cream);
    background-color: var(--ink);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-feedback {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    min-height: 1.5rem;
}

.form-feedback--success {
    color: var(--success);
}

.form-feedback--error {
    color: var(--navy);
}

.contact-instagram {
    margin-top: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 300;
    line-height: 1.5;
}

.contact-instagram a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-instagram a:hover {
    opacity: 0.7;
}

/* ---------- Impressum / Footer ---------- */
.section-footer {
    min-height: auto;
    padding: 6rem 0 3rem;
}

.hours-block {
    max-width: 480px;
    margin: 0 0 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(var(--cream-rgb), 0.2);
}

.hours-block .eyebrow {
    display: block;
    margin-bottom: 2rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(var(--cream-rgb), 0.12);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span:last-child {
    opacity: 0.85;
    font-style: italic;
}

.impressum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(var(--cream-rgb), 0.2);
}

.impressum-grid p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 0;
}

.footer-credit {
    margin-top: 0.6rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.footer-link {
    color: inherit;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--cream-rgb), 0.15);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Hamburger ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger--open span:nth-child(2) {
    opacity: 0;
}

.hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Dropdown ---------- */
.mobile-menu {
    display: none;
    background: var(--beige);
    border-top: 1px solid rgba(var(--ink-rgb), 0.1);
}

.mobile-menu ul {
    min-height: 0;
    list-style: none;
    padding: 0.5rem 0 1rem;
}

.mobile-menu ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.mobile-menu ul li a:hover {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .section {
        padding: 7rem 0 5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-inner {
        padding: 1rem 1.5rem;
    }

    .logo img {
        height: 24px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden;
        opacity: 0;
        transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out;
    }

    .mobile-menu--open {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }
    .carousel-track img {
        width: calc(50% - 0.375rem);
        height: 200px;
        object-fit: cover;
    }
    /* Duplikate ausblenden (Positionen 6–10) */
    .carousel-track img:nth-child(n+6) {
        display: none;
    }
}
