/* ==========================================
   1. BASIS & TEXT-LINKS
   ========================================== */
:root { --primary: #0f2942; --accent: #d97706; --bg: #0f172a; }
body { font-family: Helvetica, Arial, sans-serif; color: #f8fafc; line-height: 1.6; margin: 0; padding: 0; background-color: var(--bg); }
.calc-data-body, .city-wrapper-c, .list-layout-c, .single-layout-c, .guide-wrapper-c { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }
h1, h2, h3 { color: #f8fafc; }
html, body { max-width: 100%; overflow-x: hidden; }

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

/* ==========================================
   2. KOMPONENTEN & TYPOGRAFIE
   ========================================== */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #1e293b; border: 1px solid #334155; border-radius: 6px; overflow: hidden; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #334155; }
th { background: #0f172a; color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
details.faq-item { background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 1rem; margin-bottom: 0.75rem; }
details.faq-item summary { cursor: pointer; font-weight: 700; color: var(--accent); }
details.faq-item p { margin-top: 0.5rem; color: #cbd5e1; }

/* ==========================================
   3. HEADER & FOOTER
   ========================================== */
.hdr-wrap-c { background: var(--bg); padding: 0.85rem 0; border-bottom: 3px solid var(--accent); }
.hdr-inner-c { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.hdr-top-c { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.hdr-logo-c { font-size: 1.35rem; font-weight: 800; color: #ffffff; text-decoration: none; }
.hdr-hl-c { color: var(--accent); }
.hdr-ext-c { font-size: 0.75rem; color: #94a3b8; font-weight: normal; }
.hdr-badge-c { background: rgba(255, 255, 255, 0.1); color: var(--accent); border: 1px solid var(--accent); font-size: 0.7rem; padding: 3px 10px; border-radius: 12px; font-weight: bold; text-transform: uppercase; }
.hdr-nav-c { display: flex; gap: 0.5rem; width: 100%; }
.hdr-sel-c { flex: 1 1 0; min-width: 0; width: 50%; background: #1e293b; border: 1px solid #475569; padding: 8px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: #f8fafc; cursor: pointer; text-overflow: ellipsis; }

.ftr-wrap-c { background: #0f172a; color: #94a3b8; padding: 3rem 1rem; margin-top: 4rem; font-size: 0.85rem; border-top: 2px solid var(--accent); }
.ftr-inner-c { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.ftr-brand-c { flex: 1 1 320px; }
.ftr-title-c { color: #f8fafc; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ftr-desc-c { margin-top: 0.5rem; line-height: 1.5; color: #94a3b8; }
.ftr-links-c { list-style: none; padding: 0; margin: 1rem 0 0 0; display: flex; gap: 12px; }
.ftr-links-c a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ftr-pub-c { margin-top: 1.25rem; padding-top: 0.85rem; border-top: 1px solid #334155; font-size: 0.8rem; color: #64748b; }
.ftr-pub-c span { color: #cbd5e1; font-weight: 600; }
.ftr-meta-c { flex: 0 1 220px; background: #1e293b; padding: 1rem; border-radius: 6px; border: 1px solid #334155; }
.ftr-meta-title-c { color: #f8fafc; display: block; font-size: 0.85rem; text-transform: uppercase; }
.ftr-meta-desc-c { margin-top: 0.4rem; font-size: 0.8rem; color: #cbd5e1; line-height: 1.4; }

/* ==========================================
   4. STARTSEITE & LISTEN
   ========================================== */
.hub-matrix-calc { margin-top: 4rem; background: #0f172a; border: 1px solid #334155; border-radius: 8px; overflow: hidden; }
.matrix-header { background: #1e293b; padding: 1.5rem 2rem; border-bottom: 1px solid #334155; }
.matrix-title { color: #f8fafc; margin: 0 0 0.25rem 0; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.matrix-subtitle { font-size: 0.85rem; color: #94a3b8; }
.matrix-grid-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: #334155; }
.matrix-block-calc { background: #0f172a; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.block-title { color: var(--accent); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.city-nodes-calc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.node-link { background: #1e293b; border: 1px solid #475569; padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; text-decoration: none; color: #f8fafc; font-weight: 600; }
.state-nodes-calc { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.node-label { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-right: 0.5rem; }
.node-link-state { font-size: 0.75rem; background: #1e293b; color: #fdba74; border: 1px solid #475569; padding: 3px 8px; border-radius: 4px; text-decoration: none; font-weight: 600; }

.az-widget-c { margin-top: 2rem; padding: 2rem; background: #1e293b; border-radius: 8px; border: 1px solid #334155; }
.az-title-c { font-size: 1.25rem; color: #f8fafc; margin-bottom: 1.2rem; }
.az-letters-c { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 2rem; }
.az-char-c { 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-char-c.active { background: #0f172a; border: 1px solid #475569; color: #f8fafc; }
.az-char-c.disabled { border: 1px solid #334155; color: #cbd5e1; opacity: 0.25; }
.az-dl-c { margin-bottom: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.az-dt-c { grid-column: 1 / -1; font-size: 1.1rem; color: var(--accent); border-bottom: 1px solid #334155; padding-bottom: 0.3rem; margin-bottom: 0.5rem; }
.az-dd-c { margin: 0; }
.az-link-c { background: #0f172a; border: 1px solid #475569; padding: 10px 14px; border-radius: 6px; font-size: 0.9rem; text-decoration: none; color: #cbd5e1; display: block; font-weight: 600; }

/* ==========================================
   5. FORMULARE & QUIZ
   ========================================== */
.geg-container-c { max-width: 650px; margin: 1.5rem auto 0 auto; background: rgba(15, 23, 42, 0.6); padding: 15px; border-radius: 8px; }
.control-row-c { display: flex; gap: 8px; margin-bottom: 8px; }
.geg-dropdown-c, .geg-field-c { flex: 1; padding: 12px 10px; border-radius: 4px; font-size: 0.95rem; border: 1px solid #475569; background: #1e293b; color: #f8fafc; }
.geg-action-c, .geg-submit-c { padding: 12px 20px; font-weight: 700; border-radius: 4px; border: none; cursor: pointer; color: #ffffff; background: var(--accent); }
.geg-submit-c { background: #16a34a; }
.legal-text-c { font-size: 0.75rem; color: #94a3b8; text-align: center; margin-top: 8px; }

.config-widget-c { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.4); max-width: 700px; margin: 4rem auto; text-align: center; }
.config-top-c { margin-bottom: 2rem; border-bottom: 1px solid #334155; padding-bottom: 1.5rem; }
.config-main-c { font-size: 1.6rem; margin-bottom: 0.5rem; color: #f8fafc; font-weight: bold; }
.config-sub-c { color: #94a3b8; font-size: 0.95rem; }
.status-c { margin-top: 1.5rem; text-align: right; font-size: 0.8rem; color: #94a3b8; font-weight: 600; }
.stat-bg-c { background: #334155; height: 6px; border-radius: 99px; overflow: hidden; margin-top: 0.3rem; }
.stat-bar-c { background: var(--accent); height: 100%; transition: width 0.5s ease; }
.part-c { display: none; border: none; padding: 0; margin: 0; animation: slideUp 0.4s ease; }
.part-c.active-part-c { display: block; }
.part-q-c { font-size: 1.3rem; font-weight: 700; color: #f8fafc; margin-bottom: 0.5rem; }
.part-h-c { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.5rem; }
.choice-wrap-c { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.choice-c { flex: 1; padding: 1.2rem; background: #0f172a; border: 2px solid #475569; border-radius: 8px; cursor: pointer; color: #cbd5e1; }
.inp-c { width: 100%; padding: 14px; border: 1px solid #475569; border-radius: 6px; font-size: 1rem; margin-bottom: 1rem; box-sizing: border-box; background: #0f172a; color: #f8fafc; }
.split-c { display: flex; gap: 10px; margin-bottom: 1rem; }
.split-c .inp-c { margin-bottom: 0; }
.btns-c { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; border-top: 1px solid #334155; padding-top: 1.5rem; }
.fwd-c { background: var(--accent); color: white; border: none; padding: 14px 24px; border-radius: 6px; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.undo-c { background: none; border: none; color: #94a3b8; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ==========================================
   6. FEATURES (Breadcrumb, Map, Author, Dash)
   ========================================== */
.nav-track-c { padding: 0.75rem 1rem; font-size: 0.85rem; }
.track-link-c { color: var(--accent); text-decoration: none; }
.track-sep-c { margin: 0 0.4rem; color: #475569; }
.track-active-c { font-weight: 600; color: #cbd5e1; }

.geo-map-c { margin-bottom: 2rem; }
.geo-header-c { font-size: 1.25rem; color: #f8fafc; margin-bottom: 1rem; font-weight: bold; }
.geo-iframe-c { width: 100%; height: 350px; border: 0; border-radius: 8px; background: #0f172a; filter: grayscale(80%) invert(90%) contrast(1.2); }

.expert-widget-c { display: flex; align-items: center; gap: 1.5rem; background: #1e293b; border: 1px solid #334155; border-left: 4px solid var(--accent); padding: 1.5rem; border-radius: 8px; margin: 3rem 0; }
.expert-avatar-c { font-size: 2.5rem; }
.expert-title-c { font-size: 1.1rem; color: #f8fafc; font-weight: bold; margin-bottom: 0.25rem; }
.expert-note-c { font-size: 0.9rem; color: #94a3b8; }

.dash-card-c { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 1.5rem; margin: 2.5rem 0; color: #f8fafc; }
.dash-head-c { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; }
.dash-dot-c { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.dash-title-c { margin: 0; font-size: 1rem; color: #f8fafc; font-weight: 600; }
.bar-wrap-c { display: flex; height: 28px; background: #0f172a; border-radius: 6px; overflow: hidden; margin-bottom: 1.2rem; border: 1px solid #475569; font-size: 0.75rem; font-weight: 700; }
.bar-sub-c, .bar-own-c { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; transition: width 0.5s ease; }
.bar-sub-c { background: #16a34a; color: #ffffff; }
.bar-own-c { background: #334155; color: #cbd5e1; }
.metrics-grid-c { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.metric-item-c { background: #0f172a; padding: 0.8rem 1rem; border-radius: 4px; border: 1px solid #334155; }
.metric-lbl-c { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.2rem; }
.metric-val-c { font-size: 1.1rem; font-weight: 700; color: #f8fafc; }
.val-green-c { color: #4ade80; }

/* City Layout Spezifisch */
.hero-c { background: #0f172a; border-bottom: 1px solid #334155; padding: 2.5rem 1rem; text-align: center; margin-bottom: 2rem; }
.title-c { color: #ffffff; font-size: 2.2rem; margin-bottom: 1rem; }
.quiz-jump-c { color: var(--accent); text-decoration: underline; font-size: 0.95rem; font-weight: 500; }
.geo-matrix-c { padding: 1.5rem; background: #1e293b; border-radius: 8px; border: 1px solid #334155; margin-bottom: 1.5rem; margin-top: 2rem; }
.geo-dl-c { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; align-items: center; }
.geo-dt-c { width: 100%; font-size: 1.05rem; color: #f8fafc; margin-bottom: 0.4rem; font-weight: bold; }
.geo-dd-c, .geo-link-c { background: #0f172a; border: 1px solid #475569; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; color: #f8fafc; font-weight: 600; text-decoration: none; margin: 0; }

@media (max-width: 768px) {
    .control-row-c, .split-c, .choice-wrap-c, .metrics-grid-c { flex-direction: column; }
    .title-c { font-size: 1.5rem; }
}

/* ==========================================
   HARDFACTS WIDGET (DOMAIN C)
   ========================================== */
.data-box-c { margin: 2rem 0; padding: 1.5rem; background: #1e293b; border: 1px solid #334155; border-radius: 6px; }
.data-title-c { font-size: 1.1rem; color: #f8fafc; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; font-weight: bold; }
.data-list-c { display: flex; flex-wrap: wrap; gap: 1px; background: #475569; border: 1px solid #475569; border-radius: 4px; overflow: hidden; margin: 0; padding: 0; }
.data-row-c { background: #0f172a; padding: 1rem; flex: 1 1 220px; display: flex; flex-direction: column; justify-content: flex-start; }
.data-dt-c { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.3rem; }
.data-dd-c { margin: 0; font-size: 0.95rem; color: #fdba74; font-weight: bold; }

.ftr-promise-c { margin: 1rem 0; padding: 1rem; background: #1e293b; border-left: 3px solid var(--accent); border-radius: 4px; }
.ftr-promise-title-c { color: #f8fafc; display: block; margin-bottom: 0.25rem; font-size: 0.9rem; }
.ftr-promise-text-c { margin: 0; font-size: 0.85rem; color: #94a3b8; line-height: 1.5; }

/* ==========================================
   ZUGÄNGLICHKEIT: KONTRAST-FIX (WCAG)
   ========================================== */
.hdr-ext-c { color: #cbd5e1 !important; } /* Helleres Grau für dunklen Hintergrund */
.block-title { color: #fdba74 !important; } /* Helleres Orange auf Dunkelblau */
.calc-data-body a, .text-link-calc { color: #f8fafc !important; text-decoration: underline; font-weight: 700; } /* Weiße Links auf dunklem Grund */
.calc-data-body a:hover, .text-link-calc:hover { color: #f97316 !important; }

/* ==========================================
   WCAG-KONTRASTFIX (STADT-SEITEN)
   ========================================== */
.track-link-c { color: #fdba74 !important; font-weight: 700; } /* Helleres Orange auf dunklem Grund */
.geg-action-c { background-color: #b45309 !important; color: #ffffff !important; } /* Dunkler Button-Hintergrund für weiße Schrift */
.status-c, #stat-val-c { color: #cbd5e1 !important; font-weight: 700; } /* Helleres Grau für den Fortschritts-Text */
.content-c a { color: #f8fafc !important; text-decoration: underline; font-weight: 700; } /* Weiße Links im Fließtext */
.content-c a:hover { color: #fdba74 !important; }

.hdr-badge-c { color: #fdba74 !important; border-color: #fdba74 !important; }
.node-label { color: #cbd5e1 !important; }
.bar-sub-c { color: #0f172a !important; font-weight: 800 !important; background-color: #4ade80 !important; }

.ftr-pub-c { color: #94a3b8 !important; }
.ftr-wrap-c { color: #94a3b8 !important; }

/* ==========================================
   BADGE / KICKER (STÄDTE- & BUNDESLAND-SEITEN)
   ========================================== */
.list-badge-c {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05); /* Sehr dezente Aufhellung */
    color: #fdba74; /* Helleres leuchtendes Orange für den Darkmode */
    border: 1px solid #475569; /* Kühles Schiefergrau passend zum Hub */
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}