/* Ratgeber-Seiten: gleiche Optik wie die Landingpage (Inter, Brand-Blau,
   große Schrift für die ältere Zielgruppe), aber ohne Tailwind-Build,
   damit die Seiten als reines statisches HTML funktionieren. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/ratgeber/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/ratgeber/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/ratgeber/fonts/inter-latin-800-normal.woff2') format('woff2');
}

:root {
  --brand-50: #eef6ff;
  --brand-100: #d9eaff;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Abstands-Stufen (8er-Raster) für einen klaren Lese-Rhythmus. */
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-700);
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
}

/* ----- Kopfzeile: Logo links, CTA rechts (wie Landingpage). ----- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.2) blur(8px);
}
.kopf-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.kopf img { height: 30px; width: auto; display: block; }
.kopf a.logo-link { display: inline-flex; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  background: var(--brand-500);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 150ms ease;
}
.btn:hover { background: var(--brand-600); }
.btn svg { width: 18px; height: 18px; }

/* ----- Inhalt: schmale, gut lesbare Spalte (ca. 65 Zeichen). ----- */
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--s-8) var(--s-4) var(--s-16);
}

/* ----- Brotkrumen ----- */
.brotkrumen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin: 0;
}
.brotkrumen a { color: var(--brand-600); text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; }
.brotkrumen .sep { color: var(--slate-400); }

/* ----- Meta-Zeile (Kategorie-Pille + Lesezeit) ----- */
.meta-zeile {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.9375rem;
  color: var(--slate-500);
}
.pille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 700;
}
.pille svg { width: 15px; height: 15px; }
.lesezeit { display: inline-flex; align-items: center; gap: 6px; }
.lesezeit svg { width: 15px; height: 15px; color: var(--slate-400); }

/* ----- Überschriften ----- */
h1 {
  margin: var(--s-4) 0 0;
  font-size: 2.125rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}
@media (min-width: 640px) {
  h1 { font-size: 2.625rem; }
}

.untertitel {
  margin-top: var(--s-4);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--slate-600);
}

/* Abschnitte im Artikel: großer Abstand trennt die Themen klar. */
.abschnitt { margin-top: var(--s-12); scroll-margin-top: 84px; }

h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}
h3 {
  margin: var(--s-6) 0 0;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--slate-900);
}

/* Schritt-Kopf: nummeriertes Badge + Überschrift nebeneinander. */
.schritt-kopf {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.schritt-nr {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

p { margin: var(--s-4) 0 0; }
ul, ol { margin: var(--s-4) 0 0; padding-left: 24px; }
li { margin-top: var(--s-2); }
li::marker { color: var(--brand-500); font-weight: 700; }
strong { color: var(--slate-900); font-weight: 700; }
a { color: var(--brand-600); }

/* ----- Inhaltsverzeichnis ----- */
.inhalt {
  margin-top: var(--s-8);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: var(--s-6);
}
.inhalt h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.inhalt ol { margin-top: var(--s-3); padding-left: 20px; counter-reset: toc; list-style: none; }
.inhalt li { margin-top: 6px; counter-increment: toc; }
.inhalt li::before {
  content: counter(toc);
  color: var(--brand-600);
  font-weight: 800;
  margin-right: 10px;
}
.inhalt a { text-decoration: none; font-weight: 600; }
.inhalt a:hover { text-decoration: underline; }

/* ----- Merkkasten: das Wichtigste in Kürze ----- */
.merkkasten {
  margin-top: var(--s-8);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 20px;
  padding: var(--s-6) var(--s-8);
}
.merkkasten h2 {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.merkkasten h2 svg { width: 22px; height: 22px; color: var(--brand-600); }
.merkkasten ul { list-style: none; padding-left: 0; margin-top: var(--s-4); }
.merkkasten li {
  position: relative;
  padding-left: 30px;
  margin-top: var(--s-3);
}
.merkkasten li svg {
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  color: var(--brand-600);
}

/* ----- CTA-Kasten in den Wizard ----- */
.cta-kasten {
  margin-top: var(--s-16);
  background: linear-gradient(180deg, var(--brand-50), #ffffff);
  border: 1px solid var(--brand-100);
  border-radius: 24px;
  padding: var(--s-8);
  text-align: center;
}
.cta-kasten h2 { font-size: 1.5rem; }
.cta-kasten p { color: var(--slate-600); max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-kasten .btn { margin-top: var(--s-6); padding: 14px 28px; font-size: 1.125rem; }
.cta-kasten .cta-hinweis {
  margin-top: var(--s-3);
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.rechtshinweis {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--slate-200);
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* ----- Übersicht: Kategorien + Artikel-Karten ----- */
.kategorie { margin-top: var(--s-12); }
.kategorie-kopf {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--slate-200);
}
.kategorie-kopf svg { width: 26px; height: 26px; color: var(--brand-600); flex: 0 0 auto; }
.kategorie-kopf h2 { font-size: 1.375rem; }

.karten {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .karten { grid-template-columns: 1fr 1fr; }
}

.karte {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: var(--s-6);
  text-decoration: none;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
a.karte:hover {
  border-color: var(--brand-500);
  box-shadow: 0 10px 30px -12px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.karte h3 { margin: 0; font-size: 1.1875rem; color: var(--slate-900); line-height: 1.35; }
.karte p { color: var(--slate-600); margin-top: var(--s-2); font-size: 1rem; line-height: 1.6; flex: 1 1 auto; }
.karte .weiter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-4);
  color: var(--brand-600);
  font-weight: 700;
}
.karte .weiter svg { width: 18px; height: 18px; }

.karte-bald { border-style: dashed; }
.karte-bald h3 { color: var(--slate-600); }
.karte-bald p { color: var(--slate-500); }
.bald-badge {
  align-self: flex-start;
  margin-top: var(--s-4);
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
}

/* ----- Fußzeile: Legal-Links (wie Landingpage). ----- */
.fuss {
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.fuss-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--s-6) var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.9375rem;
  color: var(--slate-500);
}
.fuss nav { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.fuss a { color: var(--slate-600); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.karte:hover { transform: none; }
}
