/* Design tokens
   ========================================================================== */

:root {
    /* Red. Hue rotates toward 0 as the ramp darkens so the dark end stays vivid.
       500 saturation matches the logo red (sampled ~hsl(4, 70%, 48%)), don't round it down. */
    --red-50: hsl(8, 60%, 97%);
    --red-100: hsl(7, 55%, 92%);
    --red-200: hsl(6, 55%, 82%);
    --red-300: hsl(5, 61%, 68%);
    --red-400: hsl(5, 66%, 56%);
    --red-500: hsl(5, 70%, 46%);
    --red-600: hsl(4, 74%, 38%);
    --red-700: hsl(3, 77%, 32%);
    --red-800: hsl(2, 68%, 26%);
    --red-900: hsl(1, 56%, 20%);

    /* Warm greys */
    --grey-50: hsl(40, 33%, 97%);
    --grey-100: hsl(38, 25%, 93%);
    --grey-200: hsl(37, 20%, 87%);
    --grey-300: hsl(36, 15%, 77%);
    --grey-400: hsl(35, 10%, 62%);
    --grey-500: hsl(34, 8%, 48%);
    --grey-600: hsl(33, 10%, 37%);
    --grey-700: hsl(32, 12%, 24%);
    --grey-800: hsl(31, 18%, 15%);
    --grey-900: hsl(30, 22%, 10%);
    --grey-950: hsl(30, 18%, 9%);

    /* Use these in rules, not the raw ramps above. */
    --red: var(--red-500);
    --red-dark: var(--red-600);
    --canvas: var(--grey-50);
    --white: hsl(0, 0%, 100%);
    --ink: var(--grey-900);
    --text: var(--grey-700);
    --muted: var(--grey-600);
    --border: var(--grey-200);
    --dark: var(--grey-950);

    /* The footer sits on --dark and needs its own contrast ramp. */
    --foot-text: hsl(30, 8%, 55%);
    --foot-muted: hsl(30, 6%, 55%);
    --foot-border: hsl(30, 10%, 14%);
    --foot-rule: hsl(30, 10%, 25%);

    /* Warm-tinted rather than neutral black. */
    --shadow-xs: 0 1px 2px hsla(30, 20%, 10%, 0.05);
    --shadow-sm: 0 1px 3px hsla(30, 20%, 10%, 0.08),
                 0 1px 2px hsla(30, 20%, 10%, 0.12);
    --shadow-md: 0 4px 6px hsla(30, 20%, 10%, 0.07),
                 0 2px 3px hsla(30, 20%, 10%, 0.06);
    --shadow-lg: 0 10px 20px hsla(30, 20%, 10%, 0.07),
                 0 3px 6px hsla(30, 20%, 10%, 0.05);
    --shadow-xl: 0 15px 35px hsla(30, 20%, 10%, 0.1),
                 0 5px 15px hsla(30, 20%, 10%, 0.05);

    /* Type */
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 30px;
    --text-3xl: 36px;
    --text-4xl: 48px;

    /* Space: N = px / 4 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Radii */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-full: 50%;

    /* Motion */
    --tr-fast: 0.15s;
    --tr: 0.25s;
    --tr-slow: 0.45s;

    /* Layout */
    --max-w: 1120px;
    --nav-h: 64px;
    --catbar-h: 50px;
    --accent-h: 3px;
}


/* Fonts
   ========================================================================== */

/* Self-hosted for GDPR. The vietnamese subset is for dish names like
   Phở, German text only ever loads latin. Keep latin last: the ranges
   overlap on combining marks and the last matching face wins. */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/plus-jakarta-sans-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/plus-jakarta-sans-vietnamese-italic.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/plus-jakarta-sans-latin-ext-italic.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('/static/fonts/plus-jakarta-sans-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Reset & base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    /* keeps anchor targets clear of the sticky topbar */
    scroll-padding-top: calc(var(--nav-h) + var(--space-6));
}

/* Speisekarte: the sticky category bar joins the stack */
html:has(.catbar) {
    scroll-padding-top: calc(var(--nav-h) + var(--catbar-h) + var(--space-6));
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--canvas);
    line-height: 1.55;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Layout helpers
   ========================================================================== */

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-6);
}


/* Accent bar
   ========================================================================== */

.accent-bar {
    height: var(--accent-h);
    background: var(--red);
}


/* Topbar
   ========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: var(--space-6);
}

.brand {
    display: block;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: auto;
    height: var(--space-8);
}

.topbar nav {
    display: flex;
    gap: var(--space-6);
    margin-left: auto;
}

.topbar nav a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--tr-fast);
}

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

/* current page: weight + ink carry it, no underline needed */
.topbar nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* Outlined, so the hero keeps the only filled button on the page. */
.cta-call {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--red);
    white-space: nowrap;
    text-decoration: none;
    background: none;
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    transition: all var(--tr-fast);
}

.cta-call:hover {
    color: var(--white);
    background: var(--red);
    box-shadow: var(--shadow-sm);
}

.cta-call:active {
    transform: scale(0.97);
}

/* Both of these only appear below 768px. */
.cta-call-text {
    display: none;
    margin-left: auto;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--red);
    white-space: nowrap;
    text-decoration: none;
}

.cta-call-text:hover {
    color: var(--red-dark);
}

.hamburger {
    display: none;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger svg {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--ink);
}

@media (max-width: 768px) {
    .topbar nav,
    .topbar .cta-call {
        display: none;
    }
    .cta-call-text,
    .hamburger {
        display: block;
    }
}


/* Mobile drawer
   ========================================================================== */

.mobile-drawer {
    display: none;
}

@media (max-width: 768px) {
    .mobile-drawer {
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .mobile-drawer.open {
        display: flex;
        flex-direction: column;
    }
    .mobile-drawer a {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        font-weight: 500;
        color: var(--text);
        text-decoration: none;
        border-bottom: 1px solid var(--border);
        transition: background var(--tr-fast);
    }
    .mobile-drawer a:hover {
        background: var(--grey-50);
    }
    .mobile-drawer a[aria-current="page"] {
        color: var(--ink);
        font-weight: 600;
    }
}


/* Hero
   ========================================================================== */

.hero {
    padding: var(--space-12) 0 var(--space-10);
    text-align: center;
    background: var(--canvas);
}

.hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 640px;
}

.hero h1 {
    max-width: 100%;
    margin-bottom: var(--space-4);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: var(--ink);
}

.hero .tagline {
    max-width: 48ch;
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--muted);
}

/* Inert above 768px. Below it this wrapper stacks the button and strip. */
.hero-actions {
    display: contents;
}

.cta-primary {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    background: var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--tr-fast);
}

.cta-primary:hover {
    background: var(--red-dark);
    box-shadow: var(--shadow-md);
}

.cta-primary:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-xs);
}

.hero-strip {
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-8);
    padding: var(--space-3) var(--space-2);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.hero-strip-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
}

.hero-strip-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--red);
}

a.hero-strip-item:hover {
    color: var(--ink);
}

.hero-strip-sep {
    flex-shrink: 0;
    width: 1px;
    height: var(--space-4);
    background: var(--border);
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-10) 0 var(--space-8);
    }
    .hero .wrap {
        max-width: 100%;
    }
    .hero h1 {
        font-size: var(--text-3xl);
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-6);
    }
    .cta-primary {
        display: block;
        text-align: center;
    }
    .hero-strip {
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        padding: var(--space-2) 0;
    }
    .hero-strip-item {
        padding: var(--space-3) var(--space-6);
    }
    .hero-strip-sep {
        width: 80%;
        height: 1px;
    }
}


/* Photo bands
   ========================================================================== */

.photoband {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.photoband img {
    display: block;
    width: 100%;
    /* without this the thumbnail's height attribute overrides aspect-ratio */
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .photoband {
        padding: 0 var(--space-4);
    }
    .photoband img {
        aspect-ratio: 16 / 9;
    }
}


/* Carousel
   ========================================================================== */

.carousel {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.carousel-frame {
    display: flex;
    flex: 1;
    aspect-ratio: 21 / 9;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: var(--radius-lg);
}

.carousel-frame::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    overflow: hidden;
    scroll-snap-align: start;
}

.carousel-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: var(--space-10) var(--space-5) var(--space-4);
    background: linear-gradient(hsla(30, 20%, 10%, 0), hsla(30, 20%, 10%, 0.6));
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-shadow: 0 0 24px hsla(30, 20%, 10%, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-frame {
        scroll-behavior: auto;
    }
}

.carousel-slide img {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The negative inset must exceed the blur's feather (~1.5x radius) or a light edge shows */
.carousel-slide img.carousel-blur {
    position: absolute;
    inset: -48px;
    width: calc(100% + 96px);
    max-width: none;
    height: calc(100% + 96px);
    object-fit: cover;
    filter: blur(28px) brightness(0.4) saturate(0.7);
}

.carousel-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* the circle is ::before so the press animation shrinks it, not the
   button's hit area (scaling the button drops clicks near the edge) */
.carousel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--tr-fast);
}

.carousel-btn:hover::before {
    background: var(--red);
    border-color: var(--red);
}

.carousel-btn:hover svg {
    color: var(--white);
}

.carousel-btn:active::before,
.carousel-btn:active svg {
    transform: scale(0.9);
}

.carousel-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.carousel-btn svg {
    position: relative;
    width: 14px;
    height: 14px;
    color: var(--text);
    transition: color var(--tr-fast), transform var(--tr-fast);
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.carousel-dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    background: var(--muted);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--tr);
}

/* 24x24 tap target without inflating the visual dot */
.carousel-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
}

.carousel-dot.active {
    width: 20px;
    background: var(--red);
    border-radius: var(--radius-sm);
}

.carousel-dot:hover:not(.active) {
    background: var(--text);
}

.carousel-dots-row {
    display: none;
}

@media (max-width: 768px) {
    .carousel {
        padding: 0 var(--space-4);
    }
    .carousel-frame {
        aspect-ratio: 16 / 9;
    }
    .carousel > .carousel-btn {
        display: none;
    }
    .carousel-dots {
        display: none;
    }
    .carousel-dots-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-3);
        margin-top: var(--space-3);
    }
    .carousel-dots-row .carousel-btn {
        width: 32px;
        height: 32px;
    }
    .carousel-dots-row .carousel-btn svg {
        width: 12px;
        height: 12px;
    }
    .carousel-dots-inner {
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }
}


/* Section titles
   ========================================================================== */

.sec-title {
    margin-bottom: var(--space-10);
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}


/* Menu
   ========================================================================== */

.menu-section {
    padding: var(--space-20) 0;
    background: var(--canvas);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-12);
}

.dish {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
}

/* No trailing rules above the CTA (bottom row of the 2-col grid) */
.dish:nth-last-child(-n+2) {
    border-bottom: none;
}

.dish-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-1);
}

.dish-name {
    min-width: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink);
}

.dish-price {
    font-size: var(--text-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    white-space: nowrap;
}

.dish-desc {
    font-size: var(--text-sm);
    color: var(--muted);
}

.menu-footer {
    margin-top: var(--space-10);
    text-align: center;
}

.menu-note {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--muted);
}

.cta-outline {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    transition: all var(--tr-fast);
}

.cta-outline:hover {
    color: var(--white);
    background: var(--red);
    box-shadow: var(--shadow-sm);
}

.cta-outline:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .menu-section {
        padding: var(--space-16) 0;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    /* Single column: only the true last row loses its rule */
    .dish:nth-last-child(2) {
        border-bottom: 1px solid var(--border);
    }
}


/* Location
   ========================================================================== */

.location-section {
    padding: var(--space-20) 0;
    background: var(--canvas);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.location-header address {
    font-style: normal;
    font-size: var(--text-base);
    color: var(--text);
}

.location-directions {
    max-width: 65ch;
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
    color: var(--text);
}

.location-directions p + p {
    margin-top: var(--space-2);
}

.map-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: color var(--tr-fast);
}

.map-link:hover {
    color: var(--red);
    text-decoration: underline;
}

.map-stack {
    position: relative;
}

/* Static OSM preview. A click is the consent, then the iframe fades in on top */
.map-placeholder {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.map-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -100%);
    color: var(--red);
    filter: drop-shadow(0 2px 3px hsla(30, 20%, 10%, 0.35));
}

.map-attribution {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    padding: 2px var(--space-2);
    font-size: var(--text-xs);
    color: var(--muted);
    background: hsla(0, 0%, 100%, 0.8);
    border-radius: var(--radius-sm);
}

.map-placeholder.loading {
    cursor: default;
}

.map-placeholder.loading .map-consent-card {
    opacity: 0;
    pointer-events: none;
}

.map-consent-card {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: calc(100% - var(--space-8));
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: opacity var(--tr);
}

.map-consent-card p {
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--text);
}

.map-consent-card a {
    font-weight: 500;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--grey-300);
    text-underline-offset: 2px;
}

.map-consent-card a:hover {
    text-decoration-color: var(--ink);
}

.map-load-btn {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-5);
    font-family: var(--font);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--red);
    white-space: nowrap;
    background: var(--white);
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--tr-fast);
}

.map-load-btn:hover,
.map-placeholder:hover .map-load-btn {
    color: var(--white);
    background: var(--red);
    box-shadow: var(--shadow-sm);
}

.map-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity var(--tr-slow) ease;
}

.map-wrap.loaded {
    pointer-events: auto;
}

.map-wrap.loaded iframe {
    opacity: 1;
}

@media (max-width: 768px) {
    .location-section {
        padding: var(--space-16) 0;
    }
    .location-header {
        flex-direction: column;
    }
    .map-placeholder {
        height: 280px;
    }
    .map-consent-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
        padding: var(--space-3);
        text-align: center;
    }
    .map-consent-card p {
        font-size: var(--text-xs);
    }
}


/* Hours
   ========================================================================== */

.hours-section {
    padding: var(--space-20) 0;
    background: var(--canvas);
}

.hours-section .sec-title {
    text-align: center;
}

.hours-inner {
    max-width: 520px;
    margin: 0 auto;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.hours-table tr {
    border-bottom: 1px solid var(--border);
}

.hours-table th,
.hours-table td {
    padding: var(--space-4) 0;
    font-size: var(--text-base);
    font-weight: 400;
    text-align: left;
}

.hours-table th {
    font-weight: 500;
    color: var(--ink);
}

.hours-table td {
    text-align: right;
    color: var(--muted);
}

.hours-table .closed {
    font-weight: 500;
    color: var(--red);
}

.hours-note {
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    font-style: italic;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 768px) {
    .hours-section {
        padding: var(--space-16) 0;
    }
}


/* Legal pages
   ========================================================================== */

.legal-page {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6) var(--space-24);
}

.legal-page h1 {
    margin-bottom: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.legal-page .last-updated {
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: var(--muted);
}

.legal-page h2 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.legal-page h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.legal-page p,
.legal-page ul {
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text);
}

.legal-page ul {
    padding-left: var(--space-6);
}

.legal-page li {
    margin-bottom: var(--space-1);
}

.legal-page a {
    color: var(--red);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page .highlight-box {
    margin: var(--space-10) calc(-1 * var(--space-6)) 0;
    padding: var(--space-5) var(--space-6);
    background: var(--grey-100);
    border-radius: var(--radius-lg);
}

.legal-page .highlight-box h2 {
    margin-top: 0;
}

.legal-page .highlight-box p {
    margin-bottom: 0;
    color: var(--ink);
}

@media (max-width: 768px) {
    .legal-page {
        padding: var(--space-12) var(--space-6) var(--space-16);
    }

    .legal-page .highlight-box {
        border-radius: 0;
    }
}


/* Error pages
   ========================================================================== */

.error-page {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-6) var(--space-24);
}

.error-code {
    font-size: clamp(64px, 10vw, 88px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--red);
}

.error-page h1 {
    margin-top: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.error-sub {
    margin-top: var(--space-3);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text);
}

.error-sub a {
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.error-sub a:hover {
    text-decoration: underline;
}

.error-aside {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--muted);
}

.error-aside a {
    font-weight: 500;
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: var(--grey-300);
    text-underline-offset: 2px;
}

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

.error-links .dishes {
    grid-template-columns: 1fr;
}

.error-links .dish {
    padding: 0;
    display: block;
    border-bottom: none;
}

.error-links .dish > a {
    display: grid;
    grid-template-columns: var(--space-8) 1fr auto;
    gap: 0 var(--space-1);
    align-items: start;
    margin: 0 calc(-1 * var(--space-3));
    padding: var(--space-4) var(--space-3);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background var(--tr-fast), box-shadow var(--tr-fast);
}

.error-links .dish > a:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.error-arrow {
    align-self: center;
    color: var(--grey-400);
    transition: color var(--tr-fast), transform var(--tr-fast);
}

.error-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.error-links .dish > a:hover .error-arrow {
    color: var(--red);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .error-page {
        padding: var(--space-12) var(--space-6) var(--space-16);
    }
}


/* Footer
   ========================================================================== */

footer {
    padding: var(--space-12) 0;
    background: var(--dark);
}

footer .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-8);
}

.foot-brand {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
}

.foot-sub {
    max-width: 30ch;
    font-size: var(--text-xs);
    line-height: 1.5;
    color: var(--foot-muted);
}

footer h2 {
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--foot-muted);
}

footer .row {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--foot-text);
}

footer .row a {
    color: var(--foot-text);
    text-decoration: none;
    transition: color var(--tr-fast);
}

footer .row a:hover {
    color: var(--white);
}

footer .legal {
    grid-column: 1 / -1;
    padding-top: var(--space-6);
    font-size: var(--text-xs);
    color: var(--foot-muted);
    border-top: 1px solid var(--foot-border);
}

footer .legal a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--foot-rule);
    text-underline-offset: 2px;
}

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

@media (max-width: 768px) {
    footer .wrap {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}


/* Speisekarte page
   ========================================================================== */

.page-head {
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.page-head .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 640px;
}

/* same scale as the hero h1, both are centered page titles over the info strip */
.page-head h1 {
    margin-bottom: var(--space-3);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

.page-head .lead {
    max-width: 48ch;
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.page-head .hero-strip {
    margin-top: var(--space-8);
}

.catbar {
    position: sticky;
    top: var(--nav-h);
    z-index: 90;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.catbar-scroll {
    display: flex;
    gap: var(--space-1);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-2) var(--space-6);
    /* "safe": plain center makes overflowing lead chips unreachable */
    justify-content: safe center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.catbar-scroll::-webkit-scrollbar {
    display: none;
}

/* keyed on pointer, not width: mouse users can't swipe the hidden-scrollbar row,
   so every hover device wraps, however narrow the window */
@media (hover: hover) and (pointer: fine) {
    .catbar-scroll {
        flex-wrap: wrap;
        row-gap: var(--space-1);
        justify-content: center;
        overflow-x: visible;
    }
}

.cat-link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.2;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    transition: background var(--tr-fast), color var(--tr-fast);
}

.cat-link:hover {
    color: var(--ink);
    background: var(--grey-100);
}

/* active state carries weight + red; inactive stays de-emphasised */
.cat-link.active {
    color: var(--red-700);
    background: var(--red-50);
    font-weight: 600;
}

.menu-page {
    padding: var(--space-2) 0 var(--space-20);
}

/* offset for the sticky stack lives on html's scroll-padding-top only.
   Adding scroll-margin here too would double it */
.cat {
    margin-top: var(--space-16);
}

.cat:first-of-type {
    margin-top: var(--space-12);
}

.cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--grey-300);
    margin-bottom: var(--space-2);
}

.cat-head h2 {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
}

.cat-head .range {
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.cat-note {
    margin: var(--space-3) 0 var(--space-1);
    font-size: var(--text-sm);
    color: var(--muted);
    text-wrap: pretty;
}

.dishes {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 0 var(--space-12);
}

.menu-page .dish {
    display: grid;
    grid-template-columns: var(--space-8) 1fr;
    gap: 0 var(--space-1);
}

/* every row keeps its rule. The homepage teaser drops the last ones */
.menu-page .dish:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
}

/* de-emphasised, but customers order by number: keep contrast at 4.5:1+ (--muted, not lighter) */
.dish-no {
    font-size: var(--text-sm);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
    color: var(--muted);
}

.menu-page .dish-name {
    line-height: 1.4;
    text-wrap: pretty;
}

.menu-page .dish-desc {
    margin-top: 2px;
    line-height: 1.5;
    text-wrap: pretty;
}

/* footnote refs stay --muted, not lighter: allergen marks are required
   content (LMIV) and need 4.5:1 contrast */
.dish-name sup,
.cat-note sup {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 1px;
}

/* letter/glyph carries the meaning, colour only reinforces it */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: 1px;
    margin-left: var(--space-2);
    border-radius: var(--radius-sm);
}

.tag-v {
    color: hsl(148, 45%, 30%);
    background: hsl(140, 38%, 95%);
}

.tag-hot {
    color: var(--red-600);
    background: var(--red-100);
}

.tag-ref {
    color: var(--muted);
    background: var(--grey-100);
    font-variant-numeric: tabular-nums;
}

/* a bare glyph is unreadable at badge size, the word carries it */
.tag-hot svg {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-6);
    align-items: center;
    width: fit-content;
    margin-top: var(--space-10);
    margin-inline: auto;
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--muted);
}

.legend-item .tag {
    margin-left: 0;
}

.legend-item a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--grey-300);
    text-underline-offset: 2px;
}

.legend-item a:hover {
    text-decoration-color: var(--muted);
}

.notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.notes h3 {
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.notes p {
    font-size: var(--text-xs);
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.notes .notes-legal {
    margin-top: var(--space-3);
}

.notes ol {
    columns: 2;
    column-gap: var(--space-6);
    padding-left: var(--space-4);
    font-size: var(--text-xs);
    line-height: 1.7;
    color: var(--muted);
}

.notes ol li {
    break-inside: avoid;
}

.print-link {
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--grey-300);
    text-underline-offset: 2px;
    cursor: pointer;
}

.print-link:hover {
    text-decoration-color: var(--ink);
}

@media (max-width: 768px) {
    .page-head {
        padding: var(--space-10) 0 var(--space-6);
    }
    .page-head h1 {
        font-size: var(--text-3xl);
    }
    .page-head .lead {
        font-size: var(--text-base);
    }
    .page-head .wrap {
        max-width: 100%;
    }
    .page-head .hero-strip {
        align-self: stretch;
        margin-top: var(--space-6);
    }
    .catbar-scroll {
        padding: var(--space-2) var(--space-4);
    }
    .dishes {
        grid-template-columns: 1fr;
    }
    .menu-page .dish:nth-last-child(2) {
        border-bottom: 1px solid var(--border);
    }
    .cat {
        margin-top: var(--space-12);
    }
    .notes {
        grid-template-columns: 1fr;
    }
    .notes ol {
        columns: 1;
    }
    .legend {
        gap: var(--space-2) var(--space-4);
    }
}


/* Print
   ========================================================================== */

@media print {
    @page {
        margin: 15mm;
    }
    .accent-bar,
    .topbar,
    .catbar,
    .mobile-drawer,
    .page-head .hero-strip,
    footer,
    .print-link {
        display: none !important;
    }
    body {
        background: var(--white);
        color: #000;
        font-size: 11pt;
    }
    .page-head {
        padding: 0 0 var(--space-4);
        text-align: left;
    }
    .page-head .wrap {
        max-width: 100%;
        align-items: flex-start;
    }
    .page-head h1 {
        font-size: 22pt;
    }
    .menu-page {
        padding: 0;
    }
    /* categories must flow across pages. Pinning them whole pushes
       every one onto its own sheet */
    .cat {
        margin-top: var(--space-5);
    }
    .cat-head {
        break-after: avoid;
    }
    .menu-page .dish {
        break-inside: avoid;
        padding: var(--space-2) 0;
    }
    /* paper is wide enough for two columns even at the mobile breakpoint */
    .dishes {
        grid-template-columns: 1fr 1fr;
        gap: 0 var(--space-6);
    }
    .legend {
        box-shadow: none;
        border: 1px solid var(--grey-300);
    }
    /* ordering numbers and allergen refs must stay legible on paper */
    .dish-no,
    .dish-name sup,
    .cat-note sup,
    .tag-ref {
        color: #000;
    }
    .notes {
        margin-top: var(--space-6);
    }
}
