/* =========================================
   0. BASIS, VARIABLEN & RESET
   ========================================= */
:root {
    /* Farben */
    --fw-red: #d00000;
    --fw-red-dark: #a00000;
    --fw-dark: #222222;
    --fw-grey: #f4f4f4;
    --fw-text: #333333;
    --fw-white: #ffffff;
    --fw-blue: #0056b3;
    --fw-orange: #e67e22;
    
    /* Design Tokens */
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}
html {
    scroll-behavior: smooth;
}
/* Fonts Import */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; src: url('/assets/fonts/roboto-v50-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; src: url('/assets/fonts/roboto-v50-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; src: url('/assets/fonts/roboto-v50-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 900; src: url('/assets/fonts/roboto-v50-latin-900.woff2') format('woff2'); }

/* Reset & Basics */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--fw-text);
    background-color: var(--fw-white);
    margin: 0; padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Wichtig für Full-Width Hacks */
}

h1, h2, h3, h4 { color: var(--fw-dark); font-weight: 700; margin-top: 0; }
h1 { font-size: 2.2rem; margin-bottom: 20px; }
h2 { font-size: 1.8rem; margin-bottom: 20px; position: relative; display: inline-block; }

a { color: var(--fw-red); text-decoration: none; font-weight: 600; transition: color 0.2s; }
a:hover { color: var(--fw-red-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Helpers & Fixes */
.news-teaser, 
.news-body h3,
.einsatz-title {
    /* Fix: Text-Umbruch bei langen Wörtern */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* =========================================
   1. KOMPONENTEN: BUTTONS (Global)
   ========================================= */
/* Basis Button Style */
.btn-hero-primary, .btn-hero-secondary, .btn-all-news, .search-btn, 
.fzg-btn-details, .btn-filter, .btn-cat-filter, .btn-back, .page-link, .btn-news-read {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--radius) !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    line-height: 1.2;
}

/* Primary (Rot) */
.btn-hero-primary, .btn-all-news, .search-btn, .btn-filter.active, 
.page-link.active, .btn-news-read, .btn-cat-filter:hover {
    background-color: var(--fw-red) !important;
    color: var(--fw-white) !important;
    border-color: var(--fw-red) !important;
}

.btn-hero-primary:hover, .btn-all-news:hover, .search-btn:hover, .btn-news-read:hover {
    background-color: var(--fw-red-dark) !important;
    border-color: var(--fw-red-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(208, 0, 0, 0.3);
}

/* Secondary (Weiß/Grau) */
.btn-filter, .btn-cat-filter, .btn-back, .page-link, .fzg-btn-details, .btn-hero-secondary {
    background-color: #fff;
    color: #555;
    border: 2px solid #ddd;
}

.btn-filter:hover, .btn-back:hover, .page-link:hover, .fzg-btn-details:hover, .btn-hero-secondary:hover {
    border-color: var(--fw-red);
    color: var(--fw-red);
    background-color: #fff;
    transform: translateY(-3px);
}

/* Spezial: Hero Secondary (Transparent auf Bild) */
.hero-btn-group .btn-hero-secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}
.hero-btn-group .btn-hero-secondary:hover {
    background: #fff;
    color: var(--fw-dark);
}

/* Spezial: Link Button Reset für Startseite */
a.btn-hero-secondary[style*="color:#333"] {
    border-color: #333 !important;
    color: #333 !important;
}
a.btn-hero-secondary[style*="color:#333"]:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* Kleinere Buttons in News */
.btn-news-read {
    padding: 8px 20px;
    font-size: 0.8rem;
    align-self: flex-start;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--fw-white);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 1000;
    border-top: 5px solid var(--fw-red);
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; min-height: 60px;
}

.logo { display: block; line-height: 0; }
.logo img { max-height: 150px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; height: 100%; }

.main-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 5px; align-items: center;
}

.main-nav > ul > li { position: relative; margin: 0; padding: 0; }

.main-nav > ul > li > a {
    display: block; color: var(--fw-dark);
    text-transform: uppercase; font-size: 0.95rem; font-weight: 700;
    padding: 12px 15px; border-radius: var(--radius);
    transition: background 0.2s, color 0.2s; white-space: nowrap;
}

.main-nav > ul > li > a:hover, 
.main-nav > ul > li:not(.has-dropdown) > a.active {
    background: var(--fw-red); color: var(--fw-white);
}

/* Dropdown */
.dropdown-menu {
    display: none !important; position: absolute; top: 100%; left: 0;
    background: var(--fw-white); min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-top: 4px solid var(--fw-red);
    z-index: 3000; border-radius: 0 0 4px 4px;
    padding: 0; list-style: none; flex-direction: column; margin: 0;
}

.main-nav > ul > li:hover > .dropdown-menu { display: flex !important; }

.dropdown-menu li { display: block; width: 100%; margin: 0; }

.dropdown-menu a {
    display: block; color: var(--fw-text);
    padding: 12px 20px; text-transform: none;
    border-bottom: 1px solid #eee; font-weight: 500; font-size: 0.95rem;
    transition: all 0.2s;
}
.dropdown-menu a:hover {
    background: #fafafa; color: var(--fw-red);
    padding-left: 25px; border-left: 3px solid var(--fw-red);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.arrow { font-size: 0.7em; margin-left: 6px; opacity: 0.7; }

/* =========================================
   3. SEKTIONEN & FULL-WIDTH HELPER
   ========================================= */
main { padding: 0; min-height: 60vh; }

.full-width-breakout, 
.section-gray, 
.startseite-einsaetze-section, 
.startseite-news-section {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    max-width: 100vw; 
    box-sizing: border-box;
}

.section-white { background-color: #fff; padding: 100px 0; }
.section-gray, .startseite-news-section { background-color: #fff; padding: 100px 0; 
box-shadow: none; }
.startseite-einsaetze-section { background-color: #fff; padding: 100px 0; box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); }

/* Section Titles */
.section-title, .startseite-section-title {
    text-align: center; font-size: 2.5rem; font-weight: 900;
    margin-bottom: 60px; position: relative;
    padding-bottom: 20px; color: var(--fw-dark); letter-spacing: -0.5px; border: none;
}

.section-title::after, .startseite-section-title::after {
    content: ""; display: block;
    width: 80px; height: 4px;
    background: var(--fw-red);
    margin: 20px auto 0 auto; border-radius: 2px;
}

/* =========================================
   4. HERO & BILD-MODULE
   ========================================= */
/* Hero Video */
.hero-video-wrapper {
    position: relative; width: 100%; height: 80vh; min-height: 500px;
    overflow: hidden; background: #000;
}

.video-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; overflow: hidden;
}

.video-background video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover; z-index: 1;
}

.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 2; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 3; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 40px 20px; color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem; margin-bottom: 20px; color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    font-weight: 900; text-transform: uppercase; line-height: 1.1;
}

.hero-subline { font-size: 1.5rem; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); color: #f0f0f0; font-weight: 500;}
.hero-btn-group { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* Text-Bild Modul */
.module-text-bild { background: transparent; padding: 0; margin-bottom: 0; position: relative; border: none; overflow: visible; }

.module-text-bild h2 { 
    text-align: center; padding-bottom: 10px; margin-bottom: 30px; 
    border-bottom: none !important; position: relative;
    /* Fix: Damit Text nicht klebt */
    display: block; width: 100%;
}
.module-text-bild h2::after {
    content: ""; display: block; width: 60px; height: 3px;
    background: var(--fw-red); margin: 15px auto 0 auto;
}
.module-text-bild h2 small,
.module-text-bild h2 span {
    display: block; /* Schiebt grauen Text in neue Zeile */
    font-size: 0.6em; color: #666; margin-top: 5px; font-weight: 400;
}
.text-body { font-size: 1.1rem; line-height: 1.8; color: #555; }

.grid-wrapper {
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 900px) {
    .module-text-bild.pos-right .grid-wrapper,
    .module-text-bild.pos-left .grid-wrapper { grid-template-columns: 1fr 1fr; }
    
    .module-text-bild.pos-left .text-body { order: 2; }
    .module-text-bild.pos-left .content-image { order: 1; }
}

.content-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block; width: 100%; height: auto;
}
.content-image:hover img { transform: scale(1.02); }

/* Parallax Trenner */
.separator-image-wrapper {
    width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: #222;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}
.separator-image {
    width: 100%;
    background-attachment: scroll !important; 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.separator-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
.separator-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 2;
}
.separator-content h2 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    margin: 0;
    border-bottom: none !important; 
}
.separator-content h2::after { display: none; }

/* =========================================
   5. CARDS, GRIDS & MODULE
   ========================================= */

/* --- A. Basis Grid Setup --- */
.news-grid, .home-einsatz-grid, .fahrzeug-grid, .hub-grid, .facts-grid, .download-grid {
    display: grid;
    gap: 30px;
}
.news-grid, .fahrzeug-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* --- B. News Cards --- */
.news-card {
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column; height: 100%;
    margin-bottom: 0;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.news-image { height: 220px; position: relative; overflow: hidden; flex-shrink: 0; background: #eee;}
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-image img { transform: scale(1.05); }

.news-date-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--fw-red); color: #fff;
    padding: 5px 10px; border-radius: var(--radius);
    font-weight: 700; font-size: 0.85rem; z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.news-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.news-body h3 { font-size: 1.3rem; margin-bottom: 10px; margin-top: 0; line-height: 1.3; }
.news-body h3 a { color: var(--fw-dark); text-decoration: none; }
.news-body h3 a:hover { color: var(--fw-red); }
.news-cat-wrapper { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.news-cat-badge {
    font-size: 0.7rem; text-transform: uppercase; color: var(--fw-red);
    font-weight: 700; border: 1px solid var(--fw-red);
    padding: 2px 6px; border-radius: var(--radius); background: #fff;
}

/* News Teaser Limit (Fix) */
.news-teaser { 
    flex-grow: 1; margin-bottom: 20px; color: #666; font-size: 0.95rem; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
}

/* FEATURED NEWS (Erster Artikel groß) */
@media (min-width: 900px) {
    .news-card.featured-card {
        grid-column: 1 / -1; 
        flex-direction: row; 
        min-height: 400px;   
    }
    .news-card.featured-card .news-image {
        width: 55%; height: auto; min-height: 100%; flex-shrink: 0;   
    }
    .news-card.featured-card .news-body {
        width: 45%; padding: 40px; justify-content: center;
    }
    .news-card.featured-card h3 {
        font-size: 2rem; margin-bottom: 20px;
    }
    .news-card.featured-card .news-teaser {
        font-size: 1.1rem; line-height: 1.8;
    }
}

/* --- C. Fahrzeug Cards --- */
.fzg-card { 
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column; height: 100%;
    margin-bottom: 0;
    border: 1px solid #eee; 
}
.fzg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.fzg-card-image { height: 200px; display: flex; align-items: center; justify-content: center; background: #e9ecef; overflow: hidden; }
.fzg-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.fzg-card:hover .fzg-card-image img { transform: scale(1.05); }
.fzg-card-no-img { color: #999; font-weight: bold; }

.fzg-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.fzg-card-body h3 { font-size: 1.3rem; margin: 0 0 5px 0; color: var(--fw-dark); }
.fzg-card-unit { font-size: 0.85rem; color: #666; text-transform: uppercase; margin-bottom: 2px;}
.fzg-card-funk { font-weight: 700; color: var(--fw-red); margin-bottom: 20px; font-size: 0.95rem;}
.fzg-btn-details { margin-top: auto; }

/* --- D. Einsatz Card (Listenansicht - Alt/Fallback) --- */
.einsatz-liste { margin-bottom: 40px; }
.einsatz-card {
    background: var(--fw-white); border-left: 5px solid var(--fw-red);
    padding: 25px; margin-bottom: 25px;
    box-shadow: var(--shadow); border-radius: 0 5px 5px 0;
    transition: transform 0.2s;
}
.einsatz-card:hover { transform: translateX(5px); }
.einsatz-header { font-size: 0.85rem; color: #777; margin-bottom: 10px; text-transform: uppercase; border-bottom: 1px solid #eee; padding-bottom: 5px; letter-spacing: 1px;}
.einsatz-nr { color: var(--fw-red); font-weight: 800; margin-right: 10px; }
.einsatz-body { display: flex; flex-wrap: wrap; gap: 30px; }
.einsatz-content { flex: 1; min-width: 300px; }
.einsatz-content h3 { font-size: 1.5rem; margin: 0 0 10px 0; }
.einsatz-image-wrapper img { max-width: 300px; height: auto; border-radius: 5px; box-shadow: var(--shadow); }

/* --- E. Einsatz Cards (REDESIGN 2.0 - Grid & Kompakt) --- */
.home-einsatz-grid {
    grid-template-columns: 1fr 1fr; /* Desktop: 2 Spalten */
    gap: 25px; margin-top: 40px;
}
.startseite-einsaetze-section .einsatz-card {
    background: #fff;
    border: 1px solid #eee;
    border-left: 5px solid var(--fw-red);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 0;
    display: flex; flex-direction: column;
    height: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0;
}
.startseite-einsaetze-section .einsatz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left-width: 8px;
}

.einsatz-card-header {
    padding: 15px 20px 5px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: #888; font-weight: 600;
}
.einsatz-card-nr {
    color: var(--fw-red); background: rgba(208,0,0,0.08);
    padding: 2px 8px; border-radius: 4px;
}
.einsatz-card-body {
    padding: 10px 20px 20px 20px;
    flex-grow: 1;
}
.einsatz-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    background: #eee; color: #555; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px;
}
.einsatz-badge.urgent { background: var(--fw-red); color: #fff; }

.einsatz-title {
    font-size: 1.3rem; font-weight: 800; color: var(--fw-dark);
    margin: 0 0 8px 0; line-height: 1.3;
}
.einsatz-loc { display: flex; align-items: center; gap: 6px; color: #666; font-size: 0.9rem; }

.einsatz-card-footer {
    border-top: 1px solid #f0f0f0; padding: 12px 20px;
    background: #fafafa; font-size: 0.85rem; color: #666;
}
.units-label {
    display: block; font-size: 0.7rem; text-transform: uppercase;
    font-weight: 700; color: #999; margin-bottom: 4px;
}
.units-list {
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- F. Hub Navigation (Über uns Verteiler) --- */
.hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 40px;
}
.hub-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid #eee; position: relative;
}
.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--fw-red);
}
.hub-card::after {
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--fw-red); transform: scaleX(0);
    transition: transform 0.3s ease; transform-origin: left;
}
.hub-card:hover::after { transform: scaleX(1); }

.hub-card-image {
    height: 180px; background-color: #ffffff; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center; color: #ccc;
}
.hub-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hub-card:hover .hub-card-image img { transform: scale(1.05); }

.hub-card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.hub-card-title {
    font-size: 1.4rem; font-weight: 800; color: var(--fw-dark);
    margin: 0 0 10px 0; line-height: 1.2;
}
.hub-card:hover .hub-card-title { color: var(--fw-red); }
.hub-card-desc {
    font-size: 0.95rem; color: #666; margin-bottom: 20px;
    line-height: 1.6; flex-grow: 1;
}
.hub-card-link {
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    color: var(--fw-red); display: flex; align-items: center; gap: 5px;
}
.hub-card-link span { transition: transform 0.2s; }
.hub-card:hover .hub-card-link span { transform: translateX(5px); }

/* --- G. Facts Module (Zahlen & Fakten) --- */
.facts-section { padding: 40px 0; }
.facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 20px;
}
.fact-card {
    background: #fff; padding: 30px 20px; border-radius: 8px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee; border-bottom: 4px solid var(--fw-red);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;
}
.fact-card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.fact-icon-wrapper { font-size: 2rem; color: #ddd; margin-bottom: 15px; }
.fact-number {
    display: block; font-size: 3.5rem; font-weight: 900; color: var(--fw-red);
    line-height: 1; margin-bottom: 10px; font-family: 'Roboto', sans-serif;
}
.fact-label {
    font-size: 1.1rem; font-weight: 700; color: var(--fw-dark);
    text-transform: uppercase; letter-spacing: 0.5px; margin: 0;
}
.fact-subline { font-size: 0.85rem; color: #888; margin-top: 5px; display: block; }

/* --- H. Timeline History Module --- */
.timeline-wrapper {
    position: relative; padding: 40px 0; max-width: 1000px; margin: 0 auto;
}
.timeline-wrapper::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
    background: #e9ecef; transform: translateX(-50%); border-radius: 4px;
}

.timeline-item {
    position: relative; margin-bottom: 60px; width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; padding-right: 40px; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 40px; text-align: left; }

.timeline-dot {
    position: absolute; top: 20px; width: 20px; height: 20px;
    background: var(--fw-red); border-radius: 50%; border: 4px solid #fff;
    box-shadow: 0 0 0 4px #e9ecef; z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

.timeline-content {
    background: #fff; padding: 25px; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-top: 4px solid var(--fw-red);
    transition: transform 0.3s ease; position: relative;
}
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.timeline-content::after {
    content: ''; position: absolute; top: 20px; width: 0; height: 0; border-style: solid;
}
.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px; border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}
.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px; border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
}
.timeline-year {
    display: inline-block; background: var(--fw-red); color: #fff;
    font-weight: 900; padding: 5px 15px; border-radius: 20px;
    margin-bottom: 15px; font-size: 1.1rem;
}
.timeline-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--fw-dark); }
.timeline-text { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* --- I. Downloads / PDF Module --- */
.download-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; margin-top: 30px;
}
.download-card {
    background: #fff; border: 1px solid #eee; border-radius: 6px;
    padding: 20px; display: flex; align-items: center; gap: 20px;
    transition: all 0.3s ease; text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; overflow: hidden;
}
.download-card:hover {
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--fw-red);
}
.download-card::before {
    content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
    background: var(--fw-red); transform: scaleY(0);
    transition: transform 0.3s ease; transform-origin: bottom;
}
.download-card:hover::before { transform: scaleY(1); }

.download-icon {
    width: 50px; height: 50px; background: #fdf2f2; color: var(--fw-red);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.download-icon svg { width: 24px; height: 24px; }
.download-info { flex-grow: 1; min-width: 0; }
.download-title {
    display: block; font-weight: 700; color: var(--fw-dark);
    margin-bottom: 4px; font-size: 1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.download-card:hover .download-title { color: var(--fw-red); }
.download-meta {
    display: block; font-size: 0.8rem; color: #888;
    text-transform: uppercase; font-weight: 600;
}

/* =========================================
   6. ARCHIV, LISTEN & TABELLEN
   ========================================= */
.einsatz-container, .artikel-container {
    display: grid; gap: 40px; margin: 30px auto;
}
.einsatz-container { grid-template-columns: 240px 1fr; align-items: start; }

/* Artikel-Container Layout Logic */
.artikel-container { display: flex; align-items: flex-start; margin: 80px auto; max-width: 1200px; padding: 0 20px; }
.artikel-sidebar { width: 300px; flex-shrink: 0; position: static; }
.artikel-content { flex: 1; min-width: 0; }
.active-filters { background: #f8f8f8; padding: 15px 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--fw-red); }
.filter-tag { display: inline-block; background: #fff; padding: 5px 10px; border-radius: 20px; margin-right: 10px; margin-bottom: 5px; font-size: 0.85rem; border: 1px solid #ddd; }
.filter-tag a { color: var(--fw-red); margin-left: 5px; font-weight: bold; text-decoration: none; }
.artikel-count { color: #888; font-size: 0.9rem; margin-bottom: 20px; text-align: right; }
.clear-filters { display: inline-block; color: var(--fw-red); font-weight: 600; font-size: 0.85rem; text-decoration: underline; margin-left: 10px; }

/* Archiv Sidebar */
.archiv-sidebar { position: sticky; top: 110px; }
.sidebar-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 25px; margin-bottom: 30px; }
.sidebar-box h3 { font-size: 1.2rem; border-bottom: 2px solid var(--fw-red); padding-bottom: 10px; margin-bottom: 15px; margin-top: 0; }
.archiv-list { list-style: none; padding: 0; margin: 0; }
.archiv-year { position: relative; }
.archiv-year > a { display: block; padding: 10px 5px; color: var(--fw-text); font-weight: 700; border-bottom: 1px solid #eee; transition: all 0.2s; }
.archiv-year > a:hover, .archiv-year.active > a { color: var(--fw-red); padding-left: 10px; }
.archiv-months { display: none; list-style: none; padding: 0; margin: 0; background: #fafafa; border-left: 3px solid var(--fw-red); }
.archiv-year:hover .archiv-months, .archiv-year.active .archiv-months { display: block; }
.archiv-months li a { display: block; padding: 8px 15px; font-size: 0.9rem; color: #666; border-bottom: 1px solid #fff; }
.archiv-months li a:hover, .archiv-months li a.active { background: #eee; color: var(--fw-red); }

/* Filter & Suche */
.filter-bar { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 8px; }
.filter-link { display: block; padding: 10px 15px; color: #555; text-decoration: none; border-radius: 4px; transition: all 0.2s; font-weight: 500; }
.filter-link:hover { background: #f8f8f8; color: var(--fw-red); padding-left: 20px; }
.filter-link.active { background: var(--fw-red); color: #fff; font-weight: 700; }

.search-form { display: flex; flex-direction: column; gap: 10px; }
.search-input { width: 100%; padding: 10px 15px; border: 2px solid #ddd; border-radius: var(--radius); font-size: 0.95rem;}
.search-input:focus { outline: none; border-color: var(--fw-red); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; flex-wrap: wrap; }
.page-link { display: inline-block; padding: 10px 15px; background: #fff; color: #555; border: 2px solid #ddd; border-radius: 4px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.page-link:hover, .page-link.active { background: var(--fw-red); color: #fff; border-color: var(--fw-red); }

/* Tabellen View */
.view-switch { display: flex; justify-content: flex-end; margin-bottom: 20px; gap: 10px; }
.month-divider { font-size: 1.2rem; font-weight: 700; color: var(--fw-dark); margin: 40px 0 20px 0; padding-bottom: 5px; border-bottom: 2px solid #eee; text-transform: uppercase; letter-spacing: 1px; }

.einsatz-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.einsatz-table th { background: #f4f4f4; text-align: left; padding: 12px 15px; border-bottom: 2px solid #ddd; color: #555; font-weight: 700;}
.einsatz-table td { padding: 12px 15px; border-bottom: 1px solid #eee; vertical-align: middle;}
.einsatz-table tr:hover { background: #fafafa; }
.col-date { width: 140px; white-space: nowrap; font-size: 0.9rem; color: #666; }
.col-alarm { width: 120px; font-size: 0.85rem; color: var(--fw-red); font-weight: 600; }
.col-action { text-align: right; }

/* Fix: Monats-Trenner in Tabelle */
.table-month-row td {
    background-color: #f4f4f4; color: var(--fw-dark); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; padding: 15px !important;
    border-bottom: 2px solid #ddd; text-align: left;
}

/* Stats in Sidebar */
.stats-row { margin-bottom: 12px; font-size: 0.85rem; }
.stats-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: #555; font-weight: 600; }
.stats-bar-bg { background: #eee; height: 8px; border-radius: 4px; overflow: hidden; }
.stats-bar-fill { background: var(--fw-red); height: 100%; border-radius: 4px; }

/* Fix für fehlenden Global-Container */
.einsatz-container, 
.artikel-container {
    max-width: var(--container-width); /* Nutzt deine 1200px Variable [cite: 4] */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}
/* =========================================
   7. DETAILSEITEN (Einsatz & News)
   ========================================= */
.einsatz-hero, .news-hero {
    position: relative; background: var(--fw-dark); color: #fff;
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px;
    box-shadow: var(--shadow);
}
.news-hero { height: 400px; }
.einsatz-hero { background: linear-gradient(135deg, var(--fw-dark) 0%, var(--fw-red) 100%); }

.einsatz-hero-bg, .news-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; opacity: 0.6;
}
.einsatz-hero-bg { filter: blur(2px); }

.einsatz-hero-overlay, .news-hero-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 40px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.einsatz-hero h1, .news-hero h1 { font-size: 2.5rem; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); color: #fff; }
.einsatz-hero h1 { max-width: 80%; }
.news-meta { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 1.1rem; }
.news-hero h1 { margin: 0 0 10px 0; }

.hero-alarm-type {
    position: absolute; top: 20px; right: 20px;
    background: var(--fw-red); color: #fff;
    padding: 8px 15px; font-weight: 800; text-transform: uppercase;
    border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}
.einsatz-nummer-hero { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 4px; font-weight: bold; margin-bottom: 10px; font-size: 0.9rem; }

/* Einsatz Detail Badges */
.badge { padding: 4px 8px; border-radius: var(--radius); font-size: 0.75rem; display: inline-block; margin: 0 5px 5px 0; color: #fff; font-weight: 700; text-transform: uppercase; }
.badge-fzg { background: #555; }
.badge-einheit { background: var(--fw-blue); }
.badge-extern { background: var(--fw-orange); }
.meta-label { font-size: 0.8rem; color: #888; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; display: block; }

.quick-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px; background: #fff; padding: 25px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    margin-bottom: 40px; text-align: center;
}
.fact-item { display: flex; flex-direction: column; }
.fact-icon { font-size: 1.5rem; margin-bottom: 10px; }
.fact-label { font-size: 0.8rem; text-transform: uppercase; color: #888; font-weight: 700; }
.fact-value { font-size: 1.1rem; font-weight: 600; color: var(--fw-dark); }

.einsatz-detail-main { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.einsatz-bericht-text, .news-text-content { font-size: 1.15rem; line-height: 1.8; color: #333; overflow-wrap: break-word; hyphens: auto;}
.einsatz-bericht-text { background: #fff; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.einsatz-bericht-text h3 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.news-text-content { padding: 20px 0; }
.news-detail-wrapper { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }

/* Kräfte Liste */
.forces-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 25px; }
.forces-header { background: #f8f9fa; padding: 15px 20px; border-bottom: 1px solid #eee; font-weight: 700; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.5px; color: var(--fw-dark); }
.header-internal { border-left: 5px solid var(--fw-red); }
.header-external { border-left: 5px solid var(--fw-orange); }
.header-staff { border-left: 5px solid #666; }
.forces-body { padding: 20px; }
.forces-list { list-style: none; padding: 0; margin: 0; }
.forces-list li { padding: 8px 0; border-bottom: 1px solid #eee; font-weight: 500; }
.forces-list li:last-child { border-bottom: none; }
.badges-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-lg { padding: 8px 12px; font-size: 0.85rem; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* Fahrzeug Detail View */
.fzg-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.fzg-detail-img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 20px;}
.fzg-detail-view { margin-top: 20px; }
.tech-box { background: var(--fw-white); padding: 25px; border-top: 5px solid var(--fw-red); box-shadow: var(--shadow); border-radius: 0 0 4px 4px; }
.tech-box h3 { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.tech-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tech-table th { text-align: left; padding: 10px 0; color: #666; width: 45%; border-bottom: 1px solid #eee; vertical-align: top;}
.tech-table td { padding: 10px 0; border-bottom: 1px solid #eee; font-weight: 500; vertical-align: top;}
.tech-table tr:last-child th, .tech-table tr:last-child td { border-bottom: none; }
.fzg-einsatz-liste { list-style: none; padding: 0; margin: 0; }
.fzg-einsatz-liste li { padding: 10px 0; border-bottom: 1px solid #eee; line-height: 1.4; }
.fzg-einsatz-liste li:last-child { border-bottom: none; }
.fzg-einsatz-date { display: block; font-size: 0.8rem; color: #888; margin-bottom: 2px; }
.fzg-einsatz-title { font-weight: 600; color: var(--fw-dark); display: block; }
.einsatz-link-hover:hover .fzg-einsatz-title { color: var(--fw-red); text-decoration: underline; }

/* News Filter Startseite */
.news-category-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.news-all-link-wrapper { text-align: center; margin-top: 50px; }

/* =========================================
   8. FOOTER
   ========================================= */
footer { background: var(--fw-dark); color: #aaa; padding: 50px 0 20px 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--fw-white); text-transform: uppercase; margin-bottom: 20px; font-size: 1.1rem; letter-spacing: 1px; }
.footer-col p { margin-bottom: 10px; font-size: 0.95rem;}
.footer-col a { color: #ccc; font-weight: normal; }
.footer-col a:hover { color: var(--fw-white); text-decoration: underline; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9rem; }

/* =========================================
   9. MEDIA QUERIES (ALLE ANPASSUNGEN)
   ========================================= */
@media (max-width: 900px) {
    /* Layout Breaks */
    .header-inner { flex-direction: column; gap: 15px; }
    .logo img { max-height: 60px; margin: 0 auto; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    
    .einsatz-container { grid-template-columns: 1fr; }
    .artikel-container { flex-direction: column; margin: 40px auto; }
    .artikel-sidebar { width: 100%; position: static; order: -1; margin-bottom: 40px; }
    .einsatz-detail-main, .fzg-detail-grid { grid-template-columns: 1fr; }
    .einsatz-body { flex-direction: column; }
    .einsatz-image-wrapper img { max-width: 100%; }
    .quick-facts { grid-template-columns: 1fr 1fr; }
    
    /* Font Sizes */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subline { font-size: 1.2rem; }
    .section-title, .startseite-section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .module-text-bild h2 { font-size: 1.6rem; }
    .news-hero h1 { font-size: 1.8rem; }
    
    /* Elements */
    .hero-alarm-type { position: static; display: inline-block; margin-bottom: 10px; }
    .einsatz-hero-overlay, .news-hero-content { padding: 20px; }
    .einsatz-hero h1 { font-size: 1.8rem; max-width: 100%; }
    .news-category-filter { justify-content: flex-start; }
}

@media (max-width: 768px) {
    /* General Mobile */
    .view-switch, .einsatz-table { display: none; }
    .einsatz-liste { display: block !important; }
    
    .hero-video-wrapper { height: 60vh; min-height: 450px;}
    .hero-btn-group { flex-direction: column; width: 100%; gap: 15px;}
    .btn-hero-primary, .btn-hero-secondary { width: 100%; }
    
    /* Mobile Iframe Fix */
    .video-background iframe.hero-iframe { width: 300%; left: -100%; }
    
    .section-white, .section-gray, .startseite-einsaetze-section, .startseite-news-section, .full-width-gray { padding: 50px 0; }
    .news-hero { height: 300px; }
    .news-detail-wrapper { padding: 40px 15px; }

    /* Redesign 2.0 Einsatz Grid Mobile */
    .home-einsatz-grid { grid-template-columns: 1fr; }

    /* Timeline Mobile Fix */
    .timeline-wrapper::before { left: 20px; }
    
    .timeline-item {
        width: 100%; left: 0 !important; padding-left: 60px !important;
        padding-right: 0 !important; text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px; right: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px; right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }
}

/* =========================================
   FIX: DEUTLICHERE KONTUREN (DICKERE RAHMEN)
   ========================================= */

/* 1. Sidebar-Boxen (Einsatzarchiv, Suche, Kategorien) */
.sidebar-box {
    border: 2px solid #dcdcdc !important; /* 2px dick und etwas dunkleres Grau */
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
    background-color: #fff;
}

/* 2. Karten (News, Einsätze, Fahrzeuge, Downloads) */
.news-card, 
.einsatz-card, 
.fzg-card, 
.hub-card,
.download-card,
.forces-card {
    border: 2px solid #dcdcdc !important; /* Deutlicher Rahmen */
    box-shadow: 0 6px 15px rgba(0,0,0,0.06) !important;
}

/* 3. Tabellen und Textboxen */
.einsatz-table,
.tech-box,
.einsatz-bericht-text {
    border: 2px solid #dcdcdc !important;
    box-shadow: none !important; /* Bei Tabellen oft besser ohne Schatten, wenn Rahmen dick ist */
}

/* 4. Sidebar-Titel optisch anpassen (damit er bündig mit dem dicken Rahmen sitzt) */
.sidebar-box h3 {
    border-bottom: 2px solid #d00000;
    margin: -25px -25px 20px -25px;
    padding: 15px 25px;
    background-color: #f7f7f7; /* Leichtes Grau im Titelkopf zur Abhebung */
}

/* 5. Input-Felder (Suche) passend dazu */
.search-input {
    border: 2px solid #dcdcdc !important;
}
.search-input:focus {
    border-color: #d00000 !important;
}

/* =========================================
   FIX: RAHMEN UM DIE EINSATZLISTE (TABELLE)
   ========================================= */

.einsatz-table {
    /* Dicker grauer Rahmen außen herum */
    border: 2px solid #dcdcdc !important; 
    
    /* Damit Ecken abgerundet sein können (optional) */
    border-collapse: separate !important; 
    border-spacing: 0;
    border-radius: 4px;
    overflow: hidden; /* Wichtig, damit der Inhalt nicht über die runden Ecken lappert */
    
    /* Sicherstellen, dass der Hintergrund weiß ist */
    background-color: #ffffff !important;
    
    /* Ein leichter Schatten hebt die Liste vom weißen Hintergrund ab */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* Die Kopfzeile (Datum, Stichwort...) sauber abtrennen */
.einsatz-table th {
    border-bottom: 2px solid #d00000 !important; /* Rote Linie unter der Kopfzeile */
    background-color: #f9f9f9 !important; /* Ganz leichtes Grau für den Kopf, damit er sich abhebt */
    color: #333 !important;
}

/* Die einzelnen Zeilen trennen */
.einsatz-table td {
    border-bottom: 1px solid #eee !important;
}

/* Die letzte Zeile braucht unten keinen Strich mehr (sonst doppelt mit dem Rahmen) */
.einsatz-table tr:last-child td {
    border-bottom: none !important;
}

/* Hover-Effekt: Wenn man mit der Maus drüber fährt, wird die Zeile leicht sichtbar */
.einsatz-table tr:hover td {
    background-color: #fdf2f2 !important; /* Ganz helles Rot beim Drüberfahren */
    cursor: pointer;
}
/* =========================================
   FIX: 4 SPALTEN (GRAUER HINTERGRUND STATT RAHMEN)
   ========================================= */

.fact-card {
    /* Kein Rahmen an den Seiten */
    border: none !important;
    
    /* Unten der rote Strich bleibt (wichtig für den Look) */
    border-bottom: 4px solid #d00000 !important;
    
    /* Hintergrund: Ein ganz leichtes, elegantes Grau */
    background-color: #f9f9f9 !important;
    
    /* Kein Schatten, damit es flach und modern wirkt */
    box-shadow: none !important;
    
    /* Oben leicht abgerundet */
    border-radius: 4px 4px 0 0 !important;
}

/* Hover: Beim Drüberfahren wird es etwas dunkler */
.fact-card:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-3px); /* Bewegt sich leicht nach oben */
    transition: all 0.3s ease;
}