/* Wisdom Heroes · Layout und Bausteine
   Setzt auf tokens.css auf. Keine Farbe hier hart schreiben. */

/* ---------- Schriften, lokal ausgeliefert ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap; }

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

html { background: var(--weiss); }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  hyphens: manual;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--raum-3);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 var(--raum-3); max-width: var(--breite-text); }

a { color: var(--beere); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--beere-hell); }

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

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

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

/* ---------- Layout ---------- */
.huelle { width: min(100% - 2.5rem, var(--breite-max)); margin-inline: auto; }

.sektion { padding-block: var(--raum-6); background: var(--weiss); color: var(--text); }
.sektion--sanft  { background: var(--sanft); }
.sektion--tief   {
  background:
    radial-gradient(120% 90% at 88% 8%, var(--tief-schein) 0%, transparent 62%),
    var(--tief);
  color: var(--text-invers);
}
.sektion--tief h1, .sektion--tief h2, .sektion--tief h3 { color: var(--text-invers); }
/* Auf dunklem Grund nie Beere verwenden, das ist unlesbar */
.sektion--tief a:not(.knopf) { color: var(--orange-hell); }
.sektion--tief a:not(.knopf):hover { color: var(--orange); }
.sektion--tief .knopf--rand { border-color: rgba(255,255,255,0.5); color: var(--text-invers); }
.sektion--tief .knopf--rand:hover { background: rgba(255,255,255,0.12); color: var(--text-invers); }
.sektion--tief p { color: var(--text-invers-sanft); }

.raster { display: grid; gap: var(--raum-3); }
@media (min-width: 720px) {
  .raster--2 { grid-template-columns: repeat(2, 1fr); }
  .raster--3 { grid-template-columns: repeat(3, 1fr); }
  .raster--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--leiste);
  color: var(--text-invers);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--raum-3);
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
}
.kopf__logo img { height: 42px; width: auto; }
.kopf__hinweis {
  font-family: var(--font-headline); font-weight: 600;
  color: var(--orange); font-size: var(--fs-klein);
}
@media (max-width: 860px) { .kopf__hinweis { display: none; } }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-headline); font-weight: 600;
  font-size: 1rem; line-height: 1;
  padding: 1rem 1.9rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: transform var(--tempo), box-shadow var(--tempo), background var(--tempo);
}
.knopf:hover { transform: translateY(-1px); }

.knopf--haupt {
  background: linear-gradient(180deg, var(--orange-hell), var(--orange));
  color: var(--tief);
  box-shadow: 0 6px 22px rgba(247, 166, 0, 0.32);
}
.knopf--haupt:hover { color: var(--tief); box-shadow: 0 8px 26px rgba(247, 166, 0, 0.42); }

.knopf--rand { background: transparent; border-color: var(--beere); color: var(--beere); }
.knopf--rand:hover { background: var(--badge-bg); }

/* ---------- Pille / Kicker ---------- */
.pille {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--badge-bg); color: var(--beere);
  font-family: var(--font-headline); font-weight: 600; font-size: var(--fs-klein);
  padding: 0.5rem 1.1rem; border-radius: var(--radius-pill);
  margin-bottom: var(--raum-3);
}
.pille::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); flex: none;
}
.sektion--tief .pille { background: rgba(255,255,255,0.10); color: var(--text-invers); }

/* ---------- Karten ---------- */
.karte {
  background: var(--weiss);
  color: var(--text);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: var(--raum-4);
}
.karte h3 { margin-bottom: var(--raum-2); }
.karte p:last-child { margin-bottom: 0; }
.karte--akzent { border-left: 4px solid var(--orange); }
.karte--tief { background: var(--tief-karte); border-color: transparent; color: var(--text-invers); }
.karte--tief h3 { color: var(--text-invers); }
.karte--tief p { color: var(--text-invers-sanft); }

/* ---------- Hakenliste ---------- */
.haken { list-style: none; margin: 0 0 var(--raum-3); padding: 0; display: grid; gap: var(--raum-2); }
.haken li { position: relative; padding-left: 2.4rem; max-width: var(--breite-text); }
.haken li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0.15rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--orange); color: var(--tief);
  font-size: 0.85rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Kennzahl ---------- */
.kennzahl__wert {
  font-family: var(--font-headline); font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1;
  margin-bottom: var(--raum-1);
}
.kennzahl__text { color: var(--text-sanft); font-size: var(--fs-klein); }

/* ---------- Akkordeon (FAQ) ---------- */
.faq { border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: var(--raum-2); background: var(--weiss); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-headline); font-weight: 600;
  padding: var(--raum-3) var(--raum-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--raum-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\25BE"; color: var(--beere); transition: transform var(--tempo); flex: none; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq[open] summary { border-bottom: 2px solid var(--orange); }
.faq__inhalt { padding: var(--raum-3) var(--raum-4); color: var(--text-sanft); }
.faq__inhalt p:last-child { margin-bottom: 0; }

/* ---------- Formular ---------- */
.feld { margin-bottom: var(--raum-3); }
.feld label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.feld .pflicht { color: var(--beere); }
.feld input, .feld textarea, .feld select {
  width: 100%; font: inherit; color: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--linie); border-radius: 8px;
  background: var(--weiss);
}
.feld input:focus, .feld textarea:focus { border-color: var(--beere); }
.feld__hinweis { font-size: var(--fs-klein); color: var(--text-sanft); margin-top: 0.3rem; }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--tief-2); color: var(--text-invers-sanft); padding-block: var(--raum-5); }
.fuss a { color: var(--text-invers-sanft); text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss__links { display: flex; flex-wrap: wrap; gap: var(--raum-3); margin-bottom: var(--raum-3); padding: 0; list-style: none; }

/* ---------- Navigation ---------- */
.kopf__nav { margin-left: auto; }
.nav__liste {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--raum-3);
}
.nav__punkt { position: relative; }
.nav__link, .nav__schalter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-headline); font-weight: 600; font-size: 0.95rem;
  color: var(--text-invers); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem 0.2rem;
}
.nav__link:hover, .nav__schalter:hover { color: var(--orange); }
.nav__schalter::after {
  content: "\25BE"; font-size: 0.7em; transition: transform var(--tempo);
}
.nav__punkt[data-offen="ja"] .nav__schalter::after { transform: rotate(180deg); }

.nav__klapp {
  list-style: none; margin: 0; padding: var(--raum-2);
  position: absolute; top: calc(100% + 0.5rem); left: -0.8rem;
  min-width: 17rem;
  background: var(--weiss); color: var(--text);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(26,6,35,0.28);
  display: none;
}
.nav__punkt[data-offen="ja"] .nav__klapp { display: block; }
@media (hover: hover) and (min-width: 981px) {
  .nav__punkt:hover .nav__klapp, .nav__punkt:focus-within .nav__klapp { display: block; }
}
.nav__klapp a {
  display: block; padding: 0.6rem 0.9rem; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.nav__klapp a:hover { background: var(--badge-bg); color: var(--beere); }

.sprache { display: flex; gap: 0.35rem; align-items: center; font-size: var(--fs-klein); }
.sprache a { color: var(--text-invers-sanft); text-decoration: none; font-weight: 600; }
.sprache a[aria-current="true"] { color: var(--orange); }

.burger {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
  color: var(--text-invers);
}
.burger span {
  display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform var(--tempo), opacity var(--tempo);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; order: 3; }
  .kopf__hinweis { display: none; }
  .kopf__nav {
    order: 4; flex-basis: 100%;
    display: none;
    padding-top: var(--raum-3);
  }
  .kopf--offen .kopf__nav { display: block; }
  .kopf { flex-wrap: wrap; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__punkt { border-top: 1px solid rgba(255,255,255,0.14); }
  .nav__link, .nav__schalter { width: 100%; justify-content: space-between; padding: 0.9rem 0; font-size: 1.05rem; }
  .nav__klapp {
    position: static; min-width: 0; box-shadow: none;
    background: transparent; padding: 0 0 var(--raum-2) var(--raum-2);
  }
  .nav__klapp a { color: var(--text-invers-sanft); }
  .nav__klapp a:hover { background: rgba(255,255,255,0.08); color: var(--weiss); }
  .sprache { padding: var(--raum-3) 0; }
}

/* ---------- Mobile Feinschliff, abgeleitet aus der Referenz ---------- */
@media (max-width: 719px) {
  .sektion { padding-block: var(--raum-5); }
  .karte { padding: var(--raum-3); }
  /* Kennzahlen bleiben zweispaltig, nicht untereinander */
  .raster--4 { grid-template-columns: repeat(2, 1fr); gap: var(--raum-2); }
  .kennzahl__wert { font-size: 2rem; }
  /* Platz fuer die feste Aktionsleiste am unteren Rand */
  body:has(.aktionsleiste) { padding-bottom: 6rem; }
}

/* ---------- Feste Aktionsleiste (nur Landingpages) ---------- */
.aktionsleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--weiss);
  border-top: 1px solid var(--linie);
  padding: 0.7rem clamp(0.8rem, 3vw, 1.5rem);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  display: none;
}
.aktionsleiste .knopf { width: 100%; justify-content: center; }
@media (max-width: 719px) { .aktionsleiste { display: block; } }

/* ---------- Startseite ---------- */
.hero__text { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); max-width: 60ch; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin-top: var(--raum-4); }
.hero__notiz { font-size: var(--fs-klein); color: var(--text-invers-sanft); margin-top: var(--raum-2); }

.knopf--hell { background: transparent; border-color: rgba(255,255,255,0.45); color: var(--text-invers); }
.knopf--hell:hover { background: rgba(255,255,255,0.10); color: var(--text-invers); }

/* Belegestreifen */
.belege { background: var(--weiss); border-bottom: 1px solid var(--linie); padding-block: var(--raum-4); }
.belege__titel {
  font-family: var(--font-headline); font-weight: 600; font-size: var(--fs-klein);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-sanft);
  margin-bottom: var(--raum-3);
}
.belege__liste {
  list-style: none; margin: 0 0 var(--raum-3); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--raum-2) var(--raum-4);
  color: var(--text-sanft); font-size: var(--fs-klein);
}
.belege__zahl { margin: 0; color: var(--text-sanft); font-size: var(--fs-klein); }
.belege__zahl strong {
  font-family: var(--font-headline); font-weight: 800;
  font-size: 1.6rem; color: var(--text); margin-right: 0.4rem;
}

/* Angebotskarten */
.angebot { display: flex; flex-direction: column; }
.angebot__wer { font-size: var(--fs-klein); color: var(--text-sanft); font-style: italic; }
.angebot p:last-child { margin-top: auto; margin-bottom: 0; }

.portraet { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* Formular auf dunklem Grund */
.sektion--tief .feld label { color: var(--text-invers); }
.sektion--tief .feld .pflicht { color: var(--orange); }
.sektion--tief .feld__hinweis { color: var(--text-invers-sanft); }
.honigtopf { position: absolute; left: -9999px; }

/* Kostenlos-Marker in der Navigation */
.frei {
  background: var(--orange); color: var(--tief);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-pill);
  margin-left: 0.4rem;
}

/* Faktenstreifen unter dem Hero einer Angebotsseite */
.fakten { list-style: none; margin: var(--raum-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--raum-2); }
.fakten li {
  border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem; font-size: var(--fs-klein);
  color: var(--text-invers);
}
.fakten li strong { font-family: var(--font-headline); }

/* Preisblock */
.preis { text-align: center; }
.preis__wert { font-family: var(--font-headline); font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1; }
.preis__notiz { color: var(--text-invers-sanft); font-size: var(--fs-klein); }

/* Login in der Kopfleiste: sichtbar, aber nachrangig */
.nav__link--login {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
}
.nav__link--login:hover { border-color: var(--orange); }
@media (max-width: 980px) {
  .nav__link--login { border: 0; padding: 0.9rem 0; border-radius: 0; }
}

/* Verkaufsbausteine */
.einleitung { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); max-width: 62ch; }
.zitat {
  border-left: 4px solid var(--orange);
  padding: var(--raum-2) 0 var(--raum-2) var(--raum-3);
  margin: var(--raum-4) 0; font-size: 1.15rem; max-width: 62ch;
}
.zitat cite { display: block; font-size: var(--fs-klein); color: var(--text-sanft);
  font-style: normal; margin-top: var(--raum-2); }
.sektion--tief .zitat cite { color: var(--text-invers-sanft); }
.wert { list-style: none; margin: 0 0 var(--raum-3); padding: 0; }
.wert li { display: flex; justify-content: space-between; gap: var(--raum-2);
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.wert li span:last-child { font-family: var(--font-headline); font-weight: 600; white-space: nowrap; }

/* Video mit Zwei-Klick-Einwilligung */
.video { max-width: 900px; margin-inline: auto; }
.video__rahmen {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--tief-karte);
  display: grid; place-items: center; text-align: center; padding: var(--raum-4);
}
.video__rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__hinweis { color: var(--text-invers-sanft); font-size: var(--fs-klein); max-width: 46ch; }
.video__start { margin-bottom: var(--raum-3); }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 72ch; }
.rechtstext h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-top: var(--raum-5); }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ol { padding-left: 1.4rem; max-width: var(--breite-text); }
.rechtstext ol li { margin-bottom: var(--raum-2); }
.rechtstext .haken li::before { top: 0.2rem; }

.tabelle { width: 100%; border-collapse: collapse; margin-bottom: var(--raum-4); font-size: var(--fs-klein); }
.tabelle th, .tabelle td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-family: var(--font-headline); font-weight: 600; background: var(--sanft); }
@media (max-width: 620px) {
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle thead { display: none; }
  .tabelle tr { border-bottom: 1px solid var(--linie); padding: var(--raum-2) 0; }
  .tabelle td { border: 0; padding: 0.2rem 0; }
  .tabelle td:first-child { font-weight: 600; }
}

/* ---------- Einwilligungsbanner ---------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  padding: var(--raum-2);
  display: flex; justify-content: center;
}
.consent[hidden] { display: none; }
.consent__kasten {
  background: var(--weiss); color: var(--text);
  border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 -4px 30px rgba(26, 6, 35, 0.22);
  padding: var(--raum-4);
  width: min(100%, 44rem);
  max-height: 85vh; overflow-y: auto;
}
.consent__titel { font-size: 1.25rem; margin-bottom: var(--raum-2); }
.consent__text { font-size: var(--fs-klein); margin-bottom: var(--raum-3); max-width: none; }
.consent__hinweis {
  font-size: var(--fs-klein); background: var(--badge-bg); color: var(--beere);
  border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: var(--raum-3); max-width: none;
}
.consent__felder { display: grid; gap: var(--raum-2); margin-bottom: var(--raum-3); }
.consent__zeile { display: flex; gap: 0.8rem; align-items: flex-start; cursor: pointer; }
.consent__zeile input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--beere); }
.consent__zeile input:disabled { opacity: 0.55; cursor: not-allowed; }
.consent__klein { font-size: var(--fs-klein); color: var(--text-sanft); }
.consent__knoepfe { display: flex; flex-wrap: wrap; gap: var(--raum-2); margin-bottom: var(--raum-2); }
.consent__knoepfe .knopf { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
@media (max-width: 620px) {
  .consent__knoepfe { flex-direction: column; }
  .consent__knoepfe .knopf { width: 100%; justify-content: center; }
}

/* Sprachmarke im Menue: Punkt fuehrt auf eine englische Seite */
.sprachmarke {
  display: inline-block; margin-left: 0.4rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem; border-radius: 4px;
  background: var(--linie); color: var(--text-sanft);
  vertical-align: middle;
}
.nav__klapp a:hover .sprachmarke { background: var(--beere); color: var(--weiss); }
@media (max-width: 980px) { .sprachmarke { background: rgba(255,255,255,0.18); color: var(--text-invers); } }

/* Zwei Bilder nebeneinander mit Bildunterschrift */
.bildpaar { display: grid; gap: var(--raum-3); margin: var(--raum-4) 0 0; }
@media (min-width: 760px) { .bildpaar { grid-template-columns: 1fr 1fr; } }
.bildpaar figure { margin: 0; }
.bildpaar img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.bildpaar figcaption {
  font-size: var(--fs-klein); color: var(--text-sanft); margin-top: var(--raum-2);
}

/* Kontaktblock im Fuss */
.fuss__kontakt { line-height: 1.7; margin-bottom: var(--raum-3); }
.fuss__kontakt strong { color: var(--weiss); font-family: var(--font-headline); }
