
:root {
  --bg: #f6f5f2;
  --text: #1c2228;
  --muted: #5c6670;
  --line: #dde2e8;
  --schnell-bg: #fff9f0;
  --schnell-accent: #c45c26;
  --schnell-border: #f0d4b8;
  --wissen-bg: #f2f8f4;
  --wissen-accent: #2d6a4f;
  --wissen-border: #b8d4c4;
  --experte-bg: #f0f4fa;
  --experte-accent: #2c5282;
  --experte-border: #b8c9e0;
  --karte: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(28, 34, 40, 0.06);
  --max: 44rem;
  --max-wide: 78rem;
  font-size: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem; z-index: 99; }

.seitenkopf-v4 {
  background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0 0.5rem;
}
.kopf-innen, .seitenfuss-v4 {
  width: min(var(--max-wide), calc(100% - 1.25rem));
  margin: 0 auto;
}
.kopf-zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem 1.25rem;
}
.kopf-marke { flex: 1 1 14rem; min-width: 0; }
.marke { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }
.marke a { color: var(--wissen-accent); text-decoration: none; }
.unterzeile { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.kopf-recht {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  padding-top: 0.2rem;
}
.kopf-recht a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.kopf-recht a:hover { color: var(--wissen-accent); }
body.seite-impressum .kopf-recht a[href="impressum.html"],
body.seite-datenschutz .kopf-recht a[href="datenschutz.html"] {
  color: var(--wissen-accent);
  font-weight: 600;
}

.hauptnavigation { margin-top: 0.55rem; }
.nav-leiste { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: flex-start; }
.nav-start, .nav-gruppe-titel {
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.nav-start.ist-aktiv, .nav-gruppe .ist-aktiv { border-color: var(--wissen-accent); color: var(--wissen-accent); }
.nav-gruppe { border: none; margin: 0; }
.nav-liste { list-style: none; margin: 0.35rem 0 0; padding: 0.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.nav-liste a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.nav-liste a:hover { color: var(--wissen-accent); }

.haupt-v4 {
  padding: 1rem 0 2.5rem;
  width: min(var(--max-wide), calc(100% - 1.25rem));
  margin-left: auto;
  margin-right: auto;
}
.seitenfuss-v4 {
  width: min(var(--max-wide), calc(100% - 1.25rem));
  margin-left: auto;
  margin-right: auto;
}
body.seite-start .haupt-v4 { width: min(52rem, calc(100% - 1.25rem)); }
body.seite-legal .haupt-v4,
body.seite-legal .seitenfuss-v4 {
  width: min(42rem, calc(100% - 1.25rem));
}
body.seite-legal .haupt-v4 h1 {
  margin-top: 0;
  font-size: 1.75rem;
}
body.seite-legal .haupt-v4 p { max-width: 38rem; }

article.ratgeber-seite > h1 {
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 750;
}
p.einleitung {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: var(--max);
}


.ratgeber-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.ratgeber-toc {
  margin: 0;
  flex: none;
}
.ratgeber-layout > .ratgeber-seite {
  min-width: 0;
  margin: 0;
}
@media (min-width: 56rem) {
  .ratgeber-layout {
    display: grid;
    grid-template-columns: 14.25rem minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
  }
  .ratgeber-toc {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0.5rem;
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
  .ratgeber-layout > .ratgeber-seite {
    grid-column: 2;
    grid-row: 1;
  }
}

.inhaltsverzeichnis, nav.inhaltsverzeichnis {
  background: var(--karte);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.inhaltsverzeichnis ul, .toc-ebenen {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.inhaltsverzeichnis li { margin: 0.35rem 0; }
.inhaltsverzeichnis a { color: var(--experte-accent); text-decoration: none; }
.inhaltsverzeichnis a:hover { text-decoration: underline; }

.ebene {
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.35rem;
  margin: 1.35rem 0;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.ebene-schnell {
  background: var(--schnell-bg);
  border-color: var(--schnell-border);
}
.ebene-wissen {
  background: var(--wissen-bg);
  border-color: var(--wissen-border);
}
.ebene-experte {
  background: var(--experte-bg);
  border-color: var(--experte-border);
}
p.ebene-kopf {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ebene-schnell p.ebene-kopf { color: var(--schnell-accent); }
.ebene-wissen p.ebene-kopf { color: var(--wissen-accent); }
.ebene-experte p.ebene-kopf { color: var(--experte-accent); }

.ebene h2 {
  font-size: 1.28rem;
  margin: 1.35rem 0 0.65rem;
  line-height: 1.3;
}
.ebene h2:first-of-type { margin-top: 0.5rem; }
.ebene h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.4rem;
  color: var(--text);
}
.ebene p { margin: 0.55rem 0; max-width: var(--max); }
.ebene-lead {
  font-size: 1.08rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  border-left: 4px solid currentColor;
}
.ebene-schnell .ebene-lead { border-left-color: var(--schnell-accent); }

aside.glossar, .glossar-float {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}
.ratgeber-layout .ratgeber-seite .glossar-float {
  float: right;
  width: min(100%, 16rem);
  margin: 0 0 0.75rem 1rem;
}
.ebene-schnell::after,
.ebene-wissen::after,
.ebene-experte::after {
  content: "";
  display: block;
  clear: both;
}
.ratgeber-layout .ratgeber-seite table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.toc-kapitel {
  list-style: none;
  margin: 0.25rem 0 0.35rem;
  padding: 0 0 0 0.65rem;
  border-left: 2px solid var(--line);
  font-size: 0.84rem;
}
.toc-kapitel li { margin: 0.2rem 0; }

figure.seiten-hero,
figure.ratgeber-bild-stufen {
  margin: 1.35rem 0 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--karte);
}
figure.seiten-hero img,
figure.ratgeber-bild-stufen img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
figure.ratgeber-bild-stufen {
  margin: 2rem 0 2.25rem;
  border: 1px solid var(--line);
  box-shadow: none;
}

.kasten, .checkliste {
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
}
.checkliste ul, .kasten ul, .ablauf-liste {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}
.checkliste li, .ablauf-liste li { margin: 0.35rem 0; }
.ablauf-liste { list-style: disc; }

.ablauf-kette {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1rem 0 1.2rem;
  max-width: 36rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.ablauf-schritt {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--wissen-bg);
  border: 1px solid var(--wissen-border);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.93rem;
  max-width: 36rem;
}
.ablauf-schritt > span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--wissen-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.12rem;
}
.ablauf-pfeil {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.15rem 0;
  max-width: 36rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.85rem 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
th, td { padding: 0.5rem 0.65rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(0, 0, 0, 0.04); font-weight: 600; }
tr:last-child td { border-bottom: none; }

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}
a.karte {
  display: block;
  padding: 0.75rem 0.85rem;
  background: var(--karte);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, transform 0.15s;
}
a.karte:hover { border-color: var(--wissen-accent); transform: translateY(-2px); }
a.karte strong { color: var(--wissen-accent); }

section#fragen, section#faq {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
section#faq h3 { font-size: 1rem; margin: 1rem 0 0.35rem; }
.quellen ul { padding-left: 1.1rem; }

.seitenfuss-v4 {
  padding: 1.25rem 0 2rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}
.fuss-hinweis { margin-top: 0.35rem; }
.fuss-ki { margin-top: 0.25rem; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 55.99rem) {
  .ratgeber-layout .ratgeber-seite .glossar-float {
    float: none;
    width: 100%;
    margin-left: 0;
  }
}
