/* Torlema – immersive Startseite (V5). Gemeinsame Basis (Schriften, Tokens,
   Kopf, Knöpfe, Typografie, Fuß) liegt in basis.css und wird davor geladen.
   Abweichungen vom Designsystem sind im LIESMICH.md begründet. */

/* ===== Die Welt ===== */
.tl-welt {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 1.4s var(--weich);
}
.welt-bereit .tl-welt { opacity: 1; }
.ohne-welt .tl-welt { display: none; }
.tl-leinwand { display: block; width: 100%; height: 100%; }
.tl-marken { position: absolute; inset: 0; overflow: hidden; }

.tl-marke {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap;
  padding: 6px 10px 6px 20px; will-change: transform, opacity;
  font: 600 12.5px/1 var(--manrope); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
  text-shadow: 0 0 6px rgba(5,11,22,.9), 0 1px 2px rgba(5,11,22,.9);
}
.tl-marke::before {
  content: ""; position: absolute; left: 5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
/* Werkzeug-Beschriftungen: kleine Glaskapsel an der Oberkante des Moduls –
   lesbar, aber leiser als die Schrift der Seite; aktiv mit cyanfarbener Marke */
.tl-marke--chaos {
  padding: 7px 12px 7px 24px; border-radius: var(--r-voll);
  font: 500 14px/1 var(--manrope); letter-spacing: .02em; text-transform: none; color: var(--text-2);
  background: rgba(5,11,22,.58); border: 1px solid rgba(127,169,255,.28); text-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color .4s, border-color .4s, background-color .4s;
}
.tl-marke--chaos::before { left: 10px; width: 6px; height: 6px; margin-top: -3px; background: transparent; border: 1px solid rgba(127,169,255,.7); box-shadow: none; }
.tl-marke--chaos.aktiv { color: var(--text); border-color: rgba(73,220,234,.6); background: rgba(9,22,40,.72); }
.tl-marke--chaos.aktiv::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tl-marke--mensch { color: var(--sand); }
.tl-marke--mensch::before { background: var(--sand); border-radius: 50%; box-shadow: 0 0 12px var(--sand); }
.tl-marke--ziel::before, .tl-marke--produkt::before { background: var(--blau); box-shadow: 0 0 14px var(--blau); }
.tl-marke--modul, .tl-marke--station { color: var(--ruhig); }
.tl-marke--modul.aktiv, .tl-marke--station.aktiv { color: var(--text); }
.tl-marke--modul:not(.aktiv)::before, .tl-marke--station:not(.aktiv)::before { background: transparent; border: 1px solid rgba(73,220,234,.6); box-shadow: none; }
.tl-marke--plan { color: var(--cyan); letter-spacing: .18em; }
.tl-marke--plan::before { background: transparent; border: 1px solid var(--cyan); box-shadow: none; }
.tl-marke--plan-mitte { color: var(--sand); font-size: 14px; letter-spacing: .2em; padding-left: 22px; }
.tl-marke--plan-mitte::before { width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 14px var(--sand); }

/* Zeigerlicht: folgt dem Zeiger mit Verzögerung, nur mit feinem Zeiger */
.tl-zeigerlicht { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mit-welt .tl-zeigerlicht {
    display: block; position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
    z-index: 2; pointer-events: none; opacity: 0; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(230,205,175,.16), rgba(73,220,234,.05) 40%, transparent 70%);
    transform: translate3d(var(--zx, -999px), var(--zy, -999px), 0); will-change: transform;
    transition: opacity .6s var(--weich);
  }
  .mit-welt.zeiger-aktiv .tl-zeigerlicht { opacity: 1; }
}

/* ===== Kapitel & Bühnen ===== */
main { display: block; }
.tl-kapitel { position: relative; z-index: 1; }

/* Kapitellängen in Bildschirmhöhen – Desktop erzählt langsam, Mobil kommt
   schneller voran (eigene Werte weiter unten). */
/* Bühnenlängen in Bildhöhen: Scrollraum je Kapitel, bemessen an der Lesezeit
   seiner Sätze (bei normalem Scrolltempo ~250 px/s). Der Story-Takt in
   seite.mjs sichert zusätzlich Mindest-Haltezeiten je Satz. Prinzip trägt 12 Sätze in 11,5
   Bildhöhen (früher 12,2 für Erkennen + Verbinden; 9,4 war im Schnellscroll-Test zu
   knapp: 14 von 25 Sätzen kürzer als die Lesezeit). Fünf Bühnen:
   Start, Prinzip (früher Erkennen + Verbinden), Lösungen, Beispiel, Gespräch. */
#start { --laenge: 1.9; }
#prinzip { --laenge: 11.5; }
#loesungen { --laenge: 5.6; }
#beispiel { --laenge: 7.4; }
#gespraech { --laenge: 2.2; }

/* Seitenfortschritt: dünne Lichtlinie unter der Kopfzeile (nur mobil sichtbar) */
.tl-kopf::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--seite, 0) * 100%); background: linear-gradient(90deg, var(--cyan), var(--blau)); opacity: 0; transition: opacity .4s var(--weich); }

.mit-welt .tl-kapitel[data-kapitel] { height: calc(var(--laenge, 1) * 100vh + var(--nachlauf, 0px)); height: calc(var(--laenge, 1) * 100svh + var(--nachlauf, 0px)); }
.mit-welt .tl-buehne {
  position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; overflow: hidden;
  display: flex; align-items: center; padding: 76px var(--rand) 40px;
}
.mit-welt .tl-buehne::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,11,22,.92) 0%, rgba(5,11,22,.8) 30%, rgba(5,11,22,.35) 48%, rgba(5,11,22,0) 62%);
}
/* Eintritt: der Schleier geht mit dem Text – sobald die Fahrt beginnt, gehört das Bild der Welt */
.mit-welt .tl-kapitel--eintritt .tl-buehne::before { opacity: calc(1 - var(--p, 0) * 1.7); }
.tl-text { position: relative; width: min(33rem, 100%); }
.tl-text--breit { width: min(36rem, 100%); }

.ohne-welt .tl-buehne, .ohne-js .tl-buehne {
  max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: clamp(80px, 11vw, 150px) var(--rand) clamp(40px, 6vw, 90px);
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.ohne-welt .tl-buehne:has(.tl-ersatzbild), .ohne-js .tl-buehne:has(.tl-ersatzbild) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ohne-welt .tl-kapitel--eintritt .tl-buehne, .ohne-js .tl-kapitel--eintritt .tl-buehne { padding-top: clamp(96px, 12vw, 160px); }
.ohne-welt .tl-text--breit, .ohne-js .tl-text--breit { width: min(46rem, 100%); }
.ohne-welt .tl-kapitel + .tl-kapitel { border-top: 1px solid var(--linie); }

/* Prinzip: zwei Teile in einer Bühne. Mit Welt liegen sie übereinander – es steht der Teil,
   in dem der aktive Satz liegt (seite.mjs setzt .aktiv). Ohne Welt stehen sie untereinander,
   jeder mit seinem Bild. */
.mit-welt .tl-teile { display: grid; }
.mit-welt .tl-teil { grid-area: 1 / 1; }
.mit-welt .tl-teil-text > .tl-label, .mit-welt .tl-teil-text > .tl-h2 { transition: opacity .45s var(--weich), translate .55s var(--weich); }
.mit-welt .tl-teil:not(.aktiv) .tl-teil-text > .tl-label, .mit-welt .tl-teil:not(.aktiv) .tl-teil-text > .tl-h2 { opacity: 0; translate: 0 -12px; pointer-events: none; }
.mit-welt .tl-teil.aktiv .tl-teil-text > .tl-label, .mit-welt .tl-teil.aktiv .tl-teil-text > .tl-h2 { transition-delay: .12s; }
.ohne-welt .tl-text.tl-teile, .ohne-js .tl-text.tl-teile { width: 100%; }
.ohne-welt .tl-teil, .ohne-js .tl-teil { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ohne-welt .tl-teil + .tl-teil, .ohne-js .tl-teil + .tl-teil { margin-top: clamp(64px, 9vw, 120px); }
.ohne-welt .tl-teil-text, .ohne-js .tl-teil-text { max-width: 36rem; }

/* Ruhige Variante (kein 3D: Handy, schwaches Gerät, reduzierte Bewegung): ein stehendes Bild
   statt der Welt, der Text ist sofort da – keine Einblendung, kein Warten. */
.ohne-welt .tl-kapitel--eintritt {
  background:
    radial-gradient(560px 440px at 80% 36%, rgba(230,205,175,.11), transparent 70%),
    radial-gradient(720px 560px at 8% 0%, rgba(47,107,255,.17), transparent 70%);
}
.ohne-welt .tl-zeigen, .ohne-welt .tl-einblenden { opacity: 1; translate: none; transition: none; animation: none; }

.tl-ersatzbild { width: 100%; max-width: 560px; height: auto; justify-self: center; }
.mit-welt .tl-ersatzbild { display: none; }
.tl-ersatz-kachel rect, .tl-ersatz-ebene rect { fill: rgba(23,44,74,.5); stroke: rgba(127,169,255,.35); stroke-width: 1; }
.tl-ersatz-kachel text, .tl-ersatz-ebene text { fill: var(--text-2); font: 500 16px var(--manrope); }
.tl-ersatz-weg { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: .85; }
.tl-ersatz-mensch { fill: var(--sand); }
.tl-ersatz-knoten { fill: var(--cyan); }
.tl-ersatz-ziel { fill: var(--blau); }
.tl-ersatz-glyph { fill: rgba(127,169,255,.35); }
.tl-ersatz-kachel--aktiv rect:first-child { stroke: var(--cyan); stroke-width: 1.5; fill: rgba(23,44,74,.7); }
.tl-ersatz-stummel { fill: none; stroke: rgba(73,220,234,.45); stroke-width: 1.5; stroke-dasharray: 6 5; }
.tl-ersatz-menschlicht { fill: rgba(230,205,175,.14); }
.tl-ersatz-impuls { fill: #fff; }
/* Erkennen ohne Welt: die Karte „Neue Anfrage" und die von Hand gezogenen Übergaben */
.tl-ersatz-karte { fill: rgba(73,220,234,.14); stroke: rgba(73,220,234,.7); stroke-width: 1; }
.tl-ersatz-kartetext { fill: var(--text); font: 600 10px var(--manrope); }
.tl-ersatz-hand { stroke: rgba(230,205,175,.7); }
.tl-ersatz-hinweis { fill: var(--sand); font: 500 11px var(--manrope); }
.tl-ersatz-ring { fill: none; stroke: rgba(73,220,234,.5); stroke-width: 1; stroke-dasharray: 4 6; }
.tl-ersatz-speiche path { fill: none; stroke: rgba(73,220,234,.55); stroke-width: 1; }
.tl-ersatz-plan rect { fill: rgba(230,205,175,.1); stroke: rgba(230,205,175,.6); }
.tl-ersatz-plan text { fill: var(--sand); font: 600 13px var(--manrope); letter-spacing: .12em; text-transform: uppercase; }
.tl-ersatz-planlabel { fill: var(--cyan); font: 600 12px var(--manrope); letter-spacing: .14em; text-transform: uppercase; }

/* ===== Szene 0 · Eintritt ===== */
.tl-eintritt { position: relative; z-index: 2; width: min(42rem, 100%); }
/* Hauptsatz: zwei Zeilen statt vier – er soll als ein Satz gelesen werden (Desktop). */
@media (min-width: 1100px) {
  .tl-eintritt { width: min(47rem, 100%); }
  .tl-eintritt .tl-h1 { font-size: clamp(52px, 4.35vw, 64px); }
}
.tl-eintritt .tl-aktion .tl-klein { max-width: 30ch; }
/* Zwei Angaben, zwei Zeilen – kein Mittelpunkt am Zeilenende (Handy, Befund Runde 1) */
.tl-klein--zeilen span { display: block; }
.tl-klein--zeilen .tl-punkt { display: none; }
.mit-welt .tl-kapitel--eintritt .tl-eintritt { opacity: calc(1 - var(--p, 0) * 2.2); translate: 0 calc(var(--p, 0) * -70px); }
.mit-welt .tl-einblenden { animation: tl-rein 1.1s var(--weich) both; animation-delay: calc(var(--v, 0) * 110ms + 250ms); }
@keyframes tl-rein { from { opacity: 0; transform: translateY(20px); } }

/* Fragmente vor der Schrift: zwei Ebenen über dem Text, gegenläufige Parallaxe */
.tl-fragmente { display: none; }
.mit-welt .tl-fragmente { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; opacity: calc(1 - var(--p, 0) * 1.6); }
.tl-frag {
  position: absolute; left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh);
  border: 1px solid rgba(127,169,255,.42); border-radius: 12px;
  background: linear-gradient(160deg, rgba(23,44,74,.42), rgba(10,20,36,.18));
  box-shadow: inset 0 1px 0 rgba(73,220,234,.55), 0 20px 50px rgba(0,0,0,.35);
  transform: translate3d(calc(var(--mx, 0) * var(--fs) * -34px + var(--p, 0) * var(--fs) * -260px), calc(var(--my, 0) * var(--fs) * -22px + var(--p, 0) * var(--fs) * 180px), 0) rotate(var(--fr));
  filter: blur(calc(var(--fs) * 1.1px));
  animation: tl-frag-treiben 14s ease-in-out infinite alternate;
  animation-delay: calc(var(--fs) * -4s);
}
.tl-frag--nah { border-color: rgba(127,169,255,.2); filter: blur(3px); }
/* Das große Fragment zieht über den Kopf der Headline – Fläche fast leer, damit die Schrift bleibt */
.tl-frag--gross { border-color: rgba(127,169,255,.3); background: linear-gradient(160deg, rgba(23,44,74,.14), rgba(10,20,36,.04)); filter: blur(1.6px); animation-duration: 22s; }
@keyframes tl-frag-treiben { to { margin-top: 26px; margin-left: -34px; } }

.tl-aktion--mitte { justify-content: center; }
.tl-scrollhinweis { display: none; }
.mit-welt .tl-scrollhinweis {
  position: absolute; left: var(--rand); bottom: 26px; margin: 0; display: flex; align-items: center; gap: 14px;
  font: 600 12.5px/1 var(--manrope); letter-spacing: .14em; text-transform: uppercase; color: var(--label);
  opacity: calc(1 - var(--p, 0) * 5);
}
.tl-scrollhinweis span { width: 1px; height: 38px; background: linear-gradient(180deg, var(--cyan), rgba(127,169,255,.12)); }

/* ===== Satzfolgen ===== */
.tl-folge { list-style: none; margin: 26px 0 0; padding: 0; }
.tl-satz { margin: 0 0 18px; font: 500 clamp(24px, 2.6vw, 38px)/1.22 var(--sora); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
/* Aussagesatz eines Moments (Verbinden, Beispiel): deutlich als DIE Aussage
   erkennbar – kräftiger und heller als Erklärtext, leiser als die Pointe */
.tl-satz--absatz { font: 500 clamp(20px, 1.75vw, 25px)/1.45 var(--manrope); letter-spacing: -.005em; color: var(--text); text-wrap: pretty; }
.tl-satz--pointe { font-weight: 300; color: var(--text-2); }
.tl-satz--pointe em { font-style: normal; font-weight: 600; color: var(--text); }
.tl-satz--folge { font: 400 clamp(17px, 1.4vw, 20px)/1.6 var(--manrope); letter-spacing: 0; color: var(--text-2); }
.tl-satz--legende { font: 400 17px/1.6 var(--manrope); letter-spacing: 0; }
.tl-zeit { display: block; margin-bottom: 10px; font: 600 12.5px/1 var(--manrope); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
/* Anfragefluss: Fortschrittslinie über den acht Stationen (Impuls reist sichtbar weiter) */
.mit-welt .tl-folge--zeit { position: relative; padding-top: 18px; }
.mit-welt .tl-folge--zeit::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--linie); }
.mit-welt .tl-folge--zeit::after { content: ""; position: absolute; left: 0; top: 0; width: calc(clamp(0, (var(--p, 0) - .03) / .82, 1) * 100%); height: 1px; background: linear-gradient(90deg, var(--cyan), #fff); box-shadow: 0 0 8px var(--cyan); transition: width .5s var(--weich); }
.tl-satz .tl-pfeil { font-size: 17px; }

.mit-welt .tl-folge { display: grid; }
.mit-welt .tl-satz {
  grid-area: 1 / 1; margin: 0; opacity: 0; translate: 0 26px; filter: blur(5px); pointer-events: none;
  transition: opacity .7s var(--weich), translate .9s var(--weich), filter .7s var(--weich);
}
/* Gestaffelt: der alte Satz geht sofort, der neue kommt kurz danach – zügig, damit
   die Haltezeit dem Lesen gehört und nicht der Einblendung */
.mit-welt .tl-satz.aktiv { opacity: 1; translate: 0 0; filter: none; pointer-events: auto; transition-duration: .45s, .55s, .45s; transition-delay: .12s; }
.mit-welt .tl-satz.vorbei { translate: 0 -26px; }

/* Wortweise: die Pointe entsteht Wort für Wort, im Takt der Lichtwege. Start (--wp), Abstand je
   Wort (--wd) und Anlauf (--wr) stehen am Satz und liegen auf der Skala des Kapitels (--p). */
.mit-welt .tl-wortweise span {
  --t: clamp(0, (var(--p, 0) - var(--wp, .5) - var(--w) * var(--wd, .045)) / var(--wr, .05), 1);
  display: inline-block; opacity: var(--t); translate: 0 calc((1 - var(--t)) * 14px); filter: blur(calc((1 - var(--t)) * 4px));
}
.mit-welt .tl-wortweise.aktiv span { transition: none; }

.tl-legende-satz { display: block; margin: 0 0 18px; font: 300 clamp(22px, 2.2vw, 32px)/1.25 var(--sora); letter-spacing: -.02em; color: var(--text-2); text-wrap: balance; }
.tl-legende-satz em { font-style: normal; font-weight: 600; color: var(--text); }
.tl-legende { display: inline-flex; align-items: center; gap: 9px; margin: 0 20px 8px 0; font: 500 15px var(--manrope); color: var(--text-2); }
.tl-knoten { width: 9px; height: 9px; border-radius: var(--r-node); flex: none; }
.tl-knoten--mensch { background: var(--sand); border-radius: 50%; box-shadow: 0 0 12px var(--sand); }
.tl-knoten--technik { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tl-knoten--wirkung { background: var(--blau); box-shadow: 0 0 12px var(--blau); }
.tl-legende-text { display: block; margin-top: 10px; max-width: 40ch; color: var(--text-2); }

/* ===== Szene 3 · Lösungen als Module ===== */
.tl-module { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--linie); }
.tl-modul { border-bottom: 1px solid var(--linie); }
.tl-modul-kopf {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 50px; padding: 10px 0; box-sizing: border-box;
  border: 0; background: none; color: var(--ruhig); text-align: left; font: 600 17px/1.3 var(--sora);
  transition: color .3s var(--weich), padding-left .4s var(--weich);
}
.tl-modul-kopf:hover { color: var(--text); padding-left: 6px; }
.tl-modul-kopf::after { content: ""; margin-left: auto; width: 7px; height: 7px; flex: none; border: 1px solid rgba(127,169,255,.45); border-radius: 1px; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.tl-modul-inhalt { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--weich); }
.tl-modul-inhalt > div { overflow: hidden; }
.tl-modul-inhalt .tl-h3 { padding-top: 4px; }
.tl-modul-inhalt p { margin: 10px 0 4px; max-width: 46ch; font-size: 16.5px; line-height: 1.65; color: var(--text-2); }
.tl-modul-inhalt .tl-pfeil { margin-bottom: 12px; }
.tl-modul.aktiv .tl-modul-kopf { color: var(--text); }
.tl-modul.aktiv .tl-modul-kopf::after { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tl-modul.aktiv .tl-modul-inhalt, .ohne-welt .tl-modul-inhalt, .ohne-js .tl-modul-inhalt { grid-template-rows: 1fr; }
.tl-abgrenzung { margin: 18px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--ruhig); }

/* ===== Wie wir arbeiten: vier Schritte im hellen Bereich (früher eigenes Kapitel) ===== */
.tl-weg .tl-h3 { margin-top: 10px; }
.tl-schritte { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 22px 32px; }
.tl-schritte li { padding-top: 16px; border-top: 1px solid var(--linie); }
.tl-schritt-nr { display: block; font: 600 12.5px/1 var(--manrope); letter-spacing: .14em; color: var(--label); }
.tl-schritte strong { display: block; margin-top: 10px; font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--sora); letter-spacing: -.015em; }
.tl-schritte li > span:last-child { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* ===== Vertrauen: der helle Bereich ===== */
.tl-kapitel--hell {
  --text: var(--hell-text); --text-2: var(--hell-text-2); --ruhig: var(--hell-ruhig); --label: var(--hell-ruhig); --sand: var(--sand-hell);
  --linie: var(--hell-linie); --rahmen: var(--hell-rahmen); --tiefe: rgb(var(--hell-grund-rgb));
  position: relative; color: var(--text); background: rgb(var(--hell-grund-rgb));
  padding: clamp(90px, 11vw, 160px) var(--rand);
  color-scheme: light;
}
.tl-hell-uebergang { position: absolute; left: 0; right: 0; top: -180px; height: 180px; pointer-events: none; background: linear-gradient(180deg, rgb(var(--hell-grund-rgb) / 0), rgb(var(--hell-grund-rgb) / .55) 60%, rgb(var(--hell-grund-rgb))); }
.tl-hell-uebergang--unten { top: auto; bottom: -180px; background: linear-gradient(0deg, rgb(var(--hell-grund-rgb) / 0), rgb(var(--hell-grund-rgb) / .55) 60%, rgb(var(--hell-grund-rgb))); }
.tl-kapitel--hell a { color: var(--hell-blau); }
.tl-kapitel--hell a:hover { color: var(--hell-blau-2); }
.tl-kapitel--hell .tl-label { color: var(--hell-blau); }
.tl-kapitel--hell .tl-label--mensch { color: var(--sand); }
.tl-kapitel--hell .tl-leicht { color: var(--text-2); }
.tl-kapitel--hell .tl-knopf { color: #fff; }
.tl-kapitel--hell .tl-schritt-nr { color: var(--hell-blau); }
.tl-kapitel--hell .tl-versprechen li::before { color: var(--hell-blau); }
.tl-kapitel--hell ::selection { background: rgba(47,107,255,.2); }

.tl-ruhe { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(72px, 10vw, 130px); }
.tl-ruhe-kopf .tl-lead { max-width: 60ch; }

.mit-js .tl-zeigen { opacity: 0; translate: 0 30px; transition: opacity .9s var(--weich), translate 1.1s var(--weich); }
.mit-js .tl-zeigen.sichtbar { opacity: 1; translate: 0 0; }

.tl-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 90px); align-items: start; }
.tl-zwei--einspaltig { grid-template-columns: 1fr; max-width: 760px; }

/* Der Mensch dahinter, kompakt: Name, Satz und Erreichbarkeit in einer ruhigen Spalte; die
   Versprechen stehen daneben (.tl-zwei). Ein Foto kommt erst, wenn es ein echtes gibt. */
.tl-person { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 14px; align-items: start; }
.tl-person-name { margin: 8px 0 0; font: 600 clamp(24px, 2.2vw, 28px)/1.15 var(--sora); letter-spacing: -.02em; }
.tl-rolle { margin: 4px 0 0; font-size: 15.5px; color: var(--text-2); }
.tl-ort { margin: 2px 0 0; font-size: 14px; color: var(--ruhig); }
.tl-person-satz { margin: 0; max-width: 30ch; font: 300 clamp(19px, 1.6vw, 22px)/1.35 var(--sora); letter-spacing: -.01em; text-wrap: balance; }
.tl-person-absatz { margin: 12px 0 0; max-width: 52ch; font-size: 15.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.tl-person-erreichbar { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--linie); font-size: 14px; line-height: 1.5; color: var(--ruhig); }
.tl-person-erreichbar span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.tl-person-erreichbar span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 10px rgba(143,107,59,.55); }

.tl-versprechen ol { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: v; }
.tl-versprechen li { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--linie); counter-increment: v; }
.tl-versprechen li::before { content: "0" counter(v); position: absolute; left: 0; top: 21px; font: 600 14px/1 var(--sora); color: var(--cyan); }
.tl-versprechen strong { display: block; font: 600 18px/1.35 var(--sora); }
.tl-versprechen li span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

.tl-beweise { display: grid; gap: 28px; justify-items: start; }
.tl-beweise-kopf p { margin: 12px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* Diese Website als Beweis: eine ruhige Karte, vier Punkte, keine Kennzahlen */
.tl-beweis-karte {
  width: 100%; box-sizing: border-box; padding: clamp(24px, 3.4vw, 40px) clamp(22px, 3.6vw, 44px);
  border-radius: var(--r-lg); border: 1px solid var(--rahmen); background: var(--hell-karte); box-shadow: 0 30px 70px rgba(10,20,36,.12);
  position: relative;
}
.tl-beweis-karte::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--blau), transparent); }
.tl-beweis-selbst { margin: 0; max-width: 40ch; font: 500 clamp(19px, 1.8vw, 24px)/1.4 var(--sora); letter-spacing: -.01em; }
.tl-beweis-liste { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 28px; }
.tl-beweis-liste li { padding-top: 14px; border-top: 1px solid var(--linie); }
.tl-beweis-liste strong { display: block; font: 600 16px/1.35 var(--sora); }
.tl-beweis-liste span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Freigegebene Projekte (gerendert aus assets/js/projekte.mjs) */
.tl-projektliste { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 22px; }
.tl-projektliste[hidden] { display: none; }
.tl-projekt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--rahmen); background: var(--hell-karte); }
.tl-projekt-bild { width: 100%; height: auto; border-radius: var(--r-sm); }
.tl-projekt-branche { margin: 0; font: 600 12.5px/1.3 var(--manrope); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.tl-projekt-text .tl-h3 { margin-top: 12px; }
.tl-projekt-text dl { margin: 16px 0 0; }
.tl-projekt-text dl > div { padding: 10px 0; border-top: 1px solid var(--linie); }
.tl-projekt-text dt { font: 600 12.5px/1.3 var(--manrope); letter-spacing: .14em; text-transform: uppercase; color: var(--hell-blau); }
.tl-projekt-text dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.tl-projekt-stimme { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--sand); font-size: 16px; line-height: 1.55; }
.tl-projekt-stimme footer { margin-top: 6px; font-size: 14px; color: var(--ruhig); }

.tl-haltung { margin: 0 auto; max-width: 900px; text-align: center; }
.tl-haltung-satz { margin: 0; font: 300 clamp(28px, 3.8vw, 50px)/1.25 var(--sora); letter-spacing: -.02em; text-wrap: balance; }
.tl-haltung-satz::before { content: ""; display: block; width: 10px; height: 10px; margin: 0 auto 28px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 20px rgba(143,107,59,.6); }
.tl-haltung-text { margin: 24px auto 0; max-width: 56ch; font-size: 18px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }

/* ===== Szene 8 · Gespräch ===== */
.mit-welt .tl-kapitel--finale .tl-buehne { justify-content: center; align-items: flex-start; text-align: center; }
.mit-welt .tl-kapitel--finale .tl-buehne::before { background: radial-gradient(ellipse 64% 56% at 50% 34%, rgba(5,11,22,.9), rgba(5,11,22,.55) 55%, rgba(5,11,22,0) 78%); }
.tl-finale { max-width: 1040px; margin: 0 auto; text-align: center; }
.tl-finale .tl-h2--gross { font-size: clamp(30px, 4.2vw, 58px); }
/* Von Anfang an sichtbar (kein leerer Bildschirm zwischen Haltung und Finale), gewinnt beim Ankommen an Kraft */
.mit-welt .tl-finale { padding-top: clamp(20px, 7vh, 90px); opacity: clamp(0, calc(var(--p, 0) * 3 + .7), 1); translate: 0 calc((1 - clamp(0, var(--p, 0) * 3, 1)) * 24px); }
.tl-finale-logo { display: block; width: 72px; height: 72px; margin: 0 auto 26px; }
.tl-finale .tl-lead { margin-left: auto; margin-right: auto; }
.tl-finale .tl-aktion { margin-top: 38px; }
.tl-finale-alternativ { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; margin: 18px 0 0; font-size: 15.5px; color: var(--ruhig); }
.tl-finale-alternativ a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Kapitelnavigation ===== */
.tl-reise { display: none; }
@media (min-width: 1180px) {
  .mit-welt .tl-reise { display: block; position: fixed; right: clamp(14px, 1.8vw, 30px); top: 50%; translate: 0 -50%; z-index: 40; }
}
.tl-reise ol { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-reise ol::before { content: ""; position: absolute; right: 15px; top: 14px; bottom: 14px; width: 1px; background: var(--linie); }
.tl-reise a { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 30px; padding-right: 12px; color: var(--label); }
/* Tippziel: Mauszeiger genügen 30 px, auf Touch-Geräten ab 1180 px (Tablet quer) gelten 44 px (Befund Runde 1) */
@media (pointer: coarse) { .tl-reise a { min-height: 44px; } }
.tl-reise a::after { content: ""; position: relative; width: 7px; height: 7px; flex: none; box-sizing: border-box; border: 1px solid rgba(127,169,255,.45); border-radius: 1px; background: var(--tiefe); transition: background-color .4s, border-color .4s, box-shadow .4s; }
/* Der Kapitelname liegt über der Welt: eine leise Glaskapsel, wie die Werkzeug-Beschriftungen */
.tl-reise a span { opacity: 0; translate: 6px 0; padding: 5px 9px; border-radius: var(--r-voll); background: rgba(5,11,22,.62); border: 1px solid rgba(127,169,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 12.5px/1 var(--manrope); letter-spacing: .14em; text-transform: uppercase; transition: opacity .35s var(--weich), translate .35s var(--weich); }
.tl-reise a:hover span, .tl-reise a:focus-visible span, .tl-reise a[aria-current="step"] span { opacity: 1; translate: 0 0; }
.tl-reise a[aria-current="step"] { color: var(--text); }
.tl-reise a[aria-current="step"]::after { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.im-hellen .tl-reise a { color: var(--hell-ruhig); }
.im-hellen .tl-reise a span { background: rgb(var(--hell-grund-rgb) / .8); border-color: rgba(10,20,36,.12); }
.im-hellen .tl-reise ol::before { background: rgba(10,20,36,.14); }
.im-hellen .tl-reise a::after { background: rgb(var(--hell-grund-rgb)); border-color: rgba(10,20,36,.3); }
.im-hellen .tl-reise a[aria-current="step"] { color: var(--hell-text); }
.im-hellen .tl-kopf.gescrollt { background-color: rgb(var(--hell-grund-rgb) / .82); border-bottom-color: rgba(10,20,36,.1); }
.im-hellen .tl-kopf .tl-logo, .im-hellen .tl-nav a { color: var(--hell-text); }
.im-hellen .tl-nav a:hover { color: var(--hell-blau); }
.im-hellen .tl-burger { border-color: rgba(10,20,36,.2); background: rgba(10,20,36,.04); }
.im-hellen .tl-burger span { background: var(--hell-text); }

/* ===== Schmale Querformate (Tablet quer, kleine Laptops, 761–1100 px) =====
   Die Welt rückt näher an die Mitte – der Text bleibt schmaler, damit er nicht unter die Module läuft */
@media (min-width: 761px) and (max-width: 1100px) {
  .mit-welt .tl-text { width: min(27rem, 100%); }
  .mit-welt .tl-h2 { font-size: clamp(26px, 3.4vw, 36px); }
  .mit-welt .tl-satz { font-size: clamp(22px, 2.6vw, 28px); }
}

/* ===== Flache Fenster (Laptop, 720 px hoch) ===== */
@media (min-width: 761px) and (max-height: 800px) {
  .tl-h1 { font-size: clamp(34px, 4.6vw, 62px); margin-top: 16px; }
  .tl-eintritt .tl-h1 { font-size: clamp(34px, 4.1vw, 54px); }
  .tl-eintritt .tl-lead { margin-top: 18px; font-size: 17px; }
  .tl-aktion { margin-top: 26px; }
  .mit-welt .tl-scrollhinweis { display: none; }
  .mit-welt .tl-buehne { padding-top: 70px; }
  /* Lösungen: Einleitung und Abgrenzung stehen auf der Leistungsseite – hier muss die Modulliste in 720 px passen */
  .mit-welt .tl-einleitung, .mit-welt .tl-abgrenzung { display: none; }
  .tl-module { margin-top: 16px; }
  .tl-modul-kopf { min-height: 42px; }
  .tl-modul-inhalt p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; }
  .tl-modul-inhalt .tl-pfeil { margin-bottom: 6px; }
}
/* Tippziel: auf Touch-Geräten (Tablet quer mit Welt) 44 statt 42 px (Befund Runde 1, Gegenmessung bildpruefung --mobil --welt an) */
@media (pointer: coarse) { .tl-modul-kopf { min-height: 44px; } }

/* ===== Schmale Geräte: eigene Komposition, nicht verkleinert ===== */
@media (max-width: 760px) {
  /* Mobil kommt schneller voran: kürzere Bühnen, dieselbe Geschichte */
  /* Mobil eigene Story-Zeiten: ein Daumen-Swipe ist ~eine Bildhöhe, jede
     Aussage bekommt mindestens eine halbe Bildhöhe Scrollraum */
  #start { --laenge: 1.35; }
  #prinzip { --laenge: 8.6; }
  #loesungen { --laenge: 4.6; }
  #beispiel { --laenge: 6.2; }
  #gespraech { --laenge: 1.6; }
  .mit-welt .tl-kopf.gescrollt::after { opacity: 1; }

  .mit-welt .tl-buehne { align-items: flex-end; padding: 72px var(--rand) max(26px, env(safe-area-inset-bottom)); }
  /* Kein Bildschirm ohne lesbaren Inhalt: der Hero-Text bleibt stehen und scrollt mit
     seiner Bühne hinaus, während „Erkennen" von unten hereinkommt. Die Welt hält sich
     über die Schutzzone aus ihm heraus; der Schleier bleibt dahinter. */
  .mit-welt .tl-kapitel--eintritt .tl-eintritt { opacity: 1; translate: none; }
  .mit-welt .tl-kapitel--eintritt .tl-buehne::before { opacity: 1; }
  /* Schleier hinter dem Text: kräftiger und höher – die Welt bleibt oben frei, der Text unten ruhig */
  .mit-welt .tl-buehne::before { background: linear-gradient(0deg, rgba(5,11,22,.97) 0%, rgba(5,11,22,.9) 52%, rgba(5,11,22,.55) 70%, rgba(5,11,22,0) 84%); }
  .mit-welt .tl-kapitel--finale .tl-buehne { align-items: flex-start; }
  .mit-welt .tl-kapitel--finale .tl-buehne::before { background: linear-gradient(180deg, rgba(5,11,22,.94) 0%, rgba(5,11,22,.86) 56%, rgba(5,11,22,0) 78%); }
  .mit-welt .tl-finale { padding-top: 12px; opacity: 1; translate: none; }
  .tl-finale-logo { width: 56px; height: 56px; margin-bottom: 18px; }
  .tl-label { font-size: 12px; letter-spacing: .14em; }
  .mit-welt .tl-scrollhinweis, .mit-welt .tl-fragmente, .mit-welt .tl-lichtschrift::after { display: none; }
  .mit-welt .tl-einleitung, .mit-welt .tl-abgrenzung { display: none; }
  .tl-lead { margin-top: 18px; }
  .tl-aktion { margin-top: 24px; }
  .tl-h1 { font-size: clamp(32px, 9vw, 40px); margin-top: 14px; }
  .tl-h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .tl-h2--gross { font-size: clamp(28px, 8vw, 36px); }
  .tl-lead { font-size: 16.5px; max-width: 34ch; }
  .tl-satz { font-size: clamp(22px, 6.2vw, 27px); }
  .tl-satz--absatz { font-size: 18.5px; line-height: 1.45; }
  .tl-satz--folge { font-size: 17px; }
  .tl-satz--legende { font-size: 16px; }
  .tl-legende-satz { font-size: 22px; margin-bottom: 12px; }
  /* Connected Modules mobil: ein Modul im Fokus, die anderen nur als schmale Zeile */
  .tl-module { margin-top: 14px; }
  .tl-modul-kopf { min-height: 44px; padding: 6px 0; font-size: 15px; }
  .mit-welt .tl-modul:not(.aktiv) .tl-modul-kopf { color: var(--label); }
  .mit-welt .tl-modul:not(.aktiv) .tl-modul-art { font-weight: 500; }
  .tl-modul.aktiv .tl-modul-kopf { min-height: 46px; font-size: 16.5px; }
  .tl-modul-inhalt .tl-h3 { font-size: 19px; }
  .tl-modul-inhalt p { font-size: 16px; margin-top: 6px; }
  .tl-modul-inhalt .tl-pfeil { min-height: 44px; margin-bottom: 6px; }
  .tl-person-satz { font-size: 20px; }
  .tl-person-absatz { font-size: 16px; }
  .tl-knopf--gross { padding: 18px 26px; font-size: 17px; }
  .tl-beweis-karte { padding: 22px 20px; }
}
@media (max-width: 360px) {
  .tl-h1 { font-size: 30px; }
  .tl-h2 { font-size: 24px; }
  .tl-satz { font-size: 21px; }
  .tl-label { font-size: 11px; letter-spacing: .12em; }
  .tl-knopf { padding: 15px 22px; font-size: 16px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  /* Kurze Bildschirme (320×568, 375×667): Text kompakter, damit die Welt Luft behält */
  .tl-h2 { font-size: clamp(22px, 6.6vw, 26px); }
  .tl-satz--absatz { font-size: 17px; line-height: 1.4; }
  .tl-satz--folge { font-size: 16px; line-height: 1.5; }
  .tl-folge { margin-top: 16px; }
  /* Der Kopf ist 80 px hoch: der Text darf nie darunter geraten, wenn die Bühne voll ist */
  .mit-welt .tl-buehne { padding-top: 84px; }
  .mit-welt .tl-legende-text { display: none; }
  /* Modulliste kompakter: vier Zeilen plus ein offenes Modul müssen in 568 px passen */
  .tl-module { margin-top: 14px; }
  .mit-welt .tl-modul-kopf { min-height: 34px; padding: 3px 0; }
  .mit-welt .tl-modul.aktiv .tl-modul-kopf { min-height: 38px; font-size: 16px; }
  .tl-modul-inhalt .tl-h3 { padding-top: 0; font-size: 18px; }
  .tl-modul-inhalt p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
  .mit-welt .tl-modul-inhalt .tl-pfeil { min-height: 32px; margin-bottom: 0; }
}


/* ===== Digitalcheck (Einstieg, seit 2026-10-18, ENT-191 F4/F5, Entwurf A) =====
   Kein Bühnenkapitel (kein data-kapitel): normaler Fluss wie der helle Bereich, deckende
   Fläche vor der Welt. Unterer Abstand = normaler Abstand + 150 px, damit kein Text im
   Verlauf des hellen Bereichs liegt (ENT-191 F10; der Verlauf ist 180 px hoch). */
.tl-kapitel--check {
  padding: clamp(90px, 11vw, 160px) var(--rand) calc(clamp(90px, 11vw, 160px) + 150px);
  background:
    radial-gradient(760px 540px at 88% 8%, rgba(47,106,255,.16), transparent 70%),
    radial-gradient(520px 420px at 4% 92%, rgba(230,205,175,.07), transparent 70%),
    linear-gradient(180deg, var(--tiefe), var(--grund));
}
.tl-check { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 90px); align-items: start; }
.tl-check-text .tl-h3 { margin-top: clamp(28px, 4vw, 40px); }
.tl-check-text .tl-lead { max-width: 54ch; }
.tl-check-mensch { margin-top: clamp(24px, 3vw, 32px); padding: 4px 0 4px 22px; border-left: 2px solid var(--sand); font-size: 16px; line-height: 1.6; color: var(--text-2); }
.tl-check-mensch p { margin: 0; }
.tl-check-text > .tl-pfeil { margin-top: 22px; }
.tl-check-formular { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--rahmen); background: rgba(10,20,36,.72); }
.tl-check-formular .tl-formular { margin-top: 20px; }
.tl-check-formular .tl-fertig { margin-top: 20px; }
.tl-check-ausfuehrlich { margin-top: 18px; }
.tl-richtwerte { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 20px); }
.tl-unterzeile { margin: 14px 0 0; font: 500 clamp(17px, 1.5vw, 21px)/1.4 var(--manrope); letter-spacing: .01em; color: var(--himmel); }
.ohne-welt .tl-kapitel--check { border-top: 1px solid var(--linie); }
@media (max-width: 760px) {
  .tl-kapitel--check { padding-bottom: calc(clamp(90px, 11vw, 160px) + 150px); }
  .tl-check-formular { padding: 22px 18px; }
}
