/* FR8 Driver Assistant — Online-Hilfe. Mobil zuerst: Fahrer öffnen die Seite meist am Telefon.
   Farben und Bereichsfarben wie im Druck-Handout (src/print/print.css). */
@import url('fonts/inter.css');

:root {
  --navy: #0F172A;
  --navy-2: #1B2638;
  --navy-3: #24324C;
  --sky: #38BDF8;
  --brand: #0A5CFF;
  --ink: #0F172A;
  --ink-2: #475569;
  --line: #E2E8F0;
  --paper: #FFFFFF;
  --paper-2: #EEF3F9;
  --area: var(--sky);
  --area-ink: #04121F;
  --wrap: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 'Inter Variable', Inter, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: var(--brand); }
img { max-width: 100%; }
main { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 48px; }

/* ---------- Kopf ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--navy); color: #fff;
  border-bottom: 3px solid var(--area);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; background: #fff; }
.brand small { display: block; font-weight: 500; color: #B3C2D6; font-size: 13px; }

.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; background: var(--navy-3); font-weight: 700; font-size: 13px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); min-width: 170px;
}
.langs li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.langs li a:hover, .langs li a[aria-current] { background: var(--paper-2); }
.flag { width: 21px; height: 14px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }

/* ---------- Startseite ---------- */
.hero { display: flex; align-items: center; gap: 16px; margin: 8px 0 20px; }
.hero-icon { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 4px 14px rgba(15, 23, 42, .2), 0 0 0 1px rgba(15, 23, 42, .08); flex: none; }
.hero h1 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.hero-hand { margin: 4px 0 0; color: var(--ink-2); }

.get-app { background: var(--navy); color: #fff; border-radius: 16px; padding: 18px; margin: 20px 0 28px; }
.get-app h2 { margin: 0 0 4px; font-size: 18px; }
.get-app p { margin: 0 0 14px; color: #B3C2D6; font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stores a { display: block; line-height: 0; }
.badge-apple { height: 44px; }
.badge-google { height: 57px; margin: -6.5px -5px; } /* Google-Badge hat eigenen Rand */

.get-pdf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper-2); border-radius: 16px; padding: 18px; margin: -12px 0 28px; }
.get-pdf h2 { margin: 0 0 4px; font-size: 18px; }
.get-pdf p { margin: 0; color: var(--ink-2); font-size: 15px; }
.get-pdf .pdf-print { margin-top: 6px; font-size: 14px; }
.get-pdf .btn { margin-top: 0; }
.get-pdf .btn small { font-weight: 500; color: #B3C2D6; margin-left: 4px; }

.list-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 10px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles a {
  display: flex; flex-direction: column; height: 100%; min-height: 104px; padding: 12px 12px 14px;
  border-radius: 14px; background: var(--paper-2); color: var(--ink); text-decoration: none;
  border-top: 4px solid var(--area);
}
.tiles a:hover { background: #E3EAF3; }
.tile-no { font-weight: 800; font-size: 13px; color: var(--ink-2); }
.tile-area { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.tile-title { margin-top: auto; font-weight: 700; font-size: 15px; line-height: 1.25; padding-top: 8px; }
.tiles a.is-soon .tile-title { color: var(--ink-2); }

.pick { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 700; }
.pick .flag { width: 30px; height: 20px; }

/* ---------- Suche (Pagefind) ---------- */
.search { margin: 0 0 20px; --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--brand); --pagefind-ui-text: var(--ink); --pagefind-ui-border: var(--line); --pagefind-ui-border-radius: 10px; --pagefind-ui-font: inherit; }

.search input.pagefind-ui__search-input { font-weight: 500; color: var(--ink); }
.search input.pagefind-ui__search-input::placeholder { color: var(--ink-2); opacity: 1; }

/* ---------- Kapitel ---------- */
.crumb { display: inline-block; font-size: 14px; text-decoration: none; margin-bottom: 10px; }
.ch-head { margin-bottom: 18px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--area); }
.ch-head h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }

.part + .part { margin-top: 32px; }
.part > h2 { font-size: 21px; margin: 0 0 12px; letter-spacing: -.01em; }
.sec + .sec { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.sec h3 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sec h3::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--area); }

/* Screenshots: am Telefon waagerecht wischen, auf großen Bildschirmen nebeneinander */
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px 16px; padding: 16px; background: var(--paper-2);
}
.shot { margin: 0; flex: none; width: min(62vw, 240px); scroll-snap-align: center; }
.shot-img { position: relative; }
.shot figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--ink-2); text-align: center; }
.shot figcaption .mk { font-size: .9em; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  outline: 3px solid var(--navy-3); box-shadow: 0 6px 16px rgba(15, 23, 42, .25);
}
.mk-abs {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--area); color: var(--area-ink); border: 2px solid #fff;
  font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.mk {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: .08em;
  width: 1.15em; height: 1.15em; border-radius: 50%; margin: 0 .1em;
  background: var(--area); color: var(--area-ink); font-size: .8em; font-weight: 800; line-height: 1;
}

/* ---------- Text ---------- */
.text p { margin: 0 0 12px; }
.text strong { font-weight: 650; }
.text ul, .text ol { margin: 0 0 14px; padding-left: 24px; }
.text li { margin-bottom: 6px; }
.text ol { list-style: none; counter-reset: n; padding-left: 32px; }
.text ol > li { counter-increment: n; position: relative; }
.text ol > li::before {
  content: counter(n); position: absolute; left: -32px; top: 2px;
  width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.text ol > li.mk-step::before { display: none; }
.text ul > li::marker { color: var(--area); }
.text table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.text th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border-bottom: 2px solid var(--navy); padding: 0 8px 6px 0; }
.text td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }

/* Kästen */
.box { border-radius: 12px; padding: 12px 14px 2px; margin: 0 0 16px; position: relative; }
.box-title { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.box-tipp { background: #E0F2FE; border-left: 5px solid var(--sky); }
.box-tipp .box-title { color: #0369A1; }
.box-wichtig { background: #FFF1F2; border-left: 5px solid #E11D48; }
.box-wichtig .box-title { color: #BE123C; }
.box-gesetz { background: #FEF3C7; border-radius: 4px; padding-right: 56px; box-shadow: 0 4px 10px rgba(120, 80, 0, .18); }
.box-gesetz::after { content: '§'; position: absolute; right: 14px; top: 4px; font-size: 40px; font-weight: 300; color: #B45309; }
.box-gesetz .box-title { color: #92400E; }

/* ---------- Platzhalter ---------- */
.soon { text-align: center; background: var(--paper-2); border-radius: 16px; padding: 32px 20px; margin: 8px 0 24px; }
.soon-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--area); color: var(--area-ink); font-size: 28px; display: flex; align-items: center; justify-content: center; }
.soon-title { font-weight: 800; font-size: 19px; margin: 0 0 6px; }
.soon p { margin: 0 0 8px; color: var(--ink-2); }
.btn { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; }

/* ---------- Blättern & Fuß ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
.pager a { display: block; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.pager small { display: block; font-weight: 500; color: var(--ink-2); font-size: 13px; }
.pager .next { text-align: right; }

.foot { background: var(--navy); color: #B3C2D6; text-align: center; padding: 28px 16px 36px; font-size: 14px; }
.foot img { width: 120px; }
.foot p { margin: 8px 0 0; }
.foot a { color: #fff; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 720px) {
  main { padding-top: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pick { grid-template-columns: repeat(3, 1fr); }
  .shots { margin: 0 0 18px; border-radius: 16px; justify-content: center; overflow: visible; }
  .shot { width: 220px; }
  .hero h1 { font-size: 32px; }
}
