/* ==========================================================================
   1. Grundstyling & Layout
   ========================================================================== */

/* 1. Flex-Layout auf den Body anwenden */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000; /* Oder die entsprechende Hintergrundfarbe deiner Website */
}

/* 2. Der Hero/Hauptbereich dehnt sich dynamisch aus */
section.rsc-home-hero,
section.rsc-allgemein-hero,
section.rsc-fussball-hero,
section.rsc-futsal-hero,
section.rsc-darts-hero,
section.rsc-tischtennis-hero,
section.rsc-schiedsrichter-hero {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Stellt sicher, dass das main-Tag innerhalb der Section ebenfalls voll aufzieht */
section main {
    flex: 1 0 auto;
}

/* 3. Footer nach unten drücken und gestauchte Ränder verhindern */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* 4. Sicherstellen, dass das Cookie-Banner nicht das Flex-Layout stört */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    max-width: 100vw;
    box-sizing: border-box;
}
main {
    padding: 10px;
    font-family: sans-serif;
}

/* ==========================================================================
   2. Navigation & Menü (Desktop & allgemeine Dropdown-Basis)
   ========================================================================== */
.navbar {
    background-color: #E41B2B;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    position: relative; /* Wichtig für die Positionierung des schwebenden Desktop-Menüs */
}

.nav-menu a {
    display: block;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
}

.nav-menu a:hover, 
.nav-menu a.active {
    background-color: #111;
    color: #00bcd4; /* Highlight-Farbe */
}

/* Hilfsklassen & Pfeil für Untermenü */
.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.2s ease;
}

/* --- Dropdown Logik (Desktop Standard) --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #E41B2B;
    min-width: 180px; /* Leicht erhöht für längere Unterpunkte */
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 16px;
    white-space: nowrap; /* Verhindert Zeilenumbrüche im Text */
}

.dropdown-menu a:hover {
    background-color: #111;
}

/* Desktop Hover-Effekt: Zeigt das Menü beim Drüberfahren */
@media (min-width: 769px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* ==========================================================================
   3. Hero-Bereiche & Overlays
   ========================================================================== */
   /* Optional: Maximalbreite und automatischer Seitenabstand für den Inhalt */
.rsc-home-hero main,
.rsc-allgemein-hero main,
.rsc-fussball-hero main,
.rsc-futsal-hero main,
.rsc-darts-hero main,
.rsc-tischtennis-hero main,
.rsc-schiedsrichter-hero main {
    width: 100%;
    max-width: 1200px; /* Optional: Breite begrenzen */
    margin: 0 auto;    /* Zentriert das Element, falls es schmaler ist */
}
.rsc-home-hero,
.rsc-allgemein-hero,
.rsc-fussball-hero,
.rsc-futsal-hero,
.rsc-darts-hero,
.rsc-tischtennis-hero,
.rsc-schiedsrichter-hero{
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    padding: 40px 20px;
    box-sizing: border-box;
    align-items: flex-start; /* Richtet den Inhalt ganz oben aus */
    width: 100%;
    
    padding-top: 40px; /* Ein kleiner, sauberer Abstand zum oberen Rand / zur Navigationsleiste */
}

.rsc-home-hero {
    background-image: url('../images_rsc/WaswhreHamburgohneRahlstedt.jpg');
}

.rsc-allgemein-hero {
    background-image: url('../images_rsc/Kabinen.jpg');
}
.rsc-fussball-hero {
    background-image: url('../images_rsc/fussball.jpeg');
}
.rsc-futsal-hero {
    background-image: url('../images_rsc/Kabinen.jpg');
}
.rsc-darts-hero {
    background-image: url('../images_rsc/darts.jpg');
}
.rsc-tischtennis-hero {
    background-image: url('../images_rsc/Kabinen.jpg');
}
.rsc-schiedsrichter-hero {
    background-image: url('../images_rsc/schiedsrichter.png');
}

/* Dunkler Overlay-Schleier für Lesbarkeit */
.rsc-home-hero::before,
.rsc-allgemein-hero::before,
.rsc-fussball-hero::before,
.rsc-futsal-hero::before,
.rsc-darts-hero::before,
.rsc-tischtennis-hero::before,
.rsc-schiedsrichter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* ==========================================================================
   4. Content-Komponenten (Glassmorphismus)
   ========================================================================== */
.rsc-content {
    position: relative;
    z-index: 2;
    box-sizing: border-box; /* Verhindert das Überquellen durch Padding & Border */
    max-width: min(800px, 100%); /* Stellt sicher, dass max. 100% der Bildschirmbreite genutzt werden */
    width: 100%;

    /* Horizontal zentrieren: */
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: auto;

    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin-top: 0;
    margin-bottom: auto;
}

.rsc-ueberschrift {
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.rsc-content h1 {
    font-size: 2.5rem;
    color: #E41B2B;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 800;
}

.rsc-content h1blau {
    font-size: 2.5rem;
    color: #4aa1f1;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 800;
}

.rsc-content h2 {
    font-size: 1.5rem;
    color: #4aa1f1;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 400;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.rsc-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    color: #4aa1f1;
}

.rsc-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

/* Features-Listen */
.rsc-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.rsc-features li {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.rsc-features li .emoji {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.rsc-features strong {
    color: #fff;
    display: inline;
}

/* ==========================================================================
   5. Footer & Cookie-Banner
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 20px;
    font-family: sans-serif;
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-content p {
    margin: 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-links .separator {
    margin: 0 10px;
    color: #444;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 99999;
    font-family: sans-serif;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    max-width: 70%;
}

.cookie-content a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.btn-accept {
    background-color: #2ecc71;
    color: white;
}

.btn-decline {
    background-color: #e74c3c;
    color: white;
}

/* ==========================================================================
   6. Responsive Design / Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        z-index: 9999;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #E41B2B;
        z-index: 9999;
        font-size: 1.0rem;
    }

    /* Öffnet das Hauptmenü mobil (kompatibel mit Klasse mobile-open oder active) */
    .nav-menu.mobile-open,
    .nav-menu.active {
        display: flex;
    }

    /* Flex-Verhalten anpassen für Mobile */
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        flex-grow: 1;
    }

    /* Auf Mobile wird das Dropdown statisch untereinander gelistet */
    .dropdown-menu {
        position: static;
        background-color: #c7121f; /* Dunkleres Rot zur optischen Trennung mobil */
        width: 100%;
        box-shadow: none;
        padding-left: 15px; /* Leicht eingerückt für bessere Hierarchie */
    }

    .dropdown-menu a {
        padding: 10px 20px;
    }

    /* Verhindert, dass unabsichtlicher Hover auf Mobile stört */
    .has-dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    /* Aktiv-Zustand für mobiles Aufklappen per Klick / JS-Toggle */
    .has-dropdown.open .dropdown-menu {
        display: block;
    }

    /* Pfeil dreht sich beim Öffnen mobil */
    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 600px) {
    .rsc-content {
        padding: 2cqmin;
    }
    .rsc-content h1 {
        font-size: 1.8rem;
    }
    .rsc-content h2 {
        font-size: 1.2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   7. News- & Inhalts-Raster (Kacheldesign)
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px; 
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.news-entry {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    margin-bottom: 10px;
}

.news-entry img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-entry img.img-small {
    display: block;
    width: 50%;
    aspect-ratio: auto;   /* Hebt das 1:1 Quadrat-Format auf */
    object-fit: contain;  /* Verhindert das Bescheiden des Bildes */
    margin: 0 0 15px 0;
}

.news-entry h2 {
    font-size: 1.4rem;
    color: #E41B2B; 
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-variant-numeric: normal; 
    font-feature-settings: "case" on;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.news-entry h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-variant-numeric: normal; 
    font-feature-settings: "case" on;
}

.news-entry p {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-entry p.klein {
    font-size: 0.75rem;
    color: #ccc;
    line-height: 1.1;
    margin-bottom: 15px;
}

.news-entry ul, 
.news-entry ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.news-entry li {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #fff;
}

.news-entry a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.news-entry a:hover {
    color: #E41B2B;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   8. Spezifisches Gremien- & Organigramm-Raster
   ========================================================================== */
.gremien-main-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px; 
    padding: 20px;  
    max-width: 1200px;

    /* Neu/Ergänzt: */
    width: 100%;               /* Nimmt auf kleineren Bildschirmen die volle Breite ein */
    box-sizing: border-box;    /* Schließt das Padding (20px) in die Breitenberechnung ein */

    margin: 0 auto;            /* Optional: Zentriert das Grid bei Bildschirmen > 1200px */
    align-items: stretch;
    justify-items: start;
    align-content: start;
}

/* Kategoriespalte (Sparte) */
.category-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.category-column .category-title {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
    padding: 10px 15px !important;
    display: block !important;
    color: #E41B2B !important;
}

.category-column h2 {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.5rem;
    color: #E41B2B;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: left;
    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-title a {
    font-size: 1.5rem;
}

/* Bereichsspalte (M_JUNGS) */
.art-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.art-column .art-title {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 15px 0 !important;
    text-align: left !important;
    padding: 10px 15px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.art-column h2 {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.3rem;
    color: #3498db;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: left;
    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.art-title.klickbar {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.art-title.klickbar:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Bereichsspalte (Buchstabe Jugend) */
.kuerzel-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.kuerzel-column .kuerzel-title {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 15px 0 !important;
    text-align: left !important;
    padding: 10px 15px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.kuerzel-column h2 {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.3rem;
    color: #3498db;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: left;
    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kuerzel-title.klickbar {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.kuerzel-title.klickbar:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Akkordeon-Steuerung für Bereiche & Teams */
.bereich-wrapper {
    display: none;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.bereich-wrapper.active {
    display: block;
}

/* Kürzel Standardmäßig ausblenden */
.kuerzel-wrapper {
    display: none;
}

/* Anzeigen, wenn active vorhanden ist */
.kuerzel-wrapper.active {
    display: block;
}

/* Optional: Klickbarer Header fürs Kürzel Styling */
.kuerzel-title.klickbar {
    cursor: pointer;
    user-select: none;
}

.team-header-klick {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.team-details {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    display: none;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.team-details.active {
    display: block;
}

/* Personenliste (Vorstände / Ansprechpartner) */
.persons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: flex-start;
}

.persons-list .news-entry {
    text-align: left;
    width: 100%;
}

.persons-list .news-entry img.img-small {
    display: block;
    width: 80px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 0 12px 0;
}

.persons-list .news-entry:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.persons-list .news-entry h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 6px 0;
    font-weight: 700;
    text-align: left;
}

.persons-list .news-entry p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.persons-list .news-entry p.contact-info {
    font-size: 0.85rem;
    color: #fff;
    margin-top: 8px;
    word-break: break-all;
    text-align: left;
}

@media (min-width: 576px) and (max-width: 991px) {
    .gremien-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gremien-main-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Container für alle drei Buttons */
.rsc-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 10px 5px;
    position: relative;
    z-index: 10; /* Stellt sicher, dass die Buttons ganz oben liegen und klickbar sind */
    flex-wrap: wrap;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Gemeinsames Basis-Styling */
.btn-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative;
    z-index: 11; /* Macht die Buttons definitiv anklickbar */
    opacity: 1 !important; /* Verhindert Mattigkeit */
    
    /* Schattenwurf für tiefe, schwebende Optik */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Hover-Effekt: Anheben & kräftiger Schatten */
.btn-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

/* 1. BUTTON: Probetraining (Klar Weiß, schwarzer Text) */
.btn-probetraining {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff;
    animation: slideInLeft 1s ease-out forwards;
}

.btn-probetraining:hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

/* 2. BUTTON: Trainingsplan (Kräftiges RSC-Blau) */
.btn-trainingsplan {
    background-color: #04519B !important;
    color: #ffffff !important;
    border: 2px solid #0660b7;
    animation: slideInDown 1s ease-out forwards;
}

.btn-trainingsplan:hover {
    background-color: #03396c !important;
    color: #ffffff !important;
}

/* 3. BUTTON: Mitglied werden (Kräftiges RSC-Rot) */
.btn-mitglied {
    background-color: #E41B2B !important;
    color: #ffffff !important;
    border: 2px solid #E41B2B;
    animation: slideInRight 1s ease-out forwards;
}

.btn-mitglied:hover {
    background-color: #b2121f !important;
    color: #ffffff !important;
}

/* --- ANIMATIONEN (Mit erzwingbarer voller Deckkraft am Ende) --- */

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobil-Anpassung */
@media (max-width: 480px) {
    .btn-cta {
        width: 100%;
        max-width: 320px;
        /* Überschreibt die seitliche Animation auf Mobile mit einer Bewegung von unten */
        animation: slideInUpMobile 0.6s ease-out forwards !important;
    }
}

/* Neue Animation speziell für Smartphones */
@keyframes slideInUpMobile {
    0% {
        opacity: 0;
        transform: translateY(40px); /* Baut sich sanft von unten auf */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Ticker Container - Erzwingt volle Höhe gegen störende Theme-Regeln */
.platzsperre-banner {
  background-color: #b71c1c; /* Signalrot */
  color: #ffffff;
  
  /* Mindesthöhe & Flexbox */
  min-height: 50px !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  
  padding: 10px 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0rem !important;
  font-weight: 600;
  line-height: 1.2 !important;
  
  border-bottom: 4px solid #ffeb3b;
  
  /* WICHTIG GEGEN ÜBERBREITE: */
  width: 100% !important;
  max-width: 100vw !important; /* Darf nie breiter als das Fenster sein */
  box-sizing: border-box !important;
  overflow: hidden !important; /* Schneidet die Animation außen ab */
  
  position: relative;
  z-index: 9999;
}

/* Wrapper zur Maskierung */
.ticker-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important; /* Verhindert horizontales Scrollen */
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Die Laufschrift-Animation */
.ticker-content {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding-left: 100%;
  animation: ticker 40s linear infinite;
  line-height: 1 !important;
  height: auto !important;
}

.ticker-content span {
  display: inline-flex !important;
  align-items: center !important;
  padding-right: 80px;
}

/* Gelbes Warn-Schild "PLATZSPERRE" */
.ticker-badge {
  background-color: #ffeb3b;
  color: #000000;
  padding: 6px 14px !important;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-right: 12px;
  text-transform: uppercase;
  line-height: 1 !important;
  white-space: nowrap;
  display: inline-block !important;
}

/* Pause bei Hover */
.platzsperre-banner:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}