/* reifenrechner.ch – Stylesheet
   Schriften werden lokal ausgeliefert (kein Google-Fonts-Aufruf, DSG). Lizenzen: assets/fonts/OFL-*.txt */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff") format("woff"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibmplexmono-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibmplexmono-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibmplexmono-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ground: #F3F3EF; --surface: #FFFFFF; --surface-2: #F6F6F3; --line: #DADBD4; --line-soft: #ECEDE8; --line-strong: #B9BCB3;
  --ink: #16181B; --ink-2: #43463F; --ink-3: #5A5E57; --muted: #8A8D85;
  --accent: #C2410C; --focus: #1D4ED8;
  --ok-bg: #E6EEFB; --ok-fg: #1E3A8A; --mid-bg: #FDEEDC; --mid-fg: #9A3412; --bad-bg: #FBE3E3; --bad-fg: #991B1B;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

/* Kopf */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: 88px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-size: 22px; font-weight: 800; font-stretch: 80%; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-header .nav { margin-left: auto; }
.langs { display: flex; gap: 2px; font-family: var(--mono); font-size: 13px; }
.langs a { text-decoration: none; padding: 10px 7px; min-width: 32px; text-align: center; color: var(--ink-3); border-radius: 6px; }
.langs a:hover { color: var(--ink); background: var(--ground); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--ground); }
.lang-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-weight: 600; }

/* Typografie */
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hero { padding-top: 56px; padding-bottom: 28px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 68px); line-height: 0.98; font-weight: 800; font-stretch: 72%; letter-spacing: -0.015em; max-width: 16ch; }
.lead { margin: 20px 0 0; max-width: 62ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
h2.section { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; font-stretch: 75%; line-height: 1.1; }
.note { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 85ch; }

/* Bausteine */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.panel { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.split { display: flex; flex-wrap: wrap; overflow: hidden; }
.split > .col-in { flex: 1 1 360px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--line-soft); }
.split > .col-out { flex: 999 1 520px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input { height: 56px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ink); background: #FAFAF8; width: 100%; }
.input.accent { border-color: var(--accent); background: var(--surface); }
.input.text { font-family: var(--sans); font-size: 19px; font-weight: 400; }
.input.sm { height: 52px; font-size: 20px; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
/* Eingabefelder nebeneinander immer auf gleicher Hoehe, auch wenn eine Beschriftung umbricht */
.grid2 .field { justify-content: flex-end; }
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { border-color: var(--line-strong); color: var(--ink); }
.btn.pill { border-radius: 999px; }
.btn.mono { font-family: var(--mono); font-weight: 400; font-size: 14px; background: var(--surface-2); border-radius: 8px; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.err { margin: 0; font-size: 14px; color: var(--bad-fg); }
.hint { padding: 14px 16px; border-radius: 10px; background: var(--ground); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.hint p { margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* Ampel */
.verdict { padding: 16px 18px; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.verdict strong { font-size: 20px; font-stretch: 85%; }
.verdict span { font-size: 15px; }
.verdict.ok { background: var(--ok-bg); color: var(--ok-fg); }
.verdict.mid { background: var(--mid-bg); color: var(--mid-fg); }
.verdict.high { background: var(--bad-bg); color: var(--bad-fg); }

/* Kennzahlen */
.result-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.result-top figure { margin: 0; flex: 0 0 260px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.result-top figcaption { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.result-top figcaption span { display: flex; align-items: center; gap: 6px; }
.tiles { flex: 1 1 280px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); flex: none; }
.tile { padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; }
.tile p { margin: 0; }
.tile .k { font-size: 13px; color: var(--ink-3); }
.tile .v { margin-top: 6px; font-family: var(--mono); font-size: 22px; font-weight: 600; }
.tiles.three .tile .v { font-size: 26px; }
.tile .s { margin-top: 2px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.tiles.three .tile .s { font-family: var(--sans); }
h3.sub { margin: 0 0 4px; font-size: 20px; font-weight: 700; font-stretch: 85%; }
.table { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.table .row { display: grid; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.table .row:last-child { border-bottom: 0; }
.speed .row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.how { font-size: 14px; color: var(--ink-2); }
.how .f { font-family: var(--mono); font-size: 13px; line-height: 1.8; padding: 0 0 8px; }

/* Abschnitte */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap, .section-pad { padding-top: 64px; padding-bottom: 64px; }
.code-big { margin: 0 0 28px; font-family: var(--mono); font-size: clamp(32px, 5vw, 56px); font-weight: 600; letter-spacing: 0.02em; }
.code-big .sep { color: var(--muted); }
.code-big .hl { color: var(--accent); }
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cell { padding: 16px; border-radius: 12px; background: var(--surface-2); }
.cell .c { margin: 0; font-family: var(--mono); font-size: 24px; font-weight: 600; }
.cell .t { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card3 { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.card3 .n { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); }
.card3 h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card3 p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 22px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.teaser:hover { color: #fff; }
.teaser strong { font-size: 19px; font-stretch: 85%; }
.teaser span { font-size: 15px; color: #D5D7D0; }
.teaser .go { font-weight: 700; color: #fff; white-space: nowrap; }

/* Fahrzeugsuche */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--ground); border-radius: 12px; align-self: flex-start; }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); font-weight: 700; color: var(--ink); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pick-grid.brands { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pick { min-height: 56px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.pick.soft { background: var(--surface-2); }
.pick:hover { border-color: var(--line-strong); }
.pick .a { font-size: 16px; font-weight: 700; color: var(--ink); }
.pick .b { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; }
.crumbs .sep { color: var(--muted); }
.crumbs .cur { font-weight: 700; padding: 0 4px; }
h2.res { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-stretch: 78%; line-height: 1.1; }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.res-head p { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.cols-head { display: grid; gap: 12px; padding: 0 16px; font-size: 12px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.tas-grid { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.8fr) minmax(0, 0.9fr) minmax(0, 0.9fr); }
.coc-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.9fr); }
.table .row.tas-grid, .table .row.coc-grid { padding: 14px 16px; }
.tires { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 17px; font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--ground); color: var(--ink-2); }
.badge.ref { background: var(--ok-bg); color: var(--ok-fg); }
.axle { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cell-mono { font-family: var(--mono); font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.cell-mono.b { font-weight: 600; }
.raw { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-line; color: var(--ink); }
.ausweis { flex: none; width: 180px; height: 96px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; }
.ausweis i { background: var(--line-soft); border-radius: 3px; }
.ausweis b { border: 2px solid var(--accent); border-radius: 3px; font-family: var(--mono); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.info-box { padding: 16px; border-radius: 12px; background: var(--surface-2); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.info-box p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.status { margin: 0; font-size: 15px; color: var(--ink-2); }
.warn { margin: 0; font-size: 15px; color: var(--mid-fg); }
.cmp { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Rechtsseiten */
.legal { max-width: 820px; }
.legal h1 { margin: 0 0 8px; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; font-stretch: 75%; line-height: 1.05; }
.legal h2 { margin: 36px 0 8px; font-size: 22px; font-weight: 700; font-stretch: 85%; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.legal address { font-style: normal; font-size: 16px; line-height: 1.6; }
.ph { background: #FFF4D6; color: #6B4E00; padding: 0 4px; border-radius: 4px; font-family: var(--mono); font-size: 0.9em; }

/* Fuss */
.site-footer { background: var(--ink); color: #D5D7D0; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; }
.site-footer .name { margin: 0; font-size: 18px; font-weight: 800; font-stretch: 80%; color: #fff; }
.site-footer p { margin: 6px 0 0; max-width: 52ch; line-height: 1.5; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { color: #fff; padding: 12px 0; }
.site-footer a:hover { color: #FDBA74; }

@media (max-width: 720px) {
  /* fixierte Kopfzeile auf dem Handy flach halten: Navigation in einer Zeile, seitlich wischbar */
  .site-header .wrap { gap: 2px; padding-top: 8px; padding-bottom: 0; }
  .site-header .nav { order: 3; margin-left: 0; }
  .langs { margin-left: auto; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 10px 0; }
  html { scroll-padding-top: 104px; }
  .split > .col-in { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .split > .col-in, .split > .col-out, .panel { padding: 20px; }
  .tas-grid, .coc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cols-head { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .result-top figure { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .teaser { display: none; } body { background: #fff; } }
.site-footer p a { padding: 0; color: #fff; }
.sub-h { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
