/* Farizon Sachsen – Schäfer Automobile
   Designsystem nach Vorlage "Landingpage Farizon QR-Code". Mobile first. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f1f4f9;
  --bg-ph: #e5e9f2;
  --accent: #1570ef;
  --accent-dark: #0e5bc9;
  --accent-soft: #e8f1fe;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1180px;
  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 72px; /* Platz für mobile CTA-Leiste */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 40px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typografie ---------- */
h1, h2, h3, .h-cond {
  font-family: var(--font-head);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 8.6vw, 60px); }
h2 { font-size: clamp(28px, 6vw, 40px); }
h3 { font-size: 22px; line-height: 1.1; }
h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.fineprint { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--ink-2); max-width: 66ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font: 600 15px/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \203A"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { text-decoration: none; color: var(--ink); line-height: 1; margin-right: auto; }
.logo__word { font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap; }
.logo__word span { color: var(--accent); }
.logo__sub { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 6px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn--chat { display: none; }
.menu-btn {
  width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--accent); }

@media (min-width: 1200px) {
  .nav { display: flex; gap: 22px; margin-right: 12px; }
  .menu-btn, .mobile-nav, .mobile-nav.is-open { display: none; }
  .header-actions .btn--chat { display: inline-flex; }
}
@media (max-width: 420px) {
  .logo__word { font-size: 19px; }
  .header-actions .btn--probe { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); padding: 40px 0 48px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p { color: var(--ink-2); max-width: 46ch; }
.hero .btn-row { margin-top: 24px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* Fotoplatzhalter / Fotos */
.photo {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-ph);
  aspect-ratio: 4 / 3; position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--ph {
  border: 1.5px dashed #9aa6bb; display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center; font-size: 13px; color: var(--muted);
}
.photo--wide { aspect-ratio: 16 / 9; }

/* ---------- Kacheln & Karten ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
}
.stat__num {
  font-family: var(--font-head); font-stretch: 75%; font-weight: 800;
  font-size: clamp(21px, 5.6vw, 26px); line-height: 1.05; color: var(--accent); display: block;
}
.stat__label { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: block; margin-top: 4px; }

.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h4 { font-size: 16.5px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.card p + p { margin-top: 8px; }
.card--soft { background: var(--bg-soft); border-color: transparent; }
.card__num {
  font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 30px;
  color: var(--accent); line-height: 1; display: block; margin-bottom: 14px;
}
.card .link-arrow { display: inline-block; margin-top: 12px; font-size: 14.5px; }

/* ---------- Modelle / Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.tab {
  min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font: 600 14px/1 var(--font-body); cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabpanel[hidden] { display: none; }

.model {
  background: var(--bg-soft); border-radius: 14px; padding: 20px 16px;
}
@media (min-width: 700px) { .model { padding: 28px; } }
.model__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.model__head h3 { font-size: 30px; margin-bottom: 8px; }
.model__head p { margin: 0; color: var(--ink-2); max-width: 60ch; font-size: 15px; }
.price { text-align: left; }
.price__label { font-size: 12px; color: var(--muted); display: block; }
.price__value { font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 34px; line-height: 1; display: block; margin: 2px 0; }
.price__note { font-size: 12px; color: var(--muted); }
@media (min-width: 700px) { .price { text-align: right; } }
.model .stats { margin-bottom: 20px; }
@media (min-width: 700px) { .model .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .model .stats { grid-template-columns: repeat(6, 1fr); } }
.model__foot { margin-top: 18px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 22px; }
@media (min-width: 700px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .checks--4 { grid-template-columns: repeat(4, 1fr); } }
.checks li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Tabellen ---------- */
.table-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  background: var(--dark); color: #fff; text-align: left; font-weight: 600; font-size: 13px;
  padding: 11px 12px; white-space: nowrap;
}
table.data td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.data td:first-child { font-weight: 700; }
table.data .num { text-align: right; white-space: nowrap; font-weight: 700; }
table.data tbody tr:nth-child(even) td { background: #fafbfd; }
/* mobil: Zeilen als Karten */
@media (max-width: 760px) {
  table.data--cards thead { display: none; }
  table.data--cards, table.data--cards tbody, table.data--cards tr, table.data--cards td { display: block; width: 100%; }
  table.data--cards tr { border-top: 1px solid var(--line); padding: 10px 14px; }
  table.data--cards tr:first-child { border-top: 0; }
  table.data--cards tbody tr:nth-child(even) td { background: transparent; }
  table.data--cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  table.data--cards td::before { content: attr(data-label); font-weight: 400; color: var(--muted); text-align: left; }
  table.data--cards td:first-child { font-size: 16px; padding-bottom: 6px; }
  table.data--cards td:first-child::before { content: none; }
  table.data--cards .num { text-align: right; }
}
.kv { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Finder & Rechner ---------- */
.tool { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; }
@media (min-width: 700px) { .tool { padding: 28px; } }
.q { border: 0; margin: 0 0 20px; padding: 0; }
.q--flat { margin: 0; }
.q legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.result {
  margin-top: 6px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft);
}
.result[hidden] { display: none; }
.result h4 { font-family: var(--font-head); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.result p { font-size: 14.5px; color: var(--ink-2); }

.calc { display: grid; gap: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.range { width: 100%; accent-color: var(--accent); height: 28px; }
.range-out { font-weight: 700; }
.calc__out { background: var(--dark); color: #fff; border-radius: 14px; padding: 22px; }
.calc__out .big { font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 48px; line-height: 1; display: block; margin: 6px 0 4px; }
.calc__out .lbl { font-size: 13px; color: #cbd5e1; }
.calc__rows { margin-top: 18px; border-top: 1px solid #334155; }
.calc__rows div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #334155; font-size: 14px; }
.calc__rows dt { color: #cbd5e1; }
.calc__rows dd { margin: 0; font-weight: 700; }
details.assume { margin-top: 16px; }
details.assume summary { cursor: pointer; font-weight: 600; color: var(--accent); }

/* ---------- Ansprechpartner ---------- */
.person { display: flex; gap: 16px; align-items: center; }
.person__img {
  width: 76px; height: 76px; border-radius: 50%; flex: none; background: var(--bg-ph);
  border: 1.5px dashed #9aa6bb; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); text-align: center; overflow: hidden;
}
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-weight: 700; font-size: 17px; display: block; }
.person__role { color: var(--muted); font-size: 14px; display: block; }
.person__tel { font-weight: 700; font-size: 17px; text-decoration: none; display: inline-block; margin-top: 4px; }

/* ---------- Formular ---------- */
.form-box { background: var(--bg-soft); border-radius: 14px; padding: 22px 16px; max-width: 820px; margin: 0 auto; }
@media (min-width: 700px) { .form-box { padding: 32px 28px; } }
.form-box h2 { font-size: clamp(26px, 5.4vw, 34px); margin-bottom: 6px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-stack > * + * { margin-top: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.form-more[open] summary { margin-bottom: 14px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert--err { background: #fdecec; color: #8a1c1c; }
.alert--info { background: var(--accent-soft); color: var(--accent-dark); }
.alert[hidden] { display: none; }
.req { color: var(--muted); font-size: 12px; }
[data-only-probe][hidden] { display: none; }

/* ---------- Standort ---------- */
.loc { display: grid; gap: 28px; }
@media (min-width: 900px) { .loc { grid-template-columns: 1fr 1fr; align-items: center; } }
.loc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; font-size: 14.5px; }
.loc__facts h4 { font-size: 14px; margin-bottom: 4px; }
.loc__facts p { margin: 0; color: var(--ink-2); }
.map-card {
  border-radius: var(--radius); background: var(--bg-ph); border: 1px solid var(--line);
  min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; padding: 24px; text-align: center; color: var(--ink-2);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-card svg { width: 34px; height: 34px; color: var(--accent); }
.map-card strong { font-size: 16px; color: var(--ink); }

/* ---------- Brand-Band / Teaser ---------- */
.band { background: var(--dark); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #7fb2ff; }
.band p { color: #cbd5e1; }
.band .stat { background: var(--dark-2); border-color: #334155; }
.band .stat__num { color: #fff; }
.band .stat__label { color: #94a3b8; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 5vw, 30px); margin-top: 36px; }
.prose h3 { font-size: 19px; margin-top: 26px; text-transform: none; font-stretch: 85%; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.ph-mark { background: #fff4c2; padding: 0 3px; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; padding: 48px 0 0; font-size: 14px; }
.site-footer a { color: #e2e8f0; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-logo { font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 22px; color: #fff; text-transform: uppercase; margin-bottom: 10px; display: block; }
.foot-note { border-top: 1px solid #1e293b; margin-top: 40px; padding: 16px 0 20px; font-size: 12px; color: #94a3b8; }
.foot-note p { margin: 0 0 6px; }

/* ---------- Mobile CTA-Leiste ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 52px 52px; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(15,23,42,.06);
}
.mbar .btn { min-height: 48px; padding: 0 10px; }
.mbar .icon-btn { border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--ink); background: #fff; }
.mbar .icon-btn svg { width: 22px; height: 22px; }
@media (min-width: 1040px) { .mbar { display: none; } body { padding-bottom: 0; } }

.preview-note { background: #fff4c2; color: #6b5300; font-size: 13px; padding: 8px 16px; text-align: center; }
