/* Restaurant homepage (docs/restaurant-homepage.md). Everything is scoped to
   body.website; the three design templates only change tokens (type, radius,
   image treatment) — never the markup or the data. Colors come from the
   restaurant branding (--ws-primary, --ws-on-primary, --ws-background). */
body.website {
    --ws-text: #1f1a17;
    --ws-muted: #57504a;
    --ws-surface: #fff;
    --ws-line: rgba(31, 26, 23, .12);
    --ws-heading-font: var(--ws-brand-font, system-ui, sans-serif);
    --ws-body-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ws-radius: 14px;
    --ws-hero-height: min(78vh, 720px);
    --ws-heading-weight: 700;
    --ws-heading-transform: none;
    --ws-section-space: clamp(3rem, 7vw, 5.5rem);
    /* The brand color as text on the header/menu surface — only where it reads well: a light
       brand color (dark text on its buttons, see BrandingSettings::contrastColor) falls back to
       the text color; the icon and the weight still set the entry apart. */
    --ws-primary-ink: var(--ws-primary);
    margin: 0;
    color: var(--ws-text);
    background: var(--ws-background, #faf7f3);
    font: 1rem/1.6 var(--ws-body-font);
    padding-bottom: env(safe-area-inset-bottom);
}
body.website.ws-primary-light { --ws-primary-ink: var(--ws-text); }
body.ws-template--classic {
    --ws-heading-font: Georgia, "Times New Roman", serif;
    --ws-body-font: Georgia, "Times New Roman", serif;
    --ws-radius: 2px;
    --ws-heading-weight: 600;
}
body.ws-template--modern {
    --ws-radius: 18px;
}
body.ws-template--food-first {
    --ws-radius: 10px;
    --ws-heading-weight: 800;
    --ws-heading-transform: uppercase;
    --ws-hero-height: min(70vh, 640px);
}
body.website *, body.website *::before, body.website *::after { box-sizing: border-box; }
body.website a { color: inherit; }
body.website img { max-width: 100%; display: block; }
body.website h1, body.website h2, body.website h3 {
    font-family: var(--ws-heading-font);
    font-weight: var(--ws-heading-weight);
    text-transform: var(--ws-heading-transform);
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}
body.website h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
body.website h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
body.website h3 { font-size: 1.2rem; }
.website .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.website .skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .6rem 1rem; }
.website .skip-link:focus { left: 1rem; }
.website :focus-visible { outline: 3px solid var(--ws-primary); outline-offset: 2px; }
.ws-container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.ws-narrow { width: min(760px, 100% - 2rem); }
.ws-muted { color: var(--ws-muted); }
.ws-small { font-size: .875rem; }

/* Buttons */
.ws-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 44px; padding: .65rem 1.2rem; border-radius: var(--ws-radius);
    font-weight: 700; text-decoration: none; border: 2px solid transparent; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ws-button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.website .ws-button--primary { background: var(--ws-primary); color: var(--ws-on-primary); }
.website .ws-button--light { background: #fff; color: var(--ws-text); }
.website .ws-button--ghost { border-color: currentColor; color: var(--ws-text); background: transparent; }
.ws-button--large { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
/* Call-to-action icons (website/_icon.html.twig): bag = online ordering, calendar = reservation. */
.ws-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.ws-button:has(.ws-icon) { gap: .55rem; }
.ws-icon--arrow-right { margin-inline-start: .1rem; transition: transform .15s ease; }
a:hover > .ws-icon--arrow-right { transform: translateX(3px); }
.ws-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.ws-link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; }

/* Preview bar */
.ws-preview-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; padding: .55rem 1rem; background: #7a5b00; color: #fff; font-weight: 600; }
.ws-preview-bar a { color: #fff; }

/* Info bar: opening status, address, phone; secondary pages and languages on the right.
   Scrolls away with the page — only the header below it stays. Phones show it in the opened menu. */
.ws-topbar { background: color-mix(in srgb, var(--ws-text) 4%, var(--ws-surface)); border-bottom: 1px solid var(--ws-line); font-size: .85rem; color: var(--ws-muted); }
.ws-topbar-inner { width: min(1180px, 100% - 2rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 38px; flex-wrap: wrap; padding-block: .25rem; }
.ws-topbar-info { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; }
.ws-topbar-info a, .ws-topbar-nav a { color: inherit; text-decoration: none; }
.ws-topbar-info a:hover, .ws-topbar-nav a:hover { color: var(--ws-text); text-decoration: underline; }
.ws-topbar-status { display: inline-flex; align-items: center; gap: .45rem; color: var(--ws-text); font-weight: 600; }
.ws-status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2fa866; flex-shrink: 0; }
.ws-topbar-status.is-closed .ws-status-dot { background: #d9534a; }
.ws-topbar-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.1rem; }
.ws-topbar-nav a[aria-current="page"] { color: var(--ws-text); font-weight: 600; }
.ws-topbar-nav .ws-nav-locales { padding-inline-start: 1.1rem; border-inline-start: 1px solid var(--ws-line); }

/* Header */
.ws-header { position: sticky; top: 0; z-index: 50; background: var(--ws-surface); border-bottom: 1px solid var(--ws-line); }
.ws-preview-bar ~ .ws-header { top: 2.4rem; }
.ws-header-inner { width: min(1180px, 100% - 2rem); margin-inline: auto; display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.ws-brand { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.ws-logo { max-height: 48px; width: auto; }
.ws-brand-name { font-family: var(--ws-heading-font); font-weight: var(--ws-heading-weight); font-size: 1.35rem; text-transform: var(--ws-heading-transform); }
/* Wide screens: the link bar; below 1024 px the collapsible menu (a closed <details> hides its content whatever the CSS says). */
.ws-nav-toggle { display: none; }
.ws-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.ws-nav--bar { flex: 1; flex-wrap: nowrap; min-width: 0; gap: 1.4rem; font-size: .975rem; }
.ws-nav--bar a { white-space: nowrap; }
.ws-nav a { text-decoration: none; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; }
.ws-nav a[aria-current="page"], .ws-nav a:hover { border-bottom-color: var(--ws-primary); }
.ws-nav-locales { display: inline-flex; gap: .5rem; font-size: .85rem; }
.ws-nav-locales a[aria-current] { color: var(--ws-primary-ink); font-weight: 700; }
/* Superadmins only: a language the restaurant has not enabled (SuperadminLanguages). */
.ws-nav-locales a.ws-locale-not-enabled { opacity: .55; text-decoration: underline dotted; text-underline-offset: .2em; }
/* "Mehr": the link bar's entries beyond the limit, in a small drop-down (works without JS). */
.ws-nav-more { position: relative; }
.ws-nav-more > summary { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; font-weight: 600; cursor: pointer; list-style: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ws-nav-more > summary::-webkit-details-marker { display: none; }
.ws-nav-more > summary.is-current, .ws-nav-more > summary:hover { border-bottom-color: var(--ws-primary); }
.ws-nav-more-chevron { width: .4rem; height: .4rem; margin-inline-start: .15rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.ws-nav-more[open] .ws-nav-more-chevron { transform: translateY(1px) rotate(-135deg); }
.ws-nav-more-panel { position: absolute; top: calc(100% + .6rem); inset-inline-start: -1rem; z-index: 5; display: grid; min-width: 13rem; padding: .4rem 0; background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: min(var(--ws-radius), 12px); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.ws-nav--bar .ws-nav-more-panel a { padding: .55rem 1rem; border-bottom: 0; }
.ws-nav--bar .ws-nav-more-panel a:hover, .ws-nav--bar .ws-nav-more-panel a[aria-current="page"] { background: color-mix(in srgb, var(--ws-primary) 10%, transparent); }
/* Header buttons: "Tisch reservieren" outlined, "Jetzt online bestellen" filled, set off from the link bar. */
.ws-header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.ws-header-actions .ws-button { padding-block: .6rem; }
.ws-label-short { display: none; }
@media (min-width: 1024px) {
    .ws-header-actions { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--ws-line); }
}
/* Small laptops: short button labels ("Reservieren", "Bestellen") leave the link bar its room. */
@media (min-width: 861px) and (max-width: 1180px) {
    .ws-header-actions .ws-label-long { display: none; }
    .ws-header-actions .ws-label-short { display: inline; }
    .ws-header-inner, .ws-nav--bar { gap: 1.1rem; }
}

/* Hero */
.ws-hero { position: relative; display: grid; align-items: end; min-height: 420px; background: var(--ws-primary); color: var(--ws-on-primary); overflow: hidden; }
.ws-hero--image { min-height: var(--ws-hero-height); color: #fff; }
.ws-hero-media { position: absolute; inset: 0; }
.ws-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Scrim under the white hero copy. Its strength comes from the photo's measured brightness
   (App\Website\HeroLegibility → --ws-hero-scrim-sm / -lg on the section, per layout): only
   as dark as the picture needs for WCAG AA. Where that would turn the photo murky (very
   bright or busy pictures) the scrim stays light and the copy gets a dark panel of its own
   (.ws-hero--panel-sm / -lg). Unmeasured photos keep the safe default of 55 % black behind
   every text spot (white text on 55 % black over pure white ≈ 4.7:1). The layout numbers
   below are mirrored in HeroLegibility — keep them in sync. */
.ws-hero--image { --ws-scrim: var(--ws-hero-scrim-sm, .55); }
.ws-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / var(--ws-scrim)) 0%, rgb(0 0 0 / calc(var(--ws-scrim) + .03)) 50%, rgb(0 0 0 / calc(var(--ws-scrim) + .2)) 100%); pointer-events: none; }
.ws-hero-panel { min-width: 0; }
/* Secondary hero button on the photo: outlined, so the primary action stays the one filled button. */
.website .ws-hero--image .ws-button--light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .85); }
.website .ws-hero--image .ws-button--light:hover { background: rgb(255 255 255 / .12); }
.ws-template--classic .ws-hero-panel { margin-inline: auto; }
@media (max-width: 860px) {
    .ws-hero--panel-sm .ws-hero-panel { background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 1.25rem; border-radius: max(var(--ws-radius, 12px), 12px); }
}
/* Wide screens with left-aligned copy: dark behind the text column, the rest of the
   picture lightens towards the right. (Classic centres its copy and keeps the even scrim; Elegant and
   Café put the picture beside the text and drop the scrim.) */
@media (min-width: 861px) {
    .ws-hero--image { --ws-scrim: var(--ws-hero-scrim-lg, .55); }
    .ws-template--modern .ws-hero--image::after, .ws-template--food-first .ws-hero--image::after {
        /* Right edge of the copy: column start (centred 1180 px column) + widest text line
           (16ch headline at Food-first's 4.6rem, plus slack). */
        --ws-hero-text-end: calc(max(1rem, 50% - 590px) + 780px);
        background:
            linear-gradient(90deg, rgb(0 0 0 / calc(var(--ws-scrim) + .07)) 0, rgb(0 0 0 / var(--ws-scrim)) var(--ws-hero-text-end), rgb(0 0 0 / calc(var(--ws-scrim) * .2)) calc(var(--ws-hero-text-end) + 320px)),
            linear-gradient(180deg, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / .35) 100%);
    }
    .ws-hero--panel-lg .ws-hero-panel { width: fit-content; max-width: 100%; background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: max(var(--ws-radius, 12px), 12px); }
}
.ws-hero-copy { position: relative; z-index: 1; width: min(1180px, 100% - 2rem); margin: 0 auto; padding: 4rem 0 3.5rem; max-width: 1180px; }
.ws-hero-copy h1 { max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.ws-hero--image .ws-hero-copy h1 { text-shadow: 0 1px 3px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.35); }
.ws-hero--image .ws-eyebrow, .ws-hero--image .ws-hero-tagline { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ws-hero--image .ws-eyebrow { opacity: 1; }
.ws-hero-tagline { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 46ch; margin: 0; }
.ws-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0 0 .8rem; opacity: .9; }
.ws-open-status { display: inline-flex; align-items: center; gap: .5rem; margin: 1.1rem 0 0; padding: .35rem .8rem; border-radius: 999px; background: rgba(0,0,0,.35); font-weight: 600; font-size: .95rem; }
.ws-open-status span { width: .6rem; height: .6rem; border-radius: 50%; background: #3ecf7a; }
.ws-open-status.is-closed span { background: #e05a4f; }
.ws-template--classic .ws-hero-copy { text-align: center; }
.ws-template--classic .ws-hero-copy h1, .ws-template--classic .ws-hero-tagline { margin-inline: auto; }
.ws-template--classic .ws-hero .ws-actions { justify-content: center; }
.ws-template--food-first .ws-hero-copy h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }

/* Sections */
.ws-section { padding: var(--ws-section-space) 0; }
.ws-section + .ws-section { border-top: 1px solid var(--ws-line); }
.ws-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ws-section-head h2 { margin: 0; }
.ws-more { font-weight: 700; color: var(--ws-primary) !important; text-decoration: none; }
.ws-page-head { padding-bottom: 1rem; }
.ws-prose p { font-size: 1.1rem; margin: 0 0 1em; }
.ws-template--classic .ws-about { text-align: center; }
.ws-about { background: var(--ws-surface); }

/* Dishes */
.ws-dish-grid, .ws-event-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ws-template--food-first .ws-dish-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ws-dish, .ws-event { background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); overflow: hidden; display: flex; flex-direction: column; }
.ws-dish-image, .ws-event-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ws-event-image { aspect-ratio: 16 / 10; }
.ws-dish-image img, .ws-event-image img { width: 100%; height: 100%; object-fit: cover; }
.ws-template--food-first .ws-dish-image { aspect-ratio: 1 / 1; }
.ws-dish-body, .ws-event-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ws-dish-body h3, .ws-event-body h3 { margin: 0; }
.ws-dish-body p, .ws-event-body p { margin: 0; color: var(--ws-muted); }
.ws-dish-price { color: var(--ws-text) !important; font-weight: 800; font-size: 1.1rem; margin-top: auto !important; padding-top: .4rem; }
.ws-dish-order { font-weight: 700; color: var(--ws-primary) !important; text-decoration: none; }
.ws-event-badge { font-weight: 700; color: var(--ws-primary) !important; font-size: .9rem; }
.ws-event .post-cta { align-self: flex-start; margin-top: auto; font-weight: 700; color: var(--ws-primary); }
.ws-upcoming { margin-top: 2rem; }
.ws-upcoming ul { padding-left: 1.1rem; }

/* Full menu page */
.ws-menu-index { display: flex; gap: .6rem; flex-wrap: wrap; padding-bottom: 1rem; }
.ws-menu-index a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--ws-line); background: var(--ws-surface); text-decoration: none; font-weight: 600; }
.ws-menu-badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: var(--ws-primary); color: var(--ws-on-primary); font-weight: 700; font-size: .85rem; }
.ws-category { margin-top: 2rem; }
.ws-category h3 { border-bottom: 2px solid var(--ws-primary); padding-bottom: .35rem; }
.ws-menu-list { list-style: none; margin: 0; padding: 0; }
.ws-menu-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px dashed var(--ws-line); }
.ws-menu-item:not(:has(.ws-menu-thumb)) { grid-template-columns: 1fr auto auto; }
.ws-menu-item.is-unavailable { opacity: .55; }
.ws-menu-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--ws-radius) / 2); }
.ws-menu-text { display: flex; flex-direction: column; }
.ws-menu-name { font-weight: 700; }
.ws-menu-description { color: var(--ws-muted); font-size: .92rem; }
.ws-menu-price { font-weight: 800; white-space: nowrap; }
.ws-menu-order { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ws-primary); color: var(--ws-on-primary) !important; text-decoration: none; font-weight: 800; font-size: 1.2rem; }

/* Visit: hours + location */
.ws-visit-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ws-hours, .ws-location { background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 1.5rem; }
/* The embedded map (website/_map.html.twig): a placeholder until the visitor agrees to load it. */
.ws-map { margin-top: 2rem; overflow: hidden; background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); }
.ws-map iframe:not([hidden]) { display: block; width: 100%; height: clamp(260px, 45vw, 420px); border: 0; }
.ws-map .consent-placeholder { align-content: center; min-height: clamp(220px, 30vw, 300px); border: 0; border-radius: 0; background: var(--ws-surface); color: var(--ws-muted); }
.ws-map .consent-placeholder-load { border-color: var(--ws-primary); background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-hours h4 { margin: 1.4rem 0 .5rem; font-size: 1rem; }
.ws-hours-subtitle { font-weight: 700; margin: 1rem 0 .3rem; }
.ws-hours-list { margin: 0; }
.ws-hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--ws-line); }
.ws-hours-row dt { font-weight: 600; }
.ws-hours-row dd { margin: 0; text-align: right; }
.ws-hours-row.is-today { color: var(--ws-primary); font-weight: 700; }
.ws-service-list { padding-left: 1.1rem; margin: 0; }
.ws-address { font-style: normal; font-size: 1.1rem; margin-bottom: 1rem; }
.ws-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }

/* Order band */
.ws-order-band { background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-order-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ws-order-band h2 { margin: 0 0 .3rem; }
.ws-order-band p { margin: 0; }

/* Footer */
.ws-footer { background: #1d1916; color: #efe9e3; padding: 3rem 0 6rem; }
.ws-footer-inner { width: min(1180px, 100% - 2rem); margin-inline: auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ws-footer-col { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.ws-footer-col address { font-style: normal; }
.ws-footer-col p { margin: 0; }
.ws-footer-name, .ws-footer-title { font-weight: 800; margin-bottom: .4rem !important; }
.ws-footer a { text-decoration: none; }
.ws-footer a:hover { text-decoration: underline; }
.ws-footer .ws-social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: .4rem 0 0; }
.ws-footer .ws-social svg { width: 22px; height: 22px; fill: currentColor; }
/* Footer buttons "Online bestellen" (filled) and "Tisch reservieren" (outlined light on the dark footer). */
.ws-footer-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem !important; }
.ws-footer .ws-footer-actions a, .ws-footer .ws-footer-actions a:hover { text-decoration: none; }
.website .ws-footer .ws-button--ghost { color: #fff; border-color: rgb(255 255 255 / .7); }
.website .ws-footer .ws-button--ghost:hover { background: rgb(255 255 255 / .1); }
.ws-footer-actions .ws-button--primary { box-shadow: 0 0 0 1px rgb(255 255 255 / .25); }
.ws-footer-bottom { width: min(1180px, 100% - 2rem); margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; }
.ws-footer-bottom .footer-powered img { height: 18px; width: auto; display: inline-block; vertical-align: middle; filter: brightness(0) invert(1); }
.ws-mobile-order { display: none; }

/* Collapsed menu (below 1024 px): logo, buttons, burger on the right; the opened menu drops
   down below the header as a panel of its own and scrolls when it is taller than the screen. */
@media (max-width: 1023px) {
    .ws-header-inner { gap: .75rem; }
    .ws-nav--bar { display: none; }
    .ws-header-actions { margin-inline-start: auto; }
    .ws-nav-toggle { display: block; }
    .ws-nav-toggle > summary { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -.6rem; cursor: pointer; list-style: none; }
    .ws-nav-toggle > summary::-webkit-details-marker { display: none; }
    .ws-nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ws-burger { display: grid; gap: 5px; }
    .ws-burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
    .ws-nav-toggle[open] .ws-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .ws-nav-toggle[open] .ws-burger span:nth-child(2) { opacity: 0; }
    .ws-nav-toggle[open] .ws-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .ws-nav-toggle:not([open]) .ws-nav-panel { display: none; }
    .ws-nav-panel {
        position: absolute; inset-inline: 0; top: 100%; max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain;
        padding: .25rem max(1rem, 50% - 590px) 1.25rem; background: var(--ws-surface); border-bottom: 1px solid var(--ws-line); box-shadow: 0 18px 30px rgba(0,0,0,.12);
    }
    .ws-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .ws-nav a { padding: .8rem 0; border-bottom: 1px solid var(--ws-line); }
    .ws-nav-panel-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
}
/* Tablets: info bar on top, both buttons in the header row — the opened menu holds the pages only. */
@media (min-width: 861px) and (max-width: 1023px) {
    .ws-nav-panel-actions, .ws-nav-panel-info, .ws-nav--secondary { display: none; }
}
/* Phones: logo and burger only. The opened menu starts with what is needed on the way — open
   now?, address, route, call —, then the pages, the secondary pages (smaller) and languages,
   then the buttons; the order button stays reachable at the bottom while the menu is closed. */
@media (max-width: 860px) {
    .ws-topbar { display: none; }
    .ws-header-inner { min-height: 64px; }
    .ws-header-actions { display: none; }
    .ws-nav-toggle { margin-inline-start: auto; }
    .ws-nav-panel-info { display: grid; gap: .35rem; margin: .75rem 0 .5rem; padding: .9rem 1rem; border-radius: min(var(--ws-radius), 12px); background: color-mix(in srgb, var(--ws-text) 5%, var(--ws-surface)); font-size: .95rem; }
    .ws-nav-panel-info p { margin: 0; }
    .ws-nav-panel-address { color: var(--ws-muted); }
    .ws-nav-panel-quick { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: .25rem; }
    .ws-nav-panel-quick:empty { display: none; }
    .ws-nav-panel-quick a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; color: var(--ws-primary-ink); text-decoration: none; }
    .ws-nav-panel-quick .ws-icon { width: 1.15em; height: 1.15em; }
    .ws-nav--secondary { margin-top: .5rem; font-size: .9rem; }
    .ws-nav--secondary a { padding: .6rem 0; font-weight: 500; color: var(--ws-muted); }
    .ws-nav--secondary a:last-of-type { border-bottom: 0; }
    .ws-nav--secondary .ws-nav-locales { padding-top: .6rem; }
    .ws-nav--secondary .ws-nav-locales a { padding: .4rem .2rem; border-bottom: 0; }
    .ws-mobile-order {
        display: flex; position: fixed; z-index: 55; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
        justify-content: center; align-items: center; gap: .55rem; min-height: 52px; border-radius: var(--ws-radius);
        background: var(--ws-primary); color: var(--ws-on-primary) !important; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25);
    }
    body.website:has(.ws-nav-toggle[open]) .ws-mobile-order { display: none; }
    .ws-menu-item { grid-template-columns: auto 1fr auto; }
    .ws-menu-item .ws-menu-order { grid-column: 3; }
    .ws-menu-item:not(:has(.ws-menu-thumb)) { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
    .ws-button { transition: none; }
    .ws-button:hover { transform: none; }
    .ws-icon--arrow-right, .ws-burger span, .ws-nav-more-chevron { transition: none; }
    a:hover > .ws-icon--arrow-right { transform: none; }
}

/* Event detail */
.ws-event-figure { margin: 1.5rem 0; border-radius: var(--ws-radius); overflow: hidden; position: relative; }
.ws-event-figure img { width: 100%; height: auto; }
.website .ws-event-detail .post-cta { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.2rem; border-radius: var(--ws-radius); background: var(--ws-primary); color: var(--ws-on-primary); font-weight: 700; text-decoration: none; }
.website .ws-event-detail .post-cta--secondary { background: transparent; color: var(--ws-text); border: 2px solid currentColor; }
.ws-share { margin-top: 2rem; color: var(--ws-muted); }
.ws-other-times { padding-bottom: 0; }
.ws-menu--other-times .ws-menu-badge { background: transparent; color: var(--ws-primary); border: 2px solid var(--ws-primary); }

/* Phase 2 sections */
.ws-gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ws-gallery-item { position: relative; margin: 0; border-radius: var(--ws-radius); overflow: hidden; background: var(--ws-surface); }
.ws-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.ws-gallery-item a:hover img { transform: scale(1.03); }
.ws-gallery-item figcaption { padding: .5rem .75rem; font-size: .9rem; color: var(--ws-muted); }
.ws-gallery-intro { max-width: 44rem; margin: -.25rem 0 1.5rem; color: var(--ws-muted); }
.ws-gallery-intro p { margin: 0 0 .75em; }
.ws-gallery-intro p:last-child { margin-bottom: 0; }
.ws-gallery-item a { display: block; cursor: zoom-in; }

/* Lightbox of a picture gallery (website/_lightbox.html.twig, website.js): full screen on a near-black ground —
   counter and × on top, the picture as large as fits in the middle (a scroll-snapped strip, so it is swiped),
   ‹ › at the sides, caption and thumbnails below. Its colors are its own, not the restaurant's: pictures read
   best on dark, whatever the design template. */
html.ws-lightbox-open { overflow: hidden; }
.website .ws-lightbox {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    color: #f5f2ef; background: rgb(14 12 11); font-family: var(--ws-body-font); overflow: hidden;
}
.website .ws-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ws-lightbox::backdrop { background: rgb(14 12 11 / .5); }
.ws-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: max(.75rem, env(safe-area-inset-top)) clamp(.75rem, 3vw, 1.5rem) .5rem; }
.ws-lightbox-counter { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; opacity: .8; }
.ws-lightbox-track {
    display: flex; margin: 0; padding: 0; list-style: none; min-height: 0;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ws-lightbox-track::-webkit-scrollbar { display: none; }
.ws-lightbox-slide {
    flex: 0 0 100%; display: grid; place-items: center; min-width: 0; padding: .25rem clamp(.75rem, 7vw, 6rem); box-sizing: border-box;
    container-type: size; scroll-snap-align: center; scroll-snap-stop: always;
}
.ws-lightbox-figure { position: relative; display: flex; margin: 0; }
.website .ws-lightbox-figure img {
    display: block; width: auto; height: auto; max-width: 100cqw; max-height: 100cqh; object-fit: contain; border-radius: 4px;
    box-shadow: 0 24px 80px rgb(0 0 0 / .45); user-select: none; -webkit-user-select: none;
}
/* While a picture loads: a soft pulsing placeholder; it fades in once there. */
.ws-lightbox-slide:not(.is-loaded) .ws-lightbox-figure { width: min(100cqw, 36rem); aspect-ratio: 4 / 3; max-height: 100cqh; border-radius: 4px; background: rgb(255 255 255 / .06); }
.ws-lightbox-slide:not(.is-loaded) .ws-lightbox-figure img { opacity: 0; }
.ws-lightbox-foot { display: grid; justify-items: center; gap: .75rem; padding: .75rem clamp(.75rem, 3vw, 1.5rem) max(1rem, env(safe-area-inset-bottom)); }
.ws-lightbox-caption { max-width: 48rem; min-height: 1.5em; margin: 0; text-align: center; font-size: .95rem; line-height: 1.5; color: rgb(245 242 239 / .9); }
.ws-lightbox-caption[hidden] { display: block; visibility: hidden; }
.ws-lightbox-thumbs { display: flex; gap: .5rem; max-width: 100%; margin: 0; padding: .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ws-lightbox-thumbs::-webkit-scrollbar { display: none; }
.ws-lightbox-thumbs li { flex: none; }
.website .ws-lightbox-thumb {
    display: block; width: 4rem; height: 3rem; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / .08);
    opacity: .45; cursor: pointer; transition: opacity .2s ease, outline-color .2s ease; outline: 2px solid transparent; outline-offset: 2px;
}
.ws-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.website .ws-lightbox-thumb:hover { opacity: .8; }
.website .ws-lightbox-thumb[aria-current] { opacity: 1; outline-color: #f5f2ef; }
.website .ws-lightbox-button {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
    color: #f5f2ef; background: rgb(255 255 255 / .1); cursor: pointer; transition: background-color .15s ease, opacity .15s ease;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ws-lightbox-close { margin-inline-start: auto; }
.website .ws-lightbox-button:hover:not(:disabled) { background: rgb(255 255 255 / .22); }
.website .ws-lightbox-button:disabled { opacity: 0; pointer-events: none; }
.website :is(.ws-lightbox-button, .ws-lightbox-thumb):focus-visible { outline: 2px solid #f5f2ef; outline-offset: 2px; }
.website .ws-lightbox-arrow { position: absolute; top: 50%; width: 3.25rem; height: 3.25rem; transform: translateY(-50%); }
.ws-lightbox-arrow--prev { inset-inline-start: clamp(.5rem, 2vw, 1.5rem); }
.ws-lightbox-arrow--next { inset-inline-end: clamp(.5rem, 2vw, 1.5rem); }
.ws-lightbox-arrow:dir(rtl) svg { transform: scaleX(-1); }
.ws-lightbox--single :is(.ws-lightbox-counter, .ws-lightbox-arrow, .ws-lightbox-thumbs) { display: none !important; }
/* Phones: swiping moves on, the thumbnails jump — the side buttons would only cover the picture. */
@media (hover: none) and (max-width: 640px) { .website .ws-lightbox-arrow { display: none; } }
@media (prefers-reduced-motion: no-preference) {
    .ws-lightbox-track { scroll-behavior: smooth; }
    .ws-lightbox[open] { animation: ws-lightbox-in .25s ease-out; }
    .ws-lightbox[open] .ws-lightbox-figure { animation: ws-lightbox-zoom .3s cubic-bezier(.2, .8, .2, 1); }
    .ws-lightbox-figure img { transition: opacity .3s ease; }
    .ws-lightbox-slide:not(.is-loaded) .ws-lightbox-figure { animation: ws-lightbox-pulse 1.4s ease-in-out infinite; }
}
@keyframes ws-lightbox-in { from { opacity: 0; } }
@keyframes ws-lightbox-zoom { from { transform: scale(.96); opacity: 0; } }
@keyframes ws-lightbox-pulse { 50% { background: rgb(255 255 255 / .12); } }
.ws-team-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.ws-team-member { text-align: center; }
.ws-team-member h3 { margin: .75rem 0 .2rem; }
.ws-team-member p { margin: .3rem 0; color: var(--ws-muted); }
.ws-team-photo, .ws-team-initial { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: grid; place-items: center; }
.ws-team-initial { background: var(--ws-primary); color: var(--ws-on-primary); font-size: 3rem; font-family: var(--ws-heading-font); font-weight: var(--ws-heading-weight); }
.ws-team-role { font-weight: 700; color: var(--ws-primary) !important; }
.ws-job-teaser { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ws-job-teaser li { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: .75rem 1.1rem; }
.ws-job, .ws-faq-item { background: var(--ws-surface); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: .9rem 1.1rem; margin-bottom: .75rem; }
.ws-job > summary, .ws-faq-item > summary { cursor: pointer; font-weight: 700; display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; }
.ws-job[open] > summary, .ws-faq-item[open] > summary { margin-bottom: .75rem; }
.ws-job-type { font-weight: 600; font-size: .85rem; color: var(--ws-muted); white-space: nowrap; }
.ws-feature-band { background: var(--ws-surface); }
.ws-feature-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ws-feature-band h2 { margin-bottom: .3rem; }
.ws-feature-band p { margin: 0; color: var(--ws-muted); max-width: 60ch; }
.ws-loyalty-stamps { display: flex; gap: .4rem; flex-wrap: wrap; max-width: 240px; }
.ws-loyalty-stamps span { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px dashed var(--ws-primary); }
.ws-loyalty-stamps span:first-child { background: var(--ws-primary); border-style: solid; }
.ws-newsletter .shop-newsletter { margin: 0; }
.ws-breadcrumbs { font-size: .9rem; color: var(--ws-muted); margin-bottom: 1rem; }
.ws-breadcrumbs a { color: var(--ws-primary); }

/* Template "Elegant": dark, refined, split hero */
body.ws-template--elegant {
    --ws-text: #f2ede6;
    --ws-muted: #b9b0a5;
    --ws-surface: #1f1b18;
    --ws-line: rgba(242, 237, 230, .14);
    --ws-heading-font: Georgia, "Times New Roman", serif;
    --ws-radius: 0;
    --ws-heading-weight: 500;
    background: #15120f;
}
.ws-template--elegant h1, .ws-template--elegant h2 { letter-spacing: .02em; }
.ws-template--elegant .ws-header { background: #15120f; }
.ws-template--elegant .ws-topbar { background: #0d0b09; }
/* Dark header: a dark brand color would vanish as text, a light one reads well. */
body.website.ws-template--elegant { --ws-primary-ink: var(--ws-text); }
body.website.ws-template--elegant.ws-primary-light { --ws-primary-ink: var(--ws-primary); }
.website.ws-template--elegant .ws-button--ghost { color: var(--ws-text); }
.website.ws-template--elegant .ws-button--light { background: transparent; color: #fff; border-color: #fff; }
.ws-template--elegant .ws-order-band { background: #0d0b09; color: var(--ws-text); border-top: 1px solid var(--ws-line); }
.ws-template--elegant .ws-footer { background: #0d0b09; }
/* Template "Café": light, soft, framed hero picture */
body.ws-template--cafe {
    --ws-radius: 24px;
    --ws-heading-font: "Trebuchet MS", system-ui, sans-serif;
    --ws-surface: #fffdf9;
    background: color-mix(in srgb, var(--ws-primary) 7%, #fffaf3);
}
.ws-template--cafe .ws-section + .ws-section { border-top: 0; }
.ws-template--cafe .ws-dish, .ws-template--cafe .ws-event, .ws-template--cafe .ws-hours, .ws-template--cafe .ws-location { box-shadow: 0 8px 24px rgba(60, 40, 20, .08); border: 0; }
/* Split hero (Elegant, Café): copy beside the picture instead of on top of it. */
@media (min-width: 861px) {
    .ws-template--elegant .ws-hero--image, .ws-template--cafe .ws-hero--image {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; min-height: min(70vh, 620px);
        background: var(--ws-surface); color: var(--ws-text);
    }
    .ws-template--elegant .ws-hero--image::after, .ws-template--cafe .ws-hero--image::after { display: none; }
    .ws-template--elegant .ws-hero-media, .ws-template--cafe .ws-hero-media { position: relative; grid-column: 2; grid-row: 1; height: 100%; }
    .ws-template--cafe .ws-hero-media { margin: 2rem 2rem 2rem 0; border-radius: var(--ws-radius); overflow: hidden; height: calc(100% - 4rem); }
    .ws-template--elegant .ws-hero-copy, .ws-template--cafe .ws-hero-copy { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: 3rem clamp(1.5rem, 5vw, 5rem); }
    .ws-template--elegant .ws-hero-copy :is(h1, .ws-eyebrow, .ws-hero-tagline), .ws-template--cafe .ws-hero-copy :is(h1, .ws-eyebrow, .ws-hero-tagline) { text-shadow: none; }
    .ws-template--elegant .ws-open-status, .ws-template--cafe .ws-open-status { background: var(--ws-background, rgba(0,0,0,.06)); color: var(--ws-text); }
    .website.ws-template--cafe .ws-button--light, .website.ws-template--cafe .ws-hero--image .ws-button--light { background: #fff; color: var(--ws-text); border-color: var(--ws-text); }
}
@media (min-width: 861px) {
    .ws-template--elegant .ws-open-status { background: rgba(255, 255, 255, .08); color: var(--ws-text); }
    .ws-template--cafe .ws-open-status { background: rgba(0, 0, 0, .05); color: var(--ws-text); }
}

/* Table request form */
.ws-form { margin-top: 1.5rem; }
.ws-form fieldset { border: 0; padding: 0; margin: 0; }
.ws-form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.ws-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.ws-field label { font-weight: 700; }
.website .ws-field input, .website .ws-field select, .website .ws-field textarea { font: inherit; padding: .65rem .8rem; border-radius: calc(var(--ws-radius) / 2); border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-text); min-height: 44px; }
.ws-form-hp { position: absolute; left: -9999px; }
.ws-form-error { padding: .75rem 1rem; border-radius: var(--ws-radius); background: #fde8e6; color: #8a1c12; }
.ws-reservation-done { padding: 1.5rem; border-radius: var(--ws-radius); background: var(--ws-surface); border: 1px solid var(--ws-line); }
.js .ws-noscript-only { display: none !important; } /* utility: beats component button styles */

/* Page "Tisch reservieren": a picture with the welcome, then ONE reservation card pulled up over
   its lower edge (online / phone / both, or the request form). Kept short on phones so the card
   — the one thing to do here — shows early. Colors, type and radius are the template's. */
.ws-reserve { --ws-reserve-overlap: clamp(2.5rem, 7vw, 5.5rem); }
.ws-reserve-hero {
    position: relative; display: grid; place-items: center; text-align: center; overflow: hidden;
    padding: clamp(2.75rem, 7vw, 5.5rem) 1rem calc(clamp(2rem, 5vw, 4rem) + var(--ws-reserve-overlap));
    background: var(--ws-primary); color: var(--ws-on-primary);
}
.ws-reserve-hero--image { color: #fff; min-height: clamp(300px, 52vh, 540px); }
.ws-reserve-media { position: absolute; inset: 0; }
.ws-reserve-media img { width: 100%; height: 100%; object-fit: cover; }
/* The same safe scrim as the home hero's unmeasured default: white on ≥ 55 % black stays AA on any photo. */
.ws-reserve-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .58) 55%, rgb(0 0 0 / .7) 100%); pointer-events: none; }
.ws-reserve-intro { position: relative; z-index: 1; width: min(46rem, 100%); }
.ws-reserve-hero--image .ws-reserve-intro { text-shadow: 0 1px 3px rgb(0 0 0 / .45); }
.ws-reserve-eyebrow { display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 1rem; letter-spacing: .22em; opacity: 1; }
.ws-reserve-eyebrow::before, .ws-reserve-eyebrow::after { content: ""; width: clamp(1.5rem, 5vw, 3.5rem); height: 1px; background: currentColor; opacity: .75; }
body.website .ws-reserve-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); margin: 0 0 .45em; text-wrap: balance; }
.ws-reserve-lead { margin: 0 auto; max-width: 40ch; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; text-wrap: pretty; }

.ws-reserve-body { position: relative; z-index: 2; width: min(880px, 100% - 2rem); margin: calc(-1 * var(--ws-reserve-overlap)) auto clamp(2.5rem, 6vw, 4.5rem); }
.ws-reserve-card {
    padding: clamp(1.35rem, 4vw, 2.75rem); border-radius: var(--ws-radius); border: 1px solid var(--ws-line);
    background: var(--ws-surface); color: var(--ws-text); box-shadow: 0 24px 60px rgb(0 0 0 / .14), 0 2px 6px rgb(0 0 0 / .05);
}
.ws-reserve-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(.9rem, 2.5vw, 1.5rem); align-items: start; }
.ws-reserve-badge {
    display: grid; place-items: center; width: clamp(3.25rem, 8vw, 4.5rem); aspect-ratio: 1; border-radius: var(--ws-radius);
    background: color-mix(in srgb, var(--ws-primary) 13%, var(--ws-surface)); color: var(--ws-primary-ink);
}
.ws-reserve-badge .ws-icon { width: 52%; height: 52%; }
body.website .ws-reserve-card h2 { font-size: clamp(1.4rem, 3.2vw, 2.05rem); margin: .1rem 0 .35rem; }
.ws-reserve-card-head p { margin: 0; color: var(--ws-muted); font-size: clamp(1rem, 1.8vw, 1.1rem); }
.ws-reserve .ws-reservation-done { padding: 0; border: 0; background: none; }
/* Actions: the primary one full width on phones; two of them side by side (equal) on wider screens,
   one alone at a comfortable width. Labels may wrap rather than overflow on narrow phones. */
.ws-reserve-actions { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: clamp(1.4rem, 3vw, 2rem) 0 0; }
.ws-reserve-actions:has(> :only-child) { grid-template-columns: minmax(min(100%, 19rem), max-content); }
.website .ws-reserve-actions .ws-button { white-space: normal; text-align: center; min-height: 56px; }
.website .ws-reserve-card .ws-button--ghost { color: var(--ws-primary-ink); border-color: currentColor; background: transparent; }
.website .ws-reserve-card .ws-button--ghost:hover { background: color-mix(in srgb, var(--ws-primary) 8%, transparent); }
.ws-reserve-number { margin: 1rem 0 0; font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ws-reserve-hint { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: var(--ws-muted); font-size: .9rem; }
.ws-reserve-hint .ws-icon { width: 1.05rem; height: 1.05rem; }
.ws-reserve-form { margin-top: 1.75rem; }
/* The card is the frame: the form's fieldset gets no box of its own (app.css frames fieldsets). */
.website .ws-reserve-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; background: none; box-shadow: none; }
.ws-reserve-form .ws-reserve-actions { margin-top: .5rem; }
.ws-reserve-alt { margin-top: 1.5rem; }
/* An embedded reservation system (external plugin): the provider's widget fills the card's width. */
.ws-reserve-widget { margin-top: 1.5rem; }
.ws-plugin > :not(.consent-placeholder) { display: block; width: 100%; }
.ws-plugin .consent-placeholder { min-height: clamp(200px, 28vw, 280px); border-color: var(--ws-line); background: var(--ws-surface); color: var(--ws-muted); }
.ws-plugin .consent-placeholder-load { border-color: var(--ws-primary); background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-reserve-or { display: flex; align-items: center; gap: 1rem; margin: 0; color: var(--ws-muted); font-size: .9rem; }
.ws-reserve-or::before, .ws-reserve-or::after { content: ""; flex: 1; height: 1px; background: var(--ws-line); }
.ws-reserve-alt .ws-reserve-actions { margin-top: 1rem; }
.ws-template--cafe .ws-reserve-card { border: 0; box-shadow: 0 18px 44px rgb(60 40 20 / .12); }
.ws-template--elegant .ws-reserve-card { box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
@media (max-width: 600px) {
    .ws-reserve-hero--image { min-height: 0; }
    .ws-reserve-card { padding: 1.25rem; }
    .website .ws-reserve-actions .ws-button { padding-inline: .9rem; font-size: 1rem; }
    .ws-reserve-actions:has(> :only-child) { grid-template-columns: 1fr; }
    .ws-reserve-card-head p { font-size: 1rem; }
}

/* Campaign landing pages (phase 3): run-time badge with countdown, featured dishes. */
.ws-campaign-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--ws-primary);
    color: var(--ws-on-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ws-campaign-items { margin: 2rem 0; }
.ws-campaign-items h2 { margin-bottom: 1rem; }
.ws-notice {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    background: #fff4d6;
    color: #5b4300;
}

/* Content blocks (docs/restaurant-homepage.md, "Inhaltsblöcke"): text, picture with text (side by side or overlay), banner, picture gallery. */
.ws-section.ws-block, .ws-block + .ws-section { border-top: 0; }
.ws-block-eyebrow { font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; opacity: .85; }
.ws-template--classic .ws-block--text { text-align: center; }
.ws-template--classic .ws-block--text .ws-actions { justify-content: center; }
.website .ws-button--outline { border-color: currentColor; color: inherit; background: transparent; }
/* Picture with text: an editorial split — picture (4:3, ~55 %) and text side by side, never overlapping, no box.
   Type, colors and buttons come from the design template; the corners stay soft (12–16 px) in every template. */
.ws-block--image-text { --ws-block-radius: clamp(12px, var(--ws-radius), 16px); }
/* "Elegant" sets a unitless --ws-radius: 0, which clamp() cannot take. */
.ws-template--elegant .ws-block--image-text { --ws-block-radius: 12px; }
.ws-block--image-text .ws-block-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ws-muted); opacity: 1; margin-bottom: .85rem; }
body.website .ws-block--image-text h2 { font-size: clamp(1.6rem, .9rem + 2.2vw, 2.75rem); line-height: 1.12; margin-bottom: 0; text-wrap: balance; overflow-wrap: break-word; }
.ws-block--image-text .ws-prose { margin-top: 1.1rem; }
.ws-block--image-text .ws-prose p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 .9em; }
.ws-block--image-text .ws-prose p:last-child { margin-bottom: 0; }
.ws-block--image-text .ws-actions { margin-top: 1.75rem; }
.ws-block-copy > :first-child { margin-top: 0; }
.ws-block-split { display: grid; gap: 1.5rem; }
.website .ws-block-media { position: relative; display: block; margin: 0; align-self: center; aspect-ratio: 4 / 3; border-radius: var(--ws-block-radius); overflow: hidden; background: color-mix(in srgb, var(--ws-text) 7%, transparent); }
.ws-block-media img { width: 100%; height: 100%; object-fit: cover; }
.ws-block-split .ws-block-copy { max-width: 34rem; }
@media (min-width: 760px) {
    .ws-block-split { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
    .ws-block--image-end .ws-block-split { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
    .ws-block--image-end .ws-block-media { grid-column: 2; grid-row: 1; }
    .ws-block--image-end .ws-block-copy { grid-column: 1; grid-row: 1; justify-self: end; }
}
/* Tablet: two narrower columns — long German compounds may break rather than overflow. */
@media (min-width: 760px) and (max-width: 1023px) {
    body.website .ws-block-split h2 { -webkit-hyphens: auto; hyphens: auto; }
}
/* Overlay: the picture over the content width, the text at its lower left on a dark gradient that always reaches
   at least 60 % black behind every line (white text ≥ 5.7:1 even on a white photo) — no box, no hard edge. The
   aspect ratio is a minimum: longer texts make the picture taller instead of overflowing. */
.ws-block-overlay { position: relative; display: grid; align-items: end; aspect-ratio: 16 / 9; border-radius: var(--ws-block-radius); color: #fff; }
.website .ws-block-overlay-media { position: absolute; inset: 0; display: block; margin: 0; border-radius: inherit; overflow: hidden; background: #2a2420; }
.ws-block-overlay-media img { width: 100%; height: 100%; object-fit: cover; }
.ws-block-overlay-media .ai-image-badge { top: 1rem; bottom: auto; }
.ws-block-overlay-copy {
    position: relative; z-index: 1; border-radius: 0 0 var(--ws-block-radius) var(--ws-block-radius);
    padding: 7rem clamp(1.5rem, 5vw, 3.5rem) clamp(1.5rem, 4.5vw, 3.25rem);
    background: linear-gradient(0deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .6) calc(100% - 7rem), rgb(0 0 0 / .42) calc(100% - 4.5rem), rgb(0 0 0 / .16) calc(100% - 2rem), rgb(0 0 0 / 0) 100%);
}
.ws-block-overlay-copy > * { max-width: 38rem; }
body.website .ws-block-overlay-copy :is(h2, .ws-block-eyebrow, .ws-prose p) { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.ws-block-overlay-copy .ws-block-eyebrow { color: #fff; opacity: .92; }
@media (max-width: 759px) {
    .ws-block-overlay { aspect-ratio: 4 / 5; }
    .ws-block-overlay-copy { padding-top: 5rem; background: linear-gradient(0deg, rgb(0 0 0 / .8) 0%, rgb(0 0 0 / .62) calc(100% - 5rem), rgb(0 0 0 / .38) calc(100% - 3rem), rgb(0 0 0 / .12) calc(100% - 1.25rem), rgb(0 0 0 / 0) 100%); }
    .ws-block--image-text .ws-actions .ws-button { min-height: 48px; }
}
.ws-block--banner { position: relative; display: grid; align-items: center; min-height: 360px; padding: var(--ws-section-space) 0; overflow: hidden; text-align: center; background: var(--ws-primary); color: var(--ws-on-primary); }
.ws-block--banner-image { min-height: min(70vh, 560px); color: #fff; }
.ws-block-banner-media { position: absolute; inset: 0; }
.ws-block-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.ws-block--banner-image::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); pointer-events: none; }
.ws-block-banner-copy { position: relative; z-index: 1; }
body.website .ws-block--banner h2 { font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.2; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.ws-block--banner .ws-prose p { font-size: 1.15rem; }
.ws-block--banner .ws-actions { justify-content: center; }
/* Picture gallery block: a strip of numbered pictures (16:10, the next one peeking in) beside the text, which sits
   vertically centred on the right with the previous/next buttons; on phones the text comes first and the strip is
   swiped. Scroll snapping keeps a picture at the start; without JavaScript the strip keeps its scrollbar. */
.ws-block--gallery { --ws-block-radius: clamp(12px, var(--ws-radius), 16px); --ws-gallery-gap: clamp(1.25rem, 4vw, 4rem); overflow: hidden; }
.ws-template--elegant .ws-block--gallery { --ws-block-radius: 12px; }
.ws-block-gallery { display: grid; gap: 1.75rem; }
.ws-block-gallery-copy { max-width: 34rem; }
.ws-block--gallery .ws-block-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ws-muted); opacity: 1; margin-bottom: .85rem; }
body.website .ws-block--gallery h2 { font-size: clamp(1.6rem, .9rem + 2vw, 2.4rem); line-height: 1.15; margin-bottom: 0; text-wrap: balance; overflow-wrap: break-word; }
.ws-block--gallery .ws-prose { margin-top: 1.1rem; }
.ws-block--gallery .ws-prose p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 .9em; }
.ws-block--gallery .ws-prose p:last-child { margin-bottom: 0; }
.ws-block--gallery .ws-actions { margin-top: 1.5rem; }
.ws-block-gallery-track {
    position: relative; display: flex; gap: var(--ws-gallery-gap); margin: 0; padding: 0 0 .75rem; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
}
.js .ws-block-gallery-track { scrollbar-width: none; }
.js .ws-block-gallery-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .ws-block-gallery-track { scroll-behavior: smooth; } }
.ws-block-gallery-slide { flex: 0 0 min(85%, 44rem); scroll-snap-align: start; }
.ws-block--gallery-plain .ws-block-gallery-slide { flex-basis: min(85%, 40rem); }
.ws-block-gallery-figure { margin: 0; }
.website .ws-block-gallery-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--ws-block-radius); overflow: hidden; background: color-mix(in srgb, var(--ws-text) 7%, transparent); }
.ws-block-gallery-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ws-block-gallery-zoom {
    position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: #fff; color: #1f1a17; box-shadow: 0 4px 18px rgb(0 0 0 / .18); transform: translate(-50%, -50%) scale(.85); opacity: 0;
    transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.ws-block-gallery-media:is(:hover, :focus-visible) .ws-block-gallery-zoom { opacity: 1; transform: translate(-50%, -50%); }
.ws-block-gallery-media:hover img { transform: scale(1.02); }
@media (hover: none) { .ws-block-gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(.8); } }
.ws-block-gallery-figure figcaption { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin-top: .6rem; font-size: .9rem; color: var(--ws-muted); }
.ws-block-gallery-number { margin-left: auto; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--ws-text); font-variant-numeric: tabular-nums; }
.ws-block-gallery-nav { display: flex; gap: .75rem; margin: 1.75rem 0 0; }
.ws-block-gallery-nav[hidden] { display: none; }
.ws-block--gallery-plain .ws-block-gallery-nav { justify-content: flex-end; margin-top: .5rem; }
.website .ws-block-gallery-arrow {
    display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1.5px solid currentColor; border-radius: 50%;
    background: transparent; color: var(--ws-text); cursor: pointer; transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.website .ws-block-gallery-arrow:hover:not(:disabled) { background: var(--ws-text); color: var(--ws-background, #faf7f3); }
.website .ws-block-gallery-arrow:disabled { opacity: .35; cursor: default; }
@media (min-width: 960px) {
    /* Pictures left (in the markup after the text, so phones read text → pictures), text right. */
    .ws-block-gallery:has(.ws-block-gallery-copy) { grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); align-items: center; gap: var(--ws-gallery-gap); }
    .ws-block-gallery-copy { grid-column: 2; grid-row: 1; }
    .ws-block-gallery:has(.ws-block-gallery-copy) .ws-block-gallery-track { grid-column: 1; grid-row: 1; }
    .ws-block-gallery-slide { flex-basis: 78%; }
    .ws-block--gallery-plain .ws-block-gallery-slide { flex-basis: min(60%, 44rem); }
}
