/* holzwhirlpool.de — ein Stylesheet, lokal, keine externe Ressource. */

:root {
  color-scheme: light dark;

  --grund:        #f7f7f4;
  --grund-erhoben:#ffffff;
  --grund-sanft:  #edeeea;
  --grund-holz:   #e6e8e3;
  --linie:        #dcded7;
  --text:         #1b2321;
  --text-leise:   #59635f;

  --primaer:      #165c63;
  --primaer-hell: #1d7780;
  --primaer-flach:#e0eded;
  --akzent:       #96521b;
  --akzent-flach: #f8ead8;
  --warn:        #a02c2c;
  --warn-flach:  #fbeaea;
  --warn-linie:  #f0d2d2;

  --radius:   14px;
  --radius-s: 9px;
  --breite:   72rem;
  --schatten: 0 1px 2px rgba(18, 40, 42, .05), 0 8px 24px -12px rgba(18, 40, 42, .22);

  --schrift:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund:        #0d1414;
    --grund-erhoben:#141d1d;
    --grund-sanft:  #1a2524;
    --grund-holz:   #1f2b2a;
    --linie:        #2b3a39;
    --text:         #e7eeec;
    --text-leise:   #a3b3b0;

    --primaer:      #62c9cf;
    --primaer-hell: #8bdde2;
    --primaer-flach:#10302f;
    --akzent:       #e0a163;
    --akzent-flach: #33240f;
    --warn:        #f3908c;
    --warn-flach:  #35191a;
    --warn-linie:  #4d2426;
    --schatten: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -14px rgba(0, 0, 0, .7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.95rem, 1.4rem + 2.3vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.12rem, 1.04rem + .38vw, 1.32rem); margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; }

a { color: var(--primaer); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--akzent); }

strong { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

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

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--primaer); color: var(--grund);
  padding: .85rem 1.2rem; border-radius: 0 0 var(--radius-s) 0; text-decoration: none;
}
.skiplink:focus { left: 0; }

.innen, .kopf__innen, .krumen__innen, .fuss__innen, .fuss__unten {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-block: .65rem;
}

.marke {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primaer); text-decoration: none;
  font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em;
  padding: .35rem 0;
}
.marke__zeichen { flex: none; }
.marke__text { font-weight: 400; }
.marke__text strong { font-weight: 700; }
.marke:hover { color: var(--akzent); }

.hauptnav { margin-left: auto; }
.hauptnav ul {
  display: flex; flex-wrap: wrap; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.hauptnav a {
  display: flex; align-items: center;
  padding: .6rem .75rem;
  border-radius: var(--radius-s);
  color: var(--text-leise);
  text-decoration: none;
  font-size: .94rem;
  min-height: 44px;
}
.hauptnav a:hover { background: var(--grund-sanft); color: var(--text); }
.hauptnav a[aria-current="page"] { background: var(--primaer-flach); color: var(--primaer); font-weight: 600; }

/* ---------- Brotkrumen ---------- */

.krumen { border-bottom: 1px solid var(--linie); background: var(--grund-sanft); }
.krumen ol {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 0; padding: .7rem 0;
  font-size: .875rem; color: var(--text-leise);
}
.krumen li + li::before { content: "\203A"; margin-right: .45rem; color: var(--text-leise); }
.krumen a { color: var(--text-leise); }

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

.hero {
  background:
    radial-gradient(58rem 26rem at 80% -20%, var(--primaer-flach), transparent 62%),
    radial-gradient(42rem 24rem at 4% 4%, var(--akzent-flach), transparent 60%);
  border-bottom: 1px solid var(--linie);
}
.hero__innen {
  max-width: var(--breite); margin-inline: auto;
  padding: clamp(2.5rem, 6.5vw, 5rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__innen { grid-template-columns: 1.02fr .98fr; }
}
.hero__vorspann {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem);
  color: var(--text-leise);
  max-width: 46ch;
}
.hero__bild { justify-self: center; width: 100%; max-width: 30rem; height: auto; }

.marke-klein {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; padding: .35rem .85rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-leise); text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.marke-klein::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--akzent);
}

/* ---------- Knoepfe ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .12s ease;
}
.knopf--voll { background: var(--primaer); color: var(--grund); }
.knopf--voll:hover { background: var(--primaer-hell); color: var(--grund); transform: translateY(-1px); }
.knopf--leer { background: var(--grund-erhoben); border-color: var(--linie); color: var(--text); }
.knopf--leer:hover { border-color: var(--primaer); color: var(--primaer); transform: translateY(-1px); }

/* ---------- Inhaltsbereich ---------- */

.abschnitt { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.abschnitt--sanft { background: var(--grund-sanft); border-block: 1px solid var(--linie); }
.abschnitt--holz { background: var(--grund-holz); border-block: 1px solid var(--linie); }

.text { max-width: 42rem; }
.text > h2:first-child, .text > h3:first-child, .innen > h2:first-child { margin-top: 0; }
.text ul, .text ol { padding-left: 1.35rem; }
.text li { margin-bottom: .45rem; }
.text li::marker { color: var(--primaer); }

.vorspann {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
  color: var(--text-leise);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.stand { color: var(--text-leise); font-size: .85rem; margin-top: 2.5rem; }

caption {
  text-align: left; margin-bottom: .6rem;
  font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
  font-weight: 700; color: var(--text-leise);
}

/* ---------- Karten ---------- */

.karten {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  list-style: none; margin: 0; padding: 0;
}
.karte {
  position: relative;
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
  transition: transform .14s ease, border-color .14s ease;
}
.karte:hover { transform: translateY(-2px); border-color: var(--primaer); }
.karte h2, .karte h3 { margin: 0; font-size: 1.18rem; }
.karte p { margin: 0; color: var(--text-leise); font-size: .95rem; }
.karte a { text-decoration: none; color: inherit; }
.karte a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.karte a:hover { color: var(--primaer); }
.karte__nummer {
  font-family: var(--schrift);
  font-variant-numeric: tabular-nums;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  color: var(--akzent);
}
.karte__zeichen { color: var(--primaer); }

/* ---------- Bausteine (Symbolraster) ---------- */

.bausteine {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.baustein {
  display: grid; grid-template-columns: 3rem 1fr; gap: .95rem; align-items: start;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.baustein__zeichen {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--primaer-flach); color: var(--primaer);
}
.baustein h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.baustein p { margin: 0; color: var(--text-leise); font-size: .93rem; }

/* ---------- Regeln und Schritte ---------- */

.regeln, .schritte {
  display: grid; gap: 1.1rem; list-style: none;
  margin: 2rem 0 0; padding: 0; counter-reset: regel;
}
.regel, .schritt {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.regel::before, .schritt::before {
  counter-increment: regel; content: counter(regel);
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--primaer-flach); color: var(--primaer);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.regel h3, .schritt h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.regel p, .schritt p { margin: 0 0 .5rem; color: var(--text-leise); }
.regel div > :last-child, .schritt div > :last-child { margin-bottom: 0; }

/* ---------- Hinweiskasten ---------- */

.kasten {
  border: 1px solid var(--linie);
  border-left: 4px solid var(--akzent);
  background: var(--akzent-flach);
  border-radius: var(--radius-s);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}
.kasten > :last-child { margin-bottom: 0; }
.kasten__titel {
  font-family: var(--schrift);
  font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--akzent);
  margin: 0 0 .4rem;
}
.kasten ol, .kasten ul { margin: 0; padding-left: 1.35rem; }
.kasten li { margin-bottom: .35rem; }
.kasten li:last-child { margin-bottom: 0; }
.kasten--wort { border-left-color: var(--primaer); background: var(--primaer-flach); }
.kasten--wort .kasten__titel { color: var(--primaer); }

/* ---------- Tabelle ---------- */

.tabellenrahmen { overflow-x: auto; margin: 1.6rem 0; }
table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem; min-width: 32rem;
}
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--grund-sanft); font-size: .85rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
td.menge { font-variant-numeric: tabular-nums; white-space: nowrap; }

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

.faq { margin-top: 1.5rem; display: grid; gap: .7rem; }
.faq details {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius-s);
  padding: .25rem 1.25rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: .95rem 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primaer); font-size: 1.4rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--linie); }
.faq details > :not(summary) { margin-top: .9rem; }
.faq details > :last-child { margin-bottom: .95rem; }

/* ---------- Weiterlesen ---------- */

.weiter { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); }
.weiter__titel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); font-weight: 700; }
.weiter ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.weiter a {
  display: inline-block; padding: .5rem .95rem;
  background: var(--grund-erhoben); border: 1px solid var(--linie);
  border-radius: 999px; font-size: .92rem; text-decoration: none; color: var(--text);
}
.weiter a:hover { border-color: var(--primaer); color: var(--primaer); }

/* ---------- Fuss ---------- */

.fuss { margin-top: clamp(3rem, 8vw, 5rem); background: var(--grund-sanft); border-top: 1px solid var(--linie); }
.fuss__innen {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.fuss__text { color: var(--text-leise); font-size: .92rem; max-width: 36ch; margin: 0; }
.fuss__titel { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--text-leise); margin: 0 0 .7rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .1rem; }
.fuss li a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text); text-decoration: none; font-size: .95rem;
}
.fuss li a:hover { color: var(--primaer); text-decoration: underline; }
.fuss__unten { border-top: 1px solid var(--linie); padding-block: 1.1rem; }
.fuss__unten p { margin: 0; font-size: .85rem; color: var(--text-leise); }

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

.recht { max-width: 44rem; }
.recht h2 { font-size: 1.32rem; }
.recht dl { margin: 0 0 1.5rem; }
.recht dt { font-weight: 600; margin-top: .8rem; }
.recht dd { margin: 0 0 .2rem; color: var(--text-leise); }

/* ---------- 404 ---------- */

.mitte { text-align: center; max-width: 40rem; margin-inline: auto; }
.mitte .knopfreihe { justify-content: center; }
.mitte .vorspann { margin-inline: auto; }
.mitte .karten { margin-top: 3rem; text-align: left; }


/* ---------- Kennzahlen ---------- */

.werte {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.wert {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.wert__zahl {
  display: block;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--primaer);
  line-height: 1.1;
}
.wert__einheit { font-size: .55em; font-weight: 600; letter-spacing: 0; margin-left: .15em; }
.wert__text { display: block; margin-top: .35rem; font-size: .9rem; color: var(--text-leise); }

/* ---------- Rechenweg ---------- */

.rechnung {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--primaer);
  border-radius: var(--radius-s);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}
.rechnung > :last-child { margin-bottom: 0; }
.rechnung__titel {
  font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primaer);
  margin: 0 0 .7rem;
}
.rechnung dl { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; margin: 0 0 .9rem; }
.rechnung dt { color: var(--text-leise); font-size: .95rem; }
.rechnung dd {
  margin: 0; text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: .95rem;
}
.rechnung dd.ergebnis, .rechnung dt.ergebnis {
  border-top: 1px solid var(--linie); margin-top: .45rem; padding-top: .45rem;
  color: var(--primaer); font-weight: 700;
}
.rechnung dt.ergebnis { color: var(--text); }
.rechnung__formel {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem; color: var(--text-leise);
  background: var(--grund-sanft); border-radius: 6px;
  padding: .5rem .7rem; margin: 0 0 .9rem;
  overflow-x: auto;
}
.rechnung__hinweis { font-size: .88rem; color: var(--text-leise); margin: 0; }

/* ---------- Warnkasten ---------- */

.warnung {
  border: 1px solid var(--warn-linie);
  border-left: 4px solid var(--warn);
  background: var(--warn-flach);
  border-radius: var(--radius-s);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}
.warnung > :last-child { margin-bottom: 0; }
.warnung__titel {
  font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--warn);
  margin: 0 0 .4rem;
}
.warnung ul, .warnung ol { margin: 0; padding-left: 1.35rem; }
.warnung li { margin-bottom: .35rem; }
.warnung li:last-child { margin-bottom: 0; }

/* ---------- Gegenueberstellung ---------- */

.vergleich {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  list-style: none; margin: 2rem 0 0; padding: 0;
}
.spalte {
  background: var(--grund-erhoben);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.spalte h3 { margin: 0 0 .8rem; font-size: 1.15rem; }
.spalte ul { list-style: none; margin: 0; padding: 0; }
.spalte li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem;
  margin-bottom: .55rem; font-size: .95rem;
}
.spalte li::before { content: "+"; color: var(--primaer); font-weight: 700; }
.spalte li.minus::before { content: "\2013"; color: var(--akzent); }

/* ---------- Illustration ---------- */
/* Nur Holz und Wasser reagieren auf den Dunkelmodus. */
.ill {
  --holz: #c49a63; --holz-2: #ae854f; --holz-linie: #99713f;
  --wasser: #4fa8b4; --wasser-2: #2d7f8c; --metall: #9aa3a6;
}
@media (prefers-color-scheme: dark) {
  .ill {
    --holz: #8a6538; --holz-2: #74522b; --holz-linie: #5f4222;
    --wasser: #2f7c88; --wasser-2: #1e5c67; --metall: #6b7679;
  }
}
.ill__beschriftung { fill: var(--text-leise); font-size: 13px; font-weight: 600; }
.ill__linie { stroke: var(--text-leise); stroke-width: 1.2; opacity: .55; }
.diagramm { overflow-x: auto; margin: 2rem 0 0; }
.diagramm svg { min-width: 34rem; width: 100%; height: auto; }
.diagramm figcaption { margin-top: .8rem; font-size: .88rem; color: var(--text-leise); }
