@layer reset, tokens, base, layout, components, utilities;

/* ============ RESET ============ */
@layer reset {

    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        -webkit-text-size-adjust: 100%;
        scroll-behavior: smooth;
    }

    body {
        min-height: 100%;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    img,
    picture,
    svg {
        max-width: 100%;
        display: block;
    }

    button,
    input,
    textarea,
    select {
        font: inherit;
        color: inherit;
    }

    button {
        background: none;
        border: none;
        cursor: pointer;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    ul {
        list-style: none;
    }

    :focus-visible {
        outline: 2px solid var(--brass-deep);
        outline-offset: 3px;
        border-radius: 1px;
    }
}

/* ============ TOKENS ============ */
@layer tokens {
    :root {
        /* warm-minimal palette — hex fallback then OKLCH */
        --bg: #f7f1e6;
        --bg: oklch(0.957 0.014 84);
        --bg-2: #f0e8d8;
        --bg-2: oklch(0.93 0.018 84);
        --bg-3: #e9dfcb;
        --bg-3: oklch(0.90 0.022 84);
        --ink: #211a12;
        --ink: oklch(0.225 0.014 66);
        --ink-soft: #4c4234;
        --ink-soft: oklch(0.40 0.020 70);
        --muted: #7c7160;
        --muted: oklch(0.56 0.020 78);
        --brass: #b18a4e;
        --brass: oklch(0.66 0.080 78);
        --brass-deep: #8a6a37;
        --brass-deep: oklch(0.535 0.075 74);
        --dark: #1b150e;
        --dark: oklch(0.195 0.013 62);
        --dark-2: #251d13;
        --dark-2: oklch(0.245 0.016 64);
        --cream-on-dark: #efe6d4;
        --cream-on-dark: oklch(0.92 0.020 84);
        --line: color-mix(in oklab, var(--ink) 14%, transparent);
        --line-strong: color-mix(in oklab, var(--ink) 24%, transparent);
        --line-dark: color-mix(in oklab, var(--cream-on-dark) 16%, transparent);

        --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
        --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
        --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

        --maxw: 1240px;
        --pad: clamp(1.25rem, 5vw, 5rem);
        --section-y: clamp(4.5rem, 10vw, 9rem);
        --ease: cubic-bezier(.215, .61, .355, 1);
        --ease-expo: cubic-bezier(.16, 1, .3, 1);
    }
}

/* ============ BASE ============ */
@layer base {
    body {
        font-family: var(--sans);
        background: var(--bg);
        color: var(--ink-soft);
        font-size: 1.0625rem;
        font-weight: 400;
        overflow-x: hidden;
    }

    h1,
    h2,
    h3,
    h4 {
        font-family: var(--serif);
        color: var(--ink);
        font-weight: 500;
        line-height: 1.06;
        letter-spacing: -0.01em;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    p {
        max-width: 64ch;
    }

    strong {
        font-weight: 600;
        color: var(--ink);
    }

    em {
        font-style: italic;
    }

    /* subtle film grain overlay */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 200;
        opacity: 0.028;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }
}

/* ============ LAYOUT ============ */
@layer layout {
    .wrap {
        width: 100%;
        max-width: var(--maxw);
        margin-inline: auto;
        padding-inline: var(--pad);
    }

    .section {
        padding-block: var(--section-y);
    }

    .page {
        display: none;
    }

    .page.is-active {
        display: block;
    }

    .grid {
        display: grid;
        gap: clamp(2rem, 5vw, 4.5rem);
    }

    @media (min-width: 880px) {
        .grid-2 {
            grid-template-columns: 1fr 1fr;
            align-items: center;
        }
    }
}

/* ============ COMPONENTS ============ */
@layer components {

    /* --- overline / labels --- */
    .overline {
        font-family: var(--mono);
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: var(--brass-deep);
        display: inline-flex;
        align-items: center;
        gap: 0.7em;
    }

    .overline::before {
        content: "";
        width: 2rem;
        height: 1px;
        background: var(--brass);
        display: inline-block;
    }

    .overline.center {
        justify-content: center;
    }

    .on-dark .overline {
        color: var(--brass);
    }

    /* --- type scale --- */
    .display {
        font-size: clamp(2.9rem, 7.5vw, 6.4rem);
        line-height: 0.98;
        font-weight: 500;
    }

    .display .accent {
        font-style: italic;
        color: var(--brass);
        font-weight: 500;
    }

    .h2 {
        font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    }

    .h3 {
        font-size: clamp(1.5rem, 2.6vw, 2rem);
    }

    .lead {
        font-family: var(--serif);
        font-size: clamp(1.3rem, 2.3vw, 1.7rem);
        line-height: 1.45;
        color: var(--ink);
        font-weight: 400;
        max-width: 40ch;
    }

    .lead em {
        color: var(--brass-deep);
    }

    .body-lg {
        font-size: 1.075rem;
        line-height: 1.75;
    }

    .muted {
        color: var(--muted);
    }

    .idx {
        font-family: var(--mono);
        font-size: 0.78rem;
        color: var(--brass-deep);
        letter-spacing: 0.1em;
    }

    /* --- buttons --- */
    .btns {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.6em;
        font-family: var(--sans);
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        padding: 1.1em 2.1em;
        min-height: 48px;
        border-radius: 2px;
        transition: all 0.3s var(--ease);
        cursor: pointer;
        white-space: nowrap;
    }

    .btn svg {
        width: 1.05em;
        height: 1.05em;
    }

    .btn-primary {
        background: var(--ink);
        color: var(--cream-on-dark);
    }

    .btn-primary:hover {
        background: var(--brass-deep);
        color: #fff;
        transform: translateY(-2px);
    }

    .btn-ghost {
        box-shadow: inset 0 0 0 1px var(--line-strong);
        color: var(--ink);
    }

    .btn-ghost:hover {
        background: var(--ink);
        color: var(--cream-on-dark);
        box-shadow: inset 0 0 0 1px var(--ink);
        transform: translateY(-2px);
    }

    .on-dark .btn-primary {
        background: var(--brass);
        color: var(--dark);
    }

    .on-dark .btn-primary:hover {
        background: var(--cream-on-dark);
        color: var(--dark);
    }

    .on-dark .btn-ghost {
        box-shadow: inset 0 0 0 1px var(--line-dark);
        color: var(--cream-on-dark);
    }

    .on-dark .btn-ghost:hover {
        background: var(--cream-on-dark);
        color: var(--dark);
        box-shadow: inset 0 0 0 1px var(--cream-on-dark);
    }

    /* hero secondary button: beige & visible over the dark hero image */
    .hero .btns .btn-ghost {
        background: color-mix(in oklab, var(--cream-on-dark) 14%, transparent);
        box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cream-on-dark) 60%, transparent);
        color: var(--cream-on-dark);
    }

    .hero .btns .btn-ghost:hover {
        background: var(--cream-on-dark);
        color: var(--dark);
        box-shadow: inset 0 0 0 1px var(--cream-on-dark);
    }

    .textlink {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        font-family: var(--sans);
        font-weight: 600;
        font-size: 0.82rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink);
        padding-bottom: 3px;
        border-bottom: 1px solid var(--brass);
        transition: gap 0.3s var(--ease), color 0.3s;
    }

    .textlink:hover {
        gap: 0.9em;
        color: var(--brass-deep);
    }

    /* --- header --- */
    .site-header {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 100;
        transition: background 0.4s var(--ease), border-color 0.4s, color 0.4s;
        background: color-mix(in oklab, var(--bg) 82%, transparent);
        backdrop-filter: saturate(160%) blur(14px);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        border-bottom: 1px solid transparent;
        color: var(--ink);
    }

    .site-header.scrolled {
        border-bottom-color: var(--line);
    }

    .site-header.transparent {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: transparent;
        color: var(--cream-on-dark);
    }

    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        height: clamp(74px, 9vw, 92px);
    }

    .brand {
        display: flex;
        flex-direction: column;
        line-height: 1;
        cursor: pointer;
    }

    .brand .b-name {
        font-family: var(--serif);
        font-style: italic;
        font-size: 1.45rem;
        font-weight: 500;
    }

    .brand .b-sub {
        font-family: var(--mono);
        font-size: 0.58rem;
        letter-spacing: 0.42em;
        text-transform: uppercase;
        margin-top: 0.45em;
        opacity: 0.85;
        padding-left: 0.1em;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: clamp(1.2rem, 2.4vw, 2.4rem);
    }

    .nav-link {
        font-family: var(--sans);
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        position: relative;
        padding: 0.5em 0;
        transition: color 0.3s;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        width: 0;
        background: var(--brass);
        transition: width 0.35s var(--ease);
    }

    .nav-link:hover::after,
    .nav-link[aria-current="page"]::after {
        width: 100%;
    }

    .nav-link[aria-current="page"] {
        color: var(--brass-deep);
    }

    .transparent .nav-link[aria-current="page"] {
        color: var(--brass);
    }

    .nav-cta {
        display: inline-flex;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.4rem;
    }

    .burger {
        display: none;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    .burger span {
        width: 22px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.3s var(--ease), opacity 0.3s;
    }

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

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

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

    @media (max-width: 860px) {

        .nav-links,
        .nav-cta {
            display: none;
        }

        .burger {
            display: flex;
        }

        /* drop the blur on mobile — it causes repaint jank while scrolling */
        .site-header {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .site-header:not(.transparent) {
            background: var(--bg);
        }
        .media-frame::before { display: none; }
        
        /* the fixed grain overlay repaints on every scroll frame on mobile — drop it */
        body::after {
            display: none;
        }

        .mobile-menu {
            position: fixed;
            inset: 0;
            z-index: 99;
            background: var(--dark);
            color: var(--cream-on-dark);
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.4rem;
            padding: var(--pad);
            transform: translateY(-100%);
            transition: transform 0.5s var(--ease-expo);
            visibility: hidden;
        }

        .mobile-menu.open {
            transform: translateY(0);
            visibility: visible;
        }

        .mobile-menu a {
            font-family: var(--serif);
            font-size: 2rem;
            padding: 0.45rem 0;
            border-bottom: 1px solid var(--line-dark);
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }

        .mobile-menu a .mi {
            font-family: var(--mono);
            font-size: 0.7rem;
            color: var(--brass);
        }

        .mobile-menu .mm-foot {
            margin-top: 2rem;
            font-family: var(--mono);
            font-size: 0.8rem;
            letter-spacing: 0.1em;
            color: var(--brass);
        }
    }

    @media (min-width: 861px) {
        .mobile-menu {
            display: none;
        }
    }

    /* --- hero --- */
    .hero {
        position: relative;
        min-height: 100svh;
        display: flex;
        align-items: flex-end;
        color: var(--cream-on-dark);
        overflow: hidden;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 42%;
    }

    .hero-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(180deg, rgba(20, 15, 9, 0.62) 0%, rgba(20, 15, 9, 0.18) 26%, rgba(20, 15, 9, 0.48) 54%, rgba(20, 15, 9, 0.88) 80%, rgba(20, 15, 9, 0.96) 100%);
    }

    .hero-inner {
        position: relative;
        z-index: 1;
        width: 100%;
        padding-bottom: clamp(3rem, 7vw, 6rem);
        padding-top: 8rem;
    }

    .hero h1 {
        color: #fff;
        margin: 1.4rem 0 1.6rem;
        max-width: 18ch;
        text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    }

    .hero .hero-sub {
        max-width: 46ch;
        color: #f3ece0;
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2.2rem;
        text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .hero .overline {
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    }

    .hero .overline {
        color: var(--brass);
    }

    .hero .overline::before {
        background: var(--brass);
    }

    .hero-meta {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-top: clamp(2.4rem, 5vw, 3.4rem);
        padding-top: 1.6rem;
        border-top: 1px solid var(--line-dark);
        max-width: 560px;
    }

    .stat {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding-inline: clamp(0.7rem, 2.6vw, 1.6rem);
        min-width: 0;
    }

    .stat:first-child {
        padding-left: 0;
    }

    .stat+.stat {
        border-left: 1px solid var(--line-dark);
    }

    .stat .s-num {
        font-family: var(--serif);
        font-size: clamp(1.5rem, 5.2vw, 2rem);
        line-height: 1;
        color: #fff;
        white-space: nowrap;
    }

    .stat .s-num .star {
        color: var(--brass);
    }

    .stat .s-num .sub {
        font-size: 0.6em;
        color: var(--brass);
    }

    .stat .s-lab {
        font-family: var(--mono);
        font-size: clamp(0.53rem, 1.7vw, 0.64rem);
        letter-spacing: 0.13em;
        text-transform: uppercase;
        color: color-mix(in oklab, var(--cream-on-dark) 75%, transparent);
        line-height: 1.35;
    }

    .scroll-cue {
        position: absolute;
        right: var(--pad);
        bottom: clamp(3rem, 7vw, 6rem);
        z-index: 1;
        font-family: var(--mono);
        font-size: 0.62rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--cream-on-dark);
        writing-mode: vertical-rl;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        opacity: 0.8;
    }

    .scroll-cue::after {
        content: "";
        width: 1px;
        height: 46px;
        background: linear-gradient(var(--brass), transparent);
    }

    @media (max-width: 860px) {
        .scroll-cue {
            display: none;
        }
    }

    /* --- page hero (interior pages) --- */
    .page-hero {
        padding-top: clamp(9rem, 14vw, 12rem);
        padding-bottom: clamp(2.5rem, 5vw, 4rem);
    }

    .page-hero .display {
        max-width: 16ch;
        margin-top: 1.3rem;
    }

    .page-hero .lead {
        margin-top: 1.8rem;
    }

    /* --- media --- */
    .media {
        position: relative;
        overflow: hidden;
        border-radius: 3px;
        background: var(--bg-2);
    }

    .media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1.2s var(--ease);
    }

    .media.tall {
        aspect-ratio: 4/5;
    }

    .media.wide {
        aspect-ratio: 3/2;
    }

    .media:hover img {
        transform: scale(1.04);
    }

    .media-frame {
        position: relative;
    }

    .media-frame::before {
        content: "";
        position: absolute;
        inset: 12px;
        border: 1px solid var(--line-dark);
        z-index: 2;
        pointer-events: none;
        mix-blend-mode: overlay;
    }

    /* --- highlight cards --- */
    .cards {
        display: grid;
        gap: 1px;
        background: var(--line);
        border-block: 1px solid var(--line);
    }

    @media (min-width: 760px) {
        .cards-3 {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .card {
        background: var(--bg);
        padding: clamp(2rem, 3.5vw, 3rem) clamp(1.6rem, 2.5vw, 2.4rem);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: background 0.4s var(--ease);
    }

    .card:hover {
        background: var(--bg-2);
    }

    .card .ic {
        width: 38px;
        height: 38px;
        color: var(--brass-deep);
        stroke-width: 1.25;
    }

    .card h3 {
        font-size: 1.55rem;
    }

    .card p {
        font-size: 0.98rem;
        color: var(--ink-soft);
    }

    /* --- dark band --- */
    .band-dark {
        background: var(--dark);
        color: var(--cream-on-dark);
        position: relative;
    }

    .band-dark h2,
    .band-dark h3 {
        color: #fff;
    }

    .band-dark .muted {
        color: color-mix(in oklab, var(--cream-on-dark) 66%, transparent);
    }

    /* --- reviews --- */
    .reviews {
        display: grid;
        gap: clamp(1.4rem, 3vw, 2.4rem);
        margin-top: 3.2rem;
    }

    @media (min-width: 760px) {
        .reviews {
            grid-template-columns: 1fr 1fr;
        }
    }

    .review {
        padding: clamp(1.8rem, 3vw, 2.6rem);
        border: 1px solid var(--line-dark);
        border-radius: 3px;
        background: color-mix(in oklab, var(--dark-2) 70%, transparent);
    }

    .review .stars {
        color: var(--brass);
        letter-spacing: 0.2em;
        font-size: 0.95rem;
        margin-bottom: 1.1rem;
    }

    .review blockquote {
        font-family: var(--serif);
        font-size: 1.4rem;
        line-height: 1.45;
        color: #fff;
        font-style: italic;
    }

    .review cite {
        display: block;
        margin-top: 1.3rem;
        font-family: var(--mono);
        font-size: 0.68rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--brass);
        font-style: normal;
    }

    /* --- callout (Tageskarte) --- */
    .callout {
        background: var(--dark);
        color: var(--cream-on-dark);
        border-radius: 4px;
        padding: clamp(2.2rem, 4.5vw, 3.6rem);
        position: relative;
        overflow: hidden;
    }

    .callout::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120% 100% at 100% 0%, color-mix(in oklab, var(--brass) 22%, transparent), transparent 55%);
    }

    .callout>* {
        position: relative;
    }

    .callout h3 {
        color: #fff;
        font-size: clamp(1.7rem, 3vw, 2.3rem);
        margin: 0.8rem 0 1rem;
    }

    .callout p {
        color: color-mix(in oklab, var(--cream-on-dark) 80%, transparent);
        max-width: 52ch;
    }

    .callout .btns {
        margin-top: 1.9rem;
    }

    .callout .on-dark {
        display: contents;
    }

    /* --- offer / expect list --- */
    .offers {
        display: grid;
        gap: 1px;
        background: var(--line);
        border: 1px solid var(--line);
        border-radius: 4px;
        overflow: hidden;
    }

    @media (min-width: 680px) {
        .offers {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (min-width: 1020px) {
        .offers {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .offer {
        background: var(--bg);
        padding: clamp(1.7rem, 2.6vw, 2.3rem);
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        transition: background 0.4s;
    }

    .offer:hover {
        background: var(--bg-2);
    }

    .offer .ic {
        width: 30px;
        height: 30px;
        color: var(--brass-deep);
        stroke-width: 1.3;
        margin-bottom: 0.3rem;
    }

    .offer h4 {
        font-family: var(--serif);
        font-size: 1.4rem;
        color: var(--ink);
        font-weight: 500;
    }

    .offer p {
        font-size: 0.95rem;
        color: var(--ink-soft);
    }

    /* --- example dishes --- */
    .dishes {
        display: grid;
        gap: 0;
        margin-top: 1rem;
    }

    .dish {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 1.2rem;
        align-items: baseline;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--line);
    }

    .dish:first-child {
        border-top: 1px solid var(--line);
    }

    .dish .d-idx {
        font-family: var(--mono);
        font-size: 0.72rem;
        color: var(--brass-deep);
    }

    .dish .d-main h4 {
        font-family: var(--serif);
        font-size: 1.5rem;
        color: var(--ink);
        font-weight: 500;
    }

    .dish .d-main p {
        font-size: 0.92rem;
        color: var(--muted);
        margin-top: 0.3rem;
    }

    .dish .d-tag {
        font-family: var(--mono);
        font-size: 0.6rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--brass-deep);
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        padding: 0.4em 0.9em;
        white-space: nowrap;
    }

    @media (max-width: 620px) {
        .dish {
            grid-template-columns: auto 1fr;
        }

        .dish .d-tag {
            grid-column: 2;
            justify-self: start;
            margin-top: 0.6rem;
        }
    }

    /* --- values row --- */
    .values {
        display: grid;
        gap: clamp(1.6rem, 3vw, 2.4rem);
        margin-top: 1rem;
    }

    @media (min-width: 720px) {
        .values {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .value {
        padding-top: 1.6rem;
        border-top: 1px solid var(--line-strong);
    }

    .value .v-num {
        font-family: var(--mono);
        font-size: 0.7rem;
        color: var(--brass-deep);
        letter-spacing: 0.15em;
    }

    .value h4 {
        font-family: var(--serif);
        font-size: 1.7rem;
        color: var(--ink);
        margin: 0.7rem 0;
        font-weight: 500;
    }

    .value p {
        font-size: 0.96rem;
    }

    /* --- gallery --- */
    .gallery {
        columns: 2;
        column-gap: clamp(0.6rem, 1.6vw, 1.3rem);
    }

    @media (min-width: 980px) {
        .gallery {
            columns: 3;
        }
    }

    .g-item {
        break-inside: avoid;
        margin-bottom: clamp(0.8rem, 1.6vw, 1.3rem);
        position: relative;
        overflow: hidden;
        border-radius: 3px;
    }

    .g-item img {
        width: 100%;
        transition: transform 1s var(--ease), filter 0.6s;
    }

    .g-item figcaption {
        position: absolute;
        inset: auto 0 0 0;
        padding: 1.4rem 1.2rem 1rem;
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #fff;
        background: linear-gradient(transparent, rgba(20, 15, 9, 0.78));
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    }

    .g-item:hover img {
        transform: scale(1.05);
    }

    .g-item:hover figcaption {
        opacity: 1;
        transform: translateY(0);
    }

    /* --- contact --- */
    .contact-grid {
        display: grid;
        gap: clamp(2.4rem, 5vw, 4.5rem);
    }

    @media (min-width: 900px) {
        .contact-grid {
            grid-template-columns: 0.92fr 1.08fr;
            align-items: start;
        }
    }

    .info-block {
        margin-bottom: 2.4rem;
    }

    .info-block .il {
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--brass-deep);
        margin-bottom: 0.7rem;
        display: flex;
        align-items: center;
        gap: 0.6em;
    }

    .info-block .il svg {
        width: 15px;
        height: 15px;
        stroke-width: 1.5;
    }

    .info-block p,
    .info-block a {
        font-family: var(--serif);
        font-size: 1.4rem;
        color: var(--ink);
        line-height: 1.4;
    }

    .info-block a:hover {
        color: var(--brass-deep);
    }

    .hours-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--sans);
    }

    .hours-row span:first-child {
        color: var(--ink);
        font-weight: 500;
    }

    .hours-row.closed span:last-child {
        color: var(--muted);
    }

    .hours-row span:last-child {
        font-variant-numeric: tabular-nums;
        color: var(--ink-soft);
    }

    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }

    .chip {
        font-family: var(--sans);
        font-size: 0.78rem;
        color: var(--ink-soft);
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        padding: 0.5em 1em;
    }

    .note {
        font-size: 0.82rem;
        color: var(--muted);
        font-style: italic;
        margin-top: 0.9rem;
    }

    /* --- form --- */
    .form-card {
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: clamp(1.8rem, 3.4vw, 3rem);
    }

    .field {
        margin-bottom: 1.3rem;
    }

    .field label {
        display: block;
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--brass-deep);
        margin-bottom: 0.6rem;
    }

    .field input,
    .field textarea,
    .field select {
        width: 100%;
        background: var(--bg);
        border: 1px solid var(--line-strong);
        border-radius: 2px;
        padding: 0.85em 1em;
        font-family: var(--sans);
        font-size: 1rem;
        color: var(--ink);
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .field input:focus,
    .field textarea:focus,
    .field select:focus {
        outline: none;
        border-color: var(--brass);
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brass) 20%, transparent);
    }

    .field textarea {
        resize: vertical;
        min-height: 96px;
    }

    .field-row {
        display: grid;
        gap: 1.3rem;
    }

    @media (min-width: 560px) {
        .field-row.cols-3 {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .field-row.cols-2 {
            grid-template-columns: 1fr 1fr;
        }
    }

    /* --- impressum --- */
    details.impressum {
        margin-top: 3rem;
        border-top: 1px solid var(--line);
        padding-top: 1.4rem;
    }

    details.impressum summary {
        font-family: var(--mono);
        font-size: 0.72rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--muted);
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        gap: 0.6em;
    }

    details.impressum summary::-webkit-details-marker {
        display: none;
    }

    details.impressum summary::before {
        content: "+";
        color: var(--brass-deep);
        font-size: 1rem;
    }

    details.impressum[open] summary::before {
        content: "–";
    }

    details.impressum .imp-body {
        font-size: 0.88rem;
        color: var(--muted);
        line-height: 1.7;
        margin-top: 1rem;
        max-width: 60ch;
    }

    details.impressum .imp-body strong {
        color: var(--ink-soft);
    }

    /* --- legal pages --- */
    .legal h2 {
        font-family: var(--serif);
        font-size: clamp(1.45rem, 2.6vw, 1.9rem);
        color: var(--ink);
        font-weight: 500;
        margin: 2.4rem 0 0.7rem;
    }

    .legal h2:first-of-type {
        margin-top: 0.5rem;
    }

    .legal p,
    .legal address {
        font-style: normal;
        color: var(--ink-soft);
        line-height: 1.78;
        margin-bottom: 0.85rem;
        max-width: 72ch;
    }

    .legal address {
        white-space: pre-line;
    }

    .legal a {
        color: var(--brass-deep);
        border-bottom: 1px solid var(--line-strong);
    }

    .legal a:hover {
        color: var(--ink);
    }

    .legal ul {
        margin: 0 0 1rem 1.2rem;
        list-style: disc;
        color: var(--ink-soft);
        line-height: 1.7;
    }

    .legal li {
        margin-bottom: 0.35rem;
    }

    .legal .ph {
        background: color-mix(in oklab, var(--brass) 22%, transparent);
        color: var(--ink);
        padding: 0.05em 0.4em;
        border-radius: 2px;
        font-size: 0.94em;
    }

    .legal .lead-note {
        font-size: 0.88rem;
        color: var(--muted);
        font-style: italic;
        margin-bottom: 2rem;
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        gap: 1.3rem;
    }

    .footer-legal a {
        color: color-mix(in oklab, var(--cream-on-dark) 72%, transparent);
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .footer-legal a:hover {
        color: var(--brass);
    }

    /* --- footer --- */
    .site-footer {
        background: var(--dark);
        color: var(--cream-on-dark);
        padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
    }

    .footer-top {
        display: grid;
        gap: 2.6rem;
        padding-bottom: 3rem;
        border-bottom: 1px solid var(--line-dark);
    }

    @media (min-width: 760px) {
        .footer-top {
            grid-template-columns: 1.4fr 1fr 1fr;
        }
    }

    .footer .f-brand .b-name {
        font-family: var(--serif);
        font-style: italic;
        font-size: 1.9rem;
        color: #fff;
    }

    .footer .f-brand .b-sub {
        font-family: var(--mono);
        font-size: 0.6rem;
        letter-spacing: 0.4em;
        text-transform: uppercase;
        color: var(--brass);
        margin-top: 0.6rem;
    }

    .footer .f-brand p {
        color: color-mix(in oklab, var(--cream-on-dark) 66%, transparent);
        font-size: 0.95rem;
        margin-top: 1.3rem;
        max-width: 34ch;
    }

    .footer h5 {
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--brass);
        margin-bottom: 1.2rem;
        font-weight: 500;
    }

    .footer .f-col a,
    .footer .f-col p {
        display: block;
        color: color-mix(in oklab, var(--cream-on-dark) 82%, transparent);
        padding: 0.32rem 0;
        font-size: 0.95rem;
        transition: color 0.3s;
    }

    .footer .f-col a:hover {
        color: var(--brass);
    }

    .footer-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        padding-top: 2rem;
        font-family: var(--mono);
        font-size: 0.66rem;
        letter-spacing: 0.1em;
        color: color-mix(in oklab, var(--cream-on-dark) 50%, transparent);
    }

    /* --- signature dish strip (swipeable on mobile, grid on desktop) --- */
    .strip-head {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
    }

    .dish-strip {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(74%, 1fr);
        gap: clamp(0.8rem, 1.6vw, 1.2rem);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .dish-strip::-webkit-scrollbar {
        display: none;
    }

    @media (min-width: 760px) {
        .dish-strip {
            grid-auto-flow: row;
            grid-template-columns: repeat(5, 1fr);
            grid-auto-columns: auto;
            overflow: visible;
        }
    }

    .dish-card {
        scroll-snap-align: start;
    }

    .dish-card .media {
        aspect-ratio: 4/5;
        border-radius: 3px;
    }

    .dish-card .dc-cap {
        margin-top: 0.9rem;
    }

    .dish-card .dc-cap .t {
        font-family: var(--serif);
        font-size: 1.15rem;
        color: var(--ink);
        line-height: 1.18;
    }

    .dish-card .dc-cap .s {
        font-family: var(--mono);
        font-size: 0.57rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--brass-deep);
        margin-top: 0.45rem;
    }

    /* --- real-photo grid (kueche) --- */
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.7rem, 1.5vw, 1.1rem);
    }

    @media (min-width: 780px) {
        .photo-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .pg-item {
        position: relative;
        overflow: hidden;
        border-radius: 3px;
        aspect-ratio: 1/1;
    }

    .pg-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1s var(--ease);
    }

    .pg-item:hover img {
        transform: scale(1.06);
    }

    .pg-item figcaption {
        position: absolute;
        inset: auto 0 0 0;
        padding: 1.6rem 1rem 0.9rem;
        font-family: var(--mono);
        font-size: 0.6rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #fff;
        background: linear-gradient(transparent, rgba(20, 15, 9, 0.84));
    }

    /* --- mobile polish --- */
    @media (max-width: 640px) {
        .hero {
            min-height: 90svh;
        }

        .hero-inner {
            padding-top: 6.5rem;
        }

        .hero h1 {
            margin: 1.1rem 0 1.15rem;
        }

        .hero .hero-sub {
            font-size: 1.02rem;
            margin-bottom: 1.7rem;
        }

        .hero-bg img {
            object-position: 40% 42%;
        }

        .kenburns {
            animation: none;
        }

        .btns .btn {
            flex: 1 1 100%;
            width: 100%;
        }

        .media.tall {
            aspect-ratio: 4 / 3;
        }

        .hero+.section {
            padding-top: 2.4rem;
        }

        .section {
            padding-block: clamp(3.4rem, 9vw, 5rem);
        }

        .page-hero {
            padding-top: 7.5rem;
        }
    }
}

/* ============ UTILITIES + MOTION ============ */
@layer utilities {
    .center {
        text-align: center;
    }

    .mt-s {
        margin-top: 1.2rem;
    }

    .mt-m {
        margin-top: 2rem;
    }

    .mt-l {
        margin-top: 3rem;
    }

    .maxw-sm {
        max-width: 620px;
    }

    .maxw-md {
        max-width: 760px;
    }

    .mx-auto {
        margin-inline: auto;
    }

    [hidden] {
        display: none !important;
    }

    [data-reveal] {
        opacity: 1;
    }

    @media (prefers-reduced-motion: no-preference) {
        [data-reveal] {
            opacity: 0;
            transform: translateY(26px);
            transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
            transition-delay: calc(var(--i, 0) * 90ms);
        }

        [data-reveal].in-view {
            opacity: 1;
            transform: none;
        }

        .kenburns {
            animation: kenburns 26s ease-out forwards alternate infinite;
        }

        @keyframes kenburns {
            from {
                transform: scale(1.03);
            }

            to {
                transform: scale(1.08);
            }
        }
    }
}