/* ---------------------------------------------------------------------------
   Startseite (index.html) — Bausteine seit 01.11.2026, Präfix `st-`.
   Ziel-Karte und Bewegungsregeln kommen aus bausteine.css/bausteine.js; hier
   steht, was nur die Startseite braucht: Check-in in der Bühnenkarte,
   Symptome, Quartal als Zeitleiste, Gespräch, Preisrechner.
   Ruhelage nur unter `.js-anim` (setzt bausteine.js); ohne Skript oder bei
   reduzierter Bewegung steht alles im Endzustand.
--------------------------------------------------------------------------- */

/* ---------- Bühne: Ziel-Karte mit Check-in ------------------------------ */
@media (min-width: 1001px) {
  .pa-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.st-buehne-karte { position: relative; }
.st-okr { box-shadow: 0 28px 64px rgba(20, 21, 43, .14); }
.st-okr .pg-kr-text { display: flex; align-items: baseline; gap: 8px; }
.st-ampel {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--okr-gruen, #1f9d6b); transform: translateY(-1px);
  transition: background .4s ease;
}
.st-okr .st-alt { display: none; }
.st-toast {
  margin-left: auto;
  font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--nws-lime-ink);
  padding: 6px 10px; border-radius: var(--radius-pill);
  background: var(--nws-lime);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
/* Vor dem Check-in: alter Wert, gelbe Ampel, kürzerer Balken, kein Hinweis. */
.js-anim .st-okr:not(.eingecheckt) .st-alt { display: inline; }
.js-anim .st-okr:not(.eingecheckt) .st-neu { display: none; }
.js-anim .st-okr:not(.eingecheckt) .st-kr1 .st-ampel { background: var(--okr-gelb, #c98a1c); }
.js-anim .st-okr.is-play:not(.eingecheckt) .st-kr1 .pg-kr-ist { width: 58%; }
.js-anim .st-okr:not(.eingecheckt) .st-toast { opacity: 0; transform: translateY(6px); }
.pg-okr.st-okr.is-play.eingecheckt .pg-krs li.st-kr1 .pg-kr-ist { transition-delay: 0s; }
.st-okr.eingecheckt .st-kr1 .st-neu { animation: st-blink .9s ease; }
@keyframes st-blink { 0% { background: var(--nws-lime); } 100% { background: transparent; } }

/* ---------- Vertrauensband: Zahl im Satz bleibt Teil der Zeile ---------- */
.tb-punkt strong span { display: inline; margin: 0; font: inherit; color: inherit; font-variant-numeric: tabular-nums; }

/* ---------- Anlass: sechs Szenen ----------------------------------------- */
/* Jede Karte: oben ein kleiner Gegenstand, unten der Satz. Leicht schräg
   abgelegt wie Zettel auf einem Tisch; beim Hereinscrollen kommen sie
   verstreut herein und legen sich ab. */
.st-symptome {
  list-style: none; margin: var(--space-10) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5);
}
.st-symptome li {
  --dreh: -1.2deg; --von-x: -30px; --von-y: 40px;
  display: flex; flex-direction: column;
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-panel); overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 21, 43, .07);
  transform: rotate(var(--dreh));
  transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.st-symptome li:nth-child(2) { --dreh: 1deg;   --von-x: 10px;  --von-y: 60px; }
.st-symptome li:nth-child(3) { --dreh: -.6deg; --von-x: 40px;  --von-y: 30px; }
.st-symptome li:nth-child(4) { --dreh: .8deg;  --von-x: -40px; --von-y: 50px; }
.st-symptome li:nth-child(5) { --dreh: -1deg;  --von-x: 0px;   --von-y: 70px; }
.st-symptome li:nth-child(6) { --dreh: 1.3deg; --von-x: 30px;  --von-y: 45px; }
.st-symptome li:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 20px 44px rgba(20, 21, 43, .11); }
.st-symptome p { margin: 0; padding: var(--space-4) var(--space-5) var(--space-5); font-size: 15.5px; line-height: 1.5; color: var(--text-heading); font-weight: var(--fw-medium); }
.js-anim .st-symptome:not(.is-play) li { opacity: 0; transform: translate(var(--von-x), var(--von-y)) rotate(calc(var(--dreh) * 5)); }
.st-symptome.is-play li:nth-child(2) { transition-delay: .12s; }
.st-symptome.is-play li:nth-child(3) { transition-delay: .24s; }
.st-symptome.is-play li:nth-child(4) { transition-delay: .36s; }
.st-symptome.is-play li:nth-child(5) { transition-delay: .48s; }
.st-symptome.is-play li:nth-child(6) { transition-delay: .6s; }

.st-szene {
  position: relative; height: 150px; padding: var(--space-4) var(--space-5);
  background: var(--nws-indigo-050);
  display: flex; flex-direction: column; justify-content: center; gap: 7px; overflow: hidden;
}
.st-sz-marke { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 2px; }

/* 1 · drei Werkzeuge */
.st-chip {
  align-self: flex-start; display: inline-flex; gap: 8px; align-items: baseline;
  padding: 5px 11px; border-radius: var(--radius-pill); background: #fff;
  border: 1px solid var(--border-hairline); font-size: 13px; font-weight: 600; color: var(--text-heading);
}
.st-chip i { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--text-label); }
.st-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--farbe); align-self: center; }
.st-c1 { --farbe: var(--primary); }
.st-c2 { --farbe: #3f8c7e; margin-left: 22px; }
.st-c3 { --farbe: var(--okr-gelb, #c98a1c); margin-left: 8px; }

/* 2 · Chat */
.st-blase { max-width: 82%; padding: 7px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.35; }
.st-b1 { align-self: flex-start; background: #fff; color: var(--text-heading); border-bottom-left-radius: 3px; }
.st-b2 { align-self: flex-end; background: var(--nws-ink); color: #fff; border-bottom-right-radius: 3px; }
.st-b3 { opacity: .65; }

/* 3 · Balken ohne Ziel */
.st-sz-chart { justify-content: flex-end; padding-bottom: 18px; }
.st-balken { display: flex; align-items: flex-end; gap: 10px; height: 92px; border-bottom: 2px solid var(--nws-ink); padding: 0 6px; }
.st-balken i { flex: 1; height: calc(var(--h) * 100%); background: var(--primary); border-radius: 4px 4px 0 0; opacity: .85; }
.st-ziel {
  position: absolute; left: var(--space-5); right: var(--space-5); top: 22px;
  border-top: 2px dashed var(--okr-rot, #d1473f); padding-top: 3px;
  font: 600 11px var(--font-mono); color: var(--okr-rot, #d1473f); text-align: right;
}

/* 4 · Stempel */
.st-sz-stempel { align-items: center; }
.st-antrag {
  display: flex; flex-direction: column; gap: 3px; width: 74%; margin-top: -14px;
  padding: 12px 14px; background: #fff; border: 1px solid var(--border-hairline); border-radius: 8px;
  transform: rotate(-2deg);
}
.st-antrag b { font-size: 13px; color: var(--text-heading); }
.st-antrag i { font-style: normal; font-size: 12px; color: var(--okr-gelb, #c98a1c); font-weight: 600; }
.st-stempel {
  position: absolute; right: 18px; bottom: 14px;
  font: 700 14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--okr-rot, #d1473f); border: 2.5px solid currentColor; border-radius: 6px; padding: 4px 10px;
  transform: rotate(-9deg); opacity: .85;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; transition-delay: 1s;
}
.js-anim .st-symptome:not(.is-play) .st-stempel { transform: rotate(-9deg) scale(1.8); opacity: 0; }

/* 5 · Aufwand und Ergebnis */
.st-sz-waage { flex-direction: row; align-items: flex-end; justify-content: center; gap: 34px; padding-bottom: 14px; }
.st-saeule { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.st-saeule i { width: 46px; border-radius: 6px 6px 0 0; transform-origin: bottom; transition: transform .9s cubic-bezier(.22, 1, .36, 1) .8s; }
.st-saeule b { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-label); }
.st-aufwand i { height: 92px; background: var(--primary); }
.st-ergebnis i { height: 30px; background: var(--nws-muted); }
.js-anim .st-symptome:not(.is-play) .st-aufwand i { transform: scaleY(.33); }

/* 6 · die eine Datei */
.st-sz-datei { align-items: center; }
.st-datei {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; max-width: 100%;
  background: #fff; border: 1px solid var(--border-hairline); border-radius: 10px;
  box-shadow: 0 8px 18px rgba(20, 21, 43, .06);
}
.st-datei-icon {
  flex: 0 0 auto; width: 38px; height: 46px; border-radius: 5px; display: grid; place-items: end center; padding-bottom: 6px;
  background: #1f9d6b; color: #fff; font: 700 9.5px var(--font-mono); letter-spacing: .04em;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.st-datei b { display: block; font-size: 12.5px; color: var(--text-heading); word-break: break-all; }
.st-datei i { display: block; font-style: normal; font-size: 11.5px; color: var(--okr-rot, #d1473f); font-weight: 600; margin-top: 2px; }

.st-anlass-schluss { margin-top: var(--space-8); max-width: 760px; }

/* ---------- Quartal als Zeitleiste --------------------------------------- */
.st-quartal {
  margin: var(--space-8) 0 0; padding: var(--space-6) var(--space-6) var(--space-5);
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-panel); box-shadow: 0 18px 44px rgba(20, 21, 43, .06);
}
.st-q-raster { display: grid; gap: var(--space-3); }
.st-q-zeile { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-4); align-items: center; }
.st-q-name { font-size: 14px; color: var(--text-heading); font-weight: var(--fw-medium); }
.st-q-punkte, .st-q-wochen, .st-q-phasen {
  display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; align-items: center;
}
.st-q-kopf .st-q-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-label); font-weight: 400; }
.st-q-wochen b { font: 500 11px var(--font-mono); color: var(--text-label); text-align: center; }
.st-q-wochen b.st-q-rb { color: var(--nws-lime-ink); background: var(--nws-lime); border-radius: var(--radius-pill); }
.st-q-punkte i {
  justify-self: center; width: 100%; max-width: 26px; aspect-ratio: 1; border-radius: 50%;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
  transition-delay: calc(var(--w) * 90ms);
}
.st-q-punkte i.g { background: var(--okr-gruen, #1f9d6b); }
.st-q-punkte i.y { background: var(--okr-gelb, #c98a1c); box-shadow: 0 0 0 4px rgba(201, 138, 28, .18); }
.js-anim .st-quartal:not(.is-play) .st-q-punkte i { transform: scale(0); opacity: 0; }
.st-q-notiz {
  font-size: 13.5px; line-height: 1.5; color: var(--text-body);
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(201, 138, 28, .10);
  margin-left: calc((100% + 6px) / 13 * 4);
  transition: opacity .5s ease 1.5s, transform .5s ease 1.5s;
}
.st-q-notiz b { color: var(--text-heading); }
.js-anim .st-quartal:not(.is-play) .st-q-notiz { opacity: 0; transform: translateY(6px); }
.st-q-phasen { border-top: 1px solid var(--border-hairline); padding-top: var(--space-3); }
.st-q-phasen span { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-label); }
.st-q-ph1 { grid-column: 1 / 4; }
.st-q-ph2 { grid-column: 4 / 13; text-align: center; }
.st-q-ph3 { grid-column: 12 / 14; text-align: right; color: var(--nws-lime-ink) !important; }
.st-quartal figcaption { margin-top: var(--space-4); font-size: 13px; color: var(--text-label); }

.st-schritte {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8);
  margin-top: var(--space-8);
}
.st-schritte .label { display: block; margin-bottom: var(--space-2); }
.st-schritte p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-body); }

/* ---------- Zwischenaufruf nach dem Schaufenster ------------------------ */
.st-zwischen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4);
  margin: var(--space-10) 0 0; font-size: 16px; color: var(--text-heading);
}

/* ---------- Gespräch (KI-Interview als Nachbau) ------------------------- */
.st-gespraech {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--space-12, 48px); align-items: start;
}
.st-gespraech .w-head { margin-bottom: 0; }
.st-text { margin: var(--space-4) 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text-body); max-width: 34em; }
.st-chat {
  margin: 0; padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-panel); box-shadow: 0 24px 56px rgba(20, 21, 43, .10);
}
.st-m {
  max-width: 86%; padding: 11px 15px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5;
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.st-m-du { align-self: flex-end; background: var(--nws-ink); color: #fff; border-bottom-right-radius: 5px; }
.st-m-ki { align-self: flex-start; background: var(--nws-indigo-050); color: var(--text-heading); border-bottom-left-radius: 5px; }
.st-m-ki span {
  display: block; margin-bottom: 3px;
  font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.st-entwurf {
  align-self: stretch; max-width: none; margin-top: var(--space-2);
  border: 1.5px solid var(--nws-ink); border-radius: var(--radius-card);
  background: rgba(198, 242, 78, .28); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.st-entwurf-marke { font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--nws-lime-ink); }
.st-entwurf strong { font-size: 16.5px; color: var(--text-heading); }
.st-entwurf-fuss { font-size: 12.5px; color: var(--text-body); }
.st-chat figcaption { margin-top: var(--space-2); }
.js-anim .st-chat:not(.is-play) .st-m { opacity: 0; transform: translateY(10px); }
.st-chat.is-play .st-m:nth-child(2) { transition-delay: .7s; }
.st-chat.is-play .st-m:nth-child(3) { transition-delay: 1.4s; }
.st-chat.is-play .st-m:nth-child(4) { transition-delay: 2.1s; }
.st-chat.is-play .st-m:nth-child(5) { transition-delay: 2.8s; }
.st-chat.is-play .st-m:nth-child(6) { transition-delay: 3.5s; }
.st-chat.is-play .st-m:nth-child(7) { transition-delay: 4.2s; }
.st-chat.is-play .st-m:nth-child(8) { transition-delay: 5s; }

/* ---------- Preisrechner ------------------------------------------------- */
.pr-karte.st-rechner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--space-10); row-gap: var(--space-4); align-items: start; align-content: start;
}
.st-rechner > * { grid-column: 1 / -1; }
.st-rechner > .st-r-links { grid-column: 1; display: grid; gap: var(--space-3); }
.st-rechner > .st-r-ergebnis { grid-column: 2; }
.st-r-label { font-size: 14px; color: var(--text-body); }
.st-r-eingabe { grid-column: 1; display: flex; align-items: center; gap: var(--space-4); }
.st-r-eingabe input[type="range"] { flex: 1; accent-color: var(--primary); height: 28px; cursor: pointer; }
.st-r-zahl {
  width: 84px; padding: 8px 10px; border-radius: var(--radius-xs);
  border: 1px solid var(--nws-border-strong); background: #fff;
  font: 600 18px var(--font-sans); color: var(--text-heading); text-align: right;
}
.st-r-zahl:focus-visible, .st-r-eingabe input[type="range"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.st-r-ergebnis { margin: 0; display: grid; gap: 0; }
.st-r-ergebnis div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: 10px 0; border-bottom: 1px solid var(--border-hairline);
}
.st-r-ergebnis dt { font-size: 14px; color: var(--text-body); }
.st-r-ergebnis dd { margin: 0; font-size: 17px; font-weight: var(--fw-semibold); color: var(--text-heading); font-variant-numeric: tabular-nums; }
.st-r-ergebnis .st-r-summe dd { font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-display); }
.st-rechner .pr-beleg { margin: 0; }

/* ---------- Schmalere Fenster -------------------------------------------- */
@media (max-width: 1000px) {
  .st-gespraech { grid-template-columns: 1fr; }
  .st-symptome { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .st-symptome { grid-template-columns: 1fr; }
  .st-symptome li { --dreh: 0deg !important; }
  .st-szene { height: 128px; }
  .st-q-zeile { grid-template-columns: 1fr; gap: 6px; }
  .st-q-kopf .st-q-name, .st-q-fuss .st-q-name, .st-q-notiz-zeile .st-q-name { display: none; }
  .st-q-name { font-size: 13px; }
  .st-q-punkte, .st-q-wochen, .st-q-phasen { gap: 3px; }
  .st-q-notiz { margin-left: 0; }
  .st-q-ph2 { display: none; }
  .st-q-ph1 { grid-column: 1 / 7; }
  .st-q-ph3 { grid-column: 8 / 14; }
  .st-q-phasen span { font-size: 10px; }
  .st-quartal { padding: var(--space-4); }
  .st-schritte { grid-template-columns: 1fr; gap: var(--space-5); }
  .pr-karte.st-rechner { grid-template-columns: 1fr; }
  .st-rechner > .st-r-links, .st-rechner > .st-r-ergebnis { grid-column: 1; }
  .st-m { max-width: 92%; }
  .st-toast { margin-left: 0; }
}

/* Der Abstandhalter aus produkt.css (gleicht Karten ohne Marke an) ist hier
   eine leere Rasterzeile; der Rechner steht allein über die volle Breite. */
.pr-karte.pr-beispiele.st-rechner:not(.is-empfohlen)::before { display: none; }

/* ---------- Stand: Wochentermine und Fortschritt (Zeichnung) ------------ */
/* Nachbau von stand-rhythmus.webp. Ablauf: sieben Wochentermine erscheinen
   nacheinander, die aktuelle Woche wird Lime mit Haken, dann zeichnet sich die
   Linie des Fortschritts und ihre Punkte springen auf. */
.st-stand { width: 100%; height: auto; display: block; }
.sr-strich { stroke: #3f8c7e; stroke-width: 3; stroke-dasharray: 12 10; transition: opacity .3s ease; transition-delay: calc(var(--i) * 120ms + 60ms); }
.sr-kreis {
  fill: transparent; stroke: var(--nws-ink); stroke-width: 3;
  transform-box: fill-box; transform-origin: center;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, fill .4s ease;
  transition-delay: calc(var(--i) * 120ms);
}
.sr-kreis.sr-jetzt { fill: var(--nws-lime); }
.sr-haken { fill: none; stroke: var(--nws-ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; transition: stroke-dashoffset .4s ease 1.1s; }
.sr-linie { fill: none; stroke: var(--nws-ink); stroke-width: 3; stroke-dasharray: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1) 1.3s; }
.sr-punkt {
  fill: var(--primary); transform-box: fill-box; transform-origin: center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
  transition-delay: calc(1.3s + var(--i) * 200ms);
}
.js-anim .st-stand:not(.is-play) .sr-strich { opacity: 0; }
.js-anim .st-stand:not(.is-play) .sr-kreis { opacity: 0; transform: scale(.6); }
.js-anim .st-stand:not(.is-play) .sr-kreis.sr-jetzt { fill: transparent; }
.st-stand.is-play .sr-kreis.sr-jetzt { transition-delay: .4s, .4s, 1s; }
.js-anim .st-stand:not(.is-play) .sr-haken,
.js-anim .st-stand:not(.is-play) .sr-linie { stroke-dashoffset: 1; }
.js-anim .st-stand:not(.is-play) .sr-punkt { opacity: 0; transform: scale(0); }
@media (max-width: 900px) { .pk-illu .st-stand { display: none; } }

/* ---------- Schaufenster: gleiche Höhe für alle Reiter ------------------ */
/* Die Aufnahmen haben unterschiedliche Formate; ohne festen Rahmen springt die
   Seite beim Umschalten. Rahmen im Format der höchsten Aufnahme (Check-in und
   Interview, beide auf 1600 × 1190 zugeschnitten), breitere stehen oben bündig. */
.sc-panel .okr-mock img { aspect-ratio: 1600 / 1190; object-fit: contain; object-position: top center; }
