:root {
    --bg: #f8f9fa;
    --header: #ffffff;
    --brand: #0d2c5a;
    --brand-2: #e8491d;
    --brand-dark: #0a2f63;
    --text: #343a40;
    --muted: #6c757d;
    --card: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --gap: 20px;
    --maxw: 1100px;
    --safe: clamp(20px, 6vw, 26px);
    --star: #ffb400;
    --hero-img-max: 300px;
    --footer-pill: rgba(255,255,255,.1);
    --footer-pill-hover: rgba(255,255,255,.18);
}

html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { position: relative; } /* Sicherstellen, dass fixed Header funktioniert */
* { box-sizing: border-box; min-width: 0; }
img, video, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

body {
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    padding-top: 70px; /* Platz für Fixed Header */
    padding-bottom: 80px; /* Platz für Sticky Bar */
}

.wrap, .container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--safe); }
.guard { width: 100%; overflow-x: hidden; }

h1, h2, h3, h4 { color: var(--brand); margin-top: 1.5em; margin-bottom: 0.8em; line-height: 1.3; font-weight: 700; }
h1 { margin-top: 0.5em; font-size: clamp(1.8rem, 5vw, 3rem); }

/* --- HEADER (Sticky auf Mobile UND Desktop) --- */
header, .site-header { 
    background: #fff; 
    position: fixed; /* Fixed für zuverlässiges Sticky-Verhalten */
    top: 0; 
    left: 0;
    right: 0;
    z-index: 1000; /* Höher als andere Elemente */
    border-bottom: 1px solid #dee2e6; 
    height: 70px; 
    display: flex; 
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Leichter Schatten für bessere Sichtbarkeit */
}

/* Mobile: Header bleibt immer sichtbar */
@media (max-width: 768px) {
    header, .site-header {
        height: 60px; /* Etwas kleiner auf Mobile */
    }
    body {
        padding-top: 60px; /* Angepasst für Mobile */
    }
    .logo img {
        height: 32px; /* Logo kleiner auf Mobile */
    }
    .header-cta {
        padding: 6px 12px;
        font-size: 14px;
    }
}
.head, .header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand, .logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.brand img.logo, .logo img { height: 40px; width: auto; }
.cta, .header-cta { display: flex; align-items: center; gap: 10px; background: var(--brand-2); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform 0.2s; }
.header-cta:hover { transform: translateY(-2px); background: #d63d12; }

/* Buttons */
.btn { appearance: none; border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer; font-weight: 700; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s; display: inline-block; text-align: center; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary, .btn-primary, button.primary { background: var(--brand-2); color: #fff; }
.btn.ghost, .btn-ghost { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }

.badge { display: inline-block; border-radius: 8px; padding: 6px 10px; background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); font-size: 0.9rem; backdrop-filter: blur(4px); }

/* --- HERO --- */
.hero-band, .hero-section { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 60px 0; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; margin-bottom: 40px; }
.hero .box, .hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .box, .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }

.hero h1, .hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero p, .hero-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.hero .actions, .hero-content .actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image-wrapper img, .hero .art img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* --- SECTIONS --- */
section { padding: 40px 0; }
.card, .list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border: 1px solid #e9ecef; margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.list ol, .list ul { margin: 0; padding-left: 20px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 10px; font-style: italic; }

.bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { background: #eef2f6; color: var(--brand); padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }

/* --- GALLERY --- */
.gallery { padding: 20px 0; margin: 1.5rem 0; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slot { aspect-ratio: 16/9; background-color: #eef3fa; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); min-height: 200px; overflow: hidden; }
.slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #e9ecef; }
@media (max-width: 600px) {
    .slots { grid-template-columns: 1fr; } /* Mobile: Bilder untereinander */
}

/* --- BLUE BAND --- */
.blue-band { background: var(--brand); color: #fff; padding: 40px 0; border-radius: var(--radius); margin: 40px 0; }
.blue-band .inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--safe); display: flex; flex-direction: column; gap: 20px; text-align: center; }
@media (min-width: 768px) { 
    .blue-band .inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; } 
}
.blue-band h2 { color: #fff; margin: 0 0 10px 0; font-size: 1.5rem; }
.blue-band p { margin: 0; opacity: 0.9; }
.blue-band .actions { display: flex; gap: 10px; justify-content: center; }

/* --- CONTACT FORM --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }

.contact-aside { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-aside h3 { color: #fff; margin-top: 0; }
.contact-aside ul { padding-left: 20px; }
.contact-aside li { margin-bottom: 10px; }

.contact-form { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #eee; }
form .row { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
form .row4 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
@media (min-width: 600px) { 
    form .row { grid-template-columns: 1fr 1fr; } 
    form .row4 { grid-template-columns: 2fr 1fr 1fr 2fr; } 
}

label { font-weight: 600; margin-bottom: 6px; display: block; color: var(--brand); font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 12px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); outline: none; }

/* --- FOOTER --- */
footer, .site-footer { background: var(--brand-dark); color: #d6e6ff; margin-top: 60px; padding: 60px 0 30px; }
.footer-cta { text-align: center; margin-bottom: 40px; }
.footer-cta h3 { color: #fff; margin-top: 0; }
.footer-cta .call, .footer-cta .btn { margin-top: 15px; }

.footer-nav-states h4 { color: #fff; text-align: center; }
.state-grid, .states { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.state-pill, .state-card { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    padding: 8px 14px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    text-decoration: none; 
    transition: background 0.2s; 
    border: 1px solid rgba(255,255,255,0.2);
}
.state-pill:hover { background: rgba(255,255,255,0.25); color: #fff; }


/* FIX: Blau auf Blau Problem */
.hero-section h1, .hero-section p { color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }



/* FIX: States Grid Global */
.states-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin-top: 20px;
}

/* FIX: State Cards (Weiße Boxen) */
.state-card {
    display: block;
    background: #fff !important;
    color: var(--brand) !important;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.state-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--brand-2) !important;
    border-color: var(--brand-2);
}

/* FIX: Footer Pills (Transparent) */
.state-pill {
    display: inline-block;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    margin: 4px;
}
.state-pill:hover {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 0.9rem; }
.footer-links a { color: #d6e6ff; margin-left: 20px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* --- FAQ --- */
.faq-grid { margin-top: 30px; }
details { background: #fff; margin-bottom: 15px; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }
summary { padding: 15px 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
summary::after { content: '+'; color: var(--brand-2); font-weight: 300; font-size: 1.5rem; }
details[open] summary::after { content: '-'; }
details > div { padding: 0 20px 20px; color: var(--text); border-top: 1px solid #f8f9fa; }

/* --- COOKIE BANNER (Full Width Bottom) --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: none; /* START HIDDEN! JS will show it if needed. */
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    border-top: 1px solid #eee;
}
@media (min-width: 768px) {
    #cookie-banner { 
        flex-direction: row; 
        align-items: center; 
        justify-content: center; /* Inhalt zentriert */
        gap: 40px;
    }
}

.cookie-content p { margin: 0; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-settings { background: transparent; border: 1px solid #ccc; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.btn-cookie-accept { background: var(--brand-2); color: #fff; border: 0; padding: 8px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* MODAL */
#cookie-settings-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.modal-content { background: #fff; padding: 30px; border-radius: 12px; max-width: 500px; width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.cookie-option { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }

/* --- RATGEBER --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.article-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    border-color: var(--brand-2);
}
.article-card h3 {
    margin: 0 0 8px 0;
    color: var(--brand);
}
.article-card p {
    margin: 0;
    color: var(--muted);
}

/* Sticky Back Button (Ratgeber) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.mobile-call-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.mobile-call-btn:hover {
    opacity: 0.9;
}
body {
    padding-bottom: 80px; /* Platz für Sticky Bar (wenn vorhanden) */
}

/* --- SEARCH FIELD (Übersichtsseiten) --- */
/* Minimal, dezentes Suchfeld - Ergebnisse stehen im Vordergrund */
.search-container {
    max-width: 100%;
    margin-bottom: 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(13, 44, 90, 0.06);
    background: #fff;
}

.search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.search-clear {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 50%;
}

.search-clear:hover {
    color: var(--brand);
    background: rgba(13, 44, 90, 0.05);
}

.search-results-count {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    text-align: left;
    font-weight: 400;
}

/* --- PLZ SEARCH (City Pages) --- */
.plz-search-container {
    max-width: 100%;
    margin: 30px 0;
}

.plz-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.plz-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    font-weight: 400;
    text-align: center;
    letter-spacing: 2px;
}

.plz-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(13, 44, 90, 0.06);
    background: #fff;
}

.plz-search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
    letter-spacing: 0;
}

.plz-search-btn {
    position: absolute;
    right: 8px;
    background: var(--brand);
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 4px;
}

.plz-search-btn:hover {
    background: var(--brand-2);
}

.plz-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* Hidden State für gefilterte Items */
.states-grid a.hidden {
    display: none !important;
}

/* No Results Message */
.no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    grid-column: 1 / -1; /* Spannt über alle Spalten */
}

.no-results strong {
    color: var(--text);
}

/* --- SCROLL-TO-TOP BUTTON --- */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-2);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    transform: translateY(10px);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: #d63d12;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

#scroll-to-top:active {
    transform: translateY(-1px);
}

#scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

