/* Interaktive Playbooks: der Spieler zum Durchklicken, die Vorlage zum Lesen, das App-Bild */

.spieler { margin: 44px auto 0; max-width: 1060px; text-align: left; background: var(--flaeche); border-radius: 28px; box-shadow: 0 0 0 1px rgba(95, 240, 220, 0.22), 0 40px 80px -40px rgba(95, 240, 220, 0.35); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: 'kopf kopf' 'mitte tv'; gap: 18px; }
.sp-kopf { grid-area: kopf; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sp-phasen { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sp-phasen button { font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--weiss-3); background: transparent; border: 0; padding: 8px 10px 10px; cursor: pointer; position: relative; }
.sp-phasen button::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.sp-phasen .fertig button { color: var(--weiss-2); }
.sp-phasen .fertig button::after { background: rgba(95, 240, 220, 0.45); }
.sp-phasen .an button { color: var(--tuerkis); }
.sp-phasen .an button::after { background: var(--tuerkis); }
.sp-anrede { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--flaeche-2); }
.sp-anrede button { font: 600 13px var(--text); color: var(--weiss-2); background: transparent; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.sp-anrede button[aria-checked='true'] { background: var(--tuerkis); color: var(--tinte); }

.sp-mitte { grid-area: mitte; display: flex; flex-direction: column; gap: 16px; }
.sp-karte { background: var(--grund); border-radius: 22px; padding: 28px 28px 24px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.sp-absicht { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--weiss-3); }
.sp-titel { font-family: var(--kraeftig); font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; line-height: 1; color: var(--weiss); }
.sp-titel .key { font: 500 10.5px var(--mono); letter-spacing: 0.14em; color: var(--tuerkis); vertical-align: middle; margin-left: 10px; padding: 3px 8px; border: 1px solid rgba(95, 240, 220, 0.5); border-radius: 6px; }
.sp-satz { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; color: var(--weiss); }
.sp-hinweis { color: var(--weiss-2); font-size: 15px; margin-top: auto; }
.sp-hinweis button { font: inherit; color: var(--tuerkis); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sp-karte.neu { animation: sp-rein 0.35s ease; }
@keyframes sp-rein { from { opacity: 0.2; transform: translateY(6px); } }

.sp-label { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--weiss-3); margin-bottom: 8px; }
.sp-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-knoepfe button { font: 600 15px var(--text); color: var(--weiss); background: var(--flaeche-2); border: 1px solid var(--glas-rand); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.sp-knoepfe button:hover { background: rgba(95, 240, 220, 0.14); transform: translateY(-1px); }
.sp-knoepfe button[data-art='antwort'] { background: var(--tuerkis); color: var(--tinte); border-color: transparent; }
.sp-steuer { display: flex; gap: 18px; }
.sp-link { font: 500 13px var(--text); color: var(--weiss-3); background: none; border: 0; padding: 0; cursor: pointer; }
.sp-link:hover { color: var(--weiss); }

.sp-tv { grid-area: tv; background: var(--grund); border-radius: 22px; padding: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 6px; }
.sp-trust { display: flex; align-items: baseline; gap: 10px; }
.sp-zahl { font-family: var(--kraeftig); font-size: 64px; line-height: 1; color: var(--tuerkis); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.sp-zahl.tief { color: #f26d7d; }
.sp-zone { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--weiss-2); }
.sp-spur { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); margin-bottom: 14px; overflow: hidden; }
.sp-spur i { display: block; height: 100%; width: 55%; background: var(--tuerkis); border-radius: inherit; transition: width 0.5s ease; }
.sp-stille { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--weiss); margin-bottom: 12px; }
.sp-stille svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.sp-stille circle { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 4; }
.sp-stille .lauf { stroke: var(--weiss); stroke-dasharray: 101; stroke-dashoffset: 101; stroke-linecap: round; animation: sp-stille 5s linear forwards; }
@keyframes sp-stille { to { stroke-dashoffset: 0; } }
.sp-keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--weiss-3); }
.sp-keys li { display: flex; align-items: center; gap: 8px; }
.sp-keys li::before { content: ''; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, 0.3); flex: none; }
.sp-keys li.gestellt { color: var(--weiss); }
.sp-keys li.gestellt::before { background: var(--tuerkis); border-color: var(--tuerkis); }

/* Echte App-Bausteine (app-widgets.js, gebaut aus src/widgets): im Rahmen wie ein Fenster der App */
.app-live { margin: 44px auto 0; max-width: 1060px; border-radius: 22px; padding: 26px 22px 18px; background: linear-gradient(180deg, #10262e, #0d1c22); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px -40px rgba(95, 240, 220, 0.4); display: flex; flex-direction: column; gap: 18px; text-align: left; }
.app-live [data-app-widget] { min-height: 40px; }
.app-live [data-app-widget='kern'] { min-height: 260px; }
.app-live figcaption { font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--weiss-3); text-align: center; }
@media (max-width: 600px) { .app-live { padding: 20px 10px 14px; } }

.vorlage { max-width: 860px; margin: 44px auto 0; text-align: left; display: grid; gap: 14px; }
.v-phase { background: var(--flaeche); border-radius: 22px; padding: 26px 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.v-phase h3 { font-family: var(--kraeftig); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1; display: flex; align-items: baseline; gap: 14px; }
.v-phase h3 span { color: var(--tuerkis); font-size: 22px; }
.v-phase h4 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; color: var(--tuerkis); }
.v-phase .absicht { color: var(--weiss-3); font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin: 8px 0 14px; }
.v-phase ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.v-phase li { color: var(--weiss-2); font-size: 16px; }
.v-phase li b { color: var(--weiss); font-weight: 600; }
.v-phase .satz { display: block; color: var(--weiss-2); }
.v-phase .key { font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tuerkis); margin-left: 8px; }

@media (max-width: 860px) {
  .spieler { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'kopf' 'mitte' 'tv'; padding: 16px; }
  .sp-karte { padding: 22px 20px; min-height: 0; }
  .sp-tv { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
  .sp-tv > .sp-label, .sp-keys, .sp-spur, .sp-stille { grid-column: 1 / -1; }
  .v-phase { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-karte.neu, .sp-stille .lauf { animation: none; }
  .sp-stille .lauf { stroke-dashoffset: 0; }
}

/* Ratgeber-Text: lesbar wie ein Artikel */
.ratgeber { max-width: 720px; margin: 44px auto 0; text-align: left; font-size: 17.5px; line-height: 1.7; color: var(--weiss-2); }
.ratgeber h2 { font-family: var(--kraeftig); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: var(--weiss); margin: 56px 0 14px; scroll-margin-top: 24px; }
.ratgeber h3 { font-size: 20px; font-weight: 600; color: var(--weiss); margin: 32px 0 8px; line-height: 1.35; }
.ratgeber p { margin: 0 0 14px; }
.ratgeber b { color: var(--weiss); font-weight: 600; }
.ratgeber ul, .ratgeber ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.ratgeber a { color: var(--tuerkis); }
.ratgeber .beispiel { margin: 16px 0; padding: 14px 20px; border-left: 3px solid var(--tuerkis); background: rgba(95, 240, 220, 0.06); border-radius: 0 14px 14px 0; color: var(--weiss); font-size: 18px; }
.inhalt { background: var(--flaeche); border-radius: 20px; padding: 22px 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.inhalt ol { margin: 0; gap: 4px; font-size: 16px; }
.inhalt a { color: var(--weiss-2); text-decoration: none; }
.inhalt a:hover { color: var(--tuerkis); }
.key-liste li::marker, .schritte li::marker { color: var(--tuerkis); font-weight: 600; }
.tabelle { overflow-x: auto; margin: 8px 0 18px; }
.tabelle table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tabelle th, .tabelle td { padding: 12px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; vertical-align: top; }
.tabelle thead th { font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--weiss-3); }
.tabelle thead th:nth-child(2) { color: var(--tuerkis); }
.tabelle tbody th { color: var(--weiss); font-weight: 600; width: 28%; }
.tabelle td:nth-child(2) { color: var(--weiss); }
.pdf-info { margin-top: 12px; color: var(--weiss-3); font-size: 14px; }

/* Zentriert statt linksbuendig (Grundsatz der Website). Listen ohne Aufzaehlungszeichen, Nummern als eigene Zeile. */
.ratgeber, .vorlage, .v-phase, .inhalt, .sp-karte, .sp-mitte, .sp-tv { text-align: center; }
.ratgeber { max-width: 680px; }
.ratgeber ul, .ratgeber ol, .inhalt ol, .v-phase ol { list-style: none; padding: 0; justify-items: center; }
.ratgeber ol, .v-phase ol { counter-reset: nr; }
.ratgeber ol > li, .v-phase ol > li { counter-increment: nr; }
.ratgeber ol > li::before, .v-phase ol > li::before { content: counter(nr, decimal-leading-zero); display: block; font: 500 12px var(--mono); letter-spacing: 0.12em; color: var(--tuerkis); margin-bottom: 2px; }
.ratgeber ul > li::before { content: ''; display: block; width: 18px; height: 2px; background: var(--tuerkis); margin: 0 auto 8px; border-radius: 2px; }
.inhalt ol > li::before { display: none; }
.ratgeber .beispiel { border-left: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(95, 240, 220, 0.3); }
.tabelle th, .tabelle td, .tabelle tbody th { text-align: center; }
.v-phase h3 { justify-content: center; }
.sp-karte { align-items: center; }
.sp-reaktionen .sp-knoepfe, .sp-steuer { justify-content: center; }
.sp-tv { align-items: center; }
.sp-trust { justify-content: center; }
.sp-spur { width: 100%; }
.sp-keys { justify-items: center; }
.sp-kopf { flex-direction: column; justify-content: center; }
.sp-phasen { justify-content: center; }
