:root {
    /* Erhöhe die Header-Höhe, da Ticker + Nav nun zusammengehören */
    --header-height: 115px; 
    --brand-red: #dd5a5a;
    --dark-bg: #212529;
}
html {
    height: 100%;
    width: 100%;
}
/* 1. GRUNDGERÜST */
body {
    background-color: var(--brand-red); /* Deine Hauptfarbe */
    color: white;
    padding-top: var(--header-height);
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100dvh; /* Dynamische Höhe für Safari */
    overscroll-behavior-y: none; /* Stoppt das Gummiband-Scrollen in Chrome/Android komplett */
}

body a {
    color: white;
    text-decoration: none;
}

main{
    flex: 1 0 auto !important;
}

/* 2. DEN GANZEN HEADER FIXIEREN (statt nur die Navbar) */
header.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000 !important; /* Höher als alles andere auf der Seite */
    background-color: var(--dark-bg);
}

/* 3. NAVBAR ANPASSEN (Fixierung entfernen!) */
.navbar {
    /* WICHTIG: position: fixed ENTFERNEN, da der Header schon fixiert ist */
    position: relative !important; 
    width: 100%;
    min-height: 75px; 
    z-index: 10; /* Innerhalb des Headers reicht ein kleiner Wert */
    background-color: var(--dark-bg) !important;
    border-bottom: 3px solid #ff5733;
    margin: 0;
}

/* 1. BASIS-STYLING (Mobil zuerst) */
.ticker-container {
    width: 100%;
    overflow: hidden; /* Verhindert horizontales Scrollen der Seite */
    background-color: #d32f2f;
    padding: 8px 0;
    white-space: nowrap;
}

.ticker-wrapper {
    display: inline-block;
    padding-left: 100%; /* Startet rechts außerhalb */
    animation: ticker-animation 15s linear infinite; /* Animation AN */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

/* Logo-Korrektur (kein Quetschen) */
.navbar-brand {
    display: flex !important;
    align-items: center;
    flex-shrink: 0 !important;
}

.navbar-brand img {
    width: auto !important; 
    height: 50px !important; 
    max-width: none !important;
    object-fit: contain !important;
}

/* 3. FIX FÜR DAS MOBILE MENÜ (Hamburger-Inhalt) */
@media (max-width: 991px) {
    :root {
        --header-height: 65px;
    }

    /* Das aufgeklappte Menü braucht einen eigenen Hintergrund, 
       sonst sieht man die rote Seite durch */
    .navbar-collapse {
        background-color: var(--dark-bg);
        padding: 1rem;
        border-radius: 0 0 5px 5px;
        /* Erhöht die Sichtbarkeit über dem roten Content */
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }

    .navbar-brand img {
        height: 40px !important;
    }

    /* Damit die Links im Menü besser lesbar sind */
    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .gab
    {
        margin-top: 100px !important;
    }
}

/* Nur auf kleinen Bildschirmen bewegen, auf großen feststehen lassen */
@media (min-width: 992px) {
    .ticker-container {
        display: flex;
        justify-content: center; /* Zentriert den Text */
    }

    .ticker-wrapper {
        animation: none !important; /* Animation AUS */
        padding-left: 0;
        display: block;
        transform: none !important; /* Stoppt jede Bewegung */
        text-align: center;
    }

    .gab
    {
        margin-top: 50px !important;
    }
}

/* 3. DIE ANIMATION (Nur für Mobil genutzt) */
@keyframes ticker-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.card {
    background-color: var(--brand-red) !important;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.monatsbox {
    background-color: #97adc3;
    width: 100%;
    border: 5px solid white;
    border-radius: 3px;
    margin-bottom: 5px;
    cursor: pointer;
}

/* Full-Width Hero Bereich */
.hero-wrapper {
    position: relative;
    width: 100%;
    background-color: #ff5733; /* Dein Haupt-Rot */
    overflow: hidden;
}

.hero-image-box {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); /* Etwas flacherer Schnitt */
    height: 60vh; /* Nutzt 60% der Bildschirmhöhe, passt sich also an */
    min-height: 400px;
    position: relative;
}

.hero-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Behebt die Verzerrung */
        
        /* --- DIESE ZEILE ÄNDERN BZW. HINZUFÜGEN --- */
        /* Versuche 'bottom', 'center' oder '20% center' */
        /* 'bottom' zwingt den Browser, den unteren Teil des Bildes (die Autos) zu zeigen */
        object-position: center; 
        /* ------------------------------------------- */
        
        filter: brightness(60%); /* Für Lesbarkeit des Textes */
    }

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 15px;
    z-index: 5;
}

.hero-text-overlay h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    margin-bottom: 0.5rem;
}

/* Sidebar Styling */
.sidebar-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.hero-section {
    position: relative;
    width: 100%;
    height: 60vh; /* Nutzt 60% der Bildschirmhöhe */
    min-height: 400px;
    background: #000;
    /* Erzeugt die schräge Kante unten */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -50px; /* Lässt den Inhalt darunter leicht überlappen */
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Zeigt mehr von den Autos statt vom Himmel */
    filter: brightness(0.7);
}

/* Der Text auf dem Bild */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.footer-custom {
    /* Gleiche Hintergrundfarbe wie der Header */
    background-color: #212529; 
    color: #ffffff;
    /* Die orangefarbene Linie als Verbindung zum Header-Design */
    border-top: 4px solid #ff5733; 
    
    flex-shrink: 0;
    width: 100%;
}

/* Styling für die Links (Impressum/Datenschutz) */
.footer-links li a {
    display: inline-block;
    padding: 5px 0; /* Vergrößert die Klickfläche mobil */
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #ff5733; /* Dein Feuerwehr-Orange */
}

/* Responsive Feinheiten */
@media (max-width: 767px) {
    .footer-custom .row > div {
        margin-bottom: 2rem; /* Mehr Platz zwischen den Blöcken auf dem Handy */
    }
    
    .footer-icon {
        font-size: 1.8rem; /* Größere Icons für bessere Bedienbarkeit */
    }
}

/* Social Icons einheitlich stylen */
.footer-icon {
    color: white;
    font-size: 24px;
    transition: transform 0.2s, color 0.2s;
}

.footer-icon:hover {
    color: #ff5733;
    transform: scale(1.1); /* Kleiner Zoom-Effekt */
}

/* Herz-Icon Farbe */
.bi-heart.text-danger {
    color: #ff5733 !important; /* Passt das Herz an das Feuerwehr-Orange an */
}