/* Verkaufsseite ISMS – Petrol und Sand, Inter und Space Grotesk (lokal, SIL OFL). Keine Fremdquellen, keine Inline-Stile. */
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0f1f24; --ink-2: #33474c; --muted: #56686d; --line: #dfe6e4;
  --bg: #fbfaf7; --surface: #fff; --sand: #f4f1ea;
  --petrol-900: #06272b; --petrol-800: #083a3f; --petrol-700: #0b4f55; --petrol-600: #0e6b6f; --petrol-100: #e3f1ef;
  --accent: #f2a65a; --accent-ink: #2a1606;
  --ok: #17714b; --ok-bg: #e3f5ec; --warn: #5a3c06; --warn-bg: #fff2d6; --bad: #b73a26; --bad-bg: #fde9e4;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --r: 14px; --r-sm: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f2; --ink-2: #c5d3d1; --muted: #9fb2b0; --line: #284046;
    --bg: #0b1d20; --surface: #12292d; --sand: #10262a;
    --petrol-700: #62c9c0; --petrol-600: #7fd8cf; --petrol-100: #153a3d;
    --ok: #6fd6a3; --ok-bg: #12382a; --warn: #f3d28d; --warn-bg: #3a2c0e; --bad: #ff9d8c; --bad-bg: #3b1a14;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--petrol-600); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--petrol-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* Kopf */
.kopf { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 17px/1 var(--font-head); }
.marke img { width: 34px; height: 34px; }
.menue { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 15px; }
.menue a { color: var(--ink-2); text-decoration: none; padding: 6px 2px; }
.menue a:hover { color: var(--petrol-600); text-decoration: underline; }

/* Abschnitte */
section { padding: 56px 0; }
section.sand { background: var(--sand); }
.hero { background: var(--petrol-900); color: #fff; padding: 72px 0 64px; }
.hero p.lead { font-size: 1.2rem; max-width: 40rem; color: #d3e6e3; }
.hero .eyebrow { color: #62e3cc; }
.eyebrow { display: inline-block; font: 600 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--petrol-600); margin-bottom: 12px; }
.knopfreihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font: 650 16px var(--font-body); text-decoration: none; cursor: pointer; touch-action: manipulation; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.primaer { background: var(--accent); color: var(--accent-ink); }
.knopf.primaer:hover:not(:disabled) { background: #f6b778; }
.knopf.zweit { background: transparent; color: inherit; border-color: currentColor; }

.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.karte h3 { margin-bottom: .4em; }
.karte p:last-child { margin-bottom: 0; }
.schritte { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.schritte li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 20px 64px; position: relative; }
.schritte li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol-700); color: var(--bg); display: grid; place-items: center; font: 700 17px var(--font-head); }
.grenzen { border-left: 5px solid var(--accent); background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 18px 20px; }
.grenzen ul { margin: .4em 0 0; padding-left: 1.2em; }
.hinweis { background: var(--petrol-100); border-left: 4px solid var(--petrol-600); padding: 12px 16px; border-radius: var(--r-sm); font-size: 15px; }
.hinweis.warn { background: var(--warn-bg); border-color: var(--accent); color: var(--warn); }
.hinweis.fehler { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.hinweis.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.entwurf { background: var(--warn-bg); color: var(--warn); border: 2px dashed var(--accent); border-radius: var(--r-sm); padding: 14px 18px; font-weight: 600; margin-bottom: 24px; }

/* Formulare */
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.tafel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
label.opt, .opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 10px 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--petrol-700); }
fieldset { border: 1.5px solid var(--line); border-radius: var(--r-sm); margin: 14px 0 0; padding: 6px 14px 10px; }
legend { font-weight: 600; padding: 0 6px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ergebnis { margin-top: 16px; }
.ergebnis table { width: 100%; border-collapse: collapse; }
.ergebnis th, .ergebnis td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ergebnis td.betrag, .ergebnis th.betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ergebnis tfoot th, .ergebnis tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
.ergebnis .sub { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* Fuß und Rechtstexte */
.fuss { background: var(--petrol-900); color: #cfe0dd; padding: 32px 0; font-size: 15px; }
.fuss a { color: #fff; }
.fuss ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.recht { max-width: 46rem; padding: 40px 16px 64px; margin: 0 auto; }
.recht h2 { margin-top: 1.6em; font-size: 1.4rem; }
@media (max-width: 600px) { section { padding: 40px 0; } .hero { padding: 48px 0; } .kopf { position: static; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
