/* Redestark Website. Farben aus app/src/theme/ds/farben.ts (D1 hell, D2 dunkel),
   Schriften wie in der App: Bricolage Grotesque (Titel, Zahlen) und Onest (Text).
   Schriften liegen selbst gehostet in fonts/ (Quelle Google Fonts, SIL OFL 1.1),
   damit beim Seitenaufruf keine IP-Adresse an Google geht.
   Flächen trennen sich über Füllung und dunklere Unterkante, nie über 1px-Rahmen. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --grund: #F3F5FA;
  --karte: #FFFFFF;
  --flaeche2: #E9ECF4;
  --kante: #E3E7F0;
  --tinte: #141827;
  --text: #353B50;
  --leise: #5F667C;
  --link: #2F5BEA;
  --tint: #E8EEFF;
  --tint-kante: #C9D4F2;
  --primaer-von: #3461F2;
  --primaer-bis: #1580C8;
  --primaer-kante: #2042B8;
  --gold-von: #FFE066;
  --gold-mitte: #FFB21E;
  --gold-bis: #FF8A1E;
  --gold-kante: #C9790A;
  --gold-text: #8A5A00;
  --pro-grund: #141827;
  --erfolg: #0B7A55;
  --platzhalter: #FFF1C2;
  --platzhalter-text: #6B4A00;
  --schatten: 0 10px 30px rgba(20, 24, 39, 0.08);
  --display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --rand: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0A0B10;
    --karte: #16181F;
    --flaeche2: #1C1F28;
    --kante: #050608;
    --tinte: #F4F5F8;
    --text: #C9CDD8;
    --leise: #9097AB;
    --link: #7FA2FF;
    --tint: #1B2440;
    --tint-kante: #050608;
    --primaer-kante: #1E3AA8;
    --gold-text: #FFD45C;
    --pro-grund: #000000;
    --erfolg: #4ED08E;
    --platzhalter: #3A2E05;
    --platzhalter-text: #FFD45C;
    --schatten: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--tinte);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.45em;
  /* Überhang, damit Unterlängen und Umlaute nie abgeschnitten werden */
  padding-bottom: 0.04em;
}
h1 { font-size: clamp(36px, 9.6vw, 64px); }
h2 { font-size: clamp(28px, 7vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--rand); }
@media (min-width: 720px) { :root { --rand: 32px; } }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--karte); color: var(--tinte); padding: 10px 14px; border-radius: 12px;
}
.skip:focus { left: 8px; }

/* Entwurfs-Hinweis auf Rechtsseiten */
.entwurf { background: var(--platzhalter); color: var(--platzhalter-text); font-size: 14px; padding: 8px 0; }

/* Kopf */
.kopf { padding: 14px 0; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
  color: var(--tinte); text-decoration: none; padding: 4px 2px 6px;
}
.marke > img { width: 36px; height: 36px; border-radius: 9px; }
.wortmarke img { display: block; height: 24px; width: auto; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 12px;
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
}
.nav a:hover { background: var(--karte); color: var(--tinte); }
.nav .nur-breit { display: none; }
@media (min-width: 760px) { .nav .nur-breit { display: list-item; } }

/* Knöpfe: Füllung plus dunklere Unterkante, wie in der App */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px 13px; border: 0; border-radius: 18px;
  font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primaer-von), var(--primaer-bis));
  color: #fff; box-shadow: 0 5px 0 var(--primaer-kante);
}
.knopf:hover { filter: brightness(1.05); }
.knopf.hell { background: #fff; color: #2F5BEA; box-shadow: 0 5px 0 rgba(10, 15, 40, 0.25); }
.knopf.store { flex-direction: column; gap: 0; align-items: flex-start; cursor: default; }
.knopf.store small { font: 600 12px/1.2 var(--sans); opacity: 0.8; }
.knopf.store:hover { filter: none; }
.knopf.zweit { background: var(--tint); color: var(--link); box-shadow: 0 5px 0 var(--tint-kante); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; margin-top: 24px; }

/* Hero: großer Kursverlauf mit Statue, die oben herausragt (wie die Heute-Karte) */
.hero { padding: 8px 0 40px; }
.hero-karte {
  position: relative; border-radius: 34px; overflow: visible;
  background: linear-gradient(135deg, #3A66F5, #1C9AD2);
  color: #fff; padding: 30px 22px 0; margin-top: 70px;
  box-shadow: 0 6px 0 #2042B8;
  display: grid; grid-template-columns: 1fr; isolation: isolate;
}
.hero-karte h1 { color: #fff; max-width: 11em; }
.hero-karte .etikett { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hero-text { position: relative; z-index: 2; padding-bottom: 28px; }
.hero-lead { font-size: 18px; color: #fff; max-width: 30em; }
.hero-figur { position: relative; margin: -10px -22px 0; height: 330px; overflow: hidden; border-radius: 0 0 34px 34px; }
.hero-figur img { position: absolute; left: 50%; bottom: -30px; transform: translateX(-46%); height: 380px; width: auto; max-width: none; filter: drop-shadow(0 18px 30px rgba(0, 20, 80, 0.35)); }
@media (min-width: 860px) {
  .hero { padding-bottom: 64px; }
  .hero-karte { grid-template-columns: 1fr 1fr; padding: 56px 0 0 56px; margin-top: 56px; }
  .hero-text { padding-bottom: 56px; align-self: center; }
  .hero-figur { margin: 0; height: auto; overflow: visible; border-radius: 0; }
  .hero-figur img { left: auto; right: 0; transform: none; bottom: 0; height: min(600px, calc(100% + 90px)); border-radius: 0 0 34px 0; filter: none; }
}

.etikett {
  display: inline-block; padding: 6px 12px 7px; border-radius: 12px;
  font: 700 14px/1.2 var(--sans); background: var(--tint); color: var(--link); margin-bottom: 16px;
}

/* Abschnitte */
.abschnitt { padding: 48px 0; }
@media (min-width: 860px) { .abschnitt { padding: 80px 0; } }
.intro { font-size: 18px; color: var(--leise); max-width: 36em; }

/* Kurskarten */
.kurse { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .kurse { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .kurse { grid-template-columns: repeat(3, 1fr); } }
.kurs {
  position: relative; border-radius: var(--radius); padding: 24px 22px 22px; min-height: 190px;
  color: #fff; overflow: hidden; isolation: isolate;
}
.kurs h3 { color: inherit; margin-bottom: 8px; max-width: 70%; }
.kurs p { margin: 0; font-size: 16px; max-width: 70%; }
.kurs img { position: absolute; right: -8px; bottom: -14px; height: 150px; width: auto; z-index: -1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25)); }
.kurs.stimme { background: linear-gradient(135deg, #FF9F1C, #FFD23F); color: #141827; box-shadow: 0 5px 0 #C26A00; }
.kurs.klarheit { background: linear-gradient(135deg, #3A66F5, #1C9AD2); box-shadow: 0 5px 0 #2042B8; }
.kurs.schlagfertigkeit { background: linear-gradient(135deg, #DC2F4A, #E0603A); box-shadow: 0 5px 0 #9E1A30; }
.kurs.psychologie { background: linear-gradient(135deg, #7E33F0, #C43FA8); box-shadow: 0 5px 0 #5520B0; }
.kurs.auftreten { background: linear-gradient(135deg, #087F5D, #1E9E57); box-shadow: 0 5px 0 #066046; }
.kurs.inhalt { background: var(--karte); color: var(--text); box-shadow: 0 5px 0 var(--kante); }
.kurs.inhalt h3 { color: var(--tinte); max-width: none; }
.kurs.inhalt p { max-width: none; }
.zahlen { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.zahlen b { display: block; font: 800 30px/1.15 var(--display); color: var(--tinte); letter-spacing: -0.02em; padding-bottom: 2px; }
.zahlen span { font-size: 14px; color: var(--leise); }

/* Ablauf mit echten App-Bildschirmen */
.ablauf { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ablauf { grid-template-columns: repeat(3, 1fr); } }
.schritt { background: var(--karte); border-radius: var(--radius); padding: 22px 22px 0; box-shadow: 0 5px 0 var(--kante); overflow: hidden; display: flex; flex-direction: column; }
.schritt .nr { font: 800 15px/1 var(--display); color: var(--link); display: block; margin-bottom: 10px; }
.schritt p { color: var(--text); font-size: 16px; }
.handy {
  margin: 8px auto 0; width: min(240px, 78%); border-radius: 30px 30px 0 0; overflow: hidden;
  background: #0A0B10; padding: 8px 8px 0; margin-top: auto;
}
.handy img { border-radius: 23px 23px 0 0; aspect-ratio: 640 / 1000; object-fit: cover; object-position: top; width: 100%; }

/* Messwerte und Datenschutz in zwei Spalten */
.zwei { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 860px) { .zwei { grid-template-columns: 1fr 1fr; } }
.flaechekarte { background: var(--karte); border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 5px 0 var(--kante); }
.flaechekarte h3 { margin-bottom: 14px; }
.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.haken li { position: relative; padding-left: 34px; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #1E9E57, #4ED08E);
}
.haken li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}
.messwerte { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.messwerte li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--flaeche2); border-radius: 16px; padding: 12px 14px; }
.messwerte b { color: var(--tinte); font-weight: 700; }
.messwerte span { color: var(--leise); font-size: 14px; text-align: right; }

/* Preise */
.preise-raster { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 30px; align-items: start; }
@media (min-width: 900px) { .preise-raster { grid-template-columns: 1.05fr 1fr; } }
.vergleich { background: var(--karte); border-radius: var(--radius); padding: 18px 20px 8px; box-shadow: 0 5px 0 var(--kante); }
.vergleich table { width: 100%; border-collapse: collapse; font-size: 16px; }
.vergleich th { text-align: left; font: 600 14px/1.3 var(--sans); color: var(--leise); padding: 8px 6px 10px 0; }
.vergleich th:not(:first-child), .vergleich td:not(:first-child) { text-align: center; }
.vergleich td { padding: 11px 6px 11px 0; color: var(--tinte); font-weight: 600; vertical-align: middle; }
.vergleich tbody tr:nth-child(odd) td { background: var(--flaeche2); }
.vergleich tbody tr td:first-child { border-radius: 12px 0 0 12px; padding-left: 12px; }
.vergleich tbody tr td:last-child { border-radius: 0 12px 12px 0; }
.vergleich td.frei { color: var(--leise); font-weight: 500; }
.vergleich td:not(:first-child) { white-space: nowrap; }
@media (max-width: 420px) { .vergleich { padding: 14px 12px 6px; } .vergleich table { font-size: 15px; } }
.pro-etikett { display: inline-block; padding: 3px 10px 4px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-von), var(--gold-mitte)); color: #141827; font-weight: 700; }
.angebote { display: grid; gap: 16px; }
.angebot { background: var(--karte); border-radius: 24px; padding: 20px 22px; box-shadow: 0 5px 0 var(--kante); display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; }
.angebot.jahr { box-shadow: 0 0 0 3px var(--gold-mitte), 0 7px 0 var(--gold-kante); }
.angebot h3 { margin: 0; font-size: 20px; }
.angebot .betrag { font: 800 30px/1.1 var(--display); color: var(--tinte); text-align: right; letter-spacing: -0.02em; padding-bottom: 2px; white-space: nowrap; }
.angebot.jahr .betrag { color: var(--gold-text); }
.angebot .unter { color: var(--leise); font-size: 15px; }
.angebot .unter.rechts { text-align: right; }
.kleingedruckt { font-size: 14px; color: var(--leise); margin-top: 6px; }

/* Häufige Fragen */
.faq { display: grid; gap: 12px; margin-top: 26px; max-width: 820px; }
.faq details { background: var(--karte); border-radius: 20px; box-shadow: 0 4px 0 var(--kante); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; color: var(--tinte); font-size: 17px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .antwort { padding: 0 20px 6px; }
.faq .antwort p, .faq .antwort li { font-size: 16px; }
.faq ol { padding-left: 22px; margin: 0 0 1em; }

/* Schluss auf Goldverlauf */
.schluss-karte {
  position: relative; border-radius: 34px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--gold-von), var(--gold-mitte), var(--gold-bis));
  box-shadow: 0 6px 0 var(--gold-kante); color: #141827; padding: 30px 22px 230px;
}
.schluss-karte h2 { color: #141827; max-width: 12em; }
.schluss-karte p { color: #141827; max-width: 30em; }
.schluss-karte img { position: absolute; bottom: -20px; right: 50%; transform: translateX(50%); height: 260px; width: auto; z-index: -1; }
@media (min-width: 760px) {
  .schluss-karte { padding: 52px 52px 52px; min-height: 340px; }
  .schluss-karte img { right: 40px; transform: none; height: 380px; bottom: -30px; }
  .schluss-karte .inhalt { max-width: 56%; }
}
@media (prefers-color-scheme: dark) {
  .schluss-karte { background: radial-gradient(circle at 78% 45%, rgba(255, 200, 70, 0.45), transparent 55%), linear-gradient(135deg, #2A1F04, #16120A 55%, #0A0B10); box-shadow: 0 6px 0 #000; color: var(--text); }
  .schluss-karte h2 { color: var(--gold-text); }
  .schluss-karte p { color: var(--text); }
}

/* Unterseiten */
.seitenkopf { padding: 20px 0 8px; }
.support-kopf { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; }
.support-kopf .figur { display: none; }
@media (min-width: 760px) {
  .support-kopf { grid-template-columns: 1fr 240px; }
  .support-kopf .figur { display: block; border-radius: 28px; overflow: hidden; height: 260px; background: linear-gradient(135deg, #7E33F0, #C43FA8); position: relative; }
  .support-kopf .figur img { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); height: 290px; width: auto; max-width: none; }
}
.kontakt { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 760px) { .kontakt { grid-template-columns: 1.2fr 1fr; } }
.kontakt .flaechekarte p:last-child { margin-bottom: 0; }
.mail { font: 800 clamp(22px, 6vw, 28px)/1.25 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; padding-bottom: 2px; display: inline-block; }

.text .spalte { max-width: 760px; }
.text h1 { font-size: clamp(32px, 8vw, 48px); margin-top: 16px; }
.text h2 { font-size: clamp(22px, 5.5vw, 28px); margin-top: 1.6em; }
.text h3 { font-size: 19px; margin-top: 1.3em; }
.text p, .text li { font-size: 16.5px; overflow-wrap: anywhere; }
.text ul, .text ol { padding-left: 22px; }
.text li { margin-bottom: 6px; }
.text blockquote { margin: 1.2em 0; padding: 16px 18px; background: var(--karte); border-radius: 18px; box-shadow: 0 4px 0 var(--kante); }
.text blockquote p:last-child { margin-bottom: 0; }
.text code { font-size: 0.92em; background: var(--flaeche2); padding: 1px 5px; border-radius: 6px; }
.text hr { border: 0; height: 2px; background: var(--kante); margin: 2em 0; }
.zurueck { display: inline-block; margin-top: 8px; font-weight: 600; }
.tabelle { overflow-x: auto; margin: 1em 0 1.4em; }
.tabelle table { border-collapse: separate; border-spacing: 0 6px; width: 100%; font-size: 15px; }
.tabelle th { text-align: left; padding: 6px 12px; color: var(--leise); font-weight: 600; }
.tabelle td { background: var(--karte); padding: 12px; vertical-align: top; }
.tabelle td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; color: var(--tinte); }
.tabelle td:last-child { border-radius: 0 12px 12px 0; }
@media (max-width: 640px) {
  .tabelle thead { display: none; }
  .tabelle tr, .tabelle td { display: block; }
  .tabelle tr { background: var(--karte); border-radius: 16px; margin-bottom: 10px; padding: 6px 0; }
  .tabelle td, .tabelle td:first-child, .tabelle td:last-child { background: none; border-radius: 0; padding: 6px 14px; }
  .tabelle td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--leise); font-weight: 600; }
}
.platzhalter { background: var(--platzhalter); color: var(--platzhalter-text); border-radius: 6px; padding: 1px 5px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.todo { background: #C8283F; color: #fff; border-radius: 6px; padding: 1px 5px; font-weight: 700; }
.meldung { margin-top: 14px; font-weight: 600; }
.meldung.fehler { color: #C8283F; }
.meldung.ok { color: var(--erfolg); }
@media (prefers-color-scheme: dark) { .meldung.fehler { color: #FF6B7D; } }

/* Fuß */
.fuss { padding: 40px 0 48px; margin-top: 24px; background: var(--karte); }
.fuss .wrap { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fuss .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.fuss small { display: block; color: var(--leise); font-size: 14px; margin-top: 4px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fuss ul a { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; padding: 6px 0; }
.fuss ul a:hover { color: var(--link); }
.nachweis { grid-column: 1 / -1; font-size: 13px; color: var(--leise); margin: 0; }
.nachweis a { color: var(--leise); }
