/* ==========================================
   1. BASIS-LAYOUT & TYPOGRAFIE
   ========================================== */
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; margin: 0; padding: 0; background-color: #0f172a; color: #cbd5e1; }
.split-calculator-layout { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3, h4 { color: #f8fafc; }
html, body { max-width: 100%; overflow-x: hidden; }

/* ==========================================
   2. KOMPONENTEN (Tabellen, FAQ, Author-Box)
   ========================================== */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #1e293b; border: 1px solid #334155; border-radius: 8px; overflow: hidden; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #334155; }
th { background: #111827; color: #f97316; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: #cbd5e1; font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }

details.faq-item { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }
details.faq-item summary { cursor: pointer; font-weight: 600; color: #f97316; }
details.faq-item p { margin-top: 0.5rem; margin-bottom: 0; color: #cbd5e1; }

.author-trust-box { display: flex; align-items: center; gap: 1.5rem; background: #1e293b; border: 1px solid #334155; border-left: 4px solid #f97316; padding: 1.5rem; border-radius: 8px; margin-top: 3rem; }
.author-avatar { font-size: 2.5rem; }
.author-info h4 { margin: 0 0 0.25rem 0; font-size: 1.1rem; color: #f8fafc; }
.author-info p { margin: 0; font-size: 0.9rem; color: #cbd5e1; }

/* ==========================================
   3. PREMIUM FAST-LANE FORMULAR
   ========================================== */
.premium-hero-card-zuschuss-rechner { background: #1e293b; border-radius: 12px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); max-width: 850px; margin: 2rem auto; border: 1px solid #334155; border-left: 4px solid #f97316; }
.card-trust-header-zuschuss-rechner { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.95rem; color: #cbd5e1; }
.status-dot-zuschuss-rechner { width: 10px; height: 10px; background-color: #10b981; border-radius: 50%; position: relative; }
.status-dot-zuschuss-rechner::after { content: ''; position: absolute; width: 100%; height: 100%; background-color: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 70% { transform: scale(2.5); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
.premium-input-grid-zuschuss-rechner { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: center; }
.premium-input-zuschuss-rechner { width: 100%; padding: 16px 14px; font-size: 1rem; color: #f8fafc; background: #0f172a; border: 2px solid #334155; border-radius: 8px; box-sizing: border-box; }
.premium-input-zuschuss-rechner:focus { outline: none; border-color: #f97316; }
.premium-btn-primary-zuschuss-rechner, .premium-btn-success-zuschuss-rechner { padding: 16px 28px; font-size: 1.05rem; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #f97316, #ea580c); border: none; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: transform 0.2s; display: flex; align-items: center; gap: 8px; }
.premium-btn-success-zuschuss-rechner { background: linear-gradient(135deg, #10b981, #059669); }
.premium-btn-primary-zuschuss-rechner:hover, .premium-btn-success-zuschuss-rechner:hover { transform: translateY(-2px); }
.fast-dsgvo-zuschuss-rechner { font-size: 0.75rem; color: #94a3b8; margin-top: 12px; text-align: center; }
.step2-top-row-zuschuss .premium-input-grid-zuschuss-rechner:first-child { margin-bottom: 12px; }
.trust-badge-zuschuss-rechner { display: inline-flex; align-items: center; gap: 6px; background: #1e293b; border: 1px solid #334155; padding: 4px 10px; border-radius: 4px; font-size: 0.78rem; color: #94a3b8; font-family: monospace; margin: 0.4rem 0 1rem 0; }

/* ==========================================
   4. MOBILE OPTIMIERUNG
   ========================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem !important; line-height: 1.25 !important; margin-top: 0.5rem !important; }
    table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; font-size: 0.82rem; margin-bottom: 1.5rem; }
    th, td { padding: 8px 12px !important; }
    .premium-input-grid-zuschuss-rechner { grid-template-columns: 1fr; gap: 12px; } 
    .premium-btn-primary-zuschuss-rechner, .premium-btn-success-zuschuss-rechner { width: 100%; justify-content: center; }
}

/* ==========================================
   5. ADVANCED 60-SEKUNDEN-QUIZ
   ========================================== */
.premium-quiz-card-zuschuss-rechner { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.4); max-width: 700px; margin: 4rem auto; font-family: system-ui, sans-serif; text-align: center; }
.quiz-header-zuschuss-rechner { margin-bottom: 2rem; border-bottom: 1px solid #334155; padding-bottom: 1.5rem; }
.premium-quiz-card-zuschuss-rechner h3 { font-size: 1.6rem; margin: 0 0 0.5rem 0; color: #f8fafc; }
.quiz-subtitle-zuschuss-rechner { color: #94a3b8; font-size: 0.95rem; margin: 0; }
.progress-wrapper-zuschuss-rechner { margin-top: 1.5rem; text-align: right; }
.progress-text-zuschuss-rechner { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.3rem; font-weight: 600; }
.progress-bar-bg-zuschuss-rechner { background: #334155; height: 6px; border-radius: 99px; overflow: hidden; }
.progress-bar-fill-zuschuss-rechner { background: #f97316; height: 100%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.quiz-step-zuschuss-rechner { animation: slideUp 0.4s ease; }
.quiz-question-zuschuss-rechner { display: block; font-size: 1.3rem; font-weight: 700; color: #f8fafc; margin-bottom: 0.5rem; }
.quiz-hint-zuschuss-rechner { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.5rem; }
.quiz-grid-zuschuss-rechner { display: flex; flex-direction: column; gap: 0.8rem; }
.quiz-card-btn-zuschuss-rechner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem; background: #0f172a; border: 2px solid #475569; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; width: 100%; color: #cbd5e1; }
.quiz-card-btn-zuschuss-rechner:hover { border-color: #f97316; background: rgba(249, 115, 22, 0.05); transform: translateY(-2px); }
.quiz-card-btn-zuschuss-rechner .icon { font-size: 1.8rem; margin-bottom: 0.3rem; }
.quiz-card-btn-zuschuss-rechner strong { font-size: 1.1rem; }
.quiz-card-btn-zuschuss-rechner small { font-size: 0.85rem; color: #64748b; margin-top: 0.2rem; }
.quiz-input-text-zuschuss-rechner { width: 100%; padding: 14px; border: 1px solid #334155; border-radius: 6px; font-size: 1rem; box-sizing: border-box; background: #0f172a; color: #f8fafc; }
.quiz-btn-row-zuschuss-rechner { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; border-top: 1px solid #334155; padding-top: 1.5rem; }
.quiz-submit-btn-zuschuss-rechner { background: #f97316; color: white; border: none; padding: 14px 24px; border-radius: 6px; font-size: 1.1rem; font-weight: 700; cursor: pointer; flex-grow: 1; margin-left: 1rem; transition: opacity 0.2s; }
.quiz-submit-btn-zuschuss-rechner:hover { opacity: 0.9; }
.quiz-back-link-zuschuss-rechner { background: none; border: none; color: #94a3b8; font-weight: 600; cursor: pointer; text-decoration: underline; font-size: 0.95rem; }
@media(min-width: 600px) { .quiz-grid-zuschuss-rechner { flex-direction: row; } .quiz-card-btn-zuschuss-rechner { flex: 1; } }
.quiz-mb-zuschuss { margin-bottom: 1rem; }
.quiz-row-zuschuss-rechner { display: flex; gap: 10px; margin-bottom: 1rem; }
.quiz-dsgvo-zuschuss-rechner { display: flex; gap: 10px; font-size: 0.8rem; color: #64748b; margin-top: 1rem; text-align: left; }
.success-box-zuschuss-rechner { text-align: center; }
.quiz-success-icon-zuschuss { font-size: 4rem; margin-bottom: 1rem; }
.quiz-success-title-zuschuss { color: #16a34a; font-size: 1.5rem; }
.quiz-success-text-zuschuss { color: #475569; }

/* ==========================================
   6. BREADCRUMBS, MAP & AUTHOR-BOX
   ========================================== */
.breadcrumb-nav-zuschuss-rechner { max-width: 900px; margin: 0 auto; padding: 0.75rem 1rem; font-size: 0.85rem; }
.breadcrumb-link-zuschuss-rechner { color: #f97316; text-decoration: none; transition: color 0.2s; }
.breadcrumb-link-zuschuss-rechner:hover { color: #ea580c; text-decoration: underline; }
.breadcrumb-separator-zuschuss-rechner { margin: 0 0.4rem; opacity: 0.5; color: #94a3b8; }
.breadcrumb-current-zuschuss-rechner { font-weight: 600; color: #cbd5e1; }

.author-trust-box-zuschuss-rechner { display: flex; align-items: center; gap: 1.5rem; background: #1e293b; border: 1px solid #334155; border-left: 4px solid #f97316; padding: 1.5rem; border-radius: 8px; margin-top: 3rem; }
.author-avatar-zuschuss-rechner { font-size: 2.5rem; }
.author-info-zuschuss-rechner h4 { margin: 0 0 0.25rem 0; font-size: 1.1rem; color: #f8fafc; }
.author-info-zuschuss-rechner p { margin: 0; font-size: 0.9rem; color: #cbd5e1; }

.map-wrapper-zuschuss-rechner { max-width: 900px; margin: 3rem auto; padding: 0 1rem; }
.map-heading-zuschuss-rechner { font-size: 1.25rem; color: #f8fafc; margin-bottom: 1rem; }
.map-iframe-zuschuss-rechner { width: 100%; height: 350px; border: 0; border-radius: 8px; background: #0f172a; filter: grayscale(80%) invert(90%) contrast(1.2); }
@media (max-width: 768px){ .author-trust-box-zuschuss-rechner { flex-direction: column; text-align: center; gap: 1rem; } }

/* ==========================================
   7. HEADER & FOOTER
   ========================================== */
.site-header-zuschuss-rechner { background: #0f172a; padding: 0.75rem 0; border-bottom: 3px solid #f97316; }
.header-inner-zuschuss-rechner { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.header-top-zuschuss-rechner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.logo-link-zuschuss-rechner { font-size: 1.3rem; font-weight: 800; color: #ffffff; text-decoration: none; }
.logo-hl-zuschuss-rechner { color: #f97316; }
.logo-ext-zuschuss-rechner { font-size: 0.75rem; color: #94a3b8; font-weight: normal; }
.tagline-zuschuss-rechner { display: none; }
.badge-zuschuss-rechner { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid #f97316; font-size: 0.7rem; padding: 3px 8px; border-radius: 12px; font-weight: bold; }
.nav-wrapper-zuschuss-rechner { display: flex; gap: 0.5rem; width: 100%; }
.nav-select-zuschuss-rechner { flex: 1; background: #1e293b; border: 1px solid #475569; padding: 8px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: #f8fafc; cursor: pointer; }

.site-footer-zuschuss-rechner { background: #0f172a; color: #94a3b8; padding: 3rem 1rem; margin-top: 4rem; font-size: 0.85rem; border-top: 1px solid #334155; }
.footer-inner-zuschuss-rechner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer-brand-col-zuschuss-rechner { flex: 1 1 300px; }
.footer-brand-zuschuss-rechner { color: #ffffff; font-weight: bold; }
.footer-desc-zuschuss-rechner { display: inline; margin-left: 5px; margin-top: 0; }
.footer-links-zuschuss-rechner { display: flex; gap: 12px; margin-top: 1rem; }
.footer-links-zuschuss-rechner a { color: #cbd5e1; text-decoration: none; }
.footer-publisher-zuschuss-rechner { font-size: 0.8rem; color: #64748b; margin-top: 0.25rem; }
.footer-publisher-zuschuss-rechner strong { color: #94a3b8; font-weight: 500; }
.footer-meta-col-zuschuss-rechner { display: flex; align-items: center; }
.footer-meta-text-zuschuss-rechner { background: #1e293b; padding: 4px 10px; border-radius: 4px; border: 1px solid #334155; margin: 0; }
.footer-meta-title-zuschuss-rechner { display: none; }
.footer-links-zuschuss-rechner { list-style: none; padding: 0; }

/* ==========================================
   8. FAQ-AKKORDEON
   ========================================== */
.faq-container-zuschuss-rechner { max-width: 900px; margin: 3rem auto; padding: 0 1rem; }
.faq-headline-zuschuss-rechner { font-size: 1.5rem; color: #f8fafc; margin-bottom: 1.5rem; }
.faq-item-zuschuss-rechner { background: #0f172a; border: 1px solid #334155; border-radius: 8px; margin-bottom: 0.75rem; }
.faq-summary-zuschuss-rechner { cursor: pointer; font-weight: 600; color: #f8fafc; padding: 1rem 1.25rem; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-summary-zuschuss-rechner:hover { background: #1e293b; }
.faq-summary-zuschuss-rechner::-webkit-details-marker { display: none; }
.faq-summary-zuschuss-rechner::after { content: '↓'; color: #f97316; font-size: 1.1rem; }
.faq-item-zuschuss-rechner[open] .faq-summary-zuschuss-rechner::after { content: '↑'; }
.faq-content-zuschuss-rechner { padding: 0 1.25rem 1rem 1.25rem; }
.faq-content-zuschuss-rechner p { color: #cbd5e1; margin: 0.5rem 0 0 0; }

/* ==========================================
   9. FIX: DROPDOWN OVERFLOW SCHUTZ
   ========================================== */
.nav-select-barrierefrei-direkt, 
.nav-select-zuhause-pflegehilfe, 
.nav-select-zuschuss-rechner {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 50% !important;
    text-overflow: ellipsis !important;
}

/* ==========================================
   10. REGIONALES HUB-LAYOUT (STARTSEITE)
   ========================================== */
.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-header h3 { color: #f8fafc; margin: 0 0 0.25rem 0; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.matrix-header span { 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: #f97316; 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; transition: border-color 0.2s; }
.node-link:hover { border-color: #f97316; }
.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; transition: all 0.2s; }
.node-link-state:hover { border-color: #f97316; color: #ffffff; }

/* ==========================================
   11. TEXT-LINKS (MARKDOWN CONTENT)
   ========================================== */
.calc-data-body a, .text-link-calc { color: #f97316; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; transition: color 0.2s ease; }
.calc-data-body a:hover, .text-link-calc:hover { color: #fdba74; }

/* ==========================================
   CITY & RATGEBER LAYOUT
   ========================================== */
.city-hero-calc { background: #0f172a; border-bottom: 1px solid #334155; margin-bottom: 2rem; }
.hero-inner-calc { max-width: 900px; margin: 0 auto; padding: 2.5rem 1rem 1rem 1rem; text-align: center; }
.hero-title-calc { color: #ffffff; font-size: 2.2rem; margin-top: 0.5rem; margin-bottom: 1rem; line-height: 1.2; }
.quiz-link-calc { margin-top: 1rem; }
.quiz-link-calc a { color: #f97316; text-decoration: underline; font-size: 0.95rem; font-weight: 500; }
.city-content-calc { max-width: 900px; margin: 0 auto; padding: 0 1rem 2rem 1rem; }
.calc-data-body { line-height: 1.7; }
.city-modules-calc, .city-widgets-calc { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.widget-block-calc { padding: 1.5rem; background: #1e293b; border-radius: 8px; border: 1px solid #334155; margin-bottom: 1.5rem; margin-top: 2rem; }
.widget-block-calc h3 { font-size: 1.05rem; margin-top: 0; color: #f8fafc; }
.widget-grid-calc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.widget-item-calc, .widget-link-calc { background: #0f172a; border: 1px solid #475569; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; color: #f8fafc; font-weight: 600; text-decoration: none; }
.neighbor-block-calc { margin-bottom: 3rem; margin-top: 0; }
@media (max-width: 768px) { .hero-title-calc { font-size: 1.4rem; } .hero-inner-calc { padding: 1rem 0.5rem 0.5rem 0.5rem; } }

.list-layout-calc { max-width: 100%; }
.list-hero-calc { background: #0f172a; border-bottom: 1px solid #334155; color: #ffffff; padding: 2.5rem 1rem; text-align: center; margin-bottom: 2rem; }
.badge-calc { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 1px solid #f97316; padding: 4px 12px; font-size: 0.75rem; font-weight: bold; border-radius: 4px; text-transform: uppercase; }
.list-body-calc { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.az-container-calc { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem 1rem; }
.az-box-calc { margin-top: 2rem; padding: 2rem; background: #1e293b; border-radius: 8px; border: 1px solid #334155; }
.az-title-calc { font-size: 1.25rem; color: #f8fafc; margin-top: 0; margin-bottom: 0; }
.az-nav-calc { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.2rem; margin-bottom: 2rem; }
.az-btn-calc { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.az-active-calc { background: #0f172a; border: 1px solid #475569; color: #f8fafc; cursor: pointer; }
.az-active-calc:hover { border-color: #f97316; color: #f97316; }
.az-disabled-calc { background: transparent; border: 1px solid #334155; color: #cbd5e1; opacity: 0.25; cursor: not-allowed; }
.az-letter-title-calc { font-size: 1.1rem; color: #f97316; margin: 1.5rem 0 0.8rem 0; padding-bottom: 0.3rem; border-bottom: 1px solid #334155; }
.az-grid-calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.az-item-calc { 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; }

.ratgeber-layout-calc { max-width: 100%; }
.ratgeber-hero-calc { background: #0f172a; border-bottom: 1px solid #334155; padding: 2.5rem 1rem; text-align: center; margin-bottom: 2rem; }
.ratgeber-inner-calc { max-width: 900px; margin: 0 auto; }
.ratgeber-title-calc { color: #ffffff; font-size: 2.2rem; margin-top: 0.5rem; line-height: 1.2; }
.ratgeber-body-calc { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem 1rem; }
@media (max-width: 768px) { .ratgeber-hero-calc { padding: 1.5rem 1rem; } .ratgeber-title-calc { font-size: 1.6rem; } }

.facts-widget-zuschuss-rechner { background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 1.25rem; margin: 2rem 0; }
.facts-headline-zuschuss-rechner { color: #38bdf8; font-weight: 700; margin-bottom: 0.75rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts-grid-zuschuss-rechner { display: grid; grid-template-columns: 1fr; gap: 0.35rem; margin: 0; }
.fact-row-zuschuss-rechner { display: flex; justify-content: space-between; background: #1e293b; padding: 0.35rem 0.75rem; border-radius: 4px; font-size: 0.85rem; }
.fact-label-zuschuss-rechner { color: #94a3b8; }
.fact-value-zuschuss-rechner { color: #f8fafc; font-weight: 600; }
.fact-link-zuschuss-rechner { color: #38bdf8; text-decoration: underline; }

.legal-layout-calc { max-width: 100%; }
.legal-hero-calc { background: #0f172a; border-bottom: 1px solid #334155; padding: 2.5rem 1rem; text-align: center; margin-bottom: 2rem; }
.legal-inner-calc { max-width: 900px; margin: 0 auto; }
.legal-title-calc { color: #ffffff; font-size: 2.2rem; margin-top: 0.5rem; line-height: 1.2; }
.legal-body-calc { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem 1rem; }

/* ==========================================
   LINK-KONTRAST (WCAG 100% Fix)
   ========================================== */
.content-body a { color: currentColor; text-decoration: underline; font-weight: 700; }
.content-body a:hover { opacity: 0.8; }