/* =========================================================================
   druckluft-reifenfueller.de — Werkstatt-Präzision Design-System
   Statisches CSS, keine externen Fonts/CDNs, keine Frameworks.
   ========================================================================= */

:root {
  /* Farb-Tokens */
  --stahl:        #1C2530;
  --stahl-tief:   #121821;
  --stahl-hell:   #3A4657;
  --signal:       #E8720C;
  --signal-hell:  #FF9B3D;
  --signal-tief:  #B85408;
  --technik:      #0E7C86;
  --technik-hell: #12A3B0;
  --papier:       #FFFFFF;
  --grund:        #F4F6F8;
  --tinte:        #1A1F26;
  --tinte-soft:   #5A6472;
  --linie:        #DDE3EA;
  --warn:         #FFF4E5;
  --warn-rand:    #F0B876;
  --gut:          #E7F4EC;
  --gut-rand:     #9CCBAE;

  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",monospace;

  --radius: 10px;
  --radius-klein: 6px;
  --schatten: 0 1px 3px rgba(18,24,33,0.08), 0 1px 2px rgba(18,24,33,0.06);
  --schatten-hover: 0 6px 20px rgba(18,24,33,0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--grund);
  color: var(--tinte);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--technik); text-decoration-thickness: 1.5px; }
a:hover { color: var(--signal-tief); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--signal); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--stahl); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 0.2em 0 0.5em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem); margin: 1.6em 0 0.6em; border-top: 1px solid var(--linie); padding-top: 0.9em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 0.5em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
main p, main li { max-width: 72ch; }
strong { color: var(--stahl); }
code, kbd { font-family: var(--mono); background: var(--grund); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--stahl);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px; flex-wrap: wrap;
}
.site-header .logo {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px; letter-spacing: 0.01em;
}
.site-header .logo .waben { flex-shrink: 0; }
.nav-check, .nav-toggle .zu { display: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--stahl-hell); color: #fff;
  padding: 8px 14px; border-radius: var(--radius-klein); cursor: pointer; font-size: 0.95rem;
}
.hauptnav { display: flex; gap: 4px; flex-wrap: wrap; }
.hauptnav a {
  color: #C9D2DE; text-decoration: none; padding: 10px 12px; border-radius: var(--radius-klein);
  font-size: 0.95rem; font-weight: 500; transition: background 150ms, color 150ms;
}
.hauptnav a:hover, .hauptnav a[aria-current="page"] { background: var(--stahl-hell); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; order: 2; }
  .hauptnav {
    order: 3; width: 100%; flex-direction: column; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height 200ms ease;
  }
  .nav-check:checked ~ .wrap .hauptnav { max-height: 600px; padding-bottom: 12px; }
  .nav-check:checked ~ .wrap .nav-toggle .auf { display: none; }
  .nav-check:checked ~ .wrap .nav-toggle .zu { display: inline; }
  .hauptnav a { padding: 12px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--papier); border-bottom: 1px solid var(--linie); font-size: 0.85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--tinte-soft); }
.breadcrumb a { color: var(--tinte-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--signal-tief); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--stahl); font-weight: 600; }

/* ---------- Hauptbereich ---------- */
main { display: block; padding: 32px 0 60px; }
main > .wrap, main.wrap { }
main { }
.seite {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
}
.artikel-layout {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 960px) {
  .artikel-layout.mit-toc { grid-template-columns: 240px minmax(0,1fr); }
  .artikel-layout.mit-toc .toc-spalte { order: -1; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--stahl) 0%, var(--stahl-tief) 100%);
  color: #fff; padding: 48px 0 40px; margin-bottom: 0;
}
.hero h1 { color: #fff; }
.hero .lead { color: #C9D2DE; font-size: 1.15rem; max-width: 62ch; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero .kurzantwort {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 20px;
}
.hero .kurzantwort p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn-amazon {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--signal-hell), var(--signal));
  color: #fff !important; font-weight: 700; text-decoration: none !important;
  padding: 13px 22px; border-radius: 999px; font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(232,114,12,0.35);
  transition: transform 150ms, box-shadow 150ms; border: none; cursor: pointer;
}
.btn-amazon:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,114,12,0.4); }
.btn-amazon.btn-klein { padding: 8px 16px; font-size: 0.88rem; }
.btn-zweit {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--stahl) !important; font-weight: 600;
  text-decoration: none !important; padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--linie); transition: border-color 150ms, background 150ms;
}
.btn-zweit:hover { border-color: var(--technik); background: var(--gut); }

.afflink { display: block; font-size: 0.78rem; color: var(--tinte-soft); margin-top: 8px; line-height: 1.4; }

/* ---------- Datenblatt-Block (Signature-Element) ---------- */
.datenblatt {
  background: var(--stahl); color: #E4E9F0; border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--mono); font-size: 0.88rem;
}
.datenblatt .zeile {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.datenblatt .zeile:last-child { border-bottom: none; }
.datenblatt .label { color: #9AA7B8; }
.datenblatt .wert { color: #fff; font-weight: 600; text-align: right; }
.datenblatt .wert .einheit { color: var(--technik-hell); font-weight: 400; margin-left: 4px; }

/* ---------- Liefermengen-Skala (Signature-Element) ---------- */
.liefer-skala { margin: 18px 0; }
.liefer-skala .balken-wrap { position: relative; padding-top: 26px; }
.liefer-skala .balken {
  height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gut-rand) 0%, var(--technik) 45%, var(--signal) 75%, var(--signal-tief) 100%);
  position: relative;
}
.liefer-skala .marker {
  position: absolute; top: -6px; width: 3px; height: 26px; background: var(--stahl);
  transform: translateX(-1.5px);
}
.liefer-skala .marker::after {
  content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; white-space: nowrap; color: var(--tinte-soft); font-family: var(--mono);
}
.liefer-skala .geraet-marker {
  position: absolute; top: -14px; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 12px solid var(--signal); transform: translateX(-8px);
}
.liefer-skala .achse { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; color: var(--tinte-soft); margin-top: 6px; }
.liefer-skala .caption { font-size: 0.82rem; color: var(--tinte-soft); margin-top: 4px; }

/* ---------- Ampel-Eignungsmatrix ---------- */
.eignung-matrix { display: grid; gap: 6px; margin: 14px 0; }
.eignung-matrix .zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.92rem; padding: 6px 0; border-bottom: 1px dashed var(--linie); }
.eignung-matrix .zeile:last-child { border-bottom: none; }
.ampel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ampel::before { content: ""; width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ampel--gut { background: var(--gut); color: #1E6A3C; }
.ampel--gut::before { background: #2E9E52; }
.ampel--eingeschraenkt { background: var(--warn); color: #8A5A10; }
.ampel--eingeschraenkt::before { background: var(--signal); }
.ampel--nicht { background: #FBE8E8; color: #A32E2E; }
.ampel--nicht::before { background: #C64545; }

/* ---------- Produktkarte ---------- */
.produkt-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 720px) { .produkt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .produkt-grid.drei { grid-template-columns: repeat(3, 1fr); } }
.produkt-karte {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--schatten); position: relative; display: flex; flex-direction: column; gap: 12px;
}
.produkt-karte.sieger { border-color: var(--signal); box-shadow: 0 0 0 2px rgba(232,114,12,0.15), var(--schatten); }
.produkt-karte .badge {
  position: absolute; top: -12px; left: 20px; background: var(--signal); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.produkt-karte .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--technik); margin-bottom: 2px;
}
.produkt-karte h3 { margin: 0; font-size: 1.2rem; }
.produkt-karte .kurz { color: var(--tinte-soft); font-size: 0.95rem; margin-bottom: 0; }
.plus-minus { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.plus-minus li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.plus-minus .ic { font-weight: 800; width: 16px; flex-shrink: 0; text-align: center; }
.plus-minus .plus .ic { color: #2E9E52; }
.plus-minus .minus .ic { color: #C64545; }
.produkt-karte .meta { font-size: 0.82rem; color: var(--tinte-soft); margin: 0; }

/* ---------- Vergleichstabelle ---------- */
.tabelle-wrap { overflow-x: auto; margin: 20px 0 8px; border-radius: var(--radius); border: 1px solid var(--linie); }
.tabelle-wrap::after { content: ""; }
.scroll-hinweis { font-size: 0.8rem; color: var(--tinte-soft); margin: -4px 0 16px; }
table.vergleich { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--papier); font-size: 0.92rem; }
table.vergleich th, table.vergleich td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linie); white-space: nowrap; }
table.vergleich th { background: var(--stahl); color: #fff; font-weight: 600; position: sticky; top: 0; }
table.vergleich td.wert-mono { font-family: var(--mono); }
table.vergleich tr.sieger-zeile td { background: var(--gut); }
table.vergleich tbody tr:hover td { background: var(--grund); }

/* ---------- Info-/Warn-/Merk-Boxen ---------- */
.info-box, .warn-box, .merk-box {
  border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; border: 1px solid var(--linie);
}
.info-box { background: #EEF6F7; border-color: #BEDDE1; }
.warn-box { background: var(--warn); border-color: var(--warn-rand); }
.merk-box { background: var(--gut); border-color: var(--gut-rand); }
.info-box .titel, .warn-box .titel, .merk-box .titel { font-weight: 700; color: var(--stahl); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.info-box p:last-child, .warn-box p:last-child, .merk-box p:last-child { margin-bottom: 0; }
.warn-box ul, .info-box ul, .merk-box ul { margin-bottom: 0; }

/* ---------- Rechner ---------- */
.rechner {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 24px; margin: 24px 0; box-shadow: var(--schatten);
}
.rechner h2, .rechner h3 { margin-top: 0; border-top: none; padding-top: 0; }
.rechner-feld { margin-bottom: 16px; }
.rechner-feld label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.rechner-feld input, .rechner-feld select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: var(--radius-klein);
  font-size: 1rem; font-family: var(--sans); background: var(--grund);
}
.werkzeug-liste { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 640px) { .werkzeug-liste { grid-template-columns: 1fr 1fr; } }
.werkzeug-checkbox {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--linie);
  border-radius: var(--radius-klein); background: var(--grund); cursor: pointer; font-size: 0.92rem;
}
.werkzeug-checkbox input { width: 18px; height: 18px; flex-shrink: 0; }
.rechner-ergebnis {
  background: var(--stahl); color: #fff; border-radius: var(--radius); padding: 20px; margin-top: 18px; display: none;
}
.rechner-ergebnis.sichtbar { display: block; }
.rechner-ergebnis .grosswert { font-family: var(--mono); font-size: 1.8rem; color: var(--signal-hell); font-weight: 700; }
.rechner-ergebnis p { margin: 6px 0; }
.rechner-ergebnis .hinweis { font-size: 0.8rem; color: #B7C1CE; }
.rechner-noscript { padding: 14px; background: var(--warn); border-radius: var(--radius-klein); font-size: 0.9rem; }
.btn-rechnen {
  background: var(--signal); color: #fff; border: none; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; cursor: pointer; transition: background 150ms;
}
.btn-rechnen:hover { background: var(--signal-tief); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-klein);
  margin-bottom: 10px; padding: 4px 0;
}
.faq summary {
  padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; position: relative;
  color: var(--stahl);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.3rem; color: var(--signal); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .antwort { padding: 0 18px 16px; color: var(--tinte-soft); }

/* ---------- Themen-Karten ---------- */
.themen-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 640px) { .themen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .themen-grid.drei { grid-template-columns: repeat(3, 1fr); } }
.themen-karte {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 20px; text-decoration: none !important; color: var(--tinte) !important; display: flex; flex-direction: column; gap: 8px;
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}
.themen-karte:hover { transform: translateY(-2px); box-shadow: var(--schatten-hover); border-color: var(--technik); }
.themen-karte h3 { margin: 0; font-size: 1.05rem; color: var(--stahl) !important; }
.themen-karte .desc { font-size: 0.88rem; color: var(--tinte-soft); margin: 0; }
.themen-karte .keyword-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--technik); font-weight: 700; }

/* ---------- Autor-Box ---------- */
.autor-box {
  display: flex; gap: 16px; align-items: flex-start; background: var(--papier); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 18px 20px; margin: 32px 0;
}
.autor-box .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--stahl); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 0.9rem;
}
.autor-box .name { font-weight: 700; margin: 0; color: var(--stahl); }
.autor-box .rolle { font-size: 0.85rem; color: var(--tinte-soft); margin: 2px 0 8px; }
.autor-box p:last-child { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- TOC ---------- */
.toc {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px 20px; font-size: 0.92rem;
}
.toc .titel { font-weight: 700; margin: 0 0 8px; color: var(--stahl); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--tinte-soft); text-decoration: none; }
.toc a:hover { color: var(--signal-tief); text-decoration: underline; }
@media (max-width: 959px) {
  .toc { margin-bottom: 24px; }
  .toc ol { columns: 2; column-gap: 24px; }
}

/* ---------- Banner ---------- */
.banner { border-radius: var(--radius); overflow: hidden; margin: 24px 0; border: 1px solid var(--linie); background: var(--papier); }
.banner img { width: 100%; }

/* ---------- Kaufklassen-Matrix (Startseite) ---------- */
.matrix { display: grid; gap: 10px; margin: 20px 0; }
.matrix-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px;
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 12px 16px;
}
.matrix-item .du-willst { font-size: 0.92rem; grid-column: 1 / -1; }
.matrix-item .du-willst strong { color: var(--stahl); }
.matrix-item .unsere-wahl { font-weight: 700; color: var(--stahl); font-size: 0.95rem; }
.matrix-item .mini {
  justify-self: start; font-size: 0.82rem; font-weight: 700; color: #fff !important; background: var(--signal);
  padding: 6px 14px; border-radius: 999px; text-decoration: none !important; white-space: nowrap;
}
@media (min-width: 640px) {
  .matrix-item { grid-template-columns: 1.6fr 1fr auto; }
  .matrix-item .du-willst { grid-column: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--stahl-tief); color: #A9B4C2; margin-top: 60px; }
.footer-grid { display: grid; gap: 32px; padding: 40px 0; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #A9B4C2; text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-hinweis { font-size: 0.85rem; line-height: 1.6; max-width: 46ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px; font-size: 0.78rem;
}

/* ---------- Sticky CTA (mobil) ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--papier); border-top: 1px solid var(--linie);
  padding: 10px 16px; z-index: 90; box-shadow: 0 -4px 16px rgba(0,0,0,0.1); display: none;
}
.sticky-cta.aktiv { display: flex; justify-content: center; }
.sticky-cta .btn-amazon { width: 100%; justify-content: center; }
@media (min-width: 860px) { .sticky-cta { display: none !important; } }
body.hat-sticky main { padding-bottom: 100px; }
@media (min-width: 860px) { body.hat-sticky main { padding-bottom: 60px; } }

/* ---------- Sections ---------- */
.section-alt { background: var(--papier); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 40px 0; margin: 40px 0; }
.section-alt.no-border-b { border-bottom: none; }
.cta-block {
  background: var(--stahl); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; margin: 36px 0;
}
.cta-block h2 { color: #fff; border-top: none; padding-top: 0; margin-top: 0; }
.cta-block p { color: #C9D2DE; max-width: 60ch; margin-left: auto; margin-right: auto; }
