:root {
    --bvg-yellow: #F0D722;
    --bvg-black: #000000;
    --bvg-dark: #333333;
    --bvg-gray: #666666;
    --bvg-light-gray: #f5f5f5;
    --bvg-border: #e0e0e0;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body { 
    font-family: var(--font-stack); 
    background: var(--bvg-light-gray); 
    margin: 0; 
    color: var(--bvg-black); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- HERO BACKGROUND --- */
.hero-background {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; 
    min-height: auto; 
    padding-top: 20px;
    padding-bottom: 100px;
}

/* Startseite: Erfurter Dom als Hero-Bild (Quelle: Wikimedia Commons) */
.hero-landing-with-image {
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)), url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Erfurter_Dom_von_Oben_05.jpg/1920px-Erfurter_Dom_von_Oben_05.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-landing-with-image .hero-cc-popover a {
    text-decoration: underline;
}
.hero-landing-with-image .hero-cc-popover a:hover {
    color: #fff;
}

/* --- COPYRIGHT BUTTON & POPUP --- */
.copyright-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.copyright-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.copyright-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.copyright-popup {
    background: white;
    color: #333;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* --- HERO CC-HINWEIS (rechts unten auf Agency-Bild) --- */
.hero-cc-wrap {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 50;
}
.hero-cc-popover {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 280px;
}
.hero-cc-popover a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}
.hero-cc-popover a:hover {
    color: #fff;
}
.hero-cc-toggle {
    display: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
}
.hero-cc-wrap.hidden {
    display: none;
}

/* Mobil: nur (C) sichtbar, Klick öffnet Popover mit Lizenz/Quelle */
@media (max-width: 900px) {
    .hero-cc-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-cc-popover {
        display: none;
        position: absolute;
        bottom: 100%;
        right: 0;
        margin-bottom: 6px;
        max-width: 260px;
    }
    .hero-cc-wrap.expanded .hero-cc-popover {
        display: block;
    }
}

/* --- HEADER --- */
.bvg-main-header {
    background-color: white;
    width: 95%;
    max-width: 1400px;
    border-radius: 16px;
    padding: 16px 32px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    position: relative;
    overflow: visible; 
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO (Kreisel + Text) --- */
.brand-logo { 
    text-decoration: none; 
    color: black; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.logo-icon {
    width: 55px; 
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spiral-svg {
    width: 100%;
    height: 100%;
    overflow: visible; 
}

.brand-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-weight: 900;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--bvg-black);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bvg-dark);
    text-transform: uppercase;
}

/* Mobile Anpassung für das Logo */
@media (max-width: 600px) {
    .brand-title { font-size: 1.1rem; }
    .brand-subtitle { font-size: 0.7rem; }
    .logo-icon { width: 40px; height: 40px; }
}

/* NAV */
.desktop-nav { display: flex; gap: 6px; }
.nav-link {
    text-decoration: none; 
    color: black; 
    font-weight: 700;
    font-size: 0.95rem; 
    position: relative; 
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover { 
    background: var(--bvg-light-gray); 
}
.nav-link.active { 
    background: var(--bvg-light-gray);
    font-weight: 700;
}

/* ICONS */
.header-icons { display: flex; gap: 15px; align-items: center; }
.icon-btn {
    background: none; border: none; font-size: 1.2rem;
    cursor: pointer; color: black; padding: 5px; transition: transform 0.2s;
}
.icon-btn:hover { transform: scale(1.1); }


/* --- HERO STAGE (GELBER KASTEN) --- */
.hero-stage {
    width: 100%;
    max-width: 1300px;
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
    padding: 0 30px;
    z-index: 50;
}

.yellow-teaser {
    background-color: var(--bvg-yellow);
    padding: 28px 32px;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    color: var(--bvg-black);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teaser-label {
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    margin-bottom: 8px; 
    display: block;
    line-height: 1.4;
}

.yellow-teaser h1 {
    font-size: 1.75rem; 
    font-weight: 900; 
    line-height: 1.15; 
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.teaser-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--bvg-black);
    text-decoration: none; 
    font-weight: 700; 
    padding: 12px 24px;
    border-radius: 8px; 
    font-size: 0.95rem; 
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.teaser-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}
.teaser-btn i { 
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.teaser-btn:hover i {
    transform: translateX(3px);
}

/* --- MAIN CONTENT (FAHRPLAN) --- */
.main-content {
    width: 100%;
    max-width: 800px;
    padding: 0 15px;
    margin: 0 auto;
    margin-top: -60px; 
    position: relative;
    z-index: 10;
}

.search-card {
    background: white;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
}

.hidden { display: none !important; }

/* --- Landing: Zwei Spalten (links Region, rechts Abfahrten) --- */
.landing-main.landing-two-col {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) {
    .landing-main.landing-two-col {
        grid-template-columns: 1fr;
    }
    .landing-main .landing-right {
        order: -1; /* Formular (Abfahrten) oben auf Mobil */
    }
}
.landing-main .landing-left { min-width: 0; }
.landing-main .landing-right { position: sticky; top: 1rem; }
@media (max-width: 900px) {
    .landing-main .landing-right { position: static; }
}

/* --- Landing: Agency-Auswahl (Thüringen Fahrplan) --- */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.region-card {
    display: block;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.region-card:hover {
    border-color: #F0D722;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.region-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.region-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    background: #eee;
    color: #666;
}
.region-card.available .region-badge.available { background: #e8f5e9; color: #2e7d32; }

.region-search-wrap {
    margin-bottom: 1.5rem;
}

.region-sort-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.region-sort-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}
.sort-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.sort-btn:hover {
    border-color: #bbb;
    background: #f8f8f8;
}
.sort-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}
.region-count {
    font-size: 0.85rem;
    color: #666;
    margin-left: auto;
}

.region-search-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.5rem;
}
.region-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 0 1rem;
    transition: border-color 0.2s;
}
.region-search-box:focus-within {
    border-color: #F0D722;
    outline: none;
}
.region-search-icon {
    color: #999;
    font-size: 1rem;
    margin-right: 0.75rem;
}
.region-search-input {
    flex: 1;
    border: none;
    padding: 0.85rem 0;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
}
.region-search-input::placeholder {
    color: #999;
}
.region-search-input:focus {
    outline: none;
}
.region-search-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.region-search-clear:hover {
    color: #333;
    background: #f0f0f0;
}
.region-search-clear.hidden {
    display: none !important;
}
.regions-no-results {
    margin: 2rem 0 0;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* --- TABS --- */
.search-tabs { 
    display: flex; 
    border-bottom: 2px solid var(--bvg-border); 
    margin-bottom: 28px;
    gap: 4px;
}
.tab-btn {
    flex: 1; 
    background: none; 
    border: none; 
    padding: 18px 16px;
    font-size: 0.95rem; 
    font-weight: 700; 
    color: var(--bvg-gray); 
    cursor: pointer;
    text-transform: uppercase; 
    border-bottom: 4px solid transparent;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    color: var(--bvg-black);
    background: rgba(0,0,0,0.02);
}
.tab-btn.active { 
    border-bottom-color: var(--bvg-yellow); 
    color: black; 
}

/* --- INPUTS --- */
.routing-container, .form-grid { display: flex; flex-direction: column; gap: 20px; }
.route-inputs { display: flex; flex-direction: column; gap: 15px; }

.route-input-group, .input-wrapper { position: relative; }

/* Container für das Datum */
.input-wrapper.small { 
    background: white; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    border-bottom: 2px solid #ccc; /* Etwas dickerer Boden für Konsistenz */
    position: relative; /* Wichtig für Icon-Positionierung */
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.input-wrapper.small:focus-within {
    border-color: var(--bvg-black);
    border-bottom-color: var(--bvg-black);
}

/* Das Datumsfeld selbst */
.input-wrapper.small input[type="date"] {
    width: 100%;
    border: none;           /* Standard-Rahmen weg */
    background: transparent; 
    padding: 15px 15px 15px 45px; /* 45px links Platz lassen für das Icon */
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 700;       /* Fett, passend zum Rest */
    color: var(--bvg-black);
    outline: none;
    cursor: pointer;
    appearance: none;        /* Browser-Standard-Styling entfernen */
    -webkit-appearance: none; /* Wichtig für iOS */
    min-height: 52px;        /* Gleiche Höhe wie die anderen Inputs */
}

/* Das Icon links (Kalender) */
.input-wrapper.small i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    pointer-events: none; /* Klicks gehen durch auf das Input */
    font-size: 1.1rem;
}

/* Optional: Den browser-eigenen Kalender-Pfeil rechts etwas hübscher machen */
.input-wrapper.small input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    font-size: 1.2rem;
    padding: 5px;
}

.input-wrapper.small input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


/* Text Inputs */
.route-input-group input {
    width: 100%; 
    padding: 18px 18px 18px 52px;
    font-size: 1.05rem; 
    border: 2px solid var(--bvg-border); 
    font-family: var(--font-stack); 
    font-weight: 600;
    box-sizing: border-box; 
    border-radius: 12px;
    transition: all 0.2s ease;
}
.route-input-group input:focus {
    outline: none;
    border-color: var(--bvg-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.icon-left { 
    position: absolute; 
    left: 18px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--bvg-gray); 
    font-size: 1.2rem;
}

/* Select Inputs */
.input-wrapper { background: #f8f8f8; border-bottom: 3px solid #ccc; transition: border-color 0.2s; }
.input-wrapper:focus-within { border-bottom-color: black; }
.input-wrapper select {
    width: 100%; padding: 15px 15px 15px 45px; background: transparent; border: none;
    font-size: 1rem; font-weight: 600; appearance: none; cursor: pointer; font-family: var(--font-stack);
}
.input-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: black; }
.input-wrapper .arrow { left: auto; right: 15px; font-size: 0.8rem; pointer-events: none; }

.input-group label {
    display: block; font-size: 0.75rem; font-weight: 900;
    color: var(--bvg-dark); margin-bottom: 8px; letter-spacing: 0.5px;
}

.input-wrapper.small { background: white; border: 1px solid #ccc; border-radius: 4px; border-bottom: 1px solid #ccc; }

.swap-btn { align-self: center; background: none; border: none; cursor: pointer; padding: 5px; color: #666; font-size: 1.2rem; }

/* --- BUTTONS --- */
.bvg-button {
    background: var(--bvg-yellow);
    border: none;
    padding: 18px 28px;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    color: var(--bvg-black);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bvg-button:hover {
    background-color: #e6ce20;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 215, 34, 0.35);
}


/* --- AUTOCOMPLETE --- */
.suggestions-list {
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: white;
    border: 2px solid var(--bvg-border); 
    border-top: none;
    list-style: none; 
    margin: 0; 
    padding: 0; 
    z-index: 100;
    max-height: 320px; 
    overflow-y: auto; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
}
.suggestions-list li { 
    padding: 16px 18px; 
    cursor: pointer; 
    border-bottom: 1px solid var(--bvg-border); 
    transition: background 0.15s;
    font-weight: 500;
}
.suggestions-list li:last-child {
    border-bottom: none;
}
.suggestions-list li:hover { 
    background: var(--bvg-light-gray); 
}

/* --- NÄCHSTE VERBINDUNG (HIGHLIGHT) --- */
#next-trip-container { margin-bottom: 30px; }
#next-trip-container h3 {
    font-family: 'Inter', sans-serif; font-weight: 900; font-size: 1.1rem; 
    text-transform: uppercase; color: var(--bvg-black); margin: 0 0 15px 0; letter-spacing: 0.5px;
}
#next-trip-container h3::before {
    content: ''; display: inline-block; width: 10px; height: 10px;
    background-color: #4CAF50; border-radius: 50%; margin-right: 10px;
}
#next-trip-card .trip-card {
    border-left: 6px solid #4CAF50; 
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Startseite: gleiche Ansicht wie bei Agencies (Nächste Verbindung + Abfahrten) */
.landing-departures-result.results-section { margin-top: 30px; }
.landing-departures-result .next-departures-block { margin-bottom: 30px; }
.landing-departures-result .next-departures-block h3 {
    font-family: 'Inter', sans-serif; font-weight: 900; font-size: 1.1rem;
    text-transform: uppercase; color: var(--bvg-black); margin: 0 0 15px 0; letter-spacing: 0.5px;
}
.landing-departures-result .next-departures-block h3::before {
    content: ''; display: inline-block; width: 10px; height: 10px;
    background-color: #4CAF50; border-radius: 50%; margin-right: 10px;
}
#landing-next-card .trip-card {
    border-left: 6px solid #4CAF50;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.landing-departures-result .result-header-style { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 20px; }

/* --- ERGEBNISSE --- */
.results-section { margin-top: 30px; }
#result-header { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 20px; }

.trip-card {
    background: white; border-left: 6px solid var(--bvg-yellow);
    margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); cursor: pointer; border-radius: 4px;
}

/* HEADER DER KARTE */
.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 15px 20px;
    gap: 15px;
}

.trip-header > div:first-child {
    display: flex;
    align-items: center;
    flex-shrink: 0; 
    white-space: nowrap; 
}

.trip-time {
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 10px;
    min-width: 60px; 
    text-align: left;
}

.trip-header > div:last-child {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.2;
    flex-grow: 1;
    word-break: break-word;
}

.trip-line {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 6px;
    margin-right: 12px; 
    min-width: 55px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: var(--bvg-black);
    color: var(--bvg-yellow);
}

.line-tram { background-color: #E3000B; color: white; }
.line-rail { background-color: #00843D; color: white; }
.line-bus { background-color: #9040A5; color: white; }

.next-badge {
    background-color: #4CAF50; color: white; font-size: 0.7rem; padding: 3px 6px;
    border-radius: 4px; margin-right: 5px; text-transform: uppercase; font-weight: 900;
}

/* Animationen & Live Info */
@keyframes pulse-green { 0%{box-shadow:0 0 0 0 rgba(76,175,80,0.7)} 70%{box-shadow:0 0 0 6px rgba(76,175,80,0)} 100%{box-shadow:0 0 0 0 rgba(76,175,80,0)} }
@keyframes pulse-purple { 0%{box-shadow:0 0 0 0 rgba(144,64,165,0.7)} 70%{box-shadow:0 0 0 6px rgba(144,64,165,0)} 100%{box-shadow:0 0 0 0 rgba(144,64,165,0)} }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.live-info {
    font-size: 0.9rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    background-color: #eee; color: #666;
}
.live-info.good { background-color: #e8f5e9; color: #2e7d32; }
.live-info.urgent { background-color: #4CAF50; color: white; animation: pulse-green 1.5s infinite; }
.live-info.now { background-color: #9040A5; color: white; animation: pulse-purple 1s infinite; text-transform: uppercase; }

/* --- TIMELINE (DETAILS) --- */
.trip-details { display: none; border-top: 1px solid #eee; }
.trip-card.open .trip-details { display: block; }

.stop-row {
    display: flex; align-items: stretch; padding: 12px 15px;
    background-color: white; position: relative;
}
.stop-row:nth-child(even) { background-color: #f7f9fa; }

.timeline-col {
    width: 40px; position: relative; display: flex;
    flex-direction: column; align-items: center; margin-right: 10px;
}
.timeline-line {
    position: absolute; top: 0; bottom: 0; width: 2px;
    background-color: #d0d0d0; left: 50%; transform: translateX(-50%); z-index: 1;
}
.stop-row:first-child .timeline-line { top: 50%; }
.stop-row:last-child .timeline-line { bottom: 50%; }

.timeline-point {
    width: 14px; height: 14px; border-radius: 50%;
    border: 3px solid #F0D722; background: white; z-index: 2;
    margin-top: 4px; box-sizing: border-box;
}
.stop-row:last-child .timeline-point { background: #222; border-color: #222; }

.stop-name { flex-grow: 1; font-size: 1rem; color: #333; display: flex; align-items: center; }
.stop-time {
    font-weight: 800; color: #000; font-size: 1rem;
    min-width: 50px; text-align: right; display: flex; align-items: center; justify-content: flex-end;
}
.stop-time.late-night { color: #666; }

/* --- FOOTER --- */
.bvg-footer {
    margin-top: 50px; padding: 40px 20px; background-color: white;
    border-top: 4px solid var(--bvg-yellow); text-align: center;
    color: #666; font-size: 0.9rem; line-height: 1.6;
}
.footer-content { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.footer-row strong { color: var(--bvg-black); font-weight: 700; }

/* MOBILE GENERAL */
@media (max-width: 900px) {
    /* desktop-nav: display: none wurde entfernt, damit Links sichtbar bleiben */
    .bvg-main-header { width: 100%; border-radius: 0; padding: 10px 15px; }
    .hero-stage { padding: 0 15px; justify-content: center; margin-top: 30px; }
    .yellow-teaser { width: 100%; max-width: none; text-align: center; padding: 24px 20px; }
    .yellow-teaser h1 { font-size: 1.5rem; margin-bottom: 16px; }
    .teaser-label { font-size: 0.7rem; }
    .teaser-btn { padding: 10px 20px; font-size: 0.9rem; }
    .route-inputs { flex-direction: column; align-items: stretch; }
    .swap-btn { transform: rotate(90deg); align-self: center; }
}

/* --- NEWS TICKER --- */
.news-container {
    background-color: var(--bvg-black);
    color: var(--bvg-yellow);
    border-radius: 4px;
    margin-bottom: 20px; 
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-title {
    background-color: #E3000B; 
    color: white;
    font-weight: 900;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background-color: #fafaf7; 
    color: #000;
    display: flex;
    align-items: center;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    animation: ticker-slide 20s linear infinite;
    font-weight: 600;
    font-size: 0.95rem;
    padding-left: 100%;
}

@keyframes ticker-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.news-separator {
    color: #E3000B;
    margin: 0 20px;
    font-weight: 900;
}

/* --- TICKET PAGE STYLES --- */
.hero-background.sub-page {
    min-height: 50vh;
    padding-bottom: 40px;
}

.ticket-page {
    margin-top: 0; 
    padding-top: 40px;
    padding-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 5px solid var(--bvg-yellow);
    padding-left: 15px;
}

.ticket-section {
    margin-bottom: 60px;
}

/* DEUTSCHLANDTICKET BANNER */
.d-ticket-banner {
    background: linear-gradient(135deg, #F0D722 0%, #ffeb3b 100%);
    color: var(--bvg-black);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.dt-content h2 {
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

.dt-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.dt-badge {
    background: var(--bvg-black);
    color: var(--bvg-yellow);
    font-size: 2.5rem;
    font-weight: 900;
    padding: 15px 25px;
    border-radius: 50%;
    transform: rotate(-10deg);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.white-btn {
    background-color: white !important;
    color: black !important;
    width: auto !important;
    display: inline-block;
}

/* TICKET GRID */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ticket-card {
    background: white;
    border: 1px solid #eee;
    border-top: 6px solid var(--bvg-yellow);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ticket-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.ticket-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--bvg-black);
}

.ticket-body {
    padding: 20px;
    flex-grow: 1;
}

.ticket-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
}

.ticket-features li {
    margin-bottom: 8px;
}

.ticket-features i {
    color: #4CAF50;
    margin-right: 8px;
}

.ticket-footer {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* Buttons in Cards */
.bvg-button.outline {
    background: transparent;
    border: 2px solid var(--bvg-black);
    color: var(--bvg-black);
}
.bvg-button.outline:hover {
    background: var(--bvg-black);
    color: white;
}

.info-note {
    background: #eef;
    padding: 15px;
    border-radius: 4px;
    color: #335;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile Anpassung Ticket Seite */
@media (max-width: 600px) {
    .d-ticket-banner { text-align: center; justify-content: center; }
    .dt-badge { margin-top: 10px; }
}

/* --- TICKET DOWNLOADS --- */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.download-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--bvg-black);
    transition: all 0.2s;
    border-left: 5px solid var(--bvg-black);
}

.download-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
    border-left-color: var(--bvg-yellow);
}

.download-card i {
    font-size: 2rem;
    margin-right: 15px;
    color: #e3000b; 
}

/* --- AUTOMATEN --- */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.machine-item {
    background: white;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #eee;
}

.machine-item i {
    color: var(--bvg-yellow);
    background: var(--bvg-black);
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* --- SHOPS / VORVERKAUF --- */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.shop-card {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 4px solid #ddd;
}

.shop-card.highlight {
    border-top-color: var(--bvg-yellow);
    background-color: #fffdf0;
}

.shop-card h4 {
    margin: 0 0 10px 0;
    font-weight: 800;
}

.shop-card p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.shop-stop {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    font-weight: 600;
    color: var(--bvg-black) !important;
}

/* --- FIX FÜR DEN HEADER CONTAINER --- */
#global-header-container,
#global-header-container-landing {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ------------------------- */
/*  HAMBURGER MENU (MOBILE)  */
/* ------------------------- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 999;
}

.hamburger-btn span {
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation für "X" */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 15px;
    background: white;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 998;
}

.mobile-nav a {
    padding: 12px 0;
    font-weight: 800;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #ddd;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* Sichtbarkeit ab mobiler Breite */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
}

/* --- FOOTER (ersetzt alte Footer-Styles) --- */
.bvg-footer {
    margin-top: 50px;
    padding: 30px 20px;
    background-color: white;
    border-top: 4px solid var(--bvg-yellow);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--bvg-black);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-info {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
}

.footer-info strong {
    color: var(--bvg-black);
}

.footer-info a {
    color: #666;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-regions {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.6;
    margin: 8px 0;
}
.footer-regions-label {
    font-weight: 600;
    color: var(--bvg-dark);
    margin-right: 6px;
}
.footer-regions a {
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}
.footer-regions a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}



/* ========================================================= */
/* NEU: STYLES FÜR DEN VERBESSERTEN ABFAHRTSMONITOR */
/* ========================================================= */

/* 1. Button "Mehr laden" */
.load-more-container {
    text-align: center;
    padding: 25px 0 10px 0;
    animation: fadeIn 0.5s ease-out;
}

.btn-load-more {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px; /* Pill Shape */
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-load-more:hover {
    border-color: var(--bvg-yellow);
    color: black;
    background-color: #fffdf0; /* Ganz helles Gelb */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.btn-load-more i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.btn-load-more:hover i {
    transform: translateY(3px); /* Pfeil bewegt sich leicht nach unten */
}

/* 2. Wartezeit-Anzeige im Detailbereich */
/* Das haben wir in app.js als Inline-Style eingefügt, 
   aber hier können wir es noch verfeinern, falls nötig. */
.transfer-wait-info {
    font-weight: normal;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 3. Animation für nachgeladene Items */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Hilfsklasse für JS (wird beim Nachladen gesetzt) */
.animate-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* 4. Leerer Zustand verschönern */
#no-data-msg {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin-top: 20px;
}

/* 5. Highlight-Bereich etwas abheben */
#next-trip-card .trip-card {
    border-left: 8px solid #4CAF50; /* Dickerer grüner Rand */
    background: #fff;
    /* Optional: Ein leichter grüner Glow für das Highlight */
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.15); 
}

/* ========================================= */
/* UX-VERBESSERUNG: STATION MONITOR */
/* ========================================= */

/* 1. Haupt-Bereich (Haltestelle) */
.main-search-area {
    margin-bottom: 20px;
}

.main-label {
        display: block; font-size: 0.75rem; font-weight: 900;
    color: var(--bvg-dark); margin-bottom: 8px; letter-spacing: 0.5px;
}

/* Das Eingabefeld markanter machen */
.route-input-group.main-input input {
    border: 2px solid #000; /* Dickerer schwarzer Rand */
    padding: 18px 15px 18px 45px; /* Etwas höher */
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.route-input-group.main-input input:focus {
    border-color: var(--bvg-yellow);
    box-shadow: 0 4px 15px rgba(240, 215, 34, 0.3);
    outline: none;
}

.icon-right-deco {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
}

/* 2. Filter-Box (Optionaler Look) */
.filter-box {
    background-color: #f4f4f4; /* Ganz leichtes Grau */
    border: 1px dashed #ccc;   /* Gestrichelter Rand signalisiert "Optional" */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.filter-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Nebeneinander */
    gap: 15px;
}

/* Kleinere Inputs für die Filter */
.input-wrapper.small-filter {
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    height: 40px; /* Kompakter */
}

.input-wrapper.small-filter select {
    padding: 0 10px; /* Weniger Padding */
    font-size: 0.9rem;
    font-weight: 500;
    height: 100%;
}

.input-wrapper.small-filter .arrow {
    right: 10px;
    font-size: 0.7rem;
}

/* Mobile Anpassung für die Filter */
@media (max-width: 600px) {
    .filter-grid {
        grid-template-columns: 1fr; /* Untereinander auf Handy */
    }
}

/* ========================================= */
/* GEO-ORTUNG BUTTON */
/* ========================================= */

/* Der Button im Input-Feld */
.geo-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--bvg-black); /* oder #333 */
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
}

.geo-btn:hover {
    color: var(--bvg-yellow);
    background-color: #f0f0f0;
}

.geo-btn:active {
    transform: translateY(-50%) scale(0.9);
}

/* Optional: Animation beim Suchen */
.fa-spin-pulse {
    animation: fa-spin 1s infinite steps(8);
}

/* WENN DU ES NUR AUF HANDYS WILLST: */
/* Standardmäßig ausblenden */
.mobile-only {
    display: none;
}

/* Ab 900px (Mobile/Tablet) einblenden */
@media (max-width: 900px) {
    .mobile-only {
        display: block;
    }
    /* Platz im Input schaffen, damit Text nicht unter Button rutscht */
    .route-input-group.main-input input {
        padding-right: 50px; 
    }
}

/* Entferungs-Anzeige im Dropdown */
.geo-dist {
    float: right;
    font-size: 0.8rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ========================================= */
/* FIX: Zeilenumbruch in Ergebniskarten (Mobil) */
/* ========================================= */

@media (max-width: 600px) {
    
    /* Der Header der Karte wird zur Spalte (untereinander) */
    .trip-header {
        flex-direction: column; 
        align-items: flex-start !important; /* Alles linksbündig */
        gap: 10px;
    }

    /* Der obere Teil (Linie + Zeit + Countdown) */
    .trip-header > div:first-child {
        width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap; /* Falls es auch hier eng wird */
    }

    /* Der untere Teil (Richtung) */
    .trip-header > div:last-child {
        text-align: left !important; /* Erzwingt Linksbündigkeit (überschreibt JS) */
        width: 100%;
        padding-top: 5px;
        border-top: 1px dashed #eee; /* Optische Trennung */
    }
}

/* ========================================= */
/* FIX: Tabs auf Mobilgeräten (Scrollbar + Fade) */
/* ========================================= */

@media (max-width: 600px) {
    
    .search-tabs {
        display: flex;
        flex-wrap: nowrap;           /* Erzwingt eine Zeile */
        overflow-x: auto;            /* Aktiviert horizontales Scrollen */
        -webkit-overflow-scrolling: touch; /* Weiches Scrollen auf iOS */
        
        /* Scrollbalken unsichtbar machen */
        scrollbar-width: none;       /* Firefox */
        
        /* Layout Anpassung: Randlos machen */
        margin: 0 -15px 20px -15px;  /* Zieht die Leiste an den Bildschirmrand */
        padding: 0 15px;             /* Innenabstand für den Text */
        border-bottom: 2px solid #eee; /* Feine Linie unten durchgehend */
        
        /* VISUELLER HINWEIS: Fade-Out Effekt rechts */
        /* Alles wird rechts langsam transparent */
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    /* Scrollbalken für Chrome/Safari/Edge ausblenden */
    .search-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Die Buttons selbst */
    .tab-btn {
        flex: 0 0 auto;              /* Verhindert Schrumpfen */
        white-space: nowrap;         /* Text bricht nicht um */
        padding: 12px 20px;          /* Große Klickfläche */
        font-size: 0.95rem;
        border-bottom-width: 3px;    /* Aktiver Strich etwas dicker */
    }

    /* WICHTIG: Platzhalter am Ende */
    /* Sorgt dafür, dass der letzte Tab nicht unter dem Fade-Effekt verschwindet */
    .search-tabs::after {
        content: "";
        flex: 0 0 30px;              /* 30px unsichtbarer Platz rechts */
        height: 1px;
    }
}

/* ========================================= */
/* FILTER AKKORDEON (Auf/Zu) */
/* ========================================= */

.filter-header {
    cursor: pointer;           /* Zeig, dass es klickbar ist */
    justify-content: space-between; /* Text links, Pfeil rechts */
    user-select: none;         /* Text nicht markierbar beim Klicken */
    transition: color 0.2s;
}

.filter-header:hover {
    color: #000; /* Dunkler beim Drüberfahren */
}

.filter-arrow {
    transition: transform 0.3s ease; /* Weiche Drehung */
}

/* Wenn offen (Klasse wird per JS gesetzt) */
.filter-header.open .filter-arrow {
    transform: rotate(180deg);
}

/* Kleiner Abstand, wenn ausgeklappt */
.filter-grid {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

/* Status für abgefahrene Verbindungen */
.live-info.gone {
    background-color: #f0f0f0;
    color: #999;
    font-weight: normal;
    border: 1px solid #ddd;
}

/* ========================================= */
/* ATTRIBUT-BADGES: WL, AST, B, BIKE, GL, Z */
/* ========================================= */

.badge-attr {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eee;
    color: #333;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Barrierefrei (wheelchair) */
.badge-attr-wl {
    background: #d1ffd8;
    color: #0a7a20;
}

/* Rufbus (pickup/dropoff = 2) */
.badge-attr-ast {
  background: #1e88e5;
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
}

/* Bedarfshalt (pickup/dropoff = 3) */
.badge-attr-b {
    background: #e0e0e0;
    color: #555;
}

/* Fahrradmitnahme (bikes_allowed = 1) */
.badge-attr-bike {
    background: #d8e9ff;
    color: #004a99;
}

/* Gleis / Steig (platform_code) */
.badge-attr-gl {
    background: #000;
    color: #F0D722;
}

/* Tarifzone (zone_id) */
.badge-attr-zone {
    background: #fafafa;
    color: #222;
    border: 1px solid #ccc;
}

.status-banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- Sehr unauffälliger Hinweisbanner --- */
.subtle-banner {
    text-decoration: none;
    color: inherit;
}

.subtle-status {
    background: #ffffff;             /* sehr helles Rot */
    color: #b72b2b;                  /* dezentes, nicht zu starkes Rot */
    border: 1px solid #f0d0d0;       /* zurückhaltender Rahmen */
    padding: 6px 10px;               /* sehr kompakt */
    font-size: 0.85rem;              /* kleine Schrift */
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;             /* kleiner Abstand zur Suchkarte */
}

.subtle-status i {
    font-size: 0.9rem;               /* kleines Icon */
    margin-top: 1px;
}

.subtle-status:hover {
    background: #f5dcdc;
    cursor: pointer;
}

/* ========================================= */
/* LINIENPLÄNE TAB: Kachelansicht           */
/* ========================================= */

.lines-intro {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 25px 0;
}

.lines-section {
    margin-bottom: 25px;
}

.lines-section:last-child {
    margin-bottom: 0;
}

.lines-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lines-section-title i {
    font-size: 1rem;
    color: #888;
}

.lines-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.line-tile {
    min-width: 60px;
    height: 50px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
}

.line-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.line-tile:active {
    transform: scale(0.97);
}

.line-tile.tram {
    background: #c4122f;
    color: white;
}

.line-tile.bus {
    background: #8b2d87;
    color: white;
}

.line-tile.rail {
    background: #00843D;
    color: white;
}

/* ========================================= */
/* LINIENPLÄNE TAB: Detailansicht           */
/* ========================================= */

.back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #000;
}

.line-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.line-badge-large {
    min-width: 55px;
    height: 55px;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #c4122f;
}

.line-badge-large.bus {
    background: #8b2d87;
}

.line-badge-large.rail {
    background: #00843D;
}

.line-detail-info h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.line-detail-info p {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 0.95rem;
}

.direction-selector {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.direction-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.direction-col {
    flex: 1;
}

.date-col {
    flex: 0 0 160px;
}

.lp-date-wrapper {
    height: 46px;
}

.lp-date-wrapper input[type="date"] {
    padding: 10px 10px 10px 40px !important;
    min-height: 46px !important;
}

.direction-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.direction-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dir-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.dir-btn:hover {
    border-color: #999;
}

.dir-btn.active {
    background: var(--bvg-yellow);
    border-color: var(--bvg-yellow);
    color: black;
}

.dir-btn i {
    margin-right: 8px;
    color: #888;
}

.dir-btn.active i {
    color: black;
}

/* ========================================= */
/* LINIENPLÄNE TAB: Fahrplantafel           */
/* ========================================= */

.line-timetable {
    margin-top: 10px;
}

.timetable-loading {
    text-align: center;
    padding: 30px;
    color: #888;
}

.lp-no-trips {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 0.95rem;
}

.lp-no-trips i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ccc;
}

.timetable-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.timetable-table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font-size: 0.85rem;
}

.timetable-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.timetable-table th,
.timetable-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.stop-col-header,
.stop-cell {
    position: sticky;
    left: 0;
    background: #f8f8f8;
    z-index: 1;
    text-align: left !important;
    min-width: 160px;
    max-width: 200px;
    border-right: 2px solid #ddd;
    padding: 10px 12px;
}

.stop-col-header {
    background: #333;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stop-cell {
    vertical-align: top;
}

.stop-name-tbl {
    display: block;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: normal;
}

.stop-name-tbl:hover {
    text-decoration: underline;
    color: #0066cc;
}

.stop-fl-info {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
}

.stop-fl-info .fl-first {
    color: #2e7d32;
}

.stop-fl-info .fl-last {
    color: #c62828;
}

.time-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: #333;
    min-width: 45px;
    font-size: 0.8rem;
}

.time-cell.no-stop {
    color: #ccc;
}

.time-cell.first-trip-col {
    background: #e8f5e9;
}

.trip-header.first-trip {
    background: #e8f5e9;
}

.time-cell.last-trip-col {
    background: #ffebee;
}

.trip-header.last-trip {
    background: #ffebee;
}

.time-cell.next-trip {
    background: var(--bvg-yellow);
    font-weight: 700;
    color: #000;
}

.trip-header.next-trip {
    background: var(--bvg-yellow);
}

.first-stop-row .stop-cell,
.last-stop-row .stop-cell {
    background: #f0f0f0;
}

.first-stop-row .stop-name-tbl,
.last-stop-row .stop-name-tbl {
    font-weight: 800;
}

.timetable-table tbody tr:nth-child(even) .stop-cell {
    background: #f4f4f4;
}

.timetable-table tbody tr:nth-child(even) .time-cell:not(.next-trip):not(.first-trip-col):not(.last-trip-col) {
    background: #fafafa;
}

.lp-trip-header {
    background: #f8f8f8;
    height: 8px;
    padding: 0 !important;
}

.timetable-legend {
    display: flex;
    gap: 20px;
    padding: 12px 15px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    font-size: 0.75rem;
    color: #666;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-dot.first {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.legend-dot.last {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.legend-dot.next {
    background: var(--bvg-yellow);
    border: 1px solid #d4b800;
}

/* Mobile für Linienpläne */
@media (max-width: 600px) {
    .line-tile {
        min-width: 50px;
        height: 45px;
        font-size: 1.1rem;
        padding: 8px 12px;
    }
    
    .line-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .direction-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-col {
        flex: 1;
        width: 100%;
    }
    
    .direction-btns {
        flex-direction: column;
    }
    
    .dir-btn {
        min-width: 100%;
    }
    
    .stop-col-header,
    .stop-cell {
        min-width: 120px;
        max-width: 140px;
        padding: 8px;
    }
    
    .stop-name-tbl {
        font-size: 0.8rem;
    }
    
    .time-cell {
        min-width: 40px;
        font-size: 0.75rem;
        padding: 6px 4px;
    }
    
    .timetable-legend {
        gap: 12px;
        font-size: 0.7rem;
    }
}

/* ========================================= */
/* LINIENPLÄNE: Ladeanimation (Skeleton)    */
/* ========================================= */

.timetable-skeleton {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.skeleton-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.skeleton-row:last-child {
    margin-bottom: 0;
}

.skeleton-cell {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    flex: 0 0 45px;
}

.skeleton-cell.wide {
    flex: 0 0 140px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.line-timetable.fade-in {
    animation: fadeInTimetable 0.3s ease-out;
}

@keyframes fadeInTimetable {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* LINIENPLÄNE: Scroll-Pfeile               */
/* ========================================= */

.timetable-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.2s;
}

.scroll-btn:hover {
    background: var(--bvg-yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-btn.scroll-left {
    left: -18px;
}

.scroll-btn.scroll-right {
    right: -18px;
}

.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================= */
/* LINIENPLÄNE: Zurück-Button unten         */
/* ========================================= */

.back-btn-bottom-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-btn-bottom {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.back-btn-bottom:hover {
    background: #eee;
    color: #000;
}

/* Mobile Anpassung Scroll-Buttons */
@media (max-width: 600px) {
    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .scroll-btn.scroll-left {
        left: -10px;
    }
    
    .scroll-btn.scroll-right {
        right: -10px;
    }
    
    .timetable-scroll-wrapper {
        margin: 0 5px;
    }
}

/* =========================================================
   HOMEPAGE GRID - BVG-Style 2-Spalten Layout
   ========================================================= */

.homepage-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* === Gemeinsame Card-Styles === */
.homepage-card,
.homepage-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 28px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.card-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}

.card-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 0 0 0;
}

/* =========================================================
   LINKE SPALTE: Störungsmeldungen
   ========================================================= */

.disruptions-card {
    display: flex;
    flex-direction: column;
}

.disruptions-list {
    flex: 1;
}

/* Einzelne Störungszeile */
.dl-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
}

.dl-row:last-child {
    border-bottom: none;
}

.dl-row:hover {
    background: #fafafa;
}

/* Linien-Badges */
.dl-lines {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.dl-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
}

.dl-line.tram {
    background: #c4122f;
}

.dl-line.rail {
    background: #00843D;
}

.dl-line.bus {
    background: #8b2d87;
}

/* Content (Titel + Badges) */
.dl-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.dl-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
}

/* Typ-Badges */
.dl-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dl-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dl-badge.red {
    background: #fdeaea;
    color: #c62828;
    border: 1px solid #f5c6c6;
}

.dl-badge.orange {
    background: #fff4e5;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.dl-badge.blue {
    background: #e8f4fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.dl-badge.gray {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

/* Info-Icon rechts */
.dl-info {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-info i {
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.2s;
}

.dl-row:hover .dl-info i {
    color: #999;
}

/* Footer Button */
.card-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    align-self: flex-start;
}

.card-footer-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.card-footer-btn i {
    font-size: 0.8rem;
}

/* Leerer/Lade-Zustand */
.disruptions-loading,
.disruptions-empty {
    padding: 30px 0;
    text-align: center;
    color: #888;
}

.disruptions-empty i {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 10px;
    display: block;
}

.disruptions-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* Hinweis-Box (Kurzmeldung) bei Störungen */
.disruption-hinweis {
    background: #f8f9fa;
    border-left: 4px solid #0066b3;
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.disruption-hinweis strong {
    color: #000;
}

.disruption-hinweis a {
    color: #0066b3;
    font-weight: 600;
    text-decoration: underline;
}

.disruption-hinweis a:hover {
    color: #004a82;
}

/* =========================================================
   RECHTE SPALTE: Schnellzugriff Sidebar
   ========================================================= */

.homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.homepage-sidebar .card-title {
    margin-bottom: 10px;
}

/* Sidebar Card */
.sidebar-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.sidebar-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Icon-Bereich (Thumbnail) */
.sidebar-card-icon {
    width: 70px;
    height: 70px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-card-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.sidebar-card-icon-fallback i {
    font-size: 1.5rem;
    color: #888;
}

/* Text-Bereich */
.sidebar-card-text {
    flex: 1;
    min-width: 0;
}

.sidebar-card-text h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
}

.sidebar-card-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* Pfeil */
.sidebar-arrow {
    color: #ccc;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sidebar-card:hover .sidebar-arrow {
    color: #000;
    transform: translateX(3px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .homepage-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .homepage-card,
    .homepage-sidebar {
        padding: 22px;
    }
    
    .dl-row {
        margin: 0 -22px;
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 600px) {
    .homepage-grid {
        margin-top: 30px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
    
    .dl-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 22px;
    }
    
    .dl-content {
        width: 100%;
        order: 2;
    }
    
    .dl-lines {
        order: 1;
    }
    
    .dl-info {
        order: 1;
        margin-left: auto;
    }
    
    .dl-title {
        font-size: 0.9rem;
    }
    
    .sidebar-card {
        padding: 14px;
    }
    
    .sidebar-card-icon {
        width: 55px;
        height: 55px;
    }
    
    .sidebar-card-text h4 {
        font-size: 0.95rem;
    }
    
    .sidebar-card-text p {
        font-size: 0.8rem;
    }
}

/* =========================================================
   STÖRUNGSANZEIGE - Linien-Kacheln & Detail
   ========================================================= */

/* === Linien-Kachel mit Störung === */
.line-tile {
    position: relative;
}

.line-tile.has-disruption {
    position: relative;
}

.line-tile .line-number {
    display: block;
}

.line-tile .disruption-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.line-tile.disruption-warning .disruption-indicator {
    background: #ff9800;
}

.line-tile.disruption-info .disruption-indicator {
    background: #2196f3;
}

/* Kachel-Rahmen bei Störung */
.line-tile.disruption-warning {
    box-shadow: 0 0 0 2px #ff9800;
}

.line-tile.disruption-info {
    box-shadow: 0 0 0 2px #2196f3;
}

/* === Störungsbanner im Linien-Detail === */
.line-disruption-banner {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.line-disruption-banner.severity-warning {
    border-left: 4px solid #ff9800;
    background: #fffbf5;
}

.line-disruption-banner.severity-info {
    border-left: 4px solid #2196f3;
    background: #f5faff;
}

.disruption-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.severity-warning .disruption-banner-header i {
    color: #ff9800;
}

.severity-info .disruption-banner-header i {
    color: #2196f3;
}

.disruption-banner-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disruption-banner-item {
    padding: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.disruption-banner-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 4px;
}

.disruption-banner-info {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 6px;
}

.disruption-banner-date {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.disruption-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 6px;
    transition: all 0.2s;
}

.disruption-banner-link:hover {
    background: var(--bvg-yellow);
    color: #000;
}

/* === Mobile Anpassungen === */
@media (max-width: 480px) {
    .line-tile .disruption-indicator {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -5px;
        right: -5px;
    }
    
    .line-disruption-banner {
        padding: 14px 16px;
    }
    
    .disruption-banner-header {
        font-size: 0.95rem;
    }
    
    .disruption-banner-title {
        font-size: 0.9rem;
    }
}

/* Ticker-Banner (BVG-artig, blau, Text rollt von oben rein) */
.ticker-banner {
    width: 100%;
    background: #004a82;
    color: #fff;
    padding: 14px 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ticker-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.ticker-banner-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: ticker-roll-in 0.5s ease-out forwards;
}

.ticker-banner-item.animate-in {
    animation: ticker-roll-in 0.5s ease-out forwards;
}

@keyframes ticker-roll-in {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticker-banner-icon {
    flex-shrink: 0;
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    margin-top: 2px;
}

.ticker-banner-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.ticker-banner-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: 0 0 100%;
}

.ticker-banner-text {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

.ticker-banner-link {
    color: #fff;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.ticker-banner-link:hover {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .ticker-banner {
        padding: 12px 16px;
    }
    .ticker-banner-title { font-size: 0.95rem; }
    .ticker-banner-text { font-size: 0.85rem; }
    .ticker-banner-content { flex-direction: column; gap: 6px; }
}

/* Info-Banner */
.info-banner { display: none; }

.info-banner.active {
    display: block;
    background: #ffffff;
    width: 95%;
    max-width: 1400px;
    margin: 20px auto 0 auto;
    border-radius: 12px;
    padding: 20px 24px;
}

.info-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info-banner-icon {
    flex-shrink: 0;
    color: #0066b3;
    font-size: 1.1rem;
    margin-top: 2px;
}

.info-banner-content { flex: 1; }

.info-banner-title {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066b3;
}

.info-banner-text {
    margin: 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.info-banner-text a {
    color: #0066b3;
    text-decoration: underline;
}

.info-banner-text a:hover { color: #004a82; }

@media (max-width: 768px) {
    .info-banner.active { 
        padding: 16px 18px; 
        width: 92%;
    }
    .info-banner-title { font-size: 1.1rem; }
    .info-banner-text { font-size: 0.95rem; }
}

/* Top-Ticker-Banner ausblenden */
#top-ticker-banner {
  display: none !important;
}