:root {
    --color-bg: #ffffff;
    --color-surface: #f7f6f4;
    --color-text: #2a2d33;
    --color-muted: #656d6d;
    --color-accent: #fcb900;
    --color-accent-text: #1f252e;
    /* Kopf-/Fußleiste in beiden Designs = Hintergrund des dunklen Designs:
       Android färbt die Systemleiste unten fest mit der Manifest-Farbe
       (eine für beide Designs), nur so überall nahtlos */
    --color-header-bg: #14171c;
    --color-header-text: #ffffff;
    --color-border: #e3e1dc;
    --color-error-bg: #fbe2e0;
    --color-error-text: #a3352b;
    --color-success-bg: #e3f3e6;
    --color-success-text: #276b3a;
    /* Überschriften/Links - im hellen Design wie die Kopfzeile (dunkel),
       im dunklen Design hell (die Kopfzeile bleibt dort dunkel). */
    --color-heading: #1f252e;
    --color-input-bg: #ffffff;
    --color-highlight-bg: #fff6d6;
    --color-border-strong: #cfccc5;
    --color-locked-bg: #e4e4e2;
    --color-locked-text: #8a8a86;
    color-scheme: light;
}

/* Per hidden-Attribut ausgeblendete Elemente bleiben ausgeblendet - auch
   wenn eine Klasse ein eigenes display setzt (z. B. .button-with-icon mit
   inline-flex; das Browser-[hidden] verliert sonst immer). Ersetzt die
   früher je Element einzeln nötigen "[hidden] { display: none }"-Regeln. */
[hidden] {
    display: none !important;
}

/* Dunkles Design: automatisch nach Geräte-Einstellung (ohne data-theme =
   "System") oder fest gewählt (data-theme="dark", siehe App\Support\Theme).
   Die Werte stehen doppelt, da CSS eine Media-Query nicht mit einem
   Attribut-Selektor zu einer Regel zusammenfassen kann. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #14171c;
        --color-surface: #1e232a;
        --color-text: #e4e7eb;
        --color-muted: #9ba3ad;
        --color-accent-text: #1f252e;
        --color-header-bg: #14171c; /* = --color-bg, siehe oben (Android-Systemleiste) */
        --color-header-text: #ffffff;
        --color-border: #2f3640;
        --color-error-bg: #3b2220;
        --color-error-text: #f29a90;
        --color-success-bg: #1d3526;
        --color-success-text: #86d6a0;
        --color-heading: #f3f4f6;
        --color-input-bg: #191d23;
        --color-highlight-bg: #3a3218;
        --color-border-strong: #454c56;
        --color-locked-bg: #23272e;
        --color-locked-text: #767d87;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --color-bg: #14171c;
    --color-surface: #1e232a;
    --color-text: #e4e7eb;
    --color-muted: #9ba3ad;
    --color-accent-text: #1f252e;
    --color-header-bg: #14171c; /* = --color-bg, siehe oben (Android-Systemleiste) */
    --color-header-text: #ffffff;
    --color-border: #2f3640;
    --color-error-bg: #3b2220;
    --color-error-text: #f29a90;
    --color-success-bg: #1d3526;
    --color-success-text: #86d6a0;
    --color-heading: #f3f4f6;
    --color-input-bg: #191d23;
    --color-highlight-bg: #3a3218;
    --color-border-strong: #454c56;
    --color-locked-bg: #23272e;
    --color-locked-text: #767d87;
    color-scheme: dark;
}

/* ---------- Ladegrafik bei internen Seitenwechseln (siehe nav-loading.js) ---------- */

.page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
}

/* Autoren-"display: flex" oben würde sonst das UA-"[hidden]" immer
   überstimmen (gleiche Spezifität, Autoren-CSS gewinnt unabhängig von der
   Reihenfolge) - ohne das hier bliebe die Grafik dauerhaft sichtbar. */
.page-loading-overlay[hidden] {
    display: none;
}

/* Ladegrafik als Pegelanzeige (Equalizer): 5 Balken, die unterschiedlich
   schnell springen - passt zum Festival statt eines rotierenden Kreises */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 44px;
}

.equalizer span {
    display: block;
    width: 7px;
    height: 100%;
    border-radius: 3px 3px 1px 1px;
    background: var(--color-accent);
    transform-origin: bottom;
    animation: equalizer-bounce 1.3s ease-in-out infinite;
}

.equalizer span:nth-child(1) { animation-duration: 1.25s; animation-delay: -0.45s; }
.equalizer span:nth-child(2) { animation-duration: 1.00s; animation-delay: -0.20s; }
.equalizer span:nth-child(3) { animation-duration: 1.45s; animation-delay: -0.85s; }
.equalizer span:nth-child(4) { animation-duration: 1.10s; animation-delay: -0.30s; }
.equalizer span:nth-child(5) { animation-duration: 1.35s; animation-delay: -0.65s; }

@keyframes equalizer-bounce {
    0%, 100% { transform: scaleY(0.2); }
    25% { transform: scaleY(0.95); }
    50% { transform: scaleY(0.45); }
    75% { transform: scaleY(0.75); }
}

/* "Bewegung reduzieren": ruhiges, langsames Pulsieren statt Springen */
@media (prefers-reduced-motion: reduce) {
    .equalizer span {
        animation: equalizer-pulse 2.4s ease-in-out infinite;
        transform: scaleY(0.6);
    }
}

@keyframes equalizer-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

* { box-sizing: border-box; }

/* Einheitliche Icon-Größe als Basis (siehe App\Support\Icons) - ohne
   explizite Größe würde ein <svg> ohne width/height auf die Browser-
   Standardgröße (oft 300x150) aufblasen. Einzelne Stellen setzen ihre
   eigene Größe passend zum Kontext (Bottom-Nav, Kacheln, ...). */
svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Leaflet zeichnet seine eigenen Overlays (z. B. Kreis-Marker) als
   kartenfüllendes <svg> - ohne diese Ausnahme quetscht die generische
   svg-Regel oben (für unsere eigenen 20x20-Icons) dieses Overlay auf
   20x20px zusammen, wodurch alle darin gezeichneten Marker unsichtbar
   werden (kein Fehler, einfach nicht mehr im sichtbaren Bereich). */
.leaflet-container svg {
    width: auto;
    height: auto;
    flex-shrink: initial;
}

.inline-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
}

html {
    height: 100%;
    overflow-x: hidden;
    /* Hinter Statusleiste, Home-Indicator und beim Über-den-Rand-Ziehen
       (iOS) schimmert html durch - dunkel wie Kopf- und Fußleiste, die in
       beiden Designs dunkel sind; der Inhalt selbst liegt auf body. */
    background: var(--color-header-bg);
}

body {
    margin: 0;
    min-height: 100%;
    /* NICHT hier zusätzlich overflow-x:hidden setzen (steht schon auf html
       oben) - das machte body selbst zum Scroll-Container und brach damit
       "position: sticky" auf .site-header (Sticky bezieht sich auf den
       nächsten scrollenden Vorfahren; scrollt tatsächlich aber die Seite
       über html/den Viewport, nicht über body). */
    display: flex;
    flex-direction: column;
    font-family: 'Barlow', Arial, Verdana, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-heading);
    line-height: 1.15;
}

/* Seitenüberschriften in der Festival-Schrift Edo SZ (nur Großbuchstaben, kann Umlaute und Satzzeichen, nicht # und @) */
h1 {
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: 2rem;
    margin: 0 0 1rem;
    overflow-wrap: break-word;
}
h2 { font-size: 1.4rem; margin: 1.5rem 0 0.75rem; }

a { color: var(--color-heading); }
a:hover { color: var(--color-accent); }

/* ---------- Header / Nav (mobile-first) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-header-bg);
    color: var(--color-header-text);
    /* viewport-fit=cover: Kopfzeile reicht hinter die Statusleiste (nahtlos),
       Logo und Menü beginnen erst darunter */
    /* + 8 px Luft nur mit Statusleiste (iPhone), damit deren Unschärfe-Kante das Logo nicht anschneidet; ohne Statusleiste ist min() = 0 */
    padding-top: calc(env(safe-area-inset-top, 0px) + min(env(safe-area-inset-top, 0px), 8px));
}

/* Stehen Hinweisleisten darüber, übernehmen die den Abstand zur Statusleiste */
.top-bars {
    padding-top: calc(env(safe-area-inset-top, 0px) + min(env(safe-area-inset-top, 0px), 8px));
    background: var(--color-header-bg);
}

.top-bars ~ .site-header {
    padding-top: 0;
}

.site-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.brand img {
    display: block;
    height: 36px;
    width: auto;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: none;
    border: none;
    appearance: none;
}

.nav-toggle-label span {
    display: block;
    height: 3px;
    background: var(--color-header-text);
    border-radius: 2px;
}

.header-admin-badge {
    margin-left: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    color: var(--color-accent);
}

/* Testsystem: Fähnchen mittig auf dem violetten Strich unter dem Header
   (gleiches Violett wie das Staging-App-Icon) - außerhalb der Kopfzeile,
   damit Burger, ADMIN und Logo ihren Platz behalten */
.header-staging-badge {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translate(-50%, 50%);
    z-index: 1;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    line-height: 1.2;
    background: #7e22ce;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Bei offenem Menü ausblenden (würde sonst halb vom Menü verdeckt) */
.site-header:has(#nav-toggle-btn[aria-expanded="true"]) .header-staging-badge {
    display: none;
}

.site-header:has(.header-staging-badge) {
    border-bottom: 4px solid #7e22ce;
}

.header-icons {
    margin-left: auto;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-icon-link {
    line-height: 1;
    text-decoration: none;
    color: var(--color-header-text);
}

.header-icon-link svg {
    width: 22px;
    height: 22px;
}

.header-icon-badge-holder {
    position: relative;
    display: inline-flex;
}

.header-icon-badge-holder .bottom-app-nav-badge {
    top: -4px;
    right: -6px;
}

.nav-links a.nav-links-icon-desktop-only {
    /* Höhere Spezifität als die allgemeine ".nav-links a"-Regel nötig,
       sonst gewinnt deren "display: block" und die Icons erscheinen
       zusätzlich im aufgeklappten Burger-Menü auf Mobile. */
    display: none;
}

@media (max-width: 779.98px) {
    /* Burger ganz links, Logo absolut mittig über der gesamten Kopfzeile
       (nicht nur im verbleibenden Platz zwischen ungleich breiten
       Nachbarn - Burger/ADMIN-Badge links und Icons rechts sind
       unterschiedlich breit, "flex:1 + justify-content:center" hätte das
       Logo also relativ zum Rest-Platz statt zur echten Bildschirmmitte
       zentriert). Nur auf Mobile, am Desktop bleibt die normale
       Reihenfolge (Logo links, kein Burger). */
    .nav-toggle-label {
        order: 1;
    }

    .header-admin-badge {
        order: 2;
        margin-left: 0.5rem;
    }

    .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .header-icons.header-icons-mobile-only {
        order: 4;
        margin-left: auto;
    }
}

@media (min-width: 780px) {
    .header-icons-mobile-only {
        display: none;
    }

    /* Auf dem Desktop reihen sich Haus- und Profil-Icon nahtlos in die
       Text-Menüpunkte ein (Haus zuerst, Profil zuletzt), statt als eigene
       Gruppe davor zu stehen. */
    .nav-links a.nav-links-icon-desktop-only {
        display: inline-flex;
        align-items: center;
    }

    .nav-links a.nav-links-icon-desktop-only svg {
        width: 20px;
        height: 20px;
    }
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.nav-links.is-open {
    /* Vorher ein fester max-height-Wert (24rem), der bei angemeldeten
       Nutzer:innen mit vielen Zusatzpunkten (Feedback, Camping, Admin-/
       Crew-Links, Abmelden, Impressum, Datenschutz) nicht mehr ausreichte -
       die letzten Einträge (u.a. Impressum/Datenschutz) wurden dadurch
       unsichtbar abgeschnitten (overflow: hidden, kein Scrollen möglich).
       Jetzt an die tatsächliche Bildschirmhöhe gekoppelt und scrollbar. */
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.nav-links a, .nav-links .link-button, .nav-links .nav-link-disabled {
    color: var(--color-header-text);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    display: block;
}

.nav-links a:hover, .nav-links .link-button:hover {
    color: var(--color-accent);
}

.nav-group summary {
    color: var(--color-header-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    list-style: none;
}

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

.nav-group summary::after {
    content: '▾';
    float: right;
}

.nav-group[open] summary::after {
    content: '▴';
}

.nav-group-panel a {
    padding-left: 2rem !important;
    font-size: 0.8rem !important;
    opacity: 0.85;
}

.inline-form { margin: 0; display: inline; }

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--color-error-text);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover { opacity: 0.75; }

@media (min-width: 780px) {
    .nav-toggle-label { display: none; }

    /* Menüpunkte brechen nie in sich um (sonst zweizeilige Einträge wie
       "News-/Analyse" und Pfeile unter dem Text). Reicht die Breite bei
       vielen Punkten (Admin) nicht, rutschen ganze Punkte rechtsbündig in
       eine zweite Zeile. */
    .nav-links {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        max-height: none;
        overflow: visible;
        gap: 0.1rem 0.1rem;
        background: none;
        margin-left: auto;
    }

    .nav-links a, .nav-links .link-button {
        border-top: none;
        width: auto;
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
    }

    .nav-group {
        position: relative;
    }

    .nav-group summary {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        border-top: none;
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
    }

    .nav-group summary:hover,
    .nav-group[open] summary {
        color: var(--color-accent);
    }

    .nav-group summary::after {
        float: none;
        font-size: 0.7em;
        opacity: 0.75;
    }

    .header-admin-badge {
        margin-left: 1rem;
        white-space: nowrap;
    }

    .nav-group-panel {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--color-header-bg);
        min-width: 160px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
        border-radius: 0 0 6px 6px;
        overflow: hidden;
        z-index: 20;
    }

    .nav-group-panel a {
        padding-left: 1rem !important;
    }
}

/* Impressum/Datenschutz: dezent statt gleichrangig mit den Hauptpunkten */
.nav-links a.nav-links-legal {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

@media (min-width: 780px) {
    /* Auf dem Desktop ziehen Impressum/Datenschutz in den schmalen
       Footer-Balken um (dort gibt es - anders als auf Mobile mit der
       Bottom-App-Nav - sonst keinen Platz dafür). */
    .nav-links a.nav-links-legal {
        display: none;
    }
}

.desktop-legal-footer {
    display: none;
}

@media (min-width: 780px) {
    .desktop-legal-footer {
        display: block;
        background: var(--color-header-bg);
        padding: 0.75rem 1rem;
    }

    .desktop-legal-footer-inner {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        gap: 1.5rem;
    }

    .desktop-legal-footer a {
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 0.8rem;
    }

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

/* ---------- Bottom-App-Nav (nur mobil, wie eine native App-Navigation) ---------- */

.bottom-app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    background: var(--color-header-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-app-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem 0.6rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-app-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-app-nav-icon {
    position: relative;
    display: inline-flex;
}

.bottom-app-nav-badge {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

.bottom-app-nav-item.is-active {
    color: var(--color-accent);
}

.bottom-app-nav-item-locked {
    color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 780px) {
    .bottom-app-nav {
        display: none;
    }

    /* Auf Mobile steht "Login" zusätzlich als Text im Burger-Menü - auf dem
       Desktop übernimmt dort das Profil-Icon in der Kopfzeile dieselbe
       Funktion, der Text-Link wäre doppelt. Höhere Spezifität als die
       allgemeine ".nav-links a"-Regel nötig, sonst gewinnt deren
       "display: block". */
    .nav-links a.nav-links-login-mobile-only,
    .nav-links a.nav-links-mobile-only {
        display: none;
    }
}

@media (max-width: 779.98px) {
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + var(--bottom-dock-h, 0px));
    }
}

@media (min-width: 780px) {
    body {
        padding-bottom: var(--bottom-dock-h, 0px);
    }
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    flex: 1 0 auto;
}

/* ---------- Forms ---------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
}

.form label { font-weight: 600; margin-top: 0.5rem; }

.form-hint {
    margin: -0.25rem 0 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* Hinweis direkt auf der Seite (nicht unter einem Formularfeld): Abstand
   zum folgenden Inhalt, sonst klebt z. B. die nächste Karte daran. */
main > .form-hint {
    margin-bottom: 1.25rem;
}

.form input,
.form select,
.form textarea,
.comparison-event-select select,
.profit-period select,
.profit-period input,
.payment-admin-form input,
.weather-admin-form input,
.payment-admin-filter input,
.payment-admin-filter select,
.payment-admin-form select,
.exklusiv-cart-qty select,
.weather-admin-form select,
.checklist-admin-filter select {
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 1rem;
}

.form select,
.comparison-event-select select,
.profit-period select,
.payment-admin-filter select,
.payment-admin-form select,
.exklusiv-cart-qty select,
.weather-admin-form select,
.checklist-admin-filter select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23656d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.25rem;
}

/* Checkboxen sollen ihre normale Browser-Optik behalten - ohne diesen
   Reset hätten sie (per .form input oben) Padding/Rahmen/Hintergrund wie
   ein Textfeld und sähen dadurch verzerrt aus. */
.form input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    background: none;
}

.form-fieldset {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.form-fieldset legend {
    padding: 0 0.4rem;
    font-weight: 600;
    color: var(--color-muted);
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    margin-top: 0.4rem;
}

.form-checkbox-label:first-of-type {
    margin-top: 0;
}

/* Fieldset mit gleichmäßigen Abständen zwischen allen Elementen
   (Checkboxen, Labels, Eingabefeldern, Hinweisen), z. B. Anbieter-Formular. */
.form-fieldset-stack {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem 1rem 1rem;
}

.form-fieldset-stack > label,
.form-fieldset-stack > .form-checkbox-label {
    margin: 0;
}

.form-fieldset-stack > .form-hint {
    margin: -0.45rem 0 0;
}

.form-fieldset-stack > label + input {
    margin-top: -0.35rem;
}

.form-fieldset-stack + .form-fieldset-stack {
    margin-top: 0.9rem;
}

.form-checkbox-label-wrap {
    align-items: flex-start;
}

.form-checkbox-label-wrap input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.auth-privacy-details {
    margin: 0.75rem 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
}

.auth-privacy-details summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

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

/* eigener Pfeil, mittig zum Text (das Standard-Dreieck saß zu hoch): zeigt nach rechts, aufgeklappt nach unten */
.auth-privacy-details summary::before {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.15rem 0 0.1rem;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}

.auth-privacy-details[open] summary::before {
    transform: rotate(45deg) translate(-2px, -2px);
}

.auth-privacy-content {
    max-height: 45vh;
    overflow-y: auto;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

/* Hinweis unten im scrollenden Feld: Verlauf + "Weiter scrollen", am Ende ausgeblendet (auth/auth.php) */
.auth-privacy-more {
    position: sticky;
    bottom: -1px;
    margin-top: -1rem;
    padding: 2.4rem 0 0.4rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    background: linear-gradient(to bottom, transparent, var(--color-bg) 65%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.auth-privacy-content.is-end .auth-privacy-more {
    opacity: 0;
}

.auth-privacy-full {
    margin: 0.6rem 0 0.1rem;
    font-size: 0.85rem;
}

.auth-privacy-content h1 {
    font-size: 1.15rem;
    margin-top: 0;
}

.auth-privacy-content h2 {
    font-size: 1rem;
}

.auth-privacy-content h3 {
    font-size: 0.95rem;
}

.select-input {
    appearance: none;
    min-width: 200px;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: var(--color-input-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23656d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    color: var(--color-text);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 2.5rem;
}

.password-field .password-toggle {
    /* Höhere Spezifität als ".form button" nötig (Element+Klasse), sonst
       übernimmt dieser kleine Icon-Button ungewollt die große
       Gold-Button-Optik des Submit-Buttons. */
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0.25rem;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    color: var(--color-muted);
}

.password-field .password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle-icon-hide {
    display: none;
}

.password-field .password-toggle.is-visible .password-toggle-icon-show {
    display: none;
}

.password-field .password-toggle.is-visible .password-toggle-icon-hide {
    display: flex;
}

.form button, button[type="submit"] {
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-accent-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.form button:hover, button[type="submit"]:hover {
    background: #e0a700;
}

/* Textlink-Knöpfe ("Gruppe verlassen", "Entfernen") nicht als gelben Absende-Knopf darstellen */
button[type="submit"].link-button,
button[type="submit"].link-button:hover {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-error-text);
    text-decoration: underline;
}
button[type="submit"].link-button:hover { opacity: 0.75; }

/* ---------- Auth tabs (Login/Registrieren, CSS-only) ---------- */

.auth-tabs input[type="radio"] { display: none; }

.auth-tab-labels {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.auth-tab-labels label {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-panel { display: none; }

#tab-login:checked ~ .auth-panels .auth-panel-login,
#tab-register:checked ~ .auth-panels .auth-panel-register {
    display: block;
}

#tab-login:checked ~ .auth-tab-labels label[for="tab-login"],
#tab-register:checked ~ .auth-tab-labels label[for="tab-register"] {
    color: var(--color-heading);
    border-bottom-color: var(--color-accent);
}

/* ---------- Flash messages ---------- */

.flash {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    max-width: 420px;
}

.flash-error { background: var(--color-error-bg); color: var(--color-error-text); }
.flash-success { background: var(--color-success-bg); color: var(--color-success-text); }

/* ---------- Install page ---------- */

.install-steps {
    max-width: 480px;
    padding-left: 1.25rem;
}

.install-steps li {
    margin-bottom: 0.5rem;
}

/* ---------- Camping-Hub: freigeschaltete/gesperrte Kacheln ---------- */

.service-tile.service-tile-locked {
    background: var(--color-locked-bg);
    border-top-color: #cccccc;
}

.service-tile.service-tile-locked h3,
.service-tile.service-tile-locked p {
    color: var(--color-locked-text);
}

/* Nicht-klickbare Variante (Camping-Hub: hier bereits eingeloggt+verknüpft,
   fehlt nur der passende Tickettyp - ein Klick würde nichts bringen). Auf
   der Startseite bleiben gesperrte Kacheln dagegen normale Links (<a>), die
   zur Ticket-Verknüpfung führen sollen, und behalten daher Zeiger/Hover. */
div.service-tile-locked {
    cursor: not-allowed;
}

div.service-tile-locked:hover {
    box-shadow: none;
    transform: none;
}

.plot-grid {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 640px;
    margin-bottom: 1.5rem;
}

.plot {
    min-width: 4.5rem;
}

.plot button, .plot span {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.plot-free button {
    background: var(--color-accent);
    color: var(--color-accent-text);
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.plot-taken span {
    background: var(--color-surface);
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}

.tag-switch {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    max-width: 480px;
}

.tag-switch a {
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tag-switch a.tag-active {
    color: var(--color-heading);
    border-bottom-color: var(--color-accent);
}

.tag-switch-even a {
    flex: 1;
    text-align: center;
}

/* Reiter brechen nie um; passen sie nicht in die Breite (z. B. lange
   Kategorienamen auf Mobile), lässt sich die Leiste seitlich wischen -
   ohne sichtbare Scrollleiste (Fundbüro, Festival-Buddys). */
.tag-switch-scroll {
    max-width: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tag-switch-scroll::-webkit-scrollbar {
    display: none;
}

/* Scroll-Container schneidet am Rand ab: graue Grundlinie daher als
   Innenschatten statt Rahmen, und der gelbe Aktiv-Strich liegt innerhalb
   (ohne negativen Außenabstand) - sonst würde er abgeschnitten. */
.tag-switch.tag-switch-scroll {
    border-bottom: none;
    box-shadow: inset 0 -2px 0 var(--color-border);
}

.tag-switch-scroll a {
    flex-shrink: 0;
    margin-bottom: 0;
}

.table-scroll {
    max-width: 480px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Für breite Tabellen (viele Spalten, z. B. Admin-Listen) - im Gegensatz zu
   .table-scroll ohne feste max-width, nur horizontales Scrollen innerhalb
   der Tabelle statt der ganzen Seite (sonst rutscht auf Mobile u. a. die
   fixierte Bottom-Nav mit aus dem sichtbaren Bereich). */
.table-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-scroll-x .receipt-table {
    margin-bottom: 0;
}

.receipt-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

.admin-table-thumb {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--color-border);
}

/* Für lange Listen (z. B. Admin-Gruppenübersicht) - die Tabelle bekommt
   eine feste Höhe mit eigenem Scrollbalken, statt die ganze Seite (und
   damit auf Mobile die fixierte Bottom-Nav) beliebig lang werden zu lassen. */
.table-scroll-y {
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.table-scroll-y .receipt-table {
    margin-bottom: 0;
}

.table-scroll-y thead th {
    position: sticky;
    top: 0;
    background: var(--color-surface);
    z-index: 1;
}

.admin-groups-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-groups-toggle::before {
    content: '▸';
    transition: transform 0.15s ease;
}

.admin-groups-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.admin-groups-row {
    cursor: default;
}

.admin-groups-details-row td {
    background: var(--color-surface);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ---------- Instagram-Detailseite ---------- */

.instagram-detail-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 0 1.25rem;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.instagram-detail-gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.instagram-detail-gallery-item img,
.instagram-detail-gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: var(--color-surface);
}

.instagram-detail-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.instagram-detail-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
}

.instagram-detail-dot.is-active {
    background: var(--color-accent);
}

/* ---------- News-Liste: gemeinsamer Feed aus News + Instagram ---------- */
/* News und Instagram-Beiträge werden chronologisch gemischt in einer
   einzigen Liste gezeigt (siehe NewsController::buildFeed()) - dieselben
   .news-item-compact-Klassen für beide Quellen, damit sich Instagram
   nahtlos einreiht statt wie ein eigenes Kartendesign zu wirken. Nur die
   Bild-Umrandung (für Video-Play-Icon/Instagram-Badge) ist zusätzlich. */

.news-item-compact-thumb {
    position: relative;
    display: block;
    width: 84px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.news-item-compact-thumb .news-item-compact-image {
    width: 100%;
    height: 100%;
}

.instagram-feed-item-play {
    position: absolute;
    top: 3px;
    right: 3px;
    display: inline-flex;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.instagram-feed-item-play svg {
    width: 15px;
    height: 15px;
}

.instagram-feed-item-carousel {
    position: absolute;
    top: 3px;
    right: 3px;
    display: inline-flex;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.instagram-feed-item-carousel svg {
    width: 15px;
    height: 15px;
}

.news-item-compact-source-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    display: inline-flex;
    color: var(--color-muted);
}

.news-item-compact-source-badge svg {
    width: 15px;
    height: 15px;
}

/* ---------- Teilen-Button (native Web-Share-API + Fallback-Menü) ---------- */

.share-widget {
    position: relative;
    display: inline-block;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--color-text);
}

.share-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.share-button:hover {
    background: var(--color-bg);
    border-radius: 50%;
}

.share-widget-compact .share-button {
    border: none;
    padding: 0;
    background: none;
    color: var(--color-muted);
    width: 20px;
    height: 20px;
    justify-content: center;
}

.share-widget-compact .share-button svg {
    width: 15px;
    height: 15px;
}

/* Menü öffnet sich nach oben statt nach unten - der Button sitzt am
   unteren Kartenrand, nach unten wäre das Menü sonst durch die nächste
   Karte verdeckt. */
.share-widget-compact .share-fallback-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.share-fallback-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    z-index: 10;
}

/* [hidden] hat als reines UA-Attribut ohne diese Regel keine Chance gegen
   die obige Autoren-Regel "display: flex" (gleiche Spezifität, Autoren-CSS
   gewinnt immer gegen User-Agent-Stylesheets, unabhängig von der
   Reihenfolge) - ohne das hier bliebe das Menü dauerhaft sichtbar. */
.share-fallback-menu[hidden] {
    display: none;
}

.share-fallback-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border: none;
    background: none;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
}

.share-fallback-option svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-fallback-option:hover {
    background: var(--color-bg);
}

.share-fallback-option.is-copied::after {
    content: ' ✓';
}

/* ---------- Speichern-Button (Lesezeichen) ---------- */

.save-button,
.like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--color-text);
}

.save-button svg,
.like-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.save-button:hover,
.like-button:hover {
    background: var(--color-bg);
    border-radius: 50%;
}

.save-button .save-icon-filled {
    display: none;
    color: var(--color-accent);
}

.save-button.is-saved .save-icon-outline {
    display: none;
}

.save-button.is-saved .save-icon-filled {
    display: inline-flex;
}

.save-button-compact,
.like-button-compact {
    border: none;
    padding: 0;
    background: none;
    color: var(--color-muted);
    width: 20px;
    height: 20px;
    justify-content: center;
}

.save-button-compact svg,
.like-button-compact svg {
    width: 15px;
    height: 15px;
}

/* "Gefällt mir" (Herz, like.js) - Aufbau wie der Speichern-Button */
.like-button .like-icon-filled {
    display: none;
    color: #e5484d;
}

.like-button.is-liked .like-icon-outline {
    display: none;
}

.like-button.is-liked .like-icon-filled {
    display: inline-flex;
}

/* Gemeinsame Zeile für Speichern + Teilen auf den Feed-Karten - sitzt unten
   rechts auf der Karte, damit sie nicht mit dem Quellen-Badge oben rechts
   konkurriert (siehe .news-item-compact-source-badge). Beide Buttons selbst
   brauchen dank dieses Wrappers keine eigene Positionierung mehr. */
.news-item-compact-actions {
    position: absolute;
    bottom: 0.45rem;
    right: 0.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ---------- News-Liste: Toolbar (Ungelesen-Filter + Alle-gelesen) ---------- */

.news-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.filter-toggle {
    display: inline-flex;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 3px;
}

.filter-toggle a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.filter-toggle a.is-active {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

/* Gemeinsamer Wrapper für Speichern-Filter + "…"-Menü, rechtsbündig in der
   Toolbar - ein gemeinsamer Flex-Kontext mit fester Höhe auf beiden Kindern
   sorgt dafür, dass Icon und Text-Ellipse exakt auf einer Linie sitzen
   (Schrift- und SVG-Metriken zentrieren sich sonst leicht unterschiedlich). */
.news-list-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.saved-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.6rem;
    border-radius: 6px;
    color: var(--color-muted);
}

.saved-filter-btn svg {
    width: 20px;
    height: 20px;
}

.saved-filter-btn:hover {
    background: var(--color-surface);
}

.saved-filter-btn.is-active {
    color: var(--color-accent);
}

.news-more-menu {
    position: relative;
    display: flex;
}

.news-more-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    cursor: pointer;
    list-style: none;
    color: var(--color-muted);
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 0.6rem;
    border-radius: 6px;
    /* Das "…"-Zeichen sitzt in seiner eigenen Zeilenbox schriftbedingt
       optisch tiefer als sein Buchstaben-Raum - Flex zentriert nur die
       Zeilenbox, nicht die sichtbare Tinte, daher hier manuell angehoben. */
    transform: translateY(-3px);
}

.news-more-menu summary::-webkit-details-marker {
    display: none;
}

.news-more-menu[open] summary {
    background: var(--color-surface);
}

.news-more-menu-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.3rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 5;
    white-space: nowrap;
}

.text-action-link,
button.text-action-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.text-action-link:hover,
button.text-action-link:hover {
    color: var(--color-text);
}

/* ---------- Benachrichtigungen ---------- */

.notifications-mark-all-form {
    margin-bottom: 1.25rem;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.notification-item-unread {
    background: var(--color-bg);
    border-color: var(--color-accent);
}

.notification-link {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
    color: var(--color-text);
}

/* Symbol je Meldung, ungelesen gelb hinterlegt mit Punkt oben rechts (notifications.php) */
.notification-icon {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}

.notification-icon svg {
    width: 19px;
    height: 19px;
}

.notification-item-unread .notification-icon {
    background: rgba(252, 185, 0, 0.16);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-surface);
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
}

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

.notification-date {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ---------- Feedback-Modul (Festival- & App-Feedback) ---------- */

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 640px;
}

.feedback-question {
    margin-bottom: 1rem;
}

.feedback-question:last-child {
    margin-bottom: 0;
}

.feedback-question-prompt {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.feedback-form textarea,
.feedback-form input[type="file"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    font: inherit;
    box-sizing: border-box;
}

.feedback-scale-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.feedback-scale-option {
    position: relative;
    cursor: pointer;
}

.feedback-scale-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.feedback-scale-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-weight: 600;
    background: var(--color-surface);
}

.feedback-scale-option input:checked + span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
}

.feedback-scale-option input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.feedback-scale-option-na span {
    font-weight: 400;
    font-size: 0.85rem;
}

.feedback-scale-caption {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.feedback-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feedback-sonstiges-input {
    margin-top: 0.3rem;
    width: 100%;
    max-width: 320px;
    padding: 0.5rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    box-sizing: border-box;
}

.feedback-conditional-block[hidden] {
    display: none;
}

.feedback-anonymous-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.feedback-anonymous-box .form-checkbox-label {
    margin-top: 0;
}

.chart-line {
    width: 100%;
    height: auto;
    max-width: 480px;
}

.chart-line-label {
    font-size: 9px;
    fill: var(--color-muted);
}

/* ---------- Admin: Feedback-Auswertung ---------- */

.feedback-admin-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.feedback-admin-filterbar .select-input {
    min-width: 0;
}

.feedback-admin-export-label {
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.feedback-admin-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feedback-question-stat {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.feedback-question-stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feedback-question-stat h4 {
    margin: 0 0 0.4rem;
}

.feedback-question-stat-meta {
    color: var(--color-muted);
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.feedback-text-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feedback-text-list li {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
}

.feedback-answer-list {
    margin: 0;
}

.feedback-answer-list dt {
    font-weight: 600;
    margin-top: 0.9rem;
}

.feedback-answer-list dt:first-child {
    margin-top: 0;
}

.feedback-answer-list dd {
    margin: 0.2rem 0 0;
    color: var(--color-muted);
}

.admin-sort-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    white-space: nowrap;
}

.admin-sort-link:hover {
    text-decoration: underline;
}

.receipt-table th, .receipt-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 480px) {
    .receipt-table th, .receipt-table td {
        padding: 0.4rem 0.4rem;
        font-size: 0.85rem;
    }
}

.receipt-table input[type="text"] {
    width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* ---------- Hinweisbox (informativ, aber wichtig - z.B. Zahlungspflicht) ---------- */

.notice {
    max-width: 480px;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    background: var(--color-highlight-bg);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* ---------- Brötchenbestellung: Zusammenfassung & Bearbeiten ---------- */

.order-summary-card {
    max-width: 480px;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
}

.order-summary-card h2 {
    margin-top: 0;
}

.order-summary-line {
    font-size: 1.05rem;
    color: var(--color-text);
}

.order-summary-line strong {
    color: var(--color-heading);
}

.order-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.order-summary-actions form {
    margin: 0;
}

.order-edit-toggle {
    max-width: 480px;
    margin-bottom: 1.5rem;
}

/* Als .button-secondary gestylt (siehe dort) statt als reiner Text-Link
   mit Aufklapp-Dreieck - sieht sonst neben "Bestellbeleg ansehen"/
   "Bestellung stornieren" im selben Bestell-Kärtchen optisch fehl am Platz aus. */
.order-edit-toggle summary {
    display: inline-block;
    list-style: none;
}

.order-edit-toggle summary::-webkit-details-marker {
    display: none;
}

.order-edit-toggle .form {
    margin-top: 0.75rem;
}

.order-total-display {
    max-width: 480px;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border-radius: 4px;
    font-size: 1.1rem;
}

.order-total-display strong {
    color: var(--color-heading);
}

.receipt-order-number {
    font-size: 1.15rem;
}

.receipt-qr-block {
    max-width: 480px;
    margin: 1.5rem 0;
    text-align: center;
}

/* Weiße Karte mit Rand um den Code: passt zu den übrigen Karten und gibt
   Scannern die nötige helle Ruhezone - besonders im dunklen Design. */
#receipt-qr {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    line-height: 0;
}

#receipt-qr canvas,
#receipt-qr img {
    display: inline-block;
    border-radius: 2px;
}

.receipt-qr-hint {
    max-width: 260px;
    margin: 0.75rem auto 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Ab Desktop-Breite bleibt der QR-Code (text-align:center in
   .receipt-qr-block) durch seine feste Breite (180-240px) faktisch
   linksbündig innerhalb des 480px breiten Blocks - der Hinweistext darunter
   war bisher zusätzlich selbst zentriert (margin:auto) und wirkte dadurch
   mittig statt am Code ausgerichtet. Auf Mobile bleibt die zentrierte
   Variante unverändert, dort passt sie zum ebenfalls zentrierten Code. */
@media (min-width: 600px) {
    .receipt-qr-hint {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
}

/* ---------- Admin: Dashboard/Ticket-Bereich ---------- */

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 779.98px) {
    /* Auf Mobile deckt das Burger-Menü (Gruppen "Tickets"/"Camping") dieselben
       Links bereits sauber organisiert ab - diese Zeile würde hier nur als
       mehrzeilig umbrechende Linkwand clutter erzeugen. */
    .admin-subnav {
        display: none;
    }
}

.admin-subnav a {
    font-weight: 600;
}

.admin-page-title-with-edit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-page-title-edit-link {
    display: inline-flex;
    color: var(--color-muted);
}

.admin-page-title-edit-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 599px) {
    .stat-card-span-full {
        grid-column: 1 / -1;
    }
}

/* Breite Kacheln (Netto-Gewinn, Prognose): Handy volle Breite, Desktop je halbe */
.stat-cards.stat-cards-halves {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .stat-cards.stat-cards-halves {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 600px) {
    .stat-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.stat-card {
    /* min-width:0 nötig, sonst können lange, unumbrochene Inhalte (z. B.
       eine E-Mail-Adresse in der User-Detailansicht) die Grid-Spur über
       ihre 1fr-Breite hinaus aufdrücken und die Seite auf Mobile seitlich
       abschneiden - Grid-Items respektieren sonst die intrinsische
       Mindestbreite ihres Inhalts, nicht die zugewiesene Spurbreite. */
    min-width: 0;
    overflow-wrap: break-word;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    /* Gleiches Padding wie .service-tile, damit alle Boxen auf dem Dashboard
       denselben Innenabstand oben/unten haben. */
    padding: 1.25rem;
}

.stat-card h3 {
    /* Gleicher Abstand zwischen Überschrift und Inhalt wie bei
       .service-tile-content h3 (0.5rem statt 0.35rem). */
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.stat-card p {
    margin: 0.15rem 0;
    color: var(--color-muted);
}

.stat-card-highlight {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-heading);
}

.stat-card-highlight-inline {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-heading);
}

.stat-card-percent {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-heading);
    margin: 0.1rem 0 0.15rem;
}

.stat-card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-card-sub {
    font-size: 0.8rem;
}

.stat-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: -0.75rem 0 1.5rem;
}

/* Für Warn-Hinweise (z. B. "Ticket entfernt" bei verwaisten Reservierungen/
   Gruppen) statt der normalen Akzentfarbe des Badges. */
/* Ganze Zeile rot einfärben statt nur ein kleines Badge - bei "Ticket
   entfernt" (WOMO-Reservierung/Camping-Gruppe/Brötchenbestellung ohne
   gültiges Ticket mehr) soll auf den ersten Blick klar sein, dass der
   ganze Eintrag nicht mehr gültig ist, nicht nur ein Detail daran. Der
   Eintrag bleibt trotzdem bestehen (siehe *ClearReservation()/
   *RemoveOrder()/deleteOrphanedGroup() - erst nach expliziter
   Admin-Bestätigung wird endgültig entfernt). */
.admin-row-invalid {
    background: var(--color-error-bg);
}

.admin-row-invalid td {
    border-bottom-color: rgba(163, 53, 43, 0.25);
}

.admin-row-invalid-label {
    display: block;
    margin-top: 0.15rem;
    color: var(--color-error-text);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Admin-Zeilen in der User-Tabelle: farbiger Streifen vorne (erste Zelle)
   statt der ganzen Zeile - ein "border-left" auf <tr> selbst wird von
   Browsern in Tabellen oft ignoriert, auf der ersten <td> funktioniert es
   zuverlässig. */
.admin-row-highlight td:first-child {
    border-left: 4px solid var(--color-accent);
}

.badge-pill {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Wie .badge-pill, aber für abgeschlossene/positive Status (z. B. "Abgeholt")
   statt Zähler/Rollen - Erfolgsfarbe statt Akzentgelb. */
.badge-success {
    display: inline-block;
    background: var(--color-success-bg);
    color: var(--color-success-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Mehrere Rollen-Badges nebeneinander in der User-Tabelle (Admin-Buchstabe
   oder Rollen-Icon) - eigener Kontext statt globaler .badge-pill-Änderung,
   damit z. B. das Text-Badge fürs ungelesene-News-Zähler unangetastet bleibt. */
/* Bewusst KEIN display:flex auf der Zelle selbst - eine Flex-Tabellenzelle
   verliert ihr Zellen-Verhalten (verrutschte Trennlinien, Umbruch). */
.admin-role-badges {
    white-space: nowrap;
}

/* Alle Rollen-Etiketten gleich groß und kreisrund - egal ob Buchstabe ("A")
   oder Symbol. */
.admin-role-badges .badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    margin: 0 0.3rem 0 0;
}

/* Badge mit Wort (Crew): gleiche Höhe, aber oval statt Kreis */
.admin-role-badges a.badge-pill {
    width: auto;
    padding: 0 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-decoration: none;
}

.admin-role-badges .badge-pill:last-child {
    margin-right: 0;
}

.admin-role-badges .badge-pill svg {
    width: 12px;
    height: 12px;
}

/* ---------- Admin: Diagramme (Ticket-Analyse) ---------- */

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-grid .chart-section {
    margin-bottom: 0;
}

.chart-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-section h2 {
    margin-top: 0;
}

.chart-section-sub {
    color: var(--color-muted);
    margin-top: -0.5rem;
}

/* ---------- Admin: Camping-Gruppen ---------- */

#camping-gruppen-filter {
    width: 100%;
    max-width: 420px;
    padding: 0.6rem 0.85rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
}

.camping-gruppen-item {
    padding: 1rem 1.5rem;
}

.camping-gruppen-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-heading);
    list-style: none;
}

.camping-gruppen-item summary::-webkit-details-marker {
    display: none;
}

.camping-gruppen-item summary::before {
    content: '+';
    display: inline-block;
    width: 1rem;
    color: var(--color-accent);
    font-weight: 700;
}

.camping-gruppen-item[open] summary::before {
    content: '–';
}

.camping-gruppen-meta {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.3rem;
    margin-left: 1rem;
}

.camping-gruppen-item table {
    margin-top: 1rem;
}

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

.orte-map {
    height: 420px;
    border-radius: 6px;
    overflow: hidden;
}

/* Leaflet-Sprechblase ist immer weiß - daher feste dunkle Farben statt der
   Design-Farben (im dunklen Design sonst hell auf weiß). */
.orte-popup {
    color: #1f2328;
}

.orte-popup-city {
    display: block;
    font-size: 1.05rem;
    color: #111418;
}

.orte-popup-plz {
    color: #5b636b;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.orte-popup-stats {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.chart-pie-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

/* Für zwei (oder mehr) unabhängige Kreisdiagramme nebeneinander (z. B.
   Standard- und Plus-Stellplätze getrennt) - jedes einzelne Diagramm
   behält so seine EIGENE, korrekte Prozentangabe statt einer gemeinsamen
   über alle Segmente hinweg. */
.chart-pie-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: flex-start;
}

.chart-pie-columns h3 {
    text-align: left;
    margin: 0 0 0.35rem;
}

.chart-pie-columns .chart-section-sub {
    text-align: left;
    margin: 0;
}

.chart-pie-column {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.chart-pie-column .chart-pie-wrap {
    display: contents;
}

.chart-pie-column .chart-pie {
    grid-column: 1;
    grid-row: 1 / 3;
}

.chart-pie-column .chart-legend-table {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.chart-pie-column-label {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    flex-shrink: 0;
}

.chart-pie {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.chart-pie-total-value {
    font-size: 34px;
    font-weight: 700;
    fill: var(--color-text);
}

.chart-pie-total-unit {
    font-size: 13px;
    fill: var(--color-muted);
}

@media (min-width: 600px) {
    .chart-pie {
        width: 240px;
        height: 240px;
    }
}

/* Auf Mobile stehen Kreisdiagramm + Legende in .chart-pie-column normalerweise
   NEBENEINANDER (Grid mit zwei Spalten) - das erzwingt bei schmalen Screens
   horizontales Scrollen der ganzen Seite. Auf Mobile stattdessen alles
   untereinander (Diagramm oben, Daten darunter), wie bei .chart-pie ohne
   Legendentabelle daneben. */
@media (max-width: 599.98px) {
    .chart-pie-column {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .chart-pie-column .chart-pie {
        grid-column: 1;
        grid-row: 1;
    }

    .chart-pie-column-label {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        text-align: center;
    }

    .chart-pie-column .chart-legend-table {
        grid-column: 1;
        grid-row: 3;
        min-width: 0;
        width: 100%;
    }

    .chart-pie-columns h3,
    .chart-pie-columns .chart-section-sub {
        text-align: center;
    }

    /* Statt zwei .chart-pie-column nebeneinander (bzw. knapp umbrechend)
       jede für sich zentriert untereinander - wie die anderen, einzelnen
       Diagramm-Kacheln auf der Seite (Charts::pie() pur). Kleinerer Gap als
       der Desktop-Wert (2.5rem, für nebeneinander gedacht) - untereinander
       reicht deutlich weniger Abstand. */
    .chart-pie-columns {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .chart-pie-column {
        width: 100%;
    }
}

.chart-legend-table {
    border-collapse: collapse;
    font-size: 0.95rem;
    flex: 1;
    min-width: 260px;
}

.chart-legend-table td {
    padding: 0.4rem 1rem 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.chart-legend-table tr:last-child td {
    border-bottom: none;
}

.chart-legend-table td:first-child {
    white-space: normal;
    font-weight: 600;
}

.chart-legend-table td:nth-child(3) {
    color: var(--color-muted);
}

.chart-legend-table td:last-child {
    color: var(--color-muted);
}

.chart-legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.chart-bar-total {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.chart-bar-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 30%) 1fr auto;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.chart-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-bar-label a {
    color: inherit;
}

.chart-bar-label a:hover {
    color: var(--color-accent);
}

.chart-bar-track {
    background: var(--color-surface);
    border-radius: 4px;
    height: 14px;
    overflow: hidden;
}

.chart-bar-fill {
    display: block;
    height: 100%;
    background: var(--color-accent);
    border-radius: 4px;
}

.chart-bar-value {
    color: var(--color-muted);
    min-width: 2ch;
    text-align: right;
    white-space: nowrap;
}

.chart-bar-percent {
    color: var(--color-muted);
    font-size: 0.8em;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}

.pagination strong {
    color: var(--color-accent-text);
    background: var(--color-accent);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

/* ---------- Startseite: App-Installationshinweis ---------- */

.install-banner[hidden] {
    display: none;
}

.install-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--color-header-bg), #10141a);
    border-radius: 14px;
    color: #ffffff;
}

.install-banner-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-right: 2rem;
}

.install-banner-dismiss {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    padding: 0.25rem;
    margin: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.install-banner-dismiss:hover,
.install-banner-dismiss:focus-visible {
    color: #fff;
}

.install-banner-header h3 {
    margin: 0;
    color: #ffffff;
}

.install-banner-icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.install-banner-text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.install-banner-button {
    align-self: stretch;
    text-align: center;
}

@media (min-width: 600px) {
    .install-banner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .install-banner-header {
        flex-shrink: 0;
    }

    .install-banner-text {
        flex: 1;
        min-width: 200px;
    }

    .install-banner-button {
        align-self: center;
        flex-shrink: 0;
    }
}

.install-banner-button {
    flex-shrink: 0;
}

/* Begrüßung in Edo (Edo SZ: nur Großbuchstaben, mit Umlauten und Satzzeichen) */
.dashboard-greeting {
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0 0 1rem;
    color: var(--color-heading);
}

/* ---------- Startseite: Kopf im Festival-Look (Begrüßung + Countdown auf dem Bühnenfoto) ---------- */

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 -1rem;
    padding: 1.4rem 1rem 2.2rem;
    background:
        linear-gradient(180deg, rgba(14, 16, 20, 0.35) 0%, rgba(14, 16, 20, 0.15) 45%, rgba(14, 16, 20, 0.55) 100%),
        url('images/stage-bg.jpg') 62% 45% / cover no-repeat;
    color: #ffffff;
}

/* direkt unter der Kopfzeile, wenn keine Meldung davor steht */
.offline-banner[hidden] + .home-hero {
    margin-top: -1.5rem;
}

/* ohne Laufband darunter: Abstand zum Inhalt */
.home-hero:not(:has(+ .festival-ticker)) {
    margin-bottom: 1.25rem;
}

/* Körnung (Rock-Poster-Look) */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-hero .dashboard-greeting {
    position: relative;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

/* Countdown ohne Kasten frei auf dem Bühnenfoto (Plakat-Look), lesbar durch kräftigen Schatten */
.home-hero .countdown-banner {
    position: relative;
    margin-bottom: 0;
    padding: 0.5rem 0 0;
    background: none;
    border: 0;
    border-radius: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 0, 0, 0.6);
}

.home-hero .countdown-label,
.home-hero .countdown-unit {
    opacity: 0.9;
}

/* Equalizer am unteren Rand, wie auf der Landingpage */
.home-eq {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    z-index: -1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    opacity: 0.22;
    pointer-events: none;
}

.home-eq span {
    flex: 0 0 8px;
    height: 30%;
    background: linear-gradient(0deg, var(--color-accent), #ff3d8b);
    border-radius: 3px 3px 0 0;
    animation: home-eq 1.4s ease-in-out infinite alternate;
}

.home-eq span:nth-child(3n) { animation-duration: 1.1s; }
.home-eq span:nth-child(3n + 1) { animation-duration: 1.7s; animation-delay: -0.4s; }
.home-eq span:nth-child(4n) { animation-duration: 0.9s; animation-delay: -0.8s; }
.home-eq span:nth-child(5n) { animation-duration: 1.3s; animation-delay: -0.2s; }
.home-eq span:nth-child(7n) { animation-duration: 1.55s; animation-delay: -1.1s; }

@keyframes home-eq {
    from { height: 12%; }
    to { height: 100%; }
}

@media (min-width: 700px) {
    .home-hero {
        margin-left: 0;
        margin-right: 0;
        padding: 1.8rem 1.8rem 2.6rem;
        border-radius: 16px 16px 0 0;
    }

    .home-hero:not(:has(+ .festival-ticker)) {
        border-radius: 16px;
    }
}

/* ---------- Laufband (Startseite, Landingpage) ---------- */

.festival-ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: 0 -1rem 1.5rem;
    padding: 0.7rem 0;
    background: var(--color-accent);
    color: #14171c;
}

.festival-ticker-track {
    display: flex;
    width: max-content;
    font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: festival-ticker var(--ticker-duration, 40s) linear infinite;
}

/* zum Lesen und Antippen anhalten */
.festival-ticker:hover .festival-ticker-track,
.festival-ticker:focus-within .festival-ticker-track {
    animation-play-state: paused;
}

/* Abstand auch hinter dem letzten Eintrag, damit die zweite Hälfte nahtlos anschließt */
.festival-ticker-group {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding-right: 1.3rem;
}

.festival-ticker a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.festival-ticker a:hover {
    color: inherit;
    text-decoration-style: wavy;
}

.festival-ticker b {
    font-size: 0.9rem;
}

@keyframes festival-ticker {
    to { transform: translateX(-50%); }
}

/* Landingpage: schräg und breiter als der Bildschirm (Enden nie sichtbar) */
.festival-ticker-tilted {
    margin: 0 -5vw;
    padding: 0.8rem 0;
    transform: rotate(-1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.festival-ticker-tilted .festival-ticker-track {
    font-size: 1.35rem;
}

@media (min-width: 700px) {
    .festival-ticker:not(.festival-ticker-tilted) {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0 0 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-eq span {
        animation: none;
    }

    /* ohne Bewegung: Laufband zum Wischen */
    .festival-ticker {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .festival-ticker-track {
        animation: none;
    }
}

/* ---------- Startseite: Gast-Hinweis ---------- */

.info-banner {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
}

.info-banner p {
    margin: 0;
}

.guest-hint-banner {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 2.25rem 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Auf dem Dashboard steht der Hinweis im Kachel-Raster zwischen aktiven und
   gesperrten Kacheln - dort über die volle Breite, Abstand kommt vom gap. */
.service-tiles > .guest-hint-banner {
    grid-column: 1 / -1;
    margin: 0;
}

.guest-hint-banner p {
    margin: 0;
}

.guest-hint-dismiss {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: none;
    border: none;
    padding: 0.25rem;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
}

.guest-hint-dismiss:hover {
    color: var(--color-heading);
}

/* ---------- Startseite: Festival-Countdown ---------- */

.countdown-banner {
    background:
        linear-gradient(135deg, rgba(31, 37, 46, 0.55), rgba(16, 20, 26, 0.55)),
        url('images/stage-bg.jpg') center / cover no-repeat;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
}

.countdown-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.countdown-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Festival-Schrift Edo SZ (assets/fonts/edo.ttf): nur Großbuchstaben, kann Umlaute, ß und die üblichen
   Satzzeichen. Genutzt für Countdown, Begrüßung, News-Überschriften und Landingpage, auch im Crewtool.
   Für # @ $ * < = > [ ] { } | _ ^ § ° … × hat Edo nur leere Zeichen: unicode-range nimmt sie aus, dann
   übernimmt die nächste Schrift im font-family-Stapel (Barlow Condensed) genau diese Zeichen. */
@font-face {
    font-family: 'Edo';
    src: url('fonts/edo.ttf') format('truetype');
    font-display: swap;
    unicode-range: U+0020-0022, U+0025-0029, U+002B-003B, U+003F, U+0041-005A, U+0060-007A, U+007E,
        U+00A0, U+00AB, U+00B7, U+00BB, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF,
        U+2013-2014, U+2018-201E, U+20AC;
}

.countdown-num {
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: 2.9rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--color-accent);
}

.countdown-unit {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-top: 0.25rem;
}

.countdown-sep {
    font-size: 2.25rem;
    font-weight: 300;
    opacity: 0.3;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .countdown-banner { padding: 1.25rem 0.75rem; }
    .countdown-row { gap: 0.75rem; }
    .countdown-num { font-size: 2.3rem; }
    .countdown-sep { font-size: 1.75rem; }
    .countdown-unit { font-size: 0.6rem; }
}

/* ---------- Startseite: Service-Kacheln ---------- */

.service-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.service-tile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.service-tile:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-tile-content {
    min-width: 0;
}

/* Auf .service-tile-content statt .service-tile skopiert, damit dieselbe
   Kopf-zu-Text-Distanz auch in .service-tile-group (siehe unten, <summary>
   statt <a>) gilt - sonst bekäme dort nur die generische Standard-Distanz
   von <h3>/<p>, uneinheitlich zu den echten .service-tile-Kacheln. */
.service-tile-content h3 {
    margin: 0 0 0.5rem;
    color: var(--color-heading);
}

.service-tile-content p {
    margin: 0;
    color: var(--color-muted);
}

.service-tile-icon {
    flex-shrink: 0;
    line-height: 1;
}

.service-tile-icon svg {
    width: 2rem;
    height: 2rem;
}

.service-tile-locked .service-tile-icon {
    filter: grayscale(1);
    opacity: 0.6;
}

.service-tile-whatsapp {
    border-top-color: #25D366;
}

.service-tile-whatsapp .service-tile-icon {
    color: #25D366;
}

/* Wie .service-tile, nur als <details> statt <a> - für eine Kachel, die
   mehrere Ziele bündelt (z. B. "Tickets" -&gt; Import/Analyse/Liste) statt zu
   einem einzelnen Link zu führen. */
.service-tile-group {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.25rem;
}

.service-tile-group summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.service-tile-group summary::-webkit-details-marker {
    display: none;
}

.service-tile-group-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.service-tile-group-links a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.service-tile-group-links a:hover {
    color: var(--color-accent);
}

.service-tile-group-link-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    /* align-items:center zentriert das Icon zwar an der Flex-Box, optisch
       wirkt es dadurch trotzdem etwas zu hoch (Text sitzt durch die
       Zeilenhöhe leicht unterhalb der geometrischen Mitte) - kleiner
       Versatz nach unten gleicht das aus. */
    margin-top: 2px;
    color: var(--color-muted);
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-accent-text);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
}

/* Echte <button class="button"> sollen exakt wie die Link-Buttons aussehen -
   ohne den Standardrahmen und die System-Schrift des Browsers (fiel vor
   allem im dunklen Design als heller Rand auf). .button-secondary (weiter
   unten) setzt seinen eigenen Rahmen und überschreibt das wieder. */
button.button {
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
}

.button:hover {
    background: #e0a700;
    /* Ohne das gewinnt das allgemeine a:hover { color: ... } (höhere
       Spezifität als .button allein) und macht den Text auf Hover
       gelb-auf-gelb statt wie bei den echten <button>-Elementen einfach
       nur den Hintergrund abzudunkeln. */
    color: var(--color-accent-text);
}

.button-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.button-with-icon .button-icon {
    display: inline-flex;
}

.button-with-icon .button-icon svg {
    width: 18px;
    height: 18px;
}

/* ---------- Camping-Gruppe: Einladung ---------- */

.invite-link-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin: 0.75rem 0 1rem;
}

.invite-link-box span {
    font-family: monospace;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
    color: var(--color-text);
}

.invite-link-box .invite-copy-btn {
    align-self: flex-start;
}

@media (min-width: 600px) {
    .invite-link-box {
        flex-direction: row;
        align-items: center;
    }

    .invite-link-box span {
        flex: 1;
    }

    .invite-link-box .invite-copy-btn {
        align-self: auto;
        flex-shrink: 0;
    }
}

.invite-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.invite-share-btn-whatsapp {
    background: #00d084;
    color: #fff;
}

.invite-share-btn-whatsapp:hover {
    background: #00b873;
}

.invite-explainer {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.invite-explainer h3 {
    margin-top: 0;
}

.invite-explainer ol {
    padding-left: 1.25rem;
}

/* ---------- Info: Erlaubte & verbotene Gegenstände ---------- */

.rule-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 1.5rem 0.75rem;
    margin-bottom: 2rem;
}

.rule-items-grid:last-of-type {
    margin-bottom: 1rem;
}

.rule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.rule-item-label {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Kein Kreis/Hintergrund als eigenes "Kärtchen" hinter dem Icon (im Original
   steht das Icon frei, nur bei "verboten" umschließt der rote Ring es) -
   sonst wirkt es wie zwei verschachtelte Kreise statt einem echten
   Verbotsschild. */
.rule-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    box-sizing: border-box;
}

.rule-icon svg {
    width: 42px;
    height: 42px;
    color: var(--color-heading);
}

.rule-icon-forbidden {
    border-radius: 999px;
    border: 6px solid #cf2e2e;
}

.rule-icon-forbidden::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    /* Exakt der Kreis-Außendurchmesser (72px), damit der Balken am Rand
       endet statt überzustehen. */
    width: 72px;
    height: 8px;
    background: #cf2e2e;
    transform: translate(-50%, -50%) rotate(45deg);
}

.rule-badge-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #00b873;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.rule-badge-check svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* "button.button-secondary"/"button.button-danger" (Element+Klasse) nötig,
   damit das die generische "button[type=submit]"-Regel oben (dieselbe
   Spezifität, aber früher im Stylesheet definiert) tatsächlich überschreibt
   - sonst blieben eigene <button>-Elemente trotz dieser Klassen bei der
   großen gelben Standard-Optik (siehe Session-Notiz: sah auf den ersten
   Blick wie zwei identische Primär-Buttons aus). Auch Großschreibung/
   Letter-Spacing/margin-top von dort müssen hier explizit zurückgesetzt
   werden, sonst blieben die trotz korrigierter Farbe stehen. */
.button-secondary,
button.button-secondary {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    margin-top: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
}

.button-secondary:hover,
button.button-secondary:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.button-danger,
button.button-danger {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-text);
    color: var(--color-error-text);
    cursor: pointer;
    margin-top: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
}

.button-danger:hover,
button.button-danger:hover {
    background: var(--color-error-text);
    color: #fff;
}

/* Für <button>-Elemente, die trotzdem wie ein normaler, primärer .button
   aussehen sollen (Akzentfarbe) statt in der lauten Großschreib-Optik der
   generischen "button[type=submit]"-Regel oben - gleiches Prinzip wie
   .button-secondary/.button-danger. */
.button-primary,
button.button-primary {
    margin-top: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
}

/* Mehrere Formulare/Buttons in einer Tabellenzelle (z. B. "Stornieren"/
   "Löschen" nebeneinander) - ohne das würden die Formulare per Default
   volle Breite beanspruchen und untereinander statt nebeneinander stehen. */
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Kompakte Icon+Text-Buttons für Zeilen-Aktionen in schmalen
   Tabellenspalten (z. B. Brötchen-Bestellliste) - reines Icon ohne Text war
   nicht selbsterklärend genug, gerade weil Stornieren (mit Mail an
   Käufer:in) und Löschen (still) unterschiedlich folgenreich sind.
   "button.icon-button" (Element+Klasse) nötig, damit das die generische
   "button[type=submit]"-Regel oben (dieselbe Spezifität, aber früher im
   Stylesheet definiert) tatsächlich überschreibt - siehe gleiches Problem
   bei .button-secondary/.button-danger weiter unten. */
.icon-button,
button.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    margin-top: 0;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
}

.icon-button svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.icon-button:hover,
button.icon-button:hover {
    background: var(--color-surface);
}

.icon-button-danger,
button.icon-button-danger {
    color: var(--color-error-text);
    border-color: var(--color-error-text);
}

.icon-button-danger:hover,
button.icon-button-danger:hover {
    background: var(--color-error-bg);
}

/* Gleiche Höhe für .button/.button-primary (z. B. "Als abgeholt
   markieren") und die kleineren .icon-button-Aktionen (Stornieren/Löschen)
   daneben/darunter, obwohl sie unterschiedliches Padding/Font-Size haben -
   zugleich ein vernünftiges Mindestmaß als Touch-Ziel. */
.button-primary,
button.button-primary,
.icon-button,
button.icon-button {
    min-height: 44px;
    box-sizing: border-box;
}

/* Auf Mobile in der Bestellansicht (/admin/broetchen-scan): "Als abgeholt
   markieren" volle Breite in eigener Zeile, Stornieren/Löschen darunter je
   50% - siehe :first-child:nth-last-child(3), das nur greift, wenn
   tatsächlich alle drei Formulare da sind (Bestellung noch nicht abgeholt). */
@media (max-width: 599.98px) {
    .admin-table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .admin-table-actions form {
        margin: 0;
    }

    .admin-table-actions form:first-child:nth-last-child(3) {
        grid-column: 1 / -1;
    }

    .admin-table-actions form button {
        width: 100%;
        justify-content: center;
    }
}

/* Ganze Tabellenzeile klickbar (Details öffnen) - siehe Script direkt in
   der Vorlage, klickt man ein <a>/<button>/<form> darin, wird die eigene
   Aktion ausgeführt statt der Zeilen-Navigation. */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: var(--color-surface);
}

/* Brötchen-Bestellliste: Karten statt Tabelle, damit auf Mobile die
   wichtigsten Infos (Nummer, Status, Name, Liefertag) direkt sichtbar sind
   statt in Spalten nebeneinander, die horizontal gescrollt werden müssten. */
.broetchen-order-card {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.broetchen-order-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.broetchen-order-number {
    font-weight: 700;
    font-size: 0.95rem;
}

.broetchen-order-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.broetchen-order-card-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.4rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.broetchen-order-card-email {
    word-break: break-all;
}

.broetchen-order-card-actions {
    margin-top: 0.2rem;
}

/* Stellplatz-Belegung: gleiches Karten-Muster wie die Brötchen-Bestellliste
   oben - Platz-Badge + Status oben, Kennzeichen/Reserviert-von darunter,
   statt einer breiten Tabelle mit vielen Spalten. */
.stellplatz-karte[hidden] {
    display: none;
}

.stellplatz-karte {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.stellplatz-karte-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.stellplatz-karte-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.stellplatz-karte-actions {
    margin-top: 0.2rem;
}

/* Rechts in der Kopfzeile: Status und kleiner Sperren-Knopf nebeneinander */
.stellplatz-karte-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.stellplatz-karte-status .badge-pill {
    margin-left: 0;
}

.badge-pill.badge-gesperrt {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.stellplatz-karte-lock {
    margin: 0;
}

/* Nur ein Schloss-Symbol, quadratisch und gut zu treffen */
.stellplatz-lock-button.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    line-height: 1;
}

.stellplatz-lock-button svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2.2;
}

/* Rechner: Karten in Spalten statt einer langen, sehr breiten Liste */
@media (min-width: 700px) {
    #stellplatz-liste {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 0.5rem;
    }

    #stellplatz-liste .stellplatz-karte {
        margin-bottom: 0;
    }
}

.admin-table-actions form {
    margin: 0;
}

/* ---------- Profil: verknüpfte Tickets als Schema-Ticket ---------- */

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.ticket-card {
    position: relative;
    isolation: isolate;
    display: flex;
    max-width: 480px;
    min-height: 130px;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(14, 16, 20, 0.96) 35%, rgba(14, 16, 20, 0.72)),
        url('images/stage-bg.jpg') 70% 40% / cover no-repeat;
    border-left: 6px solid var(--color-accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Körnung wie auf der Landingpage */
.ticket-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.07;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Festivaljahr groß im Hintergrund */
.ticket-year {
    position: absolute;
    right: 52px;
    bottom: -0.12em;
    z-index: -1;
    font-family: 'Edo', 'Barlow Condensed', sans-serif;
    font-size: 4.6rem;
    line-height: 1;
    color: rgba(252, 185, 0, 0.16);
    pointer-events: none;
}

.ticket-dates {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
}

.ticket-card-main {
    flex: 1;
    padding: 1rem 1.1rem;
    min-width: 0;
}

.ticket-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

.ticket-type {
    margin: 0.25rem 0 0;
    color: #ffffff;
    font-family: 'Edo', 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.ticket-code {
    margin-top: 0.5rem;
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-accent);
    overflow-wrap: break-word;
}

.ticket-meta {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.ticket-card-stub {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.75rem;
    width: 44px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.18);
    border-left: 2px dashed rgba(255, 255, 255, 0.3);
}

.ticket-card-stub::before,
.ticket-card-stub::after {
    content: '';
    position: absolute;
    left: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-bg);
}

.ticket-card-stub::before { top: -9px; }
.ticket-card-stub::after { bottom: -9px; }

/* Rein dekorativer Fake-Barcode auf dem Ticket-Abriss - bewusst ohne
   echten Inhalt/Codierung, damit auf keiner Ticketkarte (auch nicht vor der
   Bestätigung) versehentlich ein echter Ticket-Code als Barcode landet. */
.ticket-barcode {
    width: 22px;
    height: 50%;
    background-image: repeating-linear-gradient(
        to right,
        rgba(255, 255, 255, 0.8) 0px, rgba(255, 255, 255, 0.8) 1px,
        transparent 1px, transparent 3px,
        rgba(255, 255, 255, 0.8) 3px, rgba(255, 255, 255, 0.8) 5px,
        transparent 5px, transparent 6px,
        rgba(255, 255, 255, 0.8) 6px, rgba(255, 255, 255, 0.8) 7px,
        transparent 7px, transparent 10px,
        rgba(255, 255, 255, 0.8) 10px, rgba(255, 255, 255, 0.8) 11px,
        transparent 11px, transparent 13px,
        rgba(255, 255, 255, 0.8) 13px, rgba(255, 255, 255, 0.8) 15px,
        transparent 15px, transparent 16px,
        rgba(255, 255, 255, 0.8) 16px, rgba(255, 255, 255, 0.8) 18px,
        transparent 18px, transparent 22px
    );
}

.ticket-remove-form {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin: 0;
}

.ticket-remove-form .ticket-remove-btn {
    width: 24px;
    height: 24px;
    line-height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
}

.ticket-remove-form .ticket-remove-btn:hover {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* Tickets, die noch auf Bestätigung warten oder invalidiert wurden (Ticket
   verkauft/storniert) - ausgegraut, solange keine gültige Verknüpfung besteht. */
.ticket-card-disabled {
    opacity: 0.55;
    border-left-color: rgba(255, 255, 255, 0.35);
    filter: grayscale(0.4);
}

.ticket-card-disabled .ticket-type {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Profil: Boxen je Bereich ---------- */

.profile-card {
    max-width: 560px;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
}

.profile-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

.profile-card:last-child {
    margin-bottom: 0;
}

.profile-inline-form {
    margin-top: 0.75rem;
}

.account-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    margin: 0;
}

.account-details dt {
    font-weight: 700;
}

.account-details dd {
    margin: 0;
    color: var(--color-muted);
}

.ticket-benefits {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--color-border);
}

.ticket-benefits h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.ticket-benefits ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-muted);
}

.ticket-benefits li svg {
    flex-shrink: 0;
    width: 1.3rem;
    height: 1.3rem;
    color: var(--color-accent);
}

.push-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.push-status-active {
    color: var(--color-success-text);
    font-weight: 700;
}

.push-status-active svg {
    color: var(--color-success-text);
}

/* ---------- News (von rock-for-tolerance.de synchronisiert) ---------- */

.news-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.25rem 0;
}

/* Nachlade-Bereich unter der News-Liste (news-lazy.js) */
.news-list-more {
    text-align: center;
    margin: 0 0 1.25rem;
}

.news-list-more-status {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.news-item-compact {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.65rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

/* Die Karte selbst ist bewusst kein <a> mehr, sondern umschließt einen
   inneren Link (der optisch/funktional die ganze Karte klickbar macht) UND
   den Teilen-Button als Geschwister-Element - ein <button> direkt in einem
   <a> ist ungültiges HTML und Browser würden den Link vorzeitig schließen. */
.news-item-compact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
}

.news-item-compact.is-unread {
    border-left: 4px solid var(--color-accent);
}

.news-unread-label {
    display: none;
}

.news-item-compact.is-unread .news-unread-label {
    display: inline-block;
    margin-left: 0.4rem;
    color: var(--color-accent-text);
    background: var(--color-accent);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
}

.news-item-compact:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-item-compact-image {
    width: 84px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--color-border);
}

.news-item-compact-body {
    min-width: 0;
    padding-right: 1.4rem;
}

.news-item-compact-body h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: var(--color-heading);
}

.news-item-compact-excerpt {
    font-size: 0.85rem;
    color: var(--color-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-compact-excerpt-caption {
    -webkit-line-clamp: 2;
}

.news-item-compact-excerpt p {
    margin: 0;
}

.news-item-compact-date {
    display: block;
    margin-top: 0.3rem;
    padding-right: 2.7rem;
    font-size: 0.7rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-detail-date {
    color: var(--color-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -0.5rem;
}

/* Datum + Teilen-Button in einer Zeile (News- und Instagram-Detailseite). */
.detail-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.detail-header-row .news-detail-date {
    margin: 0;
}

.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

.detail-header-row .share-widget,
.detail-header-row .save-button,
.detail-header-row .like-button {
    margin: 0;
    flex-shrink: 0;
}

/* Etwas kleiner als der Standard-Button, damit die Zeile neben dem
   kleingeschriebenen Datum ausgewogen wirkt statt das Icon dominieren zu
   lassen. */
.detail-header-row .share-button,
.detail-header-row .save-button,
.detail-header-row .like-button {
    padding: 0.15rem;
}

.detail-header-row .share-button svg,
.detail-header-row .save-button svg,
.detail-header-row .like-button svg {
    width: 19px;
    height: 19px;
}

.news-content-page-link {
    max-width: 720px;
    margin: 1.5rem 0;
    padding: 0.85rem 1rem;
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
}

.news-content-page-link a {
    font-weight: 700;
    text-decoration: none;
}

.news-detail-content {
    max-width: 720px;
    line-height: 1.65;
}

.news-detail-content p {
    margin: 0 0 1rem;
}

.news-detail-content figure {
    margin: 1rem 0;
}

.news-detail-content img {
    /* !important überschreibt WordPress' eigene Inline-Breiten
       (style="width:350px" o.ä. aus dem Block-Editor "Größe ändern"),
       sonst blieben Bilder schmal mit viel Leerraum daneben. */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 6px;
    margin: 0.5rem 0;
}

/* Ausnahme: kleine Inline-Emoji-Grafiken (z. B. aus kopierten Facebook-
   Texten oder WordPress' eigenem Emoji-Rendering) - ohne diese Ausnahme
   bläst obige Regel auch ein 16x16px-Icon auf 100% Breite auf. Erkennung
   über die üblichen HTML-Breiten/Klassen statt Bildinhalt, da sich echte
   Content-Fotos in der Praxis nie mit diesen Werten/Klassen einbetten. */
.news-detail-content img[width="16"],
.news-detail-content img[width="20"],
.news-detail-content img[width="24"],
.news-detail-content img[width="32"],
.news-detail-content img.emoji,
.news-detail-content img.wp-smiley {
    width: 1em !important;
    max-width: 1em !important;
    height: 1em !important;
    display: inline-block;
    vertical-align: -0.15em;
    border-radius: 0;
    margin: 0;
}

.news-detail-content h2, .news-detail-content h3 {
    margin-top: 1.5rem;
}

/* ---------- Video-Embeds (aufgelöste YouTube-Einbettungen) ---------- */

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 8px;
    background: var(--color-surface);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed-placeholder {
    cursor: pointer;
    background: #000;
}

.video-embed-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.video-embed-play {
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 24px solid #fff;
    margin-left: 6px;
}

.video-embed-hint {
    color: #fff;
    font-size: 0.85rem;
}

/* ---------- Line-up: Bands & Zeitplan ---------- */

.lineup-filter-row {
    margin: 0.5rem 0 1rem;
}

.lineup-filter-row a {
    font-weight: 600;
    text-decoration: none;
}

.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.band-tile {
    position: relative;
}

.band-tile-link {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.band-tile-link:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.band-tile-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--color-border);
}

.band-tile-name {
    display: block;
    padding: 0.6rem 0.7rem;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Feste Höhe für 2 Zeilen, unabhängig davon ob der konkrete Bandname
   umbricht - sonst wird nur die Kachel mit dem umbrechenden Namen höher als
   ihre Nachbarn in derselben Grid-Zeile (das Grid selbst stretcht zwar die
   Zelle, aber .band-tile-link/-name darin füllt diese zusätzliche Höhe
   nicht von selbst aus). -webkit-line-clamp kappt einen (unwahrscheinlichen)
   dritten Zeilenumbruch sauber mit "…" statt die Kachel weiter wachsen zu
   lassen. Nur ab Tablet-Breite: auf Mobile ist die Spaltenzahl im Grid
   kleiner (breitere Kacheln, seltener Umbruch) und sah bereits ohne diese
   Angleichung gut aus. */
@media (min-width: 641px) {
    .band-tile-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        line-height: 1.25rem;
        min-height: 3.7rem;
    }
}

.band-favorite-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(31, 37, 46, 0.55);
    color: #ffffff;
    cursor: pointer;
    padding: 0;
}

.band-favorite-btn svg {
    width: 18px;
    height: 18px;
}

.band-favorite-btn .star-filled {
    display: none;
    color: var(--color-accent);
}

.band-favorite-btn.is-favorite .star-outline {
    display: none;
}

.band-favorite-btn.is-favorite .star-filled {
    display: block;
}

.band-favorite-btn-large {
    position: static;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    flex-shrink: 0;
}

.band-detail-image {
    display: block;
    width: 100%;
    max-width: 720px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.band-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 720px;
}

.band-detail-header h1 {
    margin: 0;
}

.band-detail-content {
    max-width: 720px;
    line-height: 1.65;
    margin-top: 1rem;
}

.band-detail-content p {
    margin: 0 0 1rem;
}

.band-detail-content figure {
    margin: 1rem 0;
}

.band-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
    display: block;
}

/* ---------- Awareness ---------- */

.awareness-hero {
    font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.02;
    color: var(--color-heading);
    margin: 0 0 0.75rem;
}

.awareness-contact-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.awareness-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.awareness-contact-btn:hover,
.awareness-contact-btn:focus,
.awareness-contact-btn:active,
.awareness-contact-btn:visited {
    /* Höhere Spezifität als die globale "a:hover"-Regel (die sonst nach dem
       Antippen die Textfarbe auf Gold/Orange umschaltet und den Text auf
       den farbigen Kacheln unlesbar macht). */
    color: #fff;
}

.awareness-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Gleiche Hintergrundfarben wie auf rock-for-tolerance.de/open-air/awareness
   (dortige WordPress-Standardpalette: vivid-green-cyan / pale-cyan-blue /
   luminous-vivid-amber). */
.awareness-contact-btn--whatsapp {
    background: #00d084;
    color: #fff;
}

.awareness-contact-btn--hotline {
    background: #8ed1fc;
    color: #fff;
}

.awareness-contact-btn--email {
    background: #fcb900;
    color: #fff;
}

.awareness-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    color: inherit;
}

.awareness-contact-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.awareness-contact-btn h3 {
    margin: 0;
    color: inherit;
    font-size: 1rem;
}

.awareness-contact-btn p {
    margin: 0.2rem 0 0;
    color: inherit;
}

.awareness-poster {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 1.5rem 0 0;
    border-radius: 8px;
}

.awareness-conduct-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0 1.5rem;
}

.awareness-conduct-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.25rem;
}

.awareness-conduct-item h3 {
    margin: 0 0 0.5rem;
}

.awareness-conduct-item p {
    margin: 0;
    color: var(--color-muted);
}

.awareness-source-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* ---------- Push-Benachrichtigungen: Aktivierungs-Popup ---------- */

.push-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 18, 22, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.push-prompt-overlay[hidden] {
    display: none;
}

.push-prompt-card {
    background: var(--color-input-bg);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 1rem);
}

.push-prompt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.push-prompt-icon svg {
    width: 24px;
    height: 24px;
}

.push-prompt-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.push-prompt-card p {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
}

.push-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* "Später erinnern" ist type="button" - die allgemeine Knopf-Regel
   (button[type=submit]) greift nicht, daher Abstand, Schrift und Ecken hier
   passend zu "Aktivieren" darüber. */
.push-prompt-actions button.button-secondary {
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: 700;
    border-radius: 4px;
    border-color: var(--color-border-strong);
}

@media (min-width: 780px) {
    .push-prompt-overlay {
        align-items: center;
    }

    .push-prompt-card {
        margin-bottom: 0;
    }
}

/* ---------- Admin: ausklappbare Bereiche ---------- */

.admin-collapsible {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.admin-collapsible summary {
    cursor: pointer;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.admin-collapsible summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.3rem;
}

.admin-collapsible[open] summary::after {
    content: '\2013';
}

.admin-collapsible[open] summary {
    border-bottom: 1px solid var(--color-border);
}

.admin-collapsible-body {
    padding: 1.5rem;
}

.admin-collapsible-body > *:first-child {
    margin-top: 0;
}

.admin-collapsible-body > *:last-child {
    margin-bottom: 0;
}

/* ---------- Admin: Stellplatzkarte ---------- */

.stellplatzkarte-point-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stellplatzkarte-point-form label {
    font-weight: 600;
}

.stellplatzkarte-point-form select {
    appearance: none;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: var(--color-input-bg);
    color: var(--color-text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23656d6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.stellplatzkarte-point-form #stellplatzkarte-position-hint {
    flex-basis: 100%;
    margin: 0;
}

/* Generisch für Fehlerhinweise an einzelnen Formularfeldern (nicht nur auf
   der Stellplatzkarte, siehe z. B. Camping-Einstellungen). */
.field-error {
    margin: 0.35rem 0 0;
    color: var(--color-error-text);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Overlay unten links auf der Karte (Legende liegt unten rechts) - bewusst
   unauffälliger als eine eigene Zeile über der Karte. */
.stellplatzkarte-zoom-controls {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Die Leiste ist immer hell, die Symbole deshalb immer dunkel - nicht die
   Textfarbe des Themes (im dunklen Modus fast weiß, auf der hellen Leiste
   unsichtbar). */
.stellplatzkarte-zoom-controls button {
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.stellplatzkarte-zoom-controls button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08);
}

.stellplatzkarte-zoom-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.stellplatzkarte-zoom-controls #stellplatzkarte-zoom-reset {
    font-size: 0.8rem;
}

/* Umschließt Viewport + die darüberliegenden Overlays (Legende/Zoom/Toast) -
   die Overlays sind bewusst NICHT Kinder von .stellplatzkarte-viewport
   (anders als früher): dessen overflow:hidden/clientWidth/clientHeight
   dienen der Zoom-/Pan-Berechnung und dem Freistellen des gezoomten Bilds -
   lägen Legende/Zoom dort drin, würden sie die Höhe des Viewports mit
   verändern (falsche Pan-Grenzen) und könnten vom hochskalierten Bild
   überdeckt werden, sobald man hineinzoomt. */
.stellplatzkarte-map-shell {
    margin-bottom: 1.5rem;
}

/* Umschließt NUR den Viewport (das Bild) - Anker für die absolut
   positionierten Zoom-Buttons/Toast. Wichtig: die Legende ist bewusst KEIN
   Kind davon, sondern ein Geschwister-Element innerhalb von
   .stellplatzkarte-map-shell - läge sie hier drin, würde ihre (auf Mobile
   sichtbare) Höhe die Box vergrößern, und "bottom: 0.6rem" der Zoom-Buttons
   würde sich dann auf den unteren Rand DIESER vergrößerten Box beziehen
   statt auf den unteren Rand des Bilds (genau das ist vorher passiert). */
.stellplatzkarte-map-frame {
    position: relative;
}

.stellplatzkarte-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    touch-action: none;
    /* Sonst markiert ein Ziehen über Marker/Bild wie eine Textauswahl
       mehrere Nummern statt nur den Marker zu verschieben. */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.stellplatzkarte-viewport.is-zoomed .stellplatzkarte-map-wrap img {
    cursor: grab;
}

.stellplatzkarte-viewport.is-dragging .stellplatzkarte-map-wrap img {
    cursor: grabbing;
}

.stellplatzkarte-map-wrap {
    position: relative;
    display: block;
    width: 100%;
    transform-origin: 0 0;
    scroll-margin-top: 90px;
}

.stellplatzkarte-map-wrap img {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    /* Sonst startet der Browser beim Ziehen sein eigenes Bild-Drag&Drop
       (halbtransparentes, verkleinertes "Geisterbild") statt unser eigenes
       Verschieben der gezoomten Karte greifen zu lassen. */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.stellplatzkarte-marker {
    position: absolute;
    top: 0;
    left: 0;
    /* Gegenskalierung zum Karten-Zoom in festen Stufen (--stellplatzkarte-marker-scale
       wird beim Zoomen per JS auf .stellplatzkarte-map-wrap gesetzt und
       vererbt sich hierher) - sonst würden die Marker beim Reinzoomen
       mitwachsen und wirken unnötig groß/aufdringlich. Die Prozentwerte in
       translate() beziehen sich immer auf die eigene, unskalierte
       Boxgröße, bleiben also trotz scale() korrekt zentriert. */
    transform: translate(-50%, -50%) scale(var(--stellplatzkarte-marker-scale, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    /* Feste Breite/Höhe statt min-width - bei zweistelligen Nummern wurde
       die Box sonst breiter als hoch und damit oval statt rund, unabhängig
       von der Schriftart (Ursache war die Ziffernanzahl, nicht die
       Zeichenbreite). border-radius:50% garantiert einen echten Kreis. */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    /* Flex align-items:center zentriert die Zeilenbox, nicht die optischen
       Grenzen der Ziffern-Glyphen - durch Ascent/Descent der Schrift wirkt
       der Text dadurch minimal zu hoch. Kleiner Versatz nach unten gleicht
       das aus. */
    padding-top: 1px;
    white-space: nowrap;
    pointer-events: none;
}

/* Ohne das würde die eigene display:flex oben das hidden-Attribut wirkungslos
   machen (Autor-CSS schlägt die UA-Default-Regel [hidden]{display:none}) -
   sichtbar geworden dadurch, dass die Nummer nach dem Setzen stehen blieb. */
.stellplatzkarte-marker[hidden] {
    display: none;
}

/* Bereits gesetzte Marker (haben eine data-plot-id, anders als die reinen
   Vorschau-Marker) sind per Ziehen verschiebbar - dafür brauchen sie
   (anders als die Basis-Regel oben) echte Pointer-Events. */
.stellplatzkarte-marker[data-plot-id] {
    pointer-events: auto;
    cursor: grab;
}

.stellplatzkarte-marker[data-plot-id].is-marker-dragging {
    cursor: grabbing;
    z-index: 4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.stellplatzkarte-marker-standard {
    background: var(--color-accent);
    color: var(--color-heading);
}

.stellplatzkarte-marker-plus {
    /* Blau statt Gelb (Standard) - deutlich unterscheidbar, auch aus der
       bestehenden Diagramm-Palette (Charts::PALETTE). */
    background: #4a90d9;
    color: #fff;
}

/* Admin-Übersichtskarte auf /admin/stellplatz-belegung: freie Plätze
   grau statt Kategorie-Farbe, nur belegte heben sich farbig ab (Standard/
   Plus-Klassen bleiben dieselben wie auf der Gäste-Buchungskarte). */
.stellplatzkarte-marker-admin-frei {
    background: #8a8f98;
    color: #fff;
}

.stellplatz-detail-popover {
    position: fixed;
    padding-top: 1.75rem;
}

.stellplatz-detail-close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: none;
    color: var(--color-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.stellplatz-detail-close:hover {
    color: var(--color-text);
}

.stellplatz-detail-popover h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.stellplatz-detail-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.6rem;
    margin: 0;
    font-size: 0.85rem;
}

.stellplatz-detail-list dt {
    color: var(--color-muted);
    font-weight: 600;
}

/* Lange E-Mail-Adressen und Kennzeichen umbrechen statt aus dem Fenster zu ragen */
.stellplatz-detail-list dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Platz-Fenster der Belegungskarte: Sperren/Entsperren (Schloss wie in der Liste) */
.stellplatz-detail-actions {
    margin: 0.75rem 0 0;
}

.stellplatz-detail-lock.button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    justify-content: center;
    margin: 0;
}

.stellplatz-detail-lock svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2.2;
}

.stellplatz-detail-lock-icon {
    display: inline-flex;
}

.stellplatz-detail-actions[data-aktion="sperren"] [data-icon="entsperren"],
.stellplatz-detail-actions[data-aktion="entsperren"] [data-icon="sperren"] {
    display: none;
}

/* Gleiche Kategorie-Farben wie die Marker auf der Stellplatzkarte
   (.stellplatzkarte-marker-standard/-plus) - Platznummer in der Admin-
   Tabelle ersetzt so die separate "Kategorie"-Spalte (Präfix S-/P- war
   ohnehin schon eindeutig). */
.admin-plot-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-plot-badge-standard {
    background: var(--color-accent);
    color: var(--color-heading);
}

.admin-plot-badge-plus {
    background: #4a90d9;
    color: #fff;
}

/* Für Gäste gesperrte Plätze: graue Füllung statt der Kategorie-Farbe, aber
   die Umrandung bleibt in der Kategorie-Farbe, damit Standard/Plus trotzdem
   erkennbar bleibt. Kombinierte Selektoren (höhere Spezifität als die
   einzelnen Kategorie-Klassen oben) statt Reihenfolge/!important. */
.stellplatzkarte-marker-blocked.stellplatzkarte-marker-standard,
.stellplatzkarte-marker-blocked.stellplatzkarte-marker-plus {
    background: #8a8f98;
    color: #fff;
}

.stellplatzkarte-marker-blocked.stellplatzkarte-marker-standard {
    border-color: var(--color-accent);
}

/* Gesperrte Plätze auf den Admin-Karten (Belegung, Stellplatzkarte): dezentes, großes graues X
   über dem Marker. Wächst mit dem Marker (Zoom-Gegenskalierung), fängt keine Klicks ab. */
.stellplatzkarte-marker-gesperrt::before,
.stellplatzkarte-marker-gesperrt::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    /* nur knapp über den Kreis hinaus, damit dicht stehende Nachbarn frei bleiben */
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: rgba(110, 116, 126, 0.95);
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
}

.stellplatzkarte-marker-gesperrt::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.stellplatzkarte-marker-blocked.stellplatzkarte-marker-plus {
    border-color: #4a90d9;
}

/* Gäste-Buchungskarte (/camping/womo): eigene Reservierung grün, alles
   andere Nicht-Wählbare (belegt, gesperrt, falsche Kategorie, keine
   offenen Tickets mehr) einheitlich grau statt der Admin-Farbcodierung -
   für Gäste reicht "verfügbar für dich oder nicht". */
.stellplatzkarte-marker-own {
    background: #2f9e5c;
    color: #fff;
}

.stellplatzkarte-marker-unavailable {
    background: #8a8f98;
    color: #fff;
}

/* Marker sind zum Anklicken da, nicht zum Ziehen wie im Admin-Tool. */
.stellplatzkarte-viewport-booking .stellplatzkarte-marker[data-plot-id] {
    cursor: pointer;
}

.stellplatzkarte-viewport-booking .stellplatzkarte-marker-unavailable {
    cursor: default;
}

.stellplatzkarte-confirm-popover {
    position: fixed;
    z-index: 50;
    /* War 220px - die beiden Buttons nebeneinander (je ein nicht umbrechendes
       Wort) brauchten inzwischen mehr als das: Flex-Items schrumpfen ohne
       min-width:0 nicht unter ihre Inhaltsbreite, das Wort ragte über den
       Rand der Box hinaus. */
    max-width: 260px;
    padding: 0.85rem;
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stellplatzkarte-confirm-popover p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.stellplatzkarte-confirm-kennzeichen-field {
    margin-bottom: 0.75rem;
}

.stellplatzkarte-confirm-kennzeichen-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stellplatzkarte-confirm-kennzeichen-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font: inherit;
    font-size: 0.9rem;
}

.stellplatzkarte-confirm-actions {
    display: flex;
    gap: 0.5rem;
}

.stellplatzkarte-confirm-actions button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-input-bg);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

#stellplatzkarte-confirm-yes {
    background: var(--color-accent);
    color: var(--color-accent-text);
    border-color: var(--color-accent);
}

.stellplatzkarte-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Als Overlay unten rechts auf der Karte statt als eigene Zeile darüber -
   liegt außerhalb von .stellplatzkarte-map-wrap, damit sie beim Zoomen/
   Verschieben der Karte an Ort und Stelle bleibt. */
.stellplatzkarte-toast {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 3;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    background: var(--color-success-bg);
    color: var(--color-success-text);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.stellplatzkarte-toast-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* position:fixed statt absolute, damit es nicht vom overflow:hidden der
   Karte abgeschnitten wird - Koordinaten kommen 1:1 vom Rechtsklick-Event.
   Kurze Skalier-/Fade-Animation beim Öffnen, da [hidden] jedes Mal neu ins
   Rendering eintritt (kein zusätzliches JS für den Trigger nötig). */
.stellplatzkarte-context-menu {
    position: fixed;
    z-index: 50;
    min-width: 190px;
    padding: 0.35rem;
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
    transform-origin: top left;
    animation: stellplatzkarte-context-menu-in 0.12s ease-out;
}

@keyframes stellplatzkarte-context-menu-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-2px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stellplatzkarte-context-menu button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.stellplatzkarte-context-menu button:hover {
    background: var(--color-surface);
}

.stellplatzkarte-context-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--color-muted);
}

.stellplatzkarte-context-menu-divider {
    height: 1px;
    margin: 0.3rem 0.4rem;
    background: var(--color-border);
}

.stellplatzkarte-context-danger {
    color: var(--color-error-text);
}

.stellplatzkarte-context-danger .stellplatzkarte-context-icon {
    color: var(--color-error-text);
}

.stellplatzkarte-context-danger:hover {
    background: var(--color-error-bg);
}

.stellplatzkarte-legend-overlay {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    z-index: 2;
    margin: 0;
    padding: 0.4rem 0.65rem;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.stellplatzkarte-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.stellplatzkarte-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.stellplatzkarte-legend-swatch-blocked {
    background: #8a8f98;
}

.stellplatzkarte-map-wrap-readonly {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.stellplatzkarte-map-wrap-readonly img {
    cursor: default;
}

/* Vorschau vor dem Speichern: eine gestrichelte Kontur statt der normalen
   durchgezogenen zeigt "noch nicht gesetzt", Kategorie-Farbe/Beschriftung
   kommt trotzdem von .stellplatzkarte-marker-standard/-plus (via JS gesetzt). */
.stellplatzkarte-marker-pending {
    outline: 2px dashed #fff;
    outline-offset: 2px;
}

/* Folgt der Maus über der Karte, solange noch nicht geklickt wurde -
   etwas transparenter als ein fest gesetzter Punkt, um "nur Vorschau" zu signalisieren. */
.stellplatzkarte-cursor-label {
    opacity: 0.8;
}

/* Der Punkt selbst bleibt exakt auf dem Cursor zentriert (nicht verschoben -
   sonst könnte man meinen, man müsse woanders klicken). Die Nummer steht
   separat als kleines Beschriftungs-Badge oben rechts daneben, statt im
   Punkt selbst, wo sie vom Cursor-Kreuz verdeckt würde. */
.stellplatzkarte-marker-pending,
.stellplatzkarte-cursor-label {
    width: 10px;
    min-width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
}

.stellplatzkarte-marker-pending::after,
.stellplatzkarte-cursor-label::after {
    content: attr(data-badge);
    position: absolute;
    left: 100%;
    bottom: 100%;
    margin: 0 0 5px 5px;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid #fff;
    background: inherit;
    color: inherit;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.stellplatzkarte-help-list {
    max-width: 640px;
    margin: 0;
    padding-left: 1.25rem;
}

.stellplatzkarte-help-list li {
    margin-bottom: 0.55rem;
    line-height: 1.4;
}

.stellplatzkarte-help-list li:last-child {
    margin-bottom: 0;
}

.stellplatzkarte-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
}

.stellplatzkarte-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    /* Farbiger Rand links statt eigenem Farbfeld - dieselbe Sprache wie
       andere Hinweis-/Info-Boxen im Projekt (siehe .info-banner), nur mit
       der Kategorie-Farbe des zugehörigen Marker-Kreises auf der Karte statt
       immer --color-accent. */
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    background: var(--color-surface);
}

.stellplatzkarte-ticket-row-plus {
    border-left-color: #4a90d9;
}

.stellplatzkarte-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.stellplatzkarte-ticket-type {
    font-weight: 700;
}

.stellplatzkarte-ticket-code {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.stellplatzkarte-ticket-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 1.9rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.stellplatzkarte-ticket-status-done {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

/* Nur ein Status-Hinweis, keine Aktion möglich (genau ein offenes Ticket
   dieser Kategorie - keine Auswahl nötig) - daher bewusst ohne Button-Optik
   (kein Rand/Schatten/Cursor wie bei .stellplatzkarte-ticket-select), aber
   als dezentes Badge (wie .stellplatzkarte-ticket-status-done) statt reiner
   Textfarbe, damit "noch zu erledigen" etwas auffällt statt untergeht. */
.stellplatzkarte-ticket-status-open {
    background: var(--color-highlight-bg);
    color: #8a6d1f;
}

/* Zusammenfassung von Status-Badge + Auswahl-Radio (offene Tickets) bzw.
   Status-Badge + Storno-Button (bereits gewählte Tickets) - "Noch offen"/
   "Platz X" steht so konsistent bei jedem Ticket, egal ob dahinter noch
   eine zweite Aktion (Auswahl bzw. Stornieren) folgt. */
.stellplatzkarte-ticket-status-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Storno direkt aus der Ticket-Liste - alternative zum Klick auf den
   eigenen grünen Marker auf der Karte (siehe .stellplatzkarte-marker-own),
   praktisch wenn der Platz auf der Karte gerade nicht sichtbar/gezoomt ist.
   Gleiche Höhe wie .stellplatzkarte-ticket-status, damit beide nebeneinander
   bündig abschließen. */
.stellplatzkarte-ticket-cancel {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 1.9rem;
    gap: 0.35rem;
    padding: 0 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-input-bg);
    color: var(--color-error-text);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.stellplatzkarte-ticket-cancel:hover {
    border-color: var(--color-error-text);
    background: var(--color-error-bg);
}

.stellplatzkarte-ticket-cancel-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.stellplatzkarte-ticket-kennzeichen {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* Analog zu .stellplatzkarte-ticket-cancel, aber neutrale Farbe statt Rot -
   Ändern ist keine destruktive Aktion. */
.stellplatzkarte-ticket-edit-kennzeichen {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 1.9rem;
    gap: 0.35rem;
    padding: 0 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-input-bg);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.stellplatzkarte-ticket-edit-kennzeichen:hover {
    background: var(--color-surface);
}

.stellplatzkarte-ticket-edit-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Mehrere offene Tickets derselben Kategorie - hier muss der User aktiv
   wählen, für welches Ticket der nächste Kartenklick gilt. Die ganze Box
   ist dafür anklickbar (nicht nur ein kleiner Button darin) - <button>
   ersetzt das <div> komplett, braucht daher einen Reset seiner
   Standard-Optik, den Rest (Rahmen/Radius/Hintergrund/Layout) übernimmt es
   ganz normal von .stellplatzkarte-ticket-row. */
button.stellplatzkarte-ticket-row {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.stellplatzkarte-ticket-row-selectable {
    cursor: pointer;
}

.stellplatzkarte-ticket-row-selectable:hover {
    border-color: var(--color-accent);
}

.stellplatzkarte-ticket-row-plus.stellplatzkarte-ticket-row-selectable:hover {
    border-color: #4a90d9;
}

/* Ausgewählt: Rahmen + leicht getönter Hintergrund in derselben Farbe wie
   der linke Kategorie-Streifen, damit "das ist gerade aktiv" auch ohne den
   Hinweistext zu lesen sofort auffällt. */
.stellplatzkarte-ticket-row-selected {
    border-width: 2px;
    border-color: var(--color-accent);
    background: rgba(252, 185, 0, 0.12);
}

.stellplatzkarte-ticket-row-plus.stellplatzkarte-ticket-row-selected {
    border-color: #4a90d9;
    background: rgba(74, 144, 217, 0.12);
}

/* Genereller unauffälliger Hinweistext mit Info-Icon (kleiner, gedämpfter
   Text statt Banner mit Rahmen/Hintergrund) - z. B. der rechtliche Hinweis
   unter der Stellplatzkarte oder der Ticket-Entfernen-Hinweis im Profil.
   Bewusst dezent, da er von der eigentlichen Aktion nicht abhalten soll,
   aber trotzdem sichtbar bleiben muss. */
.disclaimer-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: var(--color-muted);
    font-size: 0.8rem;
    margin: 0 0 1.5rem;
}

.disclaimer-hint-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Radiobutton-Optik statt Text - universell verständlich (angekreuzt =
   ausgewählt), auch ohne den Hinweistext oben gelesen zu haben. */
.stellplatzkarte-ticket-radio {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-input-bg);
}

.stellplatzkarte-ticket-radio svg {
    display: none;
    width: 14px;
    height: 14px;
    color: #fff;
}

.stellplatzkarte-ticket-radio.is-selected {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.stellplatzkarte-ticket-row-plus .stellplatzkarte-ticket-radio.is-selected {
    border-color: #4a90d9;
    background: #4a90d9;
}

.stellplatzkarte-ticket-radio.is-selected svg {
    display: block;
}

/* Auflösung des <summary>-Klick-Elements der Legende - auf Desktop soll sie
   sich exakt wie vorher verhalten (immer offen, kein Umschalt-Element
   sichtbar), auf schmalen Bildschirmen ist sie dagegen ein-/ausklappbar
   (siehe Media Query unten), weil sie dort sonst zu viel Platz auf/unter
   der Karte einnimmt. */
.stellplatzkarte-legend-details summary {
    display: none;
}

.stellplatzkarte-legend-info-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.stellplatzkarte-legend-details > .stellplatzkarte-legend {
    display: flex;
}

/* Auf schmalen Bildschirmen fließt nur die Legende als eigene Zeile unter
   der Karte (rechtsbündig, mit Info-Icon vor dem Wort) - die Zoom-Buttons
   bleiben dagegen als kleines Overlay AUF der Karte (wie bei Google/Apple
   Maps: eine kompakte, halbtransparente Pille in einer Ecke, keine breite
   Zeile darunter, die zusätzlichen Platz kostet). Wichtig: Legende/Zoom/
   Toast liegen (seit der Umstellung auf .stellplatzkarte-map-shell)
   außerhalb von .stellplatzkarte-viewport, daher bleiben sie beim
   Hineinzoomen der Karte unangetastet - weder verändern sie die für die
   Pan-Grenzen genutzte Höhe des Viewports, noch können sie vom
   hochskalierten Bild überdeckt werden. */
@media (max-width: 640px) {
    .stellplatzkarte-map-shell {
        margin-bottom: 0.6rem;
    }

    /* Wenig Platz neben "Platz X" in der Ticket-Box - nur noch das nackte
       Icon zeigen, ohne Rand/Hintergrund (Beschriftung bleibt für
       Screenreader über aria-label). Höhe bleibt wie am Desktop identisch
       zu .stellplatzkarte-ticket-status, damit beide bündig abschließen. */
    .stellplatzkarte-ticket-cancel {
        padding: 0 0.2rem;
        border: none;
        background: none;
    }

    .stellplatzkarte-ticket-cancel:hover {
        border: none;
        background: none;
    }

    .stellplatzkarte-ticket-cancel-label {
        display: none;
    }

    .stellplatzkarte-ticket-edit-kennzeichen {
        padding: 0 0.2rem;
        border: none;
        background: none;
    }

    .stellplatzkarte-ticket-edit-kennzeichen:hover {
        border: none;
        background: none;
    }

    .stellplatzkarte-ticket-edit-label {
        display: none;
    }

    .stellplatzkarte-legend-details {
        margin-top: 0.5rem;
        text-align: right;
    }

    /* Auf Mobile per <summary> ein-/ausklappbar statt permanent sichtbar -
       standardmäßig eingeklappt (kein "open"-Attribut im Markup), damit sie
       nicht schon beim Laden Platz wegnimmt. */
    .stellplatzkarte-legend-details summary {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.3rem 0.1rem;
        color: var(--color-muted);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
    }

    .stellplatzkarte-legend-details > .stellplatzkarte-legend {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin: 0.3rem 0 0;
        padding: 0;
        background: none;
        box-shadow: none;
        pointer-events: auto;
    }

    /* Etwas größere Tipp-Fläche als auf Desktop (26px), kompakt. Hintergrund
       fast deckend, sonst verschwinden die Symbole auf hellem Luftbild. */
    .stellplatzkarte-zoom-controls {
        padding: 0.1rem;
        background: rgba(255, 255, 255, 0.85);
    }

    .stellplatzkarte-zoom-controls button {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .stellplatzkarte-zoom-controls #stellplatzkarte-zoom-reset {
        font-size: 0.85rem;
    }

    /* Auf schmalen Bildschirmen ist der Platz zwischen benachbarten Plätzen
       ohnehin knapp - kleinere Grundgröße reduziert Überlappung schon in
       der Ruheposition. Die Zoom-Gegenskalierung in womo.php/stellplatzkarte.php
       hält diese Größe beim Hineinzoomen konstant (statt sie weiter zu
       verkleinern), damit die Ziffern lesbar bleiben. */
    .stellplatzkarte-marker {
        width: 13px;
        height: 13px;
        font-size: 0.42rem;
    }

    /* Nebeneinander (flex:1) ragten "Reservieren"/"Abbrechen" bei den durch
       den Ticketcode inzwischen längeren Texten über den Rand der Box
       hinaus - Flex-Items schrumpfen ohne min-width:0 nicht unter die
       eigene Inhaltsbreite (ein einzelnes Wort bricht nicht um). Untereinander
       statt nebeneinander vermeidet das zuverlässig, unabhängig vom Text. */
    .stellplatzkarte-confirm-actions {
        flex-direction: column;
    }
}

/* ---------- Info: FAQ ---------- */

.faq-list {
    margin: 0.5rem 0 1.5rem;
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    cursor: pointer;
    padding: 0.65rem 0.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

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

.faq-item summary::before {
    content: '+';
    flex-shrink: 0;
    width: 1rem;
    color: var(--color-accent);
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: '–';
}

.faq-item[open] summary {
    background: var(--color-surface);
}

.faq-answer {
    padding: 0.1rem 0.25rem 0.9rem 1.6rem;
    margin-bottom: 0.15rem;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-answer ul {
    padding-left: 1.25rem;
}

/* ---------- Info: Camping-Regeln ---------- */

.camping-area-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.camping-area-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
}

.camping-area-item h3 {
    margin: 0 0 0.5rem;
}

.camping-area-item p:last-child {
    margin-bottom: 0;
}

.camping-area-quiet {
    font-weight: 700;
}

/* ---------- Info: Warnhinweise ---------- */

.warning-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.warning-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
}

.warning-item-icon {
    flex-shrink: 0;
    display: flex;
    color: var(--color-heading);
}

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

.warning-item h3 {
    margin: 0 0 0.35rem;
}

.warning-item p {
    margin: 0;
    color: var(--color-muted);
}

.warning-tagline {
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
}

/* ---------- Info: Anreise & Unterkunft ---------- */

.anreise-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.anreise-jump a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.anreise-jump a svg {
    width: 18px;
    height: 18px;
}

.anreise-address {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.anreise-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--color-muted);
}

.anreise-list li + li {
    margin-top: 0.25rem;
}

.warning-item p + p,
.warning-item p + .anreise-list,
.warning-item .anreise-list + p {
    margin-top: 0.6rem;
}

.warning-item[id],
h2#unterkunft {
    scroll-margin-top: 5rem;
}

.warning-item > div {
    min-width: 0;
    flex: 1;
}

/* Variante (Anreise-Seite): Icon oben rechts in der Ecke statt eigener
   Spalte, damit der Inhalt die volle Breite der Box nutzt. */
.warning-list--corner-icon .warning-item {
    position: relative;
    display: block;
}

.warning-list--corner-icon .warning-item-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.warning-list--corner-icon .warning-item-icon svg {
    width: 26px;
    height: 26px;
}

.warning-list--corner-icon .warning-item h3 {
    padding-right: 2.25rem;
}

/* ---------- Teaser: Helfer*innen-Bewerbung (partials/crew_teaser.php) ---------- */

.crew-teaser {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

/* Auf der Startseite steht die Box im Kachel-Raster direkt unter der
   News-Kachel - dort über die volle Breite, Abstand kommt vom gap. */
.service-tiles > .crew-teaser {
    grid-column: 1 / -1;
    margin: 0;
}

/* Liegt auf dem Foto - daher hell auf halbtransparentem Dunkel. */
.crew-teaser-dismiss {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.crew-teaser-dismiss:hover,
.crew-teaser-dismiss:focus-visible {
    background: rgba(0, 0, 0, 0.8);
}

.crew-teaser-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-header-bg);
}

.crew-teaser-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Gesichter sitzen im unteren Bilddrittel - nicht auf den dunklen Himmel croppen */
    object-position: center 65%;
}

.crew-teaser-cover-text {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #fff;
}

.crew-teaser-kicker {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Bild-Teaser (Crew, Follow us, Tickets): Überschrift in der Festival-Schrift Edo */
.crew-teaser-cover-text h2 {
    margin: 0;
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.85rem;
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    text-wrap: balance;   /* gleichmäßige Zeilen statt eines einzelnen Worts in der letzten */
}

.crew-teaser-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 4px solid var(--color-accent);
}

.crew-teaser-body p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

@media (min-width: 600px) {
    .crew-teaser-cover {
        aspect-ratio: 21 / 9;
    }

    /* Dashboard (Desktop/Tablet): eine normale Kachel im Raster statt
       voller Breite - Foto als Hintergrund der ganzen Kachel, Titel oben,
       kompakter Button unten, Einleitungstext entfällt. Titel und Button
       stehen im normalen Fluss, damit sie sich bei schmalen Spalten nicht
       überlappen. Mobil bleibt die große Box (1 Spalte). */
    .service-tiles > .crew-teaser {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 6px;
        border-top: 4px solid var(--color-accent);
    }

    .service-tiles > .crew-teaser .crew-teaser-cover {
        position: static;
        aspect-ratio: auto;
        background: none;
    }

    .service-tiles > .crew-teaser .crew-teaser-cover img {
        position: absolute;
        inset: 0;
    }

    .service-tiles > .crew-teaser .crew-teaser-cover::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45));
    }

    .service-tiles > .crew-teaser .crew-teaser-cover-text {
        position: relative;
        z-index: 1;
        padding: 1rem 3.25rem 0 1.25rem;
        background: none;
    }

    .service-tiles > .crew-teaser .crew-teaser-cover-text h2 {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    .service-tiles > .crew-teaser .crew-teaser-body {
        position: relative;
        z-index: 1;
        padding: 0.85rem 1.25rem 1.25rem;
        border-top: none;
    }

    .service-tiles > .crew-teaser .crew-teaser-body p {
        display: none;
    }

    .service-tiles > .crew-teaser .crew-teaser-button {
        display: flex;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .service-tiles > .crew-teaser .crew-teaser-button .button-icon {
        display: none;
    }

    /* Über dem Titelblock (z-index 1) klickbar halten. */
    .service-tiles > .crew-teaser .crew-teaser-dismiss {
        z-index: 2;
    }
}

@media (max-width: 599px) {
    .crew-teaser-button {
        display: flex;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .anreise-nav-button {
        display: flex;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Klick-zum-Laden-Platzhalter für Karte & Mitfahrbörse (assets/video-embed.js) */
.consent-embed {
    position: relative;
    width: 100%;
    margin: 0.75rem 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg);
}

.consent-embed-map {
    height: 300px;
}

.consent-embed-ride {
    height: 600px;
}

.consent-embed-placeholder.consent-embed-ride {
    height: 180px;
}

.consent-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.consent-embed-placeholder {
    cursor: pointer;
}

.consent-embed-placeholder:hover,
.consent-embed-placeholder:focus-visible {
    border-color: var(--color-accent);
}

.consent-embed-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
    text-align: center;
}

.consent-embed-icon {
    display: flex;
    color: var(--color-heading);
}

.consent-embed-icon svg {
    width: 36px;
    height: 36px;
}

.consent-embed-title {
    font-weight: 700;
    color: var(--color-text);
}

.consent-embed-hint {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ---------- Info: FAQ-Kontakt ---------- */

.faq-contact {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.faq-contact h2 {
    margin-top: 0;
}

.faq-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* ---------- Festival-Buddys (Pinnwand + Nachrichten) ---------- */

.buddys-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.buddys-actions .badge-pill {
    margin-left: 0.25rem;
}

.buddys-actions .button {
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 6px;
}

.buddys-actions .button-secondary {
    border: 2px solid var(--color-heading);
    font-weight: 700;
}

@media (max-width: 599px) {
    .buddys-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .buddys-actions .button {
        display: flex;
        width: 100%;
    }

    .buddys-reply-button {
        flex: 1;
        justify-content: center;
    }
}

.buddys-empty {
    color: var(--color-muted);
    margin: 1.5rem 0;
}

.buddys-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.buddys-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.buddys-card-compact {
    margin: 1rem 0;
}

.buddys-card-reported {
    border-left-color: var(--color-error-text);
}

.buddys-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.buddys-card-kategorie {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-weight: 700;
    color: var(--color-text);
}

.buddys-card h3 {
    margin: 0 0 0.35rem;
}

.buddys-card-text {
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.buddys-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.buddys-card-actions form {
    margin: 0;
}

.buddys-card-own {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-muted);
}

.buddys-reply-button {
    padding: 0.5rem 1rem;
}

.buddys-report-form {
    margin-left: auto !important;
}

/* Bewusst unauffällig: kleines graues Icon statt Button. */
button.buddys-report-button {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 0.4rem;
    margin: 0;
    color: var(--color-muted);
    opacity: 0.6;
    cursor: pointer;
}

button.buddys-report-button:hover,
button.buddys-report-button:focus-visible {
    opacity: 1;
    background: none;
    color: var(--color-error-text);
}

.buddys-report-button svg {
    width: 16px;
    height: 16px;
}

.buddys-inbox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.buddys-inbox-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    text-decoration: none;
}

.buddys-inbox-item.is-unread {
    border-left: 4px solid var(--color-accent);
}

.buddys-inbox-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.2rem;
}

/* ---------- Festival-Buddys: Chat-Verlauf (festival_buddys/conversation.php) ----------
   Messenger-Layout: Kopfzeile, einklappbarer Aushang, scrollender Verlauf
   und Eingabe als ein Block. Die Höhe setzt buddys-chat.js passend zum
   Bildschirm (CSS-Fallback unten); nur .buddys-thread scrollt. */

.buddys-chat {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 9rem);
    min-height: 360px;
    max-height: 760px;
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    overflow: hidden;
}

.buddys-chat > * {
    flex-shrink: 0;
}

.buddys-chat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-header-bg);
}

.buddys-chat-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--color-header-text);
    text-decoration: none;
}

.buddys-chat-back svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.buddys-chat-back:hover,
.buddys-chat-back:focus-visible {
    color: var(--color-accent);
}

h1.buddys-chat-title {
    margin: 0;
    font-size: 1.15rem;
    /* Gleiche Zeilenhöhe wie der 32px-Zurück-Button -> beide auf einer Linie. */
    line-height: 32px;
    color: var(--color-header-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buddys-chat-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: 0;
    padding: 0.4rem 0.75rem;
    background: var(--color-highlight-bg);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text);
}

.buddys-chat-notice .inline-icon {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.buddys-chat-push .push-hint-button {
    margin: 0 0 0 auto;
    padding: 0.2rem 0.6rem;
    border: none;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* Klar vom Verlauf abgesetzt: kräftige Unterkante + leichter Schatten,
   der über den scrollenden Nachrichten liegt (z-index). */
.buddys-chat-aushang {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid var(--color-border-strong);
    background: var(--color-surface);
    box-shadow: 0 3px 8px rgba(31, 37, 46, 0.12);
}

.buddys-chat-aushang summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.85rem;
}

.buddys-chat-aushang summary::-webkit-details-marker {
    display: none;
}

.buddys-chat-aushang-titel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buddys-chat-aushang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-heading);
}

.buddys-chat-aushang-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.buddys-chat-aushang[open] .buddys-chat-aushang-toggle svg {
    transform: rotate(180deg);
}

.buddys-chat-aushang[open] .buddys-chat-aushang-titel {
    white-space: normal;
}

/* Aufgeklappter Aushang darf den Chat nicht verdrängen - langer Text
   scrollt in sich. */
.buddys-chat-aushang-body {
    max-height: 30vh;
    overflow-y: auto;
    padding: 0 0.75rem 0.65rem;
}

.buddys-chat-aushang-body .buddys-card-text {
    margin: 0 0 0.35rem;
}

.buddys-chat-aushang-meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.buddys-thread {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0 1.5rem;
}

.buddys-chat .buddys-thread {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0.85rem 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.buddys-thread-empty {
    margin: auto;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.buddys-composer {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.buddys-composer .form-hint {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
}

.buddys-composer-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.buddys-composer-form textarea {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    max-height: 7.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-input-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    resize: none;
    box-sizing: border-box;
}

.buddys-composer-form button.buddys-composer-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.buddys-composer-send svg {
    width: 20px;
    height: 20px;
}

.buddys-composer-counter {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: var(--color-muted);
    text-align: right;
}

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

.buddys-message {
    max-width: 85%;
    align-self: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
}

.buddys-message.is-mine {
    align-self: flex-end;
    background: var(--color-highlight-bg);
    border-color: var(--color-accent);
}

.buddys-message p {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.buddys-message-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* ---------- Fundbüro ---------- */

/* Honeypot gegen Spam-Bots - für Menschen unsichtbar. */
.fundbuero-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fundbuero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.fundbuero-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
    overflow: hidden;
}

.fundbuero-card-foto {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--color-bg);
}

.fundbuero-card-body {
    padding: 0.85rem 1rem 1rem;
}

.fundbuero-card-body p {
    margin: 0.6rem 0 0;
    overflow-wrap: anywhere;
}

.fundbuero-card-wertsache {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.fundbuero-card-zeitraum {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.fundbuero-card-zeitraum svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.fundbuero-erfassen {
    margin: 1rem 0 1.5rem;
}

.fundbuero-fund-form {
    max-width: none;
}

.fundbuero-fund-form label:first-of-type {
    margin-top: 0;
}

/* Wrapper um Beschreibung/Foto muss das Spalten-Layout von .form
   übernehmen - sonst rutschen Textfeld und Foto-Label nebeneinander.
   :not([hidden]), damit das Ausblenden bei Wertsachen weiter greift. */
.fundbuero-fund-details:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fundbuero-fund-form textarea,
.fundbuero-fund-form input[type="text"],
.fundbuero-fund-form select {
    width: 100%;
    box-sizing: border-box;
}

.fundbuero-fund-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem;
    border: 1px dashed var(--color-border);
    background: var(--color-bg);
    font-size: 0.9rem;
    cursor: pointer;
}

.fundbuero-fund-form input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 4px;
    background: var(--color-header-bg);
    color: var(--color-header-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.fundbuero-match-hint {
    margin: 0.5rem 0 0;
}

.fundbuero-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

/* Zähler unter der Beschriftung (Reiter + Status-Umschalter). */
.fundbuero-count {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.75;
}

.fundbuero-status-switch {
    display: flex;
    gap: 0.5rem;
}

/* Wie .button (aktiv) bzw. .button-secondary (inaktiv) der übrigen App. */
.fundbuero-status-switch a {
    min-width: 110px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: none;
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.fundbuero-status-switch a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.fundbuero-status-switch a.is-active,
.fundbuero-status-switch a.is-active:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
}

button.fundbuero-search-button,
.fundbuero-search-reset {
    margin-top: 0;
    min-height: 42px;
    box-sizing: border-box;
}

.fundbuero-search-reset {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.fundbuero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.fundbuero-search input[type="search"] {
    min-width: 220px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font: inherit;
}

.fundbuero-admin-foto {
    display: block;
    max-width: 240px;
    width: 100%;
    border-radius: 4px;
    margin: 0.5rem 0;
}

@media (max-width: 599px) {
    .fundbuero-erfassen .admin-collapsible-body {
        padding: 1rem;
    }

    .fundbuero-erfassen summary {
        padding: 0.9rem 1rem;
    }

    .fundbuero-admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fundbuero-status-switch a {
        flex: 1;
        text-align: center;
    }

    .fundbuero-search,
    .fundbuero-search input[type="search"] {
        width: 100%;
    }

    .fundbuero-search input[type="search"] {
        min-width: 0;
        flex: 1;
    }
}

/* ---------- Festival-Buddys: Push-Hinweis (partials/buddys_push_hint.php) ---------- */

.push-hint p + p {
    margin-top: 0.5rem;
}

.push-hint .push-hint-button {
    margin-top: 0.75rem;
}

/* Dashboard: Kachel mit ungelesenen Einträgen (z. B. Festival-Buddys-
   Nachrichten) dezent hervorheben. */
.service-tile-has-badge {
    background: var(--color-highlight-bg);
    border-color: var(--color-accent);
}

.service-tile-content h3 .badge-pill {
    vertical-align: 2px;
}

/* Auf dem gelb getönten Hintergrund braucht die Plakette mehr Kontrast. */
.service-tile-has-badge .badge-pill {
    background: var(--color-header-bg);
    color: var(--color-header-text);
}

/* .icon-button auch als Link (z. B. "Bearbeiten" auf der Pinnwand). */
a.icon-button {
    text-decoration: none;
}

/* ---------- Festival-Buddys: Benachrichtigung bei neuen Aushängen ---------- */

.buddys-subscribe .inline-icon {
    width: 16px;
    height: 16px;
    vertical-align: -3px;
}

.buddys-subscribe-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
}

/* Select und Buttons exakt gleich hoch - 44px wie das Touch-Mindestmaß,
   das .icon-button ohnehin per min-height bekommt (feste Höhe statt Padding, da
   Select und Button unterschiedliche Standard-Zeilenhöhen haben). */
.buddys-subscribe-form select,
.buddys-subscribe-form button.icon-button {
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
    line-height: 1.2;
}

.buddys-subscribe-form select {
    padding: 0 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-input-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
}

.buddys-subscribe-form button.icon-button {
    margin-top: 0;
    padding: 0 0.8rem;
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
}

.buddys-subscribe-form button.icon-button-danger {
    background: none;
    border-color: var(--color-error-text);
    color: var(--color-error-text);
}

.buddys-subscribe .form-hint {
    margin: 0;
}

.buddys-subscribe-form button.icon-button-danger:hover {
    background: var(--color-error-bg);
}

/* ---------- Dashboard: News-Kachel mit Beitrags-Slider (home.php) ----------
   Kopf (abgesetzt) mit Überschrift als Link zu allen News und rechts
   "x ungelesen", darunter die neuesten Beiträge als Slider - jede Folie
   exakt die Karte der News-Liste (partials/news_card.php, .news-item-compact
   inkl. "Neu"-Label). Mobil wächst die
   Kachel mit; ab 600px streckt sie sich per contain nur auf die Höhe der
   Nachbar-Kacheln, mit einer Mindesthöhe, in die die Karte passt. */

.news-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

/* Kopf: Überschrift (Link zu allen News) links, "x ungelesen" rechtsbündig */
.news-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

h3.news-tile-heading {
    margin: 0;
    color: var(--color-heading);
}

.news-tile-heading a {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: inherit;
    text-decoration: none;
}

.news-tile-heading a svg {
    width: 1.1em;
    height: 1.1em;
    color: var(--color-accent);
    transition: transform 0.15s ease;
}

.news-tile-heading a:hover svg {
    transform: translateX(3px);
}

.news-tile-head .news-tile-status {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-muted);
    white-space: nowrap;
    text-decoration: none;
}

/* Nur waagerecht beschneiden - das Teilen-Menü der Karte darf nach unten
   über den Slider hinausragen. */
.news-tile-slider {
    overflow-x: clip;
    overflow-y: visible;
    min-width: 0;
}

.news-tile-track {
    display: flex;
    transition: transform 0.5s ease;
}

.news-tile-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Keine Box in der Box: in der Kachel verliert die Karte ihren eigenen
   Rahmen/Hintergrund/Abstand (und den gelben Ungelesen-Rand) - Aufbau,
   Schrift, Bild, Quell-Icon, Datum und "Neu"-Label bleiben wie in der Liste. */
.news-tile-slide .news-item-compact,
.news-tile-slide .news-item-compact.is-unread {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.news-tile-slide .news-item-compact:hover {
    box-shadow: none;
    transform: none;
}

/* Ohne Karten-Innenabstand sitzen Quell-Icon und Aktionen bündig am Rand. */
.news-tile-slide .news-item-compact-source-badge {
    top: 0;
    right: 0;
}

.news-tile-slide .news-item-compact-actions {
    bottom: -0.2rem;
    right: 0;
}

@media (prefers-reduced-motion: reduce) {
    .news-tile-track {
        transition: none;
    }
}

/* Optisch abgesetzt: Trennlinie, klebt unten an der Kachel. */


@media (min-width: 600px) {
    .news-tile {
        contain: size;
        min-height: 240px;
    }

    /* Nur Desktop (mobil bleibt die Karte wie in der Liste): Titel
       einzeilig, Anreißer wie in der Liste bis 2 Zeilen - so ist der
       Beitrag etwa so hoch wie sein Bild und Kopf + Beitrag + Fußzeile
       passen sicher in die Mindesthöhe. */
    .news-tile-slide .news-item-compact-body h3 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .news-tile-slider {
        margin-bottom: 0.75rem;
    }
}

/* Dashboard (home.php): höchstens 3 Kacheln nebeneinander. Mindestbreite je
   Spalte = ein Drittel der Zeile (abzüglich Abständen), aber nie unter
   220px - darunter brechen die Spalten wie gewohnt auf 2 bzw. 1 um. */
.service-tiles.service-tiles-max3 {
    grid-template-columns: repeat(auto-fit, minmax(max(220px, (100% - 2 * 1.25rem) / 3), 1fr));
}

/* Benachrichtigungs-Kasten einklappbar (festival_buddys/index.php) */
.buddys-subscribe summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
}

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

.buddys-subscribe[open] summary {
    margin-bottom: 0.4rem;
}

.buddys-subscribe-toggle {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--color-heading);
}

.buddys-subscribe-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.buddys-subscribe[open] .buddys-subscribe-toggle svg {
    transform: rotate(180deg);
}

.buddys-subscribe > p {
    margin: 0;
}

/* Große Glocke als eigene Spalte - der ganze Titel steht rechts daneben. */
.buddys-subscribe-bell {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--color-heading);
}

.buddys-subscribe-bell svg {
    width: 28px;
    height: 28px;
}

.buddys-subscribe-title {
    flex: 1;
    min-width: 0;
}

/* Festival-Buddys: Einleitung mit "mehr"-Link (festival_buddys/index.php) */
.buddys-intro.is-collapsed .buddys-intro-more {
    display: none;
}

button.buddys-intro-toggle {
    font-size: inherit;
    font-weight: 600;
    color: var(--color-heading);
}

/* News-Kachel: Wischen (assets/news-tile-slider.js) - senkrechtes Scrollen
   bleibt beim Browser, waagerechte Gesten übernimmt das Script. */
.news-tile-slider {
    touch-action: pan-y;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.news-tile-slider:active {
    cursor: grabbing;
}

.news-tile-slider img {
    -webkit-user-drag: none;
}

/* Offline-Hinweis (layout.php): gespeicherte Seite ohne Netz */
.offline-banner {
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
    background: var(--color-header-bg);
    color: var(--color-header-text);
    font-size: 0.85rem;
}

/* Ticket-Teaser (partials/ticket_teaser.php): Festivaltermin unter dem Titel */
.ticket-teaser-date {
    margin: 0.2rem 0 0;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Camping-Anfragen (admin/camping_anfragen.php): aus der Benachrichtigung
   geöffnete Anfrage hervorheben */
.camping-anfrage-highlight {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(252, 185, 0, 0.35);
}

/* ---------- Design-Umschalter Hell/Dunkel/System (partials/theme_switch.php) ---------- */

.theme-switch fieldset {
    display: inline-flex;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
}

.theme-switch input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-switch label {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.theme-switch input[type="radio"]:checked + label {
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.theme-switch input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Im Burger-Menü (Gäste): auf dunkler Kopfzeilen-Fläche */
.nav-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-theme-label {
    color: var(--color-header-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.nav-theme .theme-switch fieldset {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-theme .theme-switch label {
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 780px) {
    /* Desktop hat kein Burger-Menü - dort nur im Profil. */
    .nav-theme {
        display: none;
    }
}

/* Ladegrafik-Schleier im dunklen Design dunkel statt weiß */
:root[data-theme="dark"] .page-loading-overlay {
    background: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .page-loading-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* ---------- Diagramm-Farben (src/Support/Charts.php) ----------
   Validierte kategorische Palette (dataviz-Referenz): Nachbarfarben auch bei
   Farbfehlsichtigkeit unterscheidbar (CVD-ΔE ≥ 8), im dunklen Design alle
   ≥ 3:1 zum Hintergrund. Die dunklen Werte sind dieselben Farbtöne, für den
   dunklen Hintergrund abgestuft - keine eigene Palette. Im hellen Design
   haben einige Töne < 3:1 Kontrast; zulässig, weil jede Farbe in der
   Legende-Tabelle mit Name, Wert und Prozent steht. */
:root {
    --chart-1: #2a78d6;
    --chart-2: #eb6834;
    --chart-3: #1baf7a;
    --chart-4: #eda100;
    --chart-5: #e87ba4;
    --chart-6: #008300;
    --chart-7: #4a3aa7;
    --chart-8: #e34948;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --chart-1: #3987e5;
        --chart-2: #d95926;
        --chart-3: #199e70;
        --chart-4: #c98500;
        --chart-5: #d55181;
        --chart-6: #008300;
        --chart-7: #9085e9;
        --chart-8: #e66767;
    }
}

:root[data-theme="dark"] {
    --chart-1: #3987e5;
    --chart-2: #d95926;
    --chart-3: #199e70;
    --chart-4: #c98500;
    --chart-5: #d55181;
    --chart-6: #008300;
    --chart-7: #9085e9;
    --chart-8: #e66767;
}

/* Brötchenausgabe: beim Hinscrollen zur geöffneten Bestellung nicht unter
   der fixierten Kopfzeile verschwinden */
#broetchen-bestellung {
    scroll-margin-top: 5rem;
}

/* Tabellenzelle ohne Zeilenumbruch (z. B. Namen in der User-Liste) */
.admin-nowrap {
    white-space: nowrap;
}

/* ---------- Admin: User-Liste mit Filtern (admin/users.php) ---------- */

.user-filter-form {
    max-width: none;
}

.user-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.6rem 0.75rem;
    margin-top: 0.75rem;
}

.user-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-muted);
}

.user-filters select {
    width: 100%;
}

.user-filter-actions {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

/* ---------- "Folge uns": Teaser (partials/follow_teaser.php) + Seite /folgen ---------- */

.follow-teaser-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.follow-teaser-icons {
    display: flex;
    gap: 0.5rem;
}

.follow-teaser-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-heading);
    text-decoration: none;
}

.follow-teaser-icon:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
}

.follow-teaser-icon svg {
    width: 22px;
    height: 22px;
}

@media (min-width: 600px) {
    /* Als Dashboard-Kachel (Desktop): Icons auf dem Foto hell */
    .service-tiles > .follow-teaser .follow-teaser-icon {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: #fff;
    }

    .service-tiles > .follow-teaser .follow-teaser-icon svg {
        width: 18px;
        height: 18px;
    }

    .service-tiles > .follow-teaser .follow-teaser-button {
        width: auto;
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
}

.follow-hero {
    position: relative;
    margin: 0 0 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-header-bg);
    aspect-ratio: 21 / 9;
}

.follow-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follow-hero-text {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.follow-hero-text h1 {
    margin: 0.3rem 0 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

h2.follow-group-title {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.1rem;
}

.follow-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
}

.follow-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
}

.follow-item:hover {
    border-color: var(--color-accent);
}

.follow-item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.follow-item-icon svg {
    width: 22px;
    height: 22px;
}

.follow-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.follow-item-body strong {
    color: var(--color-heading);
}

.follow-item-handle {
    font-size: 0.85rem;
    color: var(--color-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-item-text {
    font-size: 0.85rem;
}

.follow-item-arrow {
    flex-shrink: 0;
    color: var(--color-muted);
}

.follow-item-arrow svg {
    width: 16px;
    height: 16px;
}

/* ---------- Leiste über der unteren Icon-Leiste (layout.php, #bottom-dock) ----------
   Hinweise wie "Neue Version verfügbar" und "Willkommen zurück" fahren wie die Ladeleiste oben aus der Leiste heraus
   (hinter der Icon-Leiste hervor) und wieder hinein. Sie überdecken nichts: body bekommt unten ihre Höhe dazu.
   --bottom-nav-h und --bottom-dock-h setzt das Skript in layout.php. */
.bottom-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--bottom-nav-h, calc(56px + env(safe-area-inset-bottom, 0px)));
    z-index: 39;
    display: flex;
    flex-direction: column;
}

@media (min-width: 780px) {
    .bottom-dock {
        bottom: 0;
    }
}

.dock-strip {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
    background: var(--color-header-bg);
    color: var(--color-header-text);
}

.dock-strip[hidden] {
    display: none;
}

.dock-strip.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.dock-strip.no-anim {
    transition: none;
}

.dock-strip-clip {
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.6rem 0.65rem 1rem;
}

.dock-strip-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.dock-strip-icon svg {
    width: 18px;
    height: 18px;
}

.dock-strip-text {
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.dock-strip-text strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
}

.dock-strip .button {
    margin: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
}

.dock-strip-close {
    flex-shrink: 0;
    align-self: center;
    padding: 0 0.4rem;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

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

/* Hinweis "Neue Version verfügbar": Knopf rechts in der Leiste */
.update-banner .button {
    flex-shrink: 0;
}
/* Ticket-Analyse "Orte": OpenStreetMap-Kacheln gedämpft, damit die gelben
   Herkunfts-Punkte hervorstechen (admin/ticket_analyse_orte.php) */
.orte-map-tiles {
    filter: saturate(0.45) brightness(1.04);
}

/* User-Liste: Filter einklappbar (admin/users.php) */
.user-filter-box {
    margin-top: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0 0.85rem;
    background: var(--color-surface);
}

.user-filter-box summary {
    padding: 0.6rem 0;
    font-weight: 700;
    color: var(--color-heading);
    cursor: pointer;
}

.user-filter-box[open] summary {
    border-bottom: 1px solid var(--color-border);
}

.user-filter-box .user-filters {
    margin: 0.75rem 0;
}

/* User-Liste: Sprungziel nach Sortieren/Blättern - nicht unter der
   fixierten Kopfzeile verschwinden */
#user-liste {
    scroll-margin-top: 5rem;
}

/* ---------- Admin: User-Statistik (admin/user_stats.php) ---------- */

/* Mobil eine Karte pro Zeile (volle Breite) - zwei schmale Spalten ließen
   Beschriftung und Zahlen zerrissen umbrechen. */
@media (max-width: 599px) {
    .stat-cards.user-stat-cards {
        grid-template-columns: 1fr;
    }
}

.user-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.35rem 0;
    border-top: 1px solid var(--color-border);
}

.stat-card .user-stat-row {
    margin: 0;
}

.user-stat-label {
    min-width: 0;
    color: var(--color-muted);
}

.user-stat-value {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    white-space: nowrap;
}

.user-stat-value strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-heading);
}

.user-stat-value small {
    min-width: 3.2em;
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ---------- Änderungshistorie (/info/aenderungen) ---------- */

.info-changelog-tile {
    margin-top: 1.5rem;
}

.changelog {
    max-width: 760px;
    margin-top: 1.5rem;
}

.changelog-release {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.9rem 1rem 0.4rem;
    margin: 0 0 1rem;
}

.changelog-date {
    font-size: 1.05rem;
    margin: 0 0 0.6rem;
}

.changelog-entries {
    list-style: none;
    margin: 0;
    padding: 0;
}

.changelog-entry {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--color-border);
    line-height: 1.4;
}

.changelog-entry:first-child {
    border-top: none;
}

.changelog-type {
    flex: 0 0 5.6rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    border: 1px solid currentColor;
}

.changelog-type-neu {
    color: #1f8a4c;
}

.changelog-type-verbessert {
    color: #2563b0;
}

.changelog-type-behoben {
    color: #b25e09;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .changelog-type-neu { color: #5fd08e; }
    :root:not([data-theme="light"]) .changelog-type-verbessert { color: #7fb0f0; }
    :root:not([data-theme="light"]) .changelog-type-behoben { color: #f0a55a; }
}

:root[data-theme="dark"] .changelog-type-neu { color: #5fd08e; }
:root[data-theme="dark"] .changelog-type-verbessert { color: #7fb0f0; }
:root[data-theme="dark"] .changelog-type-behoben { color: #f0a55a; }

.changelog-team {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.72rem;
    color: var(--color-muted);
    border: 1px dashed var(--color-muted);
    border-radius: 999px;
    padding: 0 0.4rem;
    vertical-align: middle;
}

/* Tester-Hinweis ganz oben im Dashboard (Änderungshistorie) */
.service-tile-tester {
    background: var(--color-highlight-bg);
    border-color: var(--color-accent);
}

.service-tile-tester h3 .badge-pill {
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Nachricht an die Test-User in der Tester-Kachel (Admin › User › Nachricht an Test-User) */
.tester-msg-tile { cursor: default; align-items: flex-start; }
.tester-msg-tile .service-tile-content { min-width: 0; }
.tester-msg-kicker { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.2rem; }
.tester-msg-body { margin: 0.35rem 0 0; overflow-wrap: anywhere; }
.tester-msg-changes { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; }
.tester-msg-changes svg { width: 16px; height: 16px; }
.tester-msg-changes .badge-pill { margin-left: 0.15rem; }
.tester-msg-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; margin-top: 0.6rem; }
.tester-msg-links .tester-msg-changes { margin-top: 0; }
.tester-msg-dismiss { display: inline-flex; margin: 0; }
/* button[type="submit"] davor nötig: die allgemeine Absende-Knopf-Regel (gelb, groß) ist sonst stärker */
.tester-msg-linkbutton,
button[type="submit"].tester-msg-linkbutton,
button[type="submit"].tester-msg-linkbutton:hover { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--color-heading); font: inherit; font-size: 0.9rem; font-weight: 600; text-transform: none; letter-spacing: normal; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tester-msg-linkbutton:hover:not(:disabled),
button[type="submit"].tester-msg-linkbutton:hover { color: var(--color-accent); }
.tester-msg-linkbutton:disabled { cursor: default; }
.tester-optout { font-size: 0.85rem; }
.tester-optout summary { cursor: pointer; color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; list-style: none; }
.tester-optout summary::-webkit-details-marker { display: none; }
.tester-optout[open] { flex-basis: 100%; }
.tester-optout-panel { margin-top: 0.5rem; padding: 0.7rem 0.8rem; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); }
.tester-optout-panel p { margin: 0 0 0.6rem; }
.tester-msg-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; margin-bottom: 1.5rem; }
.tester-msg-form { max-width: none; }
.tester-msg-preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
.tester-msg-preview-label { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--color-muted); }
.tester-msg-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.tester-msg-confirm { margin-top: 0.8rem; }
.tester-msg-current form { margin-top: 0.6rem; }
@media (max-width: 760px) {
    .tester-msg-layout { grid-template-columns: minmax(0, 1fr); }
    .tester-msg-preview { position: static; order: -1; }
}

/* ---------- Zoom-Ansicht (Geländeplan, zoom-viewer.js) ---------- */

.zoom-viewer {
    position: relative;
    overflow: hidden;
    /* Höhe folgt dem Seitenverhältnis des Plans (aspect-ratio inline),
       aber nie höher als der Bildschirm. Ohne Maße: feste Höhe. */
    height: 70vh;
    max-height: 80vh;
    min-height: 240px;
    margin: 1rem 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

/* Mit Bildformat: Höhe nur aus der Breite - keine Mindesthöhe, sonst würde
   ein sehr breiter Plan die Box auf dem Handy über den Rand ziehen. */
.zoom-viewer[style*="aspect-ratio"] {
    height: auto;
    min-height: 0;
    width: 100%;
}

.zoom-viewer:active {
    cursor: grabbing;
}

/* Innerer Rahmen - im Vollbild auf Handys im Hochformat per JS um 90° gedreht. */
.zoom-viewer-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
}

.zoom-viewer-stage {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    visibility: hidden;
}

.zoom-viewer.is-ready .zoom-viewer-stage {
    visibility: visible;
}

.zoom-viewer-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    -webkit-user-drag: none;
}

/* "DUMMY"-Wasserzeichen für einen vorläufigen Plan (Schriftgröße setzt zoom-viewer.js). */
.zoom-viewer-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    place-items: center;
    pointer-events: none;
    overflow: hidden;
}

.zoom-viewer-watermark span {
    font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    /* RFT-Gelb (--color-accent #fcb900), halbtransparent */
    color: rgba(252, 185, 0, 0.5);
    transform: rotate(-25deg);
    white-space: nowrap;
}

.zoom-viewer-controls {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.zoom-viewer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.zoom-viewer-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.4;
    flex-shrink: 0;
}

.zoom-viewer-fullscreen {
    font-size: 0.85rem;
}

/* Großes X zum Schließen - nur im Vollbild, dort ersetzt es den Vollbild-Knopf. */
.zoom-viewer-close {
    position: absolute;
    top: calc(0.6rem + env(safe-area-inset-top, 0px));
    right: 0.6rem;
    z-index: 2;
    display: none;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.zoom-viewer.is-fullscreen .zoom-viewer-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-viewer-close svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.6;
}

.zoom-viewer.is-fullscreen [data-zoom="fullscreen"] {
    display: none;
}

/* Vollbild: Overlay nur mit dem Plan über der ganzen Seite (auf Android
   zusätzlich per Fullscreen-API ohne Browserleisten). */
.zoom-viewer.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    height: auto;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto !important;
    margin: 0;
    border: none;
    border-radius: 0;
    /* Ränder neben dem Plan (anderes Seitenverhältnis als der Bildschirm)
       immer dunkel - auch im hellen Design. */
    background: #0b0c0e;
}

.zoom-viewer.is-fullscreen::backdrop {
    background: #0b0c0e;
}

.zoom-viewer.is-fullscreen .zoom-viewer-controls {
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
}

body.zoom-viewer-open {
    overflow: hidden;
}

.gelaendeplan-admin-preview {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

/* ---------- Essen, Trinken & Shopping (/info/essen-trinken) ---------- */

.anbieter-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

/* Einklappbarer Filterkasten (Optik wie User-Liste, .user-filter-box) */
.anbieter-filter-box {
    margin: 1rem 0;
}

.anbieter-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.anbieter-chip {
    min-height: 36px;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.anbieter-chip.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 600;
}

.anbieter-group[hidden],
.anbieter-card[hidden] {
    display: none;
}

.anbieter-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.anbieter-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.anbieter-card summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    list-style: none;
}

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

.anbieter-card-image {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

.anbieter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anbieter-card-image svg {
    width: 26px;
    height: 26px;
}

.anbieter-card-head {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.anbieter-card-name {
    font-weight: 700;
    color: var(--color-heading);
}

.anbieter-neu {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
}

.anbieter-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.anbieter-tag {
    padding: 0 0.45rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--color-muted);
}

.anbieter-card-chevron {
    flex-shrink: 0;
    display: flex;
    color: var(--color-muted);
    transition: transform 0.2s;
}

.anbieter-card-chevron svg {
    width: 20px;
    height: 20px;
}

.anbieter-card[open] .anbieter-card-chevron {
    transform: rotate(180deg);
}

.anbieter-card-body {
    padding: 0 0.8rem 0.8rem calc(0.8rem + 56px + 0.8rem);
}

.anbieter-card-body p {
    margin: 0 0 0.6rem;
}

@media (max-width: 480px) {
    .anbieter-card-body {
        padding-left: 0.8rem;
    }
}

.anbieter-admin-preview {
    width: 96px;
    height: auto;
}

.admin-row-muted td {
    opacity: 0.55;
}

/* Zeile unter der Beschreibung: Bezahlung links, Website-Button rechts */
.anbieter-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.anbieter-card-meta .anbieter-website {
    flex-shrink: 0;
    margin-left: auto;
}

/* Bezahlmöglichkeiten eines Stands: Symbol + kurzer Text */
.anbieter-zahlung {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.anbieter-zahlung-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: 0.85rem;
}

.anbieter-zahlung-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Website-Link eines Stands als Icon-Button */
.anbieter-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
    color: var(--color-heading);
}

.anbieter-website:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.anbieter-website svg {
    width: 22px;
    height: 22px;
}

/* ---------- "Als User ansehen" (Admin): Hinweisbalken ---------- */

/* Alle Hinweisleisten in einem Block oben fixiert (untereinander statt übereinander). */
.top-bars {
    position: sticky;
    top: 0;
    z-index: 1100;
}

.top-bars .impersonation-bar {
    position: static;
}

.impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    background: #b91c1c;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.3;
}

.impersonation-bar-text {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

/* Symbol optisch auf die Schriftmitte: Barlow sitzt in ihrer Zeilenbox etwas
   tief, rein rechnerische Zentrierung wirkt deshalb zu hoch. */
.impersonation-bar-text svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

/* Lange Namen einzeilig kürzen statt umbrechen */
.impersonation-bar-name {
    line-height: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.impersonation-bar form {
    margin: 0;
    flex-shrink: 0;
}

/* Gegen die allgemeine Absende-Button-Regel (gelb, Großbuchstaben, Abstand). */
.impersonation-bar button.impersonation-bar-button,
.impersonation-bar button.impersonation-bar-button:hover {
    margin: 0;
    min-height: 32px;
    padding: 0.25rem 0.8rem;
    border: 1.5px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

.impersonation-bar button.impersonation-bar-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* "Als dieser User ansehen" in den User-Details: Abstand zum Hinweis darunter */
.admin-view-as-form {
    margin: 1rem 0 0.6rem;
}

.admin-view-as-form + .form-hint {
    margin-top: 0;
}

/* Aktions-Symbole in Admin-Tabellen (User-Liste, Stände-Liste). Innerer Flex-Rahmen
   statt Flex auf der Zelle selbst (siehe .admin-role-badges). */
.user-list-actions {
    white-space: nowrap;
    vertical-align: middle;
}

.user-list-actions-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.user-list-actions-inner form {
    display: contents;
}

/* Stift-Link und Auge-Button: gleich große Flächen, Symbol mittig.
   Gegen die allgemeine Absende-Button-Regel (gelb, Abstand oben). */
.user-list-actions-inner a,
.user-list-actions-inner button,
.user-list-actions-inner button:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-heading);
    cursor: pointer;
}

.user-list-actions-inner a:hover,
.user-list-actions-inner button:hover {
    color: var(--color-accent);
}

.user-list-actions-inner svg {
    width: 20px;
    height: 20px;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0;
}

.admin-user-actions form {
    margin: 0;
}

/* Klappbox INNERHALB einer Karte (z. B. "Letzte Aufrufe" in den User-Details):
   keine eigene Karte, nur Trennlinie - sonst drei Rahmen ineinander. */
.admin-collapsible.admin-collapsible-flat {
    background: none;
    border: none;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    margin: 1.25rem 0 0;
}

.admin-collapsible.admin-collapsible-flat summary {
    padding: 0.8rem 0;
    font-size: 1rem;
}

.admin-collapsible.admin-collapsible-flat[open] summary {
    border-bottom: none;
}

.admin-collapsible.admin-collapsible-flat .admin-collapsible-body {
    padding: 0;
}

.admin-collapsible-flat .table-scroll-y {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* Herz auf Stand-/Ausstellenden-Karten (Kopfzeile, like.js) */
.anbieter-card summary .like-button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
}

.anbieter-chip-fav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.anbieter-chip-fav svg {
    width: 15px;
    height: 15px;
    color: #e5484d;
}

.anbieter-chip-fav.is-active svg {
    color: currentColor;
}

/* ---------- Ampel für Auslastungs-Prozente (App\Support\Auslastung) ----------
   grün < 70 %, orange 70-90 %, rot ab 90 %. */

.auslastung-ok { --auslastung-color: #1f8a4c; }
.auslastung-warn { --auslastung-color: #c2610c; }
.auslastung-full { --auslastung-color: #c81e1e; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .auslastung-ok { --auslastung-color: #5fd08e; }
    :root:not([data-theme="light"]) .auslastung-warn { --auslastung-color: #f0a55a; }
    :root:not([data-theme="light"]) .auslastung-full { --auslastung-color: #f87171; }
}

:root[data-theme="dark"] .auslastung-ok { --auslastung-color: #5fd08e; }
:root[data-theme="dark"] .auslastung-warn { --auslastung-color: #f0a55a; }
:root[data-theme="dark"] .auslastung-full { --auslastung-color: #f87171; }

.stat-card-highlight.auslastung-ok,
.stat-card-highlight.auslastung-warn,
.stat-card-highlight.auslastung-full,
.stat-card-highlight-inline.auslastung-ok,
.stat-card-highlight-inline.auslastung-warn,
.stat-card-highlight-inline.auslastung-full,
.stat-card-percent.auslastung-ok,
.stat-card-percent.auslastung-warn,
.stat-card-percent.auslastung-full {
    color: var(--auslastung-color);
}

.auslastung-bar {
    display: block;
    height: 6px;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--color-border);
    overflow: hidden;
}

.auslastung-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--auslastung-color);
}

/* ---------- Team-Menü (Admin/Crew): Burger auch auf großen Bildschirmen ----------
   Die Desktop-Leiste bricht bei den vielen Admin-Punkten um. .site-nav-burger
   (partials/nav.php) übernimmt ab 780px das Handy-Layout: Burger links, Logo
   mittig, Icons rechts; das Menü klappt als Seitenleiste links auf. */
@media (min-width: 780px) {
    .site-nav-burger .nav-toggle-label {
        display: flex;
        order: 1;
    }

    .site-nav-burger .header-admin-badge {
        order: 2;
        margin-left: 0.75rem;
    }

    .site-nav-burger .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .site-nav-burger .header-icons.header-icons-mobile-only {
        display: flex;
        order: 4;
        margin-left: auto;
    }

    .site-nav-burger .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        width: 340px;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--color-header-bg);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    }

    .site-nav-burger .nav-links.is-open {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .site-nav-burger .nav-links a,
    .site-nav-burger .nav-links .link-button {
        width: 100%;
        padding: 0.85rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        white-space: normal;
    }

    .site-nav-burger .nav-links a.nav-links-icon-desktop-only {
        display: none;
    }

    .site-nav-burger .nav-group summary {
        display: block;
        padding: 0.85rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav-burger .nav-group summary::after {
        float: right;
        font-size: inherit;
        opacity: 1;
    }

    .site-nav-burger .nav-group-panel {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .site-nav-burger .nav-group-panel a {
        padding-left: 2rem !important;
    }
}

/* Info-Seite, nur für Admins: Stift unten rechts auf der Kachel führt in die
   Verwaltung des Bereichs (Kachel selbst = Ansicht wie für Besucher). */
.service-tile-wrap {
    position: relative;
    display: flex;
}

.service-tile-wrap > .service-tile {
    flex: 1;
}

.service-tile-edit {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-heading);
}

.service-tile-edit:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.service-tile-edit svg {
    width: 18px;
    height: 18px;
}

/* Sprungziel "Tickets importieren" - nicht unter der Kopfzeile */
#upload {
    scroll-margin-top: 5rem;
}

/* Überschrift mit Aktions-Symbol rechtsbündig in derselben Zeile (z. B. Upload in der Ticket-Analyse) */
.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.page-title-row h1 {
    margin: 0;
}

.page-title-action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border-strong);
    border-radius: 50%;
    color: var(--color-heading);
}

.page-title-action:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.page-title-action svg {
    width: 20px;
    height: 20px;
}

/* ---------- Nutzer-Menü: wichtigster nächster Schritt, Nebenpunkte ---------- */

/* "Anmelden / Registrieren" bzw. "Ticket verknüpfen" - hervorgehoben ganz oben */
.nav-links a.nav-links-cta {
    margin: 0.6rem 1rem;
    width: auto;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 6px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    text-align: center;
}

.nav-links a.nav-links-cta:hover {
    color: var(--color-accent-text);
    filter: brightness(1.05);
}

/* Externer Link im Menü (Mitmachen): kleines Symbol hinter dem Text */
.nav-links a.nav-links-external svg {
    width: 14px;
    height: 14px;
    margin-left: 0.3rem;
    vertical-align: -1px;
    opacity: 0.8;
}

.nav-group summary .badge-pill {
    margin-left: 0.4rem;
}

/* Burger-Menü auch am Desktop: Änderungshistorie, Impressum und Datenschutz
   klein unten im Menü wie auf dem Handy (die Desktop-Regel oben blendet sie
   für die frühere Menüleiste aus). */
@media (min-width: 780px) {
    .site-nav-burger .nav-links a.nav-links-legal {
        display: block;
    }
}

/* Aufgeklapptes Burger-Menü: Seite dahinter abdunkeln (Handy wie Desktop),
   damit das Menü klar im Vordergrund steht. Die Kopfzeile (z-index 50) liegt
   über dem Schleier. */
body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.6);
}

/* Profil: einklappbarer Abschnitt (z. B. "Deine Tickets") - Überschrift als
   Klickfläche mit +/- rechts, sonst Optik wie .profile-card */
.profile-collapsible summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

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

.profile-collapsible summary h2 {
    margin: 0;
}

.profile-collapsible summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.3rem;
}

.profile-collapsible[open] summary::after {
    content: '\2013';
}

.profile-collapsible[open] summary {
    margin-bottom: 1rem;
}

.profile-collapsible h2 .badge-pill {
    margin-left: 0.4rem;
}

#tickets {
    scroll-margin-top: 5rem;
}

/* Impressum und Datenschutz nebeneinander in einer Menüzeile */
.nav-links-legal-row {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links-legal-row a.nav-links-legal {
    width: auto;
    border-top: none;
}

.nav-links-legal-row a.nav-links-legal + a.nav-links-legal {
    padding-left: 0.25rem;
}

.nav-links-legal-row a.nav-links-legal + a.nav-links-legal::before {
    content: '·';
    margin-right: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Team-/Admin-Menü: Symbol vor jedem Punkt (wie auf den Kacheln), aktuelle Seite markiert */
.nav-links a.nav-item,
.nav-links .nav-group summary.nav-item,
.site-nav-burger .nav-links .nav-group summary.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links .nav-ico {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    color: var(--color-accent);
}

.nav-item-label {
    flex: 1;
    min-width: 0;
}

.nav-links .nav-group summary.nav-item::after,
.site-nav-burger .nav-links .nav-group summary.nav-item::after {
    float: none;
    margin-left: auto;
    opacity: 0.6;
}

.nav-links .nav-group[open] > summary.nav-item {
    background: rgba(255, 255, 255, 0.04);
}

.nav-links .nav-group-panel a.nav-item {
    gap: 0.65rem;
    padding-left: 1.4rem !important;
    opacity: 1;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.02);
}

.nav-links .nav-group-panel .nav-ico {
    width: 16px;
    height: 16px;
    opacity: 0.75;
}

.nav-links a.nav-item.is-current,
.nav-links .nav-group-panel a.nav-item.is-current {
    color: var(--color-accent);
    background: rgba(252, 185, 0, 0.1);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.nav-links .nav-group summary.nav-item.has-current .nav-item-label {
    color: var(--color-accent);
}

.nav-links .nav-item .badge-pill {
    margin-left: 0.4rem;
}

/* Trennlinie zwischen Verwaltung und der Festival-App */
.nav-sep {
    display: block;
    height: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

/* Gäste-Menü: Hilfe und Rundgang als ein Punkt */
.nav-links a.nav-links-help {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.75);
}

.nav-links a.nav-links-help svg {
    width: 17px;
    height: 17px;
    color: var(--color-accent);
}

/* Am Desktop nur im Burger-Menü (die frühere Menüleiste nutzt den Footer) */
@media (min-width: 780px) {
    .site-nav:not(.site-nav-burger) .nav-links-legal-row {
        display: none;
    }
}

/* ---------- Begrüßung & Mini-Rundgang (partials/onboarding.php, onboarding.js) ---------- */

body.onboarding-open {
    overflow: hidden;
}

.onboarding {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
}

.onboarding[hidden] {
    display: none;
}

.onboarding-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.onboarding-skip {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    z-index: 1;
    padding: 0.3rem 0.4rem;
    border: none;
    background: none;
    color: var(--color-muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.onboarding-viewport {
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.onboarding-track {
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-y;
}

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

.onboarding-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 2.4rem 1.5rem 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 9rem);
}

.onboarding-slide[hidden] {
    display: none;
}

/* Karten des Rundgangs: Überschriften in Edo, die Willkommenskarte groß (kleine Sprechblasen-Titel bleiben in Barlow) */
.onboarding-slide h2 {
    margin: 0 0 0.8rem;
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: 1.7rem;
    line-height: 1.1;
}

.onboarding-slide[data-slide="willkommen"] h2 {
    font-size: 2.6rem;
    transform: rotate(-2deg);
}

.onboarding-slide p {
    margin: 0 0 0.8rem;
    line-height: 1.5;
}

.onboarding-logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 0 1rem;
}

.onboarding-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.onboarding-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.onboarding-list li > svg,
.onboarding-burger {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.onboarding-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.onboarding-burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent);
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Link "So funktioniert die App" unter den Knöpfen (Karte und letzte Rundgang-Station) */
.onboarding-more {
    flex-basis: 100%;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    text-align: center;
}

.onboarding-actions .onboarding-more {
    margin-top: 0.15rem;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0 0;
}

.onboarding-dots[hidden] {
    display: none;
}

.onboarding-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border-strong);
}

.onboarding-dots span.is-active {
    background: var(--color-accent);
}

.onboarding-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem 1.2rem;
}

.onboarding .onboarding-button,
.onboarding-tour .onboarding-button {
    margin: 0;
    min-height: 40px;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--color-border-strong);
    background: transparent;
    color: var(--color-text);
}

.onboarding .onboarding-button-next,
.onboarding .onboarding-button-done,
.onboarding-tour .onboarding-button-next {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-accent-text);
}

/* Knöpfe je nach Position: Zurück nicht auf der ersten Karte, am Ende
   Rundgang + Los geht's statt Weiter. */
.onboarding.is-first .onboarding-button-back,
.onboarding:not(.is-last) .onboarding-button-tour,
.onboarding:not(.is-last) .onboarding-button-done,
.onboarding.is-last .onboarding-button-next,
.onboarding.is-single .onboarding-button-tour {
    display: none;
}

.onboarding-nav .onboarding-button-back {
    margin-right: auto;
}

/* Rundgang: abgedunkelte Seite mit "Loch" um das hervorgehobene Element */
.onboarding-tour {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.onboarding-tour[hidden] {
    display: none;
}

.onboarding-tour-spot {
    position: fixed;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    outline: 2px solid var(--color-accent);
    transition: all 0.25s ease;
    pointer-events: none;
}

.onboarding-tour-bubble {
    position: fixed;
    box-sizing: border-box;
    padding: 1rem 1.1rem 0.9rem;
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.onboarding-tour-text {
    margin: 0 0 0.8rem;
    line-height: 1.45;
}

.onboarding-tour-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-tour-count {
    margin-right: auto;
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* Rundgang, letzte Station "Dein nächster Schritt": ohne hervorgehobenes
   Element (ganze Seite abgedunkelt), Sprechblase mittig mit Knöpfen */
.onboarding-tour.is-final .onboarding-tour-spot {
    outline: none;
}

/* Titel der letzten Rundgang-Station („Dein nächster Schritt“) in Edo */
.onboarding-tour-title {
    margin: 0 0 0.5rem;
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.onboarding-tour-title[hidden],
.onboarding-tour-cta[hidden] {
    display: none;
}

.onboarding-tour-cta {
    margin: 0 0 0.9rem;
}

/* Begrüßung/Rundgang: Knöpfe des nächsten Schritts füllen gemeinsam die Breite */
.onboarding-actions .button {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.onboarding-actions .button-secondary {
    border-color: var(--color-border-strong);
}

/* Begrüßung, letzte Karte: drei Knöpfe passen auf schmalen Handys nicht in
   eine Reihe - "Zeig mir, wo was ist" volle Breite oben, darunter "Zurück"
   und "Los geht's" gleich breit nebeneinander. */
.onboarding.is-last:not(.is-single) .onboarding-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.onboarding.is-last:not(.is-single) .onboarding-button-tour {
    grid-column: 1 / -1;
    grid-row: 1;
}

.onboarding.is-last:not(.is-single) .onboarding-button-back,
.onboarding.is-last:not(.is-single) .onboarding-button-done {
    grid-row: 2;
    margin-right: 0;
}

/* Begrüßung mit Rundgang: nur die Willkommenskarte, der Knopf startet direkt
   den Rundgang. Ohne Rundgang (Desktop): Karten zum Wischen, am Ende nur
   "Los geht's". */
.onboarding.is-tour-start .onboarding-button-done,
.onboarding.is-no-tour .onboarding-button-tour,
.onboarding:not(.is-tour-start) .onboarding-tour-hint {
    display: none;
}

.onboarding.is-tour-start .onboarding-button-tour {
    display: inline-block;
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.onboarding.is-no-tour.is-last:not(.is-single) .onboarding-nav {
    display: flex;
}

/* "Neue Version verfügbar" nie über Begrüßung/Rundgang - erscheint nach dem Schließen */
body.onboarding-open .update-banner {
    display: none;
}

/* ---------- Ticket-Analyse: Jahresvergleich (Charts::multiLine) ---------- */

.chart-multiline {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid-line {
    stroke: var(--color-border);
    stroke-width: 1;
}

/* SVG skaliert mit (viewBox 640 breit) - Schrift größer, damit sie am Handy lesbar bleibt */
.chart-multiline .chart-line-label {
    font-size: 15px;
}

.chart-multiline-dot {
    stroke: var(--color-surface);
    stroke-width: 2;
}

.chart-multiline-endlabel {
    font-size: 16px;
    font-weight: 600;
    fill: var(--color-text);
}

.chart-multiline-legend {
    /* gleich breite Spalten statt Fließtext - Einträge stehen sauber untereinander */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.4rem 1rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    font-size: 0.875rem;
}

.chart-multiline-legend li {
    display: flex;
    align-items: center;
}

.chart-table-toggle {
    margin-top: 0.5rem;
}

.chart-table-toggle summary {
    cursor: pointer;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.comparison-event-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comparison-event-select label {
    margin: 0;
    font-weight: 600;
}

.comparison-event-select select {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.comparison-delta {
    white-space: nowrap;
    font-weight: 600;
    margin-left: 0.25rem;
}

.comparison-delta.trend-up { color: var(--color-success-text); }
.comparison-delta.trend-down { color: var(--color-error-text); }
.comparison-delta.trend-flat { color: var(--color-muted); }

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}

/* Je Jahr ein eigener Kasten - Werte stehen direkt bei ihrer Zeile,
   nicht frei zwischen den Spalten (sonst unklar, was zusammengehört). */
.comparison-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.comparison-columns > div {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.comparison-columns h3 {
    margin: 0 0 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-accent);
}

.comparison-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    counter-reset: rank;
}

.comparison-ranking li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--color-border);
    counter-increment: rank;
}

.comparison-ranking li:last-child {
    border-bottom: 0;
}

.comparison-ranking li::before {
    content: counter(rank) ".";
    min-width: 1.4em;
    color: var(--color-muted);
}

.comparison-ranking li span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.comparison-ranking li strong {
    font-weight: 600;
    white-space: nowrap;
}

.ticket-history-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

/* Absende-Knopf bringt aus .form eigenen Abstand nach oben mit (.form button) -
   in der Knopfzeile stehen alle auf einer Linie und gleich hoch */
.ticket-history-actions > *,
.form .ticket-history-actions > button {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 2.75rem;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 1px solid transparent;
    line-height: 1.2;
}

/* Sekundärer Knopf als Fläche mit deutlichem Rahmen - nur mit dem dünnen
   Standardrahmen wirkte er neben dem gefüllten gelben Knopf kleiner */
.ticket-history-actions > .button-secondary {
    background: var(--color-surface);
    border-color: var(--color-border-strong);
}

/* Jahresvergleich: Jahr über zwei Spalten, Trennlinie zwischen den Jahren */
.comparison-table th.comparison-year-head {
    text-align: center;
}

.comparison-table .comparison-year-start {
    border-left: 1px solid var(--color-border);
}

/* Zweite Kopfzeile: erste Zelle ist "bis 31.12." (nicht die Beschriftungsspalte) - wie die Werte rechtsbündig */
.comparison-table thead tr + tr th {
    text-align: right;
}

.comparison-table th.comparison-label-head {
    vertical-align: bottom;
}

/* "Wann verkauft sich was?": je Jahr zwei Spalten als erkennbare Gruppe -
   Werte zentriert unter ihrem Jahr, Akzentlinie unter der Jahreszahl */
.comparison-timing {
    margin-top: 0.75rem;
}

.comparison-timing th:not(:first-child),
.comparison-timing td:not(:first-child),
.comparison-timing thead tr + tr th {
    text-align: center;
}

.comparison-timing th.comparison-year-head {
    border-bottom: 2px solid var(--color-accent);
    font-size: 1.05rem;
}

.comparison-timing thead tr + tr th {
    color: var(--color-muted);
    font-weight: 500;
}

.comparison-timing thead small {
    font-size: 0.85rem;
}

.comparison-timing th.comparison-label-head {
    text-align: left;
}

/* Kennzahlen je Jahr: eine Tabelle, feste Spaltenbreiten; Endstand groß,
   Stand zum gleichen Datum klein darunter; Bezugsjahr hervorgehoben */
.comparison-kpis {
    table-layout: fixed;
    min-width: 520px;
}

.comparison-kpis th:first-child,
.comparison-kpis td:first-child {
    width: 34%;
}

.comparison-kpis td {
    vertical-align: top;
}

.comparison-kpis td small,
.comparison-kpis th small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-muted);
    white-space: nowrap;
}

.comparison-kpis .comparison-current {
    background: var(--color-highlight-bg);
    font-weight: 600;
}

.comparison-kpis th.comparison-current {
    border-bottom: 2px solid var(--color-accent);
}

/* Tickets je Tag (Charts::dailyBars) - wie im Ticketshop-Dashboard */
.chart-daily {
    width: 100%;
    height: auto;
    display: block;
}

.chart-daily .chart-line-label {
    font-size: 18px;
}

.chart-daily-bar {
    fill: var(--chart-1);
}

.chart-daily-bar:hover {
    fill: var(--color-accent);
}

.daily-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
}

.daily-summary-total {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-heading);
}

.daily-summary-previous {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Jahresvergleich: Sprungleiste zu den Abschnitten (scrollt am Handy seitlich) */
.comparison-jump {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin: 0 0 1rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.comparison-jump::-webkit-scrollbar {
    display: none;
}

.comparison-jump a {
    flex: 0 0 auto;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
}

.comparison-jump a:hover,
.comparison-jump a:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Sprungziele nicht unter dem fixierten Header verstecken */
.comparison-anchor,
#prognose,
#verteilung,
#verlauf,
#kennzahlen,
#zeitpunkt,
#noshow,
#erwartet,
#vorjahre,
#detail-tage,
#detail-stunden {
    scroll-margin-top: 5rem;
}

span.comparison-anchor {
    display: block;
}

/* Auf breiten Bildschirmen wird das SVG groß skaliert - Schrift dort kleiner halten */
@media (min-width: 700px) {
    .chart-multiline .chart-line-label {
        font-size: 11px;
    }

    .chart-multiline-endlabel {
        font-size: 12px;
    }

    .chart-daily .chart-line-label {
        font-size: 9px;
    }
}

/* Vergleichstabellen am Handy: Beschriftungsspalte bleibt beim seitlichen
   Wischen stehen - sonst sieht man nur Zahlen ohne Bezug */
.comparison-table th:first-child,
.comparison-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--color-surface);
}

@media (max-width: 699px) {
    .comparison-kpis {
        min-width: 0;
        width: max-content;
    }

    .comparison-kpis th:first-child,
    .comparison-kpis td:first-child {
        width: 8.5rem;
        min-width: 8.5rem;
        max-width: 8.5rem;
        white-space: normal;
        box-shadow: 1px 0 0 var(--color-border);
    }

    .comparison-kpis th:not(:first-child),
    .comparison-kpis td:not(:first-child) {
        min-width: 5.5rem;
    }

    .comparison-timing th:first-child,
    .comparison-timing td:first-child {
        box-shadow: 1px 0 0 var(--color-border);
    }
}

/* Jahresvergleich: einheitliche Abstände in den Karten - Hinweistexte
   (.form-hint ist fürs Formular gedacht: ohne Abstand nach unten) */
.comparison-page .chart-section > .form-hint {
    margin: -0.25rem 0 1rem;
}

.comparison-page .chart-section > .form-hint:last-child {
    margin: 1rem 0 0;
}

.comparison-page .chart-section > h2 + .form-hint {
    margin-top: -0.25rem;
}

.comparison-page .chart-daily,
.comparison-page .chart-multiline {
    margin-bottom: 0.25rem;
}

.comparison-page .chart-section > .table-scroll-x:last-child,
.comparison-page .chart-section > .comparison-columns:last-child {
    margin-bottom: 0;
}

.comparison-page .daily-summary {
    margin-bottom: 1rem;
}

/* "Wann verkauft sich was?" am Handy kompakt: "bis" immer über dem Datum,
   schmale Spalten, Beschriftungsspalte schmaler */
@media (max-width: 699px) {
    .comparison-timing thead small span {
        display: block;
    }

    .comparison-timing th,
    .comparison-timing td {
        padding: 0.4rem 0.35rem;
        white-space: nowrap;
    }

    .comparison-timing th:first-child,
    .comparison-timing td:first-child {
        white-space: normal;
        min-width: 6.5rem;
        max-width: 6.5rem;
        padding-left: 0;
    }

    .comparison-timing th:not(:first-child),
    .comparison-timing td:not(:first-child) {
        min-width: 3.25rem;
    }
}

@media (max-width: 699px) {
    .comparison-timing {
        width: max-content;
    }

    /* Verkaufsspitzen (nur Datum + Zahl) am Handy zweispaltig */
    .comparison-columns-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .comparison-columns-compact > div {
        padding: 0.6rem 0.6rem;
    }

    .comparison-columns-compact .comparison-ranking {
        font-size: 0.8rem;
    }

    .comparison-columns-compact .comparison-ranking li::before {
        min-width: 1.1em;
    }
}

/* Hinweis direkt unter einer Abschnitts-Überschrift (z. B. über den Kacheln) */
.comparison-page > .form-hint {
    margin: -0.25rem 0 1rem;
}

/* Zweite Kopfzeile: ihre erste Zelle ist "bis 31.12." des ersten Jahres,
   nicht die Beschriftungsspalte - deren Regeln (fixiert, Breite) zurücknehmen */
.comparison-table thead tr + tr th:first-child {
    position: static;
    background: none;
    box-shadow: none;
}

@media (max-width: 699px) {
    .comparison-timing thead tr + tr th:first-child {
        min-width: 3.25rem;
        max-width: none;
        padding: 0.4rem 0.35rem;
        white-space: nowrap;
    }
}

/* ---------- Festival-Editionen (Admin) ---------- */
.edition-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.edition-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edition-card-active {
    border-top: 4px solid var(--color-accent);
}

.edition-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edition-card-head h3 {
    margin: 0;
}

.edition-edit {
    margin-left: auto;
    display: inline-flex;
    color: var(--color-muted);
}

.edition-edit svg {
    width: 20px;
    height: 20px;
}

.edition-edit:hover {
    color: var(--color-accent);
}

.edition-name {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.edition-facts {
    margin: 0;
    display: grid;
    gap: 0.2rem;
}

.edition-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    padding: 0.2rem 0;
}

.edition-facts dt {
    color: var(--color-muted);
}

.edition-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.edition-missing {
    color: var(--color-error-text);
}

/* Edition bearbeiten: Zwischenüberschriften mit Abstand zum Abschnitt davor */
.edition-form h3 {
    margin: 1.25rem 0 0;
}

.edition-carry-over {
    margin-top: 1rem;
}

.form .edition-carry-over button {
    margin-top: 0;
}

.edition-carry-over .form-hint {
    margin-top: 0.4rem;
}

.edition-card form {
    margin-top: auto;
}

/* ---------- Jahresvergleich: Prognose, Anlässe, Heatmap ---------- */
.forecast-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.forecast-values > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.forecast-label {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.forecast-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-heading);
}

.forecast-sub {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.forecast-warning {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
}

.forecast-alert {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border-left: 5px solid var(--color-error-text);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin: 0.75rem 0 1rem;
}

.forecast-alert summary {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

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

/* Auf-/Zu-Pfeil rechts, dreht sich beim Aufklappen */
.forecast-alert summary::after {
    content: "▸";
    margin-left: auto;
    transition: transform 0.15s;
}

.forecast-alert[open] summary::after {
    transform: rotate(90deg);
}

.forecast-alert-body {
    padding: 0.5rem 0 0.2rem 2.35rem;
}

.forecast-alert-body p {
    margin: 0;
}

.forecast-alert-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.forecast-alert-icon {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
}

.forecast-uncertain > div {
    border: 2px dashed var(--color-error-text);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
}

.forecast-uncertain-badge {
    align-self: flex-start;
    background: var(--color-error-text);
    color: var(--color-error-bg);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    margin-bottom: 0.2rem;
}

/* Überschrift bzw. Zeile mit ⓘ: Antippen klappt die Erklärung direkt
   darunter auf (normaler Textfluss, kein schwebender Tooltip) */
.info-section summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    cursor: pointer;
    list-style: none;
}

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

.info-section summary h2,
.info-section summary h3 {
    margin-bottom: 0;
}

/* Überschrift: Text bricht um, ⓘ bleibt daneben (nicht in eigener Zeile) */
.info-section summary.forecast-head {
    flex-wrap: nowrap;
    margin-bottom: 0.5rem;
}

.forecast-head h2,
.forecast-head h3 {
    min-width: 0;
}

.info-icon {
    flex-shrink: 0;
}

.forecast-trend {
    margin: 0.75rem 0;
}

.info-icon {
    display: inline-flex;
    padding: 0.2rem;
    color: var(--color-accent);
}

.info-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.info-section-text {
    margin: 0.4rem 0 1rem;
    padding: 0.6rem 0.9rem;
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.45;
}

.info-section-text p {
    margin: 0 0 0.6rem;
}

.info-section-text p:last-child {
    margin-bottom: 0;
}

/* Legende der Verlaufs-Badges: Badge links, Regel rechts, aktueller Wert umrandet */
.trend-legend {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 0.75rem;
    align-items: start;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.trend-legend li {
    display: contents;
}

.trend-legend .badge-pill {
    justify-self: start;
    font-size: 0.8rem;
}

.trend-legend li.is-current .badge-pill {
    outline: 2px solid var(--color-text);
    outline-offset: 1px;
}

.trend-legend li.is-current > span:last-child {
    font-weight: 700;
}

.trend-legend small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
}

.trend-legend-note {
    font-size: 0.85rem;
    color: var(--color-muted);
}

@media (max-width: 479.98px) {
    .trend-legend {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .trend-legend li > span:last-child {
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 779.98px) {
    .info-icon svg {
        width: 1.6rem;
        height: 1.6rem;
    }
}

.forecast-table td,
.forecast-table th {
    white-space: nowrap;
    vertical-align: top;
}

/* Zusatzwert (z. B. "rechn. 3.981") klein in eigener Zeile */
.forecast-recalc {
    margin: 0 0 1rem;
}

.forecast-table td small,
.forecast-table th small {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
}

/* Kleinere Zusatzinfos (Legende, nicht verglichene Jahre) - zurückhaltender als die Abschnitte */
.forecast-more {
    margin: 0.5rem 0;
}

.forecast-more summary {
    cursor: pointer;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.forecast-more .form-hint {
    margin: 0.35rem 0 0;
}

.forecast-more ul {
    padding-left: 1.2rem;
}

.forecast-legend strong {
    font-weight: 600;
}

/* Handy: Auf-/Zuklapp-Pfeile größer (leichter zu treffen und zu sehen) */
@media (max-width: 779.98px) {
    summary::marker {
        font-size: 1.4em;
    }

    summary::-webkit-details-marker {
        font-size: 1.4em;
    }

    .forecast-alert summary::after {
        font-size: 1.6rem;
        line-height: 1;
    }

    .site-nav-burger .nav-group summary::after {
        font-size: 1.4em;
        line-height: 1;
    }
}

.forecast-trend .badge-pill {
    font-size: 0.85rem;
}

/* ---------- Netto-Gewinn aus Tickets, Ticket-Gebühren ---------- */
.profit-period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin: 1rem 0 0;
}

/* Zeile unter der Zeitraum-Auswahl (Zeitraum, Vergleich, Berechnung) - mit Luft zu Auswahl und Kennzahlen */
.forecast-card .profit-meta {
    margin: 0.75rem 0 1.5rem;
}

.forecast-card .profit-meta + .forecast-values {
    row-gap: 1.5rem;
}

.profit-period label {
    margin: 0;
    font-weight: 600;
}

.profit-period select,
.profit-period input {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.profit-table td:not(:first-child),
.profit-table th:not(:first-child) {
    text-align: right;
}

.profit-total td {
    font-weight: 700;
    border-top: 2px solid var(--color-border-strong);
}

.fee-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fee-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.fee-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.fee-card-current {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-heading);
}

.fee-card-current small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
}

.fee-row-current td {
    font-weight: 700;
}

.fee-form {
    margin-top: 0.5rem;
}

.forecast-cohort-row td {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.forecast-shares {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    list-style: none;
    padding: 0;
}

.forecast-curves {
    margin: 1rem 0;
}

.forecast-curves summary {
    cursor: pointer;
    font-weight: 600;
}

.comparison-ranking li {
    flex-wrap: wrap;
}

.comparison-ranking li small.occasion {
    flex-basis: 100%;
    margin-left: 1.9em;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.comparison-ranking li small.occasion b {
    font-weight: 600;
    color: var(--color-text);
}

.occasion-form-toggle {
    margin-top: 1rem;
}

.occasion-form-toggle summary {
    cursor: pointer;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.occasion-form {
    margin-top: 0.75rem;
    max-width: 420px;
}

.heatmap-table {
    border-collapse: separate;
    border-spacing: 2px;
    width: 100%;
    min-width: 320px;
    font-size: 0.75rem;
}

.heatmap-table th {
    color: var(--color-muted);
    font-weight: 500;
    padding: 0.2rem;
    text-align: center;
}

.heatmap-table tbody th {
    text-align: left;
    padding-right: 0.4rem;
}

.heatmap-table td {
    text-align: center;
    padding: 0.45rem 0.1rem;
    border-radius: 4px;
    color: var(--color-muted);
    background: color-mix(in srgb, var(--chart-1) calc(var(--heat, 0) * 100%), var(--color-bg));
}

.heatmap-table td.heat-strong {
    color: #fff;
    font-weight: 600;
}

/* Senkrechte Balken (Charts::columns) - Tageskasse je Tag/Uhrzeit */
.chart-columns {
    width: 100%;
    height: auto;
    display: block;
}

.chart-column-bar {
    fill: var(--chart-1);
}

.chart-column-bar:hover {
    fill: var(--color-accent);
}

.chart-column-value {
    font-size: 13px;
    font-weight: 600;
    fill: var(--color-text);
}

.chart-columns .chart-line-label {
    font-size: 14px;
}

@media (min-width: 700px) {
    .chart-column-value {
        font-size: 11px;
    }

    .chart-columns .chart-line-label {
        font-size: 11px;
    }
}

/* No-Show: Mehrjahres-Durchschnitt bewusst zurückhaltend (nur Orientierung) */
.stat-card-muted {
    border-style: dashed;
}

.stat-card-muted .stat-card-highlight {
    color: var(--color-muted);
}

/* Check-in-Verlauf: Filter nebeneinander, Säulen als Drill-down-Links */
.checkin-filters {
    gap: 0.5rem 0.75rem;
}

.chart-stack-hit {
    fill: transparent;
}

.chart-stack-link:hover .chart-stack-hit,
.chart-stack-link:focus-visible .chart-stack-hit {
    fill: color-mix(in srgb, var(--color-accent) 6%, transparent);
}

/* gewählter Tag: dezent hinterlegt + Beschriftung in Akzentfarbe (kein Block, der wie Daten wirkt) */
.chart-stack-link.is-active .chart-stack-hit {
    fill: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.chart-columns .chart-label-active {
    fill: var(--color-accent);
    font-weight: 700;
}

#tage,
#stunden {
    scroll-margin-top: 5rem;
}

/* Klickbare Legende (z. B. Check-in): nur diesen Tickettyp zeigen */
.chart-multiline-legend a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.chart-multiline-legend a:hover,
.chart-multiline-legend a:focus-visible {
    border-color: var(--color-border);
}

.chart-multiline-legend li.is-active a {
    border-color: var(--color-accent);
    font-weight: 600;
}

.checkin-only {
    margin: 0 0 0.75rem;
    font-weight: 600;
}

/* Check-in: Liste aller Tickettypen, nach Kategorie gegliedert */
.checkin-types .checkin-types-category td {
    font-weight: 700;
    padding-top: 0.9rem;
    background: var(--color-surface);
}

.checkin-types tr.is-active td {
    background: var(--color-highlight-bg);
}

.checkin-types tr.is-active td:first-child a {
    font-weight: 700;
}

.chart-column-share {
    font-size: 12px;
    fill: var(--color-muted);
}

@media (min-width: 700px) {
    .chart-column-share {
        font-size: 10px;
    }
}

/* Check-in: Kernaussagen über dem Stunden-Diagramm */
.checkin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.checkin-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.checkin-summary .forecast-value {
    font-size: 1.35rem;
}

.checkin-filters select {
    max-width: 100%;
    min-width: 0;
}

/* Handy: Diagramm-Beschriftungen größer (SVG wird stark verkleinert);
   Stunden-Diagramm seitlich wischbar statt winzig */
@media (max-width: 699px) {
    .chart-columns .chart-line-label {
        font-size: 18px;
    }

    .chart-column-value {
        font-size: 20px;
    }

    .chart-column-share {
        font-size: 16px;
    }

    .checkin-hours-scroll .chart-columns-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .checkin-hours-scroll .chart-columns {
        min-width: 620px;
    }

    .checkin-hours-scroll .chart-columns .chart-line-label,
    .checkin-hours-scroll .chart-column-value {
        font-size: 13px;
    }

    .checkin-hours-scroll .chart-column-share {
        font-size: 11px;
    }
}

/* Admin-Dashboard: Kennzahl-Kacheln führen zur passenden Statistikseite */
a.stat-card-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.stat-card-link:hover,
a.stat-card-link:focus-visible {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

/* Ticket-Analyse: Tabs in Ablauf-Reihenfolge, Jahresvergleich rechts abgesetzt
   (zeigt alle Jahre); am Handy seitlich wischbar statt umbrechend */
.analyse-tabs {
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.analyse-tabs::-webkit-scrollbar {
    display: none;
}

.analyse-tabs a {
    flex: 0 0 auto;
}

.analyse-tabs .analyse-tab-vergleich {
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.admin-subnav a.admin-subnav-active {
    color: var(--color-accent);
}

/* Gestapelte Säulen mit wenigen Säulen (z. B. Check-ins je Tag): schmales
   Diagramm, am Desktop nicht übermäßig breit, am Handy gut lesbar */
.chart-columns.chart-columns-compact {
    max-width: 560px;
    margin: 0 auto;
}

.chart-columns-compact .chart-line-label {
    font-size: 19px;
}

.chart-columns-compact .chart-column-value {
    font-size: 21px;
}

.chart-columns-compact .chart-column-share {
    font-size: 16px;
}

@media (min-width: 700px) {
    .chart-columns-compact .chart-line-label {
        font-size: 12px;
    }

    .chart-columns-compact .chart-column-value {
        font-size: 13px;
    }

    .chart-columns-compact .chart-column-share {
        font-size: 11px;
    }
}

/* Legende am Handy: immer zwei gleich breite Spalten */
@media (max-width: 699px) {
    .chart-multiline-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 0.75rem;
    }
}

/* ---------- Festival-Wetter ---------- */
.flash-info { background: var(--color-highlight-bg); color: var(--color-text); }

.weather-sim-bar { background: #1d4ed8; }

.weather-tile {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.85rem 1rem 0.6rem;
}
.weather-tile h3 { margin: 0; }
.weather-tile { position: relative; }
.weather-tile-link { color: inherit; text-decoration: none; }
.weather-tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.weather-tile-link:focus-visible { outline: none; }
.weather-tile:has(.weather-tile-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.weather-tile-badges { display: inline-flex; align-items: center; gap: 0.35rem; }
.weather-tile .weather-info-button,
.weather-tile .weather-info-button:hover {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin: 0;
    padding: 0.25rem;
    min-height: 0;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    box-shadow: none;
}
.weather-info-button svg { width: 1.1rem; height: 1.1rem; }
.weather-info-pop {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-muted);
    font-size: 0.75rem;
}
.weather-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.weather-phase {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-border);
    color: var(--color-text);
    white-space: nowrap;
}
.weather-phase-reliable { background: var(--color-highlight-bg); }
.weather-phase-live { background: var(--color-accent); color: var(--color-accent-text); }
.weather-icon-md svg { width: 2rem; height: 2rem; }
.weather-icon-sm svg { width: 1.4rem; height: 1.4rem; }
.weather-icon-xl svg { width: 4rem; height: 4rem; }
.weather-tile-days {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
    gap: 0.4rem;
}
.weather-tile-days li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.2;
}
.weather-tile-day-name { font-size: 0.8rem; color: var(--color-muted); font-weight: 600; }
.weather-tile-day-icon svg { display: block; width: 1.6rem; height: 1.6rem; }
.weather-tile-day-temp { font-weight: 700; }
.weather-tile-day-temp small { color: var(--color-muted); font-weight: 400; font-size: 0.85em; }
.weather-day-name { font-weight: 600; }
.weather-day-temp { font-weight: 600; }
.weather-day-temp small { color: var(--color-muted); font-weight: 400; }
.weather-day-rain,
.weather-hour-rain,
.weather-hour-wind,
.weather-day-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}
.weather-day-rain svg,
.weather-hour-rain svg,
.weather-hour-wind svg,
.weather-day-meta svg,
.weather-now-meta svg { width: 0.85rem; height: 0.85rem; }
.weather-tile-unavailable { margin: 0; color: var(--color-muted); font-size: 0.85rem; }
.weather-tile-foot {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.7rem;
    text-align: center;
}
.weather-tile-alert {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}
.weather-tile-alert svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* Warnstufen nach DWD-Farben (immer mit Text + Symbol, nie nur Farbe) */
.weather-level-1 .weather-tile-alert, .weather-warning.weather-level-1 { background: #fff4c2; color: #5c4a00; }
.weather-level-2 .weather-tile-alert, .weather-warning.weather-level-2 { background: #ffe0c2; color: #7a3500; }
.weather-level-3 .weather-tile-alert, .weather-warning.weather-level-3 { background: #fbd5d2; color: #8c1d14; }
.weather-level-4 .weather-tile-alert, .weather-warning.weather-level-4 { background: #ead7f5; color: #5b1f80; }
.weather-tile-warning.weather-level-1 { border-top-color: #e6c400; }
.weather-tile-warning.weather-level-2 { border-top-color: #f08a00; }
.weather-tile-warning.weather-level-3 { border-top-color: #d7261b; }
.weather-tile-warning.weather-level-4 { border-top-color: #8e3bbf; }

.weather-detail { display: flex; flex-direction: column; gap: 1rem; }
.weather-detail h2 { margin: 0.5rem 0 0; }
.weather-detail-intro { margin: 0; }
.weather-detail-intro .weather-phase { margin-right: 0.35rem; }
.weather-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.weather-detail .weather-card { margin-bottom: 0; }
.weather-card h2 { margin-top: 0; }
.weather-warning {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 6px;
}
.weather-warning p { margin: 0.35rem 0; }
.weather-warning small { opacity: 0.8; }
.weather-warning-icon svg { width: 1.8rem; height: 1.8rem; }
.weather-warning-time { display: block; font-size: 0.9rem; }
.weather-now { display: flex; align-items: center; gap: 1rem; }
.weather-now-temp { font-size: 2.75rem; font-weight: 700; line-height: 1; }
.weather-now-text { font-weight: 600; }
.weather-now-meta { display: flex; align-items: center; gap: 0.25rem; color: var(--color-muted); font-size: 0.9rem; }
.weather-hours {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x proximity;
}
.weather-hour {
    flex: 0 0 4.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.3rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    scroll-snap-align: start;
}
.weather-hour-time { font-size: 0.85rem; color: var(--color-muted); }
.weather-hour-temp { font-weight: 700; }
.weather-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.weather-day {
    display: grid;
    grid-template-columns: 6.5rem 2.25rem 1fr auto;
    align-items: center;
    gap: 0.25rem 0.75rem;
}
.weather-day-label { font-weight: 600; }
.weather-day .weather-day-temp { font-weight: 700; font-size: 1.1rem; text-align: right; }
.weather-day-meta { grid-column: 2 / -1; display: flex; gap: 1rem; }
.weather-unavailable { display: flex; align-items: center; gap: 0.75rem; }
.weather-unavailable svg { width: 2rem; height: 2rem; color: var(--color-muted); }
.weather-unavailable p { margin: 0; }
.weather-source { color: var(--color-muted); font-size: 0.85rem; margin: 0; }
.weather-source a { color: inherit; }

.weather-admin-status { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.weather-admin-status dt { font-weight: 600; }
.weather-admin-status dd { margin: 0; }
.weather-admin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin-bottom: 0.75rem; }
.weather-admin-form label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.weather-admin-form label[hidden] { display: none; }
.weather-quick-date { margin-right: 0.75rem; }
.weather-admin-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.weather-admin-preview h3 { margin: 0 0 0.5rem; }
.weather-admin-preview h3 small { font-weight: 400; color: var(--color-muted); }
.weather-admin-preview details { margin-top: 0.75rem; }
.weather-admin-preview summary { cursor: pointer; font-weight: 600; margin-bottom: 0.75rem; }

@media (max-width: 600px) {
    .weather-day { grid-template-columns: 5.5rem 2rem 1fr auto; }
    .weather-admin-status { grid-template-columns: 1fr; }
    .weather-admin-status dd { margin-bottom: 0.4rem; }
}

/* ---------- Checklisten & Camping-Gruppe (Mitglieder, Einladung) ---------- */
.checklist-section { margin-bottom: 2rem; }
.checklist-section h2 { margin: 0; }
.checklist-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.checklist-progress { color: var(--color-muted); font-size: 0.85rem; white-space: nowrap; }
.checklist-meta { margin: 0 0 0.75rem; color: var(--color-muted); font-size: 0.85rem; }
.checklist-setup {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
}
.checklist-setup p { margin-top: 0; }
.checklist-choice { border: 0; margin: 0 0 1rem; padding: 0; }
.checklist-choice legend { font-weight: 600; margin-bottom: 0.35rem; }
.checklist-choice label { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-weight: 400; }

.checklist {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    border-top: 1px solid var(--color-border);
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--color-border);
}
.checklist-toggle,
.checklist-delete { margin: 0; flex-shrink: 0; }
.checklist .checklist-check,
.checklist .checklist-check:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 2px solid var(--color-border-strong);
    border-radius: 6px;
    background: transparent;
    color: transparent;
    box-shadow: none;
    cursor: pointer;
}
.checklist .checklist-check svg { width: 1.1rem; height: 1.1rem; stroke-width: 3; }
.checklist .is-checked .checklist-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
}
.checklist-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.checklist-label { flex: 1; min-width: 0; padding-top: 0.15rem; overflow-wrap: anywhere; }
.is-checked .checklist-label { color: var(--color-muted); text-decoration: line-through; }
.checklist .checklist-icon-button,
.checklist .checklist-icon-button:hover,
.checklist-admin-list .checklist-icon-button,
.checklist-admin-list .checklist-icon-button:hover {
    display: inline-flex;
    margin: 0;
    padding: 0.25rem;
    min-height: 0;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    box-shadow: none;
    cursor: pointer;
}
.checklist-icon-button svg { width: 1.1rem; height: 1.1rem; }
.checklist-add { display: flex; gap: 0.5rem; margin: 0 0 0.5rem; }
.checklist-add input[type="text"] { flex: 1; min-width: 0; margin: 0; }
.checklist-add button { margin: 0; min-width: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.checklist-add button svg { width: 1.2rem; height: 1.2rem; }
.checklist-reset { font-size: 0.85rem; }

.checklist-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.85rem; color: var(--color-muted); }
.checklist-assign > svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.checklist-assign select { width: auto; max-width: 100%; margin: 0; padding: 0.2rem 0.4rem; font-size: 0.85rem; min-height: 0; }
.checklist .checklist-take,
.checklist .checklist-take:hover {
    margin: 0;
    padding: 0.2rem 0.6rem;
    min-height: 0;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    box-shadow: none;
}
.checklist-gap {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--color-error-text);
}
.checklist-gap svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }

.checklist-admin-filter { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.checklist-admin-filter select { width: auto; margin: 0; }
.checklist-admin-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.checklist-admin-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--color-border); }
.checklist-admin-list form { margin: 0; }
.checklist-admin-row { flex: 1; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.checklist-admin-row input { margin: 0; }
.checklist-admin-row input[type="text"] { flex: 1; min-width: 0; }
.checklist-admin-row .checklist-admin-sort { width: 4.5rem; flex-shrink: 0; }
.checklist-admin-row button { margin: 0; }

.group-members { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.group-members li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; }
.group-members svg { width: 1.1rem; height: 1.1rem; color: var(--color-muted); }
.checklist-reset { color: var(--color-muted); }
.group-join-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}
.group-join-card h2 { margin-top: 0; }
.group-invite-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.05em; }
.group-join-form input[name="code"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 600px) {
    .checklist-admin-row { flex-wrap: wrap; }
}

/* Camping-Gruppe: Übersicht ohne Textlinks */
.group-subtitle { margin: -0.5rem 0 1rem; color: var(--color-muted); }
.group-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}
.group-facts > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.75rem 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-align: center;
}
.group-fact-value { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.group-fact-label { color: var(--color-muted); font-size: 0.8rem; }
.group-action-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    margin: 0 0 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    color: var(--color-text);
    text-decoration: none;
}
.group-action-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.group-action-icon svg { display: block; width: 1.6rem; height: 1.6rem; }
.group-action-text { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.group-action-text span { color: var(--color-muted); font-size: 0.85rem; }
.group-action-chevron svg { display: block; width: 1.2rem; height: 1.2rem; color: var(--color-muted); }
.group-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 0 0 1rem;
}
.group-card h2 { margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.group-card-count { color: var(--color-muted); font-size: 0.9em; }
.group-share { display: block; margin-top: 0.75rem; }
.group-share .group-share-button,
.group-share .group-share-button:hover {
    width: 100%;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-accent-text);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}
.group-share .group-share-button svg { width: 1.1rem; height: 1.1rem; }
.group-invite-hint { margin: 0.6rem 0 0; color: var(--color-muted); font-size: 0.8rem; }
.group-manage {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin: 0 0 1rem;
}
.group-manage summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.group-manage summary::-webkit-details-marker { display: none; }
.group-manage summary svg { width: 1.1rem; height: 1.1rem; color: var(--color-muted); transition: transform 0.15s ease; }
.group-manage[open] summary svg { transform: rotate(180deg); }
.group-manage .group-edit-form { padding: 0 1rem; margin: 0; }
.group-manage .group-edit-form button { margin-top: 1rem; }
.group-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.group-manage-actions form { margin: 0; flex: 1 1 12rem; }
.group-manage-actions button { width: 100%; margin: 0; }

/* ---------- Online-Zahlung (Brötchen, Admin › Zahlungen) ---------- */
.order-pending-card {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    background: var(--color-highlight-bg);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
}
.order-pending-card h2 { margin: 0 0 0.35rem; }
.order-pending-card p { margin: 0 0 0.75rem; }
.order-pending-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.order-pending-actions form { margin: 0; }
.order-pending-actions button { margin: 0; }
.order-total-display small { color: var(--color-muted); font-weight: 400; }
.badge-pill.order-status-bezahlt { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-pill.order-status-storniert,
.badge-pill.order-status-doppelt,
.badge-pill.order-status-fehlgeschlagen { background: var(--color-error-bg); color: var(--color-error-text); }
.badge-pill.order-status-vor_ort,
.badge-pill.order-status-offen,
.badge-pill.order-status-abgebrochen { background: var(--color-border); color: var(--color-text); }
.receipt-payment { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.receipt-more-orders { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.broetchen-order-badges { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.scan-payment {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}
.scan-payment-paid { background: var(--color-success-bg); color: var(--color-success-text); }
.scan-payment-collect { background: var(--color-highlight-bg); color: var(--color-text); border: 2px solid var(--color-accent); }
.scan-payment-blocked { background: var(--color-error-bg); color: var(--color-error-text); }
.payment-status { max-width: 32rem; margin: 2rem auto; text-align: center; }
.payment-status .equalizer { margin: 0 auto 1rem; }
.payment-sim-amount { font-size: 1.1rem; }
.payment-sim-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-sim-actions button { margin: 0; }
.payment-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.payment-admin-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 1rem 1.25rem; }
.payment-admin-card h2 { margin-top: 0; }
.payment-counter + .payment-counter { border-top: 1px solid var(--color-border); margin-top: 0.75rem; padding-top: 0.75rem; }
.payment-admin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; }
.payment-admin-form label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 600; font-size: 0.85rem; }
.payment-admin-form input { margin: 0; max-width: 10rem; }
.payment-admin-form button { margin: 0; }
.payment-admin-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }
.payment-admin-filter label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 600; font-size: 0.85rem; }
.payment-admin-filter select { margin: 0; width: auto; }
.payment-admin-table td { vertical-align: top; }
.payment-admin-table small { color: var(--color-muted); }
.payment-admin-button { margin: 0; padding: 0.3rem 0.6rem; font-size: 0.8rem; white-space: nowrap; }

/* ---------- Admin › Einstellungen ---------- */
.settings-status {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.settings-status h2 { margin-top: 0; }
.settings-status h3 { margin: 1rem 0 0.5rem; }
.settings-status h3 small { font-weight: 400; color: var(--color-muted); font-size: 0.8rem; }
.settings-status-list { list-style: none; margin: 0; padding: 0; }
.settings-status-list li {
    display: grid;
    grid-template-columns: 0.75rem minmax(9rem, max-content) 1fr;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
}
.settings-status-list li:last-child { border-bottom: 0; }
.settings-status-text { color: var(--color-muted); }
.settings-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; display: inline-block; }
.settings-dot-ok { background: #2e9d55; }
.settings-dot-warn { background: var(--color-accent); }
.settings-dot-off { background: #d7261b; }
@media (max-width: 600px) {
    .settings-status-list li { grid-template-columns: 0.75rem 1fr; }
    .settings-status-text { grid-column: 2; }
}

/* Admin › Online-Zahlungen: kompakte Statuskarten + Zahlungsliste als Karten */
.payment-admin-card { display: flex; flex-direction: column; gap: 0.35rem; }
.payment-admin-kicker { margin: 0; color: var(--color-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.payment-admin-state { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 1.05rem; }
.payment-admin-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; }
.payment-admin-sub { margin: 0; color: var(--color-muted); font-size: 0.85rem; }
.payment-admin-action { margin-top: 0.4rem; border-top: 1px solid var(--color-border); padding-top: 0.5rem; }
.payment-admin-action summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.payment-admin-action[open] summary { margin-bottom: 0.5rem; }
.payment-admin-action .form-hint { margin: 0 0 0.5rem; }
.payment-admin-action code { overflow-wrap: anywhere; }
.payment-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.payment-list-head h2 { margin: 0; }
.payment-list-head .payment-admin-filter { margin: 0; }
.payment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.payment-item {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
.payment-item-alert { border-color: var(--color-error-text); }
.payment-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.payment-item-title { overflow-wrap: anywhere; }
.payment-item-amount { font-weight: 700; white-space: nowrap; }
.payment-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; margin-top: 0.35rem; color: var(--color-muted); font-size: 0.8rem; }
.payment-item-note { margin: 0.4rem 0 0; color: var(--color-error-text); font-size: 0.85rem; }
.payment-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.5rem; font-size: 0.9rem; }
.payment-item-actions form { margin: 0; }
.payment-item-actions button.button-secondary { margin: 0; padding: 0.3rem 0.75rem; min-height: 0; font-size: 0.85rem; }

.payment-admin-log { margin: 0 0 1.5rem; }
.payment-admin-log summary { cursor: pointer; font-weight: 600; }
.payment-admin-log pre { margin: 0.5rem 0 0; padding: 0.75rem; max-height: 18rem; overflow: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.sumup-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; user-select: all; }

/* Rechnung als Dokument-Chip (Bestellseite, Beleg) */
.order-summary-invoice,
.receipt-invoices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.receipt-invoices:empty { display: none; }
.invoice-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem 0.45rem 0.6rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.2;
}
.invoice-chip:hover { border-color: var(--color-accent); }
.invoice-chip-icon svg { display: block; width: 1.2rem; height: 1.2rem; color: var(--color-accent); }
.invoice-chip-text { display: flex; flex-direction: column; }
.invoice-chip-label { font-size: 0.75rem; color: var(--color-muted); }
.invoice-chip-number { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
.invoice-chip-type {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.invoice-admin-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.invoice-admin-summary p { margin: 0; }
.invoice-admin-downloads { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.invoice-admin-downloads .button { display: inline-flex; align-items: center; gap: 0.4rem; }
.invoice-admin-downloads svg { width: 1.1rem; height: 1.1rem; }
.payment-list .invoice-chip { background: var(--color-bg); }

/* Gruppen-Checkliste: ein Chip je Punkt statt Auswahlliste + Knöpfe */
.checklist-who { position: relative; align-self: flex-start; }
.checklist-who summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
}
.checklist-who summary::-webkit-details-marker { display: none; }
.checklist-who summary svg { width: 0.85rem; height: 0.85rem; color: var(--color-muted); }
.checklist-who.is-open-task summary { color: var(--color-muted); border-style: dashed; }
.is-checked .checklist-who summary { opacity: 0.6; }
.checklist-who-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.3rem);
    left: 0;
    min-width: 13rem;
    padding: 0.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.checklist-who-menu form { margin: 0; display: flex; flex-direction: column; }
.checklist-who-menu form + form { margin-top: 0.25rem; padding-top: 0.25rem; border-top: 1px solid var(--color-border); }
.checklist .checklist-who-option,
.checklist .checklist-who-option:hover {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.6rem;
    min-height: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
    box-shadow: none;
}
.checklist .checklist-who-option:hover { background: var(--color-bg); }
.checklist .checklist-who-option.is-primary { font-weight: 700; }
.checklist .checklist-who-option.is-danger { color: var(--color-error-text); }
/* "Neu aus Vorlage erstellen" dezent statt rot */
button[type="submit"].link-button.checklist-reset { color: var(--color-muted); font-size: 0.85rem; }

/* Checklisten als aufklappbare Karten, farbiger Status, Ausrichtung */
.checklist-panel {
    margin-bottom: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}
.checklist-panel > summary.checklist-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
}
.checklist-panel > summary::-webkit-details-marker { display: none; }
.checklist-panel > summary h2 { margin: 0; flex: 1; }
.checklist-panel > summary > svg { width: 1.2rem; height: 1.2rem; color: var(--color-muted); transition: transform 0.15s ease; flex-shrink: 0; }
.checklist-panel[open] > summary > svg { transform: rotate(180deg); }
.checklist-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.checklist-bar { display: block; width: 5rem; height: 0.3rem; border-radius: 999px; background: var(--color-border); overflow: hidden; }
.checklist-bar span { display: block; height: 100%; background: #2e9d55; border-radius: 999px; transition: width 0.2s ease; }
.checklist-panel-body { padding: 0 1rem 1rem; }
.checklist-panel .checklist { border-top: 1px solid var(--color-border); }

.checklist-item { border-left: 3px solid transparent; padding-left: 0.6rem; }
.checklist-item.is-checked { border-left-color: #2e9d55; }
.checklist-item.is-unassigned { border-left-color: var(--color-error-text); }
.checklist-item.is-mine { border-left-color: var(--color-accent); }
.checklist-item.is-other { border-left-color: var(--color-border-strong); }
.checklist .is-checked .checklist-check { background: #2e9d55; border-color: #2e9d55; color: #ffffff; }
.is-unassigned .checklist-who summary { color: var(--color-error-text); border-color: var(--color-error-text); border-style: dashed; }
.is-mine .checklist-who summary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.is-mine .checklist-who summary svg { color: var(--color-accent-text); }

/* Abhak-Box und erste Textzeile gleich hoch -> mittig auf einer Linie */
.checklist .checklist-check,
.checklist .checklist-check:hover { width: 1.5rem; height: 1.5rem; }
.checklist-label { padding-top: 0; line-height: 1.5rem; }
.checklist-delete { align-self: flex-start; }

.checklist-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: -0.25rem 0 0.75rem; font-size: 0.75rem; color: var(--color-muted); }
.checklist-legend span::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border-radius: 2px; vertical-align: -0.05rem; }
.legend-open::before { background: var(--color-error-text); }
.legend-mine::before { background: var(--color-accent); }
.legend-other::before { background: var(--color-border-strong); }
.legend-done::before { background: #2e9d55; }

/* Fallback: zu lange Überschriften in News-Karten nach 3 Zeilen mit "…" abschneiden (Detailseite zeigt sie voll) */
.news-item-compact-body h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* Kachel "Deine Camping-Gruppe": Abzeichen unter dem Gruppennamen */
.group-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.group-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
}
.group-pill svg { width: 0.85rem; height: 0.85rem; }
.group-pill.is-registrant { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.group-pill.is-task { border-color: var(--color-accent); color: var(--color-text); }

/* News-Kachel: ungelesene Beiträge hervorheben */
.news-tile-status.is-unread,
.news-tile-head .news-tile-status.is-unread {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 700;
}

/* Admin › Camping-Gruppen: Übersicht + aufklappbare Karten */
.group-admin-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 0 0 1rem; }
.group-admin-stat { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; }
.group-admin-stat-label { font-size: 0.8rem; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.group-admin-stat-value { font-size: 1.3rem; font-weight: 700; }
.group-admin-stat-value small { font-size: 0.8rem; font-weight: 400; color: var(--color-muted); }
.group-admin-stat-sub { font-size: 0.8rem; color: var(--color-muted); }
.group-admin-bar { width: 100%; }
.group-admin-search { width: 100%; margin: 0 0 1rem; box-sizing: border-box; min-height: 44px; padding: 0.65rem 0.75rem; border-radius: 4px; border: 1px solid var(--color-border); background: var(--color-input-bg); color: var(--color-text); font: inherit; }
.group-admin-list { display: flex; flex-direction: column; gap: 0.5rem; }
.group-admin-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; }
.group-admin-card.has-warning { border-left: 4px solid var(--color-error-text); }
.group-admin-card > summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none; }
.group-admin-card > summary::-webkit-details-marker { display: none; }
.group-admin-head { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.group-admin-name { font-size: 1.05rem; overflow-wrap: anywhere; }
.group-admin-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.group-pill.is-warning { border-color: var(--color-error-text); color: var(--color-error-text); }
.group-admin-chevron svg { display: block; width: 1.5rem; height: 1.5rem; color: var(--color-muted); transition: transform 0.15s ease; }
.group-admin-card[open] .group-admin-chevron svg { transform: rotate(180deg); }
.group-admin-body { padding: 0 1rem 1rem; border-top: 1px solid var(--color-border); }
.group-admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0.75rem 0; }
.group-admin-facts dt { font-weight: 600; }
.group-admin-facts dd { margin: 0; color: var(--color-muted); overflow-wrap: anywhere; }
.group-admin-subhead { margin: 1rem 0 0.4rem; font-size: 1rem; }
.group-admin-members { list-style: none; margin: 0; padding: 0; }
.group-admin-members li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.group-admin-members li:last-child { border-bottom: 0; }
.group-admin-member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 600; }
.group-admin-member-meta { font-size: 0.8rem; color: var(--color-muted); overflow-wrap: anywhere; }
.group-admin-ok { color: var(--color-success-text); }
.group-admin-bad { color: var(--color-error-text); font-weight: 600; }
@media (max-width: 600px) {
    .group-admin-facts { grid-template-columns: 1fr; }
    .group-admin-facts dd { margin-bottom: 0.35rem; }
}

/* ---------- Ankunft & Check-in (Einlass-Crew, Camping-Crew) ---------- */
.arrival-summary td,
.arrival-summary th,
.arrival-table td,
.arrival-table th {
    white-space: nowrap;
    vertical-align: top;
}

.arrival-summary td small {
    display: block;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.arrival-day {
    margin: 0.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.arrival-day > summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
}

.arrival-day[open] > summary {
    border-bottom: 1px solid var(--color-border);
}

.arrival-day-total {
    color: var(--color-muted);
    font-weight: 600;
}

.arrival-day .table-scroll-x {
    padding: 0 0.5rem 0.5rem;
}

.arrival-table td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.arrival-table tbody th {
    font-weight: 600;
    color: var(--color-muted);
}

/* Spitzenstunde: Akzentfläche, nie nur Farbe (fett) */
.arrival-table td.arrival-peak,
.arrival-legend.arrival-peak {
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 700;
}

.arrival-legend {
    display: inline-block;
    padding: 0 0.35rem;
    border-radius: 3px;
}

.arrival-table thead th:not(:first-child) {
    text-align: right;
}

/* Dashboard-Kachel "Auslastung & Prognose": Bereich | heute | Prognose, Balken darunter */
.capacity-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 0.75rem;
    align-items: baseline;
}

.capacity-head {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.capacity-head:last-of-type,
.capacity-forecast {
    text-align: right;
}

.capacity-label {
    padding-top: 0.45rem;
}

.capacity-now {
    padding-top: 0.45rem;
    white-space: nowrap;
}

.capacity-percent {
    font-weight: 700;
}

.capacity-now small {
    margin-left: 0.35rem;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.capacity-forecast {
    padding-top: 0.45rem;
    font-weight: 700;
    white-space: nowrap;
}

/* "voll" nicht nur farbig: Fehlerfarbe + Großbuchstaben aus dem Text */
.capacity-forecast.capacity-full {
    color: var(--color-error-text);
}

.capacity-bar {
    grid-column: 1 / -1;
}

.capacity-bar .auslastung-bar {
    margin-top: 0.2rem;
}

.money-net {
    font-size: 1.35rem;
}

.money-gross {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.arrival-table thead th small {
    display: block;
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.75rem;
}

.arrival-table tfoot th,
.arrival-table tfoot td {
    font-weight: 700;
    border-top: 2px solid var(--color-border);
}

/* Gruppierte Säulen: Werte an der y-Achse */
.chart-columns .chart-axis-label {
    font-size: 12px;
    fill: var(--color-muted);
}

.arrival-chart {
    padding: 0.5rem 0.75rem 0.75rem;
}

/* Handy: Stunden-Diagramm mit Mindestbreite, seitlich wischbar (wie Check-in-Stunden) */
@media (max-width: 699px) {
    .arrival-chart .chart-columns-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .arrival-chart .chart-columns {
        min-width: 560px;
    }

    .arrival-chart {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Check-in-Detail: Filter als Feldgruppen (Beschriftung über dem Feld) -
   Handy untereinander in voller Breite, ab Tablet nebeneinander */
.comparison-event-select.checkin-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: end;
}

.checkin-filter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.checkin-filters .checkin-filter select {
    width: 100%;
}

@media (min-width: 600px) {
    .comparison-event-select.checkin-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Check-in-Detail: Filter eingeklappt, aktuelle Auswahl in der Kopfzeile */
.checkin-filter-box {
    margin-bottom: 1rem;
}

.checkin-filter-summary {
    margin-left: 0.4rem;
    font-weight: 400;
    color: var(--color-muted);
}

.checkin-filter-box .checkin-filters {
    margin: 0.75rem 0;
}

/* ---------- App-Exklusiv (Merch-Vorbestellung) ---------- */

.badge-pill.order-status-abgeholt { background: var(--color-success-bg); color: var(--color-success-text); }

/* Dashboard-Kachel: volle Breite im Raster, Produktfoto ungeschnitten auf dunklem Grund */
.exklusiv-tile {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.exklusiv-tile:hover,
.exklusiv-tile:focus-visible {
    border-color: var(--color-accent);
}

/* Quadratisch wie die empfohlenen Produktbilder (1600 × 1600) - andere Formate werden ganz gezeigt, nie angeschnitten */
.exklusiv-tile-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-header-bg);
}

/* Bilder liegen übereinander; das aktive wird eingeblendet (Wechsel per
   Skript in partials/exklusiv_tile.php) und zoomt/schwenkt dabei langsam
   (Ken Burns). Das ausblendende behält seine Bewegung bis zum Ende. */
.exklusiv-tile-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: transform, opacity;
}

.exklusiv-tile-image img.is-active {
    opacity: 1;
}

.exklusiv-tile-image img.is-active,
.exklusiv-tile-image img.is-leaving {
    animation: exklusiv-ken-burns 8.5s ease-out forwards;
}

.exklusiv-tile-image img:nth-child(even).is-active,
.exklusiv-tile-image img:nth-child(even).is-leaving {
    animation-name: exklusiv-ken-burns-alt;
}

/* Nur ein Bild: hin und zurück in Endlosschleife */
.exklusiv-tile-image img:only-child.is-active {
    animation: exklusiv-ken-burns 14s ease-in-out infinite alternate;
}

/* Ken-Burns: langsam heranzoomen und leicht schwenken */
@keyframes exklusiv-ken-burns {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.15) translate(-4%, -3%); }
}

@keyframes exklusiv-ken-burns-alt {
    from { transform: scale(1.15) translate(4%, 2%); }
    to { transform: scale(1) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .exklusiv-tile-image img {
        animation: none !important;
    }
}

.exklusiv-tile-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 1.25rem 1.25rem;
    min-width: 0;
}

.exklusiv-tile-body .crew-teaser-kicker {
    margin-bottom: 0;
}

.exklusiv-tile-title {
    font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--color-heading);
    overflow-wrap: anywhere;
}

.exklusiv-tile-text {
    color: var(--color-text);
}

.exklusiv-tile-deadline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted);
}

.exklusiv-tile-button {
    margin-top: 0.4rem;
}

@media (min-width: 600px) {
    .exklusiv-tile {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .exklusiv-tile-body {
        justify-content: center;
        padding: 1.5rem;
    }
}

.exklusiv-subtitle {
    margin: -0.6rem 0 1rem;
    font-weight: 600;
    color: var(--color-muted);
}

.exklusiv-phase {
    margin: 0 0 1rem;
}

/* "Kein Versand" - deutlich, auf Übersicht, Artikel und Warenkorb */
.exklusiv-pickup {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 2rem 0 1rem;
    color: var(--color-muted);
}

.exklusiv-pickup-icon svg {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
}

.exklusiv-pickup p {
    margin: 0;
    font-size: 0.85rem;
}

.exklusiv-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.exklusiv-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.exklusiv-product-card:hover,
.exklusiv-product-card:focus-visible {
    border-color: var(--color-accent);
}

.exklusiv-product-card-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--color-header-bg);
}

.exklusiv-product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exklusiv-product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem 1rem;
}

.exklusiv-product-card-body strong {
    color: var(--color-heading);
}

.exklusiv-product-card-info {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.exklusiv-product-card-price,
.exklusiv-price {
    font-weight: 700;
    font-size: 1.15rem;
}

.exklusiv-price small {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Bildergalerie: wischen (scroll-snap); Punkte, Zähler und Pfeile zeigen, dass es mehrere Bilder gibt */
.exklusiv-gallery-wrap {
    position: relative;
}

.exklusiv-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 8px;
    background: var(--color-header-bg);
}

.exklusiv-gallery::-webkit-scrollbar {
    display: none;
}

.exklusiv-gallery img {
    flex: 0 0 100%;
    width: 100%;
    max-height: 70vh;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    scroll-snap-align: center;
}

.exklusiv-gallery-count {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.exklusiv-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.exklusiv-gallery-arrow:hover,
.exklusiv-gallery-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.8);
}

.exklusiv-gallery-arrow svg {
    width: 22px;
    height: 22px;
}

.exklusiv-gallery-prev { left: 0.6rem; }
.exklusiv-gallery-next { right: 0.6rem; }

.exklusiv-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.exklusiv-gallery-dot {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-border-strong);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.exklusiv-gallery-dot.is-active {
    width: 24px;
    border-radius: 5px;
    background: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .exklusiv-gallery-dot {
        transition: none;
    }
}

.exklusiv-product-title {
    margin: 0.5rem 0 0.25rem;
}

.exklusiv-product-info {
    margin: 0 0 0.5rem;
    color: var(--color-muted);
}

.exklusiv-description {
    margin: 0.75rem 0;
}

.exklusiv-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.exklusiv-sizes legend {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.exklusiv-size {
    position: relative;
}

.exklusiv-size input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.exklusiv-size span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.55rem 0.75rem;
    border: 2px solid var(--color-border-strong);
    border-radius: 6px;
    background: var(--color-input-bg);
    font-weight: 700;
    cursor: pointer;
}

.exklusiv-size input:checked + span {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.exklusiv-size input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.exklusiv-cart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.exklusiv-cart-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas: "img text sum" "img qty qty";
    gap: 0.35rem 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.exklusiv-cart-line img {
    grid-area: img;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--color-header-bg);
}

.exklusiv-cart-line-text {
    grid-area: text;
    display: flex;
    flex-direction: column;
}

.exklusiv-cart-line-text span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.exklusiv-cart-qty {
    grid-area: qty;
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.exklusiv-cart-qty select {
    width: auto;
}

.exklusiv-cart-line-sum {
    grid-area: sum;
    font-weight: 700;
}

.exklusiv-checkout .form-checkbox-label {
    align-items: flex-start;
}

.exklusiv-size-cell {
    font-weight: 700;
    font-size: 1.1rem;
}

.exklusiv-handout {
    margin: 1rem 0;
}

.exklusiv-handout button {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
}

.exklusiv-legal-links {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.exklusiv-legal h2 {
    margin-top: 1.5rem;
}

/* Admin */
.exklusiv-admin-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.exklusiv-admin-head h2 {
    margin: 0;
}

.badge-pill.exklusiv-phase-bestellphase { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-pill.exklusiv-phase-ankuendigung { background: var(--color-highlight-bg); color: var(--color-text); }
.badge-pill.exklusiv-phase-geplant,
.badge-pill.exklusiv-phase-beendet { background: var(--color-border); color: var(--color-text); }

.exklusiv-admin-dates {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.25rem 1rem;
    margin: 1rem 0;
}

.exklusiv-admin-dates dt {
    font-weight: 600;
}

.exklusiv-admin-dates dd {
    margin: 0;
}

.exklusiv-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.exklusiv-admin-stats > div {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
}

.exklusiv-admin-stats strong {
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

.exklusiv-admin-stats span {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.exklusiv-admin-products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.exklusiv-admin-product {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.exklusiv-admin-product.is-inactive {
    opacity: 0.6;
}

.exklusiv-admin-product > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.exklusiv-admin-product > div:nth-child(2) span {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Merch-Ausgabe ist der Alltagsweg zur Ausgabe: gefüllt statt nur Umriss,
   damit der Knopf neben "Neue Aktion" nicht untergeht. */
.button-secondary.exklusiv-admin-merch {
    background: var(--color-surface);
    border-color: var(--color-border-strong);
}

/* Link-Knöpfe oben und je Aktion: auf Mobile untereinander, sonst ragen
   lange Beschriftungen ("Ansicht für Besucher*innen") im 2er-Raster rechts
   hinaus und die ganze Seite scrollt seitlich. */
@media (max-width: 599.98px) {
    .admin-table-actions.exklusiv-admin-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .exklusiv-admin-links .button,
    .exklusiv-admin-links form button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.exklusiv-admin-product .admin-table-actions {
    grid-column: 1 / -1;
}

.exklusiv-admin-product img,
.exklusiv-admin-noimage {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--color-header-bg);
}

.exklusiv-admin-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-header-text);
}

.exklusiv-admin-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.exklusiv-admin-image {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.exklusiv-admin-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 6px;
    background: var(--color-header-bg);
}

.exklusiv-admin-image span {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.exklusiv-admin-delete {
    margin-top: 2rem;
}

.exklusiv-cancel-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.exklusiv-cancel-form select {
    width: auto;
}

.exklusiv-shipping {
    flex-direction: column;
}

/* Bestellknopf mit Betrag (Brötchen, App-Exklusiv): zweizeilig, Betrag groß
   darunter und nie umbrochen */
.pay-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.pay-button-amount {
    font-size: 1.25rem;
    white-space: nowrap;
}

.pay-button-amount[hidden] {
    display: none;
}

/* Sprungziel nach Bild-Aktionen: nicht unter der Kopfleiste verstecken */
.exklusiv-admin-anchor {
    scroll-margin-top: 5rem;
}

/* "So funktioniert die App": Hinweis für Gäste auf dem Dashboard (unter dem
   Countdown, per X für 30 Tage ausblendbar) und die Seite /info/app-nutzung */
.app-guide-banner {
    position: relative;
    margin-bottom: 1.5rem;
}

.app-guide-banner[hidden] {
    display: none;
}

.app-guide-banner-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 2.75rem 1.1rem 1.25rem;
    background: linear-gradient(135deg, var(--color-header-bg), #10141a);
    border: 1px solid var(--color-accent);
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
}

.app-guide-banner-link:hover,
.app-guide-banner-link:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
}

.app-guide-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.app-guide-banner-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Winkende Hand: winkt kurz, Pause, winkt wieder (Drehpunkt am Handgelenk).
   Dunkler Kreis mit gelbem Rand - die gelbe Hand ginge auf Gelb unter. */
.app-guide-banner-icon:has(.app-guide-wave) {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 2px var(--color-accent);
}

.app-guide-wave {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    transform-origin: 70% 70%;
    animation: app-guide-wave 2.8s ease-in-out infinite;
}

@keyframes app-guide-wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(16deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(16deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
    .app-guide-wave {
        animation: none;
    }
}

.app-guide-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.app-guide-banner-text strong {
    font-size: 1.05rem;
}

.app-guide-banner-text span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.app-guide-banner-dismiss {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.app-guide-stages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.app-guide-stage {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.app-guide-stage.is-current {
    border-color: var(--color-accent);
    box-shadow: inset 4px 0 0 var(--color-accent);
}

.app-guide-stage h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}

.app-guide-stage ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.app-guide-stage > p:last-child,
.app-guide-stage > ul:last-child {
    margin-bottom: 0;
}

.app-guide-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.95rem;
}

.app-guide-shot {
    margin: 1rem auto 0;
    max-width: 280px;
    text-align: center;
}

.app-guide-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Screenshot im Handy-Rahmen: dunkler Rand mit runden Ecken, Kamera-Pille in
   der Statusleiste oben, Home-Balken unten (reines CSS, Bild bleibt austauschbar) */
.app-guide-phone {
    position: relative;
    display: block;
    padding: 30px 0 18px;
    background: #14171c;
    border: 9px solid #0a0b0d;
    border-radius: 46px;
    overflow: hidden;
    box-shadow: 0 0 0 1.5px #4a505a, 0 14px 32px rgba(0, 0, 0, 0.28);
}

.app-guide-phone::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 32%;
    height: 18px;
    transform: translateX(-50%);
    background: #000000;
    border-radius: 999px;
}

.app-guide-phone::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 36%;
    height: 4px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
}

.app-guide-shot figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.app-guide-steps {
    padding-left: 1.4rem;
}

.app-guide-steps li {
    margin-bottom: 0.6rem;
}

/* Schritt-Überschrift in eigener Zeile, Erklärung darunter */
.app-guide-steps li > strong:first-child {
    display: block;
}

.app-guide-tips {
    margin: 1.75rem 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.app-guide-tips h3 {
    margin: 0 0 0.5rem;
}

.app-guide-tips ul {
    margin: 0;
    padding-left: 1.25rem;
}

.app-guide-tips li {
    margin-bottom: 0.5rem;
}

.app-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Admin: gesperrter Account (User-Liste, Details) */
.badge-pill.badge-blocked {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-text);
}

/* Admin › User bearbeiten: Sperren / Löschen abgesetzt unter dem Formular */
.admin-account-actions {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-strong);
}

.admin-account-actions form {
    margin-bottom: 1.5rem;
}

/* Passwort-Regeln unter dem Feld, beim Tippen abgehakt (partials/password_rules.php) */
.password-rules {
    list-style: none;
    margin: 0.4rem 0 0.3rem;
    padding: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.password-rules li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.6;
}

.password-rules li::before {
    content: '\25CB';
    position: absolute;
    left: 0.15rem;
}

.password-rules li.is-met {
    color: var(--color-success-text, #2e7d32);
}

.password-rules li.is-met::before {
    content: '\2713';
    font-weight: 700;
}

/* Ticket-Teaser: zweiter Knopf für alle, die schon Tickets haben (darf umbrechen) */
.crew-teaser .ticket-teaser-link-button {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.6rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

/* App-Exklusiv Admin › Bilder: Vor/Zurück/Löschen als feste Leiste mit drei
   gleich großen Knöpfen (statt des Tabellen-Rasters, das je nach Anzahl
   umbricht). Nicht mögliche Richtung bleibt ausgegraut an ihrem Platz. */
.exklusiv-image-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.exklusiv-image-actions form {
    margin: 0;
}

.exklusiv-image-actions button.icon-button {
    width: 100%;
    justify-content: center;
    padding: 0.35rem 0;
}

.exklusiv-image-actions .icon-button svg {
    width: 22px;
    height: 22px;
}

.exklusiv-image-actions button.icon-button:disabled {
    opacity: 0.3;
    cursor: default;
    background: none;
}

.exklusiv-admin-image span .inline-icon {
    color: var(--color-accent);
}

/* Ticket-Analyse › Einnahmen Tickets: Vormonat / laufender Monat (partials/monthly_revenue.php) */
.monthly-revenue-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 0.75rem;
    font-size: 0.95rem;
}

.monthly-revenue-table th,
.monthly-revenue-table td {
    padding: 0.4rem 0.25rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.monthly-revenue-table thead th,
.monthly-revenue-table td {
    text-align: right;
    white-space: nowrap;
}

.monthly-revenue-table tbody th {
    text-align: left;
    font-weight: 600;
}

.monthly-revenue-table td {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.monthly-revenue-note {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-muted);
}

.monthly-revenue-total th,
.monthly-revenue-total td {
    border-top: 2px solid var(--color-border-strong);
}

/* App-Exklusiv Beleg: "Bestellung verwalten" (Abhol-Hinweis, Stornieren) als eigene Karte */
.receipt-manage {
    margin: 1.5rem 0 1rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.receipt-manage h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.receipt-manage-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.receipt-manage-note .inline-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--color-accent);
}

.receipt-manage-note strong {
    color: var(--color-text);
}

.receipt-manage-cancel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.receipt-manage-note + .receipt-manage-cancel {
    margin-top: 1rem;
}

.receipt-manage h2 + .receipt-manage-cancel {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.receipt-manage-cancel p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.receipt-manage-cancel form {
    margin: 0;
}

.receipt-manage-cancel button.button-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
}

.receipt-manage-cancel .button-icon svg {
    width: 18px;
    height: 18px;
}

.receipt-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

/* App-Exklusiv Beleg/Merch-Ausgabe: Artikelbild neben dem Namen (Sicherheit bei der Ausgabe, antippen = groß) */
.exklusiv-item-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.exklusiv-item-thumb {
    flex-shrink: 0;
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-header-bg);
}

.exklusiv-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* App-Exklusiv Beleg: Status, Abholschein (QR) oben, Artikel als Liste */
.receipt-payment-date {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.receipt-pickup {
    margin: 1rem 0 1.25rem;
    padding: 1.25rem 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    background: var(--color-surface);
    text-align: center;
}

.receipt-pickup-label {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* QR immer auf Weiß (auch im dunklen Design) - sonst scannt es schlecht */
.receipt-pickup-qr {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    line-height: 0;
}

.receipt-pickup-qr img,
.receipt-pickup-qr canvas {
    display: block;
}

.receipt-pickup-number {
    margin: 0.9rem 0 0.6rem;
    font-size: 1rem;
    color: var(--color-muted);
}

.receipt-pickup-number strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.receipt-pickup-place {
    display: inline-flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin: 0 0 0.6rem;
    text-align: left;
    font-size: 0.95rem;
}

.receipt-pickup-place .inline-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--color-accent);
}

.receipt-pickup-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.receipt-items-card {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.receipt-items-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.receipt-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.receipt-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}

.receipt-item-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.receipt-item-variant {
    align-self: flex-start;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--color-header-bg);
    color: var(--color-header-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.receipt-item-price {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-variant-numeric: tabular-nums;
}

.receipt-item-price span {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.exklusiv-item-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-header-text);
}

.exklusiv-item-thumb-empty svg {
    width: 28px;
    height: 28px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0.75rem 0 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.receipt-total small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.receipt-buyer {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.receipt-items-card .receipt-invoices {
    margin: 0.75rem 0 0;
}

/* App-Exklusiv nach der Bestellung: kleine Kachel im Raster (partials/exklusiv_tile_compact.php).
   Der Rahmen ist .service-tile, innen ein Link-Bereich plus optional "Noch etwas bestellen". */
.service-tile.exklusiv-compact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.exklusiv-compact-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.exklusiv-compact-kicker {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.exklusiv-compact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.6rem;
    font-weight: 700;
    color: var(--color-text);
}

.exklusiv-compact-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-header-bg);
}

.exklusiv-compact-more {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.exklusiv-compact-more:hover,
.exklusiv-compact-main:hover .exklusiv-compact-link {
    text-decoration: underline;
}

/* Festival-Umsätze: Andrang (Heatmap Tag x halbe Stunde, Spitzenzeiten, Stellen) */
.rush-filter {
    flex-wrap: wrap;
}

.rush-metric {
    margin-bottom: 0.75rem;
}

.heatmap-table-dense {
    min-width: 760px;
    border-spacing: 1px;
    font-size: 0.7rem;
}

.heatmap-table-dense td {
    padding: 0.4rem 0;
    min-width: 1.4rem;
    border-radius: 3px;
}

.heatmap-table-dense th {
    padding: 0.2rem 0;
    white-space: nowrap;
}

.heatmap-table-dense tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--color-surface);
    padding-right: 0.4rem;
}

.rush-table td {
    vertical-align: top;
    white-space: nowrap;
}

.rush-table td:first-child {
    white-space: normal;
    min-width: 7rem;
}

.rush-table td small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.rush-table tr.comparison-current td {
    background: var(--color-highlight-bg);
    font-weight: 600;
}

.rush-stations-form {
    margin-top: 1.25rem;
}

.rush-stations-form summary {
    cursor: pointer;
    font-weight: 600;
}

.rush-stations-form .form {
    max-width: 420px;
    margin-top: 0.5rem;
}

/* Festival-Umsätze: Kategorien den Bereichen der Umsatz-Einsicht zuordnen */
.area-mapping-form {
    max-width: 520px;
}

.area-mapping-row {
    display: grid;
    grid-template-columns: 1fr minmax(9rem, 11rem);
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.area-mapping-row label {
    margin: 0;
}

.area-mapping-row label small {
    display: block;
    color: var(--color-muted);
    font-weight: 400;
}

.area-mapping-row select {
    margin: 0;
}

/* User bearbeiten: Bereiche der Umsatz-Einsicht */
.umsatz-areas {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem 0.25rem;
    margin: 0.25rem 0 0.75rem;
}

.umsatz-areas legend {
    font-weight: 600;
    padding: 0 0.25rem;
}

.umsatz-areas .form-checkbox-label {
    display: inline-flex;
    margin-right: 1rem;
}

/* Crew-Login (App-Verbund): dezenter Hinweis auf Login-Seite und im Profil */
.crew-login-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Admin › Crew & Rollen */
.crew-admin-roles .form-checkbox-label {
    display: inline-flex;
    margin-right: 1rem;
}
.crew-admin-member {
    margin-bottom: 1rem;
}
.crew-admin-member-meta {
    color: var(--color-muted);
    font-size: 0.9rem;
}
.crew-mail-textarea {
    width: 100%;
    min-height: 12rem;
    font-family: inherit;
}

/* Admin › App-Verbund: Verbindungsdaten untereinander (passt aufs Handy) */
.crew-verbund-list {
    margin: 0;
}
.crew-verbund-list > div {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.crew-verbund-list > div:last-child {
    border-bottom: 0;
}
.crew-verbund-list dt {
    font-weight: 700;
}
.crew-verbund-list dd {
    margin: 0.1rem 0 0;
    color: var(--color-muted);
}
.crew-verbund-url {
    overflow-wrap: anywhere;
}
.crew-verbund-status {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.crew-verbund-status .inline-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.crew-verbund-status-ok {
    color: var(--color-success-text);
}
.crew-verbund-status-warn {
    color: var(--color-error-text);
}
.crew-verbund-note {
    margin: 1rem 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}
.crew-verbund-test .flash {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Admin › Crew & Rollen: aufklappbare Personen bzw. Mail-Texte (admin-collapsible-flat) */
.crew-admin-person.admin-collapsible-flat {
    margin-top: 0;
}
.crew-admin-person-title {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.crew-admin-person-roles {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.crew-admin-person-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
}
.crew-admin-person-body .crew-admin-member-meta {
    margin: 0;
}
/* Ansehen / Abmelden: untereinander, so breit wie „Rollen speichern“ (.form) */
.crew-admin-person-actions {
    display: grid;
    gap: 0.5rem;
    max-width: 420px;
}
.crew-admin-person-actions form {
    margin: 0;
}
.crew-admin-person-actions button {
    width: 100%;
    margin: 0;
    justify-content: center;
}

/* Admin › Crew & Rollen: Live-Suche (Treffer als ruhige Liste, nicht im Stil der großen Knöpfe) */
.crew-results {
    display: grid;
    gap: 0.4rem;
    margin: 0.75rem 0 0;
}
.crew-results:empty {
    display: none;
}
button.crew-result,
button.crew-result:hover {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.9rem;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.3;
    background: var(--color-input-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
}
button.crew-result:hover,
button.crew-result:focus-visible {
    border-color: var(--color-accent);
}
.crew-result strong {
    font-weight: 700;
}
.crew-result-info {
    font-size: 0.85rem;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}
.crew-results-empty {
    color: var(--color-muted);
}
.crew-add-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.crew-add-chosen {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 1.05rem;
}
.crew-admin-person-highlight summary {
    background: var(--color-highlight-bg);
    transition: background 0.3s;
}

/* Admin › Merch gesamt (gemeinsame Herstellerliste, App-Verbund Schritt 5) */
.merch-table .num { text-align: right; white-space: nowrap; }
.merch-table tfoot th { border-top: 2px solid var(--color-border-strong); }
.merch-checks ul { margin: 0.5rem 0 0.75rem; padding-left: 1.2rem; }
.merch-checks li { margin-bottom: 0.35rem; }
.merch-season-form { max-width: 12rem; margin-bottom: 1rem; }

/* Admin › Einstellungen › Backup */
.backup-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.backup-state { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(46, 157, 85, .15); color: #2e9d55; }
.backup-state svg { width: 24px; height: 24px; }
.backup-card.is-due { border-color: var(--color-accent); }
.backup-card.is-due .backup-state { background: rgba(252, 185, 0, .16); color: var(--color-accent); }
.backup-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.backup-meta { font-size: .88rem; color: var(--color-muted); }
.backup-nowrap { white-space: nowrap; }
.backup-form { margin: 0; }
.backup-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.backup-btn svg { width: 18px; height: 18px; }
.backup-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: .82rem; color: var(--color-muted); }
.backup-note svg { width: 14px; height: 14px; flex: none; }
/* Text mit Link: als Fließtext umbrechen statt in Flex-Spalten */
p.backup-note:has(a) { display: block; }
p.backup-note:has(a) svg { vertical-align: -2px; margin-right: 6px; }
@media (max-width: 600px) { .backup-form, .backup-btn { width: 100%; justify-content: center; } }
/* Automatisch ins Google Drive (Einstellungen › Backup) */
.drive-backup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 10px; }
.drive-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.drive-title svg { width: 20px; height: 20px; flex: none; }
.backup-state.is-warn { background: rgba(252, 185, 0, .16); color: var(--color-accent); }
.drive-warn { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: .88rem; color: var(--color-accent); }
.drive-warn svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.drive-apps { margin: 0; }
/* Eigene Zeilen-Optik: die Regeln von .admin-collapsible summary (Polster, Unterkante, „–“ bei offenem Kasten) nicht übernehmen */
.drive-details { border-top: 1px solid var(--color-border); }
.admin-collapsible .drive-details summary { padding: 12px 0; font-size: .9rem; font-weight: 600; border-bottom: 0; }
.admin-collapsible .drive-details summary::after { content: '+'; font-size: 1.1rem; }
.admin-collapsible .drive-details[open] summary::after { content: '\2013'; }
.drive-details[open] { padding-bottom: 8px; }
.drive-backup + .backup-note { margin-top: 0; }
.drive-details p { margin: 0 0 8px; }
.drive-key { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; user-select: all; font-size: .9rem; }
.drive-steps { margin: 0 0 12px; padding-left: 20px; font-size: .9rem; line-height: 1.5; }
.drive-steps li { margin-bottom: 6px; }
.drive-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.drive-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.drive-inline { margin: 0; }
@media (max-width: 600px) { .drive-inline .button, .drive-form .button { width: 100%; justify-content: center; } }

/* Überschrift mit dezenter Aktion als Symbol rechts (z. B. Line-up abrufen, nur Admins) */
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.page-head-row > h1 { flex: 1; min-width: 0; }
.page-icon-action { margin: 0; flex-shrink: 0; }
.page-icon-btn { background: none; border: 0; padding: 6px; margin-top: 2px; border-radius: 50%; color: var(--color-muted); cursor: pointer; display: inline-flex; opacity: .75; }
.page-icon-btn:hover, .page-icon-btn:focus-visible { opacity: 1; color: var(--color-text); }
.page-icon-btn svg { width: 22px; height: 22px; }
.page-icon-btn.is-busy svg { animation: page-icon-spin 1s linear infinite; }
@keyframes page-icon-spin { to { transform: rotate(360deg); } }

/* ---------- Startseite für Team-Rollen: feste Abschnitte (Zu tun, Im Blick, Verwalten, Für alle) ---------- */
.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-heading);
    margin: 2rem 0 0.85rem;
}
/* kurzer gelber Akzent vor dem Titel, feine Linie bis zum Rand */
.dashboard-section-title::before {
    content: '';
    flex: 0 0 auto;
    width: 0.3rem;
    height: 1.05em;
    border-radius: 2px;
    background: var(--color-accent);
}
.dashboard-section-title::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-border);
}
.dashboard-section-title:first-of-type {
    margin-top: 1rem;
}
.badge-pill.badge-alert {
    background: var(--color-error-text);
    color: var(--color-bg);
}
.service-tile-alert {
    border-color: var(--color-error-text);
}

/* ---------- Feedback-Bubble (partials/feedback_bubble.php), wie im Crewtool und in der Advancing-App ---------- */

.fb-bubble {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    /* Mobil über der unteren Tab-Leiste */
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + var(--bottom-dock-h, 0px));
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fb-bubble[hidden] {
    display: none;
}

@media (min-width: 780px) {
    .fb-bubble {
        bottom: calc(20px + var(--bottom-dock-h, 0px));
    }
}

/* Grün wie die Knöpfe auf rock-for-tolerance.de */
.fb-bubble-btn {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #28a745;
    background: #28a745;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.fb-bubble-btn:hover,
.fb-bubble.open .fb-bubble-btn {
    background: #30c553;
    border-color: #30c553;
    transform: scale(1.05);
}

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

.fb-bubble-btn svg {
    width: 24px;
    height: 24px;
}

/* Ab und zu kurz wackeln (feedback-bubble.js setzt die Klasse) */
/* Ab und zu auffallen: Knopf hüpft, Symbol wackelt, grüner Ring läuft nach außen (feedback-bubble.js).
   Nur Drehen reicht nicht, ein runder Knopf sieht gedreht genauso aus. */
.fb-bubble-btn {
    position: relative;
}

.fb-bubble-btn.is-wiggling {
    animation: fb-bounce 1s ease-in-out;
}

.fb-bubble-btn.is-wiggling svg {
    animation: fb-wiggle 0.9s ease-in-out;
}

.fb-bubble-btn.is-wiggling::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 3px solid #28a745;
    animation: fb-ring 1.1s ease-out;
    pointer-events: none;
}

@keyframes fb-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-12px) scale(1.08); }
    40% { transform: translateY(0) scale(1); }
    55% { transform: translateY(-6px) scale(1.04); }
    70% { transform: translateY(0) scale(1); }
}

@keyframes fb-wiggle {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-18deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(6deg); }
    75% { transform: rotate(-3deg); }
}

@keyframes fb-ring {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Weniger Bewegung gewünscht: nur der Ring blendet sanft ein und aus */
@media (prefers-reduced-motion: reduce) {
    .fb-bubble-btn.is-wiggling,
    .fb-bubble-btn.is-wiggling svg {
        animation: none;
    }

    .fb-bubble-btn.is-wiggling::after {
        animation: fb-ring-fade 1.4s ease-in-out;
    }

    @keyframes fb-ring-fade {
        0%, 100% { opacity: 0; transform: scale(1.25); }
        50% { opacity: 0.9; transform: scale(1.25); }
    }
}

.fb-panel {
    width: min(330px, calc(100vw - 32px));
    /* Farbe je Art der Rückmeldung: Gefällt mir grün, Problem rot, Idee gelb */
    --fb-color: #dc3545;
    --fb-on-color: #ffffff;
    background: var(--color-surface);
    background: color-mix(in srgb, var(--fb-color) 12%, var(--color-surface));
    color: var(--color-text);
    /* hebt sich ab: farbiger Rahmen, Seite dahinter abgedunkelt */
    border: 2px solid var(--fb-color);
    transition: border-color 0.15s ease, background-color 0.15s ease;
    border-radius: 14px;
    box-shadow:
        0 0 0 100vmax rgba(0, 0, 0, 0.55),
        0 16px 40px rgba(0, 0, 0, 0.6);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-panel[hidden] {
    display: none;
}

.fb-panel:has(input[value="lob"]:checked) {
    --fb-color: #28a745;
}

.fb-panel:has(input[value="idee"]:checked) {
    --fb-color: #f5b800;
    --fb-on-color: #14171c;
}

.fb-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.fb-panel-head strong {
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--color-heading);
}

.fb-close {
    margin: 0;
    padding: 2px;
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
}

.fb-close svg {
    width: 20px;
    height: 20px;
}

.fb-kinds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fb-kinds label {
    margin: 0;
    cursor: pointer;
}

.fb-kinds input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fb-kinds span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
}

.fb-kinds span svg {
    width: 15px;
    height: 15px;
}

.fb-kinds input:checked + span {
    border-color: var(--fb-color);
    background: rgba(40, 167, 69, 0.16);
    background: color-mix(in srgb, var(--fb-color) 22%, transparent);
    color: var(--color-text);
}

.fb-kinds input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.fb-panel textarea {
    width: 100%;
    min-height: 72px;
    margin: 0;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
}

.fb-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fb-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fb-hide {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}

button.fb-send {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0.45rem 0.95rem;
    border: none;
    border-radius: 999px;
    background: var(--fb-color);
    color: var(--fb-on-color);
    font-weight: 700;
    cursor: pointer;
}

button.fb-send:hover {
    filter: brightness(1.12);
}

button.fb-send:disabled {
    opacity: 0.6;
    cursor: default;
}

.fb-send svg {
    width: 16px;
    height: 16px;
}

.fb-msg {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 8px;
}

.fb-msg.ok {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.fb-msg.bad {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.fb-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

/* ---------- Handbuch fürs Team (templates/team/handbuch.php) ---------- */

.hb {
    --hb-c: var(--color-accent);
    max-width: 860px;
    margin: 0 auto;
}

.hb-c-admin { --hb-c: #fcb900; }
.hb-c-camping { --hb-c: #28a745; }
.hb-c-merch { --hb-c: #a970ff; }
.hb-c-finanzen { --hb-c: #3d8bfd; }
.hb-c-broetchen { --hb-c: #fd7e14; }
.hb-c-einlass { --hb-c: #20c997; }
.hb-c-umsatz { --hb-c: #e83e8c; }
.hb-c-alle { --hb-c: #9ba3ad; }

/* Kopf im Festival-Look */
.hb-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    padding: 1.6rem 1.25rem 1.4rem;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(14, 16, 20, 0.45) 0%, rgba(14, 16, 20, 0.85) 100%),
        url('images/stage-bg.jpg') 62% 45% / cover no-repeat;
}

.hb-hero-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hb-hero h1 {
    margin: 0.35rem 0 0.4rem;
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hb-hero p {
    margin: 0 0 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.hb-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hb-hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.8rem;
    font-weight: 600;
}

.hb-hero-chips svg {
    width: 14px;
    height: 14px;
}

/* Inhalt als Kachel-Raster */
.hb-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    scroll-margin-top: 5rem;
}

.hb-toc a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.7rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-heading);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.hb-toc a:hover {
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.hb-toc-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 185, 0, 0.16);
    color: var(--color-accent);
}

.hb-toc-icon svg {
    width: 18px;
    height: 18px;
}

.hb-toc-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-muted);
}

/* Kapitel als Karten */
.hb-card {
    margin: 0 0 1rem;
    padding: 1.15rem 1.1rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    scroll-margin-top: 5rem;
}

.hb-card > p,
.hb-card li,
.hb-card dd {
    line-height: 1.55;
}

.hb-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 0.85rem;
}

.hb-head-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-accent-text);
}

.hb-head-icon svg {
    width: 24px;
    height: 24px;
}

.hb-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.hb-head h2 {
    margin: 0;
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--color-heading);
}

.hb-card h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 1.5rem 0 0.55rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--color-accent);
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--color-heading);
}

.hb-card h3 .hb-chip {
    font-size: 0.85rem;
}

.hb-card h4 {
    margin: 1.1rem 0 0.4rem;
    font-size: 0.98rem;
    color: var(--color-heading);
}

.hb-card h4 small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-muted);
}

/* Rollen-Chips */
.hb-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--hb-c);
    background: rgba(155, 163, 173, 0.14);
    background: color-mix(in srgb, var(--hb-c) 18%, transparent);
    color: var(--color-heading);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* Nummerierte Schritte */
.hb-steps {
    list-style: none;
    counter-reset: hb-step;
    margin: 0.5rem 0 0.9rem;
    padding: 0;
}

.hb-steps > li {
    position: relative;
    counter-increment: hb-step;
    padding-left: 2.5rem;
    min-height: 1.8rem;
}

.hb-steps > li + li {
    margin-top: 0.6rem;
}

.hb-steps > li::before {
    content: counter(hb-step);
    position: absolute;
    left: 0;
    top: -0.05rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 800;
    font-size: 0.85rem;
}

/* Aufzählung mit Punkt in Akzentfarbe */
.hb-list {
    list-style: none;
    margin: 0.5rem 0 0.9rem;
    padding: 0;
}

.hb-list > li {
    position: relative;
    padding-left: 1.2rem;
}

.hb-list > li + li {
    margin-top: 0.45rem;
}

.hb-list > li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Hinweiskästen */
.hb-note {
    --hb-n: #3d8bfd;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    margin: 0.8rem 0;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border-left: 4px solid var(--hb-n);
    background: rgba(61, 139, 253, 0.1);
    background: color-mix(in srgb, var(--hb-n) 11%, transparent);
}

.hb-note-warn { --hb-n: #fd7e14; }
.hb-note-stop { --hb-n: #dc3545; }
.hb-note-accent { --hb-n: #fcb900; }

.hb-note > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    color: var(--hb-n);
}

.hb-note p {
    margin: 0;
}

/* Kleine Kacheln */
.hb-grid {
    display: grid;
    gap: 0.6rem;
    margin: 0.6rem 0 0.9rem;
}

.hb-mini {
    padding: 0.75rem 0.85rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.hb-mini strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--color-heading);
}

.hb-mini span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--color-muted);
}

/* Rollen-Karten */
.hb-roles {
    display: grid;
    gap: 0.65rem;
    margin: 0.6rem 0 0.9rem;
}

.hb-role {
    padding: 0.8rem 0.9rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--hb-c);
    border-radius: 12px;
}

.hb-role-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.5rem;
}

.hb-role-top strong {
    font-size: 1.02rem;
    color: var(--color-heading);
}

.hb-role p {
    margin: 0.45rem 0 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.hb-role-start {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--color-muted);
}

.hb-role-start strong {
    color: var(--color-text);
}

.hb-role-start svg {
    width: 14px;
    height: 14px;
}

/* Weg zur Seite als Pille */
.hb-path {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.2rem 0 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-muted);
}

.hb-path svg {
    width: 14px;
    height: 14px;
}

/* Zahlungsstatus an der Ausgabe */
.hb-status {
    display: grid;
    gap: 0.35rem;
    margin: 0.5rem 0 0.2rem;
}

.hb-status span {
    --hb-s: #28a745;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(40, 167, 69, 0.12);
    background: color-mix(in srgb, var(--hb-s) 13%, transparent);
}

.hb-status .hb-status-cash { --hb-s: #fcb900; }
.hb-status .hb-status-stop { --hb-s: #dc3545; }

.hb-status svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    color: var(--hb-s);
}

/* Termine als Zeitleiste */
.hb-timeline {
    margin: 0.55rem 0 0.2rem 0.4rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
}

.hb-timeline > div {
    position: relative;
}

.hb-timeline > div + div {
    margin-top: 0.5rem;
}

.hb-timeline > div::before {
    content: "";
    position: absolute;
    left: calc(-1rem - 6px);
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
}

.hb-timeline strong {
    display: block;
    color: var(--color-heading);
}

.hb-timeline span {
    display: block;
    font-size: 0.88rem;
    color: var(--color-muted);
}

/* Begriff und Erklärung als Zeilen */
.hb-rows {
    margin: 0.5rem 0 0.9rem;
}

.hb-rows > div {
    display: grid;
    gap: 0.15rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}

.hb-rows > div:last-child {
    border-bottom: 0;
}

.hb-rows dt {
    font-weight: 700;
    color: var(--color-heading);
}

.hb-rows dd {
    margin: 0;
    font-size: 0.92rem;
}

/* Benachrichtigungen mit Empfänger-Chips */
.hb-notify {
    list-style: none;
    margin: 0.5rem 0 0.9rem;
    padding: 0;
}

.hb-notify li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.hb-notify li:last-child {
    border-bottom: 0;
}

.hb-notify-event {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.93rem;
}

.hb-notify-to {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Fragen zum Aufklappen */
.hb-faq details {
    margin: 0 0 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.hb-faq details[open] {
    border-color: var(--color-accent);
}

.hb-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
    color: var(--color-heading);
    cursor: pointer;
    list-style: none;
}

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

.hb-faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-accent);
}

.hb-faq details[open] summary::after {
    content: "\2212";
}

.hb-faq details p {
    margin: 0;
    padding: 0 0.9rem 0.85rem;
}

.hb-totop {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
}

.hb-totop svg {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
}

@media (min-width: 600px) {
    .hb-grid,
    .hb-roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-rows > div {
        grid-template-columns: 10rem 1fr;
    }

    .hb-notify li {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hb-notify-to {
        justify-content: flex-end;
    }
}

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

    .hb-hero {
        padding: 2.2rem 2rem 1.8rem;
    }

    .hb-hero h1 {
        font-size: 2.9rem;
    }

    .hb-card {
        padding: 1.5rem 1.6rem 1.3rem;
    }
}

.profile-handbook-link {
    margin-top: 0.75rem;
}

/* ---------- News: seitlich wischen zwischen Beiträgen (partials/news_swipe.php, news-swipe.js) ---------- */

html.news-swiping,
html.news-swiping body {
    overflow-x: hidden;
}

.news-swipe-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 1.5rem 0 1rem;
}

.news-swipe-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-heading);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
}

.news-swipe-link:hover {
    border-color: var(--color-accent);
}

.news-swipe-link-next {
    grid-column: 2;
    justify-content: flex-end;
    text-align: right;
}

.news-swipe-link span {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-swipe-link small,
.news-swipe-peek small {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.news-swipe-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

/* Vorschau am Rand: schiebt sich beim Wischen mit herein */
.news-swipe-peek {
    position: fixed;
    top: 42%;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(62vw, 240px);
    padding: 0.85rem 0.9rem;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    color: var(--color-heading);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    visibility: hidden;
    pointer-events: none;
}

html.news-swiping .news-swipe-peek {
    visibility: visible;
}

.news-swipe-peek-next {
    right: 0;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    transform: translateX(100%);
}

.news-swipe-peek-prev {
    left: 0;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    transform: translateX(-100%);
}

.news-swipe-peek svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

/* Finger, der das Wischen andeutet: Zeile auf Höhe der Überschrift (top setzt news-swipe.js) */
.news-swipe-hint {
    position: fixed;
    left: 0;
    right: 0;
    top: 30%;
    z-index: 46;
    height: 64px;
    pointer-events: none;
}

.news-swipe-hint[hidden] {
    display: none;
}

.news-swipe-hint-finger {
    position: absolute;
    right: 14%;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #14171c;
    box-shadow: 0 0 0 6px rgba(252, 185, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
}

.news-swipe-hint-finger svg {
    width: 34px;
    height: 34px;
}

.news-swipe-hint-label {
    position: absolute;
    left: 50%;
    top: 74px;
    transform: translateX(-50%);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    opacity: 0;
}

.news-swipe-hint.is-playing .news-swipe-hint-finger {
    animation: news-swipe-finger 2.9s ease forwards;
}

.news-swipe-hint.is-playing .news-swipe-hint-label {
    animation: news-swipe-label 2.9s ease forwards;
}

@keyframes news-swipe-finger {
    0% { opacity: 0; transform: translateX(0) scale(1.25); }
    14% { opacity: 1; transform: translateX(0) scale(1); }
    22% { opacity: 1; transform: translateX(0) scale(0.88); }
    46% { opacity: 1; transform: translateX(-150px) scale(0.88); }
    66% { opacity: 1; transform: translateX(-150px) scale(0.88); }
    74% { opacity: 1; transform: translateX(-150px) scale(1); }
    100% { opacity: 0; transform: translateX(-150px) scale(1); }
}

@keyframes news-swipe-label {
    0%, 10% { opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Vorschau-Karte wartet in der Mitte, bis der nächste Beitrag geladen ist */
.news-swipe-peek.is-loading {
    border-width: 2px;
    border-style: solid;
    border-radius: 14px;
    animation: news-swipe-wait 1s ease-in-out infinite alternate;
}

@keyframes news-swipe-wait {
    from { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
    to { box-shadow: 0 0 0 6px rgba(252, 185, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35); }
}

/* Neue Seite gleitet aus der Wischrichtung herein (Klasse setzt layout.php vor dem ersten Bild) */
html.news-swipe-enter-right main.container {
    animation: news-swipe-enter-right 0.32s ease-out backwards;
}

html.news-swipe-enter-left main.container {
    animation: news-swipe-enter-left 0.32s ease-out backwards;
}

@keyframes news-swipe-enter-right {
    from { opacity: 0; transform: translateX(70px); }
    to { opacity: 1; transform: none; }
}

@keyframes news-swipe-enter-left {
    from { opacity: 0; transform: translateX(-70px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html.news-swipe-enter-right main.container,
    html.news-swipe-enter-left main.container,
    .news-swipe-peek.is-loading {
        animation: none;
    }
}

/* Vorgeladener Nachbar-Beitrag (news-swipe.js): echter Inhalt, schiebt sich beim Wischen vom Rand herein.
   Unter der Kopfzeile, unter der unteren Leiste (z-index 40). */
.news-swipe-pane {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 39;
    overflow: hidden;
    background: var(--color-bg);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
    visibility: hidden;
    pointer-events: none;
}

html.news-swiping .news-swipe-pane {
    visibility: visible;
}

/* ---------- Offline-Inhalte (assets/offline.js, partials/offline_settings.php) ---------- */

/* Ladeleiste als unterer Teil der Kopfzeile (offline.js hängt sie an .site-header an): fährt auf und wieder zu,
   überdeckt nichts, die Seite rutscht mit. Fortschritt als Linie ganz unten. */
.offline-sync-bar {
    --osb: var(--color-accent);
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
    background: var(--color-header-bg);
    color: var(--color-header-text);
}

.offline-sync-bar.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.offline-sync-bar-clip {
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offline-sync-bar.is-ok { --osb: #3ccf63; }
.offline-sync-bar.is-warn { --osb: #ff9a3c; }

.offline-sync-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem 0.55rem 1rem;
}

.offline-sync-bar-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--osb);
}

.offline-sync-bar-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.offline-sync-bar-body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.offline-sync-bar-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--osb);
}

.offline-sync-bar-text {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.82);
}

.offline-sync-bar-close {
    flex-shrink: 0;
    align-self: center;
    padding: 0 0.4rem;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.offline-sync-bar.is-load .offline-sync-bar-close {
    display: none;
}

/* Fortschritt: dünne Linie am unteren Rand der Kopfzeile, beim Ergebnis in dessen Farbe voll */
.offline-sync-bar .offline-sync-bar-track {
    height: 3px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.12);
}

.offline-sync-bar .offline-sync-bar-fill {
    background: var(--osb);
}

@media (prefers-reduced-motion: reduce) {
    .offline-sync-bar {
        transition: none;
    }
}

.offline-sync-bar-track,
.offline-settings-usage,
.offline-settings-progress-track {
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    overflow: hidden;
}

.offline-sync-bar-fill,
.offline-settings-usage > div,
.offline-settings-progress-track > div {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

/* Einverständnis: Leiste über der unteren Icon-Leiste (.dock-strip, siehe Abschnitt .bottom-dock) */
.offline-consent .dock-strip-text b {
    color: #fff;
}

/* Einstellungen */
.offline-settings-box {
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.offline-settings-box p {
    margin-top: 0;
}

.offline-settings-status {
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.offline-settings-usage {
    margin-bottom: 0.35rem;
}

.offline-settings-limit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    font-weight: 600;
}

.offline-settings-limit select {
    width: auto;
}

.offline-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.offline-settings-actions .button {
    margin: 0;
}

.offline-settings-off {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.offline-settings-progress {
    margin-top: 1rem;
}

.offline-settings-progress p {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
}

/* Camping-Gruppe anlegen: Beitreten per Einladung klein und aufklappbar (camping/group_create.php) */
.group-join-collapsible {
    padding: 0.75rem 1rem;
}

.group-join-collapsible summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.group-join-collapsible summary::-webkit-details-marker {
    display: none;
}

.group-join-collapsible summary::after {
    content: "+";
    color: var(--color-accent);
    font-size: 1.3rem;
    line-height: 1;
}

.group-join-collapsible[open] summary::after {
    content: "\2212";
}

.group-join-collapsible[open] summary {
    margin-bottom: 0.6rem;
}

.offline-settings-missing {
    margin: 0.3rem 0 0.6rem;
    font-size: 0.85rem;
}

.offline-settings-missing summary {
    cursor: pointer;
    color: var(--color-muted);
}

.offline-settings-missing ul {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
    word-break: break-all;
    color: var(--color-muted);
}

/* User-Liste: Anzeige "User x bis y von n", Auswahl pro Seite und kurze Seitenleiste */
.user-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.user-list-meta p {
    margin: 0 0 0.75rem;
}

.user-list-perpage {
    font-size: 0.88rem;
    color: var(--color-muted);
}

.user-list-perpage a,
.user-list-perpage strong {
    margin-left: 0.35rem;
}

.user-list-perpage strong {
    color: var(--color-heading);
}

.pagination {
    align-items: center;
}

.pagination a,
.pagination strong {
    min-width: 2rem;
    text-align: center;
}

.pagination .pagination-step {
    min-width: 0;
    font-weight: 600;
}

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

/* Hinweis für Gäste: Konto anlegen bzw. wieder anmelden (partials/account_nudge.php), Streifen in .bottom-dock */
.account-nudge-actions,
.dock-strip-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.9rem;
    margin-top: 0.5rem;
}

.account-nudge-login,
.dock-strip-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.dock-strip .button-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.dock-strip .button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.account-nudge-login:hover,
.dock-strip-link:hover {
    color: var(--color-accent);
}
/* Breite Seiten (z. B. Registrierte User, bodyClass "page-wide"): am Rechner volle Breite statt Inhaltsspalte */
@media (min-width: 1000px) {
    body.page-wide main.container {
        max-width: 1700px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.user-list-table table {
    font-size: 0.9rem;
}

.user-list-table th {
    white-space: nowrap;
}
.user-edit-resend { margin: 0.25rem 0 1.25rem; }

/* Ergebnis des Bestätigungslinks (auth/confirmed.php) */
.confirm-result {
    max-width: 30rem;
    margin: 2rem auto;
    text-align: center;
}

.confirm-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: #28a745;
    color: #ffffff;
}

.confirm-result.is-error .confirm-result-icon {
    background: #fd7e14;
}

.confirm-result-icon svg {
    width: 34px;
    height: 34px;
}

.confirm-result .button {
    margin-top: 0.5rem;
}

.confirm-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* "Nicht mehr automatisch speichern" mit Abstand zu den Knöpfen darüber (partials/offline_settings.php) */
.offline-settings-actions + .form-hint {
    margin-top: 1.25rem;
}

/* App-Exklusiv-Kachel: Countdown bis Bestellstart bzw. Bestellende (partials/exklusiv_tile.php), wie der Festival-Countdown */
.exklusiv-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0.35rem 0 0.25rem;
    padding: 0.6rem 0.85rem 0.55rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 23, 28, 0.92), rgba(20, 23, 28, 0.75)), url('images/stage-bg.jpg') center / cover;
    border: 1px solid rgba(252, 185, 0, 0.35);
}

.exklusiv-countdown-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.exklusiv-countdown-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.exklusiv-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.4rem;
}

.exklusiv-countdown-unit b {
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--color-accent);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-variant-numeric: tabular-nums;
}

.exklusiv-countdown-unit small {
    margin-top: 0.15rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.exklusiv-countdown-sep {
    font-family: 'Edo', 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.35);
}

.exklusiv-countdown.is-urgent {
    border-color: rgba(255, 77, 77, 0.6);
}

.exklusiv-countdown.is-urgent .exklusiv-countdown-unit b {
    color: #ff5a5a;
}

.exklusiv-countdown.is-urgent .exklusiv-countdown-label {
    color: #ff8a8a;
}

/* Countdown über die volle Breite der Kachel, Ziffern gleichmäßig verteilt */
.exklusiv-countdown {
    align-self: stretch;
    align-items: center;
}

.exklusiv-countdown-row {
    width: 100%;
    justify-content: space-between;
}

.exklusiv-countdown-unit {
    flex: 1;
}

/* Countdown auf der Ansichtsseite /app-exklusiv: volle Breite */
.exklusiv-countdown-page {
    display: flex;
    margin: 0.5rem 0 1.25rem;
}

.exklusiv-countdown-page .exklusiv-countdown {
    flex: 1;
    margin: 0;
}

/* ---------- Besondere Tage (Startseite unter dem Laufband, Detailseite /besondere-tage) ----------
   Farben je Anlass: --sd-stripe (Streifen), --sd-glow (Schein im Kartenkopf), --sd-pill(-text) (Marke).
   Gleiche Variablen auf <html data-special="…"> für den Streifen unter der Kopfzeile und den Equalizer. */

.sd-accent-rft, html[data-special="rft"] {
    --sd-stripe: var(--color-accent); --sd-glow: rgba(252, 185, 0, 0.32); --sd-pill: var(--color-accent); --sd-pill-text: #14171c;
}
.sd-accent-regenbogen, html[data-special="regenbogen"] {
    --sd-stripe: linear-gradient(90deg, #e40303 0 16.66%, #ff8c00 0 33.33%, #ffed00 0 50%, #008026 0 66.66%, #24408e 0 83.33%, #732982 0);
    --sd-glow: rgba(155, 70, 200, 0.4); --sd-pill: #ffffff; --sd-pill-text: #14171c;
}
.sd-accent-trans, html[data-special="trans"] {
    --sd-stripe: linear-gradient(90deg, #5bcefa 0 20%, #f5a9b8 0 40%, #ffffff 0 60%, #f5a9b8 0 80%, #5bcefa 0);
    --sd-glow: rgba(91, 206, 250, 0.32); --sd-pill: #5bcefa; --sd-pill-text: #14171c;
}
.sd-accent-lila, html[data-special="lila"] {
    --sd-stripe: #9b5de5; --sd-glow: rgba(155, 93, 229, 0.45); --sd-pill: #a970f0; --sd-pill-text: #14171c;
}
.sd-accent-orange, html[data-special="orange"] {
    --sd-stripe: #ff8a1f; --sd-glow: rgba(255, 138, 31, 0.38); --sd-pill: #ff8a1f; --sd-pill-text: #14171c;
}
.sd-accent-gruen, html[data-special="gruen"] {
    --sd-stripe: #2fb36b; --sd-glow: rgba(47, 179, 107, 0.38); --sd-pill: #3cc47a; --sd-pill-text: #14171c;
}
.sd-accent-rot, html[data-special="rot"] {
    --sd-stripe: #e04848; --sd-glow: rgba(224, 72, 72, 0.38); --sd-pill: #ef5b5b; --sd-pill-text: #14171c;
}
.sd-accent-blau, html[data-special="blau"] {
    --sd-stripe: #3d7bfd; --sd-glow: rgba(61, 123, 253, 0.4); --sd-pill: #5a8fff; --sd-pill-text: #14171c;
}

/* Streifen unter der Kopfzeile auf allen Seiten */
html[data-special] .site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--sd-stripe);
    pointer-events: none;
}

/* Equalizer im Startbild in den Farben des Anlasses */
html[data-special] .home-eq { opacity: 0.32; }
html[data-special]:not([data-special="regenbogen"]):not([data-special="trans"]) .home-eq span {
    background: var(--sd-pill);
}
html[data-special="regenbogen"] .home-eq span:nth-child(6n + 1) { background: #e40303; }
html[data-special="regenbogen"] .home-eq span:nth-child(6n + 2) { background: #ff8c00; }
html[data-special="regenbogen"] .home-eq span:nth-child(6n + 3) { background: #ffed00; }
html[data-special="regenbogen"] .home-eq span:nth-child(6n + 4) { background: #008026; }
html[data-special="regenbogen"] .home-eq span:nth-child(6n + 5) { background: #3a5fd0; }
html[data-special="regenbogen"] .home-eq span:nth-child(6n) { background: #9a3fb0; }
html[data-special="trans"] .home-eq span:nth-child(5n + 1),
html[data-special="trans"] .home-eq span:nth-child(5n) { background: #5bcefa; }
html[data-special="trans"] .home-eq span:nth-child(5n + 2),
html[data-special="trans"] .home-eq span:nth-child(5n + 4) { background: #f5a9b8; }
html[data-special="trans"] .home-eq span:nth-child(5n + 3) { background: #ffffff; }

/* Gedenktag: kein Equalizer (keine Party-Bewegung) */
html[data-special-quiet] .home-eq { display: none; }

.sd { margin: 0 0 1.5rem; }
.sd[hidden] { display: none; }

.sd-more {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sd-more svg { width: 16px; height: 16px; }

/* Groß: Karte im Teaser-Look (wie Tickets/Crew), Kopf dunkel mit farbigem Schein */
.sd-banner {
    display: block;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
}
.sd-banner:hover, .sd-banner:focus-visible { color: var(--color-text); border-color: var(--color-border-strong); }
.sd-banner-cover {
    position: relative;
    isolation: isolate;
    display: block;
    padding: 1.6rem 1.25rem 1.15rem;
    /* Farbschein als eigene Ebene (::after, atmet), siehe „Icons und Effekte“ */
    background: linear-gradient(135deg, var(--color-header-bg), #0e1115);
    color: #ffffff;
}
.sd-banner-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sd-banner-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.55rem;
}
.sd-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    background: var(--sd-pill, var(--color-accent));
    color: var(--sd-pill-text, var(--color-accent-text));
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sd-banner-cat {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}
.sd-banner-title {
    display: block;
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.85rem;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.sd-stripe {
    display: block;
    height: 6px;
    background: var(--sd-stripe, var(--color-accent));
}
.sd-banner-body {
    display: block;
    padding: 0.9rem 1.25rem 1.1rem;
}
.sd-banner-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

/* Gedenken: ruhig, ohne Farbe, ohne Festschrift */
.sd-memorial {
    display: block;
    padding: 1rem 1.25rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-muted);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
}
.sd-memorial:hover, .sd-memorial:focus-visible { color: var(--color-text); border-color: var(--color-border-strong); border-left-color: var(--color-muted); }
.sd-memorial-kicker {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.sd-memorial-title {
    display: block;
    margin-bottom: 0.4rem;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-heading);
}
.sd-memorial-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

/* Gedenktag: weitere Anlässe ruhig als Textzeile unter der Karte */
.sd-also { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--color-muted); }
.sd-also-label { margin-right: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sd-also a { color: var(--color-text); font-weight: 600; }

/* Etiketten in einer Zeile unter dem Laufband: mittig, wenn sie passen, sonst seitlich wischbar */
.sd-tags {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    margin: 0 -1rem 1.25rem;
    padding: 0.15rem 1rem 0.25rem;
    scrollbar-width: none;
}
.sd-tags::-webkit-scrollbar { display: none; }
.sd-tags[hidden] { display: none; }
.festival-ticker + .sd-tags { margin-top: -0.7rem; }
.sd-tags > :first-child { margin-left: auto; }
.sd-tags > :last-child { margin-right: auto; }
@media (min-width: 700px) {
    .sd-tags { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
.sd-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.36rem 0.5rem 0.36rem 0.7rem;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-heading);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
}
.sd-tag svg { flex-shrink: 0; width: 15px; height: 15px; }
.sd-tag .sd-tag-chevron { margin-left: -0.1rem; opacity: 0.5; }
.sd-tag:hover, .sd-tag:focus-visible { color: var(--color-heading); border-color: var(--color-heading); }
/* Gruß-Tag: gelb umrandet und hinterlegt */
.sd-tag-gruss { border-color: var(--color-accent); background: var(--color-highlight-bg); }
/* Lange große Aktion (Pride Month) nach dem ersten Besuch: Rand in den Farben des Anlasses */
.sd-tag-gross,
.sd-tag-gross:hover,
.sd-tag-gross:focus-visible {
    border: 2px solid transparent;
    background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box, var(--sd-stripe, var(--color-accent)) border-box;
}

/* Detailseite /besondere-tage */
.sd-detail-head {
    overflow: hidden;
    margin: 0 0 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.sd-detail-head .sd-banner-cover { padding: 1.8rem 1.25rem 1.3rem; }
.sd-detail-head h1.sd-banner-title {
    margin: 0;
    color: #ffffff;
    font-size: 2.1rem;
}
.sd-detail-phrase {
    margin: 0.6rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}
.sd-detail-quiet {
    margin: 0 0 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--color-border);
}
.sd-detail-quiet-title {
    margin: 0;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}
.sd-detail-when {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0 0.4rem;
    font-weight: 700;
    color: var(--color-heading);
}
.sd-detail-when .inline-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15rem; }
.sd-detail-hint {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.sd-detail-text { margin-top: 1rem; }

/* Admin › Besondere Tage */
.sd-admin-back { margin: 0 0 0.5rem; font-size: 0.9rem; }
.sd-admin-open { max-width: 640px; }
.sd-admin-open ul { margin: 0.3rem 0 0.5rem; padding-left: 1.2rem; }
.sd-admin-open p { margin: 0; }
.sd-admin-actions-top { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.25rem; }
.sd-admin-box {
    max-width: 640px;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.sd-admin-box h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.sd-admin-box .form-hint { margin: 0 0 0.75rem; }
.sd-admin-box form + .form-hint { margin: 0.6rem 0 0; }
.sd-admin-line { display: flex; flex-direction: column; margin: 0 0 0.6rem; }
.sd-admin-line span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.sd-admin-preview { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.sd-admin-preview label,
.sd-admin-filter label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
.sd-admin-preview input,
.sd-admin-filter select {
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 6px;
    background: var(--color-input-bg);
    color: var(--color-text);
    font: inherit;
}
.sd-admin-preview .button { margin: 0; }
.sd-admin-list-title { display: flex; align-items: baseline; gap: 0.6rem; }
.sd-admin-count { font-family: 'Barlow', Arial, sans-serif; font-size: 0.85rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--color-muted); }
.sd-admin-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }
.sd-admin-filter label { flex: 1 1 140px; }
.sd-admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 640px; }
.sd-admin-item {
    padding: 0.8rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.sd-admin-box .sd-admin-item { background: var(--color-bg); }
.sd-admin-item.is-inactive { opacity: 0.6; }
.sd-admin-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.25rem; }
.sd-admin-name { font-weight: 700; color: var(--color-heading); text-decoration: none; line-height: 1.3; }
a.sd-admin-name:hover { text-decoration: underline; }
.sd-admin-meta { display: block; margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--color-muted); }
.sd-admin-warn { color: var(--color-error-text); font-weight: 600; }
.sd-admin-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; margin-top: 0.6rem; font-size: 0.88rem; font-weight: 600; }
.sd-admin-item-actions a,
.sd-admin-linkbutton { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--color-heading); }
.sd-admin-item-actions svg { width: 15px; height: 15px; }
/* button[type="submit"] davor nötig, sonst greift die gelbe Absende-Knopf-Regel */
.sd-admin-linkbutton,
button[type="submit"].sd-admin-linkbutton,
button[type="submit"].sd-admin-linkbutton:hover { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--color-heading); font: inherit; text-transform: none; letter-spacing: normal; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sd-admin-linkbutton:hover,
button[type="submit"].sd-admin-linkbutton:hover { color: var(--color-accent); }
.sd-tier {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
}
.sd-tier-gross { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.sd-tier-gruss { border-color: var(--color-accent); }
.sd-tier-gedenken { background: var(--color-locked-bg); color: var(--color-muted); }
.sd-flag { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--color-locked-bg); color: var(--color-text); }
.sd-flag-warn { background: var(--color-highlight-bg); color: var(--color-heading); box-shadow: inset 0 0 0 1px var(--color-accent); }
.sd-admin-form fieldset { margin: 0.75rem 0 0.25rem; padding: 0.75rem 0.9rem 0.9rem; border: 1px solid var(--color-border); border-radius: 8px; display: flex; flex-direction: column; gap: 0.5rem; }
.sd-admin-form legend { padding: 0 0.3rem; font-weight: 700; }
.sd-rule, .sd-rule-duration { display: flex; flex-direction: column; gap: 0.5rem; }
.sd-rule[hidden], .sd-rule-duration[hidden] { display: none; }
.sd-rule label { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; }
.sd-rule-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.6rem; }
.sd-year-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.sd-year-nav a {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}
.sd-year-nav a[aria-current="page"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.sd-occ-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.sd-occ-form input[type="date"] {
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 6px;
    background: var(--color-input-bg);
    color: var(--color-text);
    font: inherit;
}
.sd-occ-form .button-secondary,
.sd-admin-item-actions .button,
.sd-admin-item-actions .button-secondary { padding: 0.45rem 0.9rem; font-size: 0.9rem; margin: 0; }
.sd-occ-list { list-style: none; margin: 0; padding: 0; }
.sd-occ { display: flex; gap: 0.8rem; padding: 0.65rem 0; border-top: 1px solid var(--color-border); }
.sd-occ:first-child { border-top: 0; padding-top: 0; }
.sd-occ-date { flex: 0 0 3rem; font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--color-heading); }
.sd-occ-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sd-occ-name { font-weight: 700; color: var(--color-heading); line-height: 1.3; }
.sd-occ-flags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.sd-occ-edit summary { margin-top: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--color-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sd-occ-edit .inline-form { display: inline-block; margin-top: 0.5rem; }
.sd-admin-item-actions .inline-form { display: inline-flex; }
.sd-admin-examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; margin: 0 0 0.9rem; }
button[type="submit"].sd-admin-example {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
    margin: 0; padding: 0.7rem 0.75rem;
    background: var(--color-bg); color: var(--color-text);
    border: 1px solid var(--color-border-strong); border-radius: 8px;
    font: inherit; text-transform: none; letter-spacing: normal; text-align: left; cursor: pointer;
}
button[type="submit"].sd-admin-example:hover { background: var(--color-bg); border-color: var(--color-accent); }
.sd-admin-example-name { font-weight: 700; line-height: 1.25; color: var(--color-heading); }
.sd-admin-example .sd-admin-meta { margin: 0; }
.sd-admin-example-kind { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.sd-admin-view-as { display: flex; flex-direction: column; gap: 0.25rem; margin: 0 0 0.9rem; font-size: 0.85rem; font-weight: 600; }
.sd-admin-view-as select {
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 6px;
    background: var(--color-input-bg);
    color: var(--color-text);
    font: inherit;
    font-weight: 400;
}
.sd-admin-step { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Besondere Tage: Icons und Effekte ---------- */

/* Etiketten unter dem Laufband: nacheinander einblenden */
.sd-tag { animation: sd-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.2s + var(--i, 0) * 0.12s); }
@keyframes sd-rise {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

/* Gruß-Tag: Begrüßung mit wanderndem Goldschimmer und Funkeln */
.home-hero .dashboard-greeting.sd-greeting {
    background: linear-gradient(100deg, #ffffff 0%, #ffffff 38%, #ffe08a 47%, #fff6d6 50%, #ffe08a 53%, #ffffff 62%, #ffffff 100%);
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
    animation: sd-shine 6s ease-in-out infinite;
}
@keyframes sd-shine {
    0% { background-position: 100% 0; }
    55%, 100% { background-position: 0% 0; }
}
.sd-sparkles { position: absolute; inset: 0 0 auto 0; height: 9rem; pointer-events: none; }
.sd-sparkles span {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffe08a;
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    opacity: 0;
    animation: sd-twinkle 2.8s ease-in-out infinite;
}
.sd-sparkles span:nth-child(1) { left: 7%; top: 18%; animation-delay: 0s; }
.sd-sparkles span:nth-child(2) { left: 90%; top: 12%; width: 10px; height: 10px; animation-delay: 0.7s; }
.sd-sparkles span:nth-child(3) { left: 14%; top: 58%; width: 9px; height: 9px; animation-delay: 1.4s; }
.sd-sparkles span:nth-child(4) { left: 84%; top: 52%; animation-delay: 2.1s; }
.sd-sparkles span:nth-child(5) { left: 50%; top: 2%; width: 8px; height: 8px; animation-delay: 1.1s; }
.sd-sparkles span:nth-child(6) { left: 30%; top: 8%; width: 7px; height: 7px; animation-delay: 1.9s; }
@keyframes sd-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    45% { opacity: 1; transform: scale(1) rotate(45deg); }
    70% { opacity: 0.2; transform: scale(0.6) rotate(70deg); }
}

/* Große Karte: Wasserzeichen-Icon, fließender Farbstreifen, atmender Farbschein */
.sd-banner-cover { overflow: hidden; }
.sd-banner-mark {
    position: absolute;
    right: -18px;
    top: 50%;
    width: 132px;
    height: 132px;
    transform: translateY(-50%) rotate(-12deg);
    color: #ffffff;
    opacity: 0.1;
    stroke-width: 1.3;
    z-index: 0;
    pointer-events: none;
}
.sd-banner-meta, .sd-banner-title, .sd-detail-phrase { position: relative; z-index: 1; }
.sd-banner-cat { display: inline-flex; align-items: center; gap: 0.3rem; }
.sd-banner-cat svg { width: 15px; height: 15px; }
.sd-banner-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(90% 120% at 100% 0%, var(--sd-glow) 0%, rgba(20, 23, 28, 0) 60%);
    animation: sd-breathe 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sd-breathe {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
.sd-stripe {
    background-size: 200% 100%;
    background-repeat: repeat-x;
    animation: sd-flow 9s linear infinite;
}
@keyframes sd-flow {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}

/* Gedenken: Kerze mit ruhig flackernder Flamme */
.sd-memorial-kicker { display: inline-flex; align-items: center; gap: 0.35rem; }
.sd-candle { width: 18px; height: 18px; color: var(--color-muted); }
.sd-candle .icon-flame { color: #f2b84b; fill: rgba(242, 184, 75, 0.35); transform-box: fill-box; transform-origin: 50% 100%; animation: sd-flicker 3.2s ease-in-out infinite; }
@keyframes sd-flicker {
    0%, 100% { transform: scale(1, 1); opacity: 1; }
    30% { transform: scale(0.94, 0.9); opacity: 0.85; }
    55% { transform: scale(1.03, 1.06); opacity: 1; }
    80% { transform: scale(0.97, 0.95); opacity: 0.9; }
}

/* Gedenktag: Startbild schwarz-weiß und gedämpft, Laufband grau statt gelb */
html[data-special-quiet] .home-hero { filter: grayscale(1) brightness(0.82); }
html[data-special-quiet] .festival-ticker { background: #3a3f47; color: #e4e7eb; }

@media (prefers-reduced-motion: reduce) {
    .sd-tag, .home-hero .dashboard-greeting.sd-greeting, .sd-sparkles span, .sd-banner-cover::after, .sd-stripe, .sd-candle .icon-flame { animation: none; }
    .sd-sparkles { display: none; }
}
.sd-admin-probe { max-width: 420px; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.sd-admin-probe .form-hint { margin-top: 0.5rem; }

/* Silvester: Feuerwerk im Startbild (statt Funkeln), 5 Bursts mit je 14 Funken */
.sd-fireworks { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sd-burst { position: absolute; width: 0; height: 0; --d: 0s; }
.sd-burst:nth-child(1) { left: 16%; top: 24%; color: #ffd34d; --d: 0s; }
.sd-burst:nth-child(2) { left: 82%; top: 18%; color: #ff5e8a; --d: 0.8s; }
.sd-burst:nth-child(3) { left: 52%; top: 9%; color: #7fd8ff; --d: 1.6s; }
.sd-burst:nth-child(4) { left: 30%; top: 50%; color: #c39bff; --d: 2.3s; }
.sd-burst:nth-child(5) { left: 72%; top: 52%; color: #8dffb0; --d: 2.9s; }
.sd-burst i {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
    opacity: 0;
    transform: rotate(var(--a)) translateY(0);
    animation: sd-spark 3.6s cubic-bezier(0.15, 0.7, 0.3, 1) infinite;
    animation-delay: var(--d);
}
@keyframes sd-spark {
    0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(1); }
    4% { opacity: 1; }
    40% { opacity: 1; transform: rotate(var(--a)) translateY(-44px) scale(0.9); }
    62% { opacity: 0; transform: rotate(var(--a)) translateY(-54px) scale(0.4); }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(-54px) scale(0.4); }
}
@media (prefers-reduced-motion: reduce) {
    .sd-fireworks { display: none; }
}

/* Vorschau Besondere Tage: Leiste mit ‹ › zum Durchblättern */
.sd-sim-bar { gap: 0.4rem; padding-left: 0.4rem; padding-right: 0.6rem; }
.sd-sim-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
}
.sd-sim-arrow svg { width: 20px; height: 20px; }
.sd-sim-arrow:hover, .sd-sim-arrow:focus-visible { color: #ffffff; background: rgba(255, 255, 255, 0.3); }
.sd-sim-arrow.is-off { opacity: 0.3; }
.sd-sim-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25; }
.sd-sim-line { font-size: 0.8rem; white-space: nowrap; }
.sd-sim-names { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }

/* Admin-Dashboard: Festival-Wetter über den Kennzahlen */
.admin-dashboard-weather { margin-bottom: 1.25rem; }

/* ---------- Festival-Wetter: Kachel mit Himmel (Startseite, Admin-Dashboard, Admin-Vorschau) ---------- */
/* Oben ein dunkler Himmel mit Farbschein je Wetterlage (Sonne gelb, Regen blau ...), Bewegung je Lage,
   großer Temperatur in Edo; darunter die übrigen Tage. Ohne Bewegung (prefers-reduced-motion) ruhig. */
.weather-tile { padding: 0; gap: 0; overflow: hidden; }
.weather-tile, .weather-hero, .weather-hour, .weather-day { --wx-top: #232830; --wx-glow: rgba(170, 180, 195, 0.3); --wx-glow-2: rgba(110, 120, 140, 0.22); }
.weather-sky-sonne { --wx-top: #2e2412; --wx-glow: rgba(252, 185, 0, 0.55); --wx-glow-2: rgba(255, 110, 40, 0.28); }
.weather-sky-wolkig { --wx-top: #222935; --wx-glow: rgba(252, 185, 0, 0.32); --wx-glow-2: rgba(120, 150, 200, 0.3); }
.weather-sky-regen { --wx-top: #132035; --wx-glow: rgba(61, 123, 253, 0.45); --wx-glow-2: rgba(40, 190, 220, 0.2); }
.weather-sky-schnee { --wx-top: #1a2736; --wx-glow: rgba(190, 225, 255, 0.42); --wx-glow-2: rgba(120, 170, 230, 0.25); }
.weather-sky-gewitter { --wx-top: #1e1631; --wx-glow: rgba(142, 59, 191, 0.5); --wx-glow-2: rgba(61, 123, 253, 0.25); }

.weather-tile-sky {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0.85rem 1rem 1.05rem;
    background: linear-gradient(165deg, var(--wx-top) 0%, #0e1115 85%);
    color: #ffffff;
}
.weather-tile-sky h3 {
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
}
.weather-tile-sky .weather-phase { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.weather-tile-sky .weather-phase-reliable { background: rgba(252, 185, 0, 0.2); color: #ffd866; }
.weather-tile-sky .weather-phase-live { background: var(--color-accent); color: var(--color-accent-text); }
.weather-tile-sky .weather-info-button,
.weather-tile-sky .weather-info-button:hover { color: rgba(255, 255, 255, 0.7); }

/* Effekte im Himmel */
.weather-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.weather-fx-glow {
    position: absolute;
    left: -60px;
    top: 10px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wx-glow) 0%, rgba(0, 0, 0, 0) 65%);
    animation: wx-breathe 6s ease-in-out infinite;
}
.weather-fx::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wx-glow-2) 0%, rgba(0, 0, 0, 0) 65%);
}
.weather-fx-cloud {
    position: absolute;
    top: 16%;
    left: 100%;
    width: 170px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(7px);
    animation: wx-drift 28s linear infinite;
}
.weather-fx-cloud-2 { top: 58%; width: 230px; height: 56px; opacity: 0.7; animation-duration: 40s; animation-delay: -18s; }
.weather-fx i {
    position: absolute;
    top: -24px;
    left: var(--x);
    width: 1.5px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(rgba(160, 200, 255, 0), rgba(170, 205, 255, 0.75));
    animation: wx-rain calc(0.95s * var(--s)) linear infinite;
    animation-delay: calc(var(--d) * -1);
}
.weather-sky-schnee .weather-fx i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: wx-snow calc(4.5s * var(--s)) linear infinite;
    animation-delay: calc(var(--d) * -2.5);
}
.weather-sky-gewitter .weather-tile-sky::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #d9d2ff;
    opacity: 0;
    pointer-events: none;
    animation: wx-flash 7s linear infinite;
}

/* Großer Wert oben: Symbol, Temperatur, Tag und Ort */
.weather-tile-lead { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.7rem; }
.weather-tile-lead-icon svg {
    display: block;
    width: 3.7rem;
    height: 3.7rem;
    stroke-width: 1.5;
    color: #ffffff;
    filter: drop-shadow(0 0 14px var(--wx-glow));
    animation: wx-float 4.5s ease-in-out infinite;
}
.weather-sky-sonne .weather-tile-lead-icon svg { color: var(--color-accent); animation: wx-spin 30s linear infinite; }
.weather-tile-lead-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.weather-tile-lead-temp {
    font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif;
    font-size: 2.7rem;
    line-height: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.weather-tile-lead-temp small {
    margin-left: 0.4rem;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}
.weather-tile-lead-text { font-size: 0.95rem; font-weight: 700; }
.weather-tile-lead-place { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }
.weather-tile-lead-place svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Unter dem Himmel: Hinweis, Warnung, übrige Tage */
.weather-tile .weather-info-pop { margin: 0.6rem 1rem 0; }
.weather-tile .weather-tile-alert { margin: 0.7rem 1rem 0; }
.weather-tile .weather-tile-unavailable { padding: 0.75rem 1rem; }
.weather-tile .weather-tile-days { padding: 0.7rem 0.5rem 0.65rem; gap: 0; }
.weather-tile .weather-tile-days li { padding: 0 0.25rem; animation: sd-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.15s + var(--i, 0) * 0.1s); }
.weather-tile .weather-tile-days li + li { border-left: 1px solid var(--color-border); }
.weather-tile .weather-tile-day-icon svg { width: 1.7rem; height: 1.7rem; color: var(--color-heading); }
.weather-tile .weather-tile-day-temp { font-size: 1.05rem; }
.weather-tile .weather-tile-foot { padding: 0 1rem 0.6rem; }
.weather-tile .weather-tile-days + .weather-tile-foot { margin-top: -0.2rem; }
.weather-tile-sky + .weather-tile-foot { padding-top: 0.6rem; }

@keyframes wx-breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes wx-drift { from { left: 100%; } to { left: -70%; } }
@keyframes wx-rain { from { transform: translate(0, 0) rotate(12deg); } to { transform: translate(-38px, 210px) rotate(12deg); } }
@keyframes wx-snow { 0% { transform: translate(0, 0); } 50% { transform: translate(10px, 105px); } 100% { transform: translate(-4px, 210px); } }
@keyframes wx-flash { 0%, 90%, 92.5%, 95%, 100% { opacity: 0; } 91% { opacity: 0.22; } 94% { opacity: 0.14; } }
@keyframes wx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes wx-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .weather-fx-glow, .weather-fx-cloud, .weather-tile-lead-icon svg, .weather-tile .weather-tile-days li,
    .weather-sky-sonne .weather-tile-lead-icon svg, .weather-sky-gewitter .weather-tile-sky::after { animation: none; }
    .weather-fx i, .weather-fx-cloud { display: none; }
}

/* Admin › Festival-Wetter: alle Bereiche einklappbar, Auswahlfelder nie breiter als der Bildschirm */
.weather-admin-form label { max-width: 100%; min-width: 0; }
.weather-admin-form select,
.weather-admin-form input { max-width: 100%; min-width: 0; }
.weather-admin-form select { text-overflow: ellipsis; }
.weather-admin-summary-note { font-size: 0.85rem; font-weight: 600; color: var(--color-accent); margin-left: 0.35rem; }
.admin-collapsible .weather-admin-preview summary {
    display: list-item;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 0;
    list-style: revert;
}
.admin-collapsible .weather-admin-preview summary::after { content: none; }
.admin-collapsible .weather-admin-previews { margin-bottom: 0; }
.weather-sky-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.weather-sky-samples { max-width: 26rem; }
.weather-sky-sample[hidden] { display: none; }

/* ---------- Festival-Wetter: Detailseite im selben Look wie die Kachel ---------- */
/* Oben großer Himmel (Wetter jetzt bzw. erster Festivaltag), darunter Stunden und Tage mit Farbe je Wetterlage. */
.weather-hero { border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }
.weather-hero-sky { padding: 1rem 1.15rem 1.1rem; }
.weather-hero-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.weather-hero-lead { margin-top: 0.9rem; gap: 1.1rem; }
.weather-hero-lead .weather-tile-lead-icon svg { width: 4.6rem; height: 4.6rem; }
.weather-hero-lead .weather-tile-lead-temp { font-size: 3.4rem; }
.weather-hero-lead .weather-tile-lead-text { font-size: 1.05rem; }
.weather-hero-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.15rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.weather-hero-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.weather-hero-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.weather-hero-hint { margin: 0.9rem 0 0; font-size: 0.88rem; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.weather-hero .weather-fx i { animation-name: wx-rain-long; }
.weather-hero.weather-sky-schnee .weather-fx i { animation-name: wx-snow-long; }
@keyframes wx-rain-long { from { transform: translate(0, 0) rotate(12deg); } to { transform: translate(-55px, 300px) rotate(12deg); } }
@keyframes wx-snow-long { 0% { transform: translate(0, 0); } 50% { transform: translate(10px, 150px); } 100% { transform: translate(-4px, 300px); } }

/* Symbolfarbe je Wetterlage (Stunden und Tage), in hell und dunkel lesbar */
.weather-hour, .weather-day { --wx-ink: var(--color-muted); }
.weather-hour.weather-sky-sonne, .weather-day.weather-sky-sonne { --wx-ink: #e0a100; }
.weather-hour.weather-sky-wolkig, .weather-day.weather-sky-wolkig { --wx-ink: #c99a2e; }
.weather-hour.weather-sky-regen, .weather-day.weather-sky-regen { --wx-ink: #3d7bfd; }
.weather-hour.weather-sky-schnee, .weather-day.weather-sky-schnee { --wx-ink: #5f9fdc; }
.weather-hour.weather-sky-gewitter, .weather-day.weather-sky-gewitter { --wx-ink: #9b52cc; }
.weather-hour .weather-icon-sm svg, .weather-day .weather-icon-md svg { color: var(--wx-ink); }

/* Stunden: Karten mit Farbschein von oben */
.weather-hour {
    border-radius: 12px;
    background: linear-gradient(180deg, var(--wx-glow-2) 0%, rgba(0, 0, 0, 0) 70%), var(--color-surface);
    animation: sd-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 0.05s);
}
.weather-hour-temp { font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif; font-weight: 400; font-size: 1.2rem; }

/* Tage: Farbschein von links, Temperatur in Edo */
.weather-detail .weather-day {
    border-radius: 12px;
    border-left: 4px solid var(--wx-ink);
    background: linear-gradient(100deg, var(--wx-glow) -35%, rgba(0, 0, 0, 0) 50%), var(--color-surface);
    animation: sd-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(0.1s + var(--i, 0) * 0.08s);
}
.weather-day .weather-day-temp { font-family: 'Edo', 'Barlow Condensed', 'Barlow', Arial, sans-serif; font-weight: 400; font-size: 1.45rem; }
.weather-day .weather-day-temp small { font-family: 'Barlow', Arial, sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
    .weather-hour, .weather-detail .weather-day { animation: none; }
}
.weather-hero-when { font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.weather-warning small { display: block; margin-top: 0.25rem; }
.weather-day .weather-day-temp { white-space: nowrap; }
.weather-sky-chips { margin-top: 0.75rem; }

/* ── Diversipedia (Info › Diversipedia, templates/info/diversipedia*.php) – mobil zuerst ── */
.dp-head { display: flex; justify-content: center; margin: 4px 0 10px; }
.dp-head a { text-decoration: none; }
.dp-logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--color-text); }
.dp-logo-book { display: block; width: 130px; height: auto; margin-bottom: -4px; }
.dp-logo-word { font-family: 'Edo', sans-serif; font-size: 44px; line-height: 1; letter-spacing: .02em; white-space: nowrap; color: var(--color-heading); }
.dp-logo-p1 { color: #e40303; } .dp-logo-p2 { color: #ff8c00; } .dp-logo-p3 { color: #f2c500; } .dp-logo-p4 { color: #00a14b; } .dp-logo-p5 { color: #2e5bff; }
:root[data-theme="dark"] .dp-logo-p5 { color: #5b7cff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dp-logo-p5 { color: #5b7cff; } }
.dp-logo-sm .dp-logo-book { width: 64px; margin-bottom: -2px; }
.dp-logo-sm .dp-logo-word { font-size: 22px; }
.dp-head-sm { justify-content: flex-start; margin: 0 0 6px; }
.dp-lead { text-align: center; margin: 0 auto 16px; max-width: 34em; }
.dp-sub-lead { color: var(--color-muted); font-size: .92rem; margin: 0 0 10px; }

.dp-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.dp-area { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px 12px; border: 1px solid var(--color-border);
    border-radius: 12px; background: var(--color-surface); color: var(--color-muted); font-weight: 800; font-size: .95rem; text-align: center; text-decoration: none; }
.dp-area-name { color: var(--color-text); }
.dp-area-n { font-weight: 400; }
.dp-area::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.dp-area-vielfalt::before { background: linear-gradient(90deg, #e40303, #ff8c00, #f2c500, #00a14b, #2e5bff, #8b2fc9); }
.dp-area-hass::before { background: #b91c1c; }
.dp-area.is-active { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.dp-area:only-child { grid-column: 1 / -1; }

.dp-note { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid #b91c1c; border-radius: 8px; background: var(--color-surface); font-size: .92rem; line-height: 1.5; }
.dp-note p { margin: 0; }
.dp-note p + p { margin-top: 8px; }
.dp-note-fold summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dp-note-fold summary svg { width: 18px; height: 18px; }
.dp-note-fold[open] summary { margin-bottom: 8px; }

.dp-search { margin: 0 0 6px; }
.dp-search input { width: 100%; box-sizing: border-box; padding: 0.65rem 0.75rem; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-input-bg); color: var(--color-text); font: inherit; font-size: 1rem; }
.dp-search input:focus { outline: none; border-color: var(--color-accent); }
.dp-group-head { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin: 16px 4px 6px; }
.dp-rows { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-surface); }
.dp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--color-text); text-decoration: none; border-top: 1px solid var(--color-border); }
.dp-row:first-child { border-top: none; }
.dp-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dp-row-body strong { color: var(--color-heading); }
.dp-row-teaser { font-size: .85rem; color: var(--color-muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dp-row-go svg { width: 18px; height: 18px; color: var(--color-muted); }
.dp-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--color-border); }
.dp-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--color-muted); background: transparent; }
.dp-thumb-empty svg { width: 22px; height: 22px; }
.dp-empty { padding: 14px; border-radius: 12px; background: var(--color-surface); color: var(--color-muted); }

.dp-back { margin: 0 0 6px; }
.dp-back a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; text-decoration: none; }
.dp-back svg { width: 16px; height: 16px; }
.dp-entry h1 { margin-bottom: 6px; }
.dp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dp-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; border: 1px solid var(--color-border); font-size: .78rem; font-weight: 700; color: var(--color-muted); }
.dp-badge-kind { border-color: var(--color-accent); color: var(--color-heading); }
.dp-topic-rechtsextrem { color: #b91c1c; border-color: currentColor; }
.dp-topic-queerfeindlich { color: #7e22ce; border-color: currentColor; }
.dp-topic-antisemitisch { color: #b45309; border-color: currentColor; }
:root[data-theme="dark"] .dp-topic-rechtsextrem { color: #f87171; }
:root[data-theme="dark"] .dp-topic-queerfeindlich { color: #c084fc; }
:root[data-theme="dark"] .dp-topic-antisemitisch { color: #fbbf24; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .dp-topic-rechtsextrem { color: #f87171; }
    :root:not([data-theme="light"]) .dp-topic-queerfeindlich { color: #c084fc; }
    :root:not([data-theme="light"]) .dp-topic-antisemitisch { color: #fbbf24; }
}
.dp-text p { margin: 0 0 10px; line-height: 1.6; }
.dp-sub { font-size: 1rem; margin: 18px 0 8px; }
.dp-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.dp-figure { margin: 0; }
.dp-figure img { display: block; width: 100%; height: 170px; object-fit: contain; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 6px; box-sizing: border-box; }
.dp-figure figcaption { margin-top: 4px; font-size: .72rem; line-height: 1.35; color: var(--color-muted); word-break: break-word; }
.dp-banned { display: flex; align-items: flex-start; gap: 4px; color: #b91c1c; font-weight: 700; margin-bottom: 2px; }
.dp-banned svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
:root[data-theme="dark"] .dp-banned { color: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dp-banned { color: #f87171; } }
.dp-context { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--color-highlight-bg); color: var(--color-text); }
.dp-context strong { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dp-context strong svg { width: 18px; height: 18px; }
.dp-context p { margin: 4px 0 0; }
.dp-legal { font-size: .92rem; }
.dp-muted { color: var(--color-muted); font-size: .85em; }
.dp-action { margin: 18px 0 8px; padding: 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); font-size: .92rem; line-height: 1.5; }
.dp-action h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 8px; }
.dp-action h2 svg { width: 20px; height: 20px; }
.dp-action h3 { font-size: .92rem; margin: 12px 0 4px; }
.dp-action p { margin: 0 0 6px; }
.dp-help, .dp-sources { list-style: none; margin: 0; padding: 0; }
.dp-help li, .dp-sources li { padding: 7px 0; border-top: 1px solid var(--color-border); line-height: 1.4; }
.dp-help li:first-child, .dp-sources li:first-child { border-top: none; }
.dp-help a, .dp-sources a { font-weight: 700; word-break: break-word; }
.dp-help small, .dp-sources small { display: block; color: var(--color-muted); font-size: .78rem; }
.dp-ext { width: 13px; height: 13px; vertical-align: -1px; opacity: .7; }
.dp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.dp-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-text);
    text-decoration: none; font-size: .8rem; font-weight: 700; text-align: center; hyphens: auto; }
.dp-card img, .dp-card .dp-thumb-empty { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 6px; }
@media (min-width: 600px) {
    .dp-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .dp-card { flex-direction: row-reverse; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 14px; font-size: .9rem; text-align: left; }
    .dp-card > span:not(.dp-thumb-empty) { flex: 1; min-width: 0; }
    .dp-card img, .dp-card .dp-thumb-empty { width: 96px; height: 96px; flex-shrink: 0; }
}
.dp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chip { padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 20px; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--color-text); }
.dp-reviewed { display: flex; align-items: center; gap: 6px; margin: 16px 0 10px; font-size: .85rem; color: var(--color-muted); }
.dp-reviewed svg { width: 15px; height: 15px; }
.dp-awareness { margin-top: 20px; font-size: .92rem; color: var(--color-muted); }

/* ---------- Großbild per Tipp (lightbox.js) ---------- */
.lb-zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; overflow: hidden;
    background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb.is-open { display: flex; }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb-img { display: block; max-width: none; max-height: none; object-fit: contain; background: #fff; transform-origin: center center; will-change: transform; cursor: zoom-in; -webkit-user-drag: none; }
.lb.is-zoomed .lb-img { cursor: grab; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: rgba(255, 255, 255, .28); }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .75) 40%);
    color: rgba(255, 255, 255, .85); font-size: 12px; line-height: 1.4; text-align: center; }
.lb-cap a { color: #fff; }
.lb-cap svg { width: 14px; height: 14px; vertical-align: -2px; }
.lb.is-zoomed .lb-cap { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* ---------- Gestaffelte Freigabe (App\Support\Areas, templates/area_soon.php, admin/bereiche.php) ---------- */
.area-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; line-height: 1.5;
    letter-spacing: .02em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.area-badge-soon { background: var(--color-highlight-bg); color: var(--color-heading); border: 1px solid var(--color-border-strong); }
.area-badge-new { background: var(--color-success-bg); color: var(--color-success-text); }
.area-badge-admin { background: transparent; color: var(--color-muted); border: 1px dashed var(--color-border-strong); }
.service-tile-soon .service-tile-content p { font-style: italic; }
.service-tile-soon .service-tile-icon { opacity: .55; }
.area-soon { max-width: 560px; margin: 24px auto; text-align: center; }
.area-soon-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
    background: var(--color-highlight-bg); color: var(--color-accent); }
.area-soon-icon svg { width: 36px; height: 36px; }
.area-soon-kicker { margin: 14px 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.area-soon h1 { margin: 0 0 6px; }
.area-soon-when { margin: 0 0 14px; font-weight: 700; color: var(--color-heading); }
.area-soon-text { margin: 0 0 18px; }
.area-soon-notify { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.area-soon-notify p:first-child { margin-top: 0; }
.area-soon-notify p:last-child { margin-bottom: 0; }
.areas-item { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.areas-item-teaser { border-left: 4px solid var(--color-accent); }
.areas-item-hidden { border-left: 4px solid var(--color-border-strong); }
.areas-item summary { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-weight: 700; color: var(--color-heading); cursor: pointer; list-style: none; }
.areas-item summary::-webkit-details-marker { display: none; }
.areas-item summary::after { content: '+'; margin-left: auto; color: var(--color-accent); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.areas-item[open] summary::after { content: '\2013'; }
.areas-item[open] summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.areas-item summary .settings-dot { flex: none; }
.areas-body { display: flex; flex-direction: column; }
.areas-open { margin-left: 6px; font-size: .8rem; font-weight: 400; }
.areas-status { margin: 0 0 8px; font-size: .85rem; color: var(--color-muted); }
.areas-modes { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.areas-mode { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.areas-more { margin-top: 6px; display: flex; flex-direction: column; gap: 0.5rem; }
.areas-mode input[type="radio"] { width: auto; margin: 0; padding: 0; accent-color: var(--color-accent); }
.areas-form { max-width: 560px; }
.areas-more[hidden] { display: none; }
.areas-save { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 10px 0; background: var(--color-bg); z-index: 5; }
.areas-announce { margin: 0 0 22px; padding: 12px 14px; border: 2px solid var(--color-accent); border-radius: 12px; }
.areas-announce h2 { margin-top: 0; }
.areas-announce-form { margin: 12px 0 0; }
.areas-announce-form textarea { width: 100%; box-sizing: border-box; margin: 6px 0 8px; }

/* Einstellungen: Systemstatus und Backup als Klappkasten (.admin-collapsible), zugeklappt nur die Gesamtlage */
.settings-summary-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.8rem; margin-left: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--color-muted); vertical-align: 0.1em; }
.settings-summary-note > span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.settings-summary-note.is-due { color: var(--color-accent); }
[data-collapsible-id="einstellungen-systemstatus"] h3 { margin: 1rem 0 0.5rem; }
[data-collapsible-id="einstellungen-systemstatus"] h3 small { font-weight: 400; color: var(--color-muted); font-size: 0.8rem; }
.settings-status-error { color: var(--color-error-text); font-size: 0.85rem; }

.dp-legal-house { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--color-highlight-bg); }
.dp-legal-house svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent); }

/* Info-Kachel Diversipedia: Titel im Schriftzug des Logos (Diversipedia\Logo::wordHtml) */
.dp-wordmark { font-family: 'Edo', sans-serif; font-weight: 400; font-size: 1.45em; line-height: 1; letter-spacing: .02em; color: var(--color-heading); text-transform: none; }

/* Installierte App: kein Doppeltipp-/Zwei-Finger-Zoom der Seite (Klasse aus templates/layout.php). Gewichtung 0, damit Geländeplan, Stellplatzkarte und Großbild ihr eigenes touch-action behalten */
:where(html.is-standalone, html.is-standalone *) { touch-action: pan-x pan-y; }

/* Profil: Crew auf dem regulären Camping (Schritt 9 App-Verbund) */
.crew-camping-badge { margin-left: 0; }
.profile-crew-tickets { color: var(--color-muted); font-size: 0.9rem; margin: 0.75rem 0 0; }

/* Admin › Crew auf dem Camping (/admin/crew-camping, Schritt 9 App-Verbund) */
.crew-camper-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.crew-camper { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.crew-camper[hidden] { display: none; }
.crew-camper-photo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--color-border); }
.crew-camper-initials { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; color: var(--color-muted); }
.crew-camper-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.crew-camper-body strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.crew-camper-body span { font-size: 0.9rem; color: var(--color-muted); }

/* ---------- Einklappbare Erklärung oben auf Seiten (partials/explain.php) ---------- */
.explain { margin: 0 0 1rem; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.explain > summary { list-style: none; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; cursor: pointer; font-weight: 600; }
.explain > summary::-webkit-details-marker { display: none; }
.explain-icon { display: inline-flex; color: var(--color-accent); flex-shrink: 0; }
.explain-icon svg { width: 18px; height: 18px; }
.explain-title { flex: 1; min-width: 0; }
.explain-chevron { display: inline-flex; color: var(--color-muted); transition: transform 0.2s; }
.explain-chevron svg { width: 18px; height: 18px; }
.explain[open] .explain-chevron { transform: rotate(180deg); }
.explain-body { padding: 0 0.9rem 0.8rem; color: var(--color-text); }
.explain-body p { margin: 0 0 0.6rem; }
.explain-body p:last-child { margin-bottom: 0; }

/* ---------- Festival-Buddys: kompakter Kopf (Aktionen, Glocke, mitlaufende Kategorien) ---------- */
.buddys-toolbar { display: flex; align-items: center; gap: 0.5rem; margin: -0.25rem 0 0.9rem; }
.buddys-toolbar-spacer { flex: 1; }
.buddys-toolbar-new { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.95rem; border-radius: 999px; }
.buddys-toolbar-new svg { width: 18px; height: 18px; }
.buddys-toolbar-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; padding: 0; font: inherit; text-decoration: none; }
.buddys-toolbar-icon svg { width: 20px; height: 20px; }
.buddys-toolbar-icon:hover, .buddys-toolbar-icon[aria-expanded="true"] { border-color: var(--color-accent); color: var(--color-accent); }
.buddys-toolbar-icon.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.buddys-toolbar-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-error-text); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center; }
.buddys-toolbar-dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 2px var(--color-bg); }
.buddys-bell-panel { margin: 0 0 1rem; padding: 0.9rem; border: 1px solid var(--color-accent); border-radius: 10px; background: var(--color-surface); }
.buddys-bell-panel[hidden] { display: none; }
.buddys-bell-panel .push-hint { margin: 0 0 0.9rem; }
.buddys-subscribe-head { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; }
.buddys-subscribe-head svg { width: 18px; height: 18px; color: var(--color-accent); }
.buddys-subscribe p { margin-top: 0; }
/* Kategorien kleben beim Scrollen unter der Kopfzeile (Höhe per Skript in --site-header-h) */
.buddys-tabs { position: sticky; top: var(--site-header-h, 56px); z-index: 5; background: var(--color-bg); padding-top: 0.25rem; }

/* Zoom-Knöpfe der Stellplatzkarten: echte Symbole statt Schriftzeichen (−, ⟲, + wurden je nach Gerät klein/blass
   gezeichnet). Gesperrt (nicht gezoomt) bleibt das Symbol erkennbar. */
.stellplatzkarte-zoom-controls button { display: inline-flex; align-items: center; justify-content: center; }
.stellplatzkarte-zoom-controls button svg { width: 16px; height: 16px; stroke-width: 2.6; }
.stellplatzkarte-zoom-controls button:disabled { opacity: 0.5; }

/* Kachel „Mitglied werden“ (partials/member_teaser.php): ruhige Karte über die volle Breite, Herz links,
   Knopf zur Website, darunter klein „Bin schon Mitglied“ · „Nicht jetzt“ */
.member-teaser {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.25rem;
}
.member-teaser[hidden] { display: none; }
.member-teaser-icon { flex-shrink: 0; line-height: 1; color: var(--color-accent); }
.member-teaser-icon svg { width: 2rem; height: 2rem; }
.member-teaser-content { flex: 1; min-width: 0; }
.member-teaser-content h3 { margin: 0 0 0.4rem; }
.member-teaser-content p { margin: 0 0 1rem; color: var(--color-muted); }
.member-teaser-button { margin: 0; }
.member-teaser-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 0.85rem 0 0; color: var(--color-muted); font-size: 0.9rem; }
.member-teaser-links button {
    background: none; border: none; padding: 0.2rem 0; margin: 0; min-height: 0;
    color: var(--color-muted); font: inherit; font-weight: 400; text-transform: none; letter-spacing: normal; box-shadow: none;
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer; border-radius: 0;
}
.member-teaser-links button:hover, .member-teaser-links button:focus-visible { color: var(--color-text); }
@media (max-width: 420px) {
    .member-teaser { padding: 1rem; gap: 0.75rem; }
    .member-teaser-icon svg { width: 1.6rem; height: 1.6rem; }
}
.areas-stats { margin: 0.5rem 0; }
.areas-stats td:not(:first-child), .areas-stats th:not(:first-child) { text-align: right; width: 5.5rem; }
.member-teaser-content p.member-teaser-quote { margin: -0.5rem 0 1rem; font-size: 0.85rem; font-style: italic; }

/* ---------- Gewinnspiele (templates/gewinnspiel/*, partials/giveaway_tile.php, admin/gewinnspiel*) ---------- */
.giveaway-tile-image { display: flex; align-items: center; justify-content: center; }
.giveaway-tile-image:not(:has(img)) { aspect-ratio: 2 / 1; }
.giveaway-tile-icon { display: flex; justify-content: center; width: 30%; max-width: 140px; color: var(--color-accent); }
.giveaway-tile-icon svg { width: 100%; height: auto; }
.giveaway-tile-win .giveaway-tile-image { background: var(--color-accent); }
.giveaway-tile-win .giveaway-tile-icon { color: var(--color-accent-text); }
.giveaway { max-width: 640px; }
.giveaway-image { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; margin: 0 0 14px; }
.giveaway h1 { margin-top: 4px; }
.giveaway-subhead { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 18px 0 6px; }
.giveaway-subhead svg { width: 20px; height: 20px; color: var(--color-accent); }
.giveaway-prizes { margin: 0 0 12px; padding-left: 20px; }
.giveaway-prizes li { margin-bottom: 4px; }
.giveaway-box { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding: 16px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.giveaway-box h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; }
.giveaway-box h2 svg { width: 22px; height: 22px; color: var(--color-accent); }
.giveaway-box p { margin: 0; }
.giveaway-box-win { border: 2px solid var(--color-accent); }
.giveaway-box-in { border-color: var(--color-accent); }
.giveaway-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.giveaway-quiz { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.giveaway-quiz legend { font-weight: 700; margin-bottom: 6px; }
.giveaway-quiz-option { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 10px; margin: 0; }
.giveaway-entry-form .form-checkbox-label { align-items: flex-start; }
.giveaway-entry-form .form-checkbox-label input { margin-top: 3px; flex: none; }
.giveaway-submit { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.giveaway-submit svg { width: 18px; height: 18px; }
.giveaway-footnote { margin-top: 18px; }
.giveaway-list-item { text-decoration: none; color: inherit; gap: 4px; }
.giveaway-list-item strong { color: var(--color-heading); }
/* Admin */
.giveaway-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.giveaway-form-row input { width: 100%; }
@media (max-width: 520px) { .giveaway-form-row { grid-template-columns: 1fr; } }
.giveaway-fieldset { border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.giveaway-fieldset legend { font-weight: 700; padding: 0 6px; }
.giveaway-option, .giveaway-prize { display: flex; align-items: center; gap: 8px; }
.giveaway-option input[type=text], .giveaway-prize input[type=text] { flex: 1; min-width: 0; }
.giveaway-prize input[type=number] { width: 72px; flex: none; }
.giveaway-option input[type=radio] { flex: none; width: 20px; height: 20px; }
.giveaway-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.giveaway-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.giveaway-admin-actions form { margin: 0; }
.giveaway-admin-actions .button { display: inline-flex; align-items: center; gap: 6px; }
.giveaway-admin-actions svg, .giveaway-delete svg { width: 18px; height: 18px; }
.giveaway-facts { display: grid; gap: 10px; margin: 0 0 16px; }
.giveaway-facts div { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.giveaway-facts dt { font-weight: 700; color: var(--color-muted); }
.giveaway-facts dd { margin: 0; }
@media (max-width: 520px) { .giveaway-facts div { grid-template-columns: 1fr; gap: 2px; } }
.giveaway-answer-bars { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.giveaway-answer-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; align-items: center; gap: 10px; }
.giveaway-answer-bars li.is-correct { font-weight: 700; }
.giveaway-bar { display: block; height: 10px; border-radius: 5px; background: var(--color-border); overflow: hidden; }
.giveaway-bar span { display: block; height: 100%; background: var(--color-muted); }
.giveaway-answer-bars li.is-correct .giveaway-bar span { background: var(--color-accent); }
.giveaway-open-answers, .giveaway-log { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.giveaway-delete { margin-top: 24px; }
.giveaway-delete .button { display: inline-flex; align-items: center; gap: 6px; }
.giveaway-status-laeuft { background: var(--color-success-bg); color: var(--color-success-text); }
.giveaway-status-beendet { background: rgba(252, 185, 0, .16); color: var(--color-accent); }
.giveaway-question { display: flex; flex-direction: column; gap: 4px; }
.giveaway-question input { width: 100%; }
.giveaway-tile-wrap { grid-column: 1 / -1; display: flex; flex-direction: column; }
.giveaway-optout { margin: 0.4rem 0.25rem 0; font-size: 0.85rem; }
.giveaway-optout a { color: var(--color-muted); text-underline-offset: 2px; }
.giveaway-optout a:hover, .giveaway-optout a:focus-visible { color: var(--color-text); }
.giveaway-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.giveaway-settings form { margin: 0; }
.giveaway-settings p { margin: 0; flex: 1 1 240px; }
/* Admin-Dashboard: Karte „Registrierte User“ (admin/partials/dashboard_users_tile.php) und Gewinnspiel-Reichweite */
.users-tile-rows, .giveaway-reach-rows { display: grid; gap: 4px; margin: 10px 0 8px; }
.users-tile-rows div, .giveaway-reach-rows div { display: flex; justify-content: space-between; gap: 12px; }
.users-tile-rows dt, .giveaway-reach-rows dt { color: var(--color-muted); }
.users-tile-rows dd, .giveaway-reach-rows dd { margin: 0; font-weight: 700; color: var(--color-heading); text-align: right; }
.users-tile-muted { color: var(--color-muted); font-weight: 400; font-size: 0.85rem; }
.giveaway-reach { margin: 0 0 18px; }
.giveaway-reach-rows .is-minus dt, .giveaway-reach-rows .is-minus dd { font-weight: 400; color: var(--color-muted); }
.giveaway-reach-rows .is-total { border-top: 1px solid var(--color-border); padding-top: 6px; margin-top: 2px; }
.giveaway-reach-rows .is-total dt { color: var(--color-heading); font-weight: 700; }
.giveaway-reach-rows .is-total dd { color: var(--color-accent); font-size: 1.15rem; }
.giveaway-reach-entries { margin: 6px 0 2px; color: var(--color-text); }
.giveaway-testmode { margin: 24px 0 0; padding: 12px 14px; border: 1px dashed var(--color-border-strong); border-radius: 10px; }
.giveaway-testmode h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; }
.giveaway-testmode .giveaway-admin-actions { margin: 10px 0 0; }
.giveaway-test-respond { margin: 0 0 6px; }
.giveaway-winners { display: grid; gap: 10px; margin: 8px 0 12px; }
@media (min-width: 700px) { .giveaway-winners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.giveaway-winner { padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.giveaway-winner p { margin: 0; overflow-wrap: anywhere; }
.giveaway-winner-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.giveaway-winner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.giveaway-winner-actions form { margin: 0; }
.giveaway-winner-accepted, .giveaway-winner-handed_over { border-color: var(--color-accent); }
.giveaway-winner-declined_r, .giveaway-winner-expired_r { opacity: .6; }
.giveaway-admin-list { display: grid; gap: 10px; margin: 0 0 16px; }
@media (min-width: 700px) { .giveaway-admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.giveaway-admin-list .giveaway-box { margin: 0; }
.giveaway-admin-list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.giveaway-admin-list-head .badge-pill { flex: none; }

/* ---------- Gewinnspiele: Bildfläche, Banner, Karten, Preise, Konfetti (templates/gewinnspiel/*) ---------- */
.gw-art {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .28) 0, transparent 34%),
        radial-gradient(circle at 85% 80%, rgba(255, 92, 0, .55) 0, transparent 46%),
        linear-gradient(135deg, #fcb900 0%, #ff8a00 55%, #e8590c 100%);
    color: #1f252e;
}
.gw-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gw-art-quiz { background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .3) 0, transparent 34%),
        radial-gradient(circle at 80% 85%, rgba(232, 89, 12, .5) 0, transparent 45%),
        linear-gradient(135deg, #ffd43b 0%, #fcb900 45%, #f08c00 100%); }
.gw-art-open { background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .26) 0, transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(214, 51, 108, .45) 0, transparent 46%),
        linear-gradient(135deg, #fcb900 0%, #fd7e14 60%, #d6336c 100%); }
.gw-art-win { background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .45) 0, transparent 40%),
        conic-gradient(from 0deg at 50% 50%, #fcb900, #ffe066, #fcb900, #ff922b, #fcb900); }
.gw-art-icon { position: relative; z-index: 1; display: flex; width: 34%; max-width: 120px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); animation: gw-float 4s ease-in-out infinite; }
.gw-art-icon svg { width: 100%; height: auto; stroke-width: 2.2; }
/* Funkelnde Sterne (vierzackig per clip-path) */
.gw-spark { position: absolute; z-index: 1; width: 16px; height: 16px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: gw-twinkle 3.2s ease-in-out infinite; }
.gw-spark-1 { top: 16%; left: 14%; animation-delay: 0s; }
.gw-spark-2 { top: 22%; right: 16%; width: 11px; height: 11px; animation-delay: .7s; }
.gw-spark-3 { bottom: 18%; left: 24%; width: 9px; height: 9px; animation-delay: 1.4s; }
.gw-spark-4 { bottom: 24%; right: 22%; width: 14px; height: 14px; animation-delay: 2.1s; }
.gw-spark-5 { top: 48%; left: 6%; width: 8px; height: 8px; animation-delay: 2.6s; }
@keyframes gw-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: .2; } }
@keyframes gw-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }

/* Größen je Einsatzort */
.gw-art-tile { aspect-ratio: 2 / 1; }
.gw-art-card { aspect-ratio: 16 / 9; }
.gw-art-hero { aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.gw-art-banner { position: absolute; inset: 0; }
.gw-art-banner .gw-art-icon { position: absolute; right: 6%; top: 50%; width: 96px; margin-top: -48px; opacity: .9; }

/* Banner oben auf der Übersicht */
.gw-banner { position: relative; overflow: hidden; border-radius: 16px; margin: 6px 0 18px; min-height: 150px; display: flex; align-items: flex-end; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.gw-banner-text { position: relative; z-index: 2; padding: 18px 120px 18px 18px; color: #1f252e; }
.gw-banner-text h1 { margin: 6px 0 4px; color: #1f252e; font-size: 2.2rem; line-height: 1; }
.gw-banner-text p { margin: 0; font-weight: 600; max-width: 30ch; }
@media (max-width: 420px) { .gw-banner-text { padding-right: 96px; } .gw-art-banner .gw-art-icon { width: 72px; margin-top: -36px; } }

/* Chips */
.gw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: rgba(252, 185, 0, .14); color: var(--color-accent); }
.gw-chip svg { width: 14px; height: 14px; }
.gw-chip-solid { background: #1f252e; color: #fcb900; }
.gw-chip-time { text-transform: none; letter-spacing: 0; }

/* Karten in der Übersicht */
.gw-cards { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 720px) { .gw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gw-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.gw-card:hover, .gw-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
.gw-card-in { border-color: var(--color-accent); }
.gw-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.gw-card-title { font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif; font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: var(--color-heading); text-transform: uppercase; }
.gw-card-text { color: var(--color-text); }
.gw-card-prizes { display: flex; align-items: flex-start; gap: 6px; font-weight: 700; color: var(--color-heading); }
.gw-card-prizes svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent); }
.gw-card-button { align-self: stretch; justify-content: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.gw-card-button svg { width: 18px; height: 18px; }

/* Gewinn-Karte und Konfetti */
.gw-win-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 16px; border-radius: 16px; text-decoration: none; color: #1f252e;
    background: conic-gradient(from 200deg at 30% 40%, #fcb900, #ffe066, #ff922b, #fcb900); box-shadow: 0 14px 30px rgba(252, 185, 0, .25); }
.gw-win-card-icon { position: relative; z-index: 1; flex: none; display: flex; width: 54px; height: 54px; padding: 10px; border-radius: 50%; background: #1f252e; color: #fcb900; animation: gw-float 3s ease-in-out infinite; }
.gw-win-card-icon svg { width: 100%; height: 100%; }
.gw-win-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.gw-win-card-body strong { font-size: 1.3rem; }
.gw-win-card-hint { font-size: .85rem; font-weight: 600; opacity: .8; }
.gw-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.gw-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; background: #fcb900; opacity: .9; animation: gw-confetti 3.6s linear infinite; }
.gw-confetti i:nth-child(3n) { background: #e8590c; }
.gw-confetti i:nth-child(3n+1) { background: #ffffff; }
.gw-confetti i:nth-child(4n) { background: #d6336c; width: 6px; height: 6px; border-radius: 50%; }
.gw-confetti i:nth-child(1) { left: 4%; animation-delay: 0s; } .gw-confetti i:nth-child(2) { left: 11%; animation-delay: 1.1s; }
.gw-confetti i:nth-child(3) { left: 18%; animation-delay: .4s; } .gw-confetti i:nth-child(4) { left: 25%; animation-delay: 2.2s; }
.gw-confetti i:nth-child(5) { left: 32%; animation-delay: 1.6s; } .gw-confetti i:nth-child(6) { left: 39%; animation-delay: .8s; }
.gw-confetti i:nth-child(7) { left: 46%; animation-delay: 2.8s; } .gw-confetti i:nth-child(8) { left: 53%; animation-delay: .2s; }
.gw-confetti i:nth-child(9) { left: 60%; animation-delay: 1.9s; } .gw-confetti i:nth-child(10) { left: 67%; animation-delay: 1.3s; }
.gw-confetti i:nth-child(11) { left: 74%; animation-delay: 2.5s; } .gw-confetti i:nth-child(12) { left: 81%; animation-delay: .6s; }
.gw-confetti i:nth-child(13) { left: 88%; animation-delay: 3.1s; } .gw-confetti i:nth-child(14) { left: 95%; animation-delay: 1.4s; }
.gw-confetti i:nth-child(15) { left: 7%; animation-delay: 2.9s; } .gw-confetti i:nth-child(16) { left: 43%; animation-delay: 3.3s; }
.gw-confetti i:nth-child(17) { left: 71%; animation-delay: .9s; } .gw-confetti i:nth-child(18) { left: 92%; animation-delay: 2.3s; }
@keyframes gw-confetti { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(260px) rotate(540deg); } }
.gw-box-celebrate { position: relative; overflow: hidden; }
.gw-box-celebrate > :not(.gw-confetti) { position: relative; z-index: 1; }

/* Seite eines Gewinnspiels */
.gw-hero { position: relative; margin: 6px 0 14px; }
.gw-hero-chips { position: absolute; left: 12px; top: 12px; z-index: 2; }
.gw-prizes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .gw-prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gw-prize { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-surface); }
.gw-prize:first-child { border-color: var(--color-accent); background: linear-gradient(135deg, rgba(252, 185, 0, .16), transparent 70%), var(--color-surface); }
.gw-prize-icon { flex: none; display: flex; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: rgba(252, 185, 0, .16); color: var(--color-accent); }
.gw-prize-icon svg { width: 100%; height: 100%; }
.gw-prize-name { flex: 1; font-weight: 700; color: var(--color-heading); }
.gw-prize-qty { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--color-accent); color: #1f252e; font-weight: 800; }
.giveaway-box-in { box-shadow: 0 0 0 3px rgba(252, 185, 0, .18); }
.giveaway-entry-form { border-color: var(--color-accent); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.giveaway-quiz-option:has(input:checked) { border-color: var(--color-accent); background: rgba(252, 185, 0, .12); }

/* Leer und vorbei */
.gw-empty { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px dashed var(--color-border-strong); }
.gw-empty-icon { flex: none; display: flex; width: 44px; color: var(--color-accent); }
.gw-empty-icon svg { width: 100%; height: auto; }
.gw-empty p { margin: 0; }
.gw-empty-body { flex: 1; min-width: 0; display: grid; gap: 12px; justify-items: start; }
.gw-section-head { margin: 22px 0 8px; }
.gw-ended { display: grid; gap: 8px; }
.gw-ended-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; opacity: .85; }
.gw-footnote { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
    .gw-spark, .gw-art-icon, .gw-win-card-icon, .gw-confetti i { animation: none; }
    .gw-spark { opacity: .8; }
    .gw-confetti { display: none; }
    .gw-card { transition: none; }
}
.giveaway-entry-form .giveaway-submit { align-self: stretch; justify-content: center; font-size: 1.05rem; padding-top: 14px; padding-bottom: 14px; }
.gw-box-celebrate .gw-confetti i { opacity: .3; }
/* Gewinnspiel-Formular: Hinweis und Vorschau zum Foto */
.gw-image-help { margin: 6px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: .9rem; }
.gw-image-help p { margin: 0 0 6px; }
.gw-image-help ul { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.gw-image-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
.gw-image-preview[hidden] { display: none; }
.gw-image-preview figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.gw-image-preview figcaption { font-size: .8rem; color: var(--color-muted); }
.gw-preview-frame { position: relative; display: block; border-radius: 8px; background: linear-gradient(135deg, #fcb900, #e8590c) center / cover no-repeat; border: 1px solid var(--color-border); }
.gw-preview-169 { aspect-ratio: 16 / 9; }
.gw-preview-21 { aspect-ratio: 2 / 1; }
.gw-preview-chip { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 999px; background: #1f252e; color: #fcb900; font-size: .62rem; font-weight: 700; }
.gw-size-warn { color: var(--color-accent); font-weight: 600; }

/* ---------- Text-Editor (public/assets/rich-editor.js, wie im Crewtool) und formatierter Text (.rich-text, App\Support\RichText) ---------- */
.rte { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-input-bg, var(--color-surface)); transition: border-color .15s, box-shadow .15s; margin-bottom: 6px; }
.rte.is-focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.rte-toolbar { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-items: center; gap: 2px 6px; padding: 6px 8px; border-bottom: 1px solid var(--color-border); background: var(--color-bg); border-radius: 11px 11px 0 0; }
.rte-group { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid var(--color-border); flex-shrink: 0; }
.rte-toolbar::-webkit-scrollbar { display: none; }
.rte-group:last-child, .rte-group-end { border-right: none; padding-right: 0; }
.rte-group-end { margin-left: auto; }
/* .form button (gelbe Speichern-Knöpfe) hier überstimmen */
.rte .rte-toolbar button { width: 36px; height: 36px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--color-text); border-radius: 8px; cursor: pointer; padding: 0; text-transform: none; letter-spacing: normal; }
.rte .rte-toolbar button svg { width: 19px; height: 19px; }
.rte .rte-toolbar button:hover { background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.rte .rte-toolbar button.is-on { background: color-mix(in srgb, var(--color-accent) 22%, transparent); color: var(--color-accent); }
.rte .rte-toolbar button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.rte-linkbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-bottom: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg)); }
.rte-linkbar[hidden] { display: none; }
.rte .rte-linkbar input { flex: 1 1 200px; min-width: 0; height: 36px; padding: 0 10px; }
.rte .rte-linkbar button { height: 36px; margin: 0; padding: 0 12px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-weight: 600; font-size: 13px; cursor: pointer; text-transform: none; letter-spacing: normal; }
.rte .rte-linkbar .rte-link-ok { background: var(--color-accent); border-color: var(--color-accent); color: #111; }
.rte .rte-linkbar .rte-link-x { width: 36px; padding: 0; font-size: 20px; line-height: 1; }
.rte-area { position: relative; min-height: 180px; padding: 14px 16px; outline: none; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; color: var(--color-text); }
.rte.is-empty .rte-area::before { content: attr(data-placeholder); color: var(--color-muted); position: absolute; left: 16px; top: 14px; right: 16px; pointer-events: none; }
.rte-area a { cursor: text; color: var(--color-accent); }
.rte-hint { padding: 7px 12px; border-top: 1px solid var(--color-border); font-size: 12px; color: var(--color-muted); }
.rte-area p, .rich-text p { margin: 0 0 8px; }
.rte-area h3, .rich-text h3 { font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; margin: 12px 0 6px; }
.rte-area h3:first-child, .rich-text h3:first-child { margin-top: 0; }
.rte-area h4, .rich-text h4 { font-size: 1rem; margin: 10px 0 4px; }
.rte-area ul, .rte-area ol, .rich-text ul, .rich-text ol { margin: 4px 0 8px 20px; padding: 0; }
.rte-area li, .rich-text li { margin: 2px 0; }
.rich-text { margin: 0 0 12px; }
.rich-text a { color: var(--color-accent); text-underline-offset: 2px; }
.rte-area b, .rte-area strong, .rich-text b, .rich-text strong { font-weight: 700; }
.rte-area i, .rte-area em, .rich-text i, .rich-text em { font-style: italic; }
.rte-small .rte-area { min-height: 90px; }
.area-soon-text.rich-text p:last-child, .exklusiv-description.rich-text p:last-child { margin-bottom: 0; }

/* Admin-Dashboard: Karte „Eingänge“ (admin/partials/dashboard_inbox_tile.php, App\Support\AdminInbox) */
.inbox-tile h3 { margin-bottom: 0.25rem; }
.inbox-head { margin: 10px 0 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.inbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--color-text); text-decoration: none; }
.inbox-list a:hover, .inbox-list a:focus-visible { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.inbox-icon { flex: none; display: flex; width: 18px; height: 18px; color: var(--color-muted); }
.inbox-icon svg { width: 100%; height: 100%; }
.inbox-label { flex: 1; min-width: 0; }
.inbox-count { flex: none; min-width: 28px; padding: 1px 8px; border-radius: 999px; text-align: center; font-weight: 800; background: color-mix(in srgb, var(--color-text) 12%, transparent); color: var(--color-heading); }
.inbox-count.is-todo { background: var(--color-accent); color: var(--color-accent-text); }
.inbox-done { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-weight: 600; color: var(--color-success-text, var(--color-text)); }
.inbox-done svg { width: 16px; height: 16px; }
.inbox-done-muted { color: var(--color-muted); font-weight: 400; }
.inbox-seen { margin: 8px 0 0; }
.inbox-seen button { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 0; background: none; border: none; color: var(--color-muted); font: inherit; font-size: .85rem; font-weight: 600; text-transform: none; letter-spacing: normal; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.inbox-seen button:hover { background: none; color: var(--color-text); }
.inbox-seen svg { width: 14px; height: 14px; }
.gw-chip-audience { text-transform: none; letter-spacing: 0; background: color-mix(in srgb, var(--color-text) 10%, transparent); color: var(--color-text); }
/* „Du bist dabei“ grün, damit man auf einen Blick sieht, wo man schon mitmacht */
.button.gw-button-in, .gw-card .button.gw-button-in { background: #2f9e44; color: #fff; border-color: #2f9e44; }
.giveaway-box-in { border-color: #2f9e44; box-shadow: 0 0 0 3px rgba(47, 158, 68, .18); }
.giveaway-box-in h2 svg { color: #2f9e44; }
.gw-card-in { border-color: #2f9e44; }
.giveaway-camping { padding-left: 26px; display: flex; flex-direction: column; gap: 4px; }
.giveaway-camping[hidden] { display: none; }
.giveaway-conditions { margin-top: 6px; }
.giveaway-conditions summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.giveaway-conditions[open] { display: flex; flex-direction: column; gap: 6px; }
.giveaway-conditions input[type=number] { width: 100%; max-width: 160px; }
.giveaway-conditions label[for=gw-active] { display: block; }
.giveaway-prize { flex-wrap: wrap; }
.giveaway-prize select { flex: 1 1 100%; }
@media (min-width: 640px) { .giveaway-prize select { flex: 0 0 220px; } }
.gw-accept-form { display: flex; flex-direction: column; gap: 8px; }
.gw-address { display: flex; flex-direction: column; gap: 4px; }
.gw-address[hidden] { display: none; }
.gw-address input { width: 100%; }
.gw-zip-row { grid-template-columns: 110px 1fr; }
.gw-delivery-choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gw-delivery-choice legend { font-weight: 700; margin-bottom: 4px; }
.gw-delivery-info { font-weight: 600; }
/* Admin › Gewinnspiel: Gewinner*innen oben, Abschnitte einklappbar, Versanddaten */
#gewinner { scroll-margin-top: 90px; }
.gw-winners-section { margin: 4px 0 18px; padding: 14px; border: 2px solid var(--color-accent); border-radius: 14px; background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface)); }
.gw-winners-section h2 { margin-top: 0; }
.gw-winners-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.gw-admin-section { margin-bottom: 12px; }
.gw-admin-section .giveaway-reach { margin: 0; border: 0; padding: 0; background: none; }
.gw-winner-delivery { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-muted); }
.gw-winner-delivery svg { width: 16px; height: 16px; }
.gw-winner-address { padding: 10px 12px; border-radius: 10px; background: var(--color-bg); border: 1px dashed var(--color-border-strong); }
.gw-winner-address pre { margin: 0 0 8px; font: inherit; white-space: pre-wrap; font-weight: 600; }
.gw-winner-address .button { display: inline-flex; align-items: center; gap: 6px; }
.gw-winner-address svg, .giveaway-winner-actions .button svg { width: 16px; height: 16px; }
.gw-handover { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.gw-handover input { flex: 1 1 180px; min-width: 0; }
.giveaway-winner-actions .button { display: inline-flex; align-items: center; gap: 6px; }
.gw-test-hint { flex: 1 1 100%; margin: 0; }
.gw-handover input { padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-input-bg, var(--color-bg)); color: var(--color-text); font: inherit; }
.hb-c-gewinnspiel { --hb-c: #f08c00; }

/* ---------- Wetter im Kopfbild der Startseite (WeatherService::heroEffect): Regen, Schnee, Gewitter ----------
   Je Element: --x Position, --d Verzögerung, --t Dauer, --s Größe/Deckkraft. Liegt wie der Equalizer hinter dem Text. */
.hero-weather { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-weather i { position: absolute; top: -12%; left: var(--x); display: block; will-change: transform; }
/* Regen: schräge, schnelle Striche */
.hero-weather-regen i, .hero-weather-gewitter i {
    width: 1.5px;
    height: calc(14px + 16px * var(--s));
    border-radius: 1px;
    background: linear-gradient(180deg, rgba(220, 235, 255, 0), rgba(220, 235, 255, calc(0.35 + 0.45 * var(--s))));
    transform: rotate(12deg);
    animation: hero-rain var(--t) linear var(--d) infinite;
}
@keyframes hero-rain {
    from { transform: translate3d(0, -20px, 0) rotate(12deg); }
    to { transform: translate3d(-42px, 340px, 0) rotate(12deg); }
}
/* Schnee: runde Flocken, langsam, leicht schaukelnd */
.hero-weather-schnee i {
    width: calc(3px + 5px * var(--s));
    height: calc(3px + 5px * var(--s));
    border-radius: 50%;
    background: rgba(255, 255, 255, calc(0.55 + 0.4 * var(--s)));
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    animation: hero-snow var(--t) linear var(--d) infinite;
}
/* --w (−1…1): Richtung und Stärke des Schaukelns je Flocke, damit keine Flocken im Gleichschritt fallen */
@keyframes hero-snow {
    0% { transform: translate3d(0, -10px, 0); }
    25% { transform: translate3d(calc(16px * var(--w, 1)), 80px, 0); }
    50% { transform: translate3d(calc(-7px * var(--w, 1)), 160px, 0); }
    75% { transform: translate3d(calc(13px * var(--w, 1)), 240px, 0); }
    100% { transform: translate3d(calc(4px * var(--w, 1)), 330px, 0); }
}
/* Gewitter: Regen plus gelegentlicher Blitz */
.hero-flash { position: absolute; inset: 0; background: rgba(235, 240, 255, 0.85); opacity: 0; animation: hero-flash 9s ease-out 2s infinite; }
@keyframes hero-flash {
    0%, 86%, 100% { opacity: 0; }
    87% { opacity: 0.75; }
    88% { opacity: 0.1; }
    89.5% { opacity: 0.55; }
    92% { opacity: 0; }
}
.hero-weather-regen, .hero-weather-gewitter { background: linear-gradient(180deg, rgba(20, 30, 45, 0.25), rgba(20, 30, 45, 0)); }
@media (prefers-reduced-motion: reduce) {
    .hero-weather { display: none; }
}

/* ---------- Temperatur im Kopfbild (WeatherService::heroTemp, partials/hero_weather.php): Frost und Hitze ----------
   Frost ab −5 °C (is-strong ab −10 °C), Hitze ab 30 °C (is-strong ab 35 °C). Liegt hinter dem Text. */
.hero-temp { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-temp > span { position: absolute; inset: 0; display: block; }
@keyframes hero-temp-in { from { opacity: 0; } to { opacity: 1; } }
/* Sparsam fürs Handy: keine backdrop-filter und kein blur (würden bei laufendem Equalizer/Schnee jedes Bild neu berechnet),
   nur Farbverläufe; bewegt wird ausschließlich per transform/opacity auf eigenen Ebenen. Die Bildmitte bleibt weitgehend frei. */
/* Frost: kühler Schleier zu den Rändern hin, Eisblumen wachsen einmal von den Rändern herein */
.hero-frost-veil {
    background: radial-gradient(ellipse 78% 72% at 50% 45%, rgba(215, 232, 255, 0.04) 0%, rgba(205, 228, 255, 0.14) 45%, rgba(225, 240, 255, 0.42) 100%);
    box-shadow: inset 0 0 55px 10px rgba(232, 244, 255, 0.4);
    animation: hero-temp-in 2.5s ease-out both;
}
.hero-temp-frost.is-strong .hero-frost-veil {
    background: radial-gradient(ellipse 78% 72% at 50% 45%, rgba(220, 236, 255, 0.08) 0%, rgba(210, 230, 255, 0.22) 45%, rgba(238, 246, 255, 0.55) 100%);
    box-shadow: inset 0 0 75px 18px rgba(240, 248, 255, 0.55);
}
.hero-temp > .hero-frost-edge {
    inset: -12%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.018 0.03' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.97 0 0 0 0 1 -12 0 0 0 2.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E") 0 0 / 420px 420px;
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 60%, #000 96%);
    mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 60%, #000 96%);
    opacity: 0.85;
    will-change: transform;
    animation: hero-frost-grow 3.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-temp > .hero-frost-edge-fine { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 7 0 0 0 -3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 220px 220px; opacity: 0.7; animation-delay: 0.4s; }
.hero-temp-frost.is-strong > .hero-frost-edge {
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 46%, #000 90%);
    mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 46%, #000 90%);
}
@keyframes hero-frost-grow {
    from { transform: scale(1.3); opacity: 0; }
    to { transform: scale(1); }
}
/* Hitze: warmer Ton (zur Mitte hin schwächer), glühende Sonne oben rechts, aufsteigendes Flimmern */
.hero-temp-hitze {
    background:
        radial-gradient(ellipse 75% 65% at 50% 45%, rgba(255, 170, 60, 0) 0%, rgba(255, 150, 50, 0.10) 55%, rgba(255, 120, 35, 0.30) 100%),
        linear-gradient(180deg, rgba(255, 175, 60, 0.06), rgba(255, 110, 30, 0.20));
    animation: hero-temp-in 2.5s ease-out both;
}
.hero-temp-hitze.is-strong {
    background:
        radial-gradient(ellipse 75% 65% at 50% 45%, rgba(255, 150, 40, 0.04) 0%, rgba(250, 120, 35, 0.16) 55%, rgba(230, 75, 20, 0.40) 100%),
        linear-gradient(180deg, rgba(255, 150, 40, 0.10), rgba(230, 70, 20, 0.28));
}
.hero-temp > .hero-heat-sun {
    inset: auto;
    top: -140px;
    right: -140px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 170, 0.95) 0 13%, rgba(255, 195, 85, 0.55) 27%, rgba(255, 140, 40, 0.18) 48%, transparent 70%);
    will-change: transform, opacity;
    animation: hero-sun 6s ease-in-out infinite alternate;
}
.hero-temp-hitze.is-strong > .hero-heat-sun { top: -180px; right: -180px; width: 360px; height: 360px; }
@keyframes hero-sun {
    from { transform: scale(0.92); opacity: 0.8; }
    to { transform: scale(1.06); opacity: 1; }
}
.hero-temp > .hero-heat-haze {
    inset: auto 0 -20px 0;
    height: calc(45% + 20px);
    background: repeating-linear-gradient(180deg, rgba(255, 232, 195, 0) 0, rgba(255, 232, 195, 0.07) 3px, rgba(255, 232, 195, 0) 7px, rgba(255, 232, 195, 0) 10px);
    -webkit-mask-image: linear-gradient(0deg, #000, transparent);
    mask-image: linear-gradient(0deg, #000, transparent);
    will-change: transform;
    animation: hero-haze 3.5s linear infinite;
}
.hero-temp-hitze.is-strong > .hero-heat-haze { height: calc(60% + 20px); }
@keyframes hero-haze {
    0% { transform: translateY(0) skewX(0deg); }
    25% { transform: translateY(-5px) skewX(1.5deg); }
    50% { transform: translateY(-10px) skewX(0deg); }
    75% { transform: translateY(-15px) skewX(-1.5deg); }
    100% { transform: translateY(-20px) skewX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-temp, .hero-temp > span { animation: none !important; }
}
/* Vorschau in Admin › Festival-Wetter (immer nur ein Effekt sichtbar) */
.weather-hero-preview { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.75rem; max-width: 520px; }
.weather-hero-preview[hidden] { display: none; }
.weather-hero-preview .home-hero { margin: 0; min-height: 170px; border-radius: 12px; padding: 1rem; display: flex; align-items: flex-end; }
.weather-hero-preview .home-hero strong { font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.weather-hero-preview a { font-size: 0.85rem; }
