/* cumulusproof – ruhig, klar, wie ein Prüflabor.
   Layout: schmale Lesespalte, blaue Bänder für Abschnitte, ein goldener Haupt-Knopf. */
:root {
  --tinte: #0f2a5c;        /* Dunkelblau: Text, Knöpfe, Kopf */
  --tinte-2: #3a5584;      /* gedämpfter Text */
  --flaeche: #eef4fc;      /* sehr helles Blau */
  --linie: #d3e0f2;
  --papier: #ffffff;
  --gold: #f2b631;         /* nur Haupt-Knopf */
  --gruen: #1f7a3f; --gelb: #b7791f; --rot: #c0392b;
  --schrift: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --breit: 1080px; --lese: 680px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 18px/1.6 var(--schrift); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinte); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.huelle { max-width: var(--breit); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lese { max-width: var(--lese); }
.stapel { display: flex; flex-direction: column; gap: 1rem; }
.band { padding-block: clamp(48px, 8vw, 88px); }
.band.blau { background: var(--flaeche); }
.band.dunkel { background: var(--tinte); color: #fff; }
.band.dunkel a:not(.knopf) { color: #fff; }
.oben { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-2); }
.dunkel .oben { color: #a9c1e8; }
.leise { color: var(--tinte-2); }
.klein { font-size: .9rem; }

/* Kopf */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--papier); }
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.marke svg { width: 34px; height: 24px; flex: none; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.menue { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menue { display: block; position: relative; }
  .menue summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 8px; font-size: .95rem; }
  .menue summary::-webkit-details-marker { display: none; }
  .menue nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 10px 30px rgba(15,42,92,.12); }
  .menue nav a { padding: 10px 12px; text-decoration: none; border-radius: 6px; }
  .menue nav a:hover { background: var(--flaeche); }
}

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 10px; font: 700 1rem/1.2 var(--schrift); text-decoration: none; cursor: pointer; border: 2px solid var(--tinte); background: var(--tinte); color: #fff; text-align: center; }
.knopf.haupt { background: var(--gold); border-color: var(--gold); color: var(--tinte); }
.knopf.haupt:hover { background: #ffc94f; border-color: #ffc94f; }
.knopf.hell { background: transparent; color: var(--tinte); }
.dunkel .knopf.hell { color: #fff; border-color: #fff; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf.klein-k { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

/* Held */
.held { padding-block: clamp(40px, 7vw, 80px); }
.held .huelle { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.held .text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.held .unter { font-size: 1.2rem; color: var(--tinte-2); max-width: 34ch; }
@media (max-width: 860px) { .held .huelle { grid-template-columns: 1fr; } }

/* Ampel-Karte: ein echtes Prüfergebnis als Beleg */
.urteil { border: 1px solid var(--linie); border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(15,42,92,.10); overflow: hidden; }
.urteil .kopfzeile { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: .78rem; color: var(--tinte-2); border-bottom: 1px solid var(--linie); }
.urteil .inhalt { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lampe { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 1.2rem; }
.lampe i { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.lampe.gelb { color: var(--gelb); } .lampe.gelb i { background: var(--gelb); }
.lampe.gruen { color: var(--gruen); } .lampe.gruen i { background: var(--gruen); }
.lampe.rot { color: var(--rot); } .lampe.rot i { background: var(--rot); }
.lampe.grau { color: var(--tinte-2); } .lampe.grau i { background: var(--tinte-2); }
.zahlen4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zahlen4 div { background: var(--flaeche); border-radius: 8px; padding: 10px 12px; }
.zahlen4 b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.zahlen4 span { font-size: .8rem; color: var(--tinte-2); line-height: 1.35; display: block; }
.urteil .regel { font-size: .85rem; color: var(--tinte-2); border-left: 3px solid var(--linie); padding-left: 10px; }

/* Raster */
.raster { display: grid; gap: 20px; }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.raster.zwei { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .raster.drei, .raster.zwei { grid-template-columns: 1fr; } }
.raster > * { min-width: 0; }
.schritt { display: flex; flex-direction: column; gap: 8px; }
.schritt .nr { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--tinte); display: grid; place-items: center; font-weight: 700; }

.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kennzahlen div { border-top: 2px solid rgba(255,255,255,.35); padding-top: 14px; }
.kennzahlen b { display: block; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .kennzahlen { grid-template-columns: 1fr; } }

/* Regeln (So prüfen wir) */
.regeln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; counter-reset: r; }
@media (max-width: 760px) { .regeln { grid-template-columns: 1fr; } }
.regeln article { padding: 22px 0; border-top: 1px solid var(--linie); display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; }
.regeln article::before { counter-increment: r; content: counter(r); grid-row: span 2; font-weight: 700; font-size: 1.6rem; color: var(--tinte-2); }
.regeln h3 { margin-bottom: 4px; }
.regeln p { color: var(--tinte-2); }

/* Preise */
.pakete { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .pakete { grid-template-columns: 1fr; } }
.paket { border: 1px solid var(--linie); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; min-width: 0; }
.paket.empfohlen { border: 2px solid var(--tinte); }
.paket .preis { font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.paket .preis small { font-size: 1rem; font-weight: 400; color: var(--tinte-2); }
.paket ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.paket .marke-e { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--tinte); color: #fff; padding: 4px 10px; border-radius: 999px; }
.tabelle-huelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: 700; }
td.j { text-align: center; }

.versprechen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .versprechen { grid-template-columns: 1fr; } }
.versprechen div { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.versprechen b { font-size: 1.1rem; }

/* Formulare */
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .95rem; }
label .hilfe { font-weight: 400; color: var(--tinte-2); font-size: .85rem; }
input[type=text], input[type=email], select, textarea { font: 1rem/1.4 var(--schrift); padding: 12px 14px; border: 1px solid #b9cbe6; border-radius: 8px; background: #fff; color: var(--tinte); width: 100%; }
input[type=file] { font: 1rem var(--schrift); padding: 10px; border: 1px dashed #9bb3d8; border-radius: 8px; background: #fff; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.haken { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.haken input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.kasten { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: clamp(18px, 4vw, 32px); }
.ergebnis { border-radius: 12px; padding: 18px; background: var(--flaeche); display: flex; flex-direction: column; gap: 10px; }
.ergebnis .daten { font-size: .9rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
pre.csv { font: .85rem/1.5 var(--mono); background: var(--flaeche); padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 0; }
.hinweis { font-size: .85rem; color: var(--tinte-2); }

/* Buch */
.buch { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.buch img { border-radius: 4px; box-shadow: 0 12px 30px rgba(15,42,92,.25); }
@media (max-width: 640px) { .buch { grid-template-columns: 1fr; } .buch img { max-width: 200px; } }

.rechtstext { max-width: var(--lese); display: flex; flex-direction: column; gap: 14px; }
.rechtstext h2 { font-size: 1.25rem; margin-top: 18px; }
.entwurf { background: #fff6dd; border: 1px solid #f0d58a; border-radius: 10px; padding: 12px 16px; font-size: .9rem; }

/* Fuß */
.fuss { background: var(--tinte); color: #c9d7f0; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.fuss .huelle { display: flex; flex-direction: column; gap: 14px; }
.fuss a { color: #fff; }
.fuss .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss .warn { color: #fff; font-weight: 700; }

/* Knopf unten am Handy */
.handyknopf { display: none; }
@media (max-width: 700px) {
  .handyknopf { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); border-top: 1px solid var(--linie); }
  .handyknopf .knopf { width: 100%; }
  body.mit-handyknopf { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
