/*
Theme Name: Spookys
Theme URI: https://spookys.de
Author: Spookys
Description: Individuelles WordPress-Theme für Spookys.
Version: 0.1.0
Text Domain: spookys
*/


/*
 * HINWEIS: Die Custom Properties in diesem Abschnitt spiegeln den aktuellen
 * Entwurfsstand wider. Das Design ist noch nicht final mit dem Kunden abgestimmt.
 * Tokens, die noch nicht bestätigt sind, tragen den Kommentar "@TODO: unbestätigt".
 */


/* ==========================================================================
   1. Custom Properties (Design Tokens)
   ========================================================================== */

:root {

    /* --- Farben: Hintergründe --- */

    --color-bg:           #38122a; /* Haupt-Hintergrund                        */
    --color-bg-secondary: #2f0f22; /* Karten, Sekundär-Hintergrund             */
    --color-bg-tertiary:  #320f24; /* Karten Speise-/Getränkekarte             */
    --color-bg-overlay:   #2a0e1f; /* Mobiles Navigations-Overlay                */
    --color-bg-footer:    #260d1c; /* Footer-Hintergrund           @TODO: unbestätigt */

    /* --- Farben: Akzente --- */

    --color-accent:       #f7b500; /* Primärfarbe: Buttons, Links, Icons, Labels */
    --color-accent-hover: #e0a400; /* Hover-Zustand Primärbutton   @TODO: unbestätigt */
    --color-accent-red:   #d1453b; /* Typ „Live-Musik": Labels, Borders, Date-Chip */

    /* --- Farben: Text --- */

    /*
     * Der Entwurf nutzt 8+ verschiedene Opazitätsstufen (.45–.85) ohne
     * erkennbare Hierarchie. Hier werden drei Stufen definiert, die den
     * Entwurf näherungsweise abbilden. Endgültige Werte nach Designabschluss.
     * @TODO: unbestätigt
     */
    --color-text:        #f3e6d0;               /* Primärer Text, Überschriften      */
    --color-text-muted:  rgba(243, 230, 208, .75); /* Fließtext, Beschreibungen     */
    --color-text-subtle: rgba(243, 230, 208, .55); /* Meta, Footer-Links, Copyright */

    /* --- Farben: Borders (Gold-basiert) --- */

    /*
     * Der Entwurf nutzt 6 verschiedene Opazitätsstufen (.12–.25).
     * Hier drei Stufen als Annäherung. Endgültige Werte nach Designabschluss.
     * @TODO: unbestätigt
     */
    --border-subtle:  1px dashed rgba(247, 181, 0, .14); /* Trennlinien Speise-/Getränkekarte */
    --border-default: 1px solid rgba(247, 181, 0, .16); /* Standard Karten-Border  */
    --border-strong:  1px solid rgba(247, 181, 0, .25); /* Formulareingaben        */
    --border-red:     1px solid rgba(209,  69, 59, .35); /* Live-Musik-Karten      */

    /* --- Typografie: Schriftfamilien --- */

    /*
     * Einbindung der Fonts noch offen (Selbst-Hosting vs. Google CDN).
     * Die Stacks greifen bis dahin auf System-Fallbacks zurück.
     */
    --font-heading: 'Anton', sans-serif;
    --font-body:    'Work Sans', sans-serif;
    --font-brand:   'Permanent Marker', cursive;

    /* --- Typografie: Schriftgrößen (Überschriften, responsive via clamp) --- */

    --fs-hero:    clamp(40px, 6.6vw, 80px); /* h1 Startseite – größte Variante   */
    --fs-page:    clamp(34px, 5.5vw, 58px); /* h1 Unterseiten                    */
    --fs-menu-hero: clamp(38px, 5.6vw, 64px); /* h1 Speise-/Getränkekarte        */
    --fs-section: clamp(28px, 4vw,   40px); /* h2 Abschnittsüberschriften        */
    --fs-card:    22px;                     /* Karten-Titel (Anton, fest)        */

    /* --- Typografie: Schriftgrößen (Fließtext, fest) --- */

    --fs-body:  16px;   /* Haupttext, Beschreibungen                              */
    --fs-lead:  18px;   /* Hervorgehobener Fließtext, z. B. Hero-Teaser @TODO: unbestätigt */
    --fs-btn:   15px;   /* Button-Beschriftung (seitenübergreifend)     @TODO: unbestätigt */
    --fs-small: 14.5px; /* Teaser, Captions, Raumlisten                           */
    --fs-label: 13px;   /* Labels, Meta, Filterbuttons                            */
    --fs-micro: 12.5px; /* Header-Statuszeile                                     */

    /* --- Typografie: Zeilenhöhen --- */

    --lh-heading: 1.02;
    --lh-body:    1.6;

    /* --- Radien --- */

    --radius-sm:   10px;  /* Formularfelder              */
    --radius-md:   14px;  /* Icon-Kacheln                */
    --radius-lg:   16px;  /* Karten                      */
    --radius-pill: 999px; /* Buttons (vollständig rund)  */

    /* --- Abstände --- */

    --spacing-page-x: 32px; /* Seitlicher Grundabstand (konsistent im Entwurf) */

    /*
     * Karten-Padding: Im Entwurf variieren ähnliche Karten zwischen 22px und
     * 28px ohne erkennbares System. Die folgenden Werte entsprechen dem Entwurf.
     * Normalisierung nach Designabschluss. @TODO: unbestätigt
     */
    --card-padding-sm: 22px 16px; /* Icon-Kacheln       */
    --card-padding-md: 26px;      /* Standardkarten     */
    --card-padding-lg: 28px;      /* Signatur-Karte     */

    /* --- Container-Maxbreiten ---
       Jede Stufe hat einen festen Verwendungszweck, keine Zuordnung zu
       einer bestimmten Seite. Neue Seitentypen zuerst gegen den Zweck
       prüfen, nicht gegen den Namen einer bestehenden Seite:
       - xl:       Chrome (Header, Footer)
       - spacious: bewusst großzügige Sektionen (aktuell nur Startseite)
       - content:  zweispaltige Inhaltsseiten (Foto/Grid neben Text)
       - compact:  dichte Listen-/Grid-Ansicht (aktuell nur Veranstaltungsarchiv)
       - narrow:   Fließtext-Lesebreite
       - form:     Formulare
       Ein neuer Tier braucht eine schriftliche, kompositorische Begründung
       (siehe --container-cta) und einen eigenen Token — nie einen
       hartkodierten px-Wert im Selektor. */

    --container-xl:       1280px; /* Chrome: Header, Footer                        */
    --container-spacious: 1200px; /* Startseite                                    */
    --container-content:  1100px; /* Speisekarte, Getränkekarte, Räume, Kontakt    */
    --container-compact:  1000px; /* Veranstaltungsarchiv                          */
    --container-narrow:    820px; /* Veranstaltungs-Detail, generische Seiten      */
    --container-cta:       900px; /* Räume-CTA-Banner, zentrierte Kurzaussage, bewusst außerhalb der Stufenlogik */
    --container-form:      640px; /* Formulare, Artikeltext                        */
    --container-hero:     1240px; /* Hero, Pub Food, Feature-Kacheln — bewusst breiter als --container-spacious wegen Eingangsfoto, außerhalb der Stufenlogik */
}


/* ==========================================================================
   2. Reset & Basis
   ========================================================================== */

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

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}


/* ==========================================================================
   3. Typografie-Basis
   ========================================================================== */

/* Selbst gehostete Schriften (statt Google-Fonts-CDN): vermeidet die
   Übertragung von Besucher-IP-Adressen an Google, die in Deutschland
   mehrfach gerichtlich als DSGVO-Verstoß gewertet wurde. Dateien 1:1 von
   Google Fonts bezogen (nur lateinischer Zeichensatz, ausreichend für
   deutschsprachige Inhalte inkl. Umlaute/ß), lokal unter assets/fonts/
   abgelegt. Work Sans ist eine Variable Font-Datei; die vier Schnitte
   zeigen bewusst alle auf dieselbe Datei — entspricht exakt der Deklaration,
   die Google Fonts selbst für diese Gewichte ausliefert. */

@font-face {
    font-family: 'Anton';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/anton-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Permanent Marker';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/permanent-marker-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/work-sans-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/work-sans-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/work-sans-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/work-sans-variable.woff2') format('woff2');
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-section);
    line-height: var(--lh-heading);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 36px;
}

/* Optionaler Einleitungstext direkt unter .section-title. Wo beide zusammen
   auftreten, wird der Abstand der Überschrift lokal auf das jeweilige
   Sektions-Padding-bottom reduziert (siehe z. B. .features .section-title). */
.section-intro {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text-muted);
    max-width: 56ch;
    margin: 0 0 34px;
}


/* ==========================================================================
   4. Layout-Utilities (.container)
   ========================================================================== */

/* (wird im nächsten Schritt gefüllt) */


/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-btn);
    font-weight: 700;
    line-height: 1;
    border-radius: var(--radius-pill);
    padding: 15px 28px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-text);
    /* Entwurf: 1.5px solid rgba(243,230,208,0.35) – kein exakter Token
       @TODO: unbestätigt, nach Designabschluss in Token überführen */
    border: 1.5px solid rgba(243, 230, 208, 0.35);
}

/* --- Interaktionszustände --- */

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

.btn--primary:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.btn--primary:active {
    /* Entwurf: kein expliziter Active-Wert – eine Stufe dunkler als Hover
       @TODO: unbestätigt, nach Designabschluss anpassen */
    background-color: #c99a00;
}

.btn--secondary:hover {
    border-color: rgba(243, 230, 208, 0.65);
    background-color: rgba(243, 230, 208, 0.06);
}

.btn--secondary:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.btn--secondary:active {
    border-color: rgba(243, 230, 208, 0.85);
    background-color: rgba(243, 230, 208, 0.12);
}


/* ==========================================================================
   6. Formulare
   ========================================================================== */

.reservation-section {
    background-color: var(--color-bg);
    padding: 24px var(--spacing-page-x) 90px;
}

.reservation-section__inner {
    max-width: var(--container-form);
    margin-inline: auto;
}

.reservation-notice {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-text);
    background-color: rgba(247, 181, 0, 0.1);
    border: var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin: 0 0 28px;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reservation-form__field label {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.reservation-form__field input[type="text"],
.reservation-form__field input[type="email"],
.reservation-form__field input[type="tel"],
.reservation-form__field input[type="date"],
.reservation-form__field input[type="time"],
.reservation-form__field input[type="number"],
.reservation-form__field select,
.reservation-form__field textarea {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    background-color: var(--color-bg-secondary);
    border: var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    padding: 13px 15px;
    width: 100%;
    box-sizing: border-box;
}

.reservation-form__field input::placeholder,
.reservation-form__field textarea::placeholder {
    color: var(--color-text-subtle);
}

/* Datum/Uhrzeit: dunkles Farbschema (Auswahl-Kalender des Browsers, in
   Firefox helle Symbole) und eigene Symbole in Akzentgelb statt der
   schwarzen Standard-Symbole (Chrome, Edge, Safari). */
.reservation-form__field input[type="date"],
.reservation-form__field input[type="time"] {
    color-scheme: dark;
}

.reservation-form__field input[type="date"]::-webkit-calendar-picker-indicator,
.reservation-form__field input[type="time"]::-webkit-calendar-picker-indicator {
    width: 20px;
    height: 20px;
    padding: 2px;
    background: center / 20px 20px no-repeat;
    opacity: 1;
    cursor: pointer;
}

.reservation-form__field input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7b500' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.reservation-form__field input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7b500' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}

.reservation-form__field input:focus-visible,
.reservation-form__field select:focus-visible,
.reservation-form__field textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.reservation-form__field--consent {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.reservation-form__field--consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text-muted);
}

.reservation-form__field--consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.reservation-form__field--consent a {
    color: var(--color-accent);
}

.reservation-form__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.reservation-error {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-accent-red);
    margin: 0;
}

.reservation-error--general {
    background-color: rgba(209, 69, 59, 0.12);
    border: 1px solid rgba(209, 69, 59, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 0 0 20px;
}

.reservation-form .btn {
    align-self: flex-start;
}

.reservation-success {
    background-color: var(--color-bg-secondary);
    border: var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
}

.reservation-success__icon {
    margin: 0 auto 16px;
    width: 80px;
}

.reservation-success__title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 26px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.reservation-success__text {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: var(--fs-body);
    line-height: 1.6;
    margin: 0 0 12px;
}

.reservation-success__number {
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 18px;
    margin: 0;
}


/* ==========================================================================
   7. Karten & Komponenten
   ========================================================================== */

/* Foto oder Platzhalter (falls kein Bild hinterlegt ist). Ursprünglich aus
   der inzwischen entfernten Kitchen-Sektion generalisiert, wird aktuell für
   die Räume-Fotos genutzt. Flex-Breite bleibt bewusst kontextabhängig
   (siehe .room-row__photo). */
.photo-placeholder {
    aspect-ratio: 4 / 3;
    background: repeating-linear-gradient(
        135deg,
        rgba(247, 181, 0, 0.10) 0px 14px,
        rgba(247, 181, 0, 0.04) 14px 28px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-text-subtle);
    font-family: ui-monospace, Menlo, monospace;
    font-size: var(--fs-micro);
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(247, 181, 0, 0.2);
    border-radius: var(--radius-sm);
}

.photo-placeholder__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   8. Animationen (Ghost)
   ========================================================================== */

/* Übergangselement zwischen zwei Startseiten-Sektionen: ein kleiner Geist,
   der beim Einscrollen sichtbar "hervorlugt" und dabei durchgehend sanft
   auf und ab schwebt sowie gelegentlich blinzelt. Zwei getrennte Transform-
   Ebenen, da eine einzelne Transform-Eigenschaft nicht gleichzeitig die
   Eintritts-Position (einmalig, per Scroll ausgelöst) und die fortlaufende
   Schwebe-Animation tragen kann: .peek-ghost-reveal positioniert/blendet
   ein (via IntersectionObserver aus ghosts.js, Klasse .in), .peek-ghost
   selbst schwebt unabhängig davon endlos weiter.

   .peek-ghost-reveal ist bewusst höher (76px) als das Geist-Quadrat selbst
   (64px) und zentriert es nur vertikal — entspricht dem Referenzdesign, in
   dem die Geist-Komponente ebenfalls quadratisch (size×size) gerendert und
   erst im höheren Wrapper zentriert wird. Dadurch liegt der Geist beim
   Einblenden bewusst tiefer und wird vom umgebenden .peek-ghost-wrap unten
   sichtbar angeschnitten, statt vollständig sichtbar zu sein. */

.peek-ghost-wrap {
    --peek-size: 64px;
    --peek-x: 50%;
    position: relative;
    overflow: hidden;
    height: var(--peek-size);
}

.peek-ghost-reveal {
    position: absolute;
    left: var(--peek-x);
    bottom: calc(var(--peek-size) * -0.3125);
    width: var(--peek-size);
    height: calc(var(--peek-size) * 1.1875);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, 64%);
    opacity: 0.55;
    transition: transform 0.7s cubic-bezier(.22, 1, .36, 1), opacity 0.7s ease;
}

.peek-ghost-reveal.in {
    transform: translate(-50%, 26%);
    opacity: 1;
}

.peek-ghost {
    display: block;
    width: var(--peek-size, 64px);
    height: var(--peek-size, 64px);
    animation: ghost-bob 3.6s ease-in-out infinite;
}

@keyframes ghost-bob {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(-1.5deg);
    }
}

/* Transform wird vollständig von ghosts.js gesetzt (Augenverfolgung +
   Blinzeln in einer gemeinsamen requestAnimationFrame-Schleife, zusammen
   mit den Hero-Geistern) — bewusst keine CSS-transition, da sie mit der pro Frame
   berechneten Position konkurrieren würde. */
.peek-ghost__eye {
    transform-box: fill-box;
    transform-origin: center;
}


/* --- Klickbarer Peek-Geist (Template-Part peek-ghost.php) ---
   .peek-ghost-body trägt Klick/„Buh!" und die Schreck-Animation, getrennt
   vom Schweben des SVG (.peek-ghost) und vom Einblenden (.peek-ghost-reveal). */

.peek-ghost-body {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.peek-ghost-body.spooked {
    animation: hero-ghost-spook 0.85s cubic-bezier(.36, .07, .19, .97);
}

.peek-ghost__buh {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 4px;
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 15px;
    white-space: nowrap;
    opacity: 0;
    transform: rotate(-10deg) scale(0.5);
    transition: opacity 0.18s ease, transform 0.32s cubic-bezier(.18, 1.6, .4, 1);
    pointer-events: none;
}

.peek-ghost__buh.in {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
}

/* Platzierungen (Modifier aus dem Template-Part) */

.peek-ghost-wrap--contained {
    max-width: var(--container-content);
    margin-inline: auto;
}

.peek-ghost-wrap--right {
    --peek-x: 82%;
}

.peek-ghost-wrap--left {
    --peek-x: 18%;
}

.peek-ghost-wrap--left .peek-ghost__buh {
    right: auto;
    left: 100%;
    margin: 0 0 0 4px;
}

/* Räume: sitzt direkt auf der Oberkante der CTA, übernimmt deren Abstand. */
.peek-ghost-wrap--rooms {
    --peek-x: 70%;
    margin-top: 60px;
}

.peek-ghost-wrap--rooms + .rooms-cta {
    margin-top: 0;
}

/* Footer: überlappt das Ende der letzten Sektion, damit kein zusätzlicher
   Streifen entsteht; nur der Geist selbst ist klickbar. */
.peek-ghost-wrap--footer {
    --peek-x: 88%;
    margin-top: calc(var(--peek-size) * -1);
    z-index: 1;
    pointer-events: none;
}

.peek-ghost-wrap--footer .peek-ghost-body {
    pointer-events: auto;
}

@media (max-width: 820px) {
    .peek-ghost-wrap--rooms {
        margin-top: 32px;
    }
}

@media (max-width: 600px) {
    .peek-ghost-wrap--contained,
    .peek-ghost-wrap--rooms,
    .peek-ghost-wrap--footer {
        --peek-size: 48px;
    }

    .peek-ghost-wrap--footer {
        --peek-x: 82%;
    }

    .peek-ghost__buh {
        font-size: 13px;
    }
}

/* --- Schlafender Geist (leerer Veranstaltungskalender) --- */

.event-empty {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sleep-ghost {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sleep-ghost__svg {
    display: block;
    width: 64px;
    height: 64px;
    animation: ghost-bob 5s ease-in-out infinite;
}

.sleep-ghost__eyes-open {
    display: none;
}

.sleep-ghost.awake .sleep-ghost__eyes-open {
    display: inline;
}

.sleep-ghost.awake .sleep-ghost__eyes-closed,
.sleep-ghost.awake .sleep-ghost__z {
    display: none;
}

.sleep-ghost.awake .sleep-ghost__svg {
    animation: hero-ghost-spook 0.85s cubic-bezier(.36, .07, .19, .97);
}

.sleep-ghost__z {
    position: absolute;
    left: 58px;
    top: 4px;
    font-family: var(--font-brand);
    color: var(--color-accent);
    line-height: 1;
    opacity: 0;
    animation: sleep-z 3.6s ease-in infinite;
    pointer-events: none;
}

.sleep-ghost__z--1 {
    font-size: 11px;
}

.sleep-ghost__z--2 {
    font-size: 14px;
    animation-delay: 1.2s;
}

.sleep-ghost__z--3 {
    font-size: 17px;
    animation-delay: 2.4s;
}

@keyframes sleep-z {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(-8deg);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(14px, -26px) rotate(8deg);
    }
}

.sleep-ghost__buh {
    position: absolute;
    left: 62px;
    top: -10px;
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 15px;
    white-space: nowrap;
    opacity: 0;
    transform: rotate(-10deg) scale(0.5);
    transition: opacity 0.18s ease, transform 0.32s cubic-bezier(.18, 1.6, .4, 1);
    pointer-events: none;
}

.sleep-ghost__buh.in {
    opacity: 1;
    transform: rotate(-10deg) scale(1);
}

/* --- „Nach oben"-Geist --- */

.ghost-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    border: var(--border-strong);
    color: var(--color-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.22, 1, .36, 1), visibility 0.3s;
}

.ghost-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ghost-top.is-visible:hover {
    transform: translateY(-3px);
}

.ghost-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.ghost-top__icon {
    display: block;
}

/* --- Easter Egg: Geist huscht über den Bildschirm --- */

.ghost-flyby {
    position: fixed;
    top: 30vh;
    left: 0;
    z-index: 150;
    width: 72px;
    pointer-events: none;
    animation: ghost-flyby 2.6s ease-in-out forwards;
}

.ghost-flyby .peek-ghost {
    width: 72px;
    height: 72px;
}

@keyframes ghost-flyby {
    0% {
        transform: translate(-90px, 0) rotate(8deg);
    }
    25% {
        transform: translate(25vw, -40px) rotate(-6deg);
    }
    50% {
        transform: translate(50vw, 20px) rotate(8deg);
    }
    75% {
        transform: translate(75vw, -30px) rotate(-6deg);
    }
    100% {
        transform: translate(calc(100vw + 90px), 0) rotate(8deg);
    }
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   9. prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .peek-ghost-reveal {
        transition: none;
    }

    .peek-ghost-body.spooked,
    .sleep-ghost__svg,
    .sleep-ghost.awake .sleep-ghost__svg,
    .ghost-top__icon {
        animation: none;
    }

    .sleep-ghost__z {
        animation: none;
        opacity: 0.8;
    }

    .sleep-ghost__z--1 {
        transform: translate(2px, -2px);
    }

    .sleep-ghost__z--2 {
        transform: translate(8px, -12px);
    }

    .sleep-ghost__z--3 {
        transform: translate(15px, -24px);
    }

    .ghost-top {
        transition: none;
    }

    .peek-ghost {
        animation: none;
    }

    .hero__ghost-wrap {
        animation: none;
    }

    .hero__ghost.spooked {
        animation: none;
    }

    .weekly-card:hover,
    .weekly-card:focus-within,
    a.feature-tile:hover,
    a.feature-tile:focus-visible {
        transform: none;
    }
}


/* ==========================================================================
   10. Site Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg);
    /* Entwurf: rgba(247,181,0,0.18) — nächstliegender Token: --border-default (0.16)
       @TODO: unbestätigt, nach Designabschluss anpassen */
    border-bottom: var(--border-default);
}

.site-header__inner {
    max-width: var(--container-xl);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px var(--spacing-page-x);
}

/* --- Logo --- */

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo__ghost {
    width: 56px;
    height: auto;
    flex-shrink: 0;
}

.site-logo__wordmark {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    margin-left: -6px;
}

/* --- Primäre Navigation --- */

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.primary-nav a {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* Aktive Seite – WordPress-Klassen aus wp_nav_menu() */
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: var(--color-accent);
}

/* --- Desktop: einzeiliger Header --- */

@media (min-width: 1100px) {
    .site-header__inner {
        flex-wrap: nowrap;
        gap: 24px;
    }

    .primary-nav__list {
        flex-wrap: nowrap;
        gap: 30px;
    }
}

/* --- Rechter Bereich: Status + CTA --- */

.site-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header__status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: var(--fs-micro);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.site-header__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.site-header__cta {
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
}

/* --- Mobile-Menü: Hamburger-Trigger --- */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    padding: 0;
    cursor: pointer;
}

.mobile-menu-toggle__bar {
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background-color: var(--color-accent);
}

.mobile-menu-toggle__bar:last-child {
    width: 70%;
}

/* --- Rechter Bereich / Nav: Responsives Verhalten ---
   Unterhalb 1100px übernimmt das Mobile-Menü (Hamburger + Overlay)
   vollständig; Desktop-Nav und Status/CTA verschwinden, wie im Original. */

@media (max-width: 1100px) {
    .primary-nav,
    .site-header__meta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* --- Mobile-Menü: Overlay --- */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: var(--color-bg-overlay);
}

.mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
}

/* Scroll-Lock bei geöffnetem Menü — bewusste Abweichung vom Original,
   das darauf verzichtet; hier als kleine UX-Verbesserung gewünscht. */
body.menu-open {
    overflow: hidden;
}

.mobile-menu__top {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 32px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-top: 48px;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-menu__list a {
    font-family: var(--font-heading);
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.mobile-menu__cta {
    margin-top: 14px;
    padding: 12px 30px;
    font-size: 16px;
}


/* ==========================================================================
   11. Hero
   ========================================================================== */

.hero {
    background-color: var(--color-bg);
    /* Mobile: reduzierter Abstand; Desktop: Entwurfswerte (64px oben, 34px
       unten — die Feature-Leiste bringt darunter ihren eigenen Abstand mit). */
    padding: clamp(40px, 6vw, 64px) var(--spacing-page-x) clamp(24px, 4vw, 34px);
}

.hero__inner {
    max-width: var(--container-hero);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 52px;
    align-items: center;
}

@media (max-width: 1100px) {
    .hero__inner {
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 26px;
    }
}

@media (max-width: 700px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Textspalte --- */

.hero__content {
    min-width: 0;
}

.hero__label {
    font-family: var(--font-body);
    /* Entwurf: 14px, abweichend vom sonst hier verwendeten --fs-label (13px) —
       bewusst als expliziter Wert statt Token, um andere Label-Stellen
       (Nav, Karten, Filter) nicht mit zu verändern. */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 18px;
}

.hero__title {
    font-family: var(--font-heading);
    /* Entwurf: clamp(44px,5.6vw,86px) — abweichend von --fs-hero, bewusst
       größer für den neuen Foto-Hero, kein eigener Token (nur hier
       verwendet). line-height 1.22 statt Entwurfswert 0.94, da Umlaut-Punkte
       sonst in die Zeile darüber ragen. */
    font-size: clamp(44px, 5.6vw, 86px);
    line-height: 1.22;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 22px;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Zweite, kleinere Zeile der Startseiten-Überschrift (z. B. „im Norden
   Münsters"); erbt Schrift, Großschreibung und Farbe von .hero__title. */
.hero__title-sub {
    display: block;
    font-size: 0.5em;
    line-height: 1.2;
    margin-top: 0.2em;
}

.hero__description {
    font-family: var(--font-body);
    font-size: var(--fs-lead);
    line-height: var(--lh-body);
    color: var(--color-text-muted);
    max-width: 460px;
    margin: 0 0 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Visuelle Spalte --- */

/* Trägt das Eingangsfoto (.hero__photo) im normalen Fluss sowie Notiz,
   Adress-Sticker und beide Geister als absolut positionierte Kinder. */
.hero__visual {
    position: relative;
    min-width: 0;
}

.hero__photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(247, 181, 0, 0.18);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

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

/* rgba-Werte entsprechen --color-bg (#38122a), hier bewusst als Verlauf
   mit variabler Opazität statt fester Farbe. */
.hero__photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(56, 18, 42, 0.55) 0%, rgba(56, 18, 42, 0) 45%);
}

.hero__note {
    position: absolute;
    right: 22px;
    bottom: 27%;
    text-align: right;
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: clamp(15px, 1.6vw, 22px);
    line-height: 1.45;
    margin: 0;
    transform: rotate(-4deg);
    transform-origin: right center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

@media (max-width: 700px) {
    .hero__note {
        bottom: 32%;
    }
}

@media (max-width: 560px) {
    .hero__note {
        display: none;
    }
}

.hero__badge {
    position: absolute;
    right: 18px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    transform: rotate(-1.5deg);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.hero__badge-icon {
    display: flex;
    flex: none;
    color: var(--color-bg);
}

.hero__badge-text {
    font-family: var(--font-brand);
    color: var(--color-bg);
    font-size: clamp(14px, 1.4vw, 19px);
    white-space: nowrap;
}

/* Animierte Hero-Geister: schweben sanft (.hero__ghost-wrap), die Augen
   folgen der Maus (Positionierung per ghosts.js, mehrfachfähig), ein
   Klick löst die "Buh!"-Sprechblase und eine kurze Schreck-Animation
   (.spooked) aus. Zwei Instanzen "lugen" am Eingangsfoto hervor — oben
   rechts gespiegelt (--top) und unten links (--bottom, versetzte
   Schwebe-Phase). Entspricht original-design4/"Home v3.dc.html". */

.hero__ghost-wrap {
    position: relative;
    width: min(100%, 340px);
    animation: hero-ghost-bob 6s ease-in-out infinite;
}

.hero__ghost-wrap--top {
    position: absolute;
    width: min(22%, 130px);
    right: -3%;
    top: -7%;
}

.hero__ghost-wrap--bottom {
    position: absolute;
    width: min(26%, 150px);
    left: -6%;
    bottom: 5%;
    animation-delay: -3s;
}

@media (max-width: 900px) {
    .hero__ghost-wrap--top {
        right: -2%;
        top: -6%;
    }

    .hero__ghost-wrap--bottom {
        left: -4%;
        bottom: 4%;
    }
}

@media (max-width: 700px) {
    .hero__ghost-wrap--top {
        right: 2%;
        top: -5%;
    }

    .hero__ghost-wrap--bottom {
        left: 2%;
        bottom: 6%;
    }
}

@media (max-width: 560px) {
    .hero__ghost-wrap--bottom {
        width: min(26%, 110px);
    }
}

.hero__ghost-wrap--solo {
    width: min(70vw, 300px);
    margin-inline: auto;
}

@keyframes hero-ghost-bob {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.2deg);
    }
}

.hero__ghost {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hero__ghost.spooked {
    animation: hero-ghost-spook 0.85s cubic-bezier(.36, .07, .19, .97);
}

@keyframes hero-ghost-spook {
    0% {
        transform: translate(0, 0) rotate(0);
    }
    15% {
        transform: translate(-7px, -14px) rotate(-4deg) scale(1.06);
    }
    32% {
        transform: translate(6px, -6px) rotate(3.5deg) scale(1.04);
    }
    50% {
        transform: translate(-5px, -9px) rotate(-2.5deg) scale(1.03);
    }
    70% {
        transform: translate(3px, -3px) rotate(1.5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0);
    }
}

.hero__ghost-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.hero__ghost-img--flipped {
    transform: scaleX(-1);
}

.hero__ghost-eye {
    position: absolute;
    top: 40.27%;
    width: 5.44%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translate(-50%, -50%);
    will-change: transform;
}

.hero__ghost-eye--left {
    left: 42.05%;
}

.hero__ghost-eye--right {
    left: 58.58%;
}

.hero__ghost-buh {
    position: absolute;
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: clamp(15px, 1.5vw, 22px);
    transform: rotate(-12deg) scale(0.5);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.32s cubic-bezier(.18, 1.6, .4, 1);
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero__ghost-buh.in {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
}

.hero__ghost-buh--top {
    left: -56%;
    top: 8%;
}

.hero__ghost-buh--bottom {
    left: 72%;
    top: -18%;
}

.hero__ghost-buh--solo {
    left: 70%;
    top: -10%;
    font-size: clamp(20px, 2.4vw, 30px);
}

/* ==========================================================================
   Spuk-Effekte (experimentell) – zufällige Animationen der Hero-Geister,
   gesteuert von assets/js/ghost-spuk.js (nur Startseite). Zum Entfernen
   diesen Abschnitt und die Einbindung in functions.php löschen.
   ========================================================================== */

/* Aufblähen/Rundflug ragen über den Bildschirmrand hinaus – horizontal
   abschneiden, damit kein seitliches Scrollen entsteht (clip erzeugt im
   Gegensatz zu hidden keinen eigenen Scroll-Container). */
.hero {
    overflow-x: clip;
}

.hero__ghost.spuk-grow {
    animation: spuk-grow 1.6s ease-in-out;
}

@keyframes spuk-grow {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.5) rotate(-4deg); }
    35%  { transform: scale(1.42) rotate(3deg); }
    50%  { transform: scale(1.5) rotate(-2deg); }
    75%  { transform: scale(1.15) rotate(1deg); }
    100% { transform: scale(1); }
}

.hero__ghost.spuk-fade {
    animation: spuk-fade 3s ease-in-out;
}

@keyframes spuk-fade {
    0%, 100% { opacity: 1; }
    25%, 70% { opacity: 0.08; }
}

.hero__ghost.spuk-loop {
    animation: spuk-loop 1.2s cubic-bezier(.45, 0, .2, 1);
}

@keyframes spuk-loop {
    0%   { transform: translateY(0) rotate(0); }
    25%  { transform: translateY(-14%) rotate(0); }
    80%  { transform: translateY(-14%) rotate(360deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Rundflug: Wegpunkte (--spuk-x/y/r1…4) und Dauer setzt das Skript bei
   jedem Flug neu zufällig, damit er nie gleich aussieht. */
.hero__ghost.spuk-flight {
    animation: spuk-flight var(--spuk-duration, 3.5s) ease-in-out;
}

@keyframes spuk-flight {
    0%   { transform: translate(0, 0) rotate(0); }
    20%  { transform: translate(var(--spuk-x1, -60%), var(--spuk-y1, -40%)) rotate(var(--spuk-r1, 10deg)); }
    45%  { transform: translate(var(--spuk-x2, -180%), var(--spuk-y2, -15%)) rotate(var(--spuk-r2, -6deg)); }
    62%  { transform: translate(var(--spuk-x3, -200%), var(--spuk-y3, 25%)) rotate(var(--spuk-r3, 8deg)); }
    82%  { transform: translate(var(--spuk-x4, -80%), var(--spuk-y4, 35%)) rotate(var(--spuk-r4, -5deg)); }
    100% { transform: translate(0, 0) rotate(0); }
}

/* --- Feature-Leiste unter dem Hero --- */

.hero__features {
    max-width: var(--container-hero);
    margin: 46px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0 6px 26px;
    border-left: 1px solid rgba(247, 181, 0, 0.18);
}

.hero__feature:first-child {
    border-left: none;
}

.hero__feature-icon {
    flex: none;
    display: flex;
    color: var(--color-accent);
}

.hero__feature-icon svg {
    width: 30px;
    height: 30px;
}

.hero__feature-label {
    font-family: var(--font-body);
    /* Entwurf: rgba(243,230,208,0.85) — nächstliegender Token: --color-text-muted (0.75) */
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 1.3;
}

/* Verlinkte Einträge (Öffnungszeiten/Anfahrt → Kontakt) */
a.hero__feature {
    color: inherit;
    text-decoration: none;
}

a.hero__feature:hover .hero__feature-label {
    color: var(--color-text);
}

a.hero__feature:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .hero__features {
        grid-template-columns: 1fr;
        gap: 16px 0;
    }

    .hero__feature {
        border-left: none;
        padding-left: 0;
    }
}


/* ==========================================================================
   12. Weekly Specials
   ========================================================================== */

.weekly-specials {
    background-color: var(--color-bg-secondary);
    padding: 70px var(--spacing-page-x) 80px;
}

.weekly-specials__inner {
    max-width: var(--container-spacious);
    margin-inline: auto;
}

.weekly-specials__grid {
    display: grid;
    grid-template-columns: repeat(var(--weekly-cols, 4), minmax(0, 1fr));
    gap: 20px;
}

/* Feste Spaltenzahl statt auto-fit: vier Karten sollen nie als 3 + 1
   umbrechen (auf Tablet-Breiten sonst eine einzelne Karte in Reihe 2). */
@media (max-width: 1100px) {
    .weekly-specials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .weekly-specials__grid {
        grid-template-columns: 1fr;
    }
}

.weekly-card {
    background-color: var(--color-bg);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--card-padding-md);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.weekly-card:hover,
.weekly-card:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(247, 181, 0, 0.55), 0 0 28px rgba(247, 181, 0, 0.32);
    transform: translateY(-2px);
}

.weekly-card--live {
    border: var(--border-red);
}

.weekly-card--live:hover,
.weekly-card--live:focus-within {
    border-color: var(--color-accent-red);
    box-shadow: 0 0 0 1px rgba(209, 69, 59, 0.55), 0 0 28px rgba(209, 69, 59, 0.32);
}

.weekly-card__label {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 10px;
}

.weekly-card--live .weekly-card__label {
    color: var(--color-accent-red);
}

.weekly-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-card);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 8px;
}

.weekly-card__text {
    font-size: var(--fs-small);
    line-height: var(--lh-body);
    color: var(--color-text-muted);
    margin: 0;
}


/* ==========================================================================
   12a. Tafel (Startseite)
   ========================================================================== */

/* Tafel: Foto der Kreidetafel über die volle Content-Breite. Das Foto
   ist der Inhalt — daher keine Karte/Box, sondern nur Bild + Meta-Zeile.
   Klick öffnet die volle Auflösung (zum Zoomen auf dem Smartphone). */
.chalkboard {
    background-color: var(--color-bg);
    padding: 70px var(--spacing-page-x) 60px;
}

.chalkboard__inner {
    max-width: var(--container-spacious);
    margin-inline: auto;
}

.chalkboard__photo {
    display: block;
    border-radius: var(--radius-lg);
}

.chalkboard__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    /* Feine Kante, damit das dunkle Board nicht im Hintergrund verschwimmt */
    border: var(--border-default);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.chalkboard__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: var(--fs-label);
}

.chalkboard__updated {
    color: var(--color-text-subtle);
    margin: 0;
}

.chalkboard__link {
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Auf schmalen Displays ist die Tafel im Layout zu klein zum Lesen — der
   Link zur Vollansicht ist dort die eigentliche Bedienung und bekommt
   daher die Optik von .btn--secondary über die volle Breite. */
@media (max-width: 700px) {
    .chalkboard__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .chalkboard__link {
        display: block;
        text-align: center;
        text-decoration: none;
        font-size: var(--fs-btn);
        font-weight: 700;
        color: var(--color-text);
        border: 1.5px solid rgba(243, 230, 208, 0.35);
        border-radius: var(--radius-pill);
        padding: 15px 28px;
        order: -1;
    }
}

.chalkboard__link:hover,
.chalkboard__link:focus-visible {
    color: var(--color-accent);
}


/* ==========================================================================
   13. Feature-Kacheln
   ========================================================================== */

.features {
    background-color: var(--color-bg);
    padding: 24px var(--spacing-page-x) 60px;
}

.features__inner {
    max-width: var(--container-hero);
    margin-inline: auto;
}

/* Der Einleitungstext (.section-intro) rückt näher an die Überschrift als
   deren sonstiger Standardabstand (36px). */
.features .section-title {
    margin-bottom: 14px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Wie .weekly-specials__grid: kein 3 + 1. Umbruch auf 2 Spalten früher,
   weil Icon-Kreis + Titel mehr Breite brauchen als die Textkarten. */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-tile {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(160deg, rgba(247, 181, 0, 0.07), rgba(247, 181, 0, 0.02));
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--card-padding-md);
}

/* Nur verlinkte Kacheln (Kegelbahnen/Eventraum → Räume) reagieren auf
   Hover/Fokus — reine Info-Kacheln sollen keine Klickbarkeit suggerieren. */
a.feature-tile {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

a.feature-tile:hover,
a.feature-tile:focus-visible {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(247, 181, 0, 0.55), 0 0 28px rgba(247, 181, 0, 0.32);
    transform: translateY(-2px);
}

a.feature-tile:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.feature-tile__icon-circle {
    flex: none;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(209, 69, 59, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-tile__icon {
    width: 30px;
    height: 30px;
    display: block;
    color: var(--color-accent);
}

.feature-tile__body {
    min-width: 0;
}

.feature-tile__title {
    font-family: var(--font-heading);
    font-size: var(--fs-card);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 6px;
}

.feature-tile__desc {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    line-height: 1.45;
    /* Entwurf: rgba(243,230,208,0.7) — nächstliegender Token: --color-text-muted (0.75) */
    color: var(--color-text-muted);
}


/* ==========================================================================
   13a. Instagram (Startseite)
   ========================================================================== */

/* Instagram-Feed (Plugin „Instagram Feed", Shortcode) — letzte Sektion
   vor dem Footer. Kopfzeile wie bei „Demnächst" (gemeinsame Regeln bei
   .event-preview__header); Plugin-Kopf und Folgen-Button sind in den
   Feed-Einstellungen ausgeschaltet. Hier nur die Einbettung, keine
   Überschreibung der Plugin-Logik. */
.instagram {
    background-color: var(--color-bg);
    /* 90px + 10px Inline-padding-bottom des Plugins = 100px vor dem Footer */
    padding: 60px var(--spacing-page-x) 90px;
}

.instagram__inner {
    max-width: var(--container-hero);
    margin-inline: auto;
}

.instagram .sbi_photo {
    border-radius: var(--radius-md);
    overflow: hidden;
}


/* ==========================================================================
   14. Pub Food
   ========================================================================== */

.pub-food {
    background-color: var(--color-bg);
    padding: 60px var(--spacing-page-x) 80px;
}

.pub-food__inner {
    max-width: var(--container-hero);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
}

.pub-food__photo {
    min-width: 0;
}

.pub-food__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

/* Mehrere Bilder (template-parts/components/pubfood-slider.php): gleiches
   Format wie das bisherige Einzelbild (4:3), Bilder übereinander, das
   aktive blendet weich ein. Rundung und Schatten trägt der Container. */
.pub-food__slides {
    position: relative;
    aspect-ratio: 1448 / 1086;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
    background-color: var(--color-bg-secondary);
    touch-action: pan-y;
}

.pub-food__photo .pub-food__slide {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.pub-food__photo .pub-food__slide.is-active {
    opacity: 1;
}

.pub-food__slider-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 10px;
}

.pub-food__slider-controls[hidden] {
    display: none;
}

.pub-food__dot {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pub-food__dot-mark {
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.pub-food__dot[aria-current="true"] .pub-food__dot-mark {
    background-color: var(--color-accent);
}

.pub-food__dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -4px;
    border-radius: var(--radius-sm);
}

.pub-food__toggle {
    margin-left: auto;
}

/* Zweispaltig: Steuerung hängt unter dem Bild, ohne die Höhe der
   Bildspalte zu vergrößern – so stehen Bild und Text auf einer Mitte. */
@media (min-width: 701px) {
    .pub-food__slider {
        position: relative;
    }

    .pub-food__slider-controls {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 16px;
    }
}

.pub-food__slider.is-paused .photo-strip__icon--pause {
    display: none;
}

.pub-food__slider.is-paused .photo-strip__icon--play {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .pub-food__photo .pub-food__slide {
        transition: none;
    }
}

.pub-food__text {
    min-width: 0;
}

.pub-food__label {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.pub-food__title {
    font-family: var(--font-heading);
    /* Bewusst kleiner als die h1 (--fs-hero), aber größer als normale
       Abschnittstitel (--fs-section), damit der Block Gewicht behält. */
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 20px;
}

/* Optionale zweite Zeile, wie .hero__title-sub */
.pub-food__title-sub {
    display: block;
    font-size: 0.5em;
    line-height: 1.2;
    margin-top: 0.2em;
}

.pub-food__description {
    /* Entwurf: 16.5px — nächstliegender Token: --fs-body (16px) */
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 46ch;
    margin: 0 0 30px;
}

@media (max-width: 1080px) {
    .pub-food__inner {
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .pub-food__inner {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   16. Site Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-bg-footer);
    padding: 64px var(--spacing-page-x) 28px;
}

.site-footer__inner {
    max-width: var(--container-xl);
    margin-inline: auto;
}

.sf-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

/* --- Logo --- */

.sf-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sf-logo__ghost {
    width: 52px;
    height: auto;
}

.sf-logo__wordmark {
    height: 34px;
    width: auto;
}

.sf-brand__desc {
    /* Entwurf: rgba(243,230,208,0.7) — kein exakter Token; nächster: --color-text-muted (0.75) */
    color: var(--color-text-muted);
    font-size: var(--fs-small);
    line-height: var(--lh-body);
    max-width: 320px;
    margin: 0;
}

/* --- Infospalten --- */

.contact-info__heading {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 14px;
}

.contact-info__heading--spaced {
    margin-top: 18px;
}

.contact-info__text {
    font-size: var(--fs-small);
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 6px;
}

/* Ergänzender Hinweis unter einem Info-Block (z. B. Zahlungsart). */
.contact-info__text--note {
    color: var(--color-text-muted);
    margin-top: 10px;
}

.contact-info__link {
    color: var(--color-text);
}

.sf-legal {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.sf-legal__link {
    font-size: var(--fs-label);
    /* Entwurf: rgba(243,230,208,0.6) — kein exakter Token; nächster: --color-text-subtle (0.55) */
    color: var(--color-text-subtle);
}

/* --- Copyright --- */

.sf-copyright {
    border-top: 1px solid rgba(247, 181, 0, 0.14);
    margin-top: 48px;
    padding-top: 20px;
    font-size: var(--fs-micro);
    /* Entwurf: rgba(243,230,208,0.45) — kein exakter Token; nächster: --color-text-subtle (0.55) */
    color: var(--color-text-subtle);
    /* Copyright und Hinweis „Design & Entwicklung“ nebeneinander, links (rechts liegt
       der fixierte „Nach oben“-Knopf); schmal untereinander */
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.sf-copyright__link {
    color: inherit;
}

.sf-copyright__link:hover {
    color: var(--color-accent);
}

/* --- Responsiv --- */

@media (max-width: 760px) {
    .sf-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}


/* ==========================================================================
   15. Veranstaltungsvorschau
   ========================================================================== */

/* --- Section --- */

.event-preview {
    background-color: var(--color-bg);
    padding: 60px var(--spacing-page-x);
}

.event-preview__inner {
    max-width: var(--container-spacious);
    margin-inline: auto;
}

/* --- Header-Zeile --- */

.event-preview__header,
.instagram__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.event-preview__title,
.instagram__title {
    font-family: var(--font-heading);
    font-size: var(--fs-section);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
}

.event-preview__all-link,
.instagram__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--color-accent);
}

/* --- Grid --- */

.event-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* --- Event-Karte --- */

.event-card {
    display: flex;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: var(--border-default);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.event-card--live {
    border: var(--border-red);
}

.event-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --- Datums-Chip --- */

.event-card__chip {
    width: 76px;
    flex-shrink: 0;
    background-color: var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.event-card--live .event-card__chip {
    background-color: var(--color-accent-red);
}

.event-card__month {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-bg);
}

.event-card__day {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1;
    color: var(--color-bg);
}

/* --- Karteninhalt --- */

.event-card__body {
    padding: 18px 20px;
    flex: 1;
    min-width: 0;
}

.event-card__meta {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 6px;
}

.event-card--live .event-card__meta {
    color: var(--color-accent-red);
}

.event-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 6px;
}

.event-card__teaser {
    font-size: 13.5px;
    line-height: 1.5;
    /* Entwurf: rgba(243,230,208,0.65) — zwischen --color-text-muted (0.75) und --color-text-subtle (0.55) */
    color: rgba(243, 230, 208, 0.65);
    margin: 0;
}

/* --- Leerer Zustand --- */

.event-card__empty {
    font-size: var(--fs-small);
    color: var(--color-text-subtle);
    margin: 0;
}


/* ==========================================================================
   17. Globale Seitenbasis (innere Seiten)
   ========================================================================== */

.page-hero {
    background-color: var(--color-bg);
    padding: 64px var(--spacing-page-x) 20px;
}

/* Default (unmodifiziert): wird ausschließlich von der Veranstaltungsarchiv-
   Auszeichnung (archive-veranstaltung.php, dupliziert diese Klasse inline)
   genutzt und bleibt bewusst bei --container-compact. */
.page-hero__inner {
    max-width: var(--container-compact);
    margin-inline: auto;
}

/* Räume/Kontakt: gleiche Content-Breite wie ihr jeweiliger Inhaltsbereich
   (--container-content), statt der mit dem Veranstaltungsarchiv geteilten
   Standardbreite — sonst wirken Hero und Inhalt gegeneinander verschoben. */
.page-hero__inner--content {
    max-width: var(--container-content);
}

/* Generische Seiten (Impressum, Datenschutz, Reservierung): eigene
   Lesebreite, teilt sich nicht mehr zufällig die Archiv-Breite. */
.page-hero__inner--narrow {
    max-width: var(--container-narrow);
}

.page-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 14px;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-page);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 18px;
}

.page-hero__intro {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    /* Entwurf: rgba(243,230,208,0.78) — zwischen --color-text-muted (0.75) und --color-text (1.0) */
    color: rgba(243, 230, 208, 0.78);
    max-width: 600px;
    margin: 0 0 36px;
}


/* ==========================================================================
   18. Veranstaltungsarchiv
   ========================================================================== */

/* --- Filter-Chips --- */

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(243, 230, 208, 0.3);
    background-color: transparent;
    color: var(--color-text);
    text-decoration: none;
    display: inline-block;
}

.filter-chip--active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

.filter-chip:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --- Event-Liste --- */

.event-list {
    background-color: var(--color-bg);
    padding: 20px var(--spacing-page-x) 100px;
}

.event-list__inner {
    max-width: var(--container-compact);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Event-Karte: Listenvariante --- */

.event-card__weekday {
    display: none; /* Standard: ausgeblendet (Preview-Variante) */
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-bg);
}

/* Chip-Reihenfolge in der Preview-Variante: Monat oben, Tag unten */
.event-card__month { order: 1; }
.event-card__day   { order: 2; }

.event-card--list .event-card__chip {
    width: 96px;
    padding: 16px 0;
}

/* Chip-Reihenfolge in der Listen-Variante: Wochentag, Tag, Monat */
.event-card--list .event-card__weekday {
    display: block;
    order: 1;
}

.event-card--list .event-card__day {
    font-size: 30px;
    order: 2;
}

.event-card--list .event-card__month {
    order: 3;
}

.event-card--list .event-card__body {
    padding: 20px 24px;
}

.event-card--list .event-card__title {
    font-size: 20px;
}

.event-card--list .event-card__teaser {
    font-size: 14px;
}

/* --- Responsiv: Listen-Karte auf schmalen Screens --- */

@media (max-width: 480px) {
    .event-card--list {
        flex-wrap: wrap;
    }

    .event-card--list .event-card__chip {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .event-card--list .event-card__weekday,
    .event-card--list .event-card__day,
    .event-card--list .event-card__month {
        order: unset;
    }
}


/* ==========================================================================
   19. Normale Seiten (page.php)
   ========================================================================== */

.page-content {
    background-color: var(--color-bg);
    padding: 40px var(--spacing-page-x) 100px;
}

.page-content__inner {
    max-width: var(--container-narrow);
    margin-inline: auto;
}


/* ==========================================================================
   20. Veranstaltungs-Detail (single-veranstaltung.php)
   ========================================================================== */

.event-detail {
    background-color: var(--color-bg);
    padding: 64px var(--spacing-page-x) 100px;
}

.event-detail__inner {
    max-width: var(--container-narrow);
    margin-inline: auto;
}

.event-detail__back {
    font-size: 14px;
    font-weight: 600;
}

.event-detail__type {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 26px 0 12px;
}

.event-detail__type--live {
    color: var(--color-accent-red);
}

.event-detail__title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 5vw, 50px);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 16px;
}

.event-detail__date {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: rgba(243, 230, 208, 0.80);
    margin: 0 0 32px;
}

.event-detail__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.event-detail__image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 7;
    background: repeating-linear-gradient(
        135deg,
        rgba(247, 181, 0, 0.10) 0px 14px,
        rgba(247, 181, 0, 0.04) 14px 28px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    font-family: ui-monospace, Menlo, monospace;
    font-size: var(--fs-micro);
    border: 1px solid rgba(247, 181, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.event-detail__content {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(243, 230, 208, 0.85);
    max-width: var(--container-form);
    margin: 0 0 36px;
}


/* ==========================================================================
   21. Speisekarte & Getränkekarte (page-speisekarte.php, page-getraenke.php)
   ========================================================================== */

/* --- Hero --- */

.menu-hero {
    background-color: var(--color-bg);
    padding: 64px var(--spacing-page-x) 8px;
}

.menu-hero__grid {
    max-width: var(--container-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.menu-hero__eyebrow {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-weight: 700;
    font-size: var(--fs-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.menu-hero__title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: var(--fs-menu-hero);
    line-height: var(--lh-heading);
    text-transform: uppercase;
    margin: 0 0 22px;
    text-wrap: balance;
}

.menu-hero__intro {
    font-family: var(--font-body);
    /* Entwurf: rgba(243,230,208,0.78), identisch zu .page-hero__intro */
    color: rgba(243, 230, 208, 0.78);
    font-size: 16.5px;
    line-height: 1.65;
    margin: 0;
    max-width: 46ch;
    text-wrap: pretty;
}

.menu-page--getraenke .menu-hero__intro {
    max-width: 44ch;
}

.menu-hero__visual {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}

.menu-hero__illustration {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    max-width: 230px;
}

.menu-hero__note {
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 19px;
    line-height: 1.35;
    transform: rotate(-6deg);
    white-space: nowrap;
}

.menu-page--getraenke .menu-hero__note {
    font-size: 20px;
    transform: rotate(-7deg);
}

/* --- Illustrations-Platzhalter (gemeinsame Basis) --- */

.menu-illustration {
    border: 1.5px dashed rgba(247, 181, 0, 0.35);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

/* Doppelte Klasse: Kontext-Klassen wie .menu-card__illustration setzen
   später im Stylesheet eigenes Padding/Rahmenfarbe und würden sonst gewinnen. */
.menu-illustration.menu-illustration--image {
    border: none;
    padding: 0;
}

.menu-illustration--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.menu-illustration span {
    font-family: var(--font-body);
    color: rgba(247, 181, 0, 0.6);
    font-size: 12px;
    line-height: 1.45;
}

.menu-hero__illustration,
.menu-signature__illustration {
    border-color: rgba(247, 181, 0, 0.4);
}

.menu-hero__illustration span {
    color: rgba(247, 181, 0, 0.65);
    font-size: 12.5px;
}

/* --- Section-Wrapper (äußere Abstände je Abschnitt) --- */

.menu-signature-wrap {
    background-color: var(--color-bg);
    padding: 36px var(--spacing-page-x) 20px;
}

.menu-band-section {
    background-color: var(--color-bg);
    padding: 24px var(--spacing-page-x);
}

.menu-band-section--last {
    padding-bottom: 40px;
}

.menu-grid-wrap {
    background-color: var(--color-bg);
    padding: 36px var(--spacing-page-x) 40px;
}

.menu-pdf-wrap {
    background-color: var(--color-bg);
    padding: 0 var(--spacing-page-x) 40px;
}

.menu-page--getraenke .menu-pdf-wrap {
    padding-bottom: 70px;
}

.menu-footer-note-wrap {
    background-color: var(--color-bg);
    padding: 0 var(--spacing-page-x) 60px;
}

/* --- Signature-Box (nur Speisekarte) --- */

.menu-signature {
    max-width: var(--container-content);
    margin: 0 auto;
    background-color: var(--color-bg-secondary);
    border: var(--border-red);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.menu-signature__illustration {
    width: 112px;
    height: 112px;
    flex: none;
    font-size: 11px;
}

.menu-signature__illustration span {
    font-size: 11px;
    color: rgba(247, 181, 0, 0.6);
}

.menu-signature__body {
    flex: 1;
    min-width: 220px;
}

.menu-signature__label {
    font-family: var(--font-body);
    color: var(--color-accent-red);
    font-weight: 700;
    font-size: var(--fs-micro);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.menu-signature__title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 28px;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.menu-signature__text {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.72);
    font-size: var(--fs-small);
    line-height: 1.55;
    margin: 0;
    max-width: 40ch;
}

.menu-signature__price {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 20px;
}

.menu-signature__tag {
    border: 1.5px dashed rgba(247, 181, 0, 0.45);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

/* --- Speisekarte: Bänder --- */

/* Jedes Band als Box mit derselben Umrandung wie die Karten der
   Getränkeseite (.menu-card); --rev wechselt nur die Bildseite. */
.menu-band {
    max-width: var(--container-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: center;
    background-color: var(--color-bg-tertiary);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--card-padding-md);
}

.menu-band--rev {
    grid-template-columns: 1.15fr 0.85fr;
}

.menu-band__illustration {
    aspect-ratio: 4 / 3;
}

/* Grid-Kinder erhalten sonst per Default min-width:auto und können ihren
   Textinhalt nicht unter die eigene Mindestbreite hinaus schrumpfen/umbrechen —
   führt bei sehr schmalen Breiten zu horizontalem Overflow. */
.menu-band__content {
    min-width: 0;
}

/* --- Kategorie-Titel & Notiz (Speisekarte) --- */

.menu-category__title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 30px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.menu-category__title--with-note {
    margin-bottom: 10px;
}

.menu-category__note {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.menu-category__note-label {
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 17px;
}

.menu-category__note-text {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.7);
    font-size: 14px;
}

/* --- Getränkekarte: Card-Grid --- */

.menu-grid {
    max-width: var(--container-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.menu-card {
    background-color: var(--color-bg-tertiary);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--card-padding-md);
}

.menu-card__inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
}

.menu-card__visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-card__illustration {
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 10px;
}

.menu-card__illustration span {
    font-size: 11.5px;
}

.menu-card__note {
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 14px;
    align-self: flex-start;
    transform-origin: left center;
    transform: rotate(-5deg);
}

.menu-card__content {
    min-width: 0;
}

.menu-card__title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 25px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.menu-card__title--with-intro {
    margin-bottom: 6px;
}

.menu-card__intro {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.55);
    font-size: 13px;
    margin: 0 0 14px;
}

/* --- Preis-Zeilen (gemeinsam für Speisekarte & Getränkekarte) --- */

.menu-items {
    display: flex;
    flex-direction: column;
}

.menu-items--sm {
    font-size: 14.5px;
}

/* Auf .menu-items skoped: „.menu-item" kollidiert sonst mit der
   gleichnamigen Klasse, die wp_nav_menu() jedem Hauptnavigations-<li>
   zuweist (unabhängiges WordPress-Kernverhalten, keine Verbindung zu
   dieser Komponente). */
.menu-items .menu-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: var(--border-subtle);
}

.menu-items--sm .menu-item {
    gap: 14px;
    padding: 9px 0;
}

.menu-item--no-border {
    border-bottom: none;
}

.menu-items .menu-item--stacked {
    display: block;
    padding: 9px 0;
    border-bottom: var(--border-subtle);
}

.menu-items .menu-item--stacked.menu-item--no-border {
    border-bottom: none;
}

.menu-item--stacked .menu-item__name {
    margin-bottom: 4px;
}

.menu-item--price-muted .menu-item__price {
    color: rgba(243, 230, 208, 0.6);
    font-weight: 400;
    font-size: 14px;
}

.menu-item__content {
    min-width: 0;
}

.menu-item__name {
    font-family: var(--font-body);
    color: var(--color-text);
    font-weight: 600;
    font-size: 16px;
    overflow-wrap: break-word;
}

.menu-items--sm .menu-item__name {
    font-size: 14.5px;
}

.menu-item--muted .menu-item__name {
    color: rgba(243, 230, 208, 0.7);
}

.menu-item__subtitle {
    color: rgba(243, 230, 208, 0.5);
    font-weight: 400;
    font-size: 12.5px;
}

/* Ernährungs-Kennzeichnung (vegan gefüllt, vegetarisch als Umriss). */
.menu-item__diet {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: 0.1em;
    color: var(--color-accent);
}

.menu-item__diet--vegan {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.menu-item__description {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.6);
    font-size: 13.5px;
    margin-top: 2px;
}

.menu-item__price {
    font-family: var(--font-body);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.menu-items--sm .menu-item__price {
    font-size: 14.5px;
}

.menu-item__price-prefix {
    color: rgba(243, 230, 208, 0.6);
    font-weight: 400;
}

.menu-item__price-lines {
    text-align: right;
}

.menu-item__variants {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: rgba(243, 230, 208, 0.65);
    margin-top: 4px;
}

.menu-item__note {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.55);
    font-size: 13.5px;
    padding: 9px 0;
}

/* --- PDF-Download-Box --- */

.menu-pdf {
    max-width: var(--container-content);
    margin: 0 auto;
    border: 1.5px dashed rgba(247, 181, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.menu-pdf__info {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.menu-pdf__copy {
    min-width: 0;
}

/* Dokument-Symbol (Inline-SVG in menu-pdf.php) statt des Platzhalters
   aus dem Entwurf; gleiche Fläche, Linienstil wie die übrigen Icons. */
.menu-pdf__icon {
    width: 56px;
    height: 66px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.menu-pdf__icon svg {
    width: 48px;
    height: 56px;
}

.menu-pdf__title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 23px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

/* Einzelne lange, zusammengesetzte Wörter (z. B. "Getränkekarte") können bei
   sehr schmalen Containern nicht umbrechen und liefen sonst über den Rand
   hinaus. Wirkt sich nur bei sehr schmalen Breiten aus, keine optische
   Änderung bei den regulären Breiten der Designvorlage. */
.menu-hero__title,
.menu-signature__title,
.menu-category__title,
.menu-card__title,
.menu-pdf__title {
    overflow-wrap: break-word;
}

.menu-pdf__text {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.7);
    font-size: var(--fs-small);
}

.menu-pdf__button {
    padding: 14px 30px;
}

/* --- Speisekarte: Footer-Hinweis --- */

.menu-footer-note {
    max-width: var(--container-content);
    margin: 0 auto;
    border-top: var(--border-default);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.menu-footer-note__text {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.6);
    font-size: var(--fs-label);
    line-height: 1.6;
    margin: 0;
    max-width: 62ch;
}

.menu-footer-note__handwritten {
    font-family: var(--font-brand);
    color: var(--color-accent);
    font-size: 16px;
    line-height: 1.4;
    align-self: flex-start;
    transform-origin: left center;
    transform: rotate(-4deg);
}

/* --- Responsive: Speisekarte (Referenz-Breakpoint 900px) --- */

@media (max-width: 900px) {
    .menu-page--speisekarte .menu-hero__grid,
    .menu-page--speisekarte .menu-band,
    .menu-page--speisekarte .menu-band--rev {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .menu-page--speisekarte .menu-band__illustration {
        max-width: 300px;
        width: 100%;
    }

    .menu-page--speisekarte .menu-band--rev .menu-band__illustration {
        order: -1;
    }
}

/* Mobil dieselben reduzierten Abstände wie die Karten der Getränkeseite. */
@media (max-width: 600px) {
    .menu-page--speisekarte .menu-band-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .menu-page--speisekarte .menu-band {
        padding: 18px;
    }
}

/* --- Getränkekarte: Preistabelle über volle Breite (z. B. „Bier vom Fass") ---
   Aktiviert über das Kategorie-Feld „Als Preistabelle über volle Breite
   anzeigen". Spaltenzahl kommt dynamisch als --tap-cols aus dem Template. */

.menu-grid > .menu-card--wide {
    grid-column: 1 / -1;
}

.menu-page--getraenke .menu-card--wide .menu-card__inner {
    grid-template-columns: 200px minmax(0, 1fr);
}

.tap-table {
    max-width: 640px;
}

.tap-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(var(--tap-cols, 3), 5.5rem);
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: var(--border-subtle);
}

.tap-row:last-child {
    border-bottom: 0;
}

.tap-row > span:not(:first-child) {
    text-align: right;
}

.tap-table .menu-item__name,
.tap-table .menu-item__price {
    font-size: var(--fs-small);
}

.tap-head {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    padding-top: 0;
    border-bottom: var(--border-default);
}

.tap-empty {
    color: var(--color-text);
    opacity: 0.3;
}

/* --- Responsive: Getränkekarte (Referenz-Breakpoints 1080/760/440px) --- */

@media (max-width: 1080px) {
    .menu-page--getraenke .menu-card__inner {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .menu-page--getraenke .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-page--getraenke .menu-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .menu-page--getraenke .menu-grid-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .menu-page--getraenke .menu-card {
        padding: 18px;
    }

    .menu-page--getraenke .menu-card--wide .menu-card__inner {
        grid-template-columns: 1fr;
    }

    .menu-page--getraenke .menu-card--wide .menu-card__illustration {
        max-width: 150px;
    }

    /* Preistabelle bleibt auch mobil ein Grid mit Kopfzeile und „–". */
    .tap-table {
        max-width: none;
    }

    .tap-row {
        grid-template-columns: minmax(0, 1fr) repeat(var(--tap-cols, 3), 3.6rem);
        column-gap: 0.5rem;
        row-gap: 0.15rem;
        padding: 0.55rem 0;
    }

    .tap-row.tap-head {
        padding: 0.5rem 0 0.4rem;
    }

    .tap-row > span:not(:first-child) {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .tap-table .menu-item__name {
        line-height: 1.3;
    }
}

/* Sehr schmal: Biername über die volle Zeile, Preise in der Zeile darunter
   (Spalten bleiben unter der Kopfzeile ausgerichtet). */
@media (max-width: 380px) {
    .tap-row:not(.tap-head) > :first-child {
        grid-column: 1 / -1;
    }

    .tap-row:not(.tap-head) > :nth-child(2) {
        grid-column: 2;
    }

    .tap-row {
        grid-template-columns: minmax(0, 1fr) repeat(var(--tap-cols, 3), 3.4rem);
    }
}

@media (max-width: 440px) {
    .menu-page--getraenke .menu-card__inner {
        grid-template-columns: 1fr;
    }

    .menu-page--getraenke .menu-card__illustration {
        max-width: 150px;
    }
}


/* ==========================================================================
   22. Räume (page-raeume.php)
   ========================================================================== */

.room-rows {
    background-color: var(--color-bg);
    padding: 40px var(--spacing-page-x);
}

.room-rows__inner {
    max-width: var(--container-content);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* Reihenfolge Foto/Text wird bereits im Template über die DOM-Reihenfolge
   alternierend gerendert (siehe room-row.php, gleiches Prinzip wie
   menu-category-band.php) — .room-row--rev trägt aktuell keine eigene
   CSS-Regel, dient aber als Hook für den Fall, dass später doch eine
   visuelle Unterscheidung nötig wird. */
.room-row {
    display: flex;
    gap: 44px;
    align-items: center;
    flex-wrap: wrap;
}

.room-row__photo {
    flex: 1 1 380px;
    min-width: 280px;
}

.room-row__content {
    flex: 1 1 380px;
    min-width: 280px;
}

.room-row__title {
    font-family: var(--font-heading);
    font-size: 30px;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 12px;
}

.room-row__description {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.78);
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0 0 16px;
}

.room-row__description p {
    margin: 0;
}

.room-row__capacity {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-accent);
    font-size: 14px;
    margin: 0 0 20px;
}

.room-row__cta {
    padding: 12px 24px;
    font-size: 14.5px;
}

@media (max-width: 820px) {
    /* Bewusst kein 1:1-Abbild der Desktop-Anordnung, sondern ein eigenes,
       kompakteres Layout: Foto immer oben (keine alternierende Reihenfolge),
       flachere Bildhöhe, deutlich engere Abstände. */

    .room-row {
        flex-direction: column;
    }

    /* Ohne width:100% bleiben Foto/Text bei align-items:center auf ihrer
       Breite (380px) stehen, statt die volle Zeilenbreite einzunehmen —
       führt sonst zu horizontalem Overflow. Ohne flex:none wirkt dieselbe
       flex-basis (380px) in flex-direction:column zusätzlich als
       Höhen-Vorgabe (erzwingt bei .room-row__content unnötigen Leerraum
       unter dem Text, bei .room-row__photo überschreibt es die
       aspect-ratio-Berechnung). */
    .room-row__photo,
    .room-row__content {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    /* Foto immer zuerst, unabhängig von der (nur für die Desktop-Alternierung
       relevanten) DOM-Reihenfolge aus room-row.php. */
    .room-row__photo {
        order: -1;
        aspect-ratio: 16 / 9;
    }

    .room-rows__inner {
        gap: 36px;
    }

    .room-row {
        gap: 16px;
    }

    .room-row__title {
        margin: 0 0 8px;
    }

    .room-row__description {
        margin: 0 0 10px;
    }

    .room-row__capacity {
        margin: 0 0 12px;
    }

    .rooms-cta {
        margin-top: 32px;
    }
}

/* --- Abschließendes CTA-Banner --- */

.rooms-cta {
    background-color: var(--color-bg-secondary);
    padding: 70px var(--spacing-page-x) 100px;
    margin-top: 60px;
}

.rooms-cta__inner {
    max-width: var(--container-cta);
    margin-inline: auto;
    text-align: center;
}

.rooms-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4vw, 36px);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 16px;
}

.rooms-cta__text {
    font-family: var(--font-body);
    color: rgba(243, 230, 208, 0.78);
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Dezenter Textlink zur Galerie unter dem Button (wie .instagram__link) */
.rooms-cta__more {
    margin: 22px 0 0;
}

.rooms-cta__link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--color-accent);
}


/* ==========================================================================
   23. Kontakt (page-kontakt.php)
   ========================================================================== */

.contact-section {
    background-color: var(--color-bg);
    padding: 40px var(--spacing-page-x) 100px;
}

.contact-section__inner {
    max-width: var(--container-content);
    margin-inline: auto;
    display: flex;
    gap: 44px;
}

.contact-section__info {
    flex: 1 1 320px;
    min-width: 280px;
}

.contact-section__map {
    flex: 1 1 420px;
    min-width: 280px;
}

.contact-map {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(247, 181, 0, 0.2);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Zwei-Klick-Platzhalter: gleiche Fläche wie die Karte (kein Layout Shift
   beim Laden auf dem Desktop), im Stil der Kartenboxen statt als
   Cookie-Hinweis. Hintergrund: lokaler OpenStreetMap-Ausschnitt, Adresse in
   der Bildmitte. Das Bild wird vergrößert und so verschoben, dass die
   Adresse (und damit der Geist-Pin) bei --map-focus liegt und oberhalb des
   Panels sichtbar bleibt. */
.contact-map--consent {
    --map-focus: 30%;
    --map-scale: 1.5;
    position: relative;
    /* overflow: visible lässt die Box auf schmalen Displays über 4:3 hinaus
       wachsen, statt den Inhalt abzuschneiden (aspect-ratio bleibt Minimum);
       das Bild selbst schneidet .contact-map__preview zu. */
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    background-color: var(--color-bg-tertiary);
}

.contact-map__preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.contact-map__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(calc(var(--map-focus) - 50%)) scale(var(--map-scale));
    filter: saturate(0.55) brightness(0.9);
}

/* Abdunkeln Richtung Seitenfarbe, unten stärker (dort liegt das Panel). */
.contact-map__preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(56, 18, 42, 0.25) 0%, rgba(56, 18, 42, 0.55) 55%, rgba(56, 18, 42, 0.85) 100%);
}

/* Position über left/top statt transform, da ghost-bob den transform
   belegt. Pin 44×53 px, Spitze (Saum) etwa auf der Adresse. */
.contact-map__pin {
    position: absolute;
    left: calc(50% - 22px);
    top: calc(var(--map-focus) - 47px);
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
    animation: ghost-bob 3.6s ease-in-out infinite;
}

.contact-map__attribution {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background-color: rgba(38, 13, 28, 0.8);
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
}

.contact-map__attribution:hover,
.contact-map__attribution:focus-visible {
    color: var(--color-text);
}

.contact-map__attribution:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.contact-map__consent {
    position: relative;
    z-index: 1;
    max-width: 420px;
    padding: 18px 20px;
    text-align: center;
    background-color: rgba(50, 15, 36, 0.9);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.contact-map__title {
    font-family: var(--font-heading);
    font-size: var(--fs-card);
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 8px;
}

.contact-map__text {
    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0 0 14px;
}

.contact-map__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
}

.contact-map__external {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-accent);
    padding: 12px 0;
}

.contact-map__external:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Schmal: oben Platz für den Kartenausschnitt mit Pin freihalten. */
@media (max-width: 600px) {
    .contact-map--consent {
        --map-focus: 92px;
        --map-scale: 1.9;
        padding: 140px 10px 10px;
    }
}

@media (max-width: 440px) {
    .contact-map__consent {
        padding: 14px;
    }

    .contact-map__text {
        font-size: 13.5px;
        margin-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-map__pin {
        animation: none;
    }
}

@media (max-width: 820px) {
    .contact-section__inner {
        flex-direction: column;
    }

    /* Gleicher Grund wie bei .room-row__photo/__content: die flex-basis
       (320px/420px) würde in flex-direction:column sonst als Höhen-Vorgabe
       wirken statt als Breite. */
    .contact-section__info,
    .contact-section__map {
        flex: none;
        width: 100%;
    }
}


/* ==========================================================================
   404-Seite (404.php)
   ========================================================================== */

.error-404 {
    background-color: var(--color-bg);
    padding: 56px var(--spacing-page-x) 96px;
}

.error-404__inner {
    max-width: var(--container-content);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 48px;
}

.error-404__ghost {
    padding-top: 24px;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 760px) {
    .error-404 {
        padding: 32px var(--spacing-page-x) 72px;
    }

    .error-404__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .error-404__ghost .hero__ghost-wrap--solo {
        width: min(55vw, 220px);
    }
}

@media (max-width: 600px) {
    .error-404__actions {
        flex-direction: column;
    }

    .error-404__actions .btn {
        text-align: center;
    }
}


/* ==========================================================================
   24. Galerie (page-galerie.php)
   ========================================================================== */

/* Einheitliche, quadratische Kacheln (ruhiges Raster); die Lightbox zeigt
   das vollständige Bild. Mobil bewusst wenig Abstand, damit die Fotos den
   Platz bekommen. */
.gallery {
    background-color: var(--color-bg);
    padding: 0 var(--spacing-page-x) 100px;
}

.gallery__inner {
    max-width: var(--container-content);
    margin-inline: auto;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-grid__item {
    min-width: 0;
}

.gallery-grid__link {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-secondary);
}

.gallery-grid__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-grid__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (hover: hover) {
    .gallery-grid__link:hover .gallery-grid__img {
        transform: scale(1.04);
        filter: brightness(1.06);
    }
}

/* Kacheln blenden beim Einscrollen dezent ein – rein per CSS, nur wo der
   Browser scroll-gesteuerte Animationen kennt (sonst sofort sichtbar). */
@supports (animation-timeline: view()) {
    .gallery-grid__item {
        animation: gallery-reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

@keyframes gallery-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1099px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 599px) {
    .gallery {
        padding: 0 10px 72px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .gallery-grid__link {
        border-radius: 8px;
    }
}

/* --- Lightbox (natives <dialog>) --- */

html.lightbox-open {
    overflow: hidden;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: rgba(26, 8, 19, 0.96);
    color: var(--color-text);
    overflow: hidden;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    animation: lightbox-in 0.25s ease-out;
}

.lightbox::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox__stage {
    /* Flex statt Grid: so bezieht sich max-height: 100% des Bildes auf die
       (durch die Dialog-Zeile festgelegte) Höhe der Bühne. */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 20px 20px 8px;
    touch-action: none;
    user-select: none;
}

/* Vollständiges Bild, nie zugeschnitten. */
.lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox__img.is-loading {
    opacity: 0;
}

.lightbox__img.is-dragging {
    transition: none;
}

.lightbox__caption {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 4px 20px 0;
    font-size: var(--fs-small);
    line-height: var(--lh-body);
    color: var(--color-text-muted);
    text-align: center;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px max(12px, env(safe-area-inset-bottom));
}

.lightbox__counter {
    margin: 0;
    font-size: var(--fs-label);
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
}

.lightbox__controls {
    display: flex;
    gap: 8px;
}

.lightbox__btn {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: var(--border-default);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lightbox__btn[hidden] {
    display: none;
}

.lightbox__btn:hover {
    color: var(--color-accent);
    border-color: rgba(247, 181, 0, 0.45);
}

.lightbox__btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

@media (max-width: 599px) {
    .lightbox__stage {
        padding: 12px 8px 4px;
    }

    .lightbox__bar {
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-grid__item {
        animation: none;
    }

    .gallery-grid__img,
    .lightbox__img {
        transition: none;
    }

    .gallery-grid__link:hover .gallery-grid__img {
        transform: none;
    }

    .lightbox[open] {
        animation: none;
    }
}


/* ==========================================================================
   25. Fotostrecke (Startseite, unter dem Hero)
   ========================================================================== */

/* Durchgehende Bildreihe über die volle Breite. Ohne JavaScript bzw. bei
   „Bewegung reduzieren“ von Hand wischbar; mit JavaScript (.is-animated)
   läuft sie langsam und nahtlos (assets/js/photo-strip.js). Bildhöhen
   müssen zu $heights in template-parts/components/photo-strip.php passen. */
.photo-strip {
    --strip-h: 210px;
    --strip-gap: 10px;
    /* Dezent zwischen Hero und „Jede Woche bei uns“: unten weicher Übergang
       in deren Hintergrundfarbe statt einer harten Kante. */
    background-color: var(--color-bg);
    background-image: linear-gradient(180deg, var(--color-bg) 55%, var(--color-bg-secondary));
    padding: 6px 0 10px;
}

.photo-strip__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.photo-strip__link:focus-visible {
    outline: none;
}

.photo-strip__link:focus-visible .photo-strip__viewport {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.photo-strip__viewport {
    display: block;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.photo-strip__viewport::-webkit-scrollbar {
    display: none;
}

.photo-strip.is-animated .photo-strip__viewport {
    overflow: hidden;
    touch-action: pan-y;
    cursor: pointer;
    /* weiche Ränder statt harter Bildkanten am Bildschirmrand */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.photo-strip.is-dragging .photo-strip__viewport {
    cursor: grabbing;
}

.photo-strip__track {
    display: flex;
    width: max-content;
    margin-inline: auto;
    padding-inline: var(--strip-gap);
}

.photo-strip.is-animated .photo-strip__track {
    margin-inline: 0;
    padding-inline: 0;
    will-change: transform;
}

.photo-strip__item {
    display: block;
    flex: 0 0 auto;
    height: var(--strip-h);
    margin-right: var(--strip-gap);
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-secondary);
}

.photo-strip__img {
    display: block;
    width: auto;
    height: 100%;
    transition: transform 0.8s ease, filter 0.8s ease;
    -webkit-user-drag: none;
    user-select: none;
}

@media (hover: hover) {
    .photo-strip__item:hover .photo-strip__img {
        transform: scale(1.03);
        filter: brightness(1.08);
    }
}

.photo-strip__controls {
    display: flex;
    justify-content: flex-end;
    max-width: var(--container-hero);
    margin: 2px auto 0;
    padding-inline: var(--spacing-page-x);
}

.photo-strip__toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text-subtle);
    cursor: pointer;
    transition: color 0.2s ease;
}

.photo-strip__toggle[hidden] {
    display: none;
}

.photo-strip__toggle:hover {
    color: var(--color-accent);
}

.photo-strip__toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.photo-strip__icon {
    fill: currentColor;
}

.photo-strip__icon--play,
.photo-strip.is-paused .photo-strip__icon--pause {
    display: none;
}

.photo-strip.is-paused .photo-strip__icon--play {
    display: block;
}

@media (max-width: 1099px) {
    .photo-strip {
        --strip-h: 190px;
        --strip-gap: 9px;
    }
}

@media (max-width: 599px) {
    .photo-strip {
        --strip-h: 150px;
        --strip-gap: 8px;
        padding-bottom: 6px;
    }

    .photo-strip__item {
        border-radius: 8px;
    }

    .photo-strip__controls {
        padding-inline: 12px;
    }

    /* Touch-Ziel 44 px auf dem Smartphone */
    .photo-strip__toggle {
        width: 44px;
        height: 44px;
    }
}

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

    .photo-strip__item:hover .photo-strip__img {
        transform: none;
    }
}
