/* ============================================================
   fernschulportal.de – Design-System "Neuer Abschnitt"
   Redaktionell-editorial statt Datentool: warmes Papier, Terrakotta
   + Ocker als Formsprache (Farbblöcke hinter/neben Fotos, große
   Schrittnummern), alternierende Vollton-Bänder, echte Fotografie
   von Lernenden im Zentrum.
   ============================================================ */

/* --- Tokens --- */
:root {
  --ink:           #221C16;
  --ink-soft:      #4A4038;
  --muted:         #7A6F60;

  --paper:         #F7F7F7;
  --paper-alt:     #F1E9D8;
  --card:          #FFFFFF;
  --line:          #E5DAC3;

  --terracotta:      #C1552F;
  --terracotta-dark: #9C4324;
  --terracotta-soft: #F3E0D2;

  --ochre:         #B8862E;
  --ochre-dark:    #8F6A24;
  --ochre-soft:    #F2E6C9;

  --good:          #4F7A4A;
  --good-soft:     #E7EFE2;
  --warn:          #B45309;
  --warn-soft:     #FBF0DE;
  --bad:           #A23B2E;
  --bad-soft:      #F6E3DE;

  --footer-bg:     var(--ink);
  --footer-text:   #C9BFB0;
  --footer-heading:#F7F1E4;
  --footer-line:   #382F26;
  --footer-accent: #E0A15C;

  --shadow-sm:     0 1px 3px rgba(34,28,22,0.07);
  --shadow:        0 10px 28px rgba(34,28,22,0.14);
  --shadow-lg:     0 18px 44px rgba(34,28,22,0.20);

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     18px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --transition: 200ms ease;
  --container: 1120px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--ink-soft); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .3rem; }
table { border-collapse: collapse; width: 100%; }
input, select, button { font-family: var(--font); }
h1,h2,h3,h4,h5 { line-height: 1.18; font-weight: 800; color: var(--ink); letter-spacing: -0.012em; }
mark { background: none; color: var(--terracotta-dark); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.08; margin-bottom: 1.1rem; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin-bottom: .8rem; text-wrap: balance; }
h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .5rem; }
h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--paper-alt); }
.section-narrow { max-width: 760px; }

/* --- Grid Utilities --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .4rem .55rem;
  padding: .8rem 1.5rem;
  border-radius: 100px;
  font-weight: 700; font-size: .92rem;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1.3;
  background: var(--terracotta); color: #fff;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-secondary { background: var(--ink); color: var(--paper); }
.btn-secondary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .48rem .95rem; font-size: .78rem; }
.btn-block { width: 100%; }
.btn small { flex-basis: 100%; text-align: center; font-size: .78em; font-weight: 400; line-height: 1.5; margin-top: 2px; opacity: .85; }

/* --- Header & Nav --- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 28px; height: 28px; margin-right: .55rem; }
.nav-logo span { color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { position: relative; display: flex; align-items: center; gap: .3rem; padding: .5rem .7rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); transition: color var(--transition); }
.nav-links a:hover { color: var(--terracotta-dark); text-decoration: none; }
.nav-links > li > a::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; background: var(--terracotta); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: .4rem; }
.nav-links .btn-primary::after { display: none; }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 220px; padding: .4rem; list-style: none; padding-left: .4rem;
  z-index: 200; transition: opacity .15s ease, visibility .15s ease; transition-delay: .3s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s;
}
/* Unsichtbare Brücke über die Lücke zwischen Trigger und Menü, damit der Hover beim
   diagonalen Reinfahren mit der Maus nicht abreißt */
.nav-dropdown-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-dropdown-menu a { display: block; padding: .5rem .6rem; border-radius: var(--radius-sm); font-size: .84rem; font-weight: 500; color: var(--ink-soft); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: var(--paper-alt); color: var(--terracotta-dark); text-decoration: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: fixed; inset: 0 0 0 22%; background: var(--card); flex-direction: column; align-items: flex-start; padding: 4.5rem 1.5rem 2rem; gap: .1rem; z-index: 99; box-shadow: var(--shadow-lg); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; font-size: .92rem; padding: .65rem .3rem; }
  /* Untermenüs im offenen Mobile-Menü sind immer flach ausgeklappt sichtbar —
     kein zusätzlicher Tap zum Aufklappen nötig, das war die fehleranfällige Stelle */
  .nav-dropdown-menu {
    position: static; visibility: visible; opacity: 1; pointer-events: auto; transition: none;
    box-shadow: none; border: none; background: var(--paper-alt); border-radius: var(--radius-sm);
    padding: .3rem 0; margin: .25rem 0 .5rem;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a { padding: .55rem 1rem; }
  .nav-cta { margin: .5rem 0 0; }
}

/* --- Hero --- */
.hero { background: var(--paper); color: var(--ink); padding: 3.5rem 0 4.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--ink); text-wrap: balance; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 1.75rem; line-height: 1.65; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.hero-badge { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--terracotta-soft); color: var(--terracotta-dark); border-radius: 100px; padding: .32rem .8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.hero-trust span { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--ink-soft); }
.hero-trust svg { color: var(--terracotta); flex-shrink: 0; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Ticket-Statleiste (falls verwendet) */
.stat-strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.75rem 0 .25rem; }
.stat { flex: 1 1 140px; padding: .85rem 1.3rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.stat span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .2rem; }
@media (max-width: 640px) { .stat { flex: 1 1 45%; border-bottom: 1px solid var(--line); } }

/* --- Foto-Collage (Signature-Element) --- */
.photo-collage { position: relative; }
.photo-collage-block { position: absolute; border-radius: var(--radius-lg); z-index: 0; }
.photo-collage--tr .photo-collage-block { background: var(--ochre); top: -1.25rem; right: -1.25rem; width: 60%; height: 55%; }
.photo-collage--bl .photo-collage-block { background: var(--terracotta); bottom: -1.25rem; left: -1.25rem; width: 55%; height: 50%; }
.photo-collage-img { position: relative; z-index: 1; border-radius: var(--radius-lg); width: 100%; height: auto; object-fit: cover; box-shadow: var(--shadow); }
.photo-collage-dot { position: absolute; z-index: 0; border-radius: 50%; background: var(--ochre-soft); }
.photo-credit { font-size: .72rem; color: var(--muted); margin-top: .6rem; }

@media (max-width: 640px) {
  .photo-collage-block { display: none; }
}

/* --- Breadcrumbs --- */
.breadcrumbs { padding: .8rem 0; font-size: .8rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--terracotta-dark); }
.breadcrumbs span { margin: 0 .5rem; opacity: .5; }

/* --- Section Headers --- */
.section-header { margin-bottom: 2.5rem; max-width: 620px; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--terracotta-dark); margin-bottom: .6rem; }
.eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--terracotta); border-radius: 2px; }

/* --- Cards --- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* --- Feature-Quad (Icon + Text, kartenlos) --- */
.feature-quad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; }
.feature-quad { display: flex; gap: 1rem; align-items: flex-start; }
.feature-quad-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta-soft); color: var(--terracotta-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-quad:nth-child(4n+2) .feature-quad-icon, .feature-quad:nth-child(4n+3) .feature-quad-icon { background: var(--ochre-soft); color: var(--ochre-dark); }
.feature-quad h3 { font-size: .98rem; margin-bottom: .25rem; }
.feature-quad p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .feature-quad-grid { grid-template-columns: 1fr; } }

/* --- Nummerierte Schritte --- */
.step-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
.step-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--terracotta); line-height: 1; margin-bottom: .6rem; }
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .92rem; }
.step-link { font-size: .84rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--terracotta); padding-bottom: 1px; }
.step-link:hover { text-decoration: none; color: var(--terracotta-dark); }
@media (max-width: 700px) { .step-list { grid-template-columns: 1fr; } }

/* --- Vollton-Band (dunkel, alternierend) --- */
.band-dark { background: var(--ink); color: #E7DFD2; }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark p { color: #C9BFB0; }
.band-dark .eyebrow { color: var(--footer-accent); }
.band-dark .eyebrow::before { background: var(--footer-accent); }
.band-dark a:not(.btn) { color: var(--footer-accent); }

/* --- Atmosphärisches Breitbild mit Textüberlagerung --- */
.wide-photo-band { position: relative; min-height: 380px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.wide-photo-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(34,28,22,.82) 0%, rgba(34,28,22,.35) 55%, rgba(34,28,22,.05) 100%); }
.wide-photo-band-content { position: relative; z-index: 1; padding: 2.5rem 0; color: #fff; }
.wide-photo-band-content h2 { color: #fff; max-width: 560px; }
.wide-photo-band-content p { color: #E7DFD2; max-width: 460px; }

/* --- Anbieter-Karten --- */
.anbieter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.anbieter-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.anbieter-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.anbieter-card-top { height: 4px; background: var(--terracotta); }
.anbieter-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.anbieter-card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.anbieter-card-tag { font-size: .8rem; color: var(--muted); margin-bottom: .9rem; }
.anbieter-card-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.fact-pill { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 600; border-radius: 100px; padding: .22rem .68rem; color: var(--ink-soft); background: var(--paper-alt); }
.fact-pill.green { background: var(--good-soft); color: var(--good); }
.fact-pill svg { display: none; }
.anbieter-card-footer { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; }

/* --- Key Facts Grid (Anbieterprofile) --- */
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin: 1.5rem 0; }
.key-fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1rem; text-align: left; }
.key-fact-value { font-size: 1.1rem; font-weight: 800; color: var(--ink); display: block; }
.key-fact-value.tbd { font-size: .78rem; }
.key-fact-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: .25rem; display: block; }
@media (max-width: 640px) { .key-facts { grid-template-columns: repeat(2, 1fr); } }

/* --- TBD / Verifikations-Hinweis --- */
.tbd { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: .05rem .4rem; font-size: .82em; font-weight: 600; white-space: nowrap; }
.tbd-box { background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.25rem 0; font-size: .87rem; color: #6B3D0B; }
.tbd-box strong { color: var(--warn); }

/* --- Pros / Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pros, .cons { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.pros { border-top: 3px solid var(--good); }
.cons { border-top: 3px solid var(--bad); }
.pros h4 { color: var(--good); }
.cons h4 { color: var(--bad); }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { padding: .35rem 0; font-size: .9rem; display: flex; align-items: flex-start; gap: .5rem; }
.pros li::before { content: '+'; color: var(--good); font-weight: 700; flex-shrink: 0; }
.cons li::before { content: '–'; color: var(--bad); font-weight: 700; flex-shrink: 0; }

/* --- Comparison Table --- */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; min-width: 720px; background: var(--card); font-size: .87rem; }
.compare-table thead th { background: var(--ink); color: var(--paper); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: .75rem 1rem; text-align: left; font-weight: 700; white-space: nowrap; }
.compare-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.compare-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare-table td:first-child { font-weight: 700; white-space: normal; min-width: 140px; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--good); font-weight: 700; }
.compare-table .cross { color: var(--muted); }
.compare-table tr:hover { background: var(--terracotta-soft); }

/* --- FAQ Accordion --- */
.faq-list { list-style: none; padding: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; cursor: pointer; font-weight: 700; font-size: .97rem; gap: 1rem; list-style: none; user-select: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--terracotta-soft); color: var(--terracotta-dark); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: transform var(--transition); }
details[open] .faq-icon { transform: rotate(45deg); background: var(--terracotta); color: #fff; }
.faq-answer { padding: 0 0 1.1rem; color: var(--ink-soft); font-size: .93rem; line-height: 1.75; }
.faq-answer p { margin-bottom: .5rem; }

/* --- CTA Banner --- */
.cta-banner { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: left; margin: 2rem 0; }
.cta-banner h2 { color: var(--paper); margin-bottom: .6rem; }
.cta-banner p { color: #C9BFB0; margin-bottom: 1.4rem; max-width: 480px; }

/* --- Notice/Info Box --- */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.2rem; display: flex; gap: .7rem; align-items: flex-start; margin: 1.25rem 0; font-size: .89rem; }
.notice-info { background: var(--terracotta-soft); border-left: 3px solid var(--terracotta); }
.notice-tip { background: var(--good-soft); border-left: 3px solid var(--good); }
.notice-warn { background: var(--warn-soft); border-left: 3px solid var(--warn); }
.notice-icon { flex-shrink: 0; width: 18px; height: 18px; color: inherit; margin-top: 1px; }

/* --- Checklist --- */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: .5rem 0; display: flex; align-items: flex-start; gap: .7rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.checklist li:last-child { border-bottom: none; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* --- Finder Quiz --- */
.finder-section { background: var(--paper-alt); padding: 3.5rem 0; }
.finder-box { background: var(--card); border-radius: var(--radius-lg); max-width: 720px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow); }
.finder-header { background: var(--ink); padding: 1.7rem 2rem; color: var(--paper); }
.finder-header h2 { color: var(--paper); font-size: 1.3rem; margin-bottom: .3rem; }
.finder-header p { color: #C9BFB0; font-size: .89rem; margin: 0; }

.finder-progress-wrap { padding: 1.15rem 2rem; border-bottom: 1px solid var(--line); background: var(--card); }
.finder-progress-label { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-bottom: .5rem; font-weight: 600; }
.finder-progress-bar { height: 4px; background: var(--line); border-radius: 100px; }
.finder-progress-fill { height: 100%; background: var(--terracotta); border-radius: 100px; transition: width .3s ease; }

.finder-question { padding: 2rem; display: none; }
.finder-question.active { display: block; }
.finder-question h3 { font-size: 1.08rem; margin-bottom: 1.2rem; }
.finder-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.finder-option { border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; text-align: center; font-size: .89rem; font-weight: 600; color: var(--ink-soft); transition: all var(--transition); background: var(--card); display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.finder-option:hover { border-color: var(--terracotta); background: var(--terracotta-soft); }
.finder-option.selected { border-color: transparent; background: var(--terracotta); color: #fff; }
.finder-option-label { font-size: .75rem; color: var(--muted); font-weight: 400; }
.finder-nav { padding: 1.15rem 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.finder-results { padding: 2rem; display: none; }
.finder-results.active { display: block; }
.finder-results h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.finder-results p { color: var(--muted); margin-bottom: 1.4rem; }
.finder-result-cards { display: flex; flex-direction: column; gap: .8rem; }
.finder-result-card { display: flex; gap: 1rem; align-items: center; background: var(--paper-alt); border-radius: var(--radius); padding: 1rem 1.2rem; }
.finder-result-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .88rem; flex-shrink: 0; }
.finder-result-rank.gold { background: var(--terracotta); }
.finder-result-info { flex: 1; min-width: 0; }
.finder-result-info strong { display: block; font-size: .97rem; }
.finder-result-info span { display: block; font-size: .79rem; color: var(--muted); }
.finder-result-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.finder-restart { background: none; border: none; color: var(--terracotta-dark); cursor: pointer; font-size: .84rem; text-decoration: underline; font-weight: 600; }

@media (max-width: 520px) {
  .finder-options { grid-template-columns: 1fr; }
  .finder-question { padding: 1.5rem; }
  .finder-nav { padding: 1rem 1.5rem; }
  .finder-result-card { flex-wrap: wrap; }
  .finder-result-actions { width: 100%; justify-content: flex-start; }
}

/* --- Kosten-Rechner --- */
.rechner-box { background: var(--card); border-radius: var(--radius-lg); max-width: 780px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow); }
.rechner-header { background: var(--ink); padding: 1.7rem 2rem; color: var(--paper); }
.rechner-header h2 { color: var(--paper); font-size: 1.3rem; margin-bottom: .3rem; }
.rechner-header p { color: #C9BFB0; font-size: .89rem; margin: 0; }
.rechner-form { padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.rechner-field { display: flex; flex-direction: column; gap: .4rem; }
.rechner-field.full { grid-column: 1 / -1; }
.rechner-field label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.rechner-field select, .rechner-field input[type="number"] {
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem;
  font-size: .92rem; color: var(--ink-soft); background: var(--card); width: 100%;
}
.rechner-field select:focus, .rechner-field input[type="number"]:focus { border-color: var(--terracotta); }
.rechner-field .rechner-hint { font-size: .74rem; color: var(--muted); }
.rechner-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
.rechner-results { padding: 0 2rem 2rem; display: none; }
.rechner-results.active { display: block; }
.rechner-results h3 { font-size: 1.1rem; margin-bottom: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.rechner-result-card { background: var(--paper-alt); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: .8rem; }
.rechner-result-card h4 { font-size: .95rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.rechner-result-card p { font-size: .87rem; color: var(--ink-soft); margin-bottom: .3rem; }
.rechner-result-card .rechner-tag { display: inline-flex; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 100px; padding: .18rem .6rem; margin-left: auto; }
.rechner-tag.ja { background: var(--good-soft); color: var(--good); }
.rechner-tag.moeglich { background: var(--ochre-soft); color: var(--ochre-dark); }
.rechner-tag.nein { background: var(--bad-soft); color: var(--bad); }
.rechner-result-card .rechner-source { font-size: .72rem; color: var(--muted); margin-top: .5rem; }
.rechner-disclaimer { padding: 1rem 2rem 1.75rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .rechner-form { grid-template-columns: 1fr; padding: 1.5rem; }
  .rechner-results { padding: 0 1.5rem 1.5rem; }
  .rechner-disclaimer { padding: 1rem 1.5rem 1.5rem; }
}

/* --- Content Hub Cards (Ratgeber) --- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.hub-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: var(--ink-soft); transition: all var(--transition); box-shadow: var(--shadow-sm); }
.hub-card:hover { box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.hub-card-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--terracotta-soft); color: var(--terracotta-dark); }
.hub-grid .hub-card:nth-child(3n+2) .hub-card-icon { background: var(--ochre-soft); color: var(--ochre-dark); }
.hub-grid .hub-card:nth-child(3n+3) .hub-card-icon { background: var(--good-soft); color: var(--good); }
.hub-card h3 { font-size: .96rem; margin-bottom: 0; color: var(--ink); }
.hub-card p { font-size: .8rem; color: var(--muted); margin: 0; }
.hub-card-arrow { margin-top: auto; color: var(--terracotta-dark); font-size: .78rem; font-weight: 700; }

/* --- Article Layout --- */
.article-layout { display: grid; grid-template-columns: 1fr 250px; gap: 2.25rem; align-items: start; }
.article-content h2 { margin-top: 2rem; margin-bottom: .7rem; }
.article-content h3 { margin-top: 1.4rem; margin-bottom: .5rem; }
.article-content h2:first-child { margin-top: 0; }
.article-content ul, .article-content ol { margin-bottom: 1rem; }

.sidebar { position: sticky; top: 84px; }
.toc-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1.25rem; }
.toc-box h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .7rem; font-weight: 700; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a { display: block; padding: .28rem 0; font-size: .84rem; color: var(--muted); border-left: 2px solid transparent; padding-left: .7rem; transition: all var(--transition); }
.toc-list a:hover { color: var(--terracotta-dark); border-left-color: var(--terracotta); text-decoration: none; }

.sidebar-cta { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.15rem; text-align: left; }
.sidebar-cta h4 { color: var(--paper); font-size: .95rem; margin-bottom: .5rem; }
.sidebar-cta p { font-size: .82rem; color: #C9BFB0; margin-bottom: 1rem; }
.sidebar-cta .btn { background: var(--terracotta); color: #fff; width: 100%; }
.sidebar-cta .btn:hover { background: var(--terracotta-dark); }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.75rem 0 1.5rem; margin-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.25rem; }
.footer-logo { font-weight: 800; font-size: 1.02rem; color: var(--footer-heading); margin-bottom: .7rem; display: block; }
.footer-logo span { color: var(--footer-accent); }
.footer-desc { font-size: .84rem; line-height: 1.6; color: #A79C8B; }
.footer-col h4 { color: var(--footer-heading); font-size: .74rem; margin-bottom: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .3rem; }
.footer-col a { color: #A79C8B; font-size: .84rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--footer-accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-top: 1.15rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; font-size: .76rem; color: #6E6255; }
.footer-bottom a { color: #6E6255; }
.footer-bottom a:hover { color: #A79C8B; }
.footer-disclaimer { font-size: .76rem; color: #6E6255; margin-top: 1rem; line-height: 1.6; max-width: 720px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Offene Daten (Daten-Standard) ===== */
.breadcrumb { padding: .8rem 0; font-size: .8rem; color: var(--muted); background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.breadcrumb .container { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta-dark); }
.breadcrumb span { color: var(--line); opacity: .8; }
.prose { max-width: 760px; line-height: 1.7; }
.prose h2 { margin-top: 2rem; margin-bottom: .75rem; }
.prose ul { margin: 0 0 1rem 1.25rem; }
.info-box { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--terracotta); border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; margin: 1.2rem 0; font-size: .92rem; line-height: 1.65; }
.info-box.expert { border-left-color: var(--warn); background: var(--warn-soft); }
.info-box a { color: var(--terracotta-dark); font-weight: 600; }
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.data-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); text-decoration: none; color: inherit; display: block; }
.data-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.data-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--ink); }
.data-card p { font-size: .88rem; color: var(--muted); line-height: 1.55; margin-bottom: .7rem; }
.data-card .data-meta { font-size: .74rem; color: var(--terracotta-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.related-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin-top: 1rem; }
.related-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; text-decoration: none; color: inherit; transition: border-color var(--transition); box-shadow: var(--shadow-sm); }
.related-card:hover { box-shadow: var(--shadow); }
.related-card h4 { color: var(--ink); margin-bottom: .3rem; }
.related-card p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.changelog-list { list-style: none; padding: 0; }
.changelog-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.changelog-list li:last-child { border-bottom: none; }
.changelog-list strong { color: var(--ink); margin-right: .6rem; }
.cell-empty { color: var(--muted); }
