/* daveostudio.com – gemeinsames Stylesheet.
   Bewusst dunkel mit hellen Inhaltsblöcken, kein Dark/Light-Toggle.
   Kontraste aller Text/Grund-Kombinationen: scripts/kontrast.mjs. */

/* ---------- Schriften (selbst gehostet, Latin, OFL) ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --grund-dunkel: #17110d;
  --flaeche-dunkel: #221912;
  --linie: #3d2e22;
  --rand: #4a3828;
  --messing: #c9a464;
  --messing-hell: #e0c08a;
  --leinen: #f2eae0;
  --karte-hell: #fff;
  --rand-hell: #e6daca;
  --text-dunkel: #1c1410;
  --text-gedaempft-hell: #5a4838;
  --text-auf-dunkel: #f2eae0;
  --gedaempft-auf-dunkel: #d9cbb8;
  --meta: #b9a893;
  --holzbraun: #8b5e3c;
  --geraet-rahmen: #0e0a08;
  --ampel-gruen: #2e6b3a;
  --ampel-gelb: #7a5300;
  --ampel-rot: #9a3324;

  --schrift-titel: "Fraunces", georgia, "Times New Roman", serif;
  --schrift-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-mono: "JetBrains Mono", ui-monospace, "SF Mono", menlo, monospace;

  --breite-max: 1200px;
  --rand-seite: 32px;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 16px;
  --ziel-min: 44px;

  color-scheme: dark;
}

@media (width <= 640px) {
  :root {
    --rand-seite: 16px;
  }
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--grund-dunkel);
  color: var(--text-auf-dunkel);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--messing-hell);
  outline-offset: 3px;
  border-radius: 4px;
}

.hell :focus-visible {
  outline-color: var(--holzbraun);
}

.huelle {
  max-width: var(--breite-max);
  margin-inline: auto;
  padding-inline: var(--rand-seite);
}

.sprunglink {
  position: absolute;
  left: var(--rand-seite);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  min-height: var(--ziel-min);
  background: var(--messing);
  color: var(--grund-dunkel);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}

.sprunglink:focus {
  top: 12px;
}

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

.abschnitt {
  padding-block: clamp(56px, 8vw, 104px);
}

.dunkel {
  background: var(--grund-dunkel);
  color: var(--text-auf-dunkel);
}

.hell {
  background: var(--leinen);
  color: var(--text-dunkel);
}

/* Zwei helle Abschnitte hintereinander: Abstand nicht verdoppeln. */
.hell + .hell {
  padding-top: 0;
}

.eyebrow {
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--messing);
}

.hell .eyebrow {
  color: var(--holzbraun);
}

.abschnitt-kopf {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.abschnitt-kopf h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

.abschnitt-kopf p {
  font-size: 1.125rem;
  color: var(--gedaempft-auf-dunkel);
}

.hell .abschnitt-kopf p {
  color: var(--text-gedaempft-hell);
}

/* ---------- Kopfzeile ---------- */

.kopf {
  border-bottom: 1px solid var(--linie);
}

.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 12px;
}

.wortmarke {
  display: inline-flex;
  align-items: center;
  min-height: var(--ziel-min);
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text-auf-dunkel);
}

.wortmarke span {
  color: var(--messing);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ziel-min);
  padding-inline: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gedaempft-auf-dunkel);
  text-decoration: none;
  border-radius: var(--radius-s);
}

.nav a:hover {
  color: var(--messing-hell);
}

.nav a[aria-current="page"] {
  color: var(--messing-hell);
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (width <= 420px) {
  .nav a {
    padding-inline: 8px;
  }

  .nav ul {
    gap: 0;
  }
}

/* Vier Einträge bleiben bis 320 px in einer Zeile. */
@media (width <= 360px) {
  .nav a {
    padding-inline: 6px;
  }
}

/* ---------- Gerät (Screenshot-Rahmen) ---------- */

.device {
  border: 10px solid var(--geraet-rahmen);
  border-radius: 36px;
  background: var(--geraet-rahmen);
  box-shadow:
    0 0 0 1px var(--rand),
    0 24px 48px -12px rgb(0 0 0 / 55%),
    0 8px 16px -8px rgb(0 0 0 / 40%);
  overflow: hidden;
}

.device img,
.device video {
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.hell .device {
  box-shadow:
    0 0 0 1px var(--rand),
    0 24px 48px -16px rgb(28 20 16 / 35%),
    0 8px 16px -8px rgb(28 20 16 / 25%);
}

/* ---------- Play-Badge ---------- */

/* Googles Badge enthält den vorgeschriebenen Freiraum bereits im SVG.
   60px Gesamthöhe ergeben 40px sichtbares Badge (Mindestgröße). */
.play-badge {
  display: inline-block;
  min-height: var(--ziel-min);
  border-radius: var(--radius-s);
}

.play-badge img {
  height: 60px;
  width: auto;
}

.marken-hinweis {
  font-size: 0.8125rem;
  color: var(--meta);
}

/* ---------- Hero ---------- */

.hero .huelle {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero-text {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.1875rem;
  color: var(--gedaempft-auf-dunkel);
  max-width: 36rem;
}

.merkmale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--gedaempft-auf-dunkel);
}

.merkmale li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.merkmale svg {
  flex: none;
  width: 18px;
  color: var(--messing);
}

.hero-bild {
  justify-self: center;
  width: min(100%, 340px);
}

/* Hero-Video: Pause/Abspielen (WCAG 2.2.2), unten rechts auf dem Gerät */
.hero-video {
  position: relative;
}

.device video {
  display: block;
  background: var(--geraet-rahmen);
}

.hero-video-knopf {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: var(--ziel-min);
  height: var(--ziel-min);
  padding: 0;
  border: 1px solid var(--rand);
  border-radius: 50%;
  background: rgb(23 17 13 / 85%);
  color: var(--messing-hell);
  cursor: pointer;
}

.hero-video-knopf[hidden] {
  display: none;
}

.hero-video-knopf:hover {
  background: var(--grund-dunkel);
}

.hero-video-knopf svg {
  width: 20px;
  height: 20px;
}

.hero-video-knopf[aria-pressed="true"] .symbol-pause,
.hero-video-knopf[aria-pressed="false"] .symbol-play {
  display: none;
}

@media (width <= 860px) {
  .hero .huelle {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-bild {
    width: min(100%, 300px);
  }
}

/* ---------- Schritte ---------- */

.schritte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.schritt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schritt-nummer {
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--holzbraun);
}

.schritt h3 {
  font-size: 1.5rem;
}

.schritt p {
  color: var(--text-gedaempft-hell);
}

.schritt-bild {
  margin-top: auto;
  padding-top: 20px;
  width: min(100%, 280px);
  align-self: center;
}

@media (width <= 860px) {
  .schritte {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .schritt-bild {
    width: min(100%, 260px);
  }
}

/* ---------- Funktionen ---------- */

.funktionen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funktion {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
  background: var(--flaeche-dunkel);
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
}

.funktion svg {
  width: 32px;
  color: var(--messing);
}

.funktion h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--schrift-text);
  font-size: 1.125rem;
}

.funktion p {
  color: var(--gedaempft-auf-dunkel);
  font-size: 0.9875rem;
}

@media (width <= 960px) {
  .funktionen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 600px) {
  .funktionen {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pro-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--messing);
  color: var(--grund-dunkel);
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ---------- Free & Pro ---------- */

.preise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.preiskarte {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--karte-hell);
  border: 1px solid var(--rand-hell);
  border-radius: var(--radius-l);
  color: var(--text-dunkel);
}

.preiskarte--pro {
  background: var(--flaeche-dunkel);
  border-color: var(--messing);
  color: var(--text-auf-dunkel);
}

.preiskarte h3 {
  font-size: 1.75rem;
}

.preis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.preis-betrag {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
}

.preis-hinweis {
  font-family: var(--schrift-mono);
  font-size: 0.875rem;
  color: var(--text-gedaempft-hell);
}

.preiskarte--pro .preis-hinweis {
  color: var(--meta);
}

.liste-haken {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-haken li {
  display: flex;
  gap: 10px;
}

.liste-haken svg {
  flex: none;
  align-self: flex-start;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--holzbraun);
}

.preiskarte--pro .liste-haken svg {
  color: var(--messing);
}

.preiskarte--pro .liste-haken li:first-child {
  color: var(--gedaempft-auf-dunkel);
}

.pro-inhalt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 150px);
  align-items: start;
  gap: 24px;
}

.pro-bild {
  margin: 0;
}

.pro-bild .device {
  border-width: 6px;
  border-radius: 22px;
}

.pro-bild .device img {
  border-radius: 16px;
}

.pro-bild figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--meta);
}

.preise-cta {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 40px;
  text-align: center;
}

.preise-cta .marken-hinweis {
  color: var(--text-gedaempft-hell);
}

@media (width <= 860px) {
  .preise {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 420px) {
  .pro-inhalt {
    grid-template-columns: minmax(0, 1fr);
  }

  .pro-bild {
    justify-self: center;
    width: min(100%, 160px);
  }
}

/* ---------- Rechner-Teaser (/sawvy/) ---------- */

.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--karte-hell);
  border: 1px solid var(--rand-hell);
  border-radius: var(--radius-l);
}

.teaser-text {
  display: grid;
  gap: 8px;
  max-width: 40rem;
}

.teaser h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.teaser-text p:last-child {
  color: var(--text-gedaempft-hell);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 48rem;
}

.faq details {
  background: var(--karte-hell);
  border: 1px solid var(--rand-hell);
  border-radius: var(--radius-m);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--ziel-min);
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--holzbraun);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--text-gedaempft-hell);
}

/* ---------- Rechtstexte ---------- */

.rechtstext {
  hyphens: auto;
  max-width: 47.5rem;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--karte-hell);
  border: 1px solid var(--rand-hell);
  border-radius: var(--radius-l);
}

.rechtstext h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-block: 8px 12px;
}

.rechtstext h2 {
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--holzbraun);
  margin-top: 40px;
}

.rechtstext h3 {
  font-size: 1.25rem;
  margin: 32px 0 8px;
}

.rechtstext p,
.rechtstext ul {
  margin: 0 0 12px;
}

.rechtstext ul {
  padding-left: 20px;
}

.rechtstext li {
  margin: 4px 0;
}

.rechtstext a {
  color: var(--holzbraun);
  text-underline-offset: 2px;
}

/* Generator-Rechtstext: h2 = Abschnitt, h3 = Unterpunkt */
.rechtstext.gegliedert h2 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: normal;
  color: inherit;
  margin: 32px 0 8px;
}

.rechtstext.gegliedert h3 {
  font-size: 1.0625rem;
  margin: 20px 0 8px;
}

.rechtstext .meta {
  font-size: 0.9375rem;
  color: var(--text-gedaempft-hell);
}

.rechtstext .hint {
  border-left: 3px solid var(--holzbraun);
  padding: 4px 12px;
  color: var(--text-gedaempft-hell);
}

.rechtstext nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 8px;
}

.rechtstext nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ziel-min);
}

.rechtstext .fussnote {
  margin-top: 32px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-gedaempft-hell);
}

/* ---------- Einfache Seiten (Fallback, 404) ---------- */

.schlicht {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 40rem;
}

.schlicht h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.schlicht p {
  color: var(--gedaempft-auf-dunkel);
}

.knopf {
  display: inline-flex;
  align-items: center;
  min-height: var(--ziel-min);
  padding: 10px 20px;
  background: var(--messing);
  color: var(--grund-dunkel);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-s);
}

.knopf:hover {
  background: var(--messing-hell);
}

/* ---------- Durchbiegungsrechner ---------- */

.rechner-skizze {
  color: var(--gedaempft-auf-dunkel);
}

.rechner-skizze svg {
  width: 100%;
}

.skizze-boden {
  fill: var(--messing);
}

.skizze-linie {
  stroke: var(--meta);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.skizze-mass {
  stroke: var(--messing-hell);
  stroke-width: 1.5;
}

.skizze-text {
  fill: var(--messing-hell);
  font-family: var(--schrift-mono);
  font-size: 15px;
}

.rechner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 24px;
}

.rechner-eingaben,
.rechner-ergebnis,
.rechner-ohne-js {
  padding: clamp(20px, 3vw, 32px);
  background: var(--karte-hell);
  border: 1px solid var(--rand-hell);
  border-radius: var(--radius-l);
}

.rechner-eingaben {
  /* Formularelemente hell darstellen; :root setzt color-scheme: dark. */
  color-scheme: light;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.feld {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.feld:first-child,
.feld-optionen {
  grid-column: 1 / -1;
}

.feld > label,
.feld legend {
  font-weight: 600;
  font-size: 0.9375rem;
}

.einheit {
  font-family: var(--schrift-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-gedaempft-hell);
}

.feld input,
.feld select {
  width: 100%;
  min-height: var(--ziel-min);
  padding: 8px 12px;
  border: 1px solid var(--text-gedaempft-hell);
  border-radius: var(--radius-s);
  background: var(--karte-hell);
  color: var(--text-dunkel);
  font: inherit;
}

.feld input[aria-invalid="true"] {
  border-color: var(--ampel-rot);
  border-width: 2px;
}

.feld-fehler {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ampel-rot);
}

.feld-optionen {
  padding: 0;
  border: 0;
}

.feld-optionen legend {
  padding: 0;
  margin-bottom: 6px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--ziel-min);
  padding-block: 4px;
  font-weight: 600;
  cursor: pointer;
}

.feld .option input {
  flex: none;
  width: 20px;
  min-height: 0;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--holzbraun);
}

.option-hinweis {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-gedaempft-hell);
}

.rechner-ergebnis {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.ergebnis-inhalt {
  display: grid;
  gap: 18px;
}

.ampel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: var(--radius-s);
  background: var(--leinen);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.ampel-symbol {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ampel[data-ampel="gruen"] {
  color: var(--ampel-gruen);
}

.ampel[data-ampel="gelb"] {
  color: var(--ampel-gelb);
}

.ampel[data-ampel="rot"] {
  color: var(--ampel-rot);
}

.ergebnis-werte {
  display: grid;
  gap: 14px;
  margin: 0;
}

.ergebnis-werte div {
  display: grid;
  gap: 2px;
}

.ergebnis-werte dt {
  font-size: 0.875rem;
  color: var(--text-gedaempft-hell);
}

.ergebnis-werte dd {
  margin: 0;
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 1.25rem;
}

.ergebnis-haupt dd {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
}

.ergebnis-werte .ergebnis-meta {
  font-family: var(--schrift-text);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-gedaempft-hell);
}

.ergebnis-verhaeltnis {
  font-family: var(--schrift-mono);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text-gedaempft-hell);
}

.ergebnis-grenzen,
.haftung {
  font-size: 0.875rem;
  color: var(--text-gedaempft-hell);
}

.ergebnis-fehler {
  font-weight: 600;
  color: var(--ampel-rot);
}

.haftung {
  padding-top: 12px;
  border-top: 1px solid var(--rand-hell);
}

.rechner-ohne-js {
  max-width: 44rem;
  color: var(--text-gedaempft-hell);
}

@media (width <= 860px) {
  .rechner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rechner-ergebnis {
    position: static;
  }
}

@media (width <= 420px) {
  .rechner-eingaben {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fließtext, Hebel-Kacheln, Materialtabelle */

.prosa {
  display: grid;
  gap: 16px;
  max-width: 44rem;
  color: var(--gedaempft-auf-dunkel);
}

.prosa strong {
  color: var(--text-auf-dunkel);
}

.prosa ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.prosa-hell {
  margin-top: 40px;
  color: var(--text-gedaempft-hell);
}

.prosa-hell h3 {
  font-size: 1.25rem;
  color: var(--text-dunkel);
}

.hebel-titel {
  margin: clamp(40px, 6vw, 64px) 0 24px;
  font-size: 1.5rem;
}

.hebel h4 {
  margin: 0;
  font-size: 1.125rem;
}

.funktion .hebel-wert {
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--messing-hell);
}

.funktion strong {
  color: var(--text-auf-dunkel);
}

.tabelle-huelle {
  overflow-x: auto;
  background: var(--karte-hell);
  border: 1px solid var(--rand-hell);
  border-radius: var(--radius-l);
}

.tabelle {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.tabelle th,
.tabelle td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rand-hell);
  text-align: left;
  vertical-align: top;
}

.tabelle tbody tr:last-child > * {
  border-bottom: 0;
}

.tabelle thead th {
  white-space: nowrap;
  font-family: var(--schrift-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--holzbraun);
}

.tabelle thead .einheit {
  display: block;
  color: var(--text-gedaempft-hell);
}

.tabelle td:not(:last-child) {
  font-family: var(--schrift-mono);
  white-space: nowrap;
}

.tabelle td:last-child {
  min-width: 18rem;
  color: var(--text-gedaempft-hell);
}

/* Bis 760 px: je Material eine Karte – Name, Werte-Zeile in Mono,
   darunter die Grundlage. Darüber passt die Tabelle (min. 680 px) ohne
   Scrollen in den Inhaltsbereich. Rollen im HTML halten die Semantik. */
@media (width <= 760px) {
  .tabelle-huelle {
    overflow: visible;
    background: none;
    border: 0;
  }

  .tabelle,
  .tabelle tbody,
  .tabelle tr,
  .tabelle th,
  .tabelle td {
    display: block;
  }

  .tabelle {
    min-width: 0;
  }

  .tabelle thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .tabelle tbody {
    display: grid;
    gap: 12px;
  }

  .tabelle tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 12px;
    padding: 16px 18px;
    background: var(--karte-hell);
    border: 1px solid var(--rand-hell);
    border-radius: var(--radius-m);
  }

  .tabelle tbody th,
  .tabelle tbody td,
  .tabelle tbody tr:last-child > * {
    padding: 0;
    border: 0;
  }

  .tabelle tbody th {
    grid-column: 1 / -1;
    margin-bottom: 6px;
    font-size: 1.0625rem;
  }

  .tabelle td[data-label]::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    font-family: var(--schrift-text);
    font-size: 0.75rem;
    color: var(--text-gedaempft-hell);
  }

  .tabelle td:last-child {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 8px;
  }
}

/* CTA am Seitenende */

.cta h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--ziel-min);
  color: var(--messing-hell);
  text-underline-offset: 3px;
}

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

.fuss {
  border-top: 1px solid var(--linie);
  padding-block: 40px;
  font-size: 0.9375rem;
  color: var(--meta);
}

.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fuss-text {
  display: grid;
  gap: 8px;
}

.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss ul a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ziel-min);
  color: var(--gedaempft-auf-dunkel);
  text-underline-offset: 3px;
}

.fuss ul a:hover {
  color: var(--messing-hell);
}
