:root {
    --bg: #0b0b0b;
    --card-bg: #161616;
    --text: #ffffff;
    /* leicht aufgehellt und gesättigt für besseren Kontrast auf dunklem Grund */
    --accent: #ff4081;
    --accent-green: #69f0ae;
    /* Zweite Accent-Farbe für Filter-Buttons (grün) */
    --muted: #b0b0b0;
    --border: #444;
    --salsa: #ff5252;
    --bachata: #42a5f5;
    --kizomba: #ba68c8;
    --andere: #26c6da;
    --city-active: #69f0ae;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    /* kompakte Höhe */
    background: rgba(11, 11, 11, 0.98);
    /* Weniger transparent, damit Filter-Menü nicht durchscheint */
    display: flex;
    /* Blur entfernt für Performance */
    align-items: center;
    padding: 4px 5px;
    /* minimales Padding oben/unten */
    border-bottom: 1px solid #222;
    justify-content: space-between;
    /* Verteilt Titel links und Button rechts */
    box-sizing: border-box;
    /* Wichtig, damit das Padding die Breite nicht sprengt */
    z-index: 10000;
    /* Header z-index */
    border-bottom: 1px solid #111;
    /* Hauchdünne Trennlinie */
}

header h1 {
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 3px;
    line-height: 1.25;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: font-size 0.2s ease, letter-spacing 0.2s ease, opacity 0.2s ease;
    will-change: font-size;
}

/* Universal Search (Header) */
.header-search {
    flex: 1;
    max-width: 680px;
    margin: 0 10px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.header-search-input {
    width: 100%;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    border-radius: 14px;
    border: none;
    background: #2c2c2e;
    color: #fff;
    padding: 0 44px 0 14px;
    font-size: 0.95rem;
    line-height: 45px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    box-sizing: border-box;
    resize: none;
    /* Chrome Autofill-Hintergrund neutralisieren */
    box-shadow: 0 0 0px 1000px #2c2c2e inset;
    -webkit-box-shadow: 0 0 0px 1000px #2c2c2e inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}

.header-search-input.filter-active:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #2c2c2e inset, 0 0 0 1px var(--accent) !important;
}

#header-results-count {
    position: absolute;
    right: 40px;
    top: -10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 1px 8px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.header-filter-reset {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2;
}

.header-filter-reset:hover {
    opacity: 1;
}

.header-search-input.has-count {
    padding-right: 44px;
}

.header-search-input.filter-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.25);
}

/* Chrome Standard-"X"/Search-Decorations bei type="search" ausblenden */
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration {
    display: none;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.header-search-input:focus {
    outline: none;
}

.header-search-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0px 1000px #2c2c2e inset;
}

/* Burger Menu Button */
.burger-menu-btn {
    background: transparent;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    /* Quadratisch (45px x 45px) */
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.burger-menu-btn:hover {
    background: transparent;
    opacity: 0.9;
    color: white;
    /* Icon bleibt weiß beim Hover - nur Rahmen wird accent-farbig */
}

.burger-menu-btn:hover svg {
    color: white;
}

/* Burger Menü: View Switcher */
.burger-menu-view-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 14px 14px 10px 14px;
}

.view-mode-btn {
    width: 100%;
    padding: 11px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-btn-label {
    vertical-align: middle;
}

.view-mode-btn:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
}

.view-mode-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 30, 99, 0.1);
}

.view-default-star {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-default-star svg {
    width: 20px;
    height: 20px;
}

/* Burger Menu */
.burger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0;
}

.burger-menu-content {
    background: #1a1a1a;
    width: 100%;
    max-width: 320px;
    height: 100%;
    border-left: 0.5px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-radius: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.burger-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px 16px;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.burger-menu-header h3 {
    margin: 0;
    color: white;
    font-size: 17px;
    font-weight: 500;
}

.burger-menu-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Fokus-Styles für alle interaktiven Elemente */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.burger-menu-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.burger-menu-items {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

/* Section labels */
.burger-menu-section-label {
    padding: 12px 16px 4px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* Section dividers */
.burger-menu-section-divider {
    height: 0;
    border: none;
    border-top: 0.5px solid rgba(255,255,255,0.06);
    margin: 6px 0;
}

.burger-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: background 0.15s ease;
    font-weight: 400;
    font-size: 14px;
    border-radius: 8px;
    margin: 1px 8px;
}

.burger-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.burger-menu-item-accent {
    color: var(--accent) !important;
}

.burger-menu-item-accent:hover {
    background: rgba(233, 30, 99, 0.08) !important;
}

.burger-menu-item .menu-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.burger-menu-item-accent .menu-icon {
    opacity: 1;
}

.burger-menu-item .menu-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.burger-menu-item span {
    font-size: 14px;
    font-weight: 400;
    flex: 1;
}

.burger-menu-favorites {
    padding: 2px 0;
}

.burger-menu-favorite-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 1px 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.burger-menu-favorite-item:hover {
    background: rgba(255,255,255,0.05);
}

.burger-menu-favorite-item:hover .burger-menu-item {
    background: transparent;
}

.burger-menu-favorite {
    flex: 1;
    margin: 0;
    border-radius: 8px 0 0 8px;
}

.burger-menu-favorite .menu-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-menu-favorite .menu-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.burger-menu-logout {
    border-top: 0.5px solid rgba(255,255,255,0.06);
    padding: 6px 0 8px 0;
    margin-top: 4px;
}

.burger-menu-logout .burger-menu-item {
    color: #e05555;
}

.burger-menu-logout .burger-menu-item:hover {
    color: #ff5555;
    background: rgba(255, 68, 68, 0.08);
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.burger-menu-item.animating .menu-icon {
    animation: iconPulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Notification row: non-clickable row, only toggle + info are interactive */
.burger-menu-notif-row {
    cursor: default;
}
.burger-menu-notif-row:hover {
    background: transparent;
}

/* iOS-style toggle switch */
.notif-toggle {
    position: relative;
    width: 44px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.22s ease;
    flex-shrink: 0;
    padding: 0;
}
.notif-toggle.on {
    background: var(--accent);
}
.notif-toggle.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.notif-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    pointer-events: none;
}
.notif-toggle.on .notif-toggle-thumb {
    transform: translateX(18px);
}

/* "Wie funktioniert das?" hint row below toggle */
.burger-menu-notif-hint {
    padding: 0 16px 6px 54px;
    margin: -2px 8px 2px;
    cursor: pointer;
}
.burger-menu-notif-hint span {
    font-size: 12px;
    color: var(--accent);
}

body {
    padding-top: 80px;
}


/* FILTER BUTTON */
.filter-main-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    width: 48px;
    /* Gleiche Breite wie Kalender-Button (48px) */
    height: 45px;
    padding: 0;
    border-radius: 12px;
    /* Standard: alle Seiten abgerundet */
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-main-btn:hover {
    border-color: var(--accent);
    /* Nur Rahmen accent-farbig, kein Hintergrund-Änderung */
}

/* Icon bleibt weiß beim Hover - nur Rahmen wird accent-farbig */
.filter-main-btn:hover .filter-icon .filter-path {
    stroke: white;
    fill: white;
}

/* Filter-Menü geöffnet (aber noch keine Filter gesetzt): Button accent-farbig, aber vollständig rund */
.filter-main-btn.filter-menu-open {
    border-color: var(--accent);
    border-radius: 12px;
    /* ALLE SEITEN RUND */
    color: var(--accent);
    background: rgba(233, 30, 99, 0.1);
}

/* Wenn Filter aktiv (X-Button sichtbar): Filter-Button LINKS RUND, RECHTS 90° ECKE */
.filter-main-btn.active-filter {
    border-color: var(--accent);
    border-right: 1px solid var(--accent);
    /* Geschlossener Rahmen */
    border-radius: 12px 0 0 12px;
    /* LINKS RUND, RECHTS 90° ECKE */
    color: var(--accent);
    background: #000;
    /* Hintergrund bleibt schwarz */
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

.filter-reset-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    /* Geschlossener Rahmen */
    color: white;
    width: 25px;
    /* 30% schmaler als vorher (36px * 0.7 = 25.2px, gerundet auf 25px) */
    height: 45px;
    /* Gleiche Höhe wie Filter/Kalender Button */
    padding: 0;
    border-radius: 0 12px 12px 0;
    /* RECHTS RUND, LINKS 90° ECKE */
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    /* Direkt an Filter-Button */
}

.filter-main-btn svg,
.filter-reset-btn svg {
    width: 24px;
    height: 24px;
    transition: 0.3s;
    color: currentColor;
    /* Übernimmt die Farbe vom Button */
}

.filter-icon {
    width: 24px;
    height: 24px;
    transition: 0.3s;
}

.filter-icon .filter-path {
    stroke-width: 5px !important;
    stroke: white;
    fill: white;
}

/* Filter-Icon wird rot, wenn Filter aktiv sind */
.filter-main-btn.active-filter .filter-icon .filter-path {
    stroke: var(--accent);
    fill: var(--accent);
}

.filter-main-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 30, 99, 0.05);
}

/* X-Button wird rot, wenn Filter aktiv sind */
.filter-reset-btn.active-filter {
    border-color: var(--accent);
    border-left: 1px solid var(--accent);
    /* Geschlossener Rahmen */
    color: var(--accent);
    background: #000;
    /* Hintergrund bleibt schwarz */
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

/* X-Icon wird accent-farbig, wenn Filter aktiv sind */
.filter-reset-btn.active-filter svg {
    stroke: var(--accent);
}

/* Frost-Overlay — erscheint über Events wenn Filter geöffnet */
@keyframes frostIn {
    0%   { opacity: 0; backdrop-filter: blur(0px);  -webkit-backdrop-filter: blur(0px); }
    100% { opacity: 1; backdrop-filter: blur(6px);  -webkit-backdrop-filter: blur(6px); }
}
@keyframes frostOut {
    0%   { opacity: 1; backdrop-filter: blur(6px);  -webkit-backdrop-filter: blur(6px); }
    100% { opacity: 0; backdrop-filter: blur(0px);  -webkit-backdrop-filter: blur(0px); }
}
#filter-frost-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 99;
    pointer-events: none;
}
#filter-frost-overlay.visible {
    display: block;
    animation: frostIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
#filter-frost-overlay.hiding {
    display: block;
    animation: frostOut 0.25s ease-in forwards;
}

/* FILTER AREA - Deutlich flacher */
#filter-bar {
    display: none;
    position: fixed;
    top: 80px;
    /* Startet bei Header-Höhe, wird per JavaScript angepasst */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 1400px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 15px 15px;
    /* Nur unten rechts und links rund, oben eckig */
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Filter-Fenster geöffnet: Rahmen in Accent-Farbe */
#filter-bar[style*="display: block"] {
    border-color: var(--accent);
}

.filter-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduziert von 20px - rückt Zeilen zusammen */
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.search-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Container für beide Buttons */
#calendar-trigger,
.calendar-reset-btn {
    height: 45px;
    background: #000;
    border: 1px solid #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Reset-Button rot färben, wenn Filter aktiv */
.calendar-reset-btn.active-filter {
    border-color: var(--accent) !important;
    background: #000 !important;
}

.calendar-reset-btn.active-filter svg {
    stroke: var(--accent) !important;
}

#calendar-trigger {
    width: 48px;
    border-radius: 12px;
    /* Standardmäßig alle Ecken gleich abgerundet */
}

.calendar-reset-btn {
    width: 36px;
    border-radius: 12px;
}

/* Beide Buttons rot färben, wenn Filter aktiv - immer zusammen */
#calendar-trigger.active-filter {
    border-color: var(--accent) !important;
    background: #000;
}

#calendar-trigger.active-filter svg {
    stroke: var(--accent) !important;
}

/* Reset-Button wird rot, wenn Kalender-Button rot ist (immer zusammen) */
.calendar-reset-btn.active-filter {
    border-color: var(--accent) !important;
    background: #000;
}

.calendar-reset-btn.active-filter svg {
    stroke: var(--accent) !important;
}

#calendar-trigger:hover {
    border-color: var(--accent);
    background: transparent;
    /* Nur Rahmen accent-farbig, kein Hintergrund-Änderung */
}

/* Icon bleibt weiß beim Hover - nur Rahmen wird accent-farbig */
#calendar-trigger:hover svg {
    stroke: white;
}

/* Reset-Button neben Kalender-Button */
.calendar-reset-btn {
    transition: 0.3s;
}

.calendar-reset-btn:hover {
    border-color: var(--accent);
    /* Nur Rahmen accent-farbig, kein Hintergrund-Änderung */
}

.calendar-reset-btn:active {
    background: var(--accent);
    border-color: var(--accent);
}

.calendar-reset-btn:active svg {
    stroke: white;
}

#calendar-trigger.active-filter {
    border-color: var(--accent);
    background: #000;
    /* Hintergrund bleibt schwarz */
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

/* Optional: Das SVG-Icon darin rot färben wenn Filter aktiv */
#calendar-trigger.active-filter svg {
    stroke: var(--accent);
    /* Icon wird rot */
}

/* X-Button im Kalender-Popup */
.cal-close-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.cal-popup-header {
    display: flex !important;
    visibility: visible !important;
}

.search-input {
    width: 100%;
    min-width: 0;
    /* Verhindert Schrumpfen bei Text-Eingabe */
    background: #000;
    border: 1px solid #444;
    color: white;
    height: 45px;
    padding: 0px 15px;
    /* Padding nur links/rechts 15, da Höhe fix ist =0 */
    padding-right: 80px;
    /* Platzhalter-Abstand für den Counter rechts */
    border-radius: 12px;
    outline: none;
    text-align: left;
    /* Text und Cursor jetzt linksbündig */
    font-size: 1rem;
    box-sizing: border-box;
    /* Verhindert Überlaufen des Feldes */
    display: block;
    flex: 1 1 auto;
    /* Nimmt volle Breite ein, auch bei Text-Eingabe */
    /* Verhindert Ghost-Spaces */
}

.results-count {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--muted);
    pointer-events: none;
    white-space: nowrap;
}

#cal-popup {
    display: none !important;
    position: fixed !important;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 15px;
    padding: 15px;
    z-index: 10000 !important;
    /* Höchster z-index, damit es über allem liegt */
    width: 350px;
    min-width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: visible;

    /* --- DAS IST NEU FÜR DAS SCROLLEN --- */
    max-height: 500px;
    /* Größer für bessere Sichtbarkeit */
    overflow-y: auto;
    /* Macht es scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #1a1a1a;
}

#cal-popup[style*="display: block"] {
    display: block !important;
}

#calendar-trigger.active-filter {
    background: #000 !important;
    /* Hintergrund bleibt schwarz */
    border-color: var(--accent) !important;
    /* Nur Rahmen wird rot */
}

#calendar-trigger.active-filter svg {
    stroke: var(--accent) !important;
    /* Icon wird rot */
}

.btn-group {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    /* Verhindert die zweite Zeile */
    /* justify-content: flex-start; /* Richtet Buttons links aus für Scrollbarkeit */
    overflow-x: auto;
    /* Erlaubt horizontales Wischen */
    width: 100%;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    /* Sanftes Scrollen auf iPhones */
    scrollbar-width: none;
    /* Versteckt Scrollbalken (Firefox) */
    justify-content: center;
    /* NEU: Zentrierung auf dem Handy */
}

.btn-group::-webkit-scrollbar {
    display: none;
    /* Versteckt den Scrollbalken für eine sauberere Optik */
}

.pill {
    position: relative;
    background: #1a1a1a;
    /* Dunkler Hintergrund für den 'leeren' Teil */
    border: 1px solid #444;
    color: #777;
    padding: 5px 14px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    /* Etwas fetter für bessere Lesbarkeit */
    transition: color 0.3s, border-color 0.3s;
    overflow: hidden;
    /* Wichtig für den Füll-Effekt */
    touch-action: manipulation;
    /* Erlaubt Tap-Gesten, verhindert Zoom/Double-Tap, behält Drag-Funktionalität */
    user-select: none;
}

/* Der 'Liquid Button' Effekt = dass mind 80%kiz gefiltert wreden kann */
.pill::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--fill, 0%);
    /* Hier steuern wir die Höhe */
    background: var(--clr);
    transition: height 0.1s ease-out;
    z-index: 0;
}

.pill.active {
    color: white;
    border-color: var(--clr);
}

/* Damit der Text über der 'Flüssigkeit' bleibt */
.pill span {
    position: relative;
    z-index: 1;
}


.city-pill.active {
    border-color: var(--city-active);
    color: var(--city-active);
    background: rgba(76, 175, 80, 0.1);
}

.city-group.has-selection .city-pill:not(.active) {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Kalender Quick-Buttons (Heute / 7 Tage) */
.cal-quick-btn {
    position: relative;
    background: #1a1a1a;
    /* Dunkler Hintergrund wie Filter-Pills */
    border: 1px solid #444;
    color: #777;
    padding: 5px 14px;
    border-radius: 15px;
    /* Runde Pille wie Filter-Buttons */
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    user-select: none;
    font-family: inherit;
    /* Erbt Schriftart vom Body */
}

.cal-quick-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(76, 175, 80, 0.1);
    /* Dezenter grüner Hintergrund beim Hover */
}

.cal-quick-btn.active {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(76, 175, 80, 0.1);
    /* Aktiver Zustand: grün */
}

/* FEED GRID & CARDS */
/* Sort Chips */
#sort-row::-webkit-scrollbar { display: none; }

.sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid #333;
    background: transparent;
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}

.sort-chip.active {
    background: #e91e8c;
    border-color: #e91e8c;
    color: #fff;
}

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

.event-card {
    background: var(--card-bg);
    height: auto;
    /*320px; /* Neue Einheitsgröße ; auto=automatische Einheitsgröße*/
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 10px;
    /* Ein bisschen Abstand unten */
    pointer-events: auto;
    /* Stellt sicher, dass Klicks durchgehen */
    z-index: 10;
}

/* FEED: Karten Bar(Tanzstil) größe etc */
.mix-bar {
    height: 8px;
    /* Etwas schmaler, da direkt am Bild */
    display: flex;
    overflow: hidden;
    background: #000;
    border-radius: 0px;
    margin-top: 0px;
    border: none;
    /* border: 1px solid #222; */
}

.mix-seg {
    height: 100%;
    font-size: 10px;
    /* Kompakte Schrift */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    /* Kleine Buchstaben*/
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    /* Verhindert Textüberlauf bei sehr kleinen Prozenten */
    text-overflow: clip;
    /* Schneidet den Buchstaben einfach ab statt Umbruch */
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
    /* Macht Text auf helleren Farben lesbar */
    padding: 0 2px;
    /* Minimaler Seitenabstand im Segment */
}

.event-card.no-image {
    height: auto;
    min-height: 140px;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: none;
}

.event-card.hidden {
    display: none !important;
}

.card-img-container {
    height: 180px;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Grid-View: Bild-Container mit Button-Overlay */
.card-img-container-grid {
    position: relative;
}

/* Button-Overlay auf Bild (Grid-View) */
.card-buttons-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.card-btn-overlay {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    /* Blur entfernt für Performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: white;
}

.card-btn-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.like-btn-overlay[data-liked="true"] {
    background: rgba(233, 30, 99, 0.3);
    border-color: var(--accent);
}

.no-image .card-img-container {
    display: none;
}

.blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0.5;
    transform: scale(1.15);
}

.card-img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    z-index: 2;
    object-fit: contain;
}

.card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Grid-View: Card-Body mit vertikalem Layout */
.card-body-grid {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    gap: 8px;
    text-align: left;
    align-items: flex-start;
}

.card-title-grid {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    width: 100%;
}

.card-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    width: 100%;
    align-items: flex-start;
}

.card-info-list .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    width: 100%;
    justify-content: flex-start;
}

.card-info-list .info-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.card-info-list .info-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.card-body h3 {
    margin: 4px 0;
    /* Verhindert unnötige Abstände um den Titel */
    font-size: 1.05rem;
    line-height: 1.2;
}

/* 2. NEU: Die Beschreibung für die mobile Ansicht optimieren */
.card-description {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Maximal 3 Zeilen Text anzeigen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/*Filter: Kalender =  Dots für Tage an denen Events sind 
.dot-container {position: absolute; bottom: 4px; display: flex; flex-wrap: wrap;
    gap: 2px; justify-content: center; width: 100%;}*/
.dot-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Erlaubt Umbruch bei vielen Events */
    gap: 2px;
    margin-top: 2px;
    padding: 0 2px;
    width: 100%;
}

/*Filter: Kalender =  Dots für Tage an denen Events sind 
.event-dot {width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); box-shadow: 0 0 4px rgba(0,0,0,0.5);}*/
.event-dot {
    width: 8px;
    /* Etwas größer, damit man das Kuchendiagramm erkennt */
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    border: 0.5px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at center, #fff, #ccc);
    /* Hellerer Standard-Hintergrund */
    /* Der Trick: Der Punkt zeigt den Tooltip beim Hover, 
       aber Klicks gehen zum Tag-Element darunter durch */
    pointer-events: none;
}

/* Flyer-Vorschau über Kalendertag */
.cal-day-flyer-preview {
    position: fixed;
    z-index: 20000;
    pointer-events: auto;
    display: none;
    visibility: hidden;
    cursor: default;
    user-select: none;
}

.cal-day-flyer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 320px;
}

.cal-day-flyer-card {
    width: 82px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    opacity: 0;
    transform: scale(0.15) translateY(18px);
    animation: flyerShoot 0.32s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.cal-day-flyer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

@keyframes flyerShoot {
    0%   { opacity: 0;   transform: scale(0.15) translateY(18px); }
    60%  {               transform: scale(1.06) translateY(-4px); }
    80%  {               transform: scale(0.97) translateY(1px); }
    100% { opacity: 1;   transform: scale(1)    translateY(0); }
}

/* WICHTIG: Erlaubt den Punkten, sich am Kästchen auszurichten */
.cal-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Trennlinien zwischen den Tagen */
}

.cal-day-number {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1;
}

/* Heutiger Tag: hellerer Rahmen */
.cal-day-today {
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Vergangene Tage: grau */
.cal-day-past {
    opacity: 0.5;
    color: #888;
}

.cal-day-past .cal-day-number {
    color: #888;
}

/* Gelikte Events hervorheben (List-View) */
.event-card.list-mode.is-liked {
    background: #1f1218 !important;
    border: 0.5px solid rgba(233, 30, 99, 0.35) !important;
    box-shadow: none;
    position: relative;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.event-card.list-mode.is-liked:hover {
    background: #231319 !important;
    box-shadow: none;
    transform: translateX(4px) translateZ(0);
    border-color: rgba(233, 30, 99, 0.5) !important;
}

.event-card.list-mode.is-liked::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    /* Dünnerer Akzent-Streifen links */
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    z-index: 1;
    /* Rendering-Optimierungen */
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Pinker Rahmen für vom User gelikte Events (Grid-View) — gleiche Logik wie is-liked in List-View */
.event-card.is-liked:not(.list-mode) {
    border: 1px solid var(--accent) !important;
    box-shadow: none !important;
}

.event-card.is-liked:not(.list-mode):hover {
    border: 1px solid var(--accent) !important;
    box-shadow: none !important;
}

.cal-day-hidden {
    display: none !important;
    visibility: hidden !important;
}

.cal-day:hover {
    background: #222;
}

.weekday-header {
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: bold;
}

#no-results {
    display: none;
    text-align: center;
    padding: 60px;
    color: var(--muted);
    grid-column: 1 / -1;
    font-style: italic;
}

/* 1. Desktop-spezifische Farben korrekt abschließen */
@media (min-width: 600px) {
    .seg-Salsa {
        background: var(--salsa);
    }

    .seg-Bachata {
        background: var(--bachata);
    }

    .seg-Kizomba {
        background: var(--kizomba);
    }

    .seg-Andere {
        background: var(--andere);
    }
}

#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.9);
    /* Zentriert das Modal-Fenster auf dem Desktop, erlaubt Fließen auf Mobile */
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: scroll;
    /* WICHTIG: Hier wird gescrollt! */
    -webkit-overflow-scrolling: touch;
}

#modal.active {
    display: flex !important;
}

#modal-inner {
    background: #111;
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
    /* Erzeugt den Platz oben/unten zum Scrollen */
    border-radius: 20px;
    position: relative;
    border: 1px solid #333;
    display: block;
    /* Ganz wichtig: Kein Flexbox hier drin! */
    /* Verhindere Touch-Scrolling auf dem Modal-Inner, außer für den scrollbaren Content */
    touch-action: pan-y;
    height: auto;
    min-height: min-content;
}

#modal.active #modal-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Fix für das Schließen-X: Es muss im Modal-Inner sein, damit es mitscrollt */
.modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    /* Blur entfernt für Performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 24px;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-close-x:hover {
    transform: scale(1.2);
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* 3. Mobile Optimierung */
@media (max-width: 600px) {

    /* Verhindert, dass die unsichtbare Filter-Bar Klicks schluckt, 
       ABER erlaubt Klicks, wenn sie sichtbar ist */
    #filter-bar:not([style*="display: block"]) {
        pointer-events: none;
    }

    #filter-bar[style*="display: block"] {
        pointer-events: auto;
    }

    #modal-inner {
        width: 95%;
        max-height: auto;
        /* Etwas weniger Höhe auf dem Handy lässt Platz zum 'Draufklicken' zum Schließen */
        height: 100%;
        /* Nutzt die volle Höhe auf dem Handy */
        max-height: 90vh;
        /* Nicht ganz 100%, damit man oben/unten zum Schließen tippen kann */
        border-radius: 20;
        /* Sieht auf dem Handy besser aus */
        margin: 10px auto;
        /* 2px Rand oben auf Handy für Fullscreen-Look */
        display: block;
    }

    #filter-bar {
        pointer-events: none;
        /* Klicks gehen zu den Kacheln durch */
        top: 100px;
        /* Höher positioniert, damit Header nicht verdeckt */
        max-height: calc(100vh - 100px);
        width: calc(100% - 20px);
        padding: 12px;
    }

    #filter-bar[style*="display: block"] {
        pointer-events: auto;
    }

    .event-grid {
        position: relative;
        z-index: 10;
    }
}

/* 4. Utility */
.share-btn-glass {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    /* Dunkler für besseren Kontrast auf Bildern */
    /* Blur entfernt für Performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    /* Muss über dem Bild sein */
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn-glass:hover {
    transform: scale(1.2);
    background: var(--accent);
}

.share-btn-glass svg {
fill: white !important;
}

/* Edit-Modal Fix */
#edit-modal {
    z-index: 2000000 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    /* Blur entfernt für Performance */
}

/* Sicherstellen, dass die Formular-Elemente gut lesbar sind */
#edit-form input,
#edit-form textarea {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    /* Verhindert Auto-Zoom auf iPhones */
}


.festival-badge {
    position: absolute;
    /* Positionierung unten rechts */
    bottom: 12px;
    right: 12px;

    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 100;
    text-transform: uppercase;

    box-shadow: 0 0 10px var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Schnelles Atmen: 0.6s statt 2s */
    animation: badge-glow-fast 0.6s infinite alternate ease-in-out;
}

@keyframes badge-glow-fast {
    from {
        box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 15px var(--accent), 0 0 25px var(--accent);
        transform: scale(1.1);
        /* Etwas stärkeres Skalieren für den Effekt */
    }
}


/* Die Animation für den Rahmen */
@keyframes card-border-glow {
    from {
        border-color: #222;
        box-shadow: 0 0 5px rgba(233, 30, 99, 0.1);
    }

    to {
        border-color: var(--accent);
        /* Der Rahmen wird farbig */
        box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
        /* Sanfter farbiger Schein */
    }
}

/* Optional: Verstärkung beim Drüberfahren (Hover) */
.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: none;
    filter: brightness(1.1);
}

/* Nur Karten mit der Klasse .has-badge glühen */
.event-card.has-badge {
    animation: card-glow-sync 0.6s infinite alternate ease-in-out;
    border: 1px solid var(--accent);
    /* Grundzustand des Rahmens */
    box-shadow: none;
}

@keyframes card-glow-sync {
    from {
        box-shadow: none;
        border-color: rgba(233, 30, 99, 0.3);
        transform: scale(1);
    }

    to {
        box-shadow: none;
        border-color: var(--accent);
        transform: scale(1.01);
        /* Minimales Mitschwingen zur Badge-Animation */
    }
}

/* Den Teilen-Button im Modal unter das X schieben */
.modal-share-pos {
    top: 15px !important;
    /* Gleiche Position wie X-Button */
    right: 60px !important;
    /* 15px (rechts) + 36px (Button-Breite) + 9px (Abstand) = 60px */
    left: auto !important;
    width: 36px;
    /* Gleiche Breite wie X-Button */
    height: 36px;
    /* Gleiche Höhe wie X-Button */
    background: rgba(0, 0, 0, 0.5);
    /* Gleiche Schattierung wie X-Button */
    /* Blur entfernt für Performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Gleiche Border wie X-Button */
    border-radius: 50%;
    z-index: 1001;
    box-shadow: none;
    /* Gleiche Schattierung wie X-Button */
}

/* Hover-Effekt wie auf der Kachel */
.modal-share-pos:hover {
    background: var(--accent);
    transform: scale(1.2);
    /* Gleiche Hover-Transformation wie X-Button */
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
    /* Gleiche Hover-Schattierung wie X-Button */
}

.pill {
    touch-action: manipulation;
    /* Erlaubt Tap-Gesten für sofortige Clicks, verhindert Zoom/Double-Tap */
    -webkit-tap-highlight-color: transparent;
    /* Entfernt den blauen Kasten beim Tippen */
    user-select: none;
    /* Verhindert Textmarkierung */
}

.event-description-box {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #ccc;
    line-height: 1.6;
}

.event-description-box b {
    color: #fff;
    /* Fettgedrucktes etwas heller für besseren Kontrast */
}

.event-description-box blockquote {
    font-style: italic;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 10px;
    border-radius: 4px;
}


/* NEBEN FILTER: Button für ANSICHT */
.ctrl-btn-square {
    height: 45px;
    width: 45px;
    /* Quadratisch (45px x 45px) */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

/* NEBEN FILTER: Button für ANSICHT */
.ctrl-btn-square:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
    border-color: var(--accent);
}

.ctrl-btn-square:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(320deg) brightness(1.2);
    /* Accent-Farbe */
}

/* NEBEN FILTER: Button für ANSICHT */
.ctrl-btn-square:active {
    transform: scale(0.95);
}

/* Optional: Falls der Filter-Button eine andere Höhe hat, 
   passe .ctrl-btn-square einfach an die Höhe von .filter-main-btn an. */

.multi-slider-container {
    touch-action: none !important;
    /* Verhindert jegliche Browser-Intervention */
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
}

.split-handle {
    /* Vergrößere die Hitbox massiv, damit der Finger nicht 'abrutscht' */
    width: 44px !important;
    z-index: 20;
}










/* Container-Umschaltung */
.event-grid.list-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Karte im Listenmodus */
.event-card.list-mode {
    display: flex;
    flex-direction: row;
    height: 85px;
    min-height: 85px;
    max-height: 85px;
    align-items: center;
    padding: 0 10px 0 0;
}

.event-card.list-mode .card-img-container {
    width: 85px;
    height: 85px;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
    max-width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card.list-mode .card-body {
    padding: 0 15px;
    text-align: left;
}

.event-card.list-mode .mix-bar {
    width: 12px !important;
    /* Vorher ca. 6px -> jetzt 100% breiter */
    height: 100%;
    flex-direction: column;
    border-radius: 0;
    flex-shrink: 0;
    margin-right: 4px;
}

/* List-View: Floor-Balken-Container sollte mix-bar ersetzen */
.event-card.list-mode .floors-bar-container-list {
    width: 12px !important;
    height: 100%;
    flex-shrink: 0;
    margin-right: 4px;
    margin-left: 0;
}

/* Spezielle Optimierung für Mobile */
@media (max-width: 767px) {
    .event-grid.list-mode {
        padding: 5px 0;
        gap: 6px;
        overflow-x: hidden;
    }



    .event-card.list-mode {
        height: 70px;
        /* Etwas kompakter auf dem Handy */
        background: rgba(255, 255, 255, 0.03);
        border-radius: 16px;
    }

    .event-grid.list-mode .event-card.list-mode {
        margin: 0 12px;
    }

    .event-card.list-mode .card-img-container {
        width: 70px;
        height: 70px;
    }

    .event-card.list-mode h3 {
        font-size: 0.9rem;
    }

    /* Datum in der Karte ausblenden, wenn im Listenmodus */
    .event-card.list-mode .card-body div:first-child {
        display: none;
    }

    /* Der neue Datums-Header zwischen den Karten */
    .date-group-header {
        width: 100%;
        padding: 14px 24px 4px 24px;
        font-size: 11px;
        font-weight: 600;
        color: #e91e63;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        border-top: none;
        margin-top: 4px;
    }

    /* Header für vergangene Events (andere Farbe) */
    .date-group-header.is-past {
        color: #555;
        border-top: none;
    }

    /* 3. Teilen-Button kleiner und mittig */
    .event-card.list-mode .share-btn-glass {
        width: 28px;
        height: 28px;
        top: 50%;
        transform: translateY(-50%);
        /* Exakt vertikal mittig */
        right: 10px;
    }

    .event-card.list-mode .share-btn-glass svg {
        width: 14px;
        height: 14px;
    }

    /* Vergangenheit: grau  #### Was wird grau? Nur Überschrift h3*/
    .event-card.is-past h3 {
        color: #888 !important;
    }

    /* Vergangenheit: 45-Grad-Streifenmuster statt grauer Schleier */
    .event-card.is-past {
        position: relative;
        filter: grayscale(0.5);
        opacity: 0.8;
    }

    .event-card.is-past::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient(45deg,
                transparent,
                transparent 10px,
                rgba(0, 0, 0, 0.3) 10px,
                rgba(0, 0, 0, 0.3) 20px);
        pointer-events: none;
        z-index: 100;
        border-radius: 18px;
    }


    .event-card.is-past h3,
    .event-card.is-past .date-row,
    .event-card.is-past .location-info {
        color: #888 !important;
    }

    .event-card.is-past .location-info,
    .event-card.is-past .date-row {
        color: #666 !important;
    }

    /* Bereich für vergangene Events (helleres Grau) */
    .past-events-section {
        background: #1a1a1a;
        /* Etwas heller als das Schwarz #0b0b0b */
        border-bottom: 1px solid #333;
        color: #fff;
    }

    /* Pfeil für vergangene Events - sehr fetter SVG-Pfeil */
    .past-events-arrow {
        display: inline-block;
        vertical-align: middle;
        width: 20px;
        height: 20px;
        margin-right: 8px;
        stroke-width: 4;
        transition: all 0.2s ease;
    }

    /* Text für vergangene Events */
    .past-events-text {
        white-space: nowrap;
        overflow: hidden;
    }

    /* Der fette weiße Trenner - startet als kleiner Kreis */
    .past-events-separator {
        width: 60px;
        height: 60px;
        color: #fff !important;
        background: #424242;
        color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 0.8rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        z-index: 10;
        gap: 15px;
        transform-origin: center center;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        opacity: 0.8;
    }

    /* Wenn vollständig aufgezogen */
    .past-events-separator.full-width {
        width: 100%;
        height: 60px;
        border-radius: 0 0 20px 20px;
        opacity: 1;
    }

    /* Zähe Kaugummi-Animation beim Scrollen - tropfenförmig */
    .past-events-separator.gummi-stretch {
        /* Wird per JavaScript dynamisch angepasst */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    }

    /* Pfeil wird auch größer */
    .past-events-separator.gummi-stretch .past-events-arrow {
        transform: scale(1.2);
        transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Pfeil-Animation für den Trenner */
    .past-events-separator svg {
        animation: bounceUp 2s infinite;
    }


    @keyframes bounceUp {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-5px);
        }

        60% {
            transform: translateY(-3px);
        }
    }

    /* Sicherstellen, dass die Liste oben keinen unnötigen Abstand hat */
    .event-grid.list-mode {
        padding-top: 0 !important;
        margin-top: 70px;
        /* Nur Platz für den Header */
    }
}

/* 5. "Event fehlt?" Link (vor dem Footer) */
.missing-event-link {
    padding: 20px 20px 0 20px;
    text-align: center;
    margin-top: 40px;
}

.missing-event-link a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.missing-event-link a:hover {
    opacity: 0.7;
}

/* 6. Impressum Footer */
footer {
    padding: 30px 20px 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #999;
}

/* --- BILD-EFFEKT (Vollständig sichtbar mit Blur-Hintergrund) --- */
.card-img-container {
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Der verschwommene Hintergrund */
.card-img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0.5;
    transform: scale(1.15);
    z-index: 1;
}

/* Das scharfe Bild im Vordergrund */
.card-img-container img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    flex-shrink: 1;
    /* Verhindert das Abschneiden */
    margin: auto;
}

/* --- LOCATION IN LISTE (Kleiner & Grau) --- */
.event-card.list-mode .location-info {
    font-size: 0.75rem !important;
    color: #888 !important;
    margin-top: 4px;
}

.event-card.list-mode .location-info span {
    color: inherit !important;
}

/* Basis-Regel */
.mix-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    overflow: hidden;
}

/* --- NUR LISTE --- */
.event-card.list-mode .mix-bar {
    /* flex-direction: column;
    /* Stapelt S, B, K untereinander */
    width: 14px !important;
}

.event-card.list-mode .mix-seg span {
    display: block !important;
    /* Buchstaben anzeigen */
}

.event-card.list-mode .mix-seg {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);
}

/* --- NUR KACHELN (Garantie: Unverändert) --- */
.event-card:not(.list-mode) .mix-bar {
    position: relative;
    /* Relativ positioniert, direkt über dem Bild */
    width: 100%;
    /* Volle Breite */
    height: 14px;
    /* 30% niedriger (von 20px auf 14px) */
    flex-direction: row;
    /* Horizontal in Kacheln */
    margin: 0 auto;
    /* Zentriert */
    margin-bottom: 0;
    margin-top: 0;
    border-radius: 0;
    z-index: 10;
    background: transparent;
    display: flex;
}

/* Sicherstellen, dass das Bild direkt unter der Bar beginnt (stoß auf stoß) */
.event-card:not(.list-mode) .card-img-container {
    margin-top: 0;
    padding-top: 0;
    flex-shrink: 1;
    min-height: 0;
}

/* Event-Bild mit flex-shrink für dynamische Höhe */
.event-card:not(.list-mode) .event-image {
    flex-shrink: 1;
    object-fit: contain;
}

/* Container für mehrere Floor-Balken */
.floors-bar-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #000;
    padding: 0;
    margin: 0;
}

/* Grid-View: Container über dem Bild */
.floors-bar-container-grid {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Gap wird durch margin-bottom der Balken ersetzt */
}

/* List-View: Container links neben dem Bild (vertikale Säulen nebeneinander) */
.floors-bar-container-list {
    width: auto;
    height: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 4px !important;
    margin-left: 0;
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: stretch;
    z-index: 2;
    position: relative;
}

/* Einzelner Floor-Balken */
.floor-bar {
    display: flex;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

/* Grid-View: Horizontale Balken über dem Bild */
.floor-bar-grid {
    flex-direction: row;
    width: 100%;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    margin-bottom: 2px !important;
}

/* List-View: Vertikale Säule (nebeneinander) - FIXE Breite */
.floor-bar-list {
    flex-direction: column;
    width: 12px !important;
    height: 100%;
    flex: 0 0 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    overflow: hidden;
    z-index: 2;
    position: relative;
}

/* Detail-View: Horizontale Balken zwischen Bild und erstem Floor */
.floor-bar-detail {
    flex-direction: row;
    width: 100%;
    height: 6px;
    flex-shrink: 0;
}

/* Segment innerhalb eines Floor-Balkens */
.floor-bar-seg {
    transition: opacity 0.2s ease;
}

.floor-bar-seg:hover {
    opacity: 0.8;
}

/* Grid-View: Horizontale Segmente */
.floor-bar-seg-grid {
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
}

/* SBK-Labels innerhalb der Grid-View Segmente */
.floor-bar-seg-grid .floor-label-grid {
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    color: white;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0 !important;
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* List-View: Vertikale Segmente innerhalb einer Säule (von oben nach unten) */
.floor-bar-seg-list {
    width: 100% !important;
    height: auto;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* SBK-Labels innerhalb der List-View Segmente */
.floor-bar-seg-list .floor-label {
    font-size: 11px !important;
    line-height: 1 !important;
    width: 100%;
    text-align: center;
    font-weight: bold;
    pointer-events: none;
    color: white;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Detail-View: Horizontale Segmente mit Label */
.floor-bar-seg-detail {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.floor-bar-seg-detail span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: white;
    white-space: nowrap !important;
    overflow: hidden;
    width: 100%;
    height: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.event-card.list-mode .list-img-container {
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Blur-Hintergrund für List-View via ::before */
.event-card.list-mode .list-img-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0.5;
    transform: scale(1.15);
    z-index: 0;
}

.event-card.list-mode .event-image {
    flex-shrink: 1;
    flex-grow: 0;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Sicherstellen dass Floor-Container nicht überlagert wird */
.event-card.list-mode .floors-bar-container-list {
    z-index: 1;
    position: relative;
}

/* Detail-View: Container für Floor-Balken */
.floors-bar-container-detail {
    width: 100%;
    background: #000;
    padding: 4px 0;
}

.event-card:not(.list-mode) .mix-seg {
    height: 100%;
    width: auto;
    /* Breite basiert auf Prozent */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.event-card:not(.list-mode) .mix-seg span {
    display: flex !important;
    /* Beschriftung im Grid anzeigen */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px !important;
    font-weight: bold !important;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap !important;
    overflow: hidden;
    padding: 0;
}

/* Tanzbar-Balken in der Detailansicht (Modal) */
.modal-mix-bar {
    position: relative;
    width: 100%;
    height: 14px;
    flex-direction: row;
    margin: 0;
    margin-bottom: 0;
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
}

.modal-mix-bar .mix-seg {
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.modal-mix-bar .mix-seg span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px !important;
    font-weight: bold !important;
    color: white;
    white-space: nowrap !important;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

.share-btn-round {
    width: 36px;
    /* Feste Breite */
    height: 36px;
    /* Feste Höhe */
    min-width: 36px;
    /* Verhindert Quetschen / Verformung, also das Quetschen im Flexbox-Layout */
    border-radius: 50%;
    /* Macht ihn kreisrund */
    background: rgba(255, 255, 255, 0.1);
    /* Dezenter Glaseffekt im Hintergrund */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    /* Abstand zum Text links */
    transition: all 0.2s ease;
}

.share-btn-round:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Like Button Styling */
.like-btn-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: white;
}

.like-btn-round:hover {
    background: rgba(233, 30, 99, 0.2);
    transform: scale(1.1);
    border-color: var(--accent);
}

.like-btn-round[data-liked="true"] {
    background: rgba(233, 30, 99, 0.2);
    border-color: var(--accent);
}

.like-btn-round[data-liked="true"] svg {
    fill: var(--accent);
    stroke: var(--accent);
}

.like-btn-glass {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    /* Blur entfernt für Performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: white;
}

.like-btn-glass:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.2);
}

.like-btn-glass[data-liked="true"] {
    background: rgba(233, 30, 99, 0.3);
    border-color: var(--accent);
}

.like-btn-glass[data-liked="true"] svg {
    fill: var(--accent);
    stroke: var(--accent);
}

/* In der Historie wird auch der Share-Button dezent grau */
.event-card.is-past .share-btn-round {
    background: rgba(255, 255, 255, 0.05);
    color: #666 !important;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Map View Styles */
.event-map,
#event-map,
#map {
    width: 100%;
    height: calc(100vh - 120px);
    position: relative;
    z-index: 1;
    background: #1a1a1a;
}

.event-map .leaflet-container {
    background: #000;
    font-family: inherit;
}

.event-map .leaflet-popup-content-wrapper {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-map .leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-map .leaflet-top.leaflet-left {
    top: 70px !important;
    /* Gleiche Oberkante wie Map-Controls */
    left: 10px !important;
}

.event-map .leaflet-control-zoom {
    border: none !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-map .leaflet-control-zoom a {
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 38px;
    height: 38px;
    min-height: 38px;
    line-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.event-map .leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

.event-map .leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Event Hashtags */
.event-hashtags {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hashtag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.hashtag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

/* Map Controls Layout */
.map-controls {
    position: absolute;
    top: 70px;
    /* Start unterhalb des Headers (56px + 14px Abstand) */
    left: 60px;
    right: 10px;
    z-index: 10001;
    /* Höher als Header (10000) */
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.map-city-pills,
.map-filter-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.map-city-pills::-webkit-scrollbar,
.map-filter-buttons::-webkit-scrollbar {
    display: none;
}

.map-city-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #000;
    border: 1px solid #fff;
    color: #fff;
    padding: 4px 10px;
    height: 38px;
    min-height: 38px;
    min-width: 45px;
    line-height: 1;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.map-city-pill.active,
.map-city-pill:focus {
    border-color: var(--city-active);
    color: var(--city-active);
}

.map-filter-buttons {
    justify-content: flex-start;
}

.map-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #000 !important;
    border: 1px solid var(--accent-green) !important;
    padding: 4px 10px;
    height: 38px;
    min-height: 38px;
    line-height: 1;
    color: var(--accent-green) !important;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-filter-btn.active {
    background: var(--accent-green) !important;
    border-color: var(--accent-green) !important;
    color: #000 !important;
}

#calendar-trigger-new.active-filter {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}
#calendar-trigger-new.active-filter svg {
    stroke: var(--accent) !important;
}

/* Event Drawer Styles */
.event-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: rgba(20, 20, 20, 0.98);
    /* Blur entfernt für Performance */
    border-top: 2px solid rgba(233, 30, 99, 0.5);
    border-radius: 20px 20px 0 0;
    z-index: 2000;
    display: none !important; /* Zwingend initial ausblenden */
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

/* Drawer Zwang-Verstecken beim Start */
#event-drawer:not(.active) {
    display: none !important;
}

/* Drawer aktiv */
#event-drawer.active {
    display: flex !important;
}

/* Drawer Handle für Mobile/Desktop */
.drawer-handle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: var(--bg-card, #1e1e1e);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-bottom: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.drawer-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.event-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-drawer-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Event Cards im Drawer */
/* Event Cards im Drawer - 1:1 Mirror der ListView */
.event-drawer-content .event-card.list-mode {
    height: auto !important;
    min-height: 80px !important;
    max-height: none !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.event-drawer-content .event-card.list-mode .card-body {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 80px !important;
    padding: 10px 15px !important;
    flex: 1;
}

.event-drawer-content .event-card.list-mode .card-body .card-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding-right: 10px !important;
    text-align: left !important;
}

.event-drawer-content .event-card.list-mode .card-body .card-text-wrapper h3 {
    display: block !important;
    line-height: 1.2 !important;
    margin: 2px 0 !important;
    font-size: 1.1rem !important;
    color: white !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

.event-drawer-content .event-card.list-mode .card-body .card-text-wrapper .date-row {
    display: block !important;
    line-height: 1.4 !important;
    margin: 0 0 2px 0 !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: left !important;
}

.event-drawer-content .event-card.list-mode .card-body .card-text-wrapper .location-info {
    display: block !important;
    line-height: 1.4 !important;
    margin: 2px 0 0 0 !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: left !important;
}

.event-drawer-content .event-card.list-mode .card-body > div:last-child {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

.event-drawer-content .event-card.list-mode .card-img-container {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    margin-left: 16px;
}

.event-drawer-content .event-card.list-mode .mix-bar {
    flex-shrink: 0;
    width: 12px;
    height: 100%;
}


/* Drawer Zwang */
#event-drawer {
    display: none !important; /* Standardmäßig aus */
}
#event-drawer.active {
    display: flex !important; /* Nur mit Klasse active an */
}

/* Filter-Zeilen: Desktop inline, Mobile gestapelt */
.filter-close-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: -4px;
}

.filter-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.filter-rows-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.filter-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.filter-divider {
    display: none;
}

@media (min-width: 1050px) {
    .filter-rows-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 0;
        flex-wrap: nowrap;
    }

    .filter-block {
        padding: 0 16px;
    }

    .filter-divider {
        display: block;
        width: 1px;
        height: 28px;
        background: var(--border);
        flex-shrink: 0;
    }
}

/* Pills in Filter-Zeilen strecken sich auf volle Blockbreite */
#style-group .pill,
#city-group .pill {
    flex: 1;
    text-align: center;
    justify-content: center;
}
/* ===== LOGIN MODAL REDESIGN ===== */
.login-modal-card {
    background: #1a1a1a;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    border: 0.5px solid rgba(255,255,255,0.12);
    margin: auto;
    overflow: hidden;
}

.login-modal-header {
    padding: 24px 16px 16px;
}

.login-modal-header h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.login-modal-header p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.login-usp-chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.login-usp-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #2a2a2e;
    border-radius: 14px;
    padding: 10px 6px;
    border: 0.5px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.login-usp-chip svg {
    color: #fff;
    flex-shrink: 0;
}

.login-usp-chip span {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    line-height: 1.3;
    transition: color 0.15s;
}

.login-usp-chip.active {
    background: #2e2e34;
    border-color: rgba(255,255,255,0.35);
}

.login-usp-chip.active span {
    color: #ddd;
}

.login-chip-explainer {
    margin: 0 16px 16px;
    background: #2a2a2e;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    border: 0.5px solid rgba(255,255,255,0.1);
}

.login-divider {
    height: 0.5px;
    background: rgba(255,255,255,0.08);
    margin: 0 16px;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px 24px;
}

.login-btn-google {
    width: 100%;
    padding: 13px;
    background: #4285f4;
    border: none;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.login-btn-google:hover {
    background: #3a76e0;
}

.login-oder-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    margin: 2px 0;
    padding: 12px 0;
}

.login-oder-separator::before,
.login-oder-separator::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: rgba(255,255,255,0.1);
}

.email-btns {
    display: flex;
    gap: 8px;
}

.email-btn-register {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.35);
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.email-btn-register:hover {
    color: rgba(255,255,255,0.55);
    border-color: rgba(255,255,255,0.22);
}

.email-btn-submit {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.email-btn-submit:hover {
    background: rgba(255,255,255,0.16);
}

.login-btn-email {
    width: 100%;
    padding: 13px;
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.15);
    color: #ddd;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, border-color 0.15s;
}

.login-btn-email:hover,
.login-btn-email.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.28);
}

.login-email-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-email-section input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 0.5px solid rgba(255,255,255,0.15);
    background: #111;
    color: white;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.login-email-section input:focus {
    border-color: rgba(255,255,255,0.35);
}

.login-btn-email-submit {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.12);
    border: 0.5px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.login-btn-email-submit:hover {
    background: rgba(255,255,255,0.18);
}

.login-btn-register {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.1);
    color: #999;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.login-btn-register:hover {
    color: #ccc;
    border-color: rgba(255,255,255,0.2);
}

.login-btn-cancel {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    align-self: center;
    transition: color 0.15s;
}

.login-btn-cancel:hover {
    color: #888;
}
