/* Ratgeber-Seiten — eigenständiges Stylesheet.
   Die Startseite trägt ihr CSS inline; die Ratgeberseiten teilen sich dieses hier
   und `preiskarte.css`. Farbwelt und Schrift sind die CE-Vorgabe
   (Navy #1b1c40, Sand #b99552, Inter lokal aus ../fonts/). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1b1c40;
  --navy-dark: #131331;
  --navy-mid: #34366b;
  --navy-soft: #ededf2;
  --accent: #b99552;
  --accent-light: #cbab6b;
  --sand: #f6f2ea;
  --white: #ffffff;
  --ink: #1E2A30;
  --gray: #5E6B72;
  --line: #E4E0D6;
  --font-display: "Inter", -apple-system, 'Segoe UI', sans-serif;
  --font-body: "Inter", -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow: 0 10px 34px rgba(27, 28, 64, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; letter-spacing: -0.02em; }

/* ---------- Navigation (wie Startseite) ----------
   ⚠️ Der Selektor MUSS `.hauptnav` heißen, nicht `nav`. Die Ratgeberseiten haben
   ein zweites <nav>: die Brotkrumen. Mit `nav { position: fixed }` klebte die
   Brotkrumenleiste am 14.08.2026 selbst am oberen Rand, lag über der
   Navigation und schnitt das Logo an — auf der Startseite fiel das nie auf,
   weil es dort nur ein einziges <nav> gibt. */
.hauptnav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(19, 19, 49, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { color: var(--white); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.brand-text .stadt { color: var(--accent-light); }
.brand-text small { display: block; font-weight: 500; font-size: 0.62rem; color: #A9AAC6; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a { color: #D9DAE8; text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--accent); color: var(--navy-dark) !important; padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--accent-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: 0; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-dark); padding: 0.6rem 1.25rem 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.55rem 0; }
  .nav-cta { text-align: center; }
}

/* ---------- Grundgerüst ---------- */
.rg { padding: 7.6rem 0 3rem; }
.rg-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.rg-brotkrumen { position: static; font-size: 0.8rem; color: var(--gray); margin-bottom: 1.5rem; }
.rg-brotkrumen a { color: var(--gray); }
.rg-kategorie {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-mid);
  margin-bottom: 0.6rem;
}
.rg-kopf { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.rg-kopf h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; color: var(--navy-dark); }
.rg-vorspann { font-size: 1.1rem; color: var(--gray); margin-top: 0.9rem; line-height: 1.6; }
.rg-meta { font-size: 0.78rem; color: var(--gray); margin-top: 1rem; }

.rg h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.75rem); font-weight: 800; color: var(--navy-dark);
  margin: 2.6rem 0 0.9rem; scroll-margin-top: 90px;
}
.rg h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy-dark); margin: 1.7rem 0 0.5rem; }
.rg p { margin-bottom: 1.05rem; }
.rg ul, .rg ol { margin: 0 0 1.2rem 1.3rem; }
.rg li { margin-bottom: 0.45rem; }
.rg strong { color: var(--navy-dark); }

/* ---------- Merker / Zitatkasten ---------- */
.rg-merker {
  background: var(--sand); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 1.05rem 1.25rem; margin: 1.6rem 0;
}
.rg-merker p { margin: 0; font-size: 0.97rem; }

/* ---------- Tabellen ---------- */
.rg-tabelle { overflow-x: auto; margin: 1.4rem 0 0.4rem; -webkit-overflow-scrolling: touch; }
.rg-tabelle table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.rg-tabelle caption {
  caption-side: top; text-align: left; font-size: 0.84rem; color: var(--gray);
  padding-bottom: 0.5rem;
}
.rg-tabelle th, .rg-tabelle td {
  padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left;
  white-space: nowrap;
}
.rg-tabelle thead th {
  background: var(--navy-soft); color: var(--navy-dark); font-weight: 700;
  font-size: 0.82rem; border-bottom: 2px solid var(--line);
}
.rg-tabelle tbody th { font-weight: 600; color: var(--navy-dark); }
.rg-tabelle .rg-num { text-align: right; font-variant-numeric: tabular-nums; }
.rg-tabelle tbody tr:hover { background: #fbfaf7; }
.rg-tabelle tr.rg-hervor { background: #faf7ef; }
.rg-tabelle tr.rg-hervor td { font-weight: 600; }
.rg-lang table { font-size: 0.85rem; }
.rg-lang { max-height: 30rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.rg-lang thead th { position: sticky; top: 0; z-index: 1; }
.rg-matrix table { font-size: 0.82rem; }
.rg-matrix thead tr:first-child th { text-align: center; border-left: 1px solid var(--line); }

.rg-quelle { font-size: 0.74rem; color: var(--gray); line-height: 1.5; margin: 0.5rem 0 1.6rem; }

/* ---------- Diagramme ---------- */
.rg-figur { margin: 1.6rem 0; }
.rg-chart { display: block; width: 100%; height: auto; background: #fff; }
.rg-chart-achse { font-size: 12px; fill: #8b93a0; font-family: var(--font-body); }
.rg-chart-legende {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem;
  font-size: 0.78rem; color: var(--gray); margin-top: 0.4rem;
}
.rg-chart-legende span { display: inline-flex; align-items: center; gap: 0.4rem; }
.rg-chart-legende i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.rg-figur figcaption { font-size: 0.74rem; color: var(--gray); line-height: 1.5; margin-top: 0.5rem; }

/* ---------- Kennzahlen ---------- */
.rg-kennzahlen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem; margin: 1.6rem 0 0.4rem;
}
.rg-kennzahl { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.1rem 1.2rem; }
.rg-kennzahl h3 { font-size: 0.82rem; color: var(--gray); margin: 0 0 0.3rem; font-weight: 700; }
.rg-wert { font-size: 1.7rem; font-weight: 800; color: var(--navy-dark); font-variant-numeric: tabular-nums; margin: 0; line-height: 1.15; }
.rg-wert-sub { font-size: 0.76rem; color: var(--gray); margin: 0.3rem 0 0; line-height: 1.45; }
.rg-wert-note { font-size: 0.76rem; color: var(--navy-mid); font-weight: 600; margin: 0.35rem 0 0; }

.rg-spanne {
  background: var(--navy-soft); border-radius: 12px; padding: 1.1rem 1.25rem;
  font-size: 0.97rem; margin: 1.5rem 0;
}

/* ---------- Karte im Beitrag ---------- */
.rg-karte { margin: 1.6rem 0 0.5rem; }
.rg-karte .pk-layout { grid-template-columns: minmax(0, 1fr) 290px; }
@media (max-width: 820px) { .rg-karte .pk-layout { grid-template-columns: 1fr; } }

/* ---------- Handlungsaufforderung ---------- */
.rg-cta {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #26284f 100%);
  color: #fff; border-radius: 16px; padding: 2rem 1.7rem 1.8rem; margin: 2.6rem 0;
}
.rg-cta h2 { color: #fff; margin: 0 0 0.7rem; font-size: 1.45rem; }
.rg-cta p { color: #CDCEDF; font-size: 0.97rem; }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--navy-dark);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: 0.9rem 1.7rem; border-radius: var(--radius); border: none; cursor: pointer;
  font-family: inherit; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.rg-cta-note { font-size: 0.8rem; color: #A9AAC6; margin: 0.8rem 0 0; }

/* ---------- Übersichtsseite ---------- */
.rg-uebersicht {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin: 2rem 0 1rem;
}
.rg-karte-link {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.3rem 1.4rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rg-karte-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-mid); }
.rg-karte-link h2 { font-size: 1.16rem; margin: 0 0 0.5rem; }
.rg-karte-link p { font-size: 0.88rem; color: var(--gray); margin: 0; }
.rg-mehr { display: inline-block; margin-top: 0.9rem; font-size: 0.86rem; font-weight: 700; color: var(--navy-mid); }

/* ---------- Fußzeile ---------- */
footer { background: var(--navy-dark); color: #A9AAC6; padding: 2.4rem 0; margin-top: 3rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; font-size: 0.85rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0.8rem 0; }
.footer-links a { color: #D9DAE8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-service { font-size: 0.76rem; line-height: 1.6; margin-top: 0.8rem; color: #8A8CA8; }
.footer-service a { color: #D9DAE8; }

@media (max-width: 620px) {
  .rg { padding-top: 6.4rem; }
  .rg-tabelle table { font-size: 0.84rem; }
}
