/* gewicht-ok.de — Gestaltung „Waage“: Pflaume, Pfirsich, Creme; Grün = OK, Koralle = nicht OK;
   Schrift Bricolage Grotesque (lokal). Großer Rechner im Hero, BMI-Halbkreis-Tacho. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --pflaume: #3d2352; --pflaume-2: #5a3677; --pfirsich: #ffb38a; --pfirsich-hell: #ffe9dc; --creme: #fff8f2;
  --ok: #3fae6a; --ok-hell: #e5f5eb; --koralle: #ff6b5a; --koralle-hell: #ffe6e2; --gelb: #f2b134; --gelb-hell: #fff4dc; --blau: #6aa9e9; --blau-hell: #e7f1fc;
  --tinte: #2a1d33; --leise: #6d5f78; --linie: #eadfd6; --r: 22px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; margin: 0; background: var(--creme); color: var(--tinte); font: 400 17.5px/1.65 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--pflaume-2); text-decoration-color: var(--pfirsich); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { color: var(--koralle); }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--pflaume); font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin: .1em 0 .55em; }
h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: .5rem 1rem; }
.nur-vorlesen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf: Zeile, Navigation als Unterstreichung in Pfirsich */
.kopf-innen { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.logo img { width: 48px; height: 48px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.6rem; font-weight: 800; color: var(--pflaume); letter-spacing: -.03em; line-height: 1; }
.logo-name span { color: var(--ok); }
.logo-claim { font-size: .82rem; color: var(--leise); }
.hauptnav .nav-innen { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hauptnav .nav-innen::-webkit-scrollbar { display: none; }
.hauptnav a { flex: none; text-decoration: none; color: var(--tinte); font-weight: 700; font-size: .98rem; padding: 8px 12px; border-radius: 12px; }
.hauptnav a:hover { background: var(--pfirsich-hell); }
.hauptnav a[aria-current="page"] { background: var(--pflaume); color: #fff; }
/* Von außen eingefügte Elemente (AdSense Auto Ads, Einbettungen) dürfen Kopf und Seite nicht verbreitern:
   Kopf bricht um, Fremd-Elemente bekommen eine eigene Zeile und höchstens die Containerbreite.
   Nichts wird versteckt (AdSense-Richtlinie) – nur die Breite begrenzt. */
.kopf { overflow-x: clip; }
.kopf-innen { flex-wrap: wrap; min-width: 0; }
.kopf-innen > * { min-width: 0; max-width: 100%; }
.hauptnav { min-width: 0; flex: 0 1 auto; }
.kopf-innen > :not(.logo):not(.hauptnav) { flex: 1 1 100%; order: 3; }
.rahmen, main, .fuss-innen, .hero-innen { min-width: 0; }
.rahmen, .fuss { overflow-x: clip; }
ins.adsbygoogle, .google-auto-placed, div[id^="google_ads"], div[id^="aswift"], main iframe, .kopf iframe { max-width: 100% !important; }
@media (max-width: 880px) { .kopf-innen { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px 8px; } .hauptnav { width: 100%; } .logo-name { font-size: 1.35rem; } }

/* Hero mit organischen Formen */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero::before { width: 520px; height: 520px; background: var(--pfirsich-hell); right: -120px; top: -160px; }
.hero::after { width: 260px; height: 260px; background: #efe4f6; left: -90px; bottom: -120px; }
.hero-innen { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 30px 24px 54px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); margin: 0 0 .25em; }
.hero h1 em { font-style: normal; color: var(--ok); }
.hero p { color: var(--leise); font-size: 1.15rem; max-width: 32em; }
.hero-bild .tacho { width: 100%; max-width: 420px; display: block; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(61,35,82,.15)); }
@media (max-width: 880px) { .hero-innen { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 36px; gap: 18px; } .hero-bild { order: -1; max-width: 300px; margin: 0 auto; } }

/* Formular */
.bmiform { margin-top: 10px; }
.bmi-felder { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.feld { display: flex; align-items: center; background: #fff; border: 2px solid var(--linie); border-radius: 16px; padding: 4px 14px; gap: 8px; flex: 1 1 140px; }
.feld:focus-within { border-color: var(--pflaume-2); box-shadow: 0 0 0 4px rgba(90,54,119,.15); }
.feld span { font-size: .8rem; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .06em; }
.feld input { flex: 1 1 auto; min-width: 0; width: 4em; border: 0; font: 700 1.5rem var(--font); color: var(--pflaume); padding: 8px 0; background: transparent; }
.feld input:focus { outline: none; }
.feld em { font-style: normal; color: var(--leise); font-weight: 700; }
button { font: 800 1.05rem var(--font); cursor: pointer; border: 0; border-radius: 16px; padding: 14px 22px; background: var(--pflaume); color: #fff; }
button:hover { background: var(--pflaume-2); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--pfirsich); outline-offset: 2px; }
.qc-fehler { color: #b23a2c; font-size: .92rem; margin: 8px 0 0; }

/* Raster */
.rahmen { max-width: 980px; margin: 0 auto; padding: 10px 16px 64px; }
.ist-start .rahmen { padding-top: 0; }
main { background: #fff; border-radius: var(--r); padding: 40px 48px 42px; box-shadow: 0 2px 0 var(--linie), 0 30px 60px -40px rgba(61,35,82,.35); overflow-wrap: break-word; }
@media (max-width: 640px) { main { padding: 22px 18px 26px; } }
.krumen { font-size: .86rem; color: var(--leise); margin-bottom: .8em; }
.krumen a { color: var(--leise); }
.kleingedruckt { font-size: .9rem; color: var(--leise); }
.kasten { background: var(--creme); border: 2px dashed var(--linie); border-radius: var(--r); padding: 22px; margin: 1.6em 0; }
.kasten-titel { margin: 0 0 8px; font-size: 1.25rem; }

/* Ergebnis: Tacho + Text */
.ergebnis-raster { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 1.4em; }
@media (max-width: 700px) { .ergebnis-raster { grid-template-columns: minmax(0, 1fr); } .ergebnis-tacho { max-width: 300px; margin: 0 auto; } }
.tacho { display: block; width: 100%; height: auto; }
.tacho .t-leise { font: 600 14px var(--font); fill: var(--leise); }
.tacho .t-wert { font: 800 38px var(--font); fill: var(--pflaume); }
.tacho-unter { text-align: center; margin: -6px 0 0; font-weight: 700; color: var(--leise); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.urteil { display: inline-block; font-size: 1.5rem; font-weight: 800; padding: 6px 16px; border-radius: 14px; margin: 0 0 12px; }
.urteil-normal { background: var(--ok-hell); color: #1f6f40; }
.urteil-leichtes-ug, .urteil-maessiges-ug { background: var(--blau-hell); color: #2a5d93; }
.urteil-starkes-ug { background: var(--koralle-hell); color: #a3291c; }
.urteil-praeadipositas { background: var(--gelb-hell); color: #8a5d00; }
.urteil-adipositas-1, .urteil-adipositas-2, .urteil-adipositas-3 { background: var(--koralle-hell); color: #a3291c; }
.urteil-kind, .urteil-unplausibel { background: #efeaf2; color: var(--pflaume); }
.unplausibel strong { color: var(--pflaume); }
.gerundet { background: var(--gelb-hell); border-radius: 12px; padding: 8px 12px; font-size: .95rem; }
.bmi-direkt { margin-top: 14px; background: #fff; border: 2px solid var(--pflaume-2); border-radius: 16px; padding: 12px 16px; }
.bmi-direkt p { margin: 0 0 .4em; } .bmi-direkt p:last-child { margin: 0; }
.hero .bmi-direkt p { color: var(--tinte); font-size: 1rem; }
.kinder { background: var(--pfirsich-hell); border-radius: 16px; padding: 14px 18px; margin: 0 0 1em; }

/* Idealgewicht */
.ideal-zahl { display: flex; flex-direction: column; align-items: flex-start; background: var(--ok-hell); border-radius: var(--r); padding: 20px 24px; margin-bottom: 1.2em; }
.ideal-zahl strong { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: #1f6f40; line-height: 1.1; }
.ideal-zahl span { color: var(--leise); font-weight: 600; font-size: .92rem; }

/* Klassen-Kacheln und Größen */
.klassen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: .8em; }
@media (max-width: 760px) { .klassen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.klasse { border-radius: 16px; padding: 12px 14px; background: var(--creme); }
.klasse strong { display: block; font-size: 1.25rem; color: var(--pflaume); }
.klasse span { font-size: .92rem; font-weight: 600; }
.klasse-normal { background: var(--ok-hell); } .klasse-praeadipositas { background: var(--gelb-hell); }
.klasse-leichtes-ug, .klasse-maessiges-ug { background: var(--blau-hell); }
.klasse-starkes-ug, .klasse-adipositas-1, .klasse-adipositas-2, .klasse-adipositas-3 { background: var(--koralle-hell); }
.groessen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .groessen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.groessen a { display: block; padding: 14px; border-radius: 16px; border: 2px solid var(--linie); text-decoration: none; color: var(--tinte); }
.groessen a:hover { border-color: var(--pflaume-2); }
.groessen strong { display: block; font-size: 1.2rem; color: var(--pflaume); }
.groessen span { color: var(--leise); font-weight: 600; }

/* So groß wie Sie */
.promis { margin: 1.8em 0; }
.promi-liste { list-style: none; padding: 0; margin: 0 0 .6em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .promi-liste { grid-template-columns: minmax(0, 1fr); } }
.promi-liste li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--creme); border: 2px solid var(--linie); min-width: 0; }
.promi-kuerzel { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pflaume); color: var(--pfirsich); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.promi-bild { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--pfirsich-hell); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--pfirsich); }
.promi-kuerzel { width: 56px; height: 56px; }
.promi-liste li:nth-child(4n+2) .promi-kuerzel { background: var(--pfirsich); color: var(--pflaume); }
.promi-liste li:nth-child(4n+3) .promi-kuerzel { background: var(--pflaume-2); color: #fff; }
.promi-liste li:nth-child(4n+4) .promi-kuerzel { background: var(--pfirsich-hell); color: var(--pflaume); }
.promi-liste li > span:last-child { min-width: 0; }
.promi-liste a { font-weight: 800; color: var(--pflaume); text-decoration: none; }
.promi-liste a:hover { text-decoration: underline; }
.promi-liste small { display: block; color: var(--leise); font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
.promi-mehr { display: block; margin: 4px auto 10px; padding: 10px 22px; border: 2px solid var(--pflaume); border-radius: 999px; background: #fff; color: var(--pflaume); font: inherit; font-weight: 800; cursor: pointer; }
.promi-mehr:hover { background: var(--pflaume); color: #fff; }
.promi-mehr span { font-weight: 600; opacity: .8; }
@media (max-width: 640px) { .promi-mehr { width: 100%; min-height: 48px; } }
.promi-mehr:disabled { opacity: .6; cursor: progress; }
.promi-quelle { font-size: .85rem; color: var(--leise); margin: .3em 0 0; }
details.promi-quelle summary { cursor: pointer; font-weight: 700; }
details.promi-quelle ul { margin: .4em 0 0; padding-left: 1.2em; }
details.promi-quelle li { overflow-wrap: anywhere; }

/* Tabellen */
.tabelle-scroll { overflow-x: auto; margin: 0 0 1.2em; border-radius: 16px; border: 2px solid var(--linie); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
thead th { background: var(--pflaume); color: #fff; font-size: .85rem; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.punkt { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: .5em; background: var(--leise); }
.klasse-normal .punkt { background: var(--ok); } .klasse-praeadipositas .punkt { background: var(--gelb); }
.klasse-leichtes-ug .punkt, .klasse-maessiges-ug .punkt { background: var(--blau); }
.klasse-starkes-ug .punkt, .klasse-adipositas-1 .punkt, .klasse-adipositas-2 .punkt, .klasse-adipositas-3 .punkt { background: var(--koralle); }
tr.klasse-normal td { background: var(--ok-hell); font-weight: 700; }
.gewichtstabelle td:nth-child(2), .gewichtstabelle td:nth-child(3), .gewichtstabelle th:nth-child(2) { white-space: nowrap; }
@media (max-width: 480px) { .gewichtstabelle { font-size: .8rem; } .gewichtstabelle th, .gewichtstabelle td { padding: 8px 5px; } .gewichtstabelle th:first-child, .gewichtstabelle td:first-child { padding-left: 8px; } .gewichtstabelle .punkt { margin-right: .3em; } }
table.breit { font-size: .88rem; min-width: 720px; }

/* Listen */
.teaser { list-style: none; padding: 0; display: grid; gap: 10px; }
.teaser a { display: block; padding: 14px 18px; border-radius: 16px; background: var(--creme); text-decoration: none; color: var(--tinte); }
.teaser a:hover { background: var(--pfirsich-hell); }
.wertliste, .nachbarn { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1em; }
.wertliste a, .nachbarn a, .nachbarn span { padding: 6px 10px; border-radius: 10px; background: var(--creme); text-decoration: none; font-weight: 700; color: var(--pflaume); font-variant-numeric: tabular-nums; }
.wertliste a:hover, .nachbarn a:hover { background: var(--pfirsich); color: var(--pflaume); }
.nachbarn span { background: var(--pflaume); color: #fff; }
article::after { content: ""; display: table; clear: both; }

/* Fuß */
.fuss { color: var(--leise); font-size: .9rem; }
.fuss-innen { max-width: 980px; margin: 0 auto; padding: 4px 16px 40px; }
.fuss a { color: var(--pflaume); font-weight: 700; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }

/* Consent */
#consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 12px; }
#consent-banner[hidden] { display: none; }
.consent-box { max-width: 720px; margin: 0 auto; background: var(--pflaume); color: #fff; border-radius: 22px; box-shadow: 0 16px 40px rgba(42,29,51,.35);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.consent-box a { color: var(--pfirsich); }
.consent-box p { margin: 0; flex: 1 1 240px; font-size: .95rem; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { background: var(--pfirsich); color: var(--pflaume); }
#consent-refuse { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }

@media print { .hauptnav, .hero, .fuss nav, #consent-banner { display: none !important; } body { background: #fff; } main { box-shadow: none; padding: 0; } }

/* Kleine Zeile über der H1 (Doktrin: Titel = H1, der Werbesatz steht davor) */
.hero-kicker { margin: 0 0 .3rem; font-weight: 700; letter-spacing: .02em; opacity: .85; }
