﻿/* ============================================================
   BOOKIFY – Zentrales Design-System  ·  v3 "Klar"
   Apple-artiger, ruhiger Look: viel Weißraum, ein Akzent, weiche
   Bewegung. Alle CI-Farben hier ändern für neuen Kunden.
   ------------------------------------------------------------
   Neu in v3 (gegenüber v2 "Poliert"):
   · Eine einzige Schriftfamilie statt zwei (Inter, mit
     -apple-system/SF Pro als bevorzugtem System-Stack)
   · Einfarbiger, ruhiger Verlauf statt Dreifarb-Regenbogen
   · Einlagige, sehr weiche Schatten statt mehrschichtig-hart
   · Großzügigerer Radius, mehr Weißraum, mehr Zurückhaltung
   · Sanfte Apple-typische Easing-Kurve statt linearem ease
   · Helle, klare Tabellen-Header statt dunkler Verlaufsbalken
   Alle Klassennamen sind unverändert – kein View muss angepasst werden.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── 1. CSS VARIABLES (CI-Anpassung hier) ─────────────────── */
:root {
    /* Primärfarben – Bookify Dunkelblau (Logo-Start), einziger Akzent */
    --color-primary: #1a3fc4;
    --color-primary-dark: #12309a;
    --color-primary-light: #eef2ff;
    --color-primary-tint: #dde6ff;
    /* Sekundärfarben – Bookify Grün (Logo-Ende), nur für Erfolgszustände */
    --color-secondary: #3dd68c;
    --color-secondary-dark: #239a63;
    --color-secondary-light: #edfaf4;
    /* Ruhiger, einfarbiger Verlauf für große Flächen (Hero, Featured-Karten) */
    --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-brand-diag: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --color-accent: #00c8d4;
    /* Der originale, dreifarbige Logo-Verlauf – bewusst nur für ein paar
       kleine, wiederkehrende Detail-Stellen (Avatare, Fortschrittsbalken,
       Nummern-Badges), statt großflächig */
    --gradient-brand-vivid: linear-gradient(135deg, #1a3fc4 0%, #00c8d4 50%, #3dd68c 100%);
    --gradient-brand-vivid-diag: linear-gradient(150deg, #1a3fc4 0%, #00c8d4 50%, #3dd68c 100%);
    /* Neutralfarben – Apples Signature-Grau/-Schwarz statt Blauschwarz */
    --color-ink: #1d1d1f;
    --color-text: #1d1d1f;
    --color-text-muted: #636366;
    --color-text-light: #aeaeb2;
    --color-bg: #f5f5f7;
    --color-bg-white: #ffffff;
    --color-border: #e5e5e7;
    --color-border-light: #f0f0f2;
    /* Status-Farben – ruhiger, entsättigter */
    --color-success: #2eab72;
    --color-success-light: #f2fbf6;
    --color-warning: #b06a00;
    --color-warning-light: #fff8ec;
    --color-danger: #d3273e;
    --color-danger-light: #fdedf0;
    --color-disabled: #e5e5e7;
    --color-disabled-text: #a1a1a6;
    /* Typografie – eine Familie, Persönlichkeit über Gewicht/Sperrung */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--font-family);
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.8125rem; /* 13px */
    --font-size-base: 1rem; /* 16px */
    --font-size-md: 1.0625rem; /* 17px */
    --font-size-lg: 1.5rem; /* 24px */
    --font-size-xl: 1.875rem; /* 30px */
    --font-size-2xl: 2.5rem; /* 40px */
    /* Abstände – etwas großzügiger als v2 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
    /* Border-Radius – großzügiger, "continuous corner"-Gefühl */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-pill: 99px;
    /* Schatten – einlagig, extrem weich im Ruhezustand, mehr Tiefe nur bei Interaktion */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 28px rgba(0,0,0,0.09);
    --shadow-lg: 0 20px 56px rgba(0,0,0,0.14);
    --shadow-brand: 0 10px 28px color-mix(in srgb, var(--color-primary) 24%, transparent);
    --shadow-brand-hover: 0 14px 34px color-mix(in srgb, var(--color-primary) 30%, transparent);
    --focus-ring: 0 0 0 4px color-mix(in srgb, var(--color-primary) 14%, transparent);
    /* Transitions – sanfte, Apple-typische Kurve statt linearem ease */
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 0.18s var(--ease-apple);
    --transition-base: 0.32s var(--ease-apple);
    --transition-smooth: 0.45s var(--ease-apple);
}

/* ── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding-top: 90px;
    font-size: var(--font-size-base);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.011em;
}

::selection {
    background: var(--color-primary-tint);
    color: var(--color-primary-dark);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── 3. ANIMATIONEN ────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(14px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.5s var(--ease-apple) forwards;
}

.fade-in-down {
    animation: fadeInDown 0.6s var(--ease-apple) forwards;
}

.fade-slide-in {
    animation: fadeSlideIn 0.5s var(--ease-apple) forwards;
}

.fade-slide-out {
    animation: fadeSlideOut 0.35s var(--ease-apple) forwards;
}

/* ── 4. TYPOGRAFIE ─────────────────────────────────────────── */
.page-title {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    text-align: center;
    margin: 4rem auto 2rem auto;
    color: var(--color-ink);
    font-weight: 800;
    letter-spacing: -0.035em;
    padding: 0 var(--space-md);
    opacity: 0;
    transform: translateY(-14px);
    animation: fadeInDown 0.6s var(--ease-apple) forwards;
}

    .page-title::after {
        content: '';
        display: block;
        margin: var(--space-md) auto 0 auto;
        width: 44px;
        height: 4px;
        border-radius: 2px;
        background: var(--color-primary);
    }

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    margin-bottom: var(--space-lg);
}

/* ── 5. KARTEN ─────────────────────────────────────────────── */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl) 2.5rem;
    max-width: 600px;
    width: 100%;
    margin: auto;
    animation: fadeIn 0.5s var(--ease-apple);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

.card-sm {
    max-width: 480px;
}

.card-lg {
    max-width: 900px;
}

/* ── 6. EVENT-KARTEN (öffentliche Übersicht) ───────────────── */
.events-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 var(--space-md);
}

@media (max-width: 991px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-container {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-smooth);
    cursor: default;
}

    .event-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
        border-color: var(--color-border);
    }

    .event-card .actions {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

        .event-card .actions .btn {
            flex: 0 0 auto !important;
            width: fit-content !important;
            padding: 0.6rem 1.5rem;
        }

    .event-card .image-wrapper {
        height: 160px;
        overflow: hidden;
        flex-shrink: 0;
        filter: saturate(0.9);
        transition: filter var(--transition-smooth);
    }

    .event-card:hover .image-wrapper {
        filter: saturate(1);
    }

    .event-card .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform var(--transition-smooth);
    }

    .event-card:hover .image-wrapper img {
        transform: scale(1.03);
    }

    .event-card .content {
        padding: var(--space-lg) var(--space-xl) var(--space-xl) var(--space-xl);
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .event-card .title-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: var(--space-sm);
        gap: var(--space-xs);
        min-height: 40px;
    }

    .event-card .event-title {
        max-width: 85%;
        font-family: var(--font-display);
        font-size: var(--font-size-base);
        font-weight: 700;
        margin: 0;
        color: var(--color-ink);
        white-space: normal;
        word-break: break-word;
        letter-spacing: -0.01em;
    }

    .event-card .event-details {
        color: var(--color-text-muted);
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-lg);
    }

        .event-card .event-details div {
            margin-bottom: var(--space-xs);
        }

.info-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

    .info-btn:hover, .info-btn:focus {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }

.no-events {
    color: var(--color-disabled-text);
    font-size: 1.2rem;
    text-align: center;
    margin-top: 8rem;
}

/* Konsistente Deckkraft für dekorative Zustands-Icons (leer, kein Ergebnis) */
.empty-state i, .no-results i, .evt-empty i {
    opacity: 0.35;
    color: var(--color-text-light);
}

/* ── 7. TICKET-KARTEN (Veranstalter-Übersicht) ─────────────── */
.tickets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

    .ticket:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
        box-shadow: var(--shadow-md);
    }

    .ticket.past {
        opacity: 0.65;
    }

.ticket-left {
    width: 110px;
    min-width: 110px;
    background: var(--gradient-brand-diag);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    gap: 2px;
}

    .ticket-left.full {
        background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    }

    .ticket-left.past {
        background: linear-gradient(160deg, #9a9a9e, #6e6e73);
    }

.ticket-day {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.ticket-month {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ticket-year {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.55);
}

.ticket-time {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.92);
    margin-top: var(--space-sm);
    background: rgba(0,0,0,0.18);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.perforation {
    width: 22px;
    min-width: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    background: var(--color-bg-white);
    position: relative;
}

    .perforation::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 1px;
        height: calc(100% - 20px);
        border-left: 1.5px dashed var(--color-border);
    }

.perf-top {
    width: 16px;
    height: 8px;
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: none;
    margin-top: -10px;
}

.perf-bot {
    width: 16px;
    height: 8px;
    border-radius: var(--radius-pill) var(--radius-pill) 0 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-bottom: none;
    margin-bottom: -10px;
}

.ticket-main {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.ticket-title {
    font-family: var(--font-display);
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.01em;
}

.ticket-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.meta-pill {
    font-size: var(--font-size-xs);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-light);
}

    .meta-pill.voll {
        background: var(--color-primary-tint);
        color: var(--color-primary);
        border-color: transparent;
        font-weight: 600;
    }

    .meta-pill.past-badge {
        background: var(--color-bg);
        color: var(--color-text-light);
    }

.prog-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prog-track {
    flex: 1;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    height: 6px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand-vivid);
    transition: width 0.6s var(--ease-apple);
}

.prog-count {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ticket-stub {
    width: 72px;
    min-width: 72px;
    border-left: 1.5px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-sm);
    gap: 4px;
}

.stub-label {
    font-size: 9px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.stub-num {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.stub-bar {
    width: 6px;
    height: 50px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 2px 0;
}

.stub-bar-fill {
    width: 100%;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand-vivid-diag);
}

/* ── 8. HERO-BANNER ────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}

    .hero h1 {
        font-family: var(--font-display);
        font-size: var(--font-size-lg);
        font-weight: 700;
        letter-spacing: -0.02em;
        color: #fff;
        margin: 0;
    }

.hero-sub {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.68);
    margin-top: 3px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: var(--space-lg);
    position: relative;
    z-index: 1;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── 9. BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-family);
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.2rem;
    font-size: var(--font-size-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast), opacity var(--transition-fast);
    user-select: none;
}

    .btn:active {
        transform: scale(0.97);
    }

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-brand);
}

    .btn-primary:hover, .btn-primary:focus {
        background: var(--color-primary-dark);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), var(--shadow-brand-hover);
        color: white;
        outline: none;
        transform: translateY(-1px);
    }

.btn-secondary {
    background: var(--color-primary-tint);
    border: none;
    color: var(--color-primary);
}

    .btn-secondary:hover, .btn-secondary:focus {
        background: var(--color-primary);
        color: white;
        box-shadow: var(--shadow-sm);
    }

.btn-outline {
    background: var(--color-bg-white);
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
}

    .btn-outline:hover {
        border-color: var(--color-text);
        color: var(--color-text);
        background: var(--color-bg);
        box-shadow: var(--shadow-sm);
    }

.btn-danger {
    background: var(--color-danger-light);
    border: none;
    color: var(--color-danger);
}

    .btn-danger:hover {
        background: #fbdde3;
        color: var(--color-danger);
    }

.btn-disabled, .btn:disabled {
    background: var(--color-disabled) !important;
    color: var(--color-disabled-text) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    pointer-events: none;
}

.btn-ticket {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

    .btn-ticket:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
        background: var(--color-primary-light);
    }

    .btn-ticket.danger {
        background: var(--color-danger-light);
        border-color: transparent;
        color: var(--color-danger);
    }

        .btn-ticket.danger:hover {
            background: #fbdde3;
        }

.create-btn {
    background: #fff;
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

    .create-btn:hover {
        background: var(--color-primary-tint) !important;
        color: var(--color-primary) !important;
        text-decoration: none !important;
        transform: translateY(-1px);
    }

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-sm);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

    .export-btn:hover {
        color: var(--color-primary);
        border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
        background: var(--color-primary-light);
    }

/* ── 10. FORMULARE ─────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-lg);
    animation: fadeIn 0.5s var(--ease-apple);
}

    .form-group label {
        display: block;
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-xs);
        font-weight: 600;
        color: var(--color-text-muted);
        user-select: none;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="datetime-local"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem 0.9rem;
        border: 1.5px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: var(--font-size-base);
        font-family: var(--font-family);
        background: var(--color-bg-white);
        color: var(--color-text);
        transition: border-color var(--transition-base), box-shadow var(--transition-base);
    }

        .form-group input:hover:not(:focus),
        .form-group select:hover:not(:focus),
        .form-group textarea:hover:not(:focus) {
            border-color: #c7c7cc;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--color-text-light);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--color-primary);
            outline: none;
            box-shadow: var(--focus-ring);
        }

.text-validation {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-danger);
}

    .text-validation.warning {
        color: var(--color-warning);
    }

/* ── 11. TOOLBAR & TABS ────────────────────────────────────── */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.ticket-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg);
    border: none;
    border-radius: var(--radius-pill);
    padding: 3px;
}

.ticket-tab {
    background: none;
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

    .ticket-tab.active {
        color: var(--color-primary);
        background: var(--color-bg-white);
        font-weight: 600;
        box-shadow: var(--shadow-sm);
    }

    .ticket-tab:hover:not(.active) {
        color: var(--color-text);
    }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

/* ── 12. POPUP / MODAL ─────────────────────────────────────── */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: fadeIn 0.3s var(--ease-apple);
}

    .popup-content p {
        font-size: var(--font-size-base);
        color: var(--color-text);
        margin: 0;
    }

/* ── 13. LOADING OVERLAY ───────────────────────────────────── */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 0.85s linear infinite;
}

/* ── 14. EXPORT-BUTTON-GRUPPE ──────────────────────────────── */
.export-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* ── 15. BACK-LINK ─────────────────────────────────────────── */
.back-link {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 var(--space-md);
    text-align: center;
}

    .back-link a {
        color: var(--color-primary);
        font-weight: 600;
        font-size: var(--font-size-base);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: border-color var(--transition-smooth);
    }

        .back-link a:hover, .back-link a:focus {
            border-color: var(--color-primary);
            outline: none;
        }

/* ── 16. BUTTON-GRUPPE ─────────────────────────────────────── */
.btn-group {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 550px) {
    .btn-group {
        flex-direction: column;
    }

        .btn-group .btn {
            width: 100%;
        }
}

/* ── 17. NACHRICHTEN-SEITE ─────────────────────────────────── */
.message-card {
    max-width: 480px;
    margin: 6rem auto;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl);
    text-align: center;
    animation: fadeIn 0.5s var(--ease-apple);
}

    .message-card h2 {
        font-family: var(--font-display);
        color: var(--color-ink);
        margin-bottom: var(--space-md);
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .message-card p {
        color: var(--color-text-muted);
        margin-bottom: var(--space-sm);
    }

/* -- SUCHLEISTEN ----------------------------------------------*/
.bfy-search {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: var(--font-size-sm);
    width: 200px;
    background: var(--color-bg-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), width var(--transition-base);
}

    .bfy-search:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: var(--focus-ring);
        width: 240px;
    }

/* ── 18. NAVBAR ────────────────────────────────────────────── */
.bfy-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255,255,255,0.75);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    height: 76px;
    display: flex;
    align-items: center;
}

.bfy-nav__inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.bfy-nav__brand img {
    height: 50px;
    transition: transform var(--transition-fast);
}

.bfy-nav__brand:hover img {
    transform: scale(1.04);
}

.bfy-nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.bfy-nav__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: 6px 14px;
    color: var(--color-text-muted);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color var(--transition-base);
}

    .bfy-nav__link:hover {
        color: var(--color-text);
    }

.bfy-nav__link--active {
    color: var(--color-primary);
    font-weight: 600;
}

.bfy-nav__user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: var(--space-md);
    padding-left: var(--space-md);
    border-left: 1px solid var(--color-border);
}

.bfy-nav__user-info {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.bfy-nav__logout {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

    .bfy-nav__logout:hover {
        border-color: var(--color-text);
        color: var(--color-text);
        background: var(--color-bg);
    }

.bfy-nav__btn-login {
    background: var(--color-primary);
    border: none;
    color: white;
    border-radius: var(--radius-pill);
    padding: 7px 18px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

    .bfy-nav__btn-login:hover {
        background: var(--color-primary-dark);
        box-shadow: var(--shadow-brand);
        color: white;
    }

.bfy-nav__toggler {
    border: none;
    font-size: 22px;
    color: var(--color-text);
    background: none;
    padding: 4px 8px;
    cursor: pointer;
    display: none;
}

@media (max-width: 991px) {
    .bfy-nav {
        height: auto;
        padding: 10px 0;
    }

    .bfy-nav__toggler {
        display: block;
    }

    .navbar-collapse {
        padding: var(--space-md) 0;
        border-top: 1px solid var(--color-border-light);
        margin-top: var(--space-sm);
    }

    .bfy-nav__links {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .bfy-nav__link {
        justify-content: center;
        padding: 10px;
        width: 100%;
    }

    .bfy-nav__user {
        flex-direction: column;
        border-left: none;
        border-top: 1px solid var(--color-border-light);
        padding-left: 0;
        padding-top: var(--space-sm);
        margin-left: 0;
        margin-top: var(--space-sm);
        width: 100%;
        align-items: center;
    }

    .bfy-nav__btn-login {
        justify-content: center;
        margin-top: var(--space-sm);
    }
}

/* ── 19. UTILITY CLASSES ───────────────────────────────────── */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary-dark);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.mt-auto {
    margin-top: auto;
}

.w-100 {
    width: 100%;
}

/* ── 20. FOOTER ────────────────────────────────────────────────── */
.bfy-footer {
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: var(--font-size-sm);
    width: 100%;
    margin-top: auto;
}

.bfy-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.bfy-footer__brand {
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--gradient-brand-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bfy-footer__sep {
    color: var(--color-border);
}

.bfy-footer__link {
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .bfy-footer__link:hover {
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

.bfy-footer__logout {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
}

.bfy-footer-wrapper {
    margin-top: auto;
}

/* ── 21. EINLASS-VIEW ───────────────────────────────────────────── */
.hero-prog-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.2rem;
    position: relative;
    z-index: 1;
}

.hero-prog-track {
    flex: 1;
    max-width: 260px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    height: 6px;
    overflow: hidden;
}

.hero-prog-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: #fff;
    transition: width 0.6s var(--ease-apple);
}

.hero-prog-label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.8);
    font-variant-numeric: tabular-nums;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-xs);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

    .filter-pill.active {
        border-color: var(--color-primary);
        color: #fff;
        background: var(--color-primary);
    }

    .filter-pill:hover:not(.active) {
        background: var(--color-bg);
        border-color: #c7c7cc;
    }

.gaeste-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gast-card {
    display: flex;
    cursor: pointer;
    align-items: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-base), background var(--transition-base);
}

    .gast-card:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
        border-color: #c7c7cc;
    }

    .gast-card:active {
        opacity: 0.8;
    }

    .gast-card.checked {
        border-color: rgba(46,171,114,0.4);
        background: var(--color-success-light);
    }

    .gast-card.hidden {
        display: none;
    }

.gast-check-col {
    width: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 4px;
}

    .gast-check-col input[type=checkbox] {
        width: 1.25em;
        height: 1.25em;
        cursor: pointer;
        accent-color: var(--color-success);
    }

.gast-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--gradient-brand-vivid-diag);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    color: #fff;
    margin-right: 12px;
}

.gast-card.checked {
    border-left: 3px solid var(--color-success);
}

    .gast-card.checked .gast-avatar {
        background: var(--color-secondary-dark);
    }

.gast-info {
    flex: 1;
    padding: 0.75rem 0;
    min-width: 0;
}

.gast-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.gast-meta {
    display: flex;
    gap: 10px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.gast-meta-item {
    font-size: 11px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 3px;
}

.gast-sitz-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
    padding-right: var(--space-md);
    text-align: right;
}

.gast-sitz {
    padding: 0;
    font-size: 11px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.gast-tickets {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 3rem var(--space-md);
    color: var(--color-text-light);
}

    .empty-state i {
        font-size: 40px;
        display: block;
        margin-bottom: var(--space-sm);
    }

    .empty-state p {
        font-size: 14px;
        margin: 0;
    }

/* ── 22. FEEDBACK-VIEW ──────────────────────────────────────────── */
.feedback-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 var(--space-lg);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: 2rem;
}

    .feedback-header h2 {
        font-family: var(--font-display);
        font-size: var(--font-size-xl);
        font-weight: 700;
        color: var(--color-ink);
        margin: 0 0 var(--space-xs) 0;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        flex-wrap: wrap;
        letter-spacing: -0.02em;
    }

.feedback-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    vertical-align: middle;
}

.feedback-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-md);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-md) var(--space-xl);
    align-items: start;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

    .feedback-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.feedback-card__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.feedback-card__value {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.feedback-card__value--strong {
    font-weight: 500;
    color: var(--color-text);
}

@media (max-width: 600px) {
    .feedback-card {
        grid-template-columns: 1fr;
    }
}

/* ── TABELLEN-KARTE ─────────────────────────────────────────── */
.table-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.table-card__header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border-light);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .table-card__header span {
        font-size: var(--font-size-sm);
        font-weight: 700;
        color: var(--color-ink);
        letter-spacing: -0.01em;
    }

.gaeste-badge {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.table-card__search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg);
}

.table-card__actions {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-white);
}

/* Tabelle */
.bfy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: var(--font-size-sm);
    padding: 0 10px;
}

    .bfy-table thead tr {
        background: transparent;
    }

    .bfy-table thead th {
        padding: 10px 16px;
        font-size: var(--font-size-xs);
        font-weight: 700;
        color: var(--color-text-light);
        text-transform: uppercase;
        letter-spacing: 0.07em;
        border: none;
        border-bottom: 1px solid var(--color-border-light);
        text-align: left;
    }

    .bfy-table tbody tr {
        background: var(--color-bg-white);
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-md);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    }

        .bfy-table tbody tr:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

    .bfy-table tbody td {
        padding: 10px 16px;
        font-size: var(--font-size-sm);
        color: var(--color-text);
        border: none;
        vertical-align: middle;
    }

        .bfy-table tbody td:first-child {
            border-radius: var(--radius-md) 0 0 var(--radius-md);
        }

        .bfy-table tbody td:last-child {
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }

.bfy-table__input {
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 6px 10px;
    width: 100%;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    background: var(--color-bg-white);
    color: var(--color-text);
    font-family: var(--font-family);
}

    .bfy-table__input:focus {
        border-color: var(--color-primary);
        box-shadow: var(--focus-ring);
        outline: none;
    }

.num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-brand-vivid-diag);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

@keyframes rowFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-new {
    animation: rowFadeIn 0.25s var(--ease-apple) forwards;
}

.no-results {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    padding: var(--space-xl);
}

    .no-results i {
        font-size: 24px;
        display: block;
        margin-bottom: var(--space-sm);
    }

@media (max-width: 768px) {
    .bfy-table thead {
        display: none;
    }

    .bfy-table tbody td {
        display: block;
        padding: 6px 16px;
    }

    .bfy-table tbody tr {
        border-bottom: 1px solid var(--color-border-light);
        display: block;
        padding: 8px 0;
    }
}

.btn-danger-solid {
    background: var(--color-danger);
    color: white;
    border: none;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-danger) 26%, transparent);
}

    .btn-danger-solid:hover {
        background: color-mix(in srgb, var(--color-danger) 85%, black);
        box-shadow: 0 8px 22px color-mix(in srgb, var(--color-danger) 32%, transparent);
        color: white;
    }

/* ── ANMELDEN-VIEW ──────────────────────────────────────────── */
.anmelden-same-data {
    margin: var(--space-md) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

/* ── MESSAGE / STATUS VIEW ──────────────────────────────────── */
.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding: var(--space-xl) var(--space-md);
}

.status-container {
    width: 100%;
    max-width: 500px;
    padding: var(--space-2xl) 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
    animation: fadeIn 0.4s var(--ease-apple);
}

.status-success {
    background: linear-gradient(160deg, var(--color-secondary-dark), var(--color-secondary));
    box-shadow: 0 16px 40px color-mix(in srgb, var(--color-secondary) 30%, transparent);
}

.status-error {
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 16px 40px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.status-solution {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255,255,255,0.16);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
}

.status-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 26px;
    background: white;
    color: var(--color-text);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

    .status-btn:hover {
        transform: scale(1.03);
        background: var(--color-bg);
        color: var(--color-text);
    }

.checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: fill .4s var(--ease-apple) .4s forwards, scale .3s var(--ease-apple) .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke: #fff;
    fill: none;
    animation: stroke 0.6s var(--ease-apple) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s var(--ease-apple) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px rgba(255,255,255,0.12);
    }
}

/* ── STATISTIKEN-VIEW ───────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

    .stat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
    }

.stat-card--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-md);
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-top: var(--space-md);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

    .stat-card__list li {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        font-size: var(--font-size-sm);
        padding: var(--space-xs) 0;
        border-bottom: 1px solid var(--color-border-light);
    }

        .stat-card__list li:last-child {
            border-bottom: none;
        }

.stat-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient-brand-vivid-diag);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-count {
    margin-left: auto;
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-variant-numeric: tabular-nums;
}

/* ── DASHBOARD ──────────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dash-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

    .dash-card:hover {
        box-shadow: var(--shadow-md);
    }

.dash-card--featured {
    background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-brand);
    position: relative;
    overflow: hidden;
}

.dash-card__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-card--featured .dash-card__label {
    color: rgba(255,255,255,0.72);
}

.dash-card__title {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-sm) 0;
    color: white;
    position: relative;
}

.dash-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.82);
    margin-bottom: var(--space-md);
    position: relative;
}

    .dash-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.dash-countdown {
    margin: var(--space-sm) 0;
    position: relative;
}

.dash-countdown__badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.dash-countdown__badge--today {
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
}

.dash-countdown__badge--soon {
    background: rgba(255,255,255,0.35);
}

.dash-quicklinks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.dash-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-md) var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-align: center;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

    .dash-quicklink i {
        font-size: 1.3rem;
        color: var(--color-primary);
        transition: transform var(--transition-fast);
    }

    .dash-quicklink:hover {
        border-color: var(--color-primary);
        background: var(--color-primary-light);
        color: var(--color-primary);
        transform: translateY(-2px);
    }

        .dash-quicklink:hover i {
            transform: scale(1.1);
        }

.dash-upcoming {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.dash-upcoming__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    background: var(--color-bg);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

    .dash-upcoming__item:hover {
        box-shadow: var(--shadow-sm);
        border-color: var(--color-border);
    }

.dash-upcoming__date {
    width: 44px;
    min-width: 44px;
    text-align: center;
    padding: var(--space-xs);
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
}

/* ── VERANSTALTUNG FORM GRID ────────────────────────────────── */
.veranstaltung-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .veranstaltung-form-grid {
        grid-template-columns: 1fr;
    }

        .veranstaltung-form-grid [style*="grid-column"] {
            grid-column: 1 !important;
        }
}

/* ── INFO-CARD & GÄSTE-TABLE ────────────────────────────────── */
.info-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.info-card__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-ink);
    margin: 0 0 var(--space-md);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md) var(--space-xl);
}

.info-item__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.info-item__value {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5;
}

.gast-avatar-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--gradient-brand-vivid-diag);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-display);
    color: #fff;
}

.td-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
}

.ticket-tab .gaeste-badge {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.ticket-tab.active .gaeste-badge {
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

/* ── SAALPLAN EDITOR ────────────────────────────────────────── */
.saalplan-layout {
    display: flex;
    gap: 0;
    height: calc(100vh - 120px);
    min-height: 600px;
    margin: 0 calc(-1 * var(--space-md));
}

.saalplan-sidebar {
    width: 200px;
    min-width: 200px;
    background: var(--color-bg-white);
    border-right: 1px solid var(--color-border-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.saalplan-sidebar__section {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.saalplan-sidebar__title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.saalplan-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: grab;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    user-select: none;
}

    .tool-item:hover {
        border-color: var(--color-primary);
        background: var(--color-primary-light);
        color: var(--color-primary);
        transform: translateY(-1px);
    }

    .tool-item:active {
        cursor: grabbing;
    }

.tool-item--active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.tool-item__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saalplan-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saalplan-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

    .saalplan-action-btn:hover:not(:disabled) {
        border-color: var(--color-primary);
        color: var(--color-primary);
        background: var(--color-primary-light);
    }

    .saalplan-action-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.saalplan-action-btn--danger:hover:not(:disabled) {
    border-color: var(--color-danger);
    color: var(--color-danger);
    background: var(--color-danger-light);
}

.saalplan-snap-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 11px;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-top: var(--space-sm);
}

.saalplan-sidebar__info {
    padding: var(--space-sm) var(--space-md);
    font-size: 11px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--color-border-light);
}

.saalplan-sidebar__help {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    color: var(--color-text);
    margin-top: auto;
}

    .saalplan-sidebar__help kbd {
        background: var(--color-bg);
        color: var(--color-text);
        border: 1px solid var(--color-border);
        border-bottom-width: 2px;
        border-radius: 4px;
        padding: 1px 5px;
        font-size: 9px;
        font-family: monospace;
    }

.saalplan-main {
    flex: 1;
    overflow: auto;
    background: var(--color-bg);
    background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-lg);
}

.saalplan-canvas-wrapper {
    display: inline-block;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: visible;
    cursor: crosshair;
    background: var(--color-bg-white);
}

#saalplan-canvas {
    display: block;
}

.saalplan-toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--color-ink);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    font-weight: 500;
    z-index: 9999;
    transition: transform 0.3s var(--ease-apple);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.saalplan-toast--show {
    transform: translateX(-50%) translateY(0);
}

.saalplan-toast--error {
    background: var(--color-danger);
}

@media (max-width: 768px) {
    .saalplan-layout {
        flex-direction: column;
        height: auto;
    }

    .saalplan-sidebar {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .saalplan-tools {
        grid-template-columns: repeat(6, 1fr);
    }

    .saalplan-sidebar__help {
        display: none;
    }

    .saalplan-main {
        padding: var(--space-sm);
    }
}

/* ── SAALPLAN OPTIONEN ──────────────────────────────────────── */
.saalplan-optionen-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 700px;
    margin: 0 auto;
}

.saalplan-option-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

    .saalplan-option-card:hover {
        box-shadow: var(--shadow-md);
        border-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
        transform: translateY(-1px);
    }

.saalplan-option-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.saalplan-option-card__body {
    flex: 1;
    min-width: 0;
}

.saalplan-option-card__name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.saalplan-option-card__meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ── SAALPLAN GRÖSSEN-TOOLBAR ───────────────────────────────── */
.size-toolbar {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 4px 6px;
    box-shadow: var(--shadow-md);
    font-size: 11px;
}

.size-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

    .size-btn:hover {
        background: var(--color-primary-light);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

.size-input {
    width: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2px 4px;
    font-size: 11px;
    text-align: center;
    color: var(--color-text);
}

.size-sep {
    width: 1px;
    height: 18px;
    background: var(--color-border);
    margin: 0 2px;
}

/* ── STRIPE PREISE ──────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.pricing-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

    .pricing-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.pricing-card--active {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring), var(--shadow-md);
}

.pricing-card__badge {
    position: absolute;
    top: -10px;
    right: var(--space-md);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-xs);
    padding: 3px 14px;
    border-radius: 99px;
    font-weight: 600;
}

.pricing-card__name {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.pricing-card__price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.pricing-card__desc {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .pricing-card__features li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: var(--font-size-sm);
        color: var(--color-text);
    }

    .pricing-card__features i {
        color: var(--color-secondary-dark);
    }

/* ── FEEDBACK-VIEW (Ergänzung: Übersicht mit Sterne-Verteilung) ──── */
.feedback-hero {
    margin-bottom: var(--space-xl);
}

.feedback-event-card {
    margin-bottom: var(--space-lg);
}

.feedback-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.feedback-event-header__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-event-header__icon {
    color: rgba(255,255,255,0.8);
}

.feedback-event-header__date {
    font-size: 12px;
    opacity: 0.7;
}

.feedback-event-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-event-header__count {
    font-size: 12px;
    opacity: 0.7;
}

.feedback-schnitt-pill {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: #fff;
}

.feedback-sterne-verteilung {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.feedback-sterne-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.feedback-sterne-row__label {
    width: 12px;
    text-align: right;
    color: var(--color-text-muted);
}

.feedback-sterne-row__star {
    color: #f0a020;
}

.feedback-sterne-row__count {
    width: 24px;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.feedback-sterne-bar-track {
    flex: 1;
    background: var(--color-border-light);
    border-radius: var(--radius-pill);
    height: 8px;
}

.feedback-sterne-bar-fill {
    background: #f0a020;
    border-radius: var(--radius-pill);
    height: 8px;
    transition: width 0.3s var(--ease-apple);
}

.feedback-kommentare {
    padding: var(--space-md) var(--space-lg);
}

.feedback-kommentare__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.feedback-kommentar-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-sm);
    border-left: 3px solid #f0a020;
}

.feedback-kommentar-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.feedback-kommentar-card__name {
    font-weight: 600;
    font-size: 13px;
}

.feedback-kommentar-card__sterne {
    color: #f0a020;
    font-size: 13px;
}

.feedback-kommentar-card__text {
    margin: 0;
    font-size: 13px;
    color: var(--color-text);
}

.feedback-kommentar-card__datum {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ── SICHTBARKEITS-TOGGLE ──────────────────────────────────── */
.visibility-toggle-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.visibility-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .visibility-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.visibility-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-disabled);
    border-radius: 99px;
    transition: var(--transition-fast);
}

    .visibility-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        transition: var(--transition-fast);
    }

.visibility-switch input:checked + .visibility-slider {
    background: var(--color-secondary-dark);
}

    .visibility-switch input:checked + .visibility-slider:before {
        transform: translateX(20px);
    }

.visibility-label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    cursor: pointer;
}

.visibility-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ── BARRIEREFREIHEIT: REDUZIERTE BEWEGUNG ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .page-title, .fade-in, .fade-in-down, .fade-slide-in {
        opacity: 1;
        transform: none;
    }
}

/* ── 23. GÄSTE-EVENTÜBERSICHT ──────────────────────────────── */
.evt-header {
    text-align: center;
    padding: 48px 16px 8px;
}

.evt-header__eyebrow {
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.evt-header__name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    margin: 6px 0 0;
}

.evt-header__line {
    width: 44px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 99px;
    margin: 16px auto 12px;
}

.evt-header__count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.evt-toolbar {
    max-width: 1200px;
    margin: 0 auto var(--space-lg);
    padding: 0 var(--space-md);
    display: flex;
    justify-content: center;
}

.evt-search {
    position: relative;
    width: 100%;
    max-width: 420px;
}

    .evt-search i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-text-light);
        pointer-events: none;
    }

    .evt-search input {
        width: 100%;
        border: 1.5px solid var(--color-border);
        border-radius: var(--radius-pill);
        padding: 11px 16px 11px 38px;
        font-size: var(--font-size-sm);
        font-family: var(--font-family);
        background: var(--color-bg-white);
        color: var(--color-text);
        transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

        .evt-search input:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: var(--focus-ring);
        }

.events-container {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-container {
        grid-template-columns: 1fr;
    }
}

.event-card .image-wrapper {
    height: 180px;
    position: relative;
    filter: saturate(0.95);
}

.event-card:hover .image-wrapper {
    filter: saturate(1);
}

.event-card.hidden {
    display: none;
}

.evt-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    padding: 7px 13px 6px;
    text-align: center;
    line-height: 1;
    z-index: 1;
}

.evt-date-badge__day {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    display: block;
}

.evt-date-badge__month {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
    margin-top: 2px;
}

.evt-soldout {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(29,29,31,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    z-index: 1;
}

.event-card--voll .image-wrapper {
    filter: saturate(0.5) brightness(0.95);
}

.evt-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-lg);
}

.evt-meta__item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

    .evt-meta__item i {
        color: var(--color-primary);
        flex-shrink: 0;
    }

    .evt-meta__item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.evt-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 1rem;
    color: var(--color-text-light);
}

    .evt-empty i {
        font-size: 44px;
        display: block;
        margin-bottom: 12px;
    }

    .evt-empty p {
        font-size: var(--font-size-base);
        margin: 0;
    }

    .evt-empty.hidden {
        display: none;
    }
