/* Startseite: «Ein System, das dich führt» als Tour mit Pfad und Bildschirm */
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.tour-pfad { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 6px; }
.tour-pfad li { position: relative; }
.tour-pfad li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 64px; bottom: -2px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% 0, var(--line-strong); transition: background-size 500ms var(--kurve-standard); }
.tour-pfad li:has(.ist-fertig)::before { background-size: 100% 100%, auto; }
.tour-schritt { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 16px 14px 0; border: 0; border-radius: var(--radius-card); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tour-schritt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tour-nr { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-raised); border: 2px solid var(--line-strong); font-size: 20px; font-weight: 800; color: var(--ink-muted); transition: background-color 300ms var(--kurve-standard), border-color 300ms var(--kurve-standard), color 300ms var(--kurve-standard), transform 400ms var(--kurve-einrasten); }
.tour-schritt.ist-fertig .tour-nr { background: var(--surface-raised); border-color: var(--ink); color: var(--ink); }
.tour-schritt[aria-selected="true"] .tour-nr { background: var(--accent); border-color: var(--ink); color: var(--on-accent); transform: scale(1.06); }
.tour-text { display: grid; gap: 4px; padding-top: 14px; }
.tour-titel { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--ink-muted); transition: color 300ms var(--kurve-standard); }
.tour-schritt[aria-selected="true"] .tour-titel, .tour-schritt:hover .tour-titel { color: var(--ink); }
.tour-info { display: grid; grid-template-rows: 0fr; overflow: hidden; color: var(--ink-body); font-size: 16px; line-height: 1.5; opacity: 0; transition: grid-template-rows 400ms var(--kurve-standard), opacity 300ms var(--kurve-standard); }
.tour-info > span { min-height: 0; overflow: hidden; }
.tour-schritt[aria-selected="true"] .tour-info { grid-template-rows: 1fr; opacity: 1; }

/* Bildschirm */
.tour-buehne { position: relative; min-height: 460px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background-color: var(--surface-raised); background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: var(--raster-size) var(--raster-size); box-shadow: var(--shadow-card); overflow: hidden; }
.tour-leiste { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line-strong); background: var(--surface-raised); }
.tour-leiste span { width: 10px; height: 10px; border-radius: 3px; background: var(--line-strong); }
.tour-leiste b { margin-left: 12px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.tour-panel { position: absolute; inset: 40px 0 0; display: grid; place-items: center; padding: 28px; }
.tour-panel[hidden] { display: none; }
.tour-panel > * { width: 100%; max-width: 440px; }
.tour-panel > .tk-zwei { max-width: 560px; }

/* Bausteine der Mini-Szenen */
.tk-karte { background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-card); padding: 20px 22px; }
.tk-titel { margin: 0 0 14px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.tk-feld { display: grid; gap: 6px; margin: 0 0 12px; }
.tk-label { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.tk-eingabe { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); }
.tk-tippen { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; }
.tk-cursor { width: 2px; height: 18px; margin-left: 1px; background: var(--ink); }
.tk-punkte { letter-spacing: 0.12em; opacity: 0; }
.tk-knopf { display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; padding: 11px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 800; }
.tk-bereit { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-inverse); color: var(--ink-inverse); font-size: 14px; opacity: 0; transform: translateY(10px); }
.tk-haken { flex: 0 0 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; }
.tk-haken::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 12px; border: solid var(--on-accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tk-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tk-balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tk-balken li { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tk-balken i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%, var(--raster); }
.tk-balken .tk-luecke i { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0 100%, var(--raster); }
.tk-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tk-plan li { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tk-plan li::before { content: ""; flex: 0 0 14px; height: 14px; border-radius: 3px; background: var(--raster); border: 1px solid var(--line-control); }
.tk-plan li span { margin-left: auto; font-weight: 500; color: var(--ink-muted); text-align: right; }
.tk-plan li.fertig::before { background: var(--ink); border-color: var(--ink); }
.tk-plan li.jetzt::before { background: var(--accent); border-color: var(--ink); }
.tk-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--ink-body); }
.tk-kaestchen { display: flex; gap: 4px; }
.tk-kaestchen i { width: 12px; height: 12px; border-radius: 3px; background: var(--raster); border: 1px solid var(--line-control); }
.tk-kaestchen i.ok { background: var(--ink); border-color: var(--ink); }
.tk-kaestchen i.jetzt { background: var(--accent); border-color: var(--ink); }
.tk-frage { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.tk-antwort { display: flex; gap: 10px; margin: 0; }
.tk-antwort .tk-eingabe { flex: 1; position: relative; }
.tk-falsch, .tk-richtig { position: absolute; left: 12px; opacity: 0; }
.tk-pruefen { display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; background: var(--ink); color: var(--ink-inverse); font-size: 14px; font-weight: 700; }
.tk-meldungen { display: grid; margin-top: 12px; }
.tk-hinweis, .tk-gut { grid-area: 1 / 1; display: flex; align-items: center; margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; opacity: 0; }
.tk-hinweis { background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 600; }
.tk-gut { gap: 10px; background: var(--surface-inverse); color: var(--ink-inverse); font-weight: 700; }
.tk-dunkel { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--ink-inverse); }
.tk-dunkel .tk-titel { color: var(--ink-inverse-muted); font-weight: 600; }
.tk-note { margin: 0; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tk-notenbalken { height: 8px; border-radius: 4px; background: rgba(128, 128, 128, 0.35); margin: 14px 0 8px; overflow: hidden; }
.tk-notenbalken i { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 4px; }
.tk-klein { margin: 0; font-size: 13px; color: var(--ink-inverse-muted); }
.tk-rein { opacity: 0; transform: translateX(-24px); }

/* Abläufe der Szenen, nur im aktiven Panel */
.ist-aktiv .tk-tippen { animation: tk-tippen 1100ms steps(15) 300ms forwards; }
.ist-aktiv .tk-cursor { animation: tk-blinken 700ms steps(1) infinite; }
.ist-aktiv .tk-punkte { animation: tk-ein 200ms ease 1600ms forwards; }
.ist-aktiv .tk-knopf { animation: tk-druck 260ms ease 2300ms; }
.ist-aktiv .tk-bereit { animation: tk-hoch 450ms var(--kurve-einrasten) 2700ms forwards; }
.ist-aktiv .tk-balken i { animation: tk-fuellen 900ms var(--kurve-standard) forwards; }
.ist-aktiv .tk-balken li:nth-child(2) i { animation-delay: 150ms; }
.ist-aktiv .tk-balken li:nth-child(3) i { animation-delay: 300ms; }
.ist-aktiv .tk-plan li.jetzt::before { animation: wow-puls 520ms var(--kurve-einrasten) 1300ms both; }
.ist-aktiv .tk-falsch { animation: tk-falsch 1500ms ease 300ms forwards; }
.ist-aktiv .tk-hinweis { animation: tk-hinweis 2000ms ease 900ms both; }
.ist-aktiv .tk-richtig { animation: tk-ein 200ms ease 2700ms forwards; }
.ist-aktiv .tk-gut { animation: tk-hoch 450ms var(--kurve-einrasten) 3200ms both; }
.ist-aktiv .tk-notenbalken i { animation: tk-note 1100ms var(--kurve-standard) 200ms forwards; }
.ist-aktiv .tk-rein { animation: tk-rein 600ms var(--kurve-einrasten) 1500ms forwards; }
@keyframes tk-tippen { to { max-width: 15ch; } }
@keyframes tk-blinken { 50% { opacity: 0; } }
@keyframes tk-ein { to { opacity: 1; } }
@keyframes tk-druck { 50% { transform: scale(0.95); } }
@keyframes tk-hoch { to { opacity: 1; transform: none; } }
@keyframes tk-fuellen { to { background-size: var(--w) 100%, auto; } }
@keyframes tk-falsch { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tk-hinweis { 0% { opacity: 0; transform: translateY(6px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tk-note { to { width: 75%; } }
@keyframes tk-rein { to { opacity: 1; transform: none; } }
@keyframes wow-puls { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }

.tour-mobil-info { display: none; }
@media (max-width: 960px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-pfad { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tour-pfad li::before { display: none; }
  .tour-schritt { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 6px 0; text-align: center; }
  .tour-nr { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
  .tour-text { padding-top: 0; }
  .tour-titel { font-size: 13px; line-height: 1.25; }
  .tour-info { display: none; }
  .tour-buehne { min-height: 440px; }
  .tour-mobil-info { display: block; margin: 0; min-height: 3em; color: var(--ink-body); font-size: 16px; line-height: 1.5; text-align: center; }
}
@media (max-width: 560px) {
  .tk-zwei { grid-template-columns: minmax(0, 1fr); }
  .tour-buehne { min-height: 500px; }
  .tour-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-pfad li::before, .tour-nr, .tour-info { transition: none; }
  .tour .ist-aktiv * { animation: none !important; }
  .tk-tippen { max-width: none; } .tk-punkte, .tk-richtig, .tk-rein { opacity: 1; transform: none; } .tk-falsch, .tk-hinweis { opacity: 0; }
  .tk-bereit, .tk-gut { opacity: 1; transform: none; }
  .tk-balken i { background-size: var(--w) 100%, auto; } .tk-notenbalken i { width: 75%; }
}
