/* ==========================================
   1. BASIS & TEXT-LINKS
   ========================================== */
:root { --primary: #0f2942; --accent: #d97706; --bg: #ffffff; }
body { font-family: system-ui, -apple-system, sans-serif; color: #1e293b; line-height: 1.6; margin: 0; padding: 0; background-color: var(--bg); }
.direct-wrapper, .content-body-a, .city-article-a, .list-main-a, .single-main-a, .guide-article-a { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }
h1, h2, h3 { color: var(--primary); }
html, body { max-width: 100%; overflow-x: hidden; }

/* Automatische Text-Links im Content-Bereich */
.content-body-a a, .city-article-a a:not([class]), .text-link-a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; transition: color 0.2s ease; }
.content-body-a a:hover, .city-article-a a:not([class]):hover, .text-link-a:hover { color: var(--primary); }

/* ==========================================
   2. KOMPONENTEN & TYPOGRAFIE
   ========================================== */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: var(--primary); color: #ffffff; font-weight: 600; }
details.faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 1rem; margin-bottom: 0.75rem; }
details.faq-item summary { cursor: pointer; font-weight: 600; color: var(--primary); }
details.faq-item p { margin-top: 0.5rem; color: #334155; }

/* ==========================================
   3. HEADER & FOOTER
   ========================================== */
.head-a { background: #ffffff; border-bottom: 2px solid var(--primary); padding: 0.75rem 0; }
.head-cont-a { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.head-row-a { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.head-logo-a { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.head-accent-a { color: var(--accent); }
.head-sub-a { font-size: 0.75rem; color: #94a3b8; font-weight: normal; }
.head-tag-a { display: block; font-size: 0.7rem; color: #64748b; font-weight: 600; text-transform: uppercase; }
.head-badge-a { font-size: 0.75rem; background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-weight: 600; color: #334155; }
.head-nav-a { display: flex; gap: 0.5rem; width: 100%; }
.head-select-a { flex: 1 1 0; min-width: 0; width: 50%; background: #f8fafc; border: 1px solid #cbd5e1; padding: 8px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: var(--primary); cursor: pointer; text-overflow: ellipsis; }

.foot-a { background: var(--primary); color: #94a3b8; padding: 3rem 1rem; margin-top: 4rem; font-size: 0.85rem; border-top: 4px solid var(--accent); }
.foot-cont-a { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot-main-a { flex: 1 1 300px; }
.foot-title-a { color: #ffffff; font-size: 1rem; display: block; }
.foot-desc-a { margin-top: 0.5rem; line-height: 1.5; }
.foot-nav-a { margin-top: 1rem; display: flex; gap: 12px; flex-wrap: wrap; }
.foot-link-a { color: #cbd5e1; text-decoration: none; }
.foot-pub-a { margin-top: 1.25rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #94a3b8; }
.foot-pub-a strong { color: #cbd5e1; font-weight: 600; }
.foot-side-a { flex: 0 1 200px; }
.foot-side-title-a { color: #ffffff; display: block; }
.foot-side-text-a { margin-top: 0.5rem; line-height: 1.4; }

/* ==========================================
   4. STARTSEITE & LISTEN
   ========================================== */
.hub-overview-official { margin-top: 4rem; padding: 2.5rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; }
.hub-title-official { color: #0f2942; margin-top: 0; font-size: 1.4rem; font-weight: 700; }
.hub-subtitle-official { font-size: 0.95rem; color: #475569; margin-bottom: 2rem; }
.hub-grid-official { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.hub-card-official { background: #ffffff; padding: 1.5rem; border: 1px solid #cbd5e1; border-radius: 4px; }
.hub-card-title-official { color: var(--accent); margin: 0 0 1rem 0; font-size: 1.1rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem; }
.city-nav-official { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.city-link-official { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; text-decoration: none; color: #0f2942; font-weight: 600; }
.state-nav-official { padding-top: 1.25rem; border-top: 1px dashed #e2e8f0; }
.state-label-official { font-size: 0.8rem; font-weight: 700; color: #0f2942; text-transform: uppercase; display: block; margin-bottom: 0.75rem; }
.state-links-wrapper { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.state-link-official { font-size: 0.75rem; background: #f8fafc; color: #0f2942; border: 1px solid #cbd5e1; padding: 3px 8px; border-radius: 3px; text-decoration: none; font-weight: 600; }

.az-section-a { margin-top: 2rem; padding: 2rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.az-title-a { font-size: 1.25rem; color: var(--primary); margin: 0; }
.az-nav-a { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1.2rem 0 2rem 0; }
.az-link-a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.az-link-a.active { background: #ffffff; border: 1px solid #cbd5e1; color: #1e293b; }
.az-link-a.disabled { border: 1px solid #e2e8f0; color: #1e293b; opacity: 0.25; }
.az-group-a { margin-bottom: 1.5rem; }
.az-letter-title-a { font-size: 1.1rem; color: var(--accent); padding-bottom: 0.3rem; border-bottom: 1px solid #e2e8f0; }
.az-city-list-a { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.az-city-link-a { display: block; background: #ffffff; border: 1px solid #cbd5e1; padding: 10px 14px; border-radius: 6px; font-size: 0.9rem; text-decoration: none; color: #1e293b; font-weight: 600; }

/* ==========================================
   5. FORMULARE & QUIZ
   ========================================== */
.lead-box-a { max-width: 650px; margin: 1.5rem auto 0 auto; background: rgba(0,0,0,0.05); padding: 15px; border-radius: 8px; }
.input-row-a { display: flex; gap: 8px; margin-bottom: 8px; }
.form-select-a, .form-input-a { flex: 1; padding: 12px 10px; border-radius: 4px; font-size: 0.95rem; border: 1px solid #cbd5e1; background: #ffffff; color: #1e293b; min-width: 0; }
.btn-next-a, .btn-submit-a { padding: 12px 20px; font-weight: 700; border-radius: 4px; border: none; cursor: pointer; color: #ffffff; background: var(--accent); white-space: nowrap; }
.btn-submit-a { background: #16a34a; }
.privacy-note-a { font-size: 0.75rem; color: #64748b; text-align: center; margin-top: 8px; }

.quiz-container-a { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 700px; margin: 4rem auto; text-align: center; }
.quiz-head-a { margin-bottom: 2rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 1.5rem; }
.quiz-title-a { font-size: 1.6rem; margin: 0 0 0.5rem 0; color: var(--primary); }
.quiz-sub-a { color: #64748b; font-size: 0.95rem; margin: 0; }
.prog-wrap-a { margin-top: 1.5rem; text-align: right; }
.prog-val-a { font-size: 0.8rem; color: #94a3b8; font-weight: 600; }
.prog-bg-a { background: #e2e8f0; height: 6px; border-radius: 99px; overflow: hidden; margin-top: 0.3rem; }
.prog-bar-a { background: var(--accent); height: 100%; transition: width 0.5s ease; }
.step-a { display: none; animation: slideUp 0.4s ease; }
.step-a.active-a { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.q-label-a { display: block; font-size: 1.3rem; font-weight: 700; color: #1e293b; margin-bottom: 0.5rem; }
.q-hint-a { color: #64748b; font-size: 0.9rem; margin-bottom: 1.5rem; }
.grid-a { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-a { flex: 1; padding: 1.2rem; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 8px; cursor: pointer; color: #334155; }
.btn-a:hover { border-color: var(--accent); }
.input-a { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; margin-bottom: 1rem; box-sizing: border-box; }
.flex-a { display: flex; gap: 10px; margin-bottom: 1rem; }
.flex-a .input-a { margin-bottom: 0; }
.row-a { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; border-top: 1px solid #f1f5f9; padding-top: 1.5rem; }
.submit-a { background: var(--accent); color: white; border: none; padding: 14px 24px; border-radius: 6px; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.back-a { background: none; border: none; color: #64748b; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ==========================================
   6. FEATURES (Breadcrumb, Map, Author, Roadmap)
   ========================================== */
.bread-nav-a { padding: 0.75rem 1rem; font-size: 0.85rem; }
.bread-list-a { list-style: none; padding: 0; margin: 0; display: flex; }
.bread-link-a { color: #0284c7; text-decoration: none; }
.bread-sep-a { margin: 0 0.4rem; opacity: 0.5; }
.bread-current-a { font-weight: 600; color: #334155; }

.map-section-a { margin-bottom: 2rem; }
.map-title-a { font-size: 1.25rem; color: var(--primary); margin-bottom: 1rem; }
.gmap-iframe-a { width: 100%; height: 350px; border: 0; border-radius: 8px; background: #e2e8f0; }

.author-box-a { display: flex; align-items: center; gap: 1.5rem; background: #ffffff; border: 1px solid #e2e8f0; border-left: 4px solid #16a34a; padding: 1.5rem; border-radius: 8px; margin: 3rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.author-badge-a { font-size: 2.5rem; }
.author-name-a { margin: 0 0 0.25rem 0; font-size: 1.1rem; color: var(--primary); }
.author-desc-a { margin: 0; font-size: 0.9rem; color: #475569; }

.road-sec-a { background: #ffffff; border: 1px solid #cbd5e1; border-left: 4px solid var(--accent); padding: 1.5rem; margin: 2.5rem 0; border-radius: 4px; }
.road-title-a { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.15rem; color: var(--primary); }
.road-list-a { list-style: none; padding: 0; margin: 0; position: relative; }
.road-list-a::before { content: ''; position: absolute; top: 15px; bottom: 15px; left: 15px; width: 2px; background: #e2e8f0; }
.road-step-a { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; }
.road-node-a { width: 32px; height: 32px; background: var(--primary); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; z-index: 1; }
.road-head-a { display: block; color: #1e293b; font-size: 0.95rem; }
.road-txt-a { margin: 0.2rem 0 0 0; font-size: 0.85rem; color: #64748b; line-height: 1.4; }

/* City Layout Spezifisch */
.hero-section-a { background: var(--primary); padding: 2.5rem 1rem; text-align: center; margin-bottom: 2rem; }
.hero-title-a { color: #ffffff; font-size: 2.2rem; margin: 0 0 1rem 0; }
.quiz-jump-a { color: #93c5fd; text-decoration: underline; display: block; margin-top: 1rem; }
.local-title-a { font-size: 1.05rem; margin-top: 0; color: var(--primary); }
.district-box-a, .silo-box-a, .neighbor-box-a { padding: 1.5rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 1.5rem; }
.district-list-a, .silo-list-a, .neighbor-list-a { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.district-item-a, .silo-link-a, .neighbor-link-a { background: #ffffff; border: 1px solid #cbd5e1; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; color: var(--primary); font-weight: 600; text-decoration: none; }

@media (max-width: 768px) {
    .input-row-a, .flex-a, .grid-a { flex-direction: column; }
    .hero-title-a { font-size: 1.5rem; }
}

/* ==========================================
   HARDFACTS WIDGET (DOMAIN A)
   ========================================== */
.facts-section-a { margin: 2.5rem 0; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.5rem; border-left: 4px solid var(--primary); }
.facts-title-a { margin-top: 0; font-size: 1.15rem; color: var(--primary); margin-bottom: 1rem; }
.facts-list-a { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.fact-item-a { display: flex; flex-direction: column; background: #ffffff; padding: 1rem; border: 1px solid #cbd5e1; border-radius: 4px; flex: 1 1 200px; }
.fact-label-a { font-size: 0.75rem; color: #64748b; text-transform: uppercase; font-weight: 600; margin-bottom: 0.3rem; }
.fact-val-a { font-size: 0.95rem; color: #0f2942; }

.foot-promise-a { margin: 1rem 0; padding: 1rem; background: rgba(255, 255, 255, 0.1); border-left: 3px solid var(--accent); border-radius: 4px; }
.foot-promise-title-a { color: #ffffff; display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.foot-promise-text-a { margin: 0; font-size: 0.85rem; color: #cbd5e1; line-height: 1.5; }

/* ==========================================
   ZUGÄNGLICHKEIT: KONTRAST-FIX (WCAG)
   ========================================== */
.head-sub-a, .head-tag-a { color: #475569 !important; } /* Dunkleres Grau für Sublines */
.hub-card-title-official { color: #b45309 !important; } /* Dunkleres Orange für sicheren Kontrast */
.content-body a, .text-link-official, .content-body-a a { color: #0f2942 !important; text-decoration: underline; font-weight: 700; } /* Links in dunklem Blau */
.content-body a:hover, .text-link-official:hover, .content-body-a a:hover { opacity: 0.8; }

/* ==========================================
   WCAG-KONTRASTFIX (STADT-SEITEN)
   ========================================== */
.bread-link-a { color: #0f2942 !important; font-weight: 700; } /* Dunkles Blau statt Hellblau */
.btn-next-a { background-color: #b45309 !important; color: #ffffff !important; } /* Dunkles Orange für weißen Text */
.prog-val-a, #prog-txt-a { color: #475569 !important; font-weight: 700; } /* Dunkleres Grau für Fortschritt */
.content-section-a a { color: #0f2942 !important; text-decoration: underline; font-weight: 700; } /* Text-Links dunkel */

/* ==========================================
   BADGE / KICKER (STÄDTE- & BUNDESLAND-SEITEN)
   ========================================== */
.list-badge-a {
    display: inline-block;
    background-color: rgba(217, 119, 6, 0.1); /* Leichtes Accent-Orange */
    color: #b45309; /* Dunkles Orange für garantierten WCAG-Kontrast */
    border: 1px solid rgba(217, 119, 6, 0.25);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px; /* Eckiger, technischer Look */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}