/* Ratgeber — gemeinsames Stylesheet für alle Artikel auf fahrpilot.ch
 *
 * Bewusst eine eigene Datei statt Inline-CSS: die Startseite trägt ihr CSS
 * inline, weil dort jede Millisekunde bis zum ersten Bild zählt. Ein
 * Ratgeber-Artikel wird gelesen, nicht überflogen, und zehn Seiten teilen
 * sich hier eine Datei, die der Browser genau einmal lädt.
 *
 * Die Farbwerte sind identisch mit index.html. Wird dort die Palette
 * geändert, muss sie hier mitgeändert werden.
 */

:root {
  --blue: #2f5fb0;
  --blueD: #24488a;
  --blueL: #6f9be6;
  --silver: #cdd9ef;
  --bg: #06080c;
  --bg2: #0a0e15;
  --card: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .10);
  --tx: #e8ecf3;
  --mut: #9aa5b6;
  --mut2: #7f8aa0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 26px; }

/* ---------- Kopfbereich ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 12, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

header .hbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand .m {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  object-fit: cover;
  flex: none;
}

.brand b { font-size: 19px; font-weight: 800; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: #c3ccd9; font-size: 14px; font-weight: 600; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }

.nav .cta {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  padding: 9px 16px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13.5px;
}

.nav .cta:hover { background: rgba(255, 255, 255, .14); }

@media (max-width: 780px) {
  .nav .link { display: none; }
  .nav { gap: 14px; }
}

/* ---------- Artikel ---------- */

.artwrap { max-width: 760px; margin: 0 auto; padding: 0 26px; }

.artikel { padding: 54px 0 24px; }

.crumb { font-size: 12.5px; color: var(--mut2); margin-bottom: 22px; }
.crumb a:hover { color: var(--tx); }
.crumb span { margin: 0 7px; }
.crumb .cur { color: var(--blueL); }

.eyebrow {
  display: block;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blueL);
  font-weight: 700;
}

.artikel h1 {
  margin-top: 15px;
  font-size: clamp(29px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
  color: var(--mut2);
}

.body { margin-top: 38px; }

.body p {
  color: var(--mut);
  font-size: 16.5px;
  line-height: 1.72;
  margin-bottom: 19px;
}

.body strong { color: var(--tx); font-weight: 700; }

.body h2 {
  color: var(--tx);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 42px 0 15px;
}

.body a.inline {
  color: var(--blueL);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(111, 155, 230, .42);
  text-underline-offset: 3px;
}

.body a.inline:hover { color: #fff; text-decoration-color: #fff; }

.body ul { list-style: none; margin: 0 0 19px; }

.body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--mut);
  font-size: 16.5px;
  line-height: 1.72;
  margin-bottom: 13px;
}

.body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blueL);
}

/* Nummerierte Schritte bleiben ein echtes <ol>: die Reihenfolge ist Teil der
 * Aussage, nicht der Optik. Der globale padding:0-Reset nimmt der Liste sonst
 * ihre Zaehler, deshalb wird hier gegengesteuert. */
.body ol { list-style: none; counter-reset: schritt; margin: 0 0 19px; }

.body ol li {
  position: relative;
  counter-increment: schritt;
  padding-left: 40px;
  color: var(--mut);
  font-size: 16.5px;
  line-height: 1.72;
  margin-bottom: 15px;
}

.body ol li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(47, 95, 176, .18);
  border: 1px solid rgba(120, 160, 230, .30);
  color: var(--blueL);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hervorgehobener Absatz: unser Ansatz */
.ansatz {
  margin: 30px 0;
  border: 1px solid rgba(111, 155, 230, .30);
  background: rgba(47, 95, 176, .10);
  border-radius: 18px;
  padding: 24px;
}

.ansatz .kicker {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blueL);
  font-weight: 800;
  margin-bottom: 9px;
}

.ansatz p { color: var(--tx); font-size: 15.5px; margin: 0; line-height: 1.68; }

/* ---------- Häufige Fragen ---------- */

.faq { margin-top: 54px; }
.faq h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 20px; }

.faq .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
}

.faq .card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--tx); }
.faq .card p { font-size: 14.5px; color: var(--mut); line-height: 1.68; margin: 0; }

/* ---------- Abschluss-Aufruf ---------- */

.ctaband {
  margin: 56px 0 20px;
  background: radial-gradient(120% 130% at 80% 0%, #23417a 0%, #0a0e15 60%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 30px;
  text-align: center;
}

.ctaband h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.ctaband p { color: #c3ccd9; margin: 13px auto 24px; max-width: 46ch; font-size: 15.5px; line-height: 1.65; }

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .2s ease;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blueL); outline-offset: 4px; }

.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 16px 34px rgba(47, 95, 176, .4); }
.btn-blue:hover { background: var(--blueD); box-shadow: 0 20px 40px rgba(47, 95, 176, .5); }

.btn-glass {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover { background: rgba(255, 255, 255, .13); }

/* ---------- Übersichtsseite ---------- */

.hub { padding: 62px 0 10px; }
.hub h1 { font-size: clamp(32px, 5.5vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin-top: 15px; }
.hub .lead { color: var(--mut); font-size: 17px; line-height: 1.7; max-width: 60ch; margin-top: 17px; }

.artliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin: 44px 0 20px; }

.artkarte {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s ease, background .2s ease;
}

.artkarte:hover { transform: translateY(-4px); border-color: rgba(120, 160, 230, .34); background: rgba(255, 255, 255, .06); }
.artkarte .tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blueL); font-weight: 800; }
.artkarte h2 { font-size: 19px; font-weight: 800; margin: 11px 0 9px; line-height: 1.28; letter-spacing: -.01em; }
.artkarte p { font-size: 14.5px; color: var(--mut); line-height: 1.65; }
.artkarte .weiter { display: inline-block; margin-top: 15px; font-size: 13.5px; font-weight: 800; color: var(--blueL); }

/* ---------- Fussbereich ---------- */

footer { border-top: 1px solid var(--line); padding: 46px 0 26px; color: var(--mut); margin-top: 40px; }
footer .top { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: #fff; }
footer .fcol { display: flex; flex-direction: column; gap: 9px; }
footer .fcol h5 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
footer .fcol a { font-size: 13px; color: var(--mut2); }

footer .fbottom {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--mut2);
}

footer .fbottom a { color: var(--mut); text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
