/* pulstabellen.de — Gestaltung „Herzschlag“: Nachtblau, elektrisches Blau, Koralle; Schrift Outfit (lokal) */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --nacht: #0b1533; --nacht-2: #142350; --blau: #2c5cff; --blau-dunkel: #1d43d6; --blau-hell: #eaf0ff;
  --koralle: #ff4d5e; --koralle-hell: #ffe8ea;
  --text: #19203d; --text-leise: #5b6488; --linie: #e2e7f5; --flaeche: #f3f6ff; --weiss: #fff;
  --rot: #c62f3d; --gruen: #1f9d55; --orange: #c46a06;
  --z-basis: #d9d0d0; --z-gesundheit: #44aa46; --z-fett: #fcea00; --z-aerob: #f79649; --z-anaerob: #d17b57; --z-rot: #bf281d;
  --r: 18px; --schatten: 0 10px 30px -12px rgba(11, 21, 51, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--flaeche); color: var(--text); font: 400 17.5px/1.65 "Outfit", system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--blau); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--koralle); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--nacht); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); margin: .1em 0 .55em; }
h2 { font-size: 1.5rem; margin: 1.9em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
p, ul, ol, dl { 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: dunkle Zeile mit Logo links, Navigation rechts, darunter die EKG-Linie */
.kopf { background: var(--nacht); color: #fff; position: relative; }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 14px 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: #fff; flex: none; }
.logo picture { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; }
.logo img { width: 34px; height: auto; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff; }
.logo-name span { color: var(--koralle); }
.logo-claim { font-size: .8rem; color: #aab4d8; letter-spacing: .02em; }
.logo:hover { color: #fff; }
.hauptnav .nav-innen { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hauptnav .nav-innen::-webkit-scrollbar { display: none; }
.hauptnav a { flex: none; color: #c9d1f2; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 14px; border-radius: 999px; }
.hauptnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hauptnav a[aria-current="page"] { color: #fff; background: var(--blau); }
.ekg { display: block; width: 100%; height: 34px; color: var(--koralle); }
.ekg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ekg 2.6s ease-out .2s forwards; }
@keyframes ekg { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ekg path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .kopf-innen { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px 6px; }
  .hauptnav { width: 100%; margin: 0 -6px; }
  .logo-name { font-size: 1.25rem; }
}

/* Hero der Startseite */
.hero { background: linear-gradient(180deg, var(--nacht) 0%, var(--nacht-2) 100%); color: #fff; padding: 18px 24px 64px; margin-top: -1px; }
.hero-innen { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin: 0 0 .35em; }
.hero h1 em { font-style: normal; color: var(--koralle); }
.hero p { color: #c9d1f2; font-size: 1.12rem; max-width: 34em; }
.hero-karte { background: #fff; color: var(--text); border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.hero-karte h2 { margin: 0 0 12px; font-size: 1.2rem; }
.hero-zahlen { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-zahlen div { border-left: 3px solid var(--koralle); padding-left: 12px; }
.hero-zahlen strong { display: block; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero-zahlen span { font-size: .85rem; color: #aab4d8; }
@media (max-width: 860px) { .hero { padding: 8px 16px 40px; } .hero-innen { grid-template-columns: 1fr; gap: 26px; } }

/* Raster */
.rahmen { max-width: 1180px; margin: 0 auto; padding: 36px 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.rahmen.ohne-seite { grid-template-columns: minmax(0, 1fr); }
.hat-hero .rahmen { margin-top: -34px; }
main { min-width: 0; background: #fff; border-radius: var(--r); padding: 34px 40px 36px; box-shadow: var(--schatten); overflow-wrap: break-word; }
.seite { display: flex; flex-direction: column; gap: 20px; }
.seite > .kasten:first-child { position: sticky; top: 20px; }
@media (max-width: 960px) {
  .rahmen { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 12px 40px; }
  main { padding: 22px 18px 26px; }
  .seite > .kasten:first-child { position: static; }
}

.krumen { font-size: .86rem; color: var(--text-leise); margin-bottom: .6em; }
.krumen a { color: var(--text-leise); }
.unterzeile { font-size: 1.15rem; color: var(--text-leise); margin-top: -.3em; }
.kleingedruckt { font-size: .9rem; color: var(--text-leise); }
.merksatz { background: var(--koralle-hell); border-radius: 14px; padding: 14px 18px; border-left: 5px solid var(--koralle); }

/* Kästen, Formular */
.kasten { background: #fff; border-radius: var(--r); padding: 20px 22px; box-shadow: var(--schatten); }
.kasten h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--koralle); margin: 0 0 12px; }
main .kasten { background: var(--blau-hell); box-shadow: none; margin: 1.6em 0; }
main .kasten .kasten-titel, .hero-karte .kasten-titel { font-size: 1.2rem; text-transform: none; letter-spacing: -.01em; color: var(--nacht); }
.kasten-links ul { list-style: none; padding: 0; margin: 0; }
.kasten-links li + li { border-top: 1px solid var(--linie); }
.kasten-links a { display: block; padding: 9px 0; text-decoration: none; color: var(--text); font-weight: 500; }
.kasten-links a::after { content: " →"; color: var(--koralle); }
.kasten-links a:hover { color: var(--blau); }
.quickcheck label { display: block; font-weight: 600; margin-bottom: 8px; }
.quickcheck label span { font-weight: 400; color: var(--text-leise); font-size: .9em; }
.qc-zeile { display: flex; gap: 10px; }
.quickcheck input { width: 8em; min-width: 0; flex: 1 1 auto; font: inherit; font-size: 1.35rem; font-weight: 600; padding: 10px 16px;
  border: 2px solid var(--linie); border-radius: 14px; background: #fff; color: var(--nacht); }
.quickcheck input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(44, 92, 255, .18); }
.quickcheck input[aria-invalid="true"] { border-color: var(--rot); }
button { font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 14px; padding: 12px 20px; background: var(--koralle); color: #fff; }
button:hover { background: #e93a4b; }
button:focus-visible, a:focus-visible, select:focus-visible, input[type=range]:focus-visible { outline: 3px solid rgba(44, 92, 255, .5); outline-offset: 2px; }
.knopf-leise { background: transparent; color: var(--blau); border: 2px solid var(--blau); padding: 8px 16px; font-size: .92rem; }
.knopf-leise:hover { background: var(--blau); color: #fff; }
.qc-fehler { color: var(--rot); font-size: .9rem; margin: 8px 0 0; }

/* Tabellen */
.tabelle-scroll { overflow-x: auto; margin: 0 0 1.2em; border-radius: 14px; border: 1px solid var(--linie); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--text-leise); padding: 8px 12px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; }
thead th { background: var(--nacht); color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
thead th small { font-weight: 400; color: #aab4d8; }
tbody tr:nth-child(even) { background: #f7f9ff; }
tbody td { border-top: 1px solid var(--linie); }
.zonentabelle td { white-space: nowrap; }
.zonentabelle th { padding: 10px 10px; }
table.breit { font-size: .88rem; min-width: 720px; }
table.breit td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.zonen-punkt { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .45em; vertical-align: -.05em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.zp-basis { background: var(--z-basis); } .zp-gesundheit { background: var(--z-gesundheit); } .zp-fett { background: var(--z-fett); }
.zp-aerob { background: var(--z-aerob); } .zp-anaerob { background: var(--z-anaerob); } .zp-rot, .zp-ueber { background: var(--z-rot); }

/* Bilder, Listen */
.bild-breit { margin: 0 0 1.4em; }
.bild-breit img { display: block; width: 100%; border-radius: var(--r); }
.bild-rechts { float: right; margin: 0 0 1em 1.6em; max-width: 46%; }
.bild-rechts img { border-radius: var(--r); display: block; }
@media (max-width: 600px) { .bild-rechts { float: none; margin: 0 0 1em; max-width: 100%; } }
article::after { content: ""; display: table; clear: both; }
.teaser { list-style: none; padding: 0; display: grid; gap: 10px; }
.teaser a { display: block; padding: 14px 18px; border-radius: 14px; background: var(--flaeche); text-decoration: none; color: var(--text); }
.teaser a:hover { background: var(--blau-hell); }
.teaser strong { color: var(--nacht); }
.kriterien dt { font-weight: 700; margin-top: .9em; color: var(--nacht); }
.kriterien dd { margin: .2em 0 0 0; padding-left: 16px; border-left: 3px solid var(--koralle); }

/* Antwort der Pulsseiten */
.antwort { border-radius: var(--r); padding: 18px 22px 18px 26px; margin: 0 0 1.4em; background: var(--flaeche); position: relative; }
.antwort p:last-child { margin-bottom: 0; }
.antwort-kopf { font-size: 1.15rem; margin-bottom: .4em; }
.antwort::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px; border-radius: 0 5px 5px 0; background: var(--text-leise); }
.antwort-normal { background: #e9f8ef; } .antwort-normal::before { background: var(--gruen); }
.antwort-niedrig, .antwort-erhoeht-normal { background: #fff7dc; } .antwort-niedrig::before, .antwort-erhoeht-normal::before { background: #d8a800; }
.antwort-sehr-niedrig, .antwort-erhoeht { background: #fff0e2; } .antwort-sehr-niedrig::before, .antwort-erhoeht::before { background: var(--orange); }
.antwort-stark-erhoeht, .antwort-extrem, .antwort-extrem-niedrig { background: var(--koralle-hell); } .antwort-stark-erhoeht::before, .antwort-extrem::before, .antwort-extrem-niedrig::before { background: var(--rot); }
.antwort-sport { border-top: 1px solid rgba(25, 32, 61, .12); padding-top: .8em; margin-top: .8em; }

/* Herzfrequenzzonen-Rechner */
.rechner { border-radius: var(--r); padding: 22px 24px 24px; margin: 0 0 1.6em; background: linear-gradient(180deg, #fff, var(--flaeche)); border: 1px solid var(--linie); }
.alter-wahl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.alter-wahl label { font-weight: 700; }
.alter-wahl select { font: inherit; font-weight: 600; padding: 8px 10px; border: 2px solid var(--linie); border-radius: 12px; background: #fff; }
.alter-wahl input[type=range] { flex: 1 1 200px; accent-color: var(--koralle); }
.rechner:not(.js) #animation, .rechner:not(.js) input[type=range] { display: none; }
.maxhf { margin: 14px 0 6px; }
.maxhf strong { color: var(--koralle); font-size: 1.2em; }
.ergebnis { background: #fff; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--linie); }
.diagramm { position: relative; height: 440px; margin: 30px 0 16px; max-width: 540px; }
.skala { position: absolute; inset: 0; }
.marke { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #e3e8f6; }
.marke span { position: absolute; left: 0; top: -.7em; font-size: .75rem; color: var(--text-leise); line-height: 1.4; width: 30px; text-align: right; }
.marke-stark { border-top: 1px solid #d3daf0; }
.skala-titel { position: absolute; top: -26px; left: 0; font-size: .8rem; font-weight: 700; }
.saeule { position: absolute; left: 42px; width: min(220px, 48%); top: 0; bottom: 0; }
.balken { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: .78rem; font-weight: 700; color: #1b1b1b; text-align: center; line-height: 1.1;
  transition: height .45s ease-out, bottom .45s ease-out; border-top: 1px solid rgba(255,255,255,.6); }
.balken-rot { border-radius: 10px 10px 0 0; }
.balken-basis { border-radius: 0 0 10px 10px; }
.ohne-uebergang .balken { transition: none !important; }
.balken-basis { background: var(--z-basis); } .balken-gesundheit { background: var(--z-gesundheit); } .balken-fett { background: var(--z-fett); }
.balken-aerob { background: var(--z-aerob); } .balken-anaerob { background: var(--z-anaerob); } .balken-rot { background: var(--z-rot); color: #fff; }
.ihr-wert { position: absolute; left: calc(42px + min(220px, 48%) + 12px); transform: translateY(50%); font-weight: 800; white-space: nowrap; font-size: .95rem;
  background: var(--nacht); color: #fff; padding: 3px 10px; border-radius: 999px; }
.ihr-wert-linie { position: absolute; left: -4px; right: -12px; height: 0; border-top: 2px dashed var(--nacht); z-index: 2; }
@media (max-width: 480px) { .diagramm { height: 380px; } .balken { font-size: .75rem; } .ihr-wert { font-size: .8rem; } }

/* Zonentexte */
.zonentext { padding: 6px 18px 4px; border-radius: 14px; margin-bottom: 8px; border: 1px solid transparent; }
.zonentext h3 { margin-top: .7em; }
.zonentext.aktiv { border-color: var(--blau); background: var(--blau-hell); }
.zonentext.aktiv h3::after { content: "Ihr Bereich"; font-size: .75rem; color: #fff; background: var(--blau); margin-left: .6em; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: .2em; }
.zonentext-basis .zonen-punkt { background: var(--z-basis); } .zonentext-gesundheit .zonen-punkt { background: var(--z-gesundheit); }
.zonentext-fett .zonen-punkt { background: var(--z-fett); } .zonentext-aerob .zonen-punkt { background: var(--z-aerob); }
.zonentext-anaerob .zonen-punkt { background: var(--z-anaerob); } .zonentext-rot .zonen-punkt { background: var(--z-rot); }

/* Wertlisten */
.nachbarn, .wertliste { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1em; }
.nachbarn a, .nachbarn span, .wertliste a { display: inline-block; min-width: 3.1em; text-align: center; padding: 7px 9px; border-radius: 10px;
  background: var(--flaeche); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nacht); }
.nachbarn a:hover, .wertliste a:hover { background: var(--blau); color: #fff; }
.nachbarn span { background: var(--koralle); color: #fff; }

/* Fuß */
.fuss { background: var(--nacht); color: #c9d1f2; font-size: .9rem; }
.fuss-innen { max-width: 1180px; margin: 0 auto; padding: 30px 24px 34px; }
.fuss a { color: #fff; }
.fuss-notfall { background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .35); border-radius: 14px; padding: 12px 16px; }
.fuss-notfall span, .fuss-hinweis { color: #9aa4cc; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }

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

@media print {
  .kopf .hauptnav, .ekg, .hero, .seite, .fuss nav, #consent-banner, #animation { display: none !important; }
  body { background: #fff; } main { box-shadow: none; padding: 0; }
}
.hero .hero-karte p { color: var(--text-leise); font-size: .9rem; margin: 10px 0 0; }
.ist-start .seite > .kasten:first-child { display: none; }
.hero-innen > * { min-width: 0; }
@media (max-width: 860px) { .hero-innen { grid-template-columns: minmax(0, 1fr); } .hauptnav { margin: 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; }

/* Hinweise auf den Pulsseiten */
.alter-hinweis { font-size: .9rem; color: var(--text-leise); margin: 8px 0 0; }
.hinweis-zonen { background: var(--flaeche); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 10px 14px; }
/* /puls/?puls=999 ohne JavaScript → /puls/#ungueltig: Hinweis nur dann sichtbar */
.hinweis-ungueltig { display: none; }
.hinweis-ungueltig:target { display: block; background: #fff0e2; border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; padding: 12px 16px; font-weight: 600; }

/* Quellen und Stand */
.quellen { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--linie); font-size: .92rem; color: var(--text-leise); }
.quellen h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.quellen ul { padding-left: 1.2em; margin-bottom: .6em; }
.quellen li { margin-bottom: .3em; }
.quellen .stand { margin: 0; }

/* Diagramm: Etikett „Ihr Wert“ bleibt innerhalb der Fläche (auch bei 250 und auf dem Handy) */
.diagramm { margin-top: 36px; }
.ihr-wert { max-width: calc(100% - 42px - min(220px, 48%) - 12px); }
@media (max-width: 480px) { .iw-wort { display: none; } }

/* Fuß: Tippflächen mindestens 40 px hoch */
.fuss nav { gap: 0 18px; }
.fuss nav a { display: inline-flex; align-items: center; min-height: 40px; }
.fuss-notfall a, .fuss-hinweis a { display: inline-block; padding: 8px 0; margin: -8px 0; line-height: 24px; }

/* ===== Robust gegen eingefügte Elemente (AdSense Auto Ads) =====
   Anzeigen werden NICHT versteckt; sie dürfen nur nicht breiter als ihr Platz werden und
   Logo und Navigation nicht auseinanderreißen. Die Navigation liegt im <header>. */
html, body { overflow-x: clip; }
.kopf, .hero, .rahmen, main, .seite, .fuss { min-width: 0; max-width: 100%; }
.kopf, .hero, .rahmen, .fuss { overflow-x: clip; }
ins.adsbygoogle, .google-auto-placed, .adsbygoogle iframe, main iframe, .kopf iframe, .seite iframe, .fuss iframe { max-width: 100% !important; box-sizing: border-box; }
ins.adsbygoogle, .google-auto-placed { min-width: 0 !important; }
/* Landet eine Einheit zwischen Logo und Menü, rutscht sie in eine eigene Zeile darunter */
.kopf-innen { flex-wrap: wrap; }
.kopf-innen > :not(.logo):not(.hauptnav) { order: 3; flex: 1 0 100%; }
@media (max-width: 860px) { .kopf-innen > :not(.logo):not(.hauptnav) { flex: 0 0 auto; width: 100%; } }
.hauptnav { min-width: 0; max-width: 100%; }
.hauptnav .nav-innen > :not(a) { flex: 0 1 auto; min-width: 0; max-width: 100%; }

/* Mobile Navigation: Verlauf am rechten Rand zeigt, dass es weitergeht (site.js setzt .weiter) */
.hauptnav { position: relative; }
.hauptnav::after { content: "›"; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px;
  color: #fff; font-size: 1.5rem; font-weight: 700; line-height: 1; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, rgba(11, 21, 51, 0), var(--nacht) 65%); }
.hauptnav.weiter::after { opacity: 1; }
