:root { --blue: #0055a5; --dark: #222; --grey: #555; --light: #f8f9fa; --white: #fff; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--white); color: var(--dark); line-height: 1.6; }

/* Globale Formatierung für alle Listen im Textbereich */
.standort-content ul, 
.member-bio ul, 
article ul,
.content ul {
    list-style: none; /* Wir entfernen die Standard-Punkte... */
    margin: 20px 0;
    padding-left: 5px;
}

.standort-content li, 
.member-bio li, 
article li,
.content li {
    position: relative;
    padding-left: 25px; /* Platz für den eigenen Punkt */
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Wir setzen einen eigenen, schicken Punkt in deiner Firmenfarbe */
.standort-content li::before, 
.member-bio li::before, 
article li::before,
.content li::before {
    content: "■"; /* Ein Quadrat passt gut zum Kfz-Bereich */
    color: var(--blue);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 2px;
}

/* Navigation Basis */
nav { 
    background: var(--white); height: 80px; display: flex; justify-content: space-between; 
    align-items: center; padding: 0 5%; position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
.logo-box { display: flex; flex-direction: column; text-decoration: none; z-index: 1002; }
.logo-main { font-weight: 700; color: var(--blue); font-size: 1.5rem; line-height: 1; }
.logo-sub { font-size: 0.75rem; color: var(--grey); letter-spacing: 1px; text-transform: uppercase; }

.nav-logo {
    height: 50px;       /* Justiere die Höhe nach deinem Geschmack */
    width: auto;        /* Behält das Seitenverhältnis bei */
    display: block;
    transition: transform 0.3s ease;
}

/* Kleiner Effekt: Das Logo wird beim Drüberfahren minimal größer */
.logo-box:hover .nav-logo {
    transform: scale(1.05);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .nav-logo {
        height: 40px;   /* Etwas kleiner auf dem Smartphone */
    }
}

/* Grundgerüst der Navigation */
/* Hauptliste der Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Jeder Listenpunkt */
.nav-links li {
    position: relative; /* Wichtig: Das Dropdown orientiert sich hieran */
}

/* Die Links an sich */
.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

/* Der blaue Unterstrich (nur für Hauptlinks) */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--blue);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* DAS DROPDOWN-MENÜ */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Erscheint exakt unter dem li */
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    padding: 10px 0;
    margin: 0;
}

/* Hover-Logik: Zeigt das Menü untereinander an */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Links im Dropdown (hier KEIN Unterstrich) */
.dropdown-content a {
    color: #444;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease; /* Nur Farbe animieren */
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a::after {
    display: none !important; /* Unterbindet den blauen Strich im Dropdown */
}

.dropdown-content a:hover {
    background-color: #f8faff;
    color: var(--blue);
    
}

/* Animation definieren */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Dropdown Fix */
@media (max-width: 1100px) {
    .dropdown-content {
        position: static; /* Hebt das "Schweben" auf */
        display: none;    /* Standardmäßig zu */
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        background-color: #f9f9f9; /* Leichte Abhebung vom restlichen Menü */
        width: 100%;
    }

    /* Diese Klasse wird per Klick hinzugefügt */
    .dropdown.mobile-open .dropdown-content {
        display: block;
    }

    .nav-links li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Burger Menu Icon */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1005; /* Damit er immer über dem Menü liegt */
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Animation zu X */
.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* Mobile Navigation (Kombiniert) */
@media (max-width: 1100px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 75%;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        transform: translateX(100%); /* Versteckt */
        transition: transform 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    /* Das ist die entscheidende Klasse, die das Menü reinschiebt */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-cta-btn span { display: none; }
    .nav-cta-btn { padding: 10px; }
}

/* Icons immer rechts neben dem Burger oder Menü */
.nav-right-wrap { display: flex; align-items: center; gap: 15px; }
.icon-link { text-decoration: none; font-size: 1.4rem; }

/* Fix für den Hero-Bereich */
/* Gemeinsames Styling für alle Header */
.hero-large, .hero-small { 
    width: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    color: white; 
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Bessere Kompatibilität als fixed */
}

.hero-large { 
    height: 60vh; 
    background-image: linear-gradient(rgba(0,40,80,0.6), rgba(0,40,80,0.6)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1200');
}

.hero-small { 
    height: 35vh; 
    background-image: linear-gradient(rgba(0,40,80,0.7), rgba(0,40,80,0.7)), url('https://images.unsplash.com/photo-1517524008697-84bbe3c3fd98?q=80&w=1200');
}

.hero-large h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero-small h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

/* Fix für den Content-Container */
.container { 
    padding: 60px 10%; 
    max-width: 1200px; 
    margin: 0 auto; 
    clear: both; 
}

/* Erhöht die Schriftgröße nur im Hauptinhalt */
main.container, 
article.container {
    font-size: 1.15rem; /* Etwas größer als Standard */
    line-height: 1.65;  /* Mehr Zeilenabstand für bessere Lesbarkeit */
    color: #333;
}

/* Spezifisch für die Texte in der _index.md oder anderen Markdown-Seiten */
main.container p {
    margin-bottom: 2rem; /* Mehr Platz nach jedem Absatz */
    line-height: 1.8;    /* Etwas mehr Zeilenabstand für entspanntes Lesen */
}

main.container p, 
article.container p {
    margin-bottom: 2rem; /* Von 1.5 auf 2.0 erhöht für mehr Luft */
    line-height: 1.8;    /* Falls noch nicht drin: Zeilenabstand erhöhen */
}

/* Überschriften im Inhalt ebenfalls leicht anheben */
main.container h2, article.container h2 {
    font-size: 1.6rem;       /* Etwas kleiner als vorher */
    font-weight: 600;       /* Semi-bold statt massiv fett */
    color: #333;            /* Ein weicheres Anthrazit */
    letter-spacing: -0.01em; /* Modernerer, kompakterer Look */
    margin-top: 3rem;
    margin-bottom: 1.2rem;
}

main.container h3, article.container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey);     /* Nutzt dein definiertes Grau für h3 */
    margin-top: 2rem;
}

/* Damit die Seite unter der fixierten Nav beginnt */
body { padding-top: 0; }

/* Roosters Sektion Styling */
/* --- Roosters Partner Bereich (Neu & Dynamisch) --- */
.roosters-section {
    background-color: #003366;
    color: white;
    width: 100%;
    overflow: hidden; /* Verhindert, dass das Logo oben rausragt */
    padding: 20px 0;
}

.roosters-banner {
    display: flex;
    justify-content: space-around; /* Verteilt Text und Logo mit Abstand */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.roosters-banner img {
    max-width: 200px; /* Hier kannst du die Größe genau steuern */
    height: auto;
    object-fit: contain;
    margin-left: 20px; /* Abstand zum Text */
}

/* Optimierung für mobile Geräte */
@media (max-width: 600px) {
    .roosters-banner img {
        max-width: 120px;
        margin-left: 0;
        margin-top: 15px;
    }
}

.roosters-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.roosters-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.roosters-logo-box img {
    width: 100%;
    max-width: 220px; /* Deine gewünschte mittlere Größe */
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* Optimierung für mobile Geräte */
@media (max-width: 768px) {
    .roosters-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px; /* Etwas weniger Padding mobil */
    }
    .roosters-logo-box img {
        /* Von 220px runter auf ca. 145px */
        max-width: 145px; 
    }
}

.roosters-logo-box img:hover {
    transform: scale(1.03);
}

/* Optimierung für mobile Geräte */
@media (max-width: 768px) {
    .roosters-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .roosters-logo-box img {
        max-width: 220px;
    }
}

.roosters-text h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #fff;
}


/* Fix für den Hero Content */
.hero-content {
    max-width: 800px;
    z-index: 2;
}

/* Media Query für Mobile */
@media (max-width: 768px) {
    .roosters-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Partner-Logos als Abschluss des Contents */
.partner-logos { 
    background: #f4f4f4; 
    padding: 60px 5%; 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    flex-wrap: wrap; 
    align-items: flex-start;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px; /* Breite erhöht für besseren Textumbruch */
}

.logo-wrapper img {
    max-height: 80px; /* Logos ca. 20% größer als vorher */
    width: auto;
    margin-bottom: 15px;
}

.logo-subtext {
    font-size: 0.75rem;
    color: #444;
    line-height: 1.3;
    /* Aktiviert die Silbentrennung */
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.logo-placeholder { 
    width: 110px; 
    height: 55px; 
    background: #e0e0e0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.7rem; 
    font-weight: bold; 
    color: #666; 
    border-radius: 4px;
}

/* Footer Fix */
footer { 
    background: #1a1a1a; 
    color: #888; 
    text-align: center; 
    padding: 50px 20px; 
    width: 100%;
}
footer strong { color: #fff; }

.footer-legal-links a {
    color: #888; /* Ein dezentes Grau passend zum Footer-Text */
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #fff; /* Beim Drüberfahren werden sie weiß oder nimm var(--blue) */
    text-decoration: underline;
}

/* Der Beratungs-Button */
 .phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--blue);
    color: white !important;
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
}

.phone-cta .btn-icon {
    font-size: 1.4rem;
}

.phone-cta:hover {
    background-color: #003d7a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.4);
    text-decoration: none !important;
}

/* Container für die Zentrierung des Buttons */
.cta-container {
    text-align: center;
    margin: 40px 0;
    width: 100%;
}

/* Schwebender WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-floating:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Verstecken auf sehr kleinen Bildschirmen, falls er dort stört (optional) */
@media (max-width: 480px) {
    .whatsapp-floating {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 25px;
    }
}

/* Container für die Nav-Buttons */
.nav-right-wrap {
    display: flex;
    align-items: center; /* Zentriert Buttons und Burger vertikal */
    gap: 15px;
}

/* Gemeinsames Styling für die Nav-Buttons */
.nav-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* WhatsApp Button (Grün) */
.nav-cta-whatsapp {
    background-color: #25d366;
    color: white !important;
}

.nav-cta-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-1px);
}

/* Anruf Button (Blau - passend zu deinem Branding) */
.nav-cta-phone {
    background-color: var(--blue);
    color: white !important;
}

.nav-cta-phone:hover {
    background-color: #003d7a;
    transform: translateY(-1px);
}

/* Icons innerhalb der Buttons */
.nav-cta-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Auf kleinen Handys Text ausblenden, nur Icons zeigen */
@media (max-width: 1024px) {
    .nav-cta-btn span {
        display: none;
    }
    .nav-cta-btn {
        padding: 8px;
    }
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--blue);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    margin: 10px 0;
}

.btn-icon {
    font-size: 1.2rem;
}

.text-button:hover {
    background-color: #003d7a;
    text-decoration: none !important;
}

.infobox {
    padding: 30px;
    margin: 40px 0;
    border-radius: 4px;
    border-left: 6px solid var(--blue); /* Dein Branding-Blau */
    background-color: #f0f7ff; /* Ganz helles Blau */
    line-height: 1.5;
}

.infobox-title {
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Optionale Variante für "Wichtig!" in einer anderen Farbe */
.infobox.warning {
    border-left-color: #d9534f; /* Rot */
    background-color: #fdf7f7;
}

/* Generelles Styling für Listen im Text */
main.container ul, 
.infobox-content ul {
    list-style: none; /* Wir entfernen die hässlichen Standard-Punkte */
    padding-left: 5px;
    margin: 20px 0;
}

main.container li, 
.infobox-content li {
    position: relative;
    padding-left: 25px; /* Platz für unseren neuen Punkt */
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Wir bauen einen eigenen, hübschen Punkt vor jedes Li-Element */
main.container li::before, 
.infobox-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px; /* Zentriert den Punkt zur ersten Zeile */
    width: 8px;
    height: 8px;
    background-color: var(--blue); /* Dein SV-Wagener Blau */
    border-radius: 50%; /* Macht den Punkt rund */
}

/* Optional: Checklisten-Stil für die Unfall-Hilfe */
.check-list li::before {
    content: "✓"; /* Ein Häkchen statt eines Punktes */
    background: none;
    color: #28a745; /* Ein dezentes Grün */
    font-weight: bold;
    font-size: 1.1rem;
    top: 2px;
}

/* Abstand zwischen Sektionen (z.B. zwischen Text und Roosters-Banner) */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Elegantes Link-Styling innerhalb von Texten */
/* Wir entfernen das einschränkende "article" und nutzen nur noch ".container" */
.container a:not(.nav-cta-btn):not(.phone-cta):not(.logo) {
    display: inline-block;
    color: #003d7a; /* Das kräftigere Blau für bessere Lesbarkeit */
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Der Slide-Effekt für alle Links im Container */
.container a:not(.nav-cta-btn):not(.phone-cta):not(.logo) {
    color: #003d7a;
    text-decoration: none;
    font-weight: 500;
    /* Der Trick: Ein Hintergrundbild, das wie eine Linie aussieht */
    background-image: linear-gradient(var(--blue), var(--blue));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px; /* Startet bei 0% Breite */
    transition: background-size 0.3s ease;
    /* Wichtig für den Zeilenumbruch: */
    display: inline; 
}

.container a:not(.nav-cta-btn):not(.phone-cta):not(.logo):hover {
    background-size: 100% 2px; /* Fährt auf 100% Breite aus */
}

/* Den alten ::after Effekt löschen oder auskommentieren! */
.container a::after {
    display: none !important;
}

/* Layout für Fachverbände / Mitgliedschaften */
/* Layout für Fachverbände mit Checkmarkern */
.verband-liste {
    margin: 30px 0;
}

.verband-eintrag {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Kompakter Abstand zwischen Icon, Name und Text */
    margin-bottom: 20px;
    padding: 10px 0;
}

/* Der Checkmarker */
.verband-eintrag::before {
    content: "✓";
    color: #28a745; /* Ein dezentes Zertifizierungs-Grün */
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.verband-inhalt {
    display: flex;
    flex-wrap: wrap; /* Lässt den Text bei Platzmangel umbrechen */
    gap: 8px; /* Abstand zwischen Name und Erklärung */
}

.verband-name {
    font-weight: 700;
    color: #333; /* Dunkelgrau statt Link-Blau */
    white-space: nowrap; /* Name bleibt in einer Zeile */
}

.verband-name::after {
    content: ":"; /* Ein Doppelpunkt zur optischen Trennung */
    margin-right: 5px;
}

.verband-info {
    color: #555;
    line-height: 1.5;
}

/* Mobil-Optimierung */
@media (max-width: 600px) {
    .verband-inhalt {
        flex-direction: column;
        gap: 2px;
    }
}

.dropdown:hover .arrow {
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.partner-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
   
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.partner-box img {
    max-width: 150px;
    height: auto;
}

.partner-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* --- Print-Optimierungen --- */
/* --- Print-Optimierungen --- */
@media print {
    /* Team */
    /* 1. Die Sektionen kompakter machen */
    .member-section {
        display: flex !important;
        flex-direction: row !important; /* Erzwingt Bild neben Text auch im Druck */
        gap: 20px !important;
        margin-bottom: 30px !important;
        page-break-inside: avoid; /* Verhindert, dass ein Mitarbeiter auf zwei Seiten zerrissen wird */
        border-bottom: 1px solid #ccc !important;
    }

    /* 2. Die Bilder massiv verkleinern */
    .member-photo {
        flex: 0 0 120px !important; /* Bild im Druck nur noch 12cm breit */
        max-width: 120px !important;
    }

    .member-photo img {
        height: auto !important;
        border-radius: 4px !important;
    }

    /* 3. Textgröße anpassen */
    .member-text h4 {
        font-size: 1.2rem !important;
        margin-top: 0 !important;
    }

    .member-bio {
        font-size: 10pt !important;
        line-height: 1.4 !important;
        margin: 5px 0 !important;
    }

    /* 4. Unnötige Elemente ausblenden */
    .member-contact, .team-overlay, .team-footer-section {
        display: none !important; /* E-Mail Links und das riesige Teamfoto sparen Platz/Tinte */
    }

    .member-logos {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        margin-top: 15px !important;
        border-top: none !important;
    }

    .member-logo-item {
        max-width: 120px !important;
    }

    .member-logo-item img {
        height: 50px !important; /* Im Druck etwas kleiner sparen Platz */
    }

    .logo-caption {
        font-size: 8pt !important;
        color: #000 !important;
    }

    /* 1. Was wirklich weg soll (Navigation, WhatsApp, Buttons) */
    nav, 
    .nav-links, 
    .whatsapp-button, 
    .whatsapp-floating, 
    .whatsapp-btn, 
    #whatsapp-chat-widget, 
    .phone-cta, 
    .map-container button,
    #map-placeholder,
    footer {
        display: none !important;
    }

    /* 2. Header (Logo & Name) erhalten, aber kompakt */
    header {
        display: block !important; /* Sicherstellen, dass er da ist */
        padding: 10px 0 !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid #eee;
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
    }

    header .logo-main {
        font-size: 1.2rem !important;
    }

    /* 3. Hero-Bereich (Auto-Bild) auf ALLEN Seiten bändigen */
    /* Hier nutzen wir sehr starke Selektoren, um das Hintergrundbild zu killen */
    .hero, 
    .page-header, 
    .visual-header, 
    [class*="header-visual"],
    [class*="hero-section"] { 
        height: auto !important;
        min-height: 0 !important;
        padding: 15px 0 !important;
        background-image: none !important; /* Bild weg */
        background-color: #f5f5f5 !important; /* Heller Hintergrund */
        color: black !important;
        border-bottom: 2px solid var(--blue);
    }

    /* Text im Hero/Header anpassen */
    .hero h1, 
    .page-header h1, 
    .visual-header h1,
    h1.entry-title {
        font-size: 20pt !important;
        color: black !important;
        margin: 0 !important;
        text-align: left !important;
    }

    /* 4. Roosters-Logo & andere Bilder bändigen */
    img[src*="roosters"], 
    .partner-section img {
        max-width: 120px !important;
        height: auto !important;
    }

    /* 5. Allgemeines Layout */
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.4;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Standorte */
    .map-placeholder, .map-container {
        display: none !important;
    }

    .standort-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Standard-Schatten */
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Sanftere Animation */
    margin-bottom: 20px; /* Sicherheitsabstand nach unten */
}

/* Der Glow-Effekt beim Hovern */
.standort-card:hover {
    transform: translateY(-8px); /* Etwas stärkeres Anheben */
    box-shadow: 0 12px 30px rgba(0, 85, 165, 0.15); /* Blauer Glow-Schatten */
    border-color: rgba(0, 85, 165, 0.3); /* Rand wird dezent blau */
}
}

/* Standorte */
.standorte-grid {
    display: flex;
    flex-direction: column; /* Ändert Grid/Reihe zu einer Spalte */
    gap: 40px;              /* Abstand zwischen den Standorten */
    max-width: 800px;       /* Verhindert, dass der Text zu breit und unleserlich wird */
    margin: 0 auto;         /* Zentriert den gesamten Block */
}


.standort-card {
    background: #ffffff;
    border: 1px solid var(--blue);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Der Glow-Effekt */
.standort-card:hover {
    transform: translateY(-10px);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 85, 165, 0.2); /* Blauer Glow */
    border-color: var(--blue);
}

.standort-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Schneidet das Bild passend zu, ohne es zu quetschen */
    display: block;
}

.standort-content {
    padding: 20px;
}

/* Einzelner Standort-Block */
.standort-item {
    width: 100%;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--blue); /* Ein Akzent in deiner Firmenfarbe */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.map-placeholder, .map-container {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

.map-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    display: none;
}

/* Container für die Zwei-Klick-Elemente */
.map-consent-wrapper {
    display: flex;
    flex-direction: column; /* Stapelt alles untereinander */
    align-items: center;    /* Zentriert Button und Texte horizontal */
    text-align: center;
    padding: 20px;
    gap: 15px;              /* Erzeugt gleichmäßige Abstände */
}

.consent-text-top {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.consent-text-bottom {
    font-size: 0.8rem;
    color: var(--grey);
    max-width: 250px;       /* Verhindert zu lange Zeilen */
}

/* Den Button etwas breiter machen für bessere Optik */
.map-consent-wrapper .phone-cta {
    background-color: var(--blue); /* Dein Standard-Blau */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease; /* Weicher Übergang */             /* Reset eventueller alter Margins */
}

.map-consent-wrapper .phone-cta:hover {
   background-color: #002244; /* Das satte Dunkelblau */
    box-shadow: 0 5px 15px rgba(0, 34, 68, 0.3); /* Passender Schatten */
    transform: translateY(-2px); /* Minimales Anheben */
}

.route-container {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.route-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.route-link:hover {
    color: #002244; /* Das dunkle Blau vom Button-Hover */
    text-decoration: underline;
}

.route-disclaimer {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    line-height: 1.2;
}

.contact-actions {
    margin: 15px 0;
}

.phone-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--blue);
    color: white !important;
    padding: 15px 25px;            /* Etwas mehr Futter */
    border: none;
    border-radius: 8px;
    text-decoration: none !important;
    
    /* Hier ist das Styling für die "starke" Schrift: */
    font-weight: 700;
    font-size: 1.1rem;             /* Etwas größer */
    text-transform: uppercase;     /* Großbuchstaben für mehr Präsenz */
    letter-spacing: 1px;           /* Dezent mehr Abstand zwischen den Buchstaben */
    
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 30px !important;
    position: relative;
}

.phone-button:hover {
    background-color: #002244 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 34, 68, 0.4);
}

/* Icons im Button (falls vorhanden) etwas absetzen */
.phone-button i, .phone-button span {
    margin-right: 10px;
}

.team-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 60px; /* Großer Abstand zwischen den Personen */
}

.member-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.member-photo {
    flex: 0 0 300px; /* Bild hat eine feste Breite von 300px */
}

.member-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-text {
    flex: 1; /* Text nimmt den Rest des Platzes ein */
}

.member-text h4 {
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 5px;
}

.member-bio {
    margin: 20px 0;
    line-height: 1.8;
    color: #444;
}

/* Responsive: Auf dem Handy untereinander stapeln */
@media (max-width: 768px) {
    .member-section {
        flex-direction: column;
    }
    .member-photo {
        flex: 0 0 auto;
        width: 100%;
    }
}

.member-logos {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.member-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
    text-align: left;
}

.member-logo-item img {
    height: 70px; /* Einheitliche Höhe für beide Logos */
    width: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.logo-caption {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--grey);
    font-weight: 600;
    
    /* Silbentrennung aktivieren */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    
    /* Umbruch erzwingen */
    word-wrap: break-word;
    max-width: 180px; /* Begrenzt die Breite, damit getrennt werden muss */
    margin: 0 auto;   /* Zentriert den Textblock unter dem Logo */
}

/* Container für die Buttons */
.contact-button-group {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch auf Handys */
    gap: 10px;
    margin-bottom: 30px;
    width: 100%;
}

/* Wir nutzen deine .phone-button Basisklasse und ergänzen Farben */
/* Gemeinsame Basis für die Kontakt-Buttons */
.contact-button-group .phone-button {
    flex: 1;
    min-width: 180px;         /* Etwas breiter für die Standfestigkeit */
    padding: 18px 25px;       /* Massives Padding wie beim Karten-Button */
    font-size: 1.15rem;       /* Kräftige Größe */
    font-weight: 900;         /* Maximaler Black-Fettgrad */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;                /* Mehr Platz zwischen Icon und Text */
    border: none;
    line-height: 1;
}

.contact-button-group .phone-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Farben-Update */
.cta-call { background-color: var(--blue) !important; }
.cta-mail { background-color: #444 !important; }

/* Das offizielle WhatsApp-Grün */
.cta-whatsapp { 
    background-color: #25D366 !important; 
    border: none;
}

/* Hover-Zustände (etwas dunkler für Feedback) */
.cta-call:hover { background-color: #003366 !important; }
.cta-mail:hover { background-color: #222 !important; }
.cta-whatsapp:hover { background-color: #128C7E !important; }
/* Print-Einstellung: Im Druck nur Telefon und Mail zeigen, WhatsApp ausblenden */
@media print {
    .cta-whatsapp { display: none !important; }
}

.kalender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.cover-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cover-wrapper:hover {
    transform: scale(1.03);
}

.cover-wrapper img {
    width: 100%;
    display: block;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 85, 165, 0.9);
    color: white;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Versteckt alle Bilder außer dem ersten Titelblatt auf der Seite */
.hidden-on-preview {
    display: none;
}

/* Hero Small für Unterseiten */
/* Der Standard-Stil für alle kleinen Header */
.hero-small {
    background-color: var(--blue); /* Fallback, falls Bild lädt */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Ein dunkler Schleier, damit die weiße Schrift immer lesbar ist */
.hero-small::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 34, 68, 0.6); /* Dunkelblau-Transparenz */
    z-index: 1;
}

.hero-small .hero-content {
    position: relative;
    z-index: 2; /* Text über den Schleier heben */
}

/* Kalender Grid auf Hochkant optimieren */
.kalender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Schmalere Spalten für Hochkant */
    gap: 30px;
    margin-top: 30px;
}

.cover-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    aspect-ratio: 3 / 4; /* Erzwingt das Hochformat-Verhältnis */
    background: #eee;
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt den Hochkant-Container sauber aus */
}

.year-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--blue);
    color: white;
    padding: 6px 14px;
    font-weight: 800;
    border-radius: 4px;
    font-size: 1.1rem;
    z-index: 2;

    /* Weißer Rahmen */
    border: 2px solid white;

    /* Der Glow-Effekt: 
       1. Ein scharfer Schatten für die Abgrenzung 
       2. Ein weicher Lichtschein für die Tiefe */
    box-shadow: 
        0 0 10px rgba(0, 0, 0, 0.3), 
        0 0 15px rgba(255, 255, 255, 0.5);
    
    /* Text-Schatten im Label für maximale Lesbarkeit */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    
    transition: all 0.3s ease;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 34, 68, 0.85);
    color: white;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cover-wrapper:hover .cover-overlay {
    transform: translateY(0);
}

/* Optional: Ein kleiner Effekt beim Hover über das ganze Bild */
.cover-wrapper:hover .year-label {
    transform: scale(1.1);
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.4), 
        0 0 25px rgba(255, 255, 255, 0.8);
}

.ort-grid {
    display: grid;
    /* Erstellt automatisch so viele Spalten wie Platz ist, min. 150px breit */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.ort-grid li {
    background: var(--light);
    padding: 8px 12px;
    
    font-size: 0.9rem;
    color: var(--dark);
    border-left: 2px solid #838383; /* Ein kleiner Akzent in deinem Blau */
}

.ort-grid li::before {
    content: none !important; /* Entfernt das Quadrat */
}

.ort-grid li a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    display: block; /* Macht die ganze Fläche klickbar */
}

.ort-grid li a:hover {
    text-decoration: underline;
}


.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Die elegante, schlanke Version */
.info-box-elegant {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-left: 5px solid var(--blue);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-box-elegant h4 {
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

.info-box-elegant p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

/* Entfernt den Abstand des jeweils letzten Elements in der Box */
.info-box-elegant > *:last-child,
.info-box-standard > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Speziell für Listen in der Box, falls diese noch eigene Abstände haben */
.info-box-elegant ul, 
.info-box-standard ul {
    margin-bottom: 0;
}

.hero-clean {
    position: relative;
    min-height: calc(100vh - 100px); /* Füllt immer den ganzen Bildschirm */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert Logo/Text vertikal */
    align-items: center;
    padding: 0; /* Platz oben reduziert, unten Platz für die Maus */
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%);
    text-align: center;
}

.brand-focus {
    margin-top: -50px;
    margin-bottom: 20px; /* Abstand vom Logo zum Text etwas verringert */
}

.hero-logo-large {
    max-width: 800px; /* Da das Logo sehr breit ist */
    width: 90%;
    height: auto;
    /* Ein hauchfeiner Schatten lässt das Logo edler wirken */
    filter: drop-shadow(0 10px 20px rgba(11, 43, 83, 0.1));
}

.hero-text-content h1 {
    font-size: 2.5rem;
    color: #0b2b53; /* Die Farbe aus deinem Logo */
    margin-bottom: 20px;
    font-weight: 800;
}

.lead-text {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-call-to-action {
    background-color: #0b2b53;
    color: white !important;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(11, 43, 83, 0.2);
    transition: all 0.3s ease;
}

.btn-call-to-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(11, 43, 83, 0.3);
}

.btn-outline {
    border: 2px solid #0b2b53;
    color: #0b2b53;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-outline:hover {
    background-color: rgba(11, 43, 83, 0.05);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-text-content h1 {
        font-size: 1.8rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; /* 30px vom unteren Rand der Sektion */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Die kleine Computer-Maus */
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #0b2b53;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #0b2b53;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

/* Der kleine Pfeil darunter */
.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #0b2b53;
    border-right: 2px solid #0b2b53;
    transform: rotate(45deg);
    margin: -4px 0;
    animation: scroll-arrow 1.5s infinite;
}

/* Animationen */
@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes scroll-arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}