/* M.eins19 – rebuilt stylesheet. Tokens taken from the live site (see site-capture/site-brief.md). */

:root {
    --radius: 0;
    --creme: oklch(96.5% .017 85);
    --espresso: oklch(23.5% .028 45);
    --wine: oklch(41.5% .115 19);
    --sage: oklch(53% .042 135); /* "Salbei tief": 4.9:1 with creme text, 3.2:1 against espresso */

    --background: var(--creme);
    --foreground: var(--espresso);
    --card: oklch(98.5% .01 85);
    --primary: var(--wine);
    --button: var(--sage);
    --button-foreground: oklch(98% .012 85);
    --secondary: oklch(92.5% .022 85);
    --muted-foreground: oklch(47% .024 55);
    --border: oklch(88.5% .022 75);
    --input: oklch(88.5% .022 75);
    --ring: var(--wine);
    --shadow-soft: 0 var(--space-24) var(--space-64) calc(var(--space-32) * -1) color-mix(in oklab, var(--espresso) 45%, transparent);
    --gradient-veil: linear-gradient(to top,
    color-mix(in oklab, var(--espresso) 88%, transparent),
    color-mix(in oklab, var(--espresso) 20%, transparent) 55%,
    transparent);

    /* Arrow of all selects (espresso as hex: the SVG is an image and can't read the tokens) */
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232b1f19' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");

    --font-display: "Fraunces", Georgia, serif;
    --font-sans: "Work Sans", system-ui, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --duration-fast: 160ms;
    --duration-base: 280ms;
    --container: 72rem; /* max-w-6xl */

    /* Spacing & sizes: doubling scale (1, 2, 4, 8, 16, 32 … px) plus half-steps (12, 24, 48 … px).
       Token name = px value at a 16px root; values in rem. Media queries can't use var(), they stay literal. */
    --space-1: .0625rem;
    --space-2: .125rem;
    --space-4: .25rem;
    --space-8: .5rem;
    --space-12: .75rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --space-96: 6rem;
    --space-128: 8rem;
    --space-192: 12rem;
    --space-256: 16rem;
    --space-384: 24rem;
    --space-512: 32rem;
    --space-768: 48rem;
    --space-1024: 64rem;

    /* Typography: exact sizes, named by px value */
    --text-11: .6875rem;
    --text-11-52: .72rem;
    --text-12: .75rem;
    --text-13: .8125rem;
    --text-14: .875rem;
    --text-15: .9375rem;
    --text-16: 1rem;
    --text-18: 1.125rem;
    --text-20: 1.25rem;
    --text-21: 1.3125rem;
    --text-22: 1.375rem;
    --text-24: 1.5rem;
    --text-30: 1.875rem;
    --text-36: 2.25rem;
    --text-40: 2.5rem;
    --text-48: 3rem;
    --text-60: 3.75rem;
    --text-64: 4rem;
    --text-72: 4.5rem;
    --leading-20: 1.25rem;
    --leading-32: 2rem;
    --tracking-3: .1875rem;
    --tracking-5: .3125rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
}

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

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: var(--text-16);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

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

/* Own arrow instead of the browser's: the browser places its arrow itself, always at the
   very edge. Rules that style a select set background-color (not the background shorthand,
   which would remove the arrow) and leave room on the right with padding-right. */
select {
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: var(--space-12);
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -.015em;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: var(--space-2) solid var(--ring);
    outline-offset: var(--space-2);
}

.sr-only {
    position: absolute;
    width: var(--space-1);
    height: var(--space-1);
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: var(--space-16);
    top: calc(var(--space-64) * -1);
    z-index: 100;
    background: var(--button);
    color: var(--button-foreground);
    padding: var(--space-12) var(--space-24);
    font-size: var(--text-14);
}

.skip-link:focus {
    top: var(--space-16);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-24);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-32);
    }

    .container.admin {
        max-width: 90rem;
    }
}

.surface-dark {
    background: var(--espresso);
    color: var(--creme);
}

/* ---------- Typography ---------- */
.eyebrow {
    font-size: var(--text-11-52);
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--espresso) 80%, transparent);
}

.surface-dark .eyebrow, .on-dark .eyebrow {
    color: color-mix(in oklab, var(--creme) 50%, transparent);
}

.hero .eyebrow {
    color: color-mix(in oklab, var(--creme) 70%, transparent);
}

.h1-page {
    font-size: var(--text-36);
    line-height: 1.05;
    max-width: var(--space-768);
    margin-top: var(--space-16);
}

.h2-xl {
    font-size: var(--text-30);
    line-height: 1.25;
    margin-top: var(--space-16);
}

.h2-lg {
    font-size: var(--text-30);
    line-height: 1.2;
    margin-top: var(--space-12);
}

.h2-md {
    font-size: var(--text-24);
    line-height: 1.3;
}

.h3 {
    font-size: var(--text-24);
    line-height: var(--leading-32);
}

@media (min-width: 768px) {
    .h1-page {
        font-size: var(--text-60);
    }

    .h2-xl {
        font-size: var(--text-48);
    }

    .h2-lg {
        font-size: var(--text-36);
    }

    .h2-md {
        font-size: var(--text-30);
    }
}

.lead {
    margin-top: var(--space-24);
    max-width: var(--space-512);
    line-height: 1.625;
    color: var(--muted-foreground);
}

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

.text-sm {
    font-size: var(--text-14);
    line-height: var(--leading-20);
}

.text-lg {
    font-size: var(--text-18);
    line-height: 1.75;
}

.relaxed {
    line-height: 1.625;
}

.surface-dark .muted, .surface-dark .lead {
    color: color-mix(in oklab, var(--creme) 75%, transparent);
}

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    font-size: var(--text-14);
    line-height: var(--leading-20);
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary {
    background: var(--button);
    color: var(--button-foreground);
}

.btn-primary:hover {
    background: color-mix(in oklab, var(--button) 85%, var(--espresso));
}

.btn-outline {
    border: var(--space-1) solid color-mix(in oklab, var(--espresso) 40%, transparent);
    background: transparent;
    color: var(--espresso);
    font-weight: 400;
}

.btn-outline:hover {
    background: var(--espresso);
    color: var(--creme);
}

.btn-outline-light {
    border: var(--space-1) solid color-mix(in oklab, var(--creme) 40%, transparent);
    color: var(--creme);
    font-weight: 400;
    background: var(--espresso);
}

.btn-outline-light:hover {
    background: var(--creme);
    color: var(--espresso);
}

.btn-sm {
    padding: var(--space-12) var(--space-24);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
}

.text-link {
    display: inline-block;
    margin-top: var(--space-16);
    padding-bottom: var(--space-2);
    border-bottom: var(--space-1) solid var(--primary);
    color: var(--primary);
    font-size: var(--text-14);
}

.underline {
    text-decoration: underline;
    text-underline-offset: var(--space-4);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--background) 95%, transparent);
    backdrop-filter: blur(var(--space-8));
    -webkit-backdrop-filter: blur(var(--space-8));
    border-bottom: var(--space-1) solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
    padding-block: var(--space-16);
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo img {
    height: var(--space-48);
    width: auto;
}

.main-nav {
    display: none;
    align-items: center;
    gap: var(--space-16);
    white-space: nowrap;
}

.main-nav a {
    font-size: var(--text-14);
    color: color-mix(in oklab, var(--foreground) 80%, transparent);
    transition: color .2s;
}

.main-nav a[aria-current="page"] {
    color: var(--primary);
}

/* Navigation links: the same hairline as the dragonfly labels (dragonfly.css), drawn in from
   the centre on hover. It takes the link's colour, so it is wine only on the current page,
   where it stays. */
.main-nav a, .mobile-nav a {
    position: relative;
}

.main-nav a {
    display: inline-block;
    padding-block: var(--space-4);
}

.main-nav a::after, .mobile-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: var(--space-2);
    left: 0;
    height: var(--space-1);
    background: currentColor;
    scale: 0 1;
    transition: scale var(--duration-base) var(--ease-out);
}

.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after,
.mobile-nav a:hover::after, .mobile-nav a:focus-visible::after, .mobile-nav a[aria-current="page"]::after {
    scale: 1 1;
}

@media (prefers-reduced-motion: reduce) {
    .main-nav a::after, .mobile-nav a::after {
        transition: none;
    }
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.site-header__actions .btn {
    white-space: nowrap;
    display: none;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-48);
    height: var(--space-48);
    border: var(--space-1) solid var(--border);
    background: transparent;
    cursor: pointer;
    font-size: var(--text-18);
    line-height: 1;
}

@media (min-width: 640px) {
    .site-header__actions .btn {
        display: inline-flex;
    }
}

.lang-switch {
    display: flex;
    align-items: center;
    margin-right: var(--space-8);
    font-size: var(--text-12);
    letter-spacing: .08em;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    min-height: var(--space-48);
    padding-inline: var(--space-8);
    transition: color .2s;
}

.lang-switch a + a::before {
    content: "/";
    margin-right: var(--space-12);
    color: var(--muted-foreground);
}

.lang-switch a[aria-current="true"] {
    color: var(--primary);
    font-weight: 500;
}

/* Same hairline as the navigation, on the code only (the link also holds padding and the "/").
   Wine and always visible for the current language. */
.lang-switch__code {
    position: relative;
    padding-block: var(--space-4);
}

.lang-switch__code::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: var(--space-2);
    left: 0;
    height: var(--space-1);
    background: currentColor;
    scale: 0 1;
    transition: scale var(--duration-base) var(--ease-out);
}

.lang-switch a:hover .lang-switch__code::after,
.lang-switch a:focus-visible .lang-switch__code::after,
.lang-switch a[aria-current="true"] .lang-switch__code::after {
    scale: 1 1;
}

@media (prefers-reduced-motion: reduce) {
    .lang-switch__code::after {
        transition: none;
    }
}

/* With eight links the full navigation needs a wide screen; below that the menu button opens it.
   The compact header (admin area) always uses the menu button. */
@media (min-width: 1280px) {
    .site-header:not(.site-header--compact) .main-nav {
        display: flex;
    }

    .site-header:not(.site-header--compact) .menu-toggle {
        display: none;
    }
}

/* Lies over the page below the sticky header instead of pushing it down; scrolls itself when
   it is taller than the screen. */
.mobile-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-block: var(--space-1) solid var(--border);
    background: var(--background);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav ul {
    padding-block: var(--space-8) var(--space-24);
}

/* The divider sits on the li, so the link can be as wide as its text and the hover line matches it. */
.mobile-nav li {
    border-bottom: var(--space-1) solid var(--border);
}

.mobile-nav a {
    display: block;
    width: fit-content;
    padding: var(--space-12) 0;
    font-family: var(--font-display);
    font-size: var(--text-22);
}

.mobile-nav a::after {
    bottom: var(--space-8);
}

.mobile-nav a[aria-current="page"] {
    color: var(--primary);
}

@media (min-width: 1280px) {
    .site-header:not(.site-header--compact) .mobile-nav {
        display: none !important;
    }
}

/* Fixed "Tisch reservieren" on phones: the link spans the bottom edge, the page fades out behind
   the button instead of being cut off by it. Only the button takes taps (pointer-events), so the
   faded strip above it doesn't block the page. */
.mobile-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    padding: var(--space-48) var(--space-16) var(--space-16);
    background: linear-gradient(to bottom, color-mix(in oklab, var(--background) 0%, transparent), color-mix(in oklab, var(--background) 92%, transparent) 55%);
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out), visibility var(--duration-base);
}

.mobile-cta__btn {
    display: block;
    padding: var(--space-16) var(--space-24);
    text-align: center;
    font-size: var(--text-14);
    font-weight: 500;
    background: var(--button);
    color: var(--button-foreground);
    box-shadow: 0 var(--space-12) var(--space-16) calc(var(--space-4) * -1) rgb(0 0 0 / .15), 0 var(--space-4) var(--space-8) calc(var(--space-4) * -1) rgb(0 0 0 / .15);
    pointer-events: auto;
}

/* The open menu lists "Reservieren" itself and lies over the page: the bar steps aside. */
body:has(.menu-toggle[aria-expanded="true"]) .mobile-cta {
    opacity: 0;
    visibility: hidden;
}

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

/* ---------- Footer ---------- */
.site-footer {
    border-top: var(--space-1) solid var(--border);
    background: var(--creme);
    color: var(--espresso);
    padding-bottom: var(--space-128);
}

@media (min-width: 640px) {
    .site-footer {
        padding-bottom: 0;
    }
}

.site-footer__grid {
    display: grid;
    gap: var(--space-48);
    padding-block: var(--space-64);
}

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

.site-footer__logo {
    height: var(--space-64);
    width: auto;
}

.site-footer address, .site-footer .footer-list {
    font-size: var(--text-14);
    color: color-mix(in oklab, var(--espresso) 80%, transparent);
}

.site-footer address {
    margin-top: var(--space-16);
    line-height: 1.625;
}

.site-footer .footer-contact {
    margin-top: var(--space-16);
    font-size: var(--text-14);
    color: var(--muted-foreground);
}

.site-footer .footer-links {
    margin-top: var(--space-16);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-8) var(--space-24);
    font-size: var(--text-14);
}

.site-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    min-height: var(--space-24);
    text-decoration: underline;
    text-underline-offset: var(--space-4);
}

.site-footer .footer-links a:hover {
    color: var(--espresso);
}

.site-footer .footer-list {
    margin-top: var(--space-16);
    display: grid;
    gap: var(--space-8);
}

.site-footer .footer-list a:hover {
    color: var(--espresso);
}

.hours-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-12);
}

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

.site-footer__bottom {
    border-top: var(--space-1) solid var(--border);
    padding: var(--space-24) var(--space-24);
    text-align: center;
    font-size: var(--text-12);
    color: var(--muted-foreground);
}

.site-footer__bottom a:hover {
    color: var(--espresso);
}

.site-footer__bottom .sep {
    margin-inline: var(--space-8);
}

/* ---------- Sections ---------- */
/* Anchor targets (e.g. events.html#private-events) stop below the sticky header */
section[id] {
    scroll-margin-top: var(--space-96);
}

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

@media (min-width: 768px) {
    padding-block: var(--space-96);
}

.section-tight {
    padding-block: var(--space-96);
}

.page-intro {
    padding-top: var(--space-64);
    padding-bottom: var(--space-48);
}

@media (min-width: 768px) {
    .page-intro {
        padding-top: var(--space-96);
    }
}

.pb-20 {
    padding-bottom: var(--space-96);
}

.pb-24 {
    padding-bottom: var(--space-96);
}

.mt-24 {
    margin-top: var(--space-96);
}

.mt-2 {
    margin-top: var(--space-8);
}

.mt-3 {
    margin-top: var(--space-12);
}

.mt-4 {
    margin-top: var(--space-16);
}

.mt-6 {
    margin-top: var(--space-24);
}

.mt-8 {
    margin-top: var(--space-32);
}

.split {
    display: grid;
    gap: var(--space-48);
}

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

    .split--intro {
        grid-template-columns: 1fr 1.1fr;
    }

    .split--center {
        align-items: center;
    }

    .split--end {
        align-items: end;
    }
}

/* Media frames */
.frame {
    overflow: hidden;
    background: var(--secondary);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom img {
    transition: transform .7s var(--ease);
}

.zoom:hover img, .group:hover .zoom img {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .zoom img {
        transition: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    color: var(--creme);
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-veil);
}

.hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: color-mix(in oklab, var(--espresso) 25%, transparent);
}

.hero__content {
    position: relative;
    z-index: 2;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: var(--space-128);
    padding-bottom: var(--space-96);
}

.hero h1 {
    margin-top: var(--space-24);
    max-width: var(--space-1024);
    font-size: var(--text-36);
    line-height: 1.02;
    color: var(--creme);
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: var(--text-60);
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: var(--text-72);
    }
}

.hero p.hero__text {
    margin-top: var(--space-24);
    max-width: var(--space-512);
    line-height: 1.625;
    color: color-mix(in oklab, var(--creme) 80%, transparent);
}

.hero .btn-row {
    margin-top: var(--space-32);
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    gap: var(--space-24);
}

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

.offer-card .frame {
    aspect-ratio: 4 / 5;
}

/* Phones (one card per row): the lunch photo is the printed card, shown whole in its own
   ratio (lunch.jpg, 1055 × 1491) instead of cut to 4:5. */
@media (max-width: 767.98px) {
    .offer-card .frame--lunch {
        aspect-ratio: 1055 / 1491;
    }
}

.offer-card h3 {
    margin-top: var(--space-24);
}

.team-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
}

.team-strip .frame {
    aspect-ratio: 2 / 3;
}

.team-strip figcaption {
    margin-top: var(--space-8);
}

.panel {
    display: grid;
    gap: var(--space-32);
    border: var(--space-1) solid var(--border);
    background: var(--card);
    padding: var(--space-24);
}

@media (min-width: 768px) {
    .panel {
        grid-template-columns: 1fr 1.2fr;
        padding: var(--space-48);
    }
}

/* Gallery carousel */
.carousel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-16);
}

.carousel-buttons {
    display: flex;
    gap: var(--space-8);
}

.carousel-buttons button {
    width: var(--space-48);
    height: var(--space-48);
    border: var(--space-1) solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: background-color .2s;
}

.carousel-buttons button:hover {
    background: var(--secondary);
}

.carousel {
    margin-top: var(--space-24);
    display: flex;
    gap: var(--space-16);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-8);
    scrollbar-width: thin;
}

.carousel figure {
    flex: 0 0 78%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .carousel figure {
        flex-basis: 45%;
    }
}

@media (min-width: 1024px) {
    .carousel figure {
        flex-basis: 31%;
    }
}

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

/* Opening hours (dark) */
.hours-list {
    margin-top: var(--space-16);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-16);
    padding-block: var(--space-12);
    color: color-mix(in oklab, var(--creme) 75%, transparent);
}

.hours-list li + li {
    border-top: var(--space-1) solid color-mix(in oklab, var(--creme) 10%, transparent);
}

.hours-list li span:last-child {
    text-align: right;
    color: color-mix(in oklab, var(--creme) 50%, transparent);
}

/* Inline meta (dinner hero, patisserie highlights) */
.meta-row {
    margin-top: var(--space-32);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-24);
}

.meta-row .eyebrow {
    margin-right: var(--space-8);
}

.highlights {
    margin-top: var(--space-32);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12) var(--space-48);
}

/* Image grids */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
}

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

.grid-5 .frame {
    aspect-ratio: 3 / 4;
}

.grid-3 {
    display: grid;
    gap: var(--space-16);
}

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

.grid-2 {
    display: grid;
    gap: var(--space-16);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Wine list and drinks card (A4): three per row on wide screens */
@media (min-width: 1024px) {
    .menu-grid--a4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-grid a {
    display: block;
    overflow: hidden;
    border: var(--space-1) solid var(--border);
}

.menu-grid img {
    aspect-ratio: 1149 / 2000;
    width: 100%;
    object-fit: cover;
}

.rule-top {
    border-top: var(--space-1) solid var(--border);
    padding-top: var(--space-32);
}

@media (min-width: 768px) {
    .rule-top {
        padding-top: var(--space-64);
    }
}

.cta-split {
    display: grid;
    gap: var(--space-16);
}

@media (min-width: 768px) {
    .cta-split {
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: var(--space-48);
    }
}

.cta-split .btn {
    justify-self: start;
}

/* Champagne list */
.champagne {
    margin-top: var(--space-48);
    display: grid;
    gap: var(--space-48);
}

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

.champagne li {
    border-top: var(--space-1) solid color-mix(in oklab, var(--creme) 15%, transparent);
    padding-top: var(--space-24);
}

.champagne h3 {
    margin-top: var(--space-12);
    font-size: var(--text-24);
}

.champagne p.desc {
    margin-top: var(--space-12);
    font-size: var(--text-14);
    line-height: 1.625;
    color: color-mix(in oklab, var(--creme) 65%, transparent);
}

/* Lunch take-away info */
.info-pair {
    margin-top: var(--space-32);
    display: grid;
    gap: var(--space-24);
    max-width: var(--space-768);
}

@media (min-width: 640px) {
    .info-pair {
        grid-template-columns: 1fr 1fr;
    }
}

.info-pair p:not(.eyebrow) {
    margin-top: var(--space-8);
    color: color-mix(in oklab, var(--creme) 80%, transparent);
}

/* Events */
.event-list {
    margin-top: var(--space-32);
    display: grid;
    gap: var(--space-24);
}

.event-card {
    display: grid;
    gap: var(--space-24);
    border: var(--space-1) solid var(--border);
    background: var(--card);
    padding: var(--space-24);
}

@media (min-width: 768px) {
    .event-card {
        grid-template-columns: var(--space-256) 1fr;
        padding: var(--space-32);
    }
}

.event-card .frame {
    aspect-ratio: 4 / 5;
}

.event-card h3 {
    margin-top: var(--space-8);
    font-size: var(--text-24);
}

@media (min-width: 768px) {
    .event-card h3 {
        font-size: var(--text-30);
    }
}

.event-card .tagline {
    margin-top: var(--space-4);
    font-size: var(--text-14);
    font-style: italic;
    color: var(--primary);
}

.event-card .desc {
    margin-top: var(--space-12);
    max-width: var(--space-768);
    line-height: 1.625;
    color: var(--muted-foreground);
}

.event-card .facts {
    margin-top: var(--space-16);
    font-size: var(--text-14);
    font-weight: 500;
}

.event-card .btn {
    margin-top: var(--space-24);
}

.event-card .menu-thumb {
    display: block;
    margin-top: var(--space-24);
    max-width: var(--space-384);
}

.event-card .menu-thumb img {
    width: 100%;
    border: var(--space-1) solid var(--border);
}

.event-card .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: var(--secondary);
    padding: var(--space-24);
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-20);
    color: var(--muted-foreground);
}

.event-gallery .frame {
    aspect-ratio: 4 / 3;
}

.archive {
    margin-top: var(--space-32);
    display: grid;
    gap: var(--space-24);
    opacity: .85;
}

@media (min-width: 768px) {
    .archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

.archive-card {
    display: grid;
    grid-template-columns: var(--space-128) 1fr;
    gap: var(--space-24);
    border: var(--space-1) solid var(--border);
    background: var(--card);
    padding: var(--space-24);
}

.archive-card .frame {
    aspect-ratio: 4 / 5;
}

.archive-card h3 {
    margin-top: var(--space-8);
    font-size: var(--text-20);
}

.archive-card .tagline {
    margin-top: var(--space-4);
    font-size: var(--text-14);
    font-style: italic;
    color: var(--primary);
}

.archive-card .desc {
    margin-top: var(--space-8);
    font-size: var(--text-14);
    line-height: 1.625;
    color: var(--muted-foreground);
}

.archive-card .facts {
    margin-top: var(--space-16);
    font-size: var(--text-14);
    font-weight: 500;
}

/* Über uns */
.wide-image {
    aspect-ratio: 21 / 9;
}

.team-grid {
    margin-top: var(--space-32);
    display: grid;
    gap: var(--space-24);
}

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

.team-grid .frame {
    aspect-ratio: 4 / 5;
}

.team-grid p {
    margin-top: var(--space-16);
    font-family: var(--font-display);
    font-size: var(--text-24);
}

.team-grid p.team-grid__text {
    margin-top: var(--space-8);
    font-family: var(--font-sans);
    font-size: var(--text-14);
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* Über uns: partners and friends */
.partner-list {
    margin-top: var(--space-48);
    display: grid;
    gap: var(--space-32) var(--space-48);
    list-style: none;
}

@media (min-width: 640px) {
    .partner-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.partner-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-16);
    padding-top: var(--space-16);
    border-top: var(--space-1) solid var(--border);
}

.partner-list__image {
    width: var(--space-64);
    height: var(--space-64);
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 999px;
    background-color: var(--card);
}

.partner-list__name {
    font-family: var(--font-display);
    font-size: var(--text-20);
}

.partner-list__text {
    margin-top: var(--space-4);
    font-size: var(--text-14);
    color: var(--muted-foreground);
}

.prose-block {
    max-width: var(--space-768);
}

.prose-block p + p {
    margin-top: var(--space-24);
}

.prose-block__text {
    font-size: var(--text-16);
    line-height: 1.625;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .prose-block__text {
        font-size: 1.0625rem;
    }
}

/* Forms */
.form {
    max-width: var(--space-768);
    display: grid;
    gap: var(--space-24);
}

.form-row {
    display: grid;
    gap: var(--space-24);
}

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

    .form-row--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.field label {
    font-size: var(--text-14);
}

.field input, .field select, .field textarea {
    display: block;
    width: 100%;
    margin-top: var(--space-8);
    padding: var(--space-12) var(--space-16);
    font-size: var(--text-14);
    line-height: var(--leading-20);
    background-color: var(--card);
    border: var(--space-1) solid var(--input);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .2s;
}

.field select {
    padding-right: var(--space-48);
    background-position: right var(--space-16) center;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--primary);
}

.field textarea {
    min-height: var(--space-128);
    resize: vertical;
}

/* Reservation: surprise menu and theatre visit, shown for dinner times only */
.form-extra {
    display: grid;
    gap: var(--space-24);
    padding: var(--space-24);
    background-color: var(--card);
    border: var(--space-1) solid var(--input);
    border-radius: var(--radius);
}

.form-extra[hidden] {
    display: none;
}

.form-extra strong {
    font-weight: 600;
}

.form-extra__hint {
    margin-top: var(--space-8);
    font-size: var(--text-14);
    color: var(--muted-foreground);
}

.form-extra__note {
    margin-top: var(--space-8);
    font-size: var(--text-14);
}

.form-extra__note[hidden] {
    display: none;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    font-size: var(--text-14);
}

.check input {
    margin-top: var(--space-4);
    width: var(--space-16);
    height: var(--space-16);
    accent-color: var(--primary);
    flex-shrink: 0;
}

.form .btn {
    width: 100%;
    padding-block: var(--space-16);
}

.form[hidden] {
    display: none;
}

.form-status {
    font-size: var(--text-14);
    line-height: var(--leading-20);
    color: var(--muted-foreground);
}

.form-status:empty {
    display: none;
}

.form-status--error {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-16) var(--space-24);
    color: var(--foreground);
    background-color: color-mix(in oklab, var(--wine) 6%, var(--card));
    border: var(--space-1) solid color-mix(in oklab, var(--wine) 35%, transparent);
}

.form-status__title {
    font-weight: 600;
    color: var(--primary);
}

.field [aria-invalid="true"] {
    border-color: var(--primary);
}

/* Reservation: confirmation card in place of the form after sending */
.form-result {
    max-width: var(--space-768);
    display: grid;
    gap: var(--space-24);
    justify-items: start;
    padding: var(--space-32) var(--space-24);
    background-color: var(--card);
    border: var(--space-1) solid var(--input);
    box-shadow: var(--shadow-soft);
    outline: none;
    scroll-margin-top: var(--space-96);
}

.form-result[hidden] {
    display: none;
}

.form-result__title {
    margin-top: calc(var(--space-12) * -1);
}

.form-result__summary {
    width: 100%;
    display: grid;
    border-top: var(--space-1) solid var(--border);
}

.form-result__summary > div {
    display: grid;
    gap: var(--space-4);
    padding-block: var(--space-12);
    border-bottom: var(--space-1) solid var(--border);
}

.form-result__summary dt {
    font-size: var(--text-12);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.form-result__summary dd {
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .form-result {
        padding: var(--space-48);
    }

    .form-result__summary > div {
        grid-template-columns: var(--space-128) 1fr;
        align-items: baseline;
        gap: var(--space-24);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .form-result:not([hidden]) {
        animation: form-result-in var(--duration-base) var(--ease-out);
    }
}

@keyframes form-result-in {
    from {
        opacity: 0;
        transform: translateY(var(--space-8));
    }
}

/* Phones: tighter form and intro, so date, time and guests fit on the first screen */
@media (max-width: 639.98px) {
    .page-intro {
        padding-top: var(--space-32);
        padding-bottom: var(--space-32);
    }

    .page-intro .lead {
        margin-top: var(--space-16);
    }

    .form,
    .form-row,
    .form-extra {
        gap: var(--space-16);
    }

    .form-extra {
        padding: var(--space-16);
    }

    .field input, .field select, .field textarea {
        margin-top: var(--space-4);
    }

    .form-after {
        margin-top: var(--space-32);
        padding-top: var(--space-24);
    }
}

.form-after {
    margin-top: var(--space-48);
    max-width: var(--space-768);
    border-top: var(--space-1) solid var(--border);
    padding-top: var(--space-32);
    font-size: var(--text-14);
    color: var(--muted-foreground);
}

/* Legal pages */
.legal {
    max-width: var(--space-768);
}

.legal h2 {
    margin-top: var(--space-48);
    font-size: var(--text-24);
}

.legal p, .legal dl {
    margin-top: var(--space-16);
    line-height: 1.625;
    color: var(--muted-foreground);
}

.legal dt {
    margin-top: var(--space-16);
    font-size: var(--text-14);
    font-weight: 500;
    color: var(--foreground);
}

.legal dd {
    color: var(--muted-foreground);
}

.legal a {
    text-decoration: underline;
    text-underline-offset: var(--space-4);
}

.legal h3 {
    margin-top: var(--space-32);
    font-size: var(--text-18);
}

.legal strong {
    font-weight: 500;
    color: var(--foreground);
}

.legal ul, .legal ol {
    margin-top: var(--space-16);
    padding-left: var(--space-24);
    line-height: 1.625;
    color: var(--muted-foreground);
}

.legal ul {
    list-style: disc;
}

.legal ol {
    list-style: decimal;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(var(--space-24));
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Past events reuse the event card markup in a compact layout */
.archive .event-card {
    grid-template-columns: var(--space-128) minmax(0, 1fr);
    gap: var(--space-24);
    padding: var(--space-24);
}

/* minmax(0, …): the date (letter-spaced) and long titles may wrap instead of pushing the card
   wider than the screen. */
.archive .event-card > * {
    min-width: 0;
}

.archive .event-card h3 {
    font-size: var(--text-20);
    overflow-wrap: break-word;
}

@media (max-width: 479.98px) {
    .archive .event-card {
        grid-template-columns: var(--space-96) minmax(0, 1fr);
        gap: var(--space-16);
        padding: var(--space-16);
    }

    .archive .event-card .eyebrow {
        letter-spacing: .12em;
    }
}

.archive .event-card .desc {
    margin-top: var(--space-8);
    font-size: var(--text-14);
}

.archive .event-card .btn, .archive .event-card .menu-thumb {
    display: none;
}

.archive .event-card .no-image {
    font-size: var(--text-14);
    padding: var(--space-8);
}

/* ---------- Menu cards (partials/menu-cards) ----------
   Text on a plain background image, laid out like the printed menus. All sizes are in cqw
   (1% of the card's width), so a card scales like a picture. */
.menu-card {
    container-type: inline-size;
    position: relative;
    display: flex;
    background: transparent center / cover no-repeat;
    border: var(--space-1) solid var(--border);
    color: #1c1a17;
    text-align: center;
    overflow: hidden;
}

/* cqw refers to the card's content box, so the padding sits on this inner sheet */
.mc-sheet {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card p {
    margin: 0;
}

.menu-card ul {
    list-style: none;
}

.menu-card__zoom {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    background: transparent;
    cursor: zoom-in;
}

.no-js .menu-card__zoom,
.menu-dialog .menu-card__zoom {
    display: none;
}

.mc-kicker {
    display: block;
    overflow: visible;
    fill: currentColor;
}

/* Lunch: A4 card */
.menu-card--lunch {
    aspect-ratio: 1055 / 1576;
    font-family: "EB Garamond", Georgia, serif;
}

.menu-card--lunch .mc-kicker {
    width: 22cqw;
    margin-inline: auto;
    font-family: "EB Garamond", Georgia, serif;
    font-size: var(--text-30);
    letter-spacing: var(--tracking-5);
    text-transform: uppercase;
}

.menu-card--lunch .mc-title {
    margin-top: -.6cqw;
    font-family: "EB Garamond", Georgia, serif;
    font-weight: 400;
    font-size: 10.6cqw;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.menu-card--lunch .mc-hours {
    margin-top: 2cqw;
    padding-top: 2.4cqw;
    background: linear-gradient(currentColor, currentColor) top center / 8.5cqw var(--space-1) no-repeat;
    font-family: var(--font-sans);
    font-size: 1.65cqw;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.menu-card--lunch .mc-section {
    margin-top: 4.2cqw;
}

.menu-card--lunch .mc-section + .mc-section {
    margin-top: 3cqw;
}

.menu-card--lunch .mc-section__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.6cqw;
    font-family: "EB Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 3.2cqw;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.menu-card--lunch .mc-section__title::before,
.menu-card--lunch .mc-section__title::after {
    content: "";
    width: 19cqw;
    border-top: var(--space-1) solid currentColor;
}

.menu-card--lunch .mc-dishes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2.6cqw;
    margin-top: 1.8cqw;
}

.menu-card--lunch .mc-dish {
    /* A shorter last row spreads out, as on the printed card */
    flex: 1 0 var(--dish-width, 50%);
    padding-inline: 1.2cqw;
}

.mc-dishes--1 {
    --dish-width: 70%;
}

.mc-dishes--2 {
    --dish-width: 50%;
}

.mc-dishes--3 {
    --dish-width: 33.33%;
}

/* Thin line between dishes in a row, as on the printed card */
.menu-card--lunch .mc-dishes--2 .mc-dish:nth-child(2n),
.menu-card--lunch .mc-dishes--3 .mc-dish:not(:nth-child(3n + 1)) {
    border-left: var(--space-1) solid currentColor;
}

.menu-card--lunch .mc-dish__name {
    font-weight: 600;
    font-size: 2.2cqw;
    line-height: 1.2;
}

.menu-card--lunch .mc-dish__desc {
    margin-top: .2cqw;
    font-size: 1.95cqw;
    line-height: 1.3;
    letter-spacing: .02em;
}

.menu-card--lunch .mc-dish__price {
    margin-top: .6cqw;
    font-size: 1.8cqw;
    letter-spacing: .12em;
}

.menu-card--lunch .mc-highlight {
    align-self: center;
    margin-top: auto;
    padding: 2cqw 6cqw 1.6cqw;
    border: var(--space-2) solid currentColor;
    font-size: 2cqw;
}

.menu-card--lunch .mc-highlight__title {
    margin-bottom: 1.4cqw;
    font-family: "EB Garamond", Georgia, serif;
    font-weight: 500;
    font-size: 3.5cqw;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.menu-card--lunch .mc-highlight__price {
    margin-top: .6cqw;
    font-size: 2.3cqw;
    letter-spacing: .08em;
}

.menu-card .mc-aside {
    position: absolute;
    right: 2.5cqw;
    bottom: 3.6cqw;
    width: 15cqw;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.05cqw;
    line-height: 1.6;
    letter-spacing: .18em;
    text-align: left;
    text-transform: uppercase;
}

.menu-card .mc-aside p + p {
    margin-top: 1cqw;
}

.menu-card--lunch .mc-aside p + p::before {
    content: "";
    display: block;
    width: 1.8cqw;
    margin-bottom: 1cqw;
    border-top: var(--space-1) solid currentColor;
    opacity: .6;
}

.menu-card .mc-foot {
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 3.5cqw;
    font-family: var(--font-sans);
    font-size: .92cqw;
    line-height: 1.5;
}

.menu-card--lunch .mc-sheet {
    padding: 5cqw 4cqw 12cqw;
}

/* Dinner: one tall card per course. Text is set larger than on the printed menu: the cards
   are small on the page (four per row), and at print size it was hard to read. */
.menu-card--dinner {
    aspect-ratio: 919 / 1600;
    font-family: "EB Garamond", Georgia, serif;
}

.menu-card--dinner .mc-title {
    font-family: inherit;
    font-weight: 400;
    font-size: 5.6cqw;
    letter-spacing: 0;
    text-transform: uppercase;
}

.menu-card--dinner .mc-dishes {
    display: grid;
    gap: 6cqw;
    margin-top: 8cqw;
}

.menu-card--dinner .mc-dish__name {
    font-size: 4.6cqw;
    line-height: 1.2;
}

.menu-card--dinner .mc-dish__note {
    margin-top: .4cqw;
    font-size: 2.3cqw;
    text-transform: uppercase;
}

.menu-card--dinner .mc-dish__desc {
    margin-top: .8cqw;
    font-size: 3.3cqw;
    line-height: 1.3;
}

.menu-card--dinner .mc-dish__price {
    font-size: 3.3cqw;
    line-height: 1.3;
}

.menu-card--dinner .mc-sheet {
    justify-content: center;
    padding: 12cqw 8cqw 28cqw;
}

/* Patisserie */
.menu-card--patisserie {
    aspect-ratio: 702 / 1024;
    font-family: var(--font-sans);
}

.menu-card--patisserie .mc-head {
    position: relative;
}

.menu-card--patisserie .mc-kicker {
    position: absolute;
    left: 9.5cqw;
    top: -6cqw;
    width: 15cqw;
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: var(--text-21);
    letter-spacing: var(--tracking-3);
    text-transform: uppercase;
}

.menu-card--patisserie .mc-title {
    padding-left: 2cqw;
    font-family: inherit;
    font-weight: 400;
    font-size: 7cqw;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.menu-card--patisserie .mc-dishes {
    display: grid;
    gap: 3.6cqw;
    margin-top: 18cqw;
}

.menu-card--patisserie .mc-dish__name {
    font-weight: 600;
    font-size: 2.6cqw;
    line-height: 1.3;
    text-transform: uppercase;
}

.menu-card--patisserie .mc-dish__name sup {
    font-size: .55em;
    line-height: 0;
}

.menu-card--patisserie .mc-dish__desc {
    margin-top: .6cqw;
    font-size: 2.15cqw;
    line-height: 1.3;
    text-transform: uppercase;
}

.menu-card--patisserie .mc-dish__price {
    margin-top: .4cqw;
    font-size: 1.6cqw;
    text-transform: uppercase;
}

.menu-card--patisserie .mc-aside {
    right: 1.4cqw;
    bottom: 2.6cqw;
    width: 14.5cqw;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.25cqw;
    letter-spacing: .14em;
}

.menu-card--patisserie .mc-foot {
    bottom: 1.4cqw;
    font-family: inherit;
    font-weight: 300;
    font-size: 1cqw;
}

.menu-card--patisserie .mc-sheet {
    padding: 20.5cqw 8cqw 22cqw;
}

/* Wine list and drinks card: A4, after the printed cards of the restaurant ("M.eins19"
   on top, headings in spaced capitals, gold accents) */
.menu-card--wine,
.menu-card--drinks {
    --gold: #8a6d2f;
    aspect-ratio: 1055 / 1491;
    font-family: "EB Garamond", Georgia, serif;
}

.mc-wordmark {
    font-weight: 500;
    font-size: 6cqw;
    line-height: 1;
}

.mc-wordmark span {
    font-size: .5em;
    vertical-align: -.35em;
}

.mc-wordmark::after {
    content: "";
    display: block;
    width: 15cqw;
    margin: 2cqw auto 0;
    border-top: var(--space-1) solid var(--gold);
}

.menu-card--wine .mc-title,
.menu-card--drinks .mc-title {
    margin-top: 4cqw;
    padding-left: .4em; /* letter-spacing also follows the last letter */
    font-family: inherit;
    font-weight: 400;
    font-size: 4.4cqw;
    line-height: 1;
    letter-spacing: .4em;
    text-transform: uppercase;
}

/* Wine list */
.menu-card--wine .mc-sheet {
    padding: 7cqw 10cqw 10cqw;
}

.menu-card--wine .mc-title::after {
    content: "";
    display: block;
    width: 14cqw;
    margin: 4cqw auto 0;
    border-top: var(--space-1) solid var(--gold);
}

.menu-card--wine .mc-section {
    margin-top: 5cqw;
    text-align: left;
}

.menu-card--wine .mc-section + .mc-section::before {
    content: "";
    display: block;
    width: 16cqw;
    margin: 0 auto 5cqw;
    border-top: var(--space-1) solid var(--gold);
    opacity: .6;
}

.menu-card--wine .mc-section__title {
    font-family: inherit;
    font-weight: 400;
    font-size: 2.9cqw;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

.menu-card--wine .mc-wines {
    display: grid;
    gap: 1.4cqw;
    margin-top: 2.6cqw;
}

/* Producer — wine, then vintage and price in right-aligned columns */
.menu-card--wine .mc-wine {
    display: grid;
    grid-template-columns: 1fr 8cqw 10cqw;
    align-items: baseline;
    column-gap: 2cqw;
}

.menu-card--wine .mc-wines--glass .mc-wine {
    grid-template-columns: 1fr 7cqw 8cqw 9cqw;
}

.menu-card--wine .mc-wine--head {
    font-size: 1.4cqw;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.menu-card--wine .mc-wine--head span,
.menu-card--wine .mc-wine__price {
    text-align: right;
}

.menu-card--wine .mc-wine__name {
    font-size: 1.9cqw;
    line-height: 1.25;
}

.menu-card--wine .mc-wine__name strong {
    font-weight: 600;
    font-size: 1.2em;
}

.menu-card--wine .mc-wine__origin {
    margin-top: .2cqw;
    font-size: 1.3cqw;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.menu-card--wine .mc-wine__vintage {
    font-size: 1.9cqw;
    text-align: center;
}

.menu-card--wine .mc-wine__price {
    font-size: 2.3cqw;
}

.menu-card--wine .mc-foot,
.menu-card--drinks .mc-foot {
    font-family: inherit;
    font-size: 1.2cqw;
}

/* Drinks card */
.menu-card--drinks .mc-sheet {
    padding: 6cqw 6cqw 8cqw;
}

.menu-card--drinks .mc-title {
    margin-top: 3cqw;
}

.mc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 7cqw;
    margin-top: 5cqw;
    text-align: left;
}

.mc-column + .mc-column {
    position: relative;
}

.mc-column + .mc-column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3.5cqw;
    border-left: var(--space-1) solid currentColor;
    opacity: .25;
}

.menu-card--drinks .mc-section + .mc-section {
    margin-top: 3.4cqw;
}

.menu-card--drinks .mc-section__title {
    padding-bottom: 1.2cqw;
    font-family: inherit;
    font-weight: 400;
    font-size: 2.4cqw;
    line-height: 1.3;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.menu-card--drinks .mc-section__subtitle {
    margin-top: -.6cqw;
    padding-bottom: 1.2cqw;
    font-style: italic;
    font-size: 1.6cqw;
}

/* The rule sits under the title, or under the subtitle when there is one */
.menu-card--drinks .mc-section:not(.mc-section--sub) > :is(.mc-section__title:not(:has(+ .mc-section__subtitle)), .mc-section__subtitle) {
    border-bottom: var(--space-1) solid currentColor;
    border-bottom-color: rgb(28 26 23 / .35);
}

.menu-card--drinks .mc-section--sub {
    margin-top: 2.4cqw;
}

.menu-card--drinks .mc-section--sub .mc-section__title {
    padding-bottom: 0;
    font-size: 1.8cqw;
}

.mc-drinks {
    display: grid;
    gap: 1cqw;
    margin-top: 1.8cqw;
}

.mc-section--sub .mc-drinks {
    margin-top: 1.2cqw;
}

.mc-drink {
    display: grid;
    grid-template-columns: 1fr auto 7cqw;
    align-items: baseline;
    column-gap: 2cqw;
}

.mc-drink__name {
    font-weight: 600;
    font-size: 2.1cqw;
    line-height: 1.2;
}

.mc-drink__size {
    font-size: 1.6cqw;
}

.mc-drink__price {
    font-size: 2cqw;
    text-align: right;
}

.mc-drink__desc {
    grid-column: 1 / -1;
    font-size: 1.5cqw;
}

/* Event menu (partials/menu-cards/event), after the printed event menus */
.menu-card--event {
    --gold: #b08d57;
    aspect-ratio: 900 / 1600;
    font-family: var(--font-sans);
}

.menu-card--event .mc-sheet {
    align-items: center;
    padding: 5cqw 6cqw 5cqw;
}

/* Narrow, high-contrast capitals: Playfair Display squeezed to 70 % width (the wider box
   with negative margins keeps it centred and lets lines use the full card width) */
.menu-card .mc-condensed {
    width: 142%;
    margin-inline: -21%;
    transform: scaleX(.7);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.mc-brand,
.mc-heart {
    display: flex;
    align-items: center;
    gap: 3cqw;
    width: 100%;
}

.mc-brand::before,
.mc-brand::after,
.mc-heart::before,
.mc-heart::after {
    content: "";
    flex: 1;
    border-top: var(--space-1) solid var(--gold);
}

.mc-brand span {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: 4.6cqw;
}

.menu-card--event .mc-title {
    margin-top: 5cqw;
    font-size: 14.5cqw;
}

.mc-amp {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.mc-heart {
    margin-block: 4cqw;
    padding-inline: 4cqw;
    font-size: 4cqw;
    line-height: 1;
    color: var(--gold);
}

.mc-heart--end {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 5cqw;
}

.menu-card--event .mc-section {
    width: 100%;
}

.menu-card--event .mc-section:first-of-type {
    margin-top: 5cqw;
}

.mc-kicker-text {
    font-size: 2.35cqw;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.menu-card--event .mc-section__title {
    margin-top: 1cqw;
    font-size: 10.5cqw;
}

.mc-subtitle {
    margin-top: 1.5cqw;
    font-size: 2.4cqw;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.menu-card--event .mc-dishes {
    display: grid;
    gap: 3.4cqw;
    margin-top: 3.4cqw;
}

.menu-card--event .mc-dishes--2 {
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.menu-card--event .mc-dishes--2 .mc-dish + .mc-dish {
    border-left: var(--space-1) solid var(--gold);
}

.menu-card--event .mc-dish {
    padding-inline: 2cqw;
}

.menu-card--event .mc-dishes--1 .mc-dish {
    padding-inline: 9cqw;
}

.menu-card--event .mc-dish::after {
    content: "";
    display: block;
    width: 10cqw;
    margin: 2.6cqw auto 0;
    border-top: var(--space-1) solid var(--gold);
}

.menu-card .mc-dish__name.mc-condensed {
    margin-top: .6cqw;
    font-size: 6.4cqw;
}

.menu-card--event .mc-dishes--2 .mc-dish__name {
    font-size: 6cqw;
}

.menu-card--event .mc-dish__desc {
    margin-top: 1.4cqw;
    font-size: 2.2cqw;
    line-height: 1.5;
    letter-spacing: .14em;
}

.menu-card--event .mc-dishes--2 .mc-dish__desc {
    font-size: 2.1cqw;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.menu-card--event .mc-dish__price {
    margin-top: 1cqw;
    font-size: 2.45cqw;
    letter-spacing: .12em;
}

/* Enlarged card (site.js) */
/* No UA max-width/max-height: on phones it was narrower than the card, which then hung off
   to the right instead of sitting in the middle. */
.menu-dialog {
    margin: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.menu-dialog::backdrop {
    background: color-mix(in oklab, var(--espresso) 80%, transparent);
}

.menu-dialog .menu-card {
    width: min(calc(100dvw - var(--space-32)), var(--space-768), calc(92dvh * var(--card-ratio, .7)));
    max-height: 92dvh;
    overflow: auto;
}

.menu-dialog__close {
    position: absolute;
    top: calc(var(--space-8) * -1);
    right: calc(var(--space-8) * -1);
    z-index: 2;
    width: var(--space-48);
    height: var(--space-48);
    border-radius: 50%;
    background: var(--creme);
    color: var(--espresso);
    font-size: var(--text-20);
    cursor: pointer;
}

/* ---------- Landing pages (private events, before the theatre, review) ---------- */
.hero--page,
.hero--page .hero__content {
    min-height: min(var(--space-768), 80vh);
}

.hero--page .hero__content {
    justify-content: center;
    padding-top: var(--space-96);
    padding-bottom: var(--space-64);
}

.hero--page .hero__media::after {
    background: linear-gradient(to bottom, color-mix(in oklab, var(--espresso) 70%, transparent), color-mix(in oklab, var(--espresso) 92%, transparent));
}

@media (min-width: 768px) {
    .hero--page h1 {
        font-size: var(--text-64);
    }
}

.rule-full {
    border-top: var(--space-1) solid var(--border);
}

.surface-sand {
    background: var(--secondary);
}

/* Short items with a rule on top, e.g. occasions */
.feature-grid {
    display: grid;
    gap: 0 var(--space-32);
    margin-top: var(--space-48);
}

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

.feature-grid li {
    padding-block: var(--space-24) var(--space-32);
    border-top: var(--space-1) solid var(--border);
}

.feature-grid h3 {
    font-size: var(--text-22);
}

.feature-grid p {
    margin-top: var(--space-8);
    font-size: var(--text-14);
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* Numbered steps (01 Empfang …, 1 Anfragen …) */
.steps {
    display: grid;
    gap: var(--space-48) var(--space-32);
    margin-top: var(--space-48);
    list-style: none;
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps--3 {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-48);
    }
}

.steps li {
    padding-top: var(--space-24);
    border-top: var(--space-1) solid var(--border);
}

.surface-dark .steps li {
    border-color: color-mix(in oklab, var(--creme) 20%, transparent);
}

.steps--3 li {
    border-top-color: color-mix(in oklab, var(--espresso) 50%, transparent);
}

.steps__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-40);
    line-height: 1;
    color: color-mix(in oklab, var(--creme) 70%, transparent);
}

.steps--accent .steps__number {
    color: var(--primary);
}

.steps h3 {
    margin-top: var(--space-24);
    font-size: var(--text-24);
    line-height: 1.3;
}

.steps p {
    margin-top: var(--space-12);
    font-size: var(--text-14);
    line-height: 1.6;
    color: var(--muted-foreground);
}

.surface-dark .steps p {
    color: color-mix(in oklab, var(--creme) 70%, transparent);
}

/* "Gut zu wissen" table with the enquiry card next to it */
@media (min-width: 900px) {
    .split--facts {
        grid-template-columns: 1.3fr 1fr;
        align-items: start;
        gap: var(--space-64);
    }
}

.fact-table {
    margin-top: var(--space-32);
    border-top: var(--space-1) solid color-mix(in oklab, var(--espresso) 12%, transparent);
}

.fact-table > div {
    display: grid;
    gap: var(--space-4) var(--space-24);
    padding-block: var(--space-16);
    border-bottom: var(--space-1) solid color-mix(in oklab, var(--espresso) 12%, transparent);
    font-size: var(--text-14);
    line-height: 1.6;
}

@media (min-width: 640px) {
    .fact-table > div {
        grid-template-columns: var(--space-192) 1fr;
    }
}

.fact-table dt {
    font-weight: 500;
}

.fact-table dd {
    color: var(--muted-foreground);
}

.inquiry-card {
    display: grid;
    gap: var(--space-12);
    padding: var(--space-32);
    border: var(--space-1) solid var(--border);
    background: var(--background);
}

.inquiry-card .h3 {
    margin-top: var(--space-8);
}

.inquiry-card .btn {
    justify-content: center;
}

.inquiry-card__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4) var(--space-12);
    font-size: var(--text-14);
    text-align: center;
    color: var(--muted-foreground);
}

.inquiry-card__contact a {
    text-decoration: underline;
    text-underline-offset: var(--space-4);
}

/* FAQ: question list next to the heading */
@media (min-width: 900px) {
    .split--faq {
        grid-template-columns: 1fr 1.6fr;
        gap: var(--space-64);
    }
}

.faq {
    border-top: var(--space-1) solid var(--border);
}

.faq details,
.faq > div {
    border-bottom: var(--space-1) solid var(--border);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: var(--space-24);
    padding-block: var(--space-24);
    font-family: var(--font-display);
    font-size: var(--text-20);
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    font-family: var(--font-sans);
    font-size: var(--text-20);
    line-height: 1.35;
}

.faq details[open] summary::after {
    content: "×";
}

.faq details p {
    max-width: var(--space-768);
    padding-bottom: var(--space-24);
    font-size: var(--text-15);
    line-height: 1.6;
    color: var(--muted-foreground);
}

.faq--open {
    border-top: 0;
}

.faq--open > div {
    padding-block: var(--space-24);
}

.faq--open > div:first-child {
    padding-top: 0;
}

.faq--open > div:last-child {
    border-bottom: 0;
}

.faq--open dt {
    font-family: var(--font-display);
    font-size: var(--text-22);
    line-height: 1.35;
}

.faq--open dd {
    margin-top: var(--space-12);
    font-size: var(--text-15);
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* Venues near the restaurant */
.venue-list {
    margin-top: var(--space-48);
    border-top: var(--space-1) solid color-mix(in oklab, var(--espresso) 50%, transparent);
}

.venue-list li {
    display: grid;
    gap: var(--space-4) var(--space-24);
    align-items: baseline;
    padding-block: var(--space-16);
    border-bottom: var(--space-1) solid var(--border);
}

@media (min-width: 768px) {
    .venue-list li {
        grid-template-columns: 2fr 3fr auto;
    }
}

.venue-list__name {
    font-family: var(--font-display);
    font-size: var(--text-24);
}

.venue-list__address {
    font-size: var(--text-14);
    color: var(--muted-foreground);
}

.venue-list__time {
    font-size: var(--text-14);
    white-space: nowrap;
}

.notice-card {
    display: grid;
    gap: var(--space-32);
    margin-top: var(--space-96);
    padding: var(--space-32);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .notice-card {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-64);
        padding: var(--space-48);
    }
}

.notice-card li {
    padding-block: var(--space-16);
    border-bottom: var(--space-1) solid var(--border);
    font-size: var(--text-15);
    line-height: 1.6;
}

.notice-card li:first-child {
    padding-top: 0;
}

.notice-card li:last-child {
    border-bottom: 0;
}

/* Review page: logo block and the two review links */
.review {
    display: grid;
    gap: var(--space-48);
    padding-block: var(--space-64) var(--space-96);
}

@media (min-width: 900px) {
    .review {
        grid-template-columns: 1fr 1.6fr;
        align-items: center;
        gap: var(--space-96);
        min-height: 70vh;
    }
}

.review__brand {
    display: grid;
    justify-items: center;
    gap: var(--space-12);
    padding: var(--space-48) var(--space-32);
    background: var(--secondary);
    font-size: var(--text-14);
    text-align: center;
    color: var(--muted-foreground);
}

.review__logo {
    display: grid;
    justify-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
    padding: var(--space-24) var(--space-32);
    border: var(--space-1) solid color-mix(in oklab, var(--espresso) 40%, transparent);
    font-size: var(--text-12);
    letter-spacing: .08em;
}

.review__logo img {
    width: var(--space-128);
    height: auto;
}

.review__brand a {
    color: var(--foreground);
}

.review .h1-page {
    margin-top: var(--space-12);
}

.review__links {
    display: grid;
    gap: var(--space-16);
    margin-top: var(--space-48);
    max-width: var(--space-512);
}

@media (min-width: 640px) {
    .review__links {
        grid-template-columns: repeat(auto-fit, minmax(var(--space-256), 1fr));
    }
}

.pill-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    min-height: var(--space-64);
    padding: var(--space-12) var(--space-24);
    border: var(--space-1) solid var(--espresso);
    border-radius: 999px;
    font-weight: 500;
    transition: background-color .2s, color .2s;
}

.pill-link:hover {
    background: var(--espresso);
    color: var(--creme);
}

.review__note {
    margin-top: var(--space-24);
    max-width: var(--space-512);
    font-size: var(--text-14);
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* ---------- 404 (errors/404.blade.php) ---------- */
.not-found {
    display: grid;
    grid-template-areas: "flight" "intro" "links";
    gap: var(--space-32);
    padding-bottom: var(--space-96);
}

.not-found__intro {
    grid-area: intro;
}

.not-found__intro .h1-page {
    margin-top: 0;
    text-wrap: balance;
}

.not-found__code {
    margin-top: var(--space-16);
    font-size: var(--text-13);
    letter-spacing: .08em;
    color: var(--muted-foreground);
}

/* Flight path and dragonfly: positions are % of the 400 × 320 drawing */
.not-found__flight {
    grid-area: flight;
    position: relative;
    justify-self: end;
    width: min(100%, var(--space-192));
    margin-bottom: calc(var(--space-16) * -1);
    aspect-ratio: 400 / 320;
    color: var(--espresso);
}

.not-found__path {
    display: block;
    width: 100%;
    height: 100%;
    color: color-mix(in oklab, var(--espresso) 45%, transparent);
}

/* Centred on the path's end (83.5% / 23.75%), about the size of the home page's swarm */
.not-found__dragonfly {
    --size: var(--space-32);
    position: absolute;
    left: calc(83.5% - var(--size) / 2);
    top: calc(23.75% - var(--size) / 2);
    width: var(--size);
}

.not-found__dragonfly svg {
    display: block;
    width: 100%;
    height: auto;
    rotate: 76deg; /* the drawing faces up; the path arrives heading right */
}

.not-found__links {
    grid-area: links;
}

.not-found__links ul {
    display: grid;
    column-gap: var(--space-48);
    border-top: var(--space-1) solid var(--border);
}

.not-found__links li {
    border-bottom: var(--space-1) solid var(--border);
}

.not-found__links a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4) var(--space-16);
    padding-block: var(--space-16);
}

/* Same hairline as the navigation */
.not-found__name {
    position: relative;
    font-family: var(--font-display);
    font-size: var(--text-22);
    line-height: 1.25;
}

.not-found__name::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: calc(var(--space-2) * -1);
    left: 0;
    height: var(--space-1);
    background: currentColor;
    scale: 0 1;
    transition: scale var(--duration-base) var(--ease-out);
}

.not-found__links a:hover .not-found__name::after,
.not-found__links a:focus-visible .not-found__name::after {
    scale: 1 1;
}

.not-found__hint {
    font-size: var(--text-14);
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .not-found {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-areas: "intro flight" "links links";
        column-gap: var(--space-64);
        row-gap: var(--space-64);
    }

    .not-found__flight {
        align-self: center;
        width: min(100%, var(--space-384));
        margin-bottom: 0;
    }

    .not-found__dragonfly {
        --size: var(--space-48);
    }

    .not-found__links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .not-found__name {
        font-size: var(--text-24);
    }
}

/* The path draws itself once, the dragonfly lands at its end, flutters, then hovers. */
@media (prefers-reduced-motion: no-preference) {
    .not-found__trace {
        stroke-dasharray: 1;
        animation: not-found-trace 1.6s var(--ease-out) .2s backwards;
    }

    .not-found__dragonfly {
        animation: not-found-land 700ms var(--ease-out) 1.2s backwards,
        not-found-hover 2.4s ease-in-out 1.9s infinite alternate;
    }

    .not-found .m19-dragonfly__wings {
        transform-box: fill-box;
        transform-origin: center;
        animation: not-found-flap 90ms ease-in-out 1.2s 12 alternate;
    }

    .not-found .m19-dragonfly__wings--hind {
        animation-delay: 1.245s;
    }
}

@keyframes not-found-trace {
    from {
        stroke-dashoffset: 1;
    }
}

@keyframes not-found-land {
    from {
        opacity: 0;
        translate: -40% 30%;
    }
}

@keyframes not-found-hover {
    to {
        translate: 0 calc(var(--space-4) * -1);
    }
}

@keyframes not-found-flap {
    to {
        scale: 1 .6;
    }
}
