/**
 * Freiwillige Feuerwehr Baar Schwaben
 * Modern Theme 2026 - Main Stylesheet
 */

/* ==========================================================================
   1. Design Tokens & CSS Variables
   ========================================================================== */
:root {
    /* Brand Colors (Feuerwehr-Rot & Akzente) */
    --ff-red-50: #fef2f2;
    --ff-red-100: #fee2e2;
    --ff-red-200: #fecaca;
    --ff-red-500: #ef4444;
    --ff-red-600: #dc2626; /* Primäres Feuerwehr-Rot */
    --ff-red-700: #b91c1c;
    --ff-red-800: #991b1b;
    --ff-red-900: #7f1d1d;

    /* Slate & Navy Töne für Kontrast und Seriosität */
    --ff-slate-950: #020617;
    --ff-slate-900: #0f172a;
    --ff-slate-800: #1e293b;
    --ff-slate-700: #334155;
    --ff-slate-600: #475569;
    --ff-slate-500: #64748b;
    --ff-slate-400: #94a3b8;
    --ff-slate-300: #cbd5e1;
    --ff-slate-200: #e2e8f0;
    --ff-slate-100: #f1f5f9;
    --ff-slate-50: #f8fafc;

    /* Signalfarben für Einsatzarten */
    --color-fire: #dc2626;     /* Brand */
    --color-thl: #ea580c;      /* Technische Hilfeleistung */
    --color-bma: #d97706;      /* Brandmeldeanlage */
    --color-info: #0284c7;     /* Sonstiges / Info */
    --color-success: #16a34a;  /* Bestanden / Aktiv */

    /* Dynamische Komponenten-Tokens (Theme-abhängig) */
    --badge-bg: var(--ff-red-50);
    --badge-text: var(--ff-red-700);
    --badge-border: var(--ff-red-200);
    --link-hover-color: var(--ff-red-600);
    --accent-hover: var(--ff-red-600);
    --bg-muted: var(--ff-slate-100);
    --nav-hover-bg: var(--ff-red-50);
    --nav-hover-color: var(--ff-red-600);
    --card-icon-bg: var(--ff-red-50);
    --card-icon-color: var(--ff-red-600);
    --watermark-opacity: 0.035;
    --watermark-filter: none;

    /* Standard (Light Mode) Theme Tokens */
    color-scheme: light dark;
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.94);
    --bg-footer: #0f172a;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Abstände & Radien */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typografie & Layout */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container-max: 1140px;
    --header-height: 72px;
}

/* Dark Mode Tokens (per System-Einstellung oder via data-theme="dark") */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --badge-bg: rgba(220, 38, 38, 0.2);
        --badge-text: #fca5a5;
        --badge-border: rgba(220, 38, 38, 0.4);
        --link-hover-color: #f87171;
        --accent-hover: #f87171;
        --bg-muted: var(--ff-slate-800);
        --nav-hover-bg: rgba(220, 38, 38, 0.15);
        --nav-hover-color: #f87171;
        --card-icon-bg: rgba(220, 38, 38, 0.15);
        --card-icon-color: #f87171;
        --watermark-opacity: 0.05;
        --watermark-filter: invert(1);

        --bg-page: #0b0f19;
        --bg-surface: #131b2e;
        --bg-surface-elevated: #1e293b;
        --bg-header: rgba(11, 15, 25, 0.94);
        --bg-footer: #070b13;

        --text-main: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --text-inverse: #ffffff;

        --border-subtle: #1e293b;
        --border-strong: #334155;

        --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    }
}

:root[data-theme="dark"] {
    --badge-bg: rgba(220, 38, 38, 0.2);
    --badge-text: #fca5a5;
    --badge-border: rgba(220, 38, 38, 0.4);
    --link-hover-color: #f87171;
    --accent-hover: #f87171;
    --bg-muted: var(--ff-slate-800);
    --nav-hover-bg: rgba(220, 38, 38, 0.15);
    --nav-hover-color: #f87171;
    --card-icon-bg: rgba(220, 38, 38, 0.15);
    --card-icon-color: #f87171;
    --watermark-opacity: 0.05;
    --watermark-filter: invert(1);

    --bg-page: #0b0f19;
    --bg-surface: #131b2e;
    --bg-surface-elevated: #1e293b;
    --bg-header: rgba(11, 15, 25, 0.94);
    --bg-footer: #070b13;

    --text-main: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border-subtle: #1e293b;
    --border-strong: #334155;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
    --badge-bg: var(--ff-red-50);
    --badge-text: var(--ff-red-700);
    --badge-border: var(--ff-red-200);
    --link-hover-color: var(--ff-red-600);
    --accent-hover: var(--ff-red-600);
    --bg-muted: var(--ff-slate-100);
    --nav-hover-bg: var(--ff-red-50);
    --nav-hover-color: var(--ff-red-600);
    --card-icon-bg: var(--ff-red-50);
    --card-icon-color: var(--ff-red-600);
    --watermark-opacity: 0.035;
    --watermark-filter: none;

    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.94);
    --bg-footer: #0f172a;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   2. Modern Reset & Grundstile
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Wasserzeichen Wappen (subtil und unaufdringlich) */
#ff_background {
    display: block;
    position: fixed;
    right: 5vw;
    top: 15vh;
    width: min(40vw, 420px);
    height: auto;
    opacity: var(--watermark-opacity);
    filter: var(--watermark-filter);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Links */
a {
    color: var(--ff-red-600);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
    color: var(--ff-red-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Utility */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* ==========================================================================
   3. Site Header & Navigation
   ========================================================================== */
/* Alte Sky/Skyline Balken neutralisieren */
#sky, #skyline, #ff_header_strich, #mail {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Oberer Signalstreifen */
.site-header::before {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--ff-red-600) 0%, var(--ff-red-700) 50%, var(--ff-slate-800) 100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand:hover {
    color: inherit;
}

.brand-logo {
    width: 44px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
    transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ff-red-600);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Desktop Navigation */
.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--nav-hover-color);
    background-color: var(--nav-hover-bg);
}

/* Header Aktionen (Theme Toggle, Notruf 112 Badge & Hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle Button (Hell / Dunkel) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-main);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    padding: 0;
}

.theme-toggle:hover {
    background-color: var(--ff-slate-100);
    border-color: var(--border-strong);
    color: var(--ff-red-600);
    transform: scale(1.05);
}

@media (prefers-color-scheme: dark) {
    .theme-toggle:hover {
        background-color: var(--ff-slate-800);
        color: #f87171;
    }
}

:root[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--ff-slate-800);
    color: #f87171;
}

:root[data-theme="light"] .theme-toggle:hover {
    background-color: var(--ff-slate-100);
    color: var(--ff-red-600);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

/* Theme Icons Toggle */
.theme-toggle .icon-sun {
    display: none;
}
.theme-toggle .icon-moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}
:root[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}


/* Notruf Badge */
.emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--ff-red-600);
    color: #ffffff !important;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.emergency-badge:hover {
    background: var(--ff-red-700);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.emergency-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    color: var(--text-main);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle:hover {
    background-color: var(--bg-muted);
    border-color: var(--border-strong);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Navigation Drawer / Dropdown */
.mobile-nav {
    display: none;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-nav.is-open {
    display: block;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav-inner {
    padding-block: 1rem 1.5rem;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--nav-hover-bg);
    color: var(--nav-hover-color);
}

.mobile-nav-divider {
    height: 1px;
    background-color: var(--border-subtle);
    margin-block: 0.5rem;
}

.mobile-nav-admin {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   4. Hauptbereich & Layout (#page, .site-main)
   ========================================================================== */
#page {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    padding-block: 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   5. Bereichs-Header (Hero-Banner für Unterseiten)
   ========================================================================== */
#bereich_header {
    width: 100%;
    min-height: 160px;
    border-radius: var(--radius-lg);
    background-color: var(--ff-slate-900);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    isolation: isolate; /* Eigener Stacking Context, damit Text über Overlay liegt */
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

#bereich_header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(15, 23, 42, 0.25) 100%);
    z-index: -1; /* Hinter dem Text, vor dem Hintergrundbild */
    pointer-events: none;
}

#bereich_header > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   6. Buttons & Interaktive Elemente
   ========================================================================== */
.ff_button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    background-color: var(--ff-red-600);
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.ff_button:hover, .btn:hover {
    background-color: var(--ff-red-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    color: #ffffff !important;
}

/* Bildbuttons (z. B. SVG Banner "Mitglied werden" in Home) */
.ff_button:has(img) {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ff_button:has(img):hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: var(--ff-slate-700);
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--ff-slate-800);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   7. Moderner Footer (Ersetzt altes fixes #ff_menue_bottom)
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background-color: var(--bg-footer);
    color: var(--ff-slate-400);
    border-top: 1px solid var(--border-subtle);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    width: 48px;
    height: auto;
    flex-shrink: 0;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ff-slate-400);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--ff-slate-400);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ff-slate-800);
    font-size: 0.85rem;
    color: var(--ff-slate-500);
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-emergency {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-emergency strong {
    color: var(--ff-red-500);
    font-size: 1.1rem;
}

/* ==========================================================================
   8. Abwärtskompatibilität für alte Selektoren
   ========================================================================== */
#ff_header, #ff_header_wappen, #ff_header_text, #ff_header_menue, #ff_menue {
    /* Werden durch modernisiertes HTML ersetzt */
}

/* Falls noch alter Menü-HTML Code irgendwo ausgegeben wird */
#ff_menue_bottom {
    display: none !important;
}

.darkmode_text_black {
    color: inherit;
}

#home_firstline {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

#home_secondline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    text-align: right;
    font-weight: 700;
    color: var(--ff-red-600);
    margin-bottom: 1.5rem;
}

.einsatz_frame > img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle) !important;
    filter: none !important;
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
}

.verzeichnis a {
    word-break: break-all;
    color: var(--ff-red-600);
}

/* ==========================================================================
   9. Startseite / Hero & Komponenten
   ========================================================================== */
.hero-section {
    text-align: center;
    padding-block: 1rem 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--badge-bg);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--ff-red-600);
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
}

.hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

/* Home Quick Links Grid */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .home-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--ff-red-500);
    color: inherit;
}

.home-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--card-icon-bg);
    color: var(--card-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.home-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.home-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.home-card-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ff-red-600);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Call to Action Box */
.cta-banner {
    background: linear-gradient(135deg, var(--ff-slate-900) 0%, var(--ff-slate-800) 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ff-red-600), var(--ff-red-500));
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.cta-banner p {
    font-size: 1.1rem;
    color: var(--ff-slate-300);
    max-width: 600px;
    line-height: 1.6;
}

