/* Das Licht, das zuhört: tiefe Nacht, ein lebendiges Licht in der Mitte, jeder Bildschirm ein Moment im Gespräch.
   Gold ist Licht und alles, was man antippen kann. Violett nur als Dunst. */

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

:root {
  --nacht: #060917;
  --indigo: #1a2357;
  --gold: #d9b46a;
  --hellgold: #f3dfa8;
  --violett: #8a6fd1;
  --text: #f4f1ea;
  --text-2: #b3b8d4;
  --auf-gold: #17130a;
  --linie: rgba(217, 180, 106, 0.36);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-h1: clamp(2.35rem, 1.45rem + 3.7vw, 4rem);
  --t-h2: clamp(2.2rem, 1.5rem + 3vw, 3.5rem);
  --t-zuruf: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);

  --rand-l: max(16px, env(safe-area-inset-left, 0px));
  --rand-r: max(16px, env(safe-area-inset-right, 0px));
  --sanft: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--nacht);
  scroll-behavior: smooth;
  scrollbar-color: #6b5730 var(--nacht);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--nacht);
  color: var(--text);
  font: 400 1rem / 1.55 var(--sans);
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 55% at 50% 110%, rgba(138, 111, 209, 0.32), transparent 62%),
    radial-gradient(100% 60% at 50% -14%, rgba(26, 35, 87, 0.9), transparent 70%);
}

::selection { background: var(--gold); color: var(--auf-gold); }
:focus-visible { outline: 2px solid var(--hellgold); outline-offset: 4px; border-radius: 999px; }
img { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 0.2em; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .voll { fill: currentColor; stroke: none; }

#licht { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.schein {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 200px;
  height: 200px;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 240, 200, 0.42) 0%, rgba(243, 223, 168, 0.2) 12%, rgba(217, 180, 106, 0.1) 28%, rgba(138, 111, 209, 0.08) 50%, transparent 70%);
  will-change: transform, opacity;
}

.kopf, main, .fuss { position: relative; z-index: 1; }

/* Kopfzeile */

.kopf {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--rand-r) 0 var(--rand-l);
}

.marke { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; color: var(--text); text-decoration: none; font: 400 1.125rem / 1 var(--serif); letter-spacing: 0.01em; }
.marke img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linie), 0 3px 10px -3px rgba(0, 0, 0, 0.8); }
.kopf-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.kopf-link:hover { color: var(--hellgold); }

/* Szenen */

.szene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: var(--rand-l);
  padding-right: var(--rand-r);
}

.licht-anker { width: 100%; flex: none; }

.ankommen { padding-top: 4.25rem; padding-bottom: 1.25rem; }
.ankommen .licht-anker { height: clamp(210px, 41svh, 470px); }
.ankommen-text { display: grid; justify-items: center; gap: 0.9rem; max-width: 36rem; text-align: center; }

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.012em; }
h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.01em; text-align: center; }

.umbruch { display: none; }
.zuruf { margin: 0; font: italic 400 var(--t-zuruf) / 1 var(--serif); color: var(--gold); }
.zweck { margin: -0.15rem 0 0.45rem; max-width: 21rem; font-size: 1rem; line-height: 1.5; color: var(--text-2); text-wrap: balance; }
.unter { max-width: 30rem; margin: 0.9rem auto 0; text-align: center; font-size: 1.0625rem; line-height: 1.55; color: var(--text-2); text-wrap: balance; }
.vertrauen { margin: 0; font-size: 0.875rem; letter-spacing: 0.03em; color: var(--text-2); }

.knopf-licht {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0 2.1rem;
  border-radius: 999px;
  background: radial-gradient(120% 150% at 50% 0%, #fff4d6 0%, var(--hellgold) 34%, var(--gold) 100%);
  color: var(--auf-gold);
  font: 600 1.0625rem / 1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 214, 0.6),
    0 10px 26px -10px rgba(0, 0, 0, 0.9),
    0 6px 46px -8px rgba(217, 180, 106, 0.6);
  transition: transform 0.35s var(--sanft), box-shadow 0.35s var(--sanft);
  animation: gluehen 4.6s ease-in-out infinite;
}
.knopf-licht:hover { transform: translateY(-1px) scale(1.02); color: var(--auf-gold); }
.knopf-licht:active { transform: scale(0.98); }

@keyframes gluehen {
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 244, 214, 0.75),
      0 10px 26px -10px rgba(0, 0, 0, 0.9),
      0 8px 70px -4px rgba(217, 180, 106, 0.8);
  }
}

.leitlinie {
  margin-top: auto;
  padding-top: 1.5rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.leitlinie i { position: relative; display: block; width: 1px; height: 3.25rem; background: linear-gradient(rgba(217, 180, 106, 0), rgba(217, 180, 106, 0.6) 40%, rgba(217, 180, 106, 0)); }
.leitlinie i::after {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hellgold);
  box-shadow: 0 0 10px 2px rgba(243, 223, 168, 0.7);
  animation: gleiten 2.4s var(--sanft) infinite;
}
@keyframes gleiten {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(3rem); opacity: 0; }
}
.leitlinie:hover { color: var(--text); }

/* Frage */

.frage { padding-top: 4.5rem; padding-bottom: 3rem; }
.frage .licht-anker { height: clamp(200px, 32svh, 400px); }

.echo { min-height: 3.4em; max-width: 25rem; margin: 0.25rem 0 1.1rem; text-align: center; font: italic 400 1.3rem / 1.3 var(--serif); color: var(--text-2); text-wrap: balance; }
.echo.spricht { color: var(--text); }
.echo em { color: var(--gold); }

.themen { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 0.5rem; max-width: 36rem; }

.thema {
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 180, 106, 0.38);
  background: rgba(6, 9, 23, 0.62);
  color: var(--text);
  font: 400 0.9375rem / 1 var(--sans);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.8s var(--sanft), transform 1s var(--sanft);
  animation: schweben var(--dauer, 7s) ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * -0.7s);
}
.thema:nth-child(3n) { --dauer: 8.5s; }
.thema:nth-child(3n + 1) { --dauer: 6.2s; }
.thema:hover { border-color: var(--gold); }
.thema[aria-pressed="true"] { background: var(--gold); border-color: var(--hellgold); color: var(--auf-gold); box-shadow: 0 6px 22px -6px rgba(217, 180, 106, 0.75); }
.thema-offen { border-style: dashed; }

@keyframes schweben {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

.weiter { margin-top: 1.6rem; }

/* Einflug: Worte kommen nacheinander aus der Unschärfe, Elemente tauchen auf */

.js [data-fliegen] .wort,
.js .echo .wort {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(12px);
  transition: opacity 1s var(--sanft), transform 1.2s var(--sanft), filter 1.1s var(--sanft);
}
.js [data-fliegen] .wort { transition-delay: calc(var(--v, 0.35s) + var(--i) * 75ms); }
.js .echo .wort { transition-delay: calc(var(--i) * 55ms); }
.da [data-fliegen] .wort,
.echo.spricht .wort { opacity: 1; transform: none; filter: blur(0); }

.js .auftauchen,
.js .thema,
.js .weiter {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 1s var(--sanft), transform 1.1s var(--sanft), filter 1s var(--sanft);
}
.js .auftauchen { transition-delay: var(--v, 0s); }
.js .thema { transition-delay: calc(0.55s + var(--n, 0) * 60ms); }
.da .auftauchen,
.da .thema,
.weiter.da { opacity: 1; transform: none; filter: none; }
.da .thema { transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.8s var(--sanft) calc(0.55s + var(--n, 0) * 60ms), transform 1s var(--sanft) calc(0.55s + var(--n, 0) * 60ms), filter 0.8s var(--sanft) calc(0.55s + var(--n, 0) * 60ms); }

/* So wird daraus eine Folge: die Bühne bleibt stehen, die Schritte wechseln beim Scrollen */

.schritte { position: relative; }
.js .schritte { height: 300vh; height: 300svh; }
.schritte-buehne { display: flex; flex-direction: column; align-items: center; min-height: 100svh; padding: 4.5rem var(--rand-r) 2rem var(--rand-l); }
.js .schritte-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; }
.schritte-kopf { max-width: 34rem; text-align: center; }
.schritte .licht-anker { height: clamp(170px, 29svh, 360px); }

.schritte-liste { list-style: none; width: 100%; max-width: 30rem; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 2rem; }
.js .schritte-liste { gap: 0; grid-template-areas: "s"; }
.schritt { display: grid; justify-items: center; gap: 0.4rem; text-align: center; }
.js .schritt { grid-area: s; opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 0.7s var(--sanft), transform 0.9s var(--sanft), filter 0.8s var(--sanft); }
.js .schritt.ist-aktiv { opacity: 1; transform: none; filter: none; }
.schritt h3 { margin: 0; font: 400 clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem) / 1.05 var(--serif); }
.schritt p { margin: 0; max-width: 25rem; color: var(--text-2); text-wrap: balance; }

.nr { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; border: 1px solid var(--linie); color: var(--gold); font: italic 400 1.15rem / 1 var(--serif); }

.schritte-punkte { display: none; }
.js .schritte-punkte { display: flex; gap: 0.45rem; margin-top: 1.4rem; }
.schritte-punkte i { width: 6px; height: 6px; border-radius: 3px; background: rgba(217, 180, 106, 0.3); transition: width 0.5s var(--sanft), background-color 0.5s; }
.schritte-punkte i.ist-aktiv { width: 22px; background: var(--gold); }

/* Beispielfolge */

.beispiel, .erzaehlen, .fragen { min-height: 0; }
.beispiel { padding-top: 5rem; padding-bottom: 2rem; }

.video {
  position: relative;
  display: block;
  width: 100%;
  max-width: 42rem;
  margin-top: 1.6rem;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(217, 180, 106, 0.35), 0 26px 60px -22px rgba(0, 0, 0, 0.95), 0 10px 80px -24px rgba(217, 180, 106, 0.4);
}
.video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--sanft); }
.video:hover img { transform: scale(1.03); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 9, 23, 0) 45%, rgba(6, 9, 23, 0.8)); }
.video-knopf {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff4d6, var(--gold));
  color: var(--auf-gold);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8), 0 4px 44px 2px rgba(217, 180, 106, 0.55);
}
.video-knopf svg { width: 1.8rem; height: 1.8rem; margin-left: 3px; }
.video-titel { position: absolute; left: 1.1rem; bottom: 0.9rem; z-index: 1; font: italic 400 1.4rem / 1 var(--serif); color: var(--text); }
.video-hinweis { min-height: 1.5em; margin: 0.8rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--gold); }

.zitat { max-width: 32rem; margin: 1rem 0 0; text-align: center; }
.zitat p { margin: 0; font: italic 400 clamp(1.4rem, 1.1rem + 1.4vw, 2rem) / 1.2 var(--serif); text-wrap: balance; }
.zitat footer { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-2); }

/* Jetzt erzählen */

.erzaehlen { padding-top: 3.5rem; padding-bottom: 2rem; }
.licht-anker.klein { height: 150px; }

.wege { display: flex; gap: 0.35rem; margin-top: 1.5rem; padding: 0.3rem; border-radius: 999px; border: 1px solid rgba(217, 180, 106, 0.3); background: rgba(6, 9, 23, 0.65); }
.weg { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.95rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 0.9375rem / 1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.weg:hover { color: var(--text); }
.weg[aria-selected="true"] { background: var(--gold); color: var(--auf-gold); }

.weg-inhalt { width: 100%; max-width: 34rem; margin-top: 1.4rem; }
.weg-satz { margin: 0 0 1.1rem; }
.weg-satz b { color: var(--gold); font-weight: 600; }

.anleitung { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.anleitung li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.85rem; align-items: start; }
.anleitung li > div { min-width: 0; padding-top: 0.25rem; color: var(--text-2); }
.anleitung b { color: var(--text); font-weight: 600; }
.anleitung li:first-child > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding-top: 0; }
.knopf-licht.klein { min-height: 2.9rem; padding: 0 1.35rem; font-size: 0.9375rem; animation: none; }

.prompt, .fragen details { border: 1px solid rgba(217, 180, 106, 0.24); border-radius: 14px; background: rgba(6, 9, 23, 0.72); }
.prompt { margin-top: 1.1rem; }
.prompt summary, .fragen summary { position: relative; padding: 0.95rem 3rem 0.95rem 1.1rem; list-style: none; cursor: pointer; font-weight: 600; }
.prompt summary { color: var(--gold); font-size: 0.9375rem; }
.prompt summary::-webkit-details-marker, .fragen summary::-webkit-details-marker { display: none; }
.prompt summary::after, .fragen summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--sanft);
}
.prompt[open] summary::after, .fragen details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.prompt pre { max-height: 18rem; margin: 0; padding: 0 1.1rem 1.1rem; overflow: auto; white-space: pre-wrap; font: 400 0.8125rem / 1.55 var(--sans); color: var(--text-2); }
.klein-hinweis { margin: 0.8rem 0 0; font-size: 0.8125rem; color: var(--text-2); }

.versprechen { list-style: none; width: 100%; max-width: 34rem; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.versprechen li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.8rem; align-items: start; font-size: 0.9375rem; color: var(--text-2); }
.versprechen li > div { min-width: 0; }
.versprechen b { display: block; color: var(--text); font-weight: 600; }
.versprechen svg { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 50%; color: var(--gold); background: rgba(217, 180, 106, 0.08); box-shadow: inset 0 0 0 1px rgba(217, 180, 106, 0.32); }

.formular { width: 100%; max-width: 38rem; margin-top: 2.4rem; padding: 1.4rem 1.1rem 0.6rem; border-radius: 18px; border: 1px solid rgba(217, 180, 106, 0.3); background: rgba(6, 9, 23, 0.86); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9); color: var(--text-2); }
.formular p { margin: 0; }
.formular-titel { margin: 0 0 0.6rem 0.2rem !important; font: 400 1.75rem / 1.1 var(--serif); color: var(--text); }
.formular iframe { display: block; width: 100%; min-height: 32rem; border: 0; background: transparent; }

/* Fragen */

.fragen { padding-top: 4rem; padding-bottom: 1rem; }
.fragen-liste { width: 100%; max-width: 36rem; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.fragen details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--text-2); }

/* Fuß */

.fuss { display: grid; justify-items: center; gap: 0.5rem; padding: 2rem var(--rand-r) 3rem var(--rand-l); text-align: center; font-size: 0.8125rem; color: var(--text-2); }
.fuss p { margin: 0; max-width: 40rem; }
.hilfe { color: var(--text); }
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.entwurf-zeile { font-style: italic; }

/* Rechtstexte: ruhige Leseseiten ohne Lichtspiel */

.kopf-recht { position: relative; }
.rechtstext { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; padding: 2.5rem var(--rand-r) 2rem var(--rand-l); line-height: 1.65; }
.rechtstext h1 { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); line-height: 1.02; }
.rechtstext h2 { margin: 2.6rem 0 0.7rem; font-size: 1.6rem; line-height: 1.15; text-align: left; }
.rechtstext p, .rechtstext ul, .rechtstext address { margin: 0 0 1rem; color: var(--text-2); }
.rechtstext strong { color: var(--text); font-weight: 600; }
.rechtstext address { font-style: normal; color: var(--text); }
.rechtstext ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.rechtstext-vorspann { margin-top: 1rem !important; font-size: 1.125rem; color: var(--text) !important; }
.rechtstext-stand { margin-top: 2.5rem !important; font-size: 0.875rem; }
.tabelle-rahmen { overflow-x: auto; margin: 0 0 1rem; }
.rechtstext table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.rechtstext th, .rechtstext td { padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid rgba(217, 180, 106, 0.2); text-align: left; vertical-align: top; color: var(--text-2); }
.rechtstext th { color: var(--text); font-weight: 600; }

/* Ohne WebGL: ein ruhiger Lichtschein an der Stelle der Kugel */

.ohne-licht .schein {
  position: absolute;
  left: 50%;
  top: calc(4.25rem + clamp(210px, 41svh, 470px) / 2);
  width: min(70vw, 340px);
  height: min(70vw, 340px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff4d6 0%, rgba(243, 223, 168, 0.75) 14%, rgba(217, 180, 106, 0.3) 38%, rgba(138, 111, 209, 0.12) 55%, transparent 70%);
}

@media (min-width: 900px) {
  .ankommen .licht-anker { height: clamp(260px, 42svh, 480px); }
  .umbruch { display: inline; }
  .ankommen-text { gap: 1.1rem; max-width: 50rem; }
  .thema { font-size: 1rem; min-height: 3rem; padding: 0 1.25rem; }
  .echo { font-size: 1.5rem; max-width: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf-licht, .thema, .leitlinie i::after { animation: none; }
  .js [data-fliegen] .wort, .js .echo .wort, .js .auftauchen, .js .thema, .js .weiter { opacity: 1; transform: none; filter: none; transition: none; }
  .js .schritt { transition: none; transform: none; filter: none; }
  .video img { transition: none; }
}
