/* Happe Digital – Farben und Schriften wie auf der Visitenkarte (Entwurf C, Wald & Kupfer). */

@font-face { font-family: "Gloock"; src: url("/fonts/gloock.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dmmono.woff2") format("woff2"); font-display: swap; }

:root {
  --wald: #1D3A32;
  --tiefwald: #122620;
  --creme: #EEE6D4;
  --kupfer: #C98350;
  --kupfer-dunkel: #9A5A2E; /* Kupfer auf Creme, Kontrast 4,4:1 */
  --moos: #A3B5AA;        /* Sekundärtext auf Grün, Kontrast 5,7:1 */
  --grau: #55645C;        /* Sekundärtext auf Creme, Kontrast 5,0:1 */

  --serif: "Gloock", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  /* Typo-Skala 1,25 auf 1,125rem */
  --t-0: 1.0625rem;
  --t-1: clamp(1.15rem, 0.95rem + 0.42vw, 1.45rem);
  --t-2: 1.4rem;
  --t-h2: clamp(1.9rem, 1.1rem + 2.1vw, 3.1rem);
  --t-h1: clamp(2.3rem, 1.1rem + 3.4vw, 5.4rem);

  --rand: clamp(1.25rem, 4vw, 3.5rem);
  --kopf: 4.25rem;
  --abschnitt: clamp(3.5rem, 7vw, 6rem);
  --spalte: 68ch;
}

*, *::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(--wald);
  color: var(--creme);
  font: 400 var(--t-0)/1.6 var(--sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.06; }
h3 { font: 600 var(--t-1)/1.25 var(--sans); margin: 0; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--kupfer); }
:focus-visible { outline: 2px solid var(--fokus, var(--kupfer)); outline-offset: 4px; border-radius: 2px; }

.sprung {
  position: absolute; left: var(--rand); top: -4rem; z-index: 10;
  background: var(--creme); color: var(--wald); padding: .6rem 1rem; text-decoration: none;
}
.sprung:focus { top: 1rem; }

.rahmen { max-width: 90rem; margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Kopf: läuft oben mit, färbt sich nach dem Abschnitt darunter ---------- */
html { scroll-padding-top: var(--kopf); }
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--kopf);
  background: rgba(29, 58, 50, .94); color: var(--creme);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(238, 230, 212, .08);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.kopf[data-thema="hell"] { background: rgba(238, 230, 212, .94); color: var(--wald); border-bottom-color: rgba(29, 58, 50, .1); --fokus: var(--wald); }
.kopf-innen {
  height: 100%; max-width: 100rem; margin: 0 auto; padding: 0 var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 400 1.25rem/1 var(--serif); white-space: nowrap; }
.marke img { display: block; }
.logo-dunkel, .kopf[data-thema="hell"] .logo-hell { display: none !important; }
.kopf[data-thema="hell"] .logo-dunkel { display: block !important; }
.navigation { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); font-size: .95rem; }
.navigation a:not(.knopf) { text-decoration: none; position: relative; padding: .4rem 0; }
.navigation a:not(.knopf)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--kupfer);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navigation a:not(.knopf):hover::after, .navigation a[aria-current="true"]::after { transform: scaleX(1); }
.knopf-klein { min-height: 2.4rem; padding: 0 1.1rem; font-size: .9rem; }
.kopf[data-thema="hell"] .knopf-klein { background: var(--wald); color: var(--creme); }
.kopf[data-thema="hell"] .knopf-klein:hover { background: var(--kupfer-dunkel); }
.menue-knopf {
  display: none; font: 600 .95rem/1 var(--sans); color: inherit; background: none; cursor: pointer;
  border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1rem;
}
main, .text-seite { padding-top: var(--kopf); }
.text-seite { padding-top: calc(var(--kopf) + clamp(3rem, 8vw, 6rem)) !important; }

/* ---------- Bühne: ein Kreis, der beim Scrollen die Form wechselt ---------- */
.buehne-rahmen {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 7rem); max-width: 100rem; margin: 0 auto; padding: 0 var(--rand);
}
.buehne {
  position: sticky; top: var(--kopf); height: calc(100svh - var(--kopf));
  display: grid; place-items: center;
}
.buehne > *, .buehne noscript > img { grid-area: 1 / 1; }
.buehne canvas, .buehne img { width: min(100%, 48rem, calc(100svh - var(--kopf) - 5rem)); aspect-ratio: 1; height: auto; display: block; touch-action: pan-y; }
.spur { min-width: 0; }
.held {
  /* gleich hoch wie die Bühne, damit Text und Kreis auf einer Mittelachse stehen */
  min-height: calc(100svh - var(--kopf)); display: flex; flex-direction: column; justify-content: center;
  max-width: clamp(34rem, 36vw, 42rem);
}
.einstieg { margin-top: 1.5rem; font-size: clamp(1.2rem, 0.92rem + 0.62vw, 1.62rem); line-height: 1.48; color: var(--moos); max-width: 32em; }
.aktionen { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.aktionen .knopf { min-height: clamp(2.9rem, 2.4rem + .8vw, 3.5rem); padding: 0 clamp(1.3rem, 1rem + .6vw, 1.8rem); font-size: clamp(.98rem, .85rem + .25vw, 1.12rem); }

.leistung {
  min-height: 92svh; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  max-width: clamp(34rem, 36vw, 42rem);
}
.leistung h3 { font: 400 var(--t-h1)/1.02 var(--serif); letter-spacing: -0.01em; margin-bottom: .5rem; text-wrap: balance; hyphens: manual; }
.leistung p { font-size: clamp(1.2rem, 0.92rem + 0.62vw, 1.62rem); line-height: 1.48; }
.beispiel { color: var(--moos); font-size: clamp(1rem, .85rem + .35vw, 1.25rem) !important; padding-top: 1rem; border-top: 1px solid rgba(238, 230, 212, .18); }
.beispiel::before { content: "Zum Beispiel: "; font-weight: 600; color: var(--creme); }
.leistung:last-child { margin-bottom: 8svh; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.knopf {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.3rem;
  border-radius: 999px; background: var(--creme); color: var(--wald);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.knopf:hover { background: var(--kupfer); color: var(--tiefwald); }
.knopf-still { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 1px rgba(238, 230, 212, .45); }
.knopf-still:hover { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 1px var(--creme); }

/* ---------- Abschnitte ---------- */
.hell { background: var(--creme); color: var(--wald); --fokus: var(--wald); }
.dunkel { background: var(--wald); color: var(--creme); }
.hell, .dunkel { padding: var(--abschnitt) 0; }

.vorspann { margin-top: 1.5rem; max-width: 40em; font-size: var(--t-1); line-height: 1.5; }

/* Datenschutz-Zusagen */
.daten-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.zusagen { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.zusagen li {
  position: relative; padding-left: 2.4rem; font-size: var(--t-1); line-height: 1.45;
}
/* Kleiner Halbkreis als Aufzählungszeichen – das Logo-Motiv im Kleinen */
.zusagen li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: linear-gradient(90deg, var(--wald) 50%, transparent 50%);
  box-shadow: inset 0 0 0 1.5px var(--kupfer-dunkel);
}

/* Ablauf – echte Reihenfolge, deshalb nummeriert */
.ablauf h2 { margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.schritte { position: relative; }
.schritte::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3.15rem; height: 1px; background: var(--kupfer);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1);
}
.ablauf.an .schritte::before { transform: scaleX(1); }
.schritte li { counter-increment: schritt; position: relative; }
.schritte li::after {
  content: ""; position: absolute; left: 0; top: calc(3.15rem - 4px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--kupfer); opacity: 0; transition: opacity .4s ease;
}
.ablauf.an .schritte li::after { opacity: 1; }
.ablauf.an .schritte li:nth-child(2)::after { transition-delay: .4s; }
.ablauf.an .schritte li:nth-child(3)::after { transition-delay: .8s; }
.ablauf.an .schritte li:nth-child(4)::after { transition-delay: 1.2s; }
.schritte li::before {
  content: counter(schritt); display: block; font: 400 2.4rem/1 var(--serif); color: var(--kupfer);
  margin-bottom: 1.6rem;
}
.schritte h3 { margin-bottom: .6rem; }
.schritte p { color: var(--moos); font-size: .95rem; }

/* Fragen */
.fragen h2 { margin-bottom: 1.75rem; }
.fragen details { border-top: 1px solid rgba(29, 58, 50, .2); max-width: 46rem; }
.fragen details:last-of-type { border-bottom: 1px solid rgba(29, 58, 50, .2); }
.fragen summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 0; position: relative;
  font: 600 var(--t-1)/1.3 var(--sans);
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .9rem; height: .9rem; margin-top: -.45rem;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--wald);
  background: linear-gradient(90deg, var(--wald) 50%, transparent 50%);
  transition: transform .25s ease;
}
.fragen details[open] summary::after { transform: rotate(180deg); }
.fragen details p { padding: 0 3rem 1.6rem 0; max-width: var(--spalte); color: var(--grau); }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.ganz { width: 6.5rem; height: 6.5rem; display: block; margin-bottom: 1.75rem; }
.ganz circle { transition: r 1.4s cubic-bezier(.3, .6, .2, 1); }
.kontakt p { margin-top: 1.5rem; font-size: var(--t-1); line-height: 1.5; color: var(--moos); max-width: 30em; }
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.feld { display: flex; flex-direction: column; gap: .45rem; grid-column: 1 / -1; min-width: 0; }
.feld.halb { grid-column: auto; }
.feld label { font-size: .92rem; color: var(--moos); padding-left: .2rem; transition: color .25s ease; }
.feld label span { opacity: .7; }
.feld:focus-within label { color: var(--creme); }
.feld input, .feld textarea {
  display: block; width: 100%; margin: 0; font: 400 1.05rem/1.4 var(--sans); color: var(--creme);
  background: rgba(238, 230, 212, .07); border: 1px solid rgba(238, 230, 212, .12); border-radius: 1rem;
  padding: .85rem 1.1rem; -webkit-appearance: none; appearance: none;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.feld textarea { resize: vertical; min-height: 9rem; }
.feld input:hover, .feld textarea:hover { background: rgba(238, 230, 212, .09); border-color: rgba(238, 230, 212, .22); }
.feld input:focus, .feld textarea:focus { outline: none; background: rgba(238, 230, 212, .1); border-color: rgba(201, 131, 80, .8); box-shadow: 0 0 0 4px rgba(201, 131, 80, .16); }
.feld input:-webkit-autofill { -webkit-text-fill-color: var(--creme); box-shadow: 0 0 0 100px #2b4840 inset; caret-color: var(--creme); }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular .unten { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: .35rem; }
.formular .hinweis { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--moos); max-width: 24em; }
.formular .hinweis a { color: var(--creme); text-decoration-color: var(--kupfer); text-underline-offset: .2em; }
.formular button { border: 0; cursor: pointer; font-family: inherit; gap: .6rem; }
.formular button::after { content: "→"; transition: transform .2s ease; }
.formular button:hover::after { transform: translateX(3px); }
.formular button[disabled] { opacity: .6; cursor: wait; }
.formular .meldung { grid-column: 1 / -1; margin: 0; font-size: 1rem; color: var(--creme); max-width: none; }
.formular .meldung:empty { display: none; }
@media (max-width: 560px) { .feld.halb { grid-column: 1 / -1; } }

/* Fuß */
.fuss {
  background: var(--tiefwald); color: var(--moos); font-size: .875rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.75rem max(var(--rand), calc((100% - 66rem) / 2 + var(--rand)));
}
.fuss nav { display: flex; gap: 1.75rem; }

/* Fortschritt: Halbkreis füllt sich beim Lesen von Punkten zu Fläche */
.fortschritt {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 5;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--tiefwald);
  display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(238, 230, 212, .12);
  opacity: 0; transform: translateY(.5rem); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.fortschritt.sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.fortschritt svg { width: 1.85rem; height: 1.85rem; }

/* ---------- Unterseiten ---------- */
.text-seite { background: var(--creme); color: var(--wald); --fokus: var(--wald); padding: clamp(3rem, 8vw, 6rem) 0 var(--abschnitt); }
.text-seite .rahmen { max-width: 48rem; }
.text-seite h1 { font-size: var(--t-h2); margin-bottom: 2.5rem; }
.text-seite h2 { font: 600 var(--t-1)/1.3 var(--sans); margin: 2.5rem 0 .75rem; }
.text-seite p, .text-seite li { max-width: var(--spalte); }
.text-seite p + p { margin-top: 1rem; }
.platzhalter { background: #F3D9C2; padding: 0 .3em; border-radius: 3px; }

/* ---------- Schmal ---------- */
@media (max-width: 64rem) {
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .buehne-rahmen { display: block; padding: 0; }
  .menue-knopf { display: inline-block; }
  .navigation {
    position: fixed; inset: var(--kopf) 0 auto 0; flex-direction: column; align-items: flex-start; gap: .25rem;
    padding: 1rem var(--rand) 1.5rem; background: var(--tiefwald); color: var(--creme); font-size: 1.1rem;
    border-bottom: 1px solid rgba(238, 230, 212, .1);
    transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s;
  }
  .navigation.offen { transform: none; visibility: visible; transition: transform .3s ease; }
  .navigation a:not(.knopf) { padding: .65rem 0; }
  .navigation .knopf { margin-top: .75rem; background: var(--creme) !important; color: var(--wald) !important; }
  .buehne { top: var(--kopf); height: 40svh; z-index: 1; background: var(--wald); box-shadow: 0 14px 18px -10px var(--wald); }
  .buehne canvas, .buehne img { width: min(33svh, 76vw); }
  .spur { padding: 0 var(--rand); }
  .held { min-height: 0; padding: 1rem 0 4rem; }
  .held h1 { margin-top: 0; }
  .leistung { min-height: 64svh; }
  .daten-raster, .kontakt-raster { grid-template-columns: 1fr; }
  .schritte::before, .schritte li::after { display: none; }
  .fuss { padding-bottom: 5rem; }
  .schritte { grid-template-columns: 1fr; }
  .schritte li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; }
  .schritte li::before { grid-row: span 2; margin: 0; font-size: 2rem; }
  .fragen summary { padding-right: 2.5rem; }
  .fragen details p { padding-right: 0; }
}
