/* ═══════════════════════════════════════════════════════════════════
   FahrschuleFFM – Main Stylesheet v3
   ═══════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --bg:           #FAF8F5;
  --bg-dark:      #1A1F2E;
  --surface:      #FFFFFF;
  --surface-2:    #F0EDE8;
  --border:       #DDD8D0;

  --accent:       #C1121F;
  --accent-dark:  #8B0000;
  --accent-warm:  #E07B39;
  --accent-green: #2D6A4F;

  --text:         #1A1A1A;
  --text-muted:   #6B6560;
  --text-on-dark: #F5F2EC;

  --font-serif:   'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 48px rgba(0,0,0,.16);

  --max-w: 1200px;
  --gap:   clamp(1rem, 3vw, 2rem);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 700; }
p + p { margin-top: .875rem; }
p + h2, p + h3, ul + h3, ol + h3 { margin-top: 2rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-md { margin-top: 1.75rem; }
.mt-lg { margin-top: 2.5rem; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface-2); }
.section-header { max-width: 700px; margin-bottom: 2.5rem; }
.section-heading { margin-bottom: .75rem; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* ── Skip Nav ───────────────────────────────────────────────────────────── */
.skip-nav { position: absolute; top: -100px; left: 1rem; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); font-weight: 600; z-index: 9999; text-decoration: none; }
.skip-nav:focus { top: 1rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,245,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 0; }

.logo { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; color: var(--accent); flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-text { font-family: var(--font-serif); font-size: 1.2rem; color: var(--bg-dark); line-height: 1; }
.logo-sub { font-size: .65rem; color: var(--text-muted); font-weight: 400; letter-spacing: .02em; display: none; }
@media (min-width: 580px) { .logo-sub { display: block; } }

/* ── Nav – FLAT, no dropdown ────────────────────────────────────────────── */
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; padding: 0; margin: 0; }
.main-nav a { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .8rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--surface-2); color: var(--accent); }
.main-nav a[aria-current="page"], .main-nav a[aria-current="true"] { color: var(--accent); background: rgba(193,18,31,.08); font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: fixed; inset: 0; top: 60px; background: var(--surface); padding: 1.5rem; overflow-y: auto; z-index: 99; border-top: 1px solid var(--border); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: .25rem; align-items: stretch; }
  .main-nav a { padding: .875rem 1rem; font-size: 1rem; border-radius: var(--radius); }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb-nav { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: .55rem 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; font-size: .8rem; color: var(--text-muted); }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { background: var(--bg-dark); color: var(--text-on-dark); overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(193,18,31,.22) 0%, transparent 60%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; z-index: 1; }
@media (min-width: 768px) { .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; } }

.hero-tag { display: inline-flex; align-items: center; background: rgba(193,18,31,.18); border: 1px solid rgba(193,18,31,.4); color: #FF9090; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .3rem .875rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { color: rgba(245,242,236,.82); font-size: 1.08rem; margin-bottom: 2rem; max-width: 500px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .875rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.stat-number { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); line-height: 1.1; }
.stat-label { display: block; font-size: .75rem; color: rgba(245,242,236,.55); margin-top: .2rem; }

/* ── Hero Visual ────────────────────────────────────────────────────────── */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.ffm-hero-graphic { width: 100%; max-width: 480px; }
.skyline-svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.5)); animation: floatY 8s ease-in-out infinite; border-radius: 16px; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: var(--radius); font-size: .9rem; font-weight: 700; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: all .2s; line-height: 1; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(193,18,31,.35); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.btn--sm { padding: .55rem 1.1rem; font-size: .825rem; }
.btn--block { width: 100%; justify-content: center; }

/* ── Trust Strip – 6 items, 3×2 grid ────────────────────────────────────── */
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 640px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .trust-list { grid-template-columns: 1fr; } }
.trust-list li { display: flex; align-items: flex-start; gap: .625rem; }
.trust-list svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.trust-list strong { display: block; font-size: .9rem; color: var(--text); }
.trust-list span { display: block; font-size: .78rem; color: var(--text-muted); }

/* ── Topic Cards ─────────────────────────────────────────────────────────── */
.topic-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .topic-grid--3 { grid-template-columns: 1fr; } }
@media (min-width: 580px) and (max-width: 860px) { .topic-grid--3 { grid-template-columns: 1fr 1fr; } }

.topic-card { display: flex; flex-direction: row; align-items: flex-start; gap: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-decoration: none; color: var(--text); transition: all .25s; box-shadow: var(--shadow-sm); }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.topic-card--featured { background: linear-gradient(135deg, var(--bg-dark) 0%, #252D42 100%); border-color: rgba(193,18,31,.3); color: var(--text-on-dark); align-items: center; }
.topic-card--featured:hover { color: var(--text-on-dark); }
.topic-card--featured h3 { color: #fff; }
.topic-card--featured p { color: rgba(245,242,236,.75); }

.topic-icon { width: 52px; height: 52px; background: rgba(193,18,31,.08); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.topic-icon--lg { width: 68px; height: 68px; background: rgba(193,18,31,.15); }
.topic-icon svg { width: 28px; height: 28px; }
.topic-icon--lg svg { width: 36px; height: 36px; }
.topic-card-content { flex: 1; }
.topic-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.topic-card p { font-size: .875rem; color: var(--text-muted); margin-bottom: .875rem; margin-top: 0; }
.topic-link { font-size: .82rem; font-weight: 700; color: var(--accent); }
.topic-card--featured .topic-link { color: #FF9090; }

/* ── Infrastruktur-Absätze ───────────────────────────────────────────────── */
.infra-para { color: var(--text-muted); line-height: 1.75; margin-bottom: .75rem; }
.infra-para:last-child { margin-bottom: 0; }

/* ── Kostenrechner ───────────────────────────────────────────────────────── */
.section--rechner { background: var(--bg-dark); color: rgba(245,242,236,.85); }
.section--rechner h2 { color: #fff; }
.section--rechner > .container > p { color: rgba(245,242,236,.6); }
.kostenrechner-section { background: var(--bg-dark); }
.rechner-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 2.5rem; }
@media (max-width: 680px) { .rechner-wrapper { grid-template-columns: 1fr; padding: 1.5rem; } }
.rechner-field { margin-bottom: 1.5rem; }
.rechner-field:last-child { margin-bottom: 0; }
.rechner-field label { display: block; font-size: .78rem; font-weight: 700; color: rgba(245,242,236,.7); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .05em; }
.range-wrapper { display: flex; align-items: center; gap: 1rem; }
.range-input { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; outline: none; cursor: pointer; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 3px rgba(193,18,31,.25); transition: box-shadow .2s; }
.range-input::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(193,18,31,.3); }
.range-output { min-width: 2.5rem; text-align: right; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.range-labels { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(245,242,236,.4); margin-top: .25rem; }
.checkbox-group { display: flex; flex-direction: column; gap: .5rem; }
.checkbox-label { display: flex; align-items: center; gap: .625rem; font-size: .875rem; color: rgba(245,242,236,.85); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

/* select: always readable text */
.select-input { width: 100%; padding: .65rem .875rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); background: #2A3A5C; color: #F5F2EC; font-size: .9rem; outline: none; cursor: pointer; -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='%23F5F2EC' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.select-input option { background: #1A1F2E; color: #F5F2EC; }
.select-input:focus { border-color: var(--accent); outline: 2px solid rgba(193,18,31,.3); }

.rechner-result { display: flex; flex-direction: column; gap: 1rem; }
.result-header { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(245,242,236,.45); }
.result-min, .result-max { font-family: var(--font-serif); font-size: 1.9rem; color: #fff; }
.result-big { font-family: var(--font-serif); font-size: 2.75rem; color: #fff; }
.result-sep { font-size: 1.5rem; color: rgba(255,255,255,.35); margin: 0 .2rem; }
.result-breakdown { background: rgba(0,0,0,.25); border-radius: var(--radius); overflow: hidden; }
.breakdown-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 1rem; font-size: .78rem; color: rgba(245,242,236,.7); border-bottom: 1px solid rgba(255,255,255,.05); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row span:last-child { font-weight: 700; color: #fff; white-space: nowrap; padding-left: .5rem; }
.result-disclaimer { font-size: .7rem; color: rgba(245,242,236,.35); }

/* ── Difficulty Table ────────────────────────────────────────────────────── */
.difficulty-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.difficulty-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.difficulty-table th { text-align: left; padding: .875rem 1rem; background: var(--bg-dark); color: rgba(245,242,236,.6); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.difficulty-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; background: var(--surface); }
.difficulty-table tr:last-child td { border-bottom: none; }
.difficulty-table tr:hover td { background: rgba(193,18,31,.03); }
.table-link { font-size: .8rem; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.table-link:hover { text-decoration: underline; }

/* Diff bar – 5 spans, colored by data-level */
.diff-bar { display: flex; gap: 3px; align-items: center; width: 80px; }
.diff-bar span { display: block; flex: 1; height: 8px; border-radius: 2px; background: var(--border); }
.diff-bar[data-level="1"] span:nth-child(-n+1) { background: var(--accent-green); }
.diff-bar[data-level="2"] span:nth-child(-n+2) { background: var(--accent-warm); }
.diff-bar[data-level="3"] span:nth-child(-n+3) { background: var(--accent-warm); }
.diff-bar[data-level="4"] span:nth-child(-n+4) { background: var(--accent); }
.diff-bar[data-level="5"] span:nth-child(-n+5) { background: var(--accent); }

/* Diff dots */
.diff-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.diff-dot--active { background: var(--accent); }
.diff-dot-mini { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.diff-dot-mini--active { background: var(--accent); }

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero { background: var(--bg-dark); color: var(--text-on-dark); padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%; background: radial-gradient(ellipse at right center, rgba(193,18,31,.18), transparent 70%); pointer-events: none; }
.page-hero-tag { display: inline-flex; align-items: center; gap: .4rem; background: rgba(193,18,31,.14); border: 1px solid rgba(193,18,31,.3); color: #FF9090; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.page-hero h1 { color: #fff; max-width: 800px; margin-bottom: 1.25rem; }
.page-hero-lead { color: rgba(245,242,236,.82); font-size: 1.08rem; max-width: 680px; }
.meta-row { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.5rem; }
.meta-item { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: rgba(245,242,236,.45); }
.meta-item svg { width: 13px; height: 13px; }

/* ── Two Col ─────────────────────────────────────────────────────────────── */
.two-col-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 860px) { .two-col-layout { grid-template-columns: 2fr 1fr; } }

/* ── Sidebar Cards ───────────────────────────────────────────────────────── */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: .875rem; }
.sidebar-card--highlight { border-color: var(--accent); background: rgba(193,18,31,.03); }
.sidebar-card--cta { background: var(--bg-dark); color: var(--text-on-dark); }
.sidebar-card--cta h3 { color: #fff; }
.sidebar-card--cta p { color: rgba(245,242,236,.7); margin-bottom: 1rem; }
.sidebar-card--warn { background: rgba(224,123,57,.07); border-color: var(--accent-warm); }
.sidebar-card--warn h3 { display: flex; align-items: center; gap: .5rem; color: var(--accent-warm); font-size: 1.05rem; }
.sidebar-card--warn svg { width: 18px; height: 18px; stroke: var(--accent-warm); }

/* ── Feature List ────────────────────────────────────────────────────────── */
.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; margin: 0; }
.feature-list li:last-child { border-bottom: none; }
.feature-icon { display: flex; align-items: center; flex-shrink: 0; margin-top: .1rem; }
.feature-icon svg { width: 18px; height: 18px; color: var(--accent); }

/* ── Tips List ───────────────────────────────────────────────────────────── */
.tips-list { padding: 0; list-style: none; counter-reset: tips; }
.tips-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; margin: 0; counter-increment: tips; }
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before { content: counter(tips); display: flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 50%; flex-shrink: 0; margin-top: .1rem; }

/* ── Checklist ───────────────────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; margin: 0; }
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.checklist--big li { font-size: .875rem; padding: .75rem 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-container { max-width: 820px; }
.faq-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem 0; background: none; border: none; cursor: pointer; text-align: left; font-size: .95rem; font-weight: 600; color: var(--text); font-family: var(--font-sans); }
.faq-toggle-inner { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 0; }
.faq-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; background: rgba(193,18,31,.1); border-radius: 50%; color: var(--accent); }
.faq-icon svg { width: 13px; height: 13px; }
.faq-toggle > svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--accent); transition: transform .25s; }
.faq-toggle[aria-expanded="true"] > svg { transform: rotate(180deg); }
.faq-toggle:hover { color: var(--accent); }
.faq-toggle:hover .faq-icon { background: rgba(193,18,31,.18); }
.faq-answer { padding-bottom: 1.1rem; font-size: .9rem; color: var(--text-muted); line-height: 1.75; }
.faq-answer a { color: var(--accent); }

/* ── Ecken Grid ──────────────────────────────────────────────────────────── */
.ecken-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); margin-top: 2rem; }
.ecke-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--accent); }
.ecke-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.ecke-name { font-size: 1.05rem; margin-bottom: 0; }
.schwierigkeit { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.diff-label { font-size: .68rem; color: var(--text-muted); margin-left: .3rem; white-space: nowrap; }
.ecke-beschreibung { font-size: .875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Info Box ────────────────────────────────────────────────────────────── */
.info-box { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-top: 1.75rem; font-size: .875rem; line-height: 1.65; }
.info-box svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: .1rem; }
.info-box--tip { background: rgba(45,106,79,.07); border: 1px solid rgba(45,106,79,.2); }
.info-box--tip svg { stroke: var(--accent-green); }
.info-box--warn { background: rgba(224,123,57,.07); border: 1px solid rgba(224,123,57,.2); }
.info-box--warn svg { stroke: var(--accent-warm); }

/* ── Spar Grid ───────────────────────────────────────────────────────────── */
.spar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.spar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.spar-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; font-family: var(--font-serif); }
.spar-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.spar-card p { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ── Kosten Table ────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.kosten-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.kosten-table th { text-align: left; padding: .875rem 1rem; background: var(--bg-dark); color: rgba(245,242,236,.65); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kosten-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; background: var(--surface); }
.kosten-table tr:last-child td { border-bottom: none; }
.row-category td { background: var(--surface-2); padding: .5rem 1rem; font-weight: 700; font-size: .85rem; }
.sum-row td { background: var(--surface-2); font-weight: 700; }
.badge { display: inline-flex; padding: .2rem .5rem; border-radius: 4px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.badge--yes { background: rgba(45,106,79,.1); color: var(--accent-green); }
.badge--opt { background: rgba(224,123,57,.1); color: var(--accent-warm); }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline { position: relative; list-style: none; padding: 0; margin-top: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { display: flex; gap: 1.5rem; padding-bottom: 2rem; position: relative; margin: 0; }
.timeline-marker { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--accent); color: #fff; border-radius: 50%; font-weight: 800; font-size: 1rem; flex-shrink: 0; position: relative; z-index: 1; border: 3px solid var(--bg); font-family: var(--font-serif); }
.timeline-content { flex: 1; padding-top: .5rem; }
.timeline-content h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.timeline-content p { font-size: .875rem; color: var(--text-muted); margin: 0; }
.timeline-meta { display: flex; gap: 1.5rem; margin-top: .75rem; flex-wrap: wrap; }
.timeline-meta span { font-size: .78rem; color: var(--accent); font-weight: 600; }

/* ── Stellen Grid ────────────────────────────────────────────────────────── */
.stellen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.stellen-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.stellen-logo { margin-bottom: 1rem; }
.stellen-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.info-dl { display: flex; flex-direction: column; gap: .625rem; }
.info-dl > div { display: flex; flex-direction: column; gap: .2rem; }
.info-dl dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.info-dl dd { font-size: .875rem; color: var(--text); line-height: 1.5; }
.info-dl-compact { display: flex; flex-direction: column; gap: .5rem; }
.info-dl-compact > div { display: flex; gap: .5rem; font-size: .85rem; }
.info-dl-compact dt { color: var(--text-muted); font-weight: 600; min-width: 70px; flex-shrink: 0; }
.info-dl-compact dd { color: var(--text); }

/* ── Amt Card ────────────────────────────────────────────────────────────── */
.amt-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); margin: 1.75rem 0; }
.amt-info-card h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }

/* ── Atlas Cards ─────────────────────────────────────────────────────────── */
.atlas-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.atlas-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.atlas-card-header { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.75rem; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.atlas-rank { font-family: var(--font-serif); font-size: 2.25rem; color: var(--accent); opacity: .22; line-height: 1; flex-shrink: 0; min-width: 2.25rem; }
.atlas-name { font-size: 1.2rem; margin-bottom: .2rem; }
.atlas-location { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--text-muted); margin: 0; }
.atlas-schwierigkeit { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.atlas-schwier-label { font-size: .7rem; color: var(--text-muted); margin-left: .4rem; }
.atlas-card-body { padding: 1.75rem; }
.atlas-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem 2rem; margin-bottom: 1.5rem; }
.atlas-details-grid h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .6rem; }
.atlas-details-grid ul { padding-left: 1rem; font-size: .875rem; }
.atlas-details-grid ul li { margin-bottom: .3rem; }
.atlas-details-grid p { font-size: .875rem; color: var(--text); margin: 0; }
.atlas-tipp-box { background: rgba(193,18,31,.06); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: .875rem 1.25rem; font-size: .875rem; }

/* ── Authors ─────────────────────────────────────────────────────────────── */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.author-card { display: flex; gap: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.author-avatar { width: 60px; height: 60px; flex-shrink: 0; }
.author-avatar svg { width: 60px; height: 60px; }
.author-name { font-size: 1.05rem; margin-bottom: .2rem; }
.author-title { font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .625rem; }
.author-facts { list-style: none; padding: 0; margin: 0; }
.author-facts li { font-size: .78rem; color: var(--text-muted); padding: .15rem 0; margin: 0; display: flex; gap: .4rem; }
.author-facts li::before { content: '→'; color: var(--accent); flex-shrink: 0; }
.eeat-disclaimer { font-size: .8rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.eeat-disclaimer a { color: var(--accent); }

/* ── Pill Nav ────────────────────────────────────────────────────────────── */
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill { display: inline-flex; align-items: center; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 500; color: var(--text); text-decoration: none; transition: all .2s; }
.pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(193,18,31,.05); }
.pill--all { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill--all:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

/* ── Stadtteile Grid ─────────────────────────────────────────────────────── */
.bezirk-group { margin-bottom: 3rem; }
.bezirk-heading { display: flex; align-items: center; gap: .75rem; font-size: 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--accent); color: var(--bg-dark); }
.bezirk-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: rgba(193,18,31,.08); padding: .2rem .5rem; border-radius: 4px; }
.stadtteile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.stadtteil-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; text-decoration: none; color: var(--text); transition: all .2s; box-shadow: var(--shadow-sm); }
.stadtteil-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.stadtteil-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .625rem; }
.stadtteil-card-name { font-size: 1rem; margin: 0; }
.schwierigkeit-mini { display: flex; gap: 3px; }
.stadtteil-card-intro { font-size: .8rem; color: var(--text-muted); flex: 1; margin: 0 0 .75rem; line-height: 1.55; }
.stadtteil-card-meta { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: .5rem; }

/* ── Prose Pages ─────────────────────────────────────────────────────────── */
.prose-page { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.prose-page h1 { margin-bottom: 2rem; }
.prose-page h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; }
.prose-page p, .prose-page li { color: var(--text-muted); font-size: .95rem; }
.prose-page a { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-dark); color: rgba(245,242,236,.7); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem 2rem; padding-bottom: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: .875rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-sub { color: rgba(245,242,236,.4); }
.footer-brand p { font-size: .8rem; line-height: 1.65; margin-top: .5rem; color: rgba(245,242,236,.55); }
.update-notice { display: flex; align-items: center; gap: .5rem; font-size: .73rem; color: rgba(245,242,236,.35) !important; margin-top: .875rem !important; }
.update-notice svg { width: 13px; height: 13px; flex-shrink: 0; }
.trust-badges { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.trust-badge { display: flex; align-items: center; gap: .5rem; font-size: .73rem; color: rgba(245,242,236,.35); }
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; stroke: rgba(245,242,236,.25); }

.footer-links-col {}
.site-footer nav h3 { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(245,242,236,.38); margin-bottom: .875rem; font-family: var(--font-sans); }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav ul li { margin-bottom: .4rem; }
.site-footer nav ul a { font-size: .82rem; color: rgba(245,242,236,.6); text-decoration: none; transition: color .15s; }
.site-footer nav ul a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-left { display: flex; flex-direction: column; gap: .2rem; }
.footer-bottom p { font-size: .72rem; color: rgba(245,242,236,.28); margin: 0; }
.footer-credit { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: rgba(245,242,236,.22); white-space: nowrap; flex-shrink: 0; }
.footer-credit-link { display: inline-flex; align-items: center; gap: .3rem; color: rgba(245,242,236,.42); text-decoration: none; font-weight: 700; letter-spacing: .02em; transition: color .2s; }
.footer-credit-link:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .footer-bottom-inner { flex-direction: column; align-items: flex-start; } }

/* ── Responsive Misc ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-stats { gap: 1.25rem 1.75rem; }
  .rechner-wrapper { padding: 1.25rem; }
  .atlas-card-header { gap: .75rem; }
  .atlas-rank { font-size: 1.75rem; }
  .authors-grid { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: flex-start; }
  .topic-card { flex-direction: column; }
  .topic-card--featured { flex-direction: column; }
}

@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  .footer-grid { gap: 2rem 1rem; }
}

@media print {
  .site-header, .site-footer, .breadcrumb-nav { display: none; }
  body { background: #fff; color: #000; }
  a { text-decoration: none; color: #000; }
}

/* ── Footer all-link ─────────────────────────────────────────────────────── */
.footer-all-link {
  color: var(--accent) !important;
  font-weight: 700;
  margin-top: .25rem;
  display: inline-block;
}
.footer-all-link:hover { color: #FF6060 !important; }

/* ── Ecke Nr Badge ───────────────────────────────────────────────────────── */
.ecke-nr {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: .75rem;
  color: var(--accent);
  opacity: .5;
  margin-right: .35rem;
  letter-spacing: .05em;
}

/* ── Diff bar 5-span version ─────────────────────────────────────────────── */
.diff-bar[data-level="1"] span:nth-child(-n+1) { background: var(--accent-green); }
.diff-bar[data-level="2"] span:nth-child(-n+2) { background: var(--accent-warm); }
.diff-bar[data-level="3"] span:nth-child(-n+3) { background: var(--accent-warm); }
.diff-bar[data-level="4"] span:nth-child(-n+4) { background: var(--accent); }
.diff-bar[data-level="5"] span:nth-child(-n+5) { background: var(--accent); }

/* ── 404 Error Page ──────────────────────────────────────────────────────── */
.error-hero { background: var(--bg-dark); padding: 5rem 0 4rem; }
.error-hero-inner { display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }

.error-code-wrap { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.error-code-num { font-family: var(--font-serif); font-size: clamp(5rem, 12vw, 8rem); font-weight: 700; color: var(--accent); line-height: 1; }
.error-code-icon { color: rgba(245,242,236,.18); width: clamp(4rem, 10vw, 7rem); height: clamp(4rem, 10vw, 7rem); display: flex; }
.error-code-icon svg { width: 100%; height: 100%; }

.error-hero-text { flex: 1; min-width: 260px; }
.error-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem; }
.error-hero-text h1 { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; margin: 0 0 1rem; line-height: 1.2; }
.error-desc { color: rgba(245,242,236,.6); line-height: 1.75; margin: 0 0 2rem; max-width: 480px; }
.error-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.error-nav-section { background: var(--surface); }
.error-nav-heading { font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.error-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.error-nav-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.25rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: .85rem; font-weight: 600; text-align: center; transition: border-color .2s, color .2s, transform .15s; }
.error-nav-card:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.error-nav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 50%; color: var(--accent); }
.error-nav-icon svg { width: 18px; height: 18px; stroke-width: 1.75; }
@media (max-width: 600px) { .error-nav-grid { grid-template-columns: repeat(2, 1fr); } .error-hero-inner { gap: 2rem; } .error-code-wrap { gap: .25rem; } }
@media (max-width: 400px) { .error-nav-grid { grid-template-columns: 1fr; } }

/* ── Bürgeramt-Grid ──────────────────────────────────────────────────────── */
.buergeramt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-top: 1rem; }
.buergeramt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.buergeramt-card strong { font-size: .9rem; color: var(--text); }
.buergeramt-card span { font-size: .8rem; color: var(--text-muted); }
