/* ankauf-von-wohnmobilen.de
   Bewusst andere Handschrift als die Schwesterdomain: technischer,
   näher am Prüfbericht als an der Reisebroschüre. Keine Kartenraster,
   keine Serifen, dafür Datenreihen, Linien und Tabellen. */

:root {
  --stahl-900: #141d27;
  --stahl-800: #1d2a38;
  --stahl-700: #2b3d50;
  --stahl-500: #55697f;
  --stahl-200: #ccd6e0;
  --stahl-50:  #f2f5f8;

  --signal:      #d1621f;
  --signal-hell: #fdf0e6;

  --papier: #ffffff;
  --grund:  #fafbfc;
  --text:      #16202b;
  --text-hell: #56657a;
  --linie:     #dde3ea;

  --gut:    #2f7d4f;
  --achtung:#b8801d;
  --kritisch:#b03a2c;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --breite: 1180px;
  --kante: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopf: dunkler Balken, nicht klebend ---------- */

header.site { background: var(--stahl-800); color: #fff; }
header.site .innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding: 16px 0;
}
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.marke b {
  display: block; font-size: 19px; font-weight: 700;
  letter-spacing: -.35px; line-height: 1.1;
}
.marke i {
  display: block; font-style: normal; font-size: 11.5px; color: var(--stahl-200);
  letter-spacing: .14em; text-transform: uppercase; margin-top: 2px;
}

nav.haupt ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.haupt a {
  display: block; padding: 8px 13px; text-decoration: none;
  color: var(--stahl-200); font-size: 15.5px; font-weight: 500;
  border-radius: var(--kante);
}
nav.haupt a:hover { background: var(--stahl-700); color: #fff; }
nav.haupt a.aktiv { color: #fff; box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }

.kopfzeile {
  background: var(--stahl-900); color: var(--stahl-200);
  font-size: 13.5px; padding: 7px 0;
}
.kopfzeile .innen { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kopfzeile a { color: #fff; text-decoration: none; font-weight: 600; }
.kopfzeile a:hover { text-decoration: underline; }

/* ---------- Titelblock statt Hero ---------- */

.titel { background: var(--papier); border-bottom: 1px solid var(--linie); padding: 52px 0 44px; }
.titel h1 {
  font-size: clamp(28px, 4vw, 42px); line-height: 1.14; margin: 0 0 16px;
  font-weight: 700; letter-spacing: -1px; max-width: 20ch; text-wrap: balance;
}
.titel .anriss { font-size: 19px; color: var(--text-hell); max-width: 62ch; margin: 0 0 28px; }
.titel .knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }

.marker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--signal);
  margin: 0 0 12px;
}

/* ---------- Kennzahlenleiste ---------- */

.kennzahlen {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  border-top: 1px solid var(--linie); margin-top: 38px;
}
.kennzahlen div { padding: 18px 22px 16px 0; border-right: 1px solid var(--linie); }
.kennzahlen div:last-child { border-right: 0; }
.kennzahlen b {
  display: block; font-size: 25px; font-weight: 700;
  letter-spacing: -.6px; font-variant-numeric: tabular-nums;
}
.kennzahlen span { font-size: 13.5px; color: var(--text-hell); }

/* ---------- Abschnitte ---------- */

section { padding: 56px 0; }
section.weiss { background: var(--papier); border-block: 1px solid var(--linie); }

h2 {
  font-size: clamp(23px, 2.7vw, 30px); line-height: 1.25; margin: 0 0 12px;
  font-weight: 700; letter-spacing: -.5px; text-wrap: balance;
}
h3 { font-size: 19.5px; margin: 34px 0 10px; font-weight: 650; letter-spacing: -.2px; }
h4 { font-size: 16.5px; margin: 24px 0 6px; font-weight: 650; }
.vorspann { font-size: 18px; color: var(--text-hell); max-width: 64ch; margin: 0 0 32px; }

/* ---------- Datenreihen statt Karten ---------- */

.reihen { border-top: 2px solid var(--stahl-800); }
.reihe {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid var(--linie);
}
.reihe > dt { font-weight: 650; font-size: 16px; }
.reihe > dt small {
  display: block; font-weight: 400; font-size: 13px;
  color: var(--text-hell); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px;
}
.reihe > dd { margin: 0; color: var(--text-hell); font-size: 16px; }
.reihe > dd strong { color: var(--text); }

a.reihe { text-decoration: none; color: inherit; transition: background .12s; }
a.reihe:hover { background: var(--stahl-50); }
a.reihe dd::after { content: " →"; color: var(--signal); font-weight: 700; }

/* ---------- Fließtext ---------- */

article { max-width: 780px; }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 21px; }
article li { margin-bottom: 8px; }
article a { color: var(--stahl-700); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
article a:hover { color: var(--signal); }
.stand { font-size: 14px; color: var(--text-hell); margin: 0 0 26px; }

/* ---------- Hinweisblöcke ---------- */

.notiz, .warnung {
  padding: 18px 22px; margin: 26px 0; font-size: 16px; border-radius: 0 var(--kante) var(--kante) 0;
}
.notiz { background: var(--stahl-50); border-left: 3px solid var(--stahl-700); }
.warnung { background: var(--signal-hell); border-left: 3px solid var(--signal); }
.notiz b, .warnung b { display: block; margin-bottom: 4px; }
.notiz p:last-child, .warnung p:last-child { margin-bottom: 0; }

/* ---------- Tabellen ---------- */

.scroll { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: var(--papier); }
caption {
  text-align: left; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-hell); padding-bottom: 8px; font-weight: 650;
}
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--stahl-800); color: #fff; font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
td.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ampel { font-weight: 650; white-space: nowrap; }
.ampel.gut     { color: var(--gut); }
.ampel.achtung { color: var(--achtung); }
.ampel.kritisch{ color: var(--kritisch); }

/* ---------- Schaltflächen ---------- */

.knopf {
  display: inline-block; padding: 12px 24px; border-radius: var(--kante);
  text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid transparent;
}
.knopf.voll  { background: var(--signal); color: #fff; }
.knopf.voll:hover { background: #b8541a; }
.knopf.linie { background: transparent; color: var(--stahl-800); border-color: var(--stahl-200); }
.knopf.linie:hover { border-color: var(--stahl-700); }
.titel .knopf.linie { color: var(--stahl-800); }

/* ---------- Formular ---------- */

.formular { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--kante); padding: 30px; }
.feld { margin-bottom: 17px; }
.feld label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c3ccd6;
  border-radius: var(--kante); font-family: inherit; font-size: 16px;
  background: #fff; color: var(--text);
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--signal);
}
.feld small { color: var(--text-hell); font-size: 13px; display: block; margin-top: 4px; }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.muss { color: var(--kritisch); }
.haken { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--text-hell); }
.haken input { width: auto; margin-top: 4px; flex: none; }

/* ---------- Pfad ---------- */

.pfad { font-size: 13.5px; color: var(--text-hell); padding: 14px 0 0; }
.pfad a { color: var(--text-hell); text-decoration: none; }
.pfad a:hover { color: var(--signal); text-decoration: underline; }
.pfad i { font-style: normal; margin: 0 7px; opacity: .45; }

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

.aufruf { background: var(--stahl-800); color: #fff; padding: 46px 0; }
.aufruf h2 { color: #fff; }
.aufruf p { color: var(--stahl-200); max-width: 56ch; margin: 0 0 22px; }

/* ---------- Fuß ---------- */

footer.site { background: var(--stahl-900); color: #93a3b5; padding: 46px 0 22px; font-size: 15px; }
footer.site h5 { color: #fff; font-size: 14px; margin: 0 0 11px; font-weight: 650; letter-spacing: .04em; }
footer.site a { color: var(--stahl-200); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }
.fussraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 32px; }
.fussende {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .reihe { grid-template-columns: 1fr; gap: 6px; }
  .reihe > dt small { display: inline; margin-left: 8px; }
  .paar { grid-template-columns: 1fr; }
  .kennzahlen div { border-right: 0; border-bottom: 1px solid var(--linie); padding-right: 0; }
  .titel { padding: 36px 0 32px; }
}
