/* ===== CSS Variables ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #222222;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --border-color: #e0e0e0;
    --accent: #4CAF50;
    --accent-hover: #43A047;
    --accent-light: #E8F5E9;
    /* Akzentfarbe (Standard #FA8112, änderbar in App & Region) */
    --accent-orange: #FA8112;
    --accent-orange-hover: #e57410;
    --accent-orange-light: rgba(250, 129, 18, 0.12);
    --accent-orange-shadow: rgba(250, 129, 18, 0.25);
    --accent-orange-shadow-hover: rgba(250, 129, 18, 0.35);
    --accent-contrast: #fff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --font-size-base: 15px;
}

/* ===== Montserrat Font (lokal) ===== */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-semibold.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-bold.woff2') format('woff2');
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --border-color: #333333;
    --accent-light: #1B3D1F;
    /* Wird bei konfigurierter Akzentfarbe aus Header überschrieben */
    --accent-orange-light: rgba(250, 129, 18, 0.25);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scrollbar-gutter: stable;
    /* Fallback für Browser ohne scrollbar-gutter Support:
       Reserviert den Platz für den vertikalen Scrollbalken,
       damit der Header beim Seitenwechsel nicht springt. */
    overflow-y: scroll;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== Header ===== */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.logo-text span {
    color: var(--accent-orange);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.25s ease;
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
}

nav a.nav-active {
    color: var(--accent-orange);
}

@keyframes nav-active-underline-in {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

nav a.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(1);
    transform-origin: left;
    animation: nav-active-underline-in 0.35s ease forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav a:not(.nav-active)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}
nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
}
nav a.nav-cta:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

/* Einstellungen (Zahnrad) + Dropdown */
.settings-wrap {
    position: relative;
}

.settings-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.settings-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.settings-toggle i {
    font-size: 1.125rem;
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
}

.settings-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-dropdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.settings-dropdown-row + .settings-dropdown-row {
    border-top: 1px solid var(--border-color);
}

.settings-dropdown-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.settings-dropdown .font-size-control {
    border: none;
    padding: 0;
    background: transparent;
}

.settings-dropdown .theme-toggle-in-dropdown {
    padding: 0.375rem 0.5rem;
}

.settings-dropdown .theme-toggle-in-dropdown svg {
    width: 18px;
    height: 18px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Icon = Aktion: Normalmodus → Mond („Wechsel zu Dunkel“), Dark-Modus → Sonne („Wechsel zu Hell“) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.font-size-control {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem;
    background: var(--bg-primary);
}

.font-size-btn {
    background: none;
    border: none;
    border-radius: 4px;
    padding: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.font-size-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.font-size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.font-size-btn svg {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== Main Content ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Feste Inhaltsbreite (Impressum, Datenschutz, Kontakt, etc.) */
main.page-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* ===== CTA Section ===== */
/* ===== CTA Section (Redesign – Screenshot-Layout) ===== */
.cta-section {
    margin-bottom: 0;
    padding: 3rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfb;
    border-radius: 20px 20px 0 0;
    min-height: auto;
}

/* CTA ohne Statistik: eigene Rundung + Abstand zur Karte */
.cta-section--standalone {
    border-radius: 20px;
    margin-bottom: 3rem;
}

[data-theme="dark"] .cta-section {
    background: #1f1f1f;
}

.cta-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
}

/* Illustrationsbereich: Karten + Avatare */
.cta-visual-area {
    position: relative;
    width: 100%;
    height: 320px;
    margin-bottom: 1.5rem;
}

/* Icons für Mängelmelder */
.cta-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
    overflow: hidden;
}

.cta-icon svg {
    width: 28px;
    height: 28px;
}
.cta-icon i {
    font-size: 1.35rem;
}

.cta-icon--1 {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
    top: 5%;
    left: 28%;
}

.cta-icon--2 {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
    top: 0%;
    right: 22%;
}

.cta-icon--3 {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
    top: 25%;
    left: 10%;
}

.cta-icon--4 {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
    top: 20%;
    right: 8%;
}

.cta-icon--5 {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
    top: 50%;
    right: 12%;
}

.cta-icon--6 {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
    top: 40%;
    left: 20%;
    width: 74px;
    height: 74px;
    padding: 0.5rem;
}

.cta-icon--6 img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .cta-icon {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cta-icon--1 { background: #3d2e28; color: #c09880; }
[data-theme="dark"] .cta-icon--2 { background: #1a3a3a; color: #5A9FB8; }
[data-theme="dark"] .cta-icon--3 { background: #3a2a1a; color: #D4A67A; }
[data-theme="dark"] .cta-icon--4 { background: #38302a; color: #b89a80; }
[data-theme="dark"] .cta-icon--5 { background: #302d28; color: #a09580; }
[data-theme="dark"] .cta-icon--6 { background: #3d2e28; }

/* Gestapelte Content-Cards – vertikal zentriert */
.cta-cards-stack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.cta-card {
    position: relative;
    background: #FAFAFA;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    width: 220px;
    top: auto;
    left: auto;
}

[data-theme="dark"] .cta-card {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cta-card--blue {
    transform: translateX(-15px);
}

.cta-card--orange {
    transform: translateX(15px);
}

.cta-card--blue + .cta-card--blue {
    transform: translateX(-10px);
}

.cta-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card--blue .cta-card-icon {
    color: #B8E0E0;
}

.cta-card--orange .cta-card-icon {
    color: #F5C4B8;
}

[data-theme="dark"] .cta-card--blue .cta-card-icon { color: #5A9FB8; }
[data-theme="dark"] .cta-card--orange .cta-card-icon { color: #D4A67A; }

.cta-card-icon svg {
    width: 100%;
    height: 100%;
}

.cta-card-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cta-card-line {
    height: 8px;
    border-radius: 4px;
}

.cta-card--blue .cta-card-line {
    background: #B8E0E0;
}

.cta-card--orange .cta-card-line {
    background: #F5C4B8;
}

[data-theme="dark"] .cta-card--blue .cta-card-line { background: #3a5a5a; }
[data-theme="dark"] .cta-card--orange .cta-card-line { background: #5a3a2a; }

.cta-card-line--short {
    width: 60%;
}

/* Text und Button */
.cta-text {
    text-align: center;
    max-width: 560px;
    z-index: 10;
}

.cta-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.cta-text p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.1875rem;
    font-weight: 600;
    background: var(--accent-orange);
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--accent-orange-shadow);
    transition: all 0.2s ease;
}

.btn-cta:hover {
    background: var(--accent-orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-orange-shadow-hover);
}

.btn-cta svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* ===== Statistik-Section (verbessert) ===== */
.stats-section {
    margin-bottom: 3rem;
}

.stats-section .section-header {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #f1f1f1;
    border: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

[data-theme="dark"] .stats-grid {
    background: #1a1a1a;
}

.stats-item {
    background: transparent;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
    transition: background 0.15s;
}

[data-theme="dark"] .stats-item {
    border-right-color: rgba(255, 255, 255, 0.06);
}

.stats-item:last-child {
    border-right: none;
}

.stats-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .stats-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stats-item-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stats-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-icon svg {
    width: 16px;
    height: 16px;
}

.stats-icon--meldungen {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
}
[data-theme="dark"] .stats-icon--meldungen {
    background: rgba(125, 224, 215, 0.2);
    color: #7DE0D7;
}

.stats-icon--behoben {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
}
[data-theme="dark"] .stats-icon--behoben {
    background: rgba(125, 224, 215, 0.2);
    color: #7DE0D7;
}

.stats-icon--gemeinden {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
}
[data-theme="dark"] .stats-icon--gemeinden {
    background: rgba(125, 224, 215, 0.2);
    color: #7DE0D7;
}

.stats-icon--zeit {
    background: rgba(125, 224, 215, 0.15);
    color: #5BC4BB;
}
[data-theme="dark"] .stats-icon--zeit {
    background: rgba(125, 224, 215, 0.2);
    color: #7DE0D7;
}

.stats-label {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text-muted);
    line-height: 1.3;
}

.stats-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stats-unit {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Fortschrittsbalken für "Behoben" */
.stats-progress {
    width: 100%;
    margin-top: 0.25rem;
}

.stats-progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.stats-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.stats-progress-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
}

/* ===== Section generisch ===== */
.section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== Karte ===== */
.map-container {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#map {
    height: 400px;
    width: 100%;
}

.map-privacy-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: left;
}

.map-privacy-content {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-privacy-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-privacy-overlay .btn {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .map-privacy-overlay {
        padding: 1rem;
    }
}

.map-privacy-overlay.is-hidden {
    display: none;
}

/* ===== Letzte Meldungen ===== */
.latest-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.latest-reports-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

/* Orange-Variante für "Alle Meldungen ansehen" */
.latest-reports-header .btn-outline:hover {
    border-color: var(--accent-orange);
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

.latest-reports-grid {
    display: grid;
    gap: 0.75rem;
}

.latest-reports-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.latest-reports-loading .spinner {
    margin: 0 auto 1rem;
}

/* Skeleton loader for latest reports */
.skeleton-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

.skeleton-line--short {
    width: 40%;
}

.skeleton-line--medium {
    width: 70%;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Gemeinden ===== */
.gemeinden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.gemeinde-item {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s;
}

.gemeinde-item:hover {
    border-color: var(--accent-orange);
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

/* ===== Hero Section ===== */
.hero-section {
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 2.5rem 2rem;
}

.hero-section .hero-text-header {
    margin-bottom: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hero-section .stats-box {
    margin-bottom: 0;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hero-text-header {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hero-text-header h1 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.hero-text-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 auto;
    line-height: 1.5;
    max-width: 480px;
}

.region-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.region-badge svg {
    width: 14px;
    height: 14px;
}

.steps-box {
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.steps-box h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.steps-inline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.steps-inline-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.steps-inline-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.steps-inline-icon svg {
    width: 18px;
    height: 18px;
}

.steps-inline-text strong {
    display: block;
    font-size: 1.0rem;
    margin-bottom: 0.15rem;
}

.steps-inline-text p {
    margin: 0;
    font-size: 1.0rem;
    color: var(--text-secondary);
}

/* ===== How it works ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.step-number {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.step p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ===== Formular ===== */
.form-section {
    margin-bottom: 4rem;
}

.form-section-inner {
    max-width: 560px;
    margin: 0 auto;
}

.form-page .form-page-intro {
    margin-bottom: 2rem;
    text-align: center;
}
.form-page .form-page-intro h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.form-page .form-page-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.report-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .report-form {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.form-submit-wrap {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.form-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Drei Schritte durchklicken */
.form-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}
.form-step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.form-step-dot:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.form-step-dot.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.form-step-line {
    width: 2rem;
    height: 2px;
    background: var(--border-color);
}
.form-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.form-step-nav .btn-secondary {
    order: -1;
}

.report-form .form-group {
    margin-bottom: 1.25rem;
}

.report-form .form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.report-form .form-group input,
.report-form .form-group textarea,
.report-form .form-group select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.report-form .form-group input:focus,
.report-form .form-group textarea:focus,
.report-form .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

[data-theme="dark"] .report-form .form-group input,
[data-theme="dark"] .report-form .form-group textarea,
[data-theme="dark"] .report-form .form-group select {
    background: var(--bg-tertiary);
}

.report-form .form-group input[readonly] {
    background: var(--bg-secondary);
    cursor: pointer;
    color: var(--text-secondary);
}

[data-theme="dark"] .report-form .form-group input[readonly] {
    background: var(--bg-tertiary);
}

.report-form .form-group input[readonly]:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

.report-form .form-group textarea {
    resize: vertical;
    min-height: 88px;
}

.report-form .form-group select {
    cursor: pointer;
}

/* ===== Listen-Selects (Art des Mangels, Gemeinde, Filter) ===== */
.select-list,
.select-list-trigger,
.select-list-option {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.select-list {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 2.25rem 0.75rem 0.875rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}
.select-list:hover {
    border-color: var(--text-muted, #666);
}
.select-list:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
[data-theme="dark"] .select-list {
    background-color: var(--bg-tertiary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.page-melden .select-list:focus,
.page-melden .select-list-wrap.is-open .select-list-trigger {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px var(--accent-orange-light);
}

/* Custom-Dropdown (eigenes Design inkl. Scrollbalken) */
.select-list-wrap {
    position: relative;
    width: 100%;
}
.select-list-wrap .select-list-native {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 1rem;
}
.select-list-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 2.25rem 0.75rem 0.875rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}
[data-theme="dark"] .select-list-trigger {
    background-color: var(--bg-tertiary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.select-list-trigger .select-list-placeholder {
    color: var(--text-muted);
}
.select-list-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 2px;
    max-height: 16rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    display: none;
}
[data-theme="dark"] .select-list-dropdown {
    background: var(--bg-tertiary);
}
.select-list-wrap.is-open .select-list-dropdown {
    display: block;
}
.select-list-wrap:focus-visible .select-list-trigger {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.page-melden .select-list-wrap:focus-visible .select-list-trigger {
    outline-color: var(--accent-orange);
}
.select-list-option {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.select-list-option:hover,
.select-list-option.is-selected {
    background: var(--accent-light);
    color: var(--accent);
}
.page-melden .select-list-option:hover,
.page-melden .select-list-option.is-selected {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}
[data-theme="dark"] .select-list-option:hover,
[data-theme="dark"] .select-list-option.is-selected {
    background: var(--accent-light);
}

/* Sichtbarer Scrollbalken im Custom-Dropdown */
.select-list-dropdown::-webkit-scrollbar {
    width: 10px;
}
.select-list-dropdown::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.select-list-dropdown::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
}
.select-list-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
[data-theme="dark"] .select-list-dropdown::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
[data-theme="dark"] .select-list-dropdown::-webkit-scrollbar-thumb {
    background: var(--text-muted);
}
.select-list-dropdown {
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-secondary);
}

/* Meldungen-Filter: einheitliche Labels und Selects */
.meldungen-filter {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
}
.meldungen-filter .filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.meldungen-filter label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.meldungen-filter input[type="search"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}
.meldungen-filter input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}
[data-theme="dark"] .meldungen-filter input[type="search"] {
    background: var(--bg-tertiary);
}
.meldungen-filter .filter-submit {
    display: flex;
    align-items: flex-end;
}
.meldungen-filter .filter-submit .btn {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary.btn--orange,
.btn.btn--orange {
    background: var(--accent-orange);
}
.btn-primary.btn--orange:hover,
.btn.btn--orange:hover {
    background: var(--accent-orange-hover);
}

/* Melden-Seite: alle Primary-Buttons und Akzente in Orange */
.page-melden .btn-primary {
    background: var(--accent-orange);
}
.page-melden .btn-primary:hover {
    background: var(--accent-orange-hover);
}
.page-melden .form-step-dot.active,
.page-melden .form-step-line.active { border-color: var(--accent-orange); background: var(--accent-orange); }
.page-melden .form-step-dot:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.page-melden .form-title svg { color: var(--accent-orange); }
.page-melden .upload-area:hover { border-color: var(--accent-orange); background: var(--accent-orange-light); }
.page-melden .upload-area p strong { color: var(--accent-orange); }
.page-melden .upload-area.has-image { background: var(--accent-orange-light); border-color: var(--accent-orange); }
.page-melden .btn-icon:hover { border-color: var(--accent-orange); background: var(--accent-orange-light); }
.page-melden .btn-icon:hover svg { color: var(--accent-orange); }
.page-melden input:focus, .page-melden select:focus, .page-melden textarea:focus { border-color: var(--accent-orange); box-shadow: 0 0 0 3px var(--accent-orange-light); }

/* Karten-Modal auf Melden-Seite: Orange statt Grün */
#mapModal .btn-primary { background: var(--accent-orange); }
#mapModal .btn-primary:hover { background: var(--accent-orange-hover); }
#mapModal .map-address-search:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px var(--accent-orange-light);
}
#mapModal .map-search-suggestions [role="option"]:hover,
#mapModal .map-search-suggestions [role="option"].is-active {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

/* Weitere Orange-Overrides auf Melden-Seite */
.page-melden .spinner { border-top-color: var(--accent-orange); }
.page-melden .ki-result { background: var(--accent-orange-light); }
.page-melden .btn-change-image:hover {
    background: var(--accent-orange-light);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-tertiary); }

.btn.is-loading {
    pointer-events: none;
    position: relative;
}
.btn .btn-spinner { display: none; }
.btn.is-loading .btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.btn .btn-send-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}
.btn.is-loading .btn-send-icon { display: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn-icon {
    padding: 0.625rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.btn-icon:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}
.btn-icon svg { width: 18px; height: 18px; color: var(--text-secondary); }
.btn-icon:hover svg { color: var(--accent); }

/* ===== Field Errors ===== */
.field-error {
    display: block;
    font-size: 0.8125rem;
    color: #c62828;
    margin-top: 0.25rem;
}
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #c62828;
}

/* ===== Upload Area ===== */
.upload-area {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-secondary);
}

.upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-area svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-area p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.upload-area p strong {
    color: var(--accent);
}

.upload-area .upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.upload-area.has-image {
    border-style: solid;
    background: var(--accent-light);
    border-color: var(--accent);
}

/* ===== Latest Reports hover ===== */
#latestReports > div:hover {
    border-color: var(--accent) !important;
    box-shadow: var(--shadow);
    cursor: pointer;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.modal-body { padding: 0; position: relative; }
.map-search-wrap {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem 0;
    position: relative;
    z-index: 100;
}
.map-search-input-wrap {
    flex: 1;
    position: relative;
    z-index: 100;
}
.map-address-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    box-sizing: border-box;
}
.map-address-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
.map-search-suggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 2px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
}
.map-search-suggestions.is-open {
    display: block;
}
.map-search-suggestions [role="option"] {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.map-search-suggestions [role="option"]:last-child {
    border-bottom: none;
}
.map-search-suggestions [role="option"]:hover,
.map-search-suggestions [role="option"].is-active {
    background: var(--accent-light);
    color: var(--accent);
}
.map-search-suggestions .map-search-suggestion-empty {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.map-search-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
}
.map-search-hint {
    padding: 0.35rem 1.25rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
#locationPickerMap {
    height: 400px;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 1;
}
.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ===== Location Input Group ===== */
.location-input-group {
    display: flex;
    gap: 0.5rem;
}
.location-input-group input { flex: 1; }

/* Coordinates display */
.coords-display {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.375rem;
    display: none;
}
.coords-display.visible { display: block; }

/* Character count */
.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.25rem;
}

/* Contact section */
.contact-section {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}
.contact-header {
    margin-bottom: 1rem;
}
.contact-header label {
    margin-bottom: 0.25rem;
}
.contact-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.contact-grid .form-group {
    margin-bottom: 0;
}
.contact-grid .pflichtfeld {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--text-muted);
}

/* Cloudflare Turnstile */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

/* Loading spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* KI Analysis Result */
.ki-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: none;
}
.ki-result.visible { display: block; }
.ki-result h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ki-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    font-size: 0.8125rem;
}
.ki-result-item label {
    color: var(--text-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ki-result-item span { display: block; color: var(--text-primary); }

/* ===== Custom Map Styling (im Stil des Designs) ===== */

/* Custom Marker mit abgerundeten Ecken */
.custom-marker-wrapper {
    background: transparent;
    border: none;
}

.custom-marker {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid;
    background: #F8DAD2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-marker-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

/* Heatmap-Layer */
.leaflet-heatmap-layer {
    pointer-events: none;
    z-index: 400;
    position: absolute;
    top: 0;
    left: 0;
}

.leaflet-control-heatmap {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    padding: 2px;
}

.heatmap-toggle {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.heatmap-toggle:hover {
    background: #f0f0f0;
}

.heatmap-toggle.active {
    background: #4CAF50;
    color: white;
}

/* Custom Cluster im Mint-Stil */
.custom-cluster-wrapper {
    background: transparent !important;
    border: none !important;
}

.custom-cluster {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #7DE0D7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(125, 224, 215, 0.4);
    border: 3px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-cluster:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(125, 224, 215, 0.5);
}

.custom-cluster span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'Montserrat', system-ui, sans-serif;
}

/* ===== Custom Map Styling (im Stil des Designs) ===== */

/* Custom Marker mit abgerundeten Ecken */
.custom-marker-wrapper {
    background: transparent;
    border: none;
}

.custom-marker {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid;
    background: #F8DAD2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-marker-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
}

/* Custom Cluster im Mint-Stil */
.custom-cluster-wrapper {
    background: transparent !important;
    border: none !important;
}

.custom-cluster {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #7DE0D7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(125, 224, 215, 0.4);
    border: 3px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-cluster:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(125, 224, 215, 0.5);
}

.custom-cluster span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'Montserrat', system-ui, sans-serif;
}

/* Custom Map Popup – professioneller Rahmen und Schatten */
.custom-popup .leaflet-popup-content-wrapper {
    background: #FBF9F7;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

/* Popup per Ziehen verschiebbar – Griff im Header */
.custom-popup .popup-drag-handle {
    cursor: move;
}

.custom-popup .leaflet-popup-tip {
    background: #FBF9F7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Dark Mode: Mängel-Popup – weicher Rahmen, mehrstufiger Schatten */
[data-theme="dark"] .custom-popup .leaflet-popup-content-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .custom-popup .leaflet-popup-tip {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Baustellen: Popup in Blau – professioneller Rahmen und Schatten */
.baustellen-page .custom-popup .leaflet-popup-content-wrapper,
.baustellen-detail-page .custom-popup .leaflet-popup-content-wrapper {
    background: #005A8C;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.15);
}
.baustellen-page .custom-popup .leaflet-popup-tip,
.baustellen-detail-page .custom-popup .leaflet-popup-tip {
    background: #005A8C;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.1);
}
.baustellen-page .custom-popup .custom-popup-content,
.baustellen-detail-page .custom-popup .custom-popup-content {
    background: #005A8C;
}
.baustellen-page .custom-popup .popup-title,
.baustellen-page .custom-popup .popup-address,
.baustellen-detail-page .custom-popup .popup-title,
.baustellen-detail-page .custom-popup .popup-address {
    color: #fff;
}
.baustellen-page .custom-popup .popup-subtitle,
.baustellen-page .custom-popup .popup-description,
.baustellen-page .custom-popup .popup-date,
.baustellen-detail-page .custom-popup .popup-subtitle,
.baustellen-detail-page .custom-popup .popup-description,
.baustellen-detail-page .custom-popup .popup-date {
    color: rgba(255, 255, 255, 0.9);
}
.baustellen-page .custom-popup .popup-footer,
.baustellen-detail-page .custom-popup .popup-footer {
    border-top-color: rgba(255, 255, 255, 0.25);
}
/* Baustellen-Popup: beide Buttons gleiche Größe, Umrandung, Ecken und gleicher Schatten (kein Erhöhen) */
.baustellen-page .custom-popup .popup-link-button,
.baustellen-detail-page .custom-popup .popup-link-button,
.baustellen-page .custom-popup .popup-share-btn,
.baustellen-detail-page .custom-popup .popup-share-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: none;
}
.baustellen-page .custom-popup .popup-link-button:hover,
.baustellen-detail-page .custom-popup .popup-link-button:hover,
.baustellen-page .custom-popup .popup-share-btn:hover,
.baustellen-detail-page .custom-popup .popup-share-btn:hover {
    transform: none;
}
.baustellen-page .custom-popup .popup-link-button,
.baustellen-detail-page .custom-popup .popup-link-button {
    background: #005A8C;
    color: #fff !important;
}
.baustellen-page .custom-popup .popup-link-button:hover,
.baustellen-detail-page .custom-popup .popup-link-button:hover {
    background: #004A73;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.baustellen-page .custom-popup .popup-share-btn,
.baustellen-detail-page .custom-popup .popup-share-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.baustellen-page .custom-popup .popup-share-btn:hover,
.baustellen-detail-page .custom-popup .popup-share-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Popup Content Styles */
.custom-popup-content {
    min-width: 240px;
    max-width: 320px;
    font-family: 'Montserrat', system-ui, sans-serif;
    padding: 1.5rem;
    background: #FBF9F7;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.popup-title-section {
    min-width: 0;
    flex: 1;
}

.popup-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.popup-subtitle {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

.popup-status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.popup-address {
    font-size: 0.875rem;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.popup-description {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    max-height: 3.2em;
    overflow: hidden;
}

.popup-comment {
    background: #ffffff;
    border-left: 3px solid #7DE0D7;
    padding: 0.75rem;
    margin: 0.75rem 0;
    border-radius: 0 8px 8px 0;
}

.popup-comment-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.popup-comment-text {
    font-size: 0.8125rem;
    color: #2C2C2C;
    line-height: 1.5;
    max-height: 3.2em;
    overflow: hidden;
}

[data-theme="dark"] .popup-comment {
    background: #2d3d45;
    border-left-color: #5A9FB8;
}

[data-theme="dark"] .popup-comment-label {
    color: #8bb8d0;
}

[data-theme="dark"] .popup-comment-text {
    color: #e0e8ec;
}

/* Antwort der Gemeinde (Meldung-Detail-Seite) */
.antwort-gemeinde-box {
    background: #E3F2FD;
    border: 1px solid #90CAF9;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.antwort-gemeinde-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.antwort-gemeinde-box-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1565C0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.antwort-gemeinde-box-title svg {
    flex-shrink: 0;
}

.antwort-gemeinde-box-date {
    font-size: 0.75rem;
    color: #1565C0;
    opacity: 0.85;
    white-space: nowrap;
}

.antwort-gemeinde-box-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #1976D2;
    margin: 0;
}

[data-theme="dark"] .antwort-gemeinde-box {
    background: #1e3a4a;
    border-color: #2d5a7b;
}

[data-theme="dark"] .antwort-gemeinde-box-title,
[data-theme="dark"] .antwort-gemeinde-box-date {
    color: #64b5f6;
}

[data-theme="dark"] .antwort-gemeinde-box-text {
    color: #90caf9;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E0E0E0;
}

/* Einheitliche Button-Höhe, Breite und Ecken im Popup-Footer (Details + Teilen) */
.popup-footer .popup-link-button,
.popup-footer .popup-share-btn {
    flex: 1 1 0;
    min-width: 7rem;
    height: 2.25rem;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
}
.popup-footer .popup-share-btn {
    gap: 0.25rem;
    border-color: #E0E0E0;
    background: #FBF9F7;
    color: #2C2C2C;
    appearance: none;
    -webkit-appearance: none;
}
.popup-footer .popup-link-button {
    border-color: transparent;
}
.popup-footer .popup-share-btn svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    display: block;
}

.popup-date {
    font-size: 0.75rem;
    color: #999;
    flex: 1;
}

.popup-link-button {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--accent-orange);
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 4px var(--accent-orange-shadow);
}

.popup-link-button:hover {
    background: var(--accent-orange-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--accent-orange-shadow-hover);
}

/* Leaflet Controls im Website-Stil */
.leaflet-control-zoom a {
    background: #FBF9F7;
    border: 1px solid #E0E0E0;
    color: #2C2C2C;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.leaflet-control-attribution {
    background: rgba(251, 249, 247, 0.9);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaflet-control-attribution a {
    color: #7DE0D7;
}

/* Karte selbst - warmer Hintergrund */
.leaflet-container {
    background: #FBF9F7;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success { background: #43A047; color: white; }
.toast.error { background: #e53935; color: white; }

/* ===== Bildvorschau ===== */
.image-preview {
    position: relative;
    margin-top: 1rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.image-preview-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.image-preview-actions {
    margin-top: 0.75rem;
    text-align: center;
}

.btn-change-image {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.15s;
}

.btn-change-image:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Utilities ===== */
.util-hidden { display: none !important; }

/* Wartungsmodus */
.wartung-message {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    color: var(--text-primary);
}
.wartung-message p { margin: 0 0 0.5rem; line-height: 1.5; }
.wartung-message p:last-child { margin-bottom: 0; }

/* ===== Content-Links (Orange auf allen öffentlichen Seiten) ===== */
main a[href]:not(.btn):not(.btn-outline):not(.btn-cta):not(.gemeinde-item):not(.error-btn):not(.popup-link-button):not(.export-link) {
    color: var(--accent-orange) !important;
}
main a[href]:not(.btn):not(.btn-outline):not(.btn-cta):not(.gemeinde-item):not(.error-btn):not(.popup-link-button):not(.export-link):hover {
    color: var(--accent-orange-hover) !important;
}

/* Fehlerseiten-Buttons: gute Lesbarkeit */
.error-page .error-btn--primary { color: #fff !important; }
.error-page .error-btn--outline { color: var(--accent-orange, #FA8112) !important; }

/* ===== Footer ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 7.0rem;
    margin-left: auto;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-nav-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-orange);
    margin: 0 0 0.25rem 0;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.25s ease;
    position: relative;
}

.footer-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-nav a.nav-active {
    color: var(--accent-orange);
}

.footer-nav a.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(1);
    transform-origin: left;
    animation: nav-active-underline-in 0.35s ease forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-nav a:not(.nav-active)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-version {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .form-section-inner {
        max-width: 100%;
    }
    
    .report-form {
        padding: 1.5rem 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .stats-item:nth-child(2) {
        border-right: none;
    }
    
    .stats-item:nth-child(n+3) {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    [data-theme="dark"] .stats-item:nth-child(n+3) {
        border-top-color: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 600px) {
    main {
        padding: 1.5rem 1rem;
        overflow-x: hidden;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
        box-shadow: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-section {
        min-height: auto;
        padding: 2rem 0.5rem;
    }

    .cta-visual-area {
        height: 260px;
    }

    .cta-icon {
        width: 44px;
        height: 44px;
    }

    .cta-icon svg {
        width: 22px;
        height: 22px;
    }
    .cta-icon i {
        font-size: 1rem;
    }

    .cta-icon--1 { top: 2%; left: 18%; }
    .cta-icon--2 { top: 0%; right: 15%; }
    .cta-icon--3 { top: 25%; left: 3%; }
    .cta-icon--4 { top: 18%; right: 3%; }
    .cta-icon--5 { top: 50%; right: 5%; }
    .cta-icon--6 { top: 35%; left: 15%; width: 56px; height: 56px; padding: 0.375rem; }
    
    .cta-icon--6 img {
        width: 56%;
        height: 56%;
    }

    .cta-card {
        width: 170px;
        padding: 0.875rem 1rem;
        border-radius: 12px;
    }

    .cta-card--blue { transform: translateX(-10px); }
    .cta-card--orange { transform: translateX(10px); }
    .cta-card--blue + .cta-card--blue { transform: translateX(-8px); }

    .cta-card-icon {
        width: 28px;
        height: 28px;
    }

    .cta-text h2 {
        font-size: 1.25rem;
    }

    .cta-text p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        border-radius: 12px;
    }
    
    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg-primary);
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: var(--shadow-lg);
        padding: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        z-index: 50;
    }

    nav.nav-open {
        display: flex;
    }

    nav a {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Zahnrad-Dropdown auf Mobil: volle Breite, große Zeilen */
    .settings-dropdown {
        position: fixed;
        top: 56px;
        left: 1rem;
        right: 1rem;
        min-width: unset;
        margin-top: 0;
        padding: 0;
        border-radius: var(--radius);
        border: 1px solid var(--border-color);
    }

    .settings-dropdown-row {
        min-height: 48px;
        padding: 1rem 1.25rem;
        border-top: 1px solid var(--border-color);
    }

    .settings-dropdown-row:first-child {
        border-top: none;
    }

    .settings-dropdown-label {
        font-size: 1.05rem;
    }

    .settings-dropdown .font-size-btn {
        padding: 0.5rem 0.75rem;
    }

    .settings-dropdown .font-size-btn svg {
        width: 20px;
        height: 20px;
    }

    .settings-dropdown .theme-toggle-in-dropdown {
        padding: 0.5rem 0.75rem;
    }

    .settings-dropdown .theme-toggle-in-dropdown svg {
        width: 22px;
        height: 22px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 1.0rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-top {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .footer-nav {
        width: 100%;
        margin-left: 0;
        gap: 1rem 1.5rem;
    }
    
    .footer-nav a {
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .footer-bottom {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-copyright {
        width: 100%;
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Baustellen Page ===== */
.baustellen-page #baustellenMap{height:450px;width:100%;border-radius:0}
/* Baustellen- und Umleitungsstrecke klickbar → Popup */
#baustellenMap .leaflet-overlay-pane path{cursor:pointer}
.baustelle-marker-icon{background:transparent!important;border:none!important}
.baustellen-page .baustellen-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border-color);border-radius:var(--radius);overflow:hidden}
.baustellen-page .baustellen-table th{background:var(--bg-secondary);font-weight:600;font-size:.8125rem;text-align:left;padding:.75rem 1rem;color:var(--text-secondary);cursor:pointer;user-select:none;border-bottom:1px solid var(--border-color)}
.baustellen-page .baustellen-table th:hover{color:#005A8C}
.baustellen-page .baustellen-table td{padding:.625rem 1rem;font-size:.875rem;border-bottom:1px solid var(--border-color);vertical-align:middle}
.baustellen-page .baustellen-table tbody tr{cursor:pointer;transition:background .15s}
.baustellen-page .baustellen-table tbody tr:hover{background:rgba(0,90,140,.06)}
.baustellen-page .baustellen-table tbody tr.highlighted{background:rgba(0,90,140,.12)}
.baustellen-page .baustellen-table tbody tr:last-child td{border-bottom:none}
.baustellen-page .sperrung-badge{display:inline-block;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:500;white-space:nowrap}
.baustellen-page .sperrung-badge.halbseitig{background:#ffa94d22;color:#e08900}
.baustellen-page .sperrung-badge.vollsperrung{background:#ff6b6b22;color:#e53935}
.baustellen-page .sperrung-badge.umleitung{background:#2196F322;color:#1976D2}
.baustellen-page .sperrung-badge.keine{background:#51cf6622;color:#2e7d32}
.baustellen-page .sperrung-badge.lkw{background:#9c27b022;color:#6a1b9a}
.baustellen-page .sperrung-badge.verkehrssicherung{background:#ff980022;color:#e65100}
.baustellen-page .strassenklasse-toggle,.baustellen-page .status-toggle{border:1px solid var(--border-color);background:var(--bg-primary);color:var(--text-primary);transition:all .15s;font-family:inherit}
/* Baustellen Karten-Toolbar (Vollbild, In meiner Nähe, Koordinatensuche, Messen) */
.baustellen-page .map-container{position:relative}
.baustellen-page .map-toolbar.baustellen-map-toolbar{display:none;position:absolute;top:8px;right:8px;z-index:1000;flex-wrap:wrap;gap:6px;align-items:center;max-width:calc(100% - 16px)}
.baustellen-page .map-container.map-visible .map-toolbar.baustellen-map-toolbar{display:flex}
.baustellen-page .map-toolbar-btn{background:#005A8C;color:#fff;border:none;padding:.35rem .6rem;border-radius:var(--radius);font-size:.75rem;cursor:pointer;font-family:inherit;white-space:nowrap}
.baustellen-page .map-toolbar-btn:hover{background:#004A73}
.baustellen-page .map-toolbar-input{width:120px;padding:.3rem .5rem;border:1px solid var(--border-color);border-radius:var(--radius);font-size:.75rem;background:var(--bg-primary);color:var(--text-primary)}
.baustellen-page .map-toolbar-result{font-size:.75rem;color:var(--text-primary);background:var(--bg-primary);padding:.25rem .5rem;border-radius:var(--radius);border:1px solid var(--border-color)}
.baustellen-page .map-container.baustellen-map-fullviewport{position:fixed;top:0;left:0;right:0;bottom:0;height:100vh;width:100vw;z-index:9999;margin:0;border-radius:0}
.baustellen-page .map-container.baustellen-map-fullviewport #baustellenMap{height:100%}
@media(max-width:768px){
    .baustellen-page h1.bis-heading{font-size:1.5rem}
    .baustellen-page #baustellenMap{height:300px}
    .baustellen-page .baustellen-filter-bar{flex-direction:column;align-items:stretch}
    .baustellen-page .baustellen-table th,.baustellen-page .baustellen-table td{padding:.5rem .625rem;font-size:.75rem}
}
[data-theme="dark"] .baustellen-page .baustellen-table tbody tr:hover{background:rgba(0,90,140,.15)}
[data-theme="dark"] .baustellen-page .strassenklasse-toggle,[data-theme="dark"] .baustellen-page .status-toggle{background:var(--bg-tertiary);border-color:var(--border-color);color:var(--text-primary)}
[data-theme="dark"] .baustellen-page .strassenklasse-toggle.active,[data-theme="dark"] .baustellen-page .status-toggle.active{background:#005A8C;border-color:#005A8C;color:#fff}

/* ===== Krisenmodus Styles ===== */
/* Sachliches, behördliches Design: Ruhe und Vertrauen ausstrahlen */
body.krisenmodus-active,
html.krisenmodus-active body {
    --bg-primary: #111827;
    --bg-secondary: #1e293b;
    --bg-tertiary: #283548;
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --krisen-accent: #3b82f6;
    --krisen-accent-hover: #60a5fa;
    --krisen-accent-light: rgba(59, 130, 246, 0.12);
    --krisen-accent-border: rgba(59, 130, 246, 0.3);
    --krisen-warn: #f59e0b;
    --krisen-warn-light: rgba(245, 158, 11, 0.12);
    background: #111827;
    color: #f1f5f9;
}

/* Krisenmodus-Banner: Seitenübergreifend unter dem Header */
.krisenmodus-banner {
    background: var(--krisen-accent, #3b82f6);
    color: #ffffff;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
}

.krisenmodus-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.krisenmodus-banner-inner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.krisenmodus-banner-inner strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .krisenmodus-banner {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Hinweis-Banner: Gleiches Design wie Krisenmodus-Banner, auch ohne Krisenmodus */
.hinweis-banner {
    background: var(--krisen-accent, #3b82f6);
    color: #ffffff;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
}

.hinweis-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hinweis-banner-inner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hinweis-banner {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Krisenmodus CTA: ruhig, sachlich */
body.krisenmodus-active .cta-section,
html.krisenmodus-active body .cta-section {
    background: #1e293b !important;
    border: 1px solid var(--border-color);
}

body.krisenmodus-active .card,
html.krisenmodus-active body .card {
    background: #1e293b;
    border: 1px solid #334155;
}

body.krisenmodus-active .btn,
html.krisenmodus-active body .btn {
    background: var(--krisen-accent);
    color: #ffffff;
    border-color: var(--krisen-accent);
    font-weight: 600;
}

body.krisenmodus-active .btn:hover,
html.krisenmodus-active body .btn:hover {
    background: var(--krisen-accent-hover);
    border-color: var(--krisen-accent-hover);
}

/* Krisenmodus Header über Formular */
.krisenmodus-header {
    background: var(--krisen-accent-light);
    border: 1px solid var(--krisen-accent-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.krisenmodus-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--krisen-accent-hover);
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.krisenmodus-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Aktuelle Hinweise im Krisenmodus (index.php) */
.krisenmodus-hinweis-section {
    margin-top: 2.5rem;
}

.krisenmodus-hinweis-box {
    background: var(--krisen-accent-light);
    border: 1px solid var(--krisen-accent-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.krisenmodus-hinweis-box p {
    margin: 0;
}

.krisenmodus-aktuell-section {
    margin-top: 2.5rem;
}

.krisenmodus-aktuell {
    background: var(--krisen-accent-light);
    border: 1px solid var(--krisen-accent-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.krisenmodus-aktuell-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--krisen-accent-hover);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.krisenmodus-exclamation {
    font-size: 1.25rem;
    line-height: 1;
}

.krisenmodus-exclamation-large {
    font-size: 2rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.krisenmodus-aktuell-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.krisenmodus-aktuell-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.06);
    border-radius: var(--radius);
    border-left: 3px solid var(--krisen-accent);
}

.krisenmodus-aktuell-item--official {
    border-left-color: var(--krisen-warn);
    background: var(--krisen-warn-light);
}

.krisenmodus-aktuell-time {
    font-weight: 600;
    color: var(--krisen-accent-hover);
    min-width: 60px;
    font-family: monospace;
}

.krisenmodus-aktuell-text {
    flex: 1;
    color: var(--text-primary);
}

.krisenmodus-badge-official {
    display: inline-block;
    background: var(--krisen-warn);
    color: #1e293b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Erweiterte Alert-Items mit Kurzfassung */
.krisenmodus-aktuell-headline {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.krisenmodus-aktuell-link {
    text-decoration: none;
    color: inherit;
}

.krisenmodus-aktuell-link:hover .krisenmodus-aktuell-headline {
    color: var(--krisen-accent, #3b82f6);
}

.krisenmodus-aktuell-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary, #555);
    line-height: 1.5;
    margin: 0.25rem 0 0 0;
}

.krisenmodus-aktuell-meta {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    display: block;
    margin-top: 0.125rem;
}

.krisenmodus-aktuell-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--krisen-accent, #3b82f6);
    font-weight: 500;
    margin-top: 0.5rem;
    text-decoration: none;
}

.krisenmodus-aktuell-detail-link:hover {
    text-decoration: underline;
}

/* Krisenmodus-Message: sachlicher Hinweis */
.krisenmodus-message {
    background: var(--krisen-accent-light);
    border-left: 4px solid var(--krisen-accent);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
}

.krisenmodus-message p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.krisenmodus-message svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--krisen-accent);
}

/* Krisenmodus Formular */
.krisenmodus-form .form-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.krisenmodus-form .form-title svg {
    display: none;
}

/* === Krisenmodus CTA: Nur Info-Symbol + Wappen === */

/* Info-Symbol: zentriert */
.cta-icon--krisen-info {
    background: var(--krisen-accent, #3b82f6);
    border: 2px solid var(--krisen-accent, #3b82f6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
}

.cta-icon--krisen-info svg {
    width: 26px;
    height: 26px;
}

/* Wappen: rechts versetzt */
.cta-icon--krisen-wappen {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    top: 50%;
    right: 15%;
    left: auto;
    transform: translateY(-50%);
    width: 74px;
    height: 74px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-icon--krisen-wappen img {
    width: 64%;
    height: 64%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Krisenmodus: Cards-Stack + restliche Icons ausblenden */
.krisenmodus-cta .cta-cards-stack {
    display: none;
}

/* Krisenmodus: Visual-Area kompakter ohne Cards */
.krisenmodus-cta .cta-visual-area {
    height: 140px;
}

@media (max-width: 768px) {
    .cta-icon--krisen-wappen { width: 56px; height: 56px; padding: 0.375rem; right: 10%; }
    .krisenmodus-cta .cta-visual-area { height: 100px; }
}

/* Wenn Krisenmodus deaktiviert: Kartendesign explizit wiederherstellen */
body:not(.krisenmodus-active) .map-container,
html:not(.krisenmodus-active) body .map-container {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--bg-primary);
}
body:not(.krisenmodus-active) .leaflet-container,
html:not(.krisenmodus-active) body .leaflet-container {
    background: #FBF9F7;
}
body:not(.krisenmodus-active) .leaflet-control-zoom a,
html:not(.krisenmodus-active) body .leaflet-control-zoom a {
    background: #FBF9F7;
    border: 1px solid #E0E0E0;
    color: #2C2C2C;
}
body:not(.krisenmodus-active) .leaflet-control-attribution,
html:not(.krisenmodus-active) body .leaflet-control-attribution {
    background: rgba(251, 249, 247, 0.9);
    color: #666;
}
body:not(.krisenmodus-active) .leaflet-control-heatmap,
html:not(.krisenmodus-active) body .leaflet-control-heatmap {
    background: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* Krisenmodus: Heatmap für Gefahrenbereiche */
body.krisenmodus-active .leaflet-heatmap-layer,
html.krisenmodus-active body .leaflet-heatmap-layer {
    z-index: 450;
}

body.krisenmodus-active .leaflet-heatmap-layer canvas,
html.krisenmodus-active body .leaflet-heatmap-layer canvas {
    opacity: 0.7 !important;
}

.heatmap-label {
    color: var(--krisen-accent, #3b82f6);
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 4px;
    text-align: center;
}

@media (max-width: 768px) {
    /* Seiten-Inhalte: Grids auf mobile auf eine Spalte umstellen */
    main.page-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Padding für Seiten-Inhalte auf mobile reduzieren */
    main.page-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Sicherstellen, dass Text nicht überläuft */
    main.page-content div[style*="grid-template-columns"] > * {
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .latest-reports-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    /* Krisenmodus mobile Anpassungen */
    .krisenmodus-header {
        padding: 1.5rem 1rem;
    }
    
    .krisenmodus-title {
        font-size: 1.5rem;
    }
    
    .krisenmodus-exclamation-large {
        font-size: 1.5rem;
    }
    
    .krisenmodus-aktuell {
        padding: 1rem;
    }
}