/* Sitzungsmodus und Demos (Beamer) sowie die Vorbereitungsseite. Hell und kontrastreich – Beamer in hellen Räumen. */

/* ---------- Vorbereitungsseite ---------- */

.sitzung-auswahl h2 { margin-top: 28px; font-size: 1.2rem; }
.modul-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.modul-kachel {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: var(--text);
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
}
.modul-kachel:hover { border-color: var(--akzent); }
.modul-kachel.aktiv { border: 2px solid var(--akzent); background: var(--akzent-hell); font-weight: 600; }
.modul-kachel .modul-nr { flex: none; }
.sitzung-auswahl .kernbotschaft { margin: 10px 0 0; }
.werkzeug.inline { position: static; margin: 0; justify-content: flex-start; }
.segment-link {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--rand); margin-left: -1px; text-decoration: none;
  color: #b07a00; background: #fff; min-width: 3.4em; text-align: center;
}
.segment-link:first-child { border-radius: 8px 0 0 8px; }
.segment-link:last-child { border-radius: 0 8px 8px 0; }
.segment-link[aria-pressed="true"] { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.knopf-link { padding: 6px 12px; border: 1px solid var(--rand); border-radius: 8px; text-decoration: none; background: #fff; }
.start-knopf {
  display: inline-block; margin-top: 18px; padding: 14px 28px; border-radius: 12px; background: var(--akzent); color: #fff;
  font-size: 1.25rem; font-weight: 700; text-decoration: none;
}
.start-knopf:hover { background: #174a5b; }
.demo-einzeln { margin-top: 24px; }

/* ---------- Beamer-Grundgerüst ---------- */

body.beamer { background: #fbfaf7; overflow: hidden; }
body.beamer .app-kopf { display: none; }
body.beamer main#app { padding: 0; }
html:has(body.beamer) { font-size: clamp(15px, 1.3vw, 30px); }

.sitzung { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; height: 100dvh; color: #14202a; }

.s-kopf {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.9rem; padding: 0.45rem 1rem;
  background: #fff; border-bottom: 2px solid #d9e6ea; font-size: 0.8rem;
}
.s-ende { text-decoration: none; color: #5b666c; font-size: 1.1rem; padding: 0 0.3rem; }
.s-modul { font-weight: 700; color: #1f5f74; max-width: 20rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-phasen { display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 1 1 auto; }
.s-phase {
  font: inherit; border: 1px solid #c9d6da; background: #fff; color: #44535a; border-radius: 99px; padding: 0.15rem 0.7rem; cursor: pointer;
}
.s-phase small { opacity: 0.7; }
.s-phase.fertig { background: #eef4f5; color: #6b7b82; }
.s-phase.jetzt { background: #1f5f74; border-color: #1f5f74; color: #fff; font-weight: 700; }
.s-phase.ueber:not(.jetzt) { border-color: #c98a00; }
.s-timer { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.s-timer strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.s-timer strong.knapp { color: #9a5b00; }
.s-timer strong.ueber { color: #b3261e; }
.s-abruf { color: #1f5f74; font-weight: 600; }
.s-uhr { font-variant-numeric: tabular-nums; color: #44535a; }
.s-knopf { font: inherit; background: none; border: 1px solid #c9d6da; border-radius: 6px; padding: 0.1rem 0.5rem; cursor: pointer; }

.s-buehne { overflow: auto; padding: 1.4rem 2.4rem; outline: none; display: flex; }
.s-fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 1rem;
  background: #fff; border-top: 2px solid #d9e6ea;
}
.s-nav { font: inherit; font-size: 0.9rem; padding: 0.35rem 1.1rem; border-radius: 8px; border: 1px solid #c9d6da; background: #fff; cursor: pointer; }
.s-nav.primaer { background: #1f5f74; color: #fff; border-color: #1f5f74; }
.s-nav:disabled { opacity: 0.4; cursor: default; }
.s-zaehler { color: #6b7b82; font-size: 0.8rem; }

/* ---------- Folien ---------- */

.folie { margin: auto; width: 100%; max-width: 62rem; }
.folie h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 1.2rem; color: #1f5f74; }
.folie h2 { font-size: 1.3rem; color: #1f5f74; margin: 0 0 0.5rem; }
.f-oben { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 700; color: #6b7b82; margin: 0 0 0.5rem; }
.f-datum { font-size: 1.6rem; color: #44535a; margin: 0 0 0.4rem; }
.f-heute { font-size: 1.5rem; font-weight: 600; margin: 0 0 1.2rem; }
.f-punkte { font-size: 1.6rem; line-height: 1.4; padding-left: 1.6em; margin: 0; }
.f-punkte li { margin-bottom: 0.55em; }
.f-punkte li::marker { color: #1f5f74; font-weight: 700; }
.f-fuss { font-size: 1.25rem; margin-top: 1.2rem; padding: 0.6rem 1rem; background: #e9f3f5; border-radius: 10px; }
.f-leise { color: #6b7b82; font-size: 1.05rem; }
.f-kasten { margin-top: 1rem; padding: 0.8rem 1.1rem; border: 2px solid #c7d9df; border-radius: 12px; background: #fff; font-size: 1.15rem; }
.f-merk { font-size: 1.6rem; font-weight: 800; color: #1f5f74; }
.f-frage { font-size: 2.2rem; font-weight: 700; line-height: 1.25; margin: 0 0 1.4rem; }
.f-antwort { font-size: 1.7rem; color: #1f5f74; font-weight: 600; padding: 0.8rem 1.1rem; background: #e9f3f5; border-radius: 12px; }
.f-zitat { font-size: 1.5rem; line-height: 1.4; padding: 0.9rem 1.2rem; border-left: 6px solid #1f5f74; background: #fff; border-radius: 0 12px 12px 0; }
.f-kern { text-align: center; }
.f-kernbotschaft { font-size: 3rem; line-height: 1.2; font-weight: 800; color: #1f5f74; margin: 1rem auto; max-width: 22ch; }
.f-werkstatt { display: flex; align-items: stretch; justify-content: center; gap: 1rem; margin-bottom: 1.2rem; }
.f-station {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; padding: 1.2rem;
  background: #fff; border: 2px solid #c7d9df; border-radius: 16px; opacity: 0.12; transition: opacity 0.4s;
}
.f-station.sichtbar { opacity: 1; }
.f-station .icon { width: 4.5rem; height: 4.5rem; color: #1f5f74; }
.f-station strong { font-size: 1.6rem; }
.f-station span { font-size: 1.1rem; }
.f-pfeil { align-self: center; font-size: 2.2rem; color: #9aa5a9; }
.f-bild { display: flex; justify-content: center; }
.bild-leuchtturm { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 9rem); border-radius: 16px; }
.f-demo { max-width: 72rem; display: flex; flex-direction: column; min-height: 100%; }
.demo-buehne { flex: 1; display: flex; }
.f-material { margin: 0.6rem 0 0; color: #8a979d; font-size: 0.75rem; text-align: right; }
.f-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.f-karte.strategiekarte { min-height: 0; font-size: 1.05rem; background: #fff; padding: 1.2rem 1.4rem; border-radius: 14px; }
.f-karte.strategiekarte p:first-of-type strong { font-size: 1.5rem; }
.f-skala { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.f-skala span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid #1f5f74; border-radius: 50%; font-weight: 700; color: #1f5f74; }

/* ---------- Demos ---------- */

.demo { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.d-titel { font-size: 1.9rem; color: #1f5f74; margin: 0; }
.d-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: #6b7b82; font-weight: 600; }
.d-punkte { display: flex; gap: 0.35rem; }
.d-punkte span { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #d4dee1; }
.d-punkte span.fertig { background: #7fa9b6; }
.d-punkte span.jetzt { background: #1f5f74; transform: scale(1.3); }
.d-steuerung { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: auto; padding-top: 0.6rem; }
.d-knopf {
  font: inherit; font-size: 1rem; padding: 0.55rem 1.1rem; border-radius: 10px; border: 2px solid #c7d9df; background: #fff; color: #14202a; cursor: pointer;
}
.d-knopf:hover { border-color: #1f5f74; }
.d-knopf.primaer { background: #1f5f74; border-color: #1f5f74; color: #fff; }
.d-knopf.aktiv { background: #fff3d6; border-color: #c98a00; }
.d-knopf:disabled { opacity: 0.4; cursor: default; }
.d-mini { font: inherit; font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 6px; border: 1px solid #c7d9df; background: #fff; cursor: pointer; margin-left: 0.4rem; }
.d-leise { color: #6b7b82; font-size: 1.05rem; margin: 0; }
.d-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.d-gross-knopf {
  font: inherit; display: flex; flex-direction: column; gap: 0.4rem; text-align: left; padding: 1.3rem 1.4rem; cursor: pointer;
  border: 2px solid #c7d9df; border-radius: 16px; background: #fff;
}
.d-gross-knopf strong { font-size: 1.4rem; color: #1f5f74; }
.d-gross-knopf:hover { border-color: #1f5f74; }

.d-durchsage, .d-telefon {
  display: flex; gap: 1.2rem; align-items: center; padding: 1.6rem 1.8rem; background: #fff; border: 2px solid #c7d9df; border-radius: 18px; min-height: 9rem;
}
.d-durchsage.aenderung { border-color: #c98a00; background: #fff8e6; }
.d-durchsage p, .d-nachricht { font-size: 2rem; line-height: 1.35; margin: 0; }
.d-lautsprecher { font-size: 3rem; }
.d-telefon.kompakt { min-height: 0; padding: 0.8rem 1.2rem; }
.d-telefon.kompakt .d-nachricht { font-size: 1.25rem; }
.d-telefon.kompakt .d-lautsprecher { font-size: 1.8rem; }
.d-frage { padding: 1rem 0; }
.d-frage-text { font-size: 2.2rem; font-weight: 700; line-height: 1.25; margin: 0 0 1rem; }
.d-antwort { font-size: 1.6rem; font-weight: 600; color: #1f5f74; background: #e9f3f5; padding: 0.7rem 1rem; border-radius: 12px; margin: 0; }
.d-antwort-klein { color: #1f5f74; }
.d-liste { font-size: 1.25rem; line-height: 1.45; }
.d-liste li { margin-bottom: 0.6rem; }

.d-fall { font-size: 2rem; font-weight: 600; line-height: 1.3; margin: 0; }
.d-hilfen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.d-hilfe {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; padding: 1rem;
  border: 2px solid #c7d9df; border-radius: 16px; background: #fff; transition: opacity 0.3s;
}
.d-hilfe .icon { width: 3.5rem; height: 3.5rem; color: #1f5f74; }
.d-hilfe strong { font-size: 1.25rem; }
.d-hilfe span { font-size: 0.95rem; color: #44535a; }
.d-hilfen.gross .icon { width: 5rem; height: 5rem; }
.d-hilfe.richtig { border-color: #1f7a4d; background: #e8f6ee; }
.d-hilfe.richtig::after { content: "✓ passt"; color: #1f7a4d; font-weight: 700; }
.d-hilfe.blass { opacity: 0.35; }

.d-wtabelle { border-collapse: collapse; font-size: 1.35rem; background: #fff; }
.d-wtabelle th, .d-wtabelle td { border: 1px solid #c7d9df; padding: 0.4rem 0.9rem; text-align: left; }
.d-wtabelle th { background: #e9f3f5; white-space: nowrap; }
.d-regler { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #6b7b82; }

.d-regeln { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.d-regeln span { padding: 0.3rem 0.9rem; border-radius: 99px; background: #e9f3f5; color: #1f5f74; font-weight: 700; font-size: 1.15rem; }
.d-woerter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 2.2rem; font-weight: 700; min-height: 8rem; }
.d-woerter span:not(.d-pfeil) { padding: 0.3rem 1rem; background: #fff; border: 2px solid #c7d9df; border-radius: 12px; }
.d-woerter span.neu { border-color: #1f5f74; background: #e9f3f5; animation: d-auf 0.4s ease-out; }
.d-pfeil { color: #9aa5a9; font-size: 1.6rem; }
@keyframes d-auf { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.d-verdeckt { justify-content: center; text-align: center; }
.d-gross-text { font-size: 2.4rem; font-weight: 700; color: #1f5f74; margin: 2rem 0 0.5rem; }
.d-woerter-liste { font-size: 1.8rem; columns: 2; }
.d-geschichte { font-size: 1.3rem; line-height: 1.5; background: #fff; padding: 1rem 1.2rem; border-radius: 12px; border-left: 6px solid #1f5f74; }

.d-gesichter { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.d-person { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 15rem; }
.gesicht { width: 12rem; height: auto; background: #eef4f5; border-radius: 16px; }
.d-person figcaption { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; font-size: 1.05rem; }
.d-person figcaption strong { font-size: 1.5rem; }
.d-verbindung { color: #1f5f74; font-weight: 600; }

.d-pool { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 3.2rem; }
.d-chip {
  font: inherit; font-size: 1.35rem; padding: 0.3rem 0.9rem; border-radius: 10px; border: 2px solid #c7d9df; background: #fff; cursor: pointer;
}
.d-chip.gewaehlt { border-color: #c98a00; background: #fff3d6; transform: translateY(-2px); box-shadow: 0 3px 8px rgb(0 0 0 / 0.12); }
.d-gruppen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.d-gruppe { border: 2px dashed #9fb7bf; border-radius: 16px; padding: 0.7rem; min-height: 11rem; display: flex; flex-direction: column; gap: 0.5rem; background: #fff; }
.d-gruppe.ziel { border-color: #c98a00; cursor: pointer; }
.d-gruppe-kopf { font-weight: 700; color: #1f5f74; font-size: 1.2rem; }
.d-gruppe-inhalt { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; align-content: flex-start; }
.d-gruppe-anzahl { color: #6b7b82; font-weight: 600; }

.d-zahl { font-size: 4.2rem; font-weight: 800; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; text-align: center; margin: 2rem 0; color: #14202a; }
.d-zahl.bloecke { display: flex; justify-content: center; gap: 2.2rem; }
.d-zahl.bloecke span { padding: 0.2rem 0.8rem; background: #e9f3f5; border-radius: 12px; animation: d-auf 0.4s ease-out; }
.d-zahl.verdeckt { color: #9aa5a9; font-size: 2.6rem; }

.d-schritte { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.d-schritte span { padding: 0.25rem 0.8rem; border-radius: 99px; background: #eef4f5; color: #6b7b82; font-weight: 600; font-size: 0.9rem; }
.d-schritte span.fertig { background: #cfe2e7; color: #1f5f74; }
.d-schritte span.jetzt { background: #1f5f74; color: #fff; }
.d-text-titel { font-size: 2rem; margin: 0; }
.d-text p { font-size: 1.35rem; line-height: 1.55; margin: 0 0 0.8rem; }
.d-text p.gelesen { color: #8a979d; }
.d-text p.neu { background: #fff; padding: 0.4rem 0.7rem; border-left: 5px solid #1f5f74; border-radius: 0 10px 10px 0; }
.d-impuls { font-size: 1.5rem; font-weight: 700; color: #9a5b00; margin: 0; }

.d-merk { font-size: 3rem; font-weight: 800; color: #1f5f74; margin: 0.5rem 0; }
.d-merk.verdeckt { color: #c7d9df; }
.d-status { font-size: 1.3rem; font-weight: 600; }

.d-zwei { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.d-eingabe { border-collapse: collapse; font-size: 1.1rem; }
.d-eingabe th, .d-eingabe td { padding: 0.25rem 0.6rem; text-align: center; }
.d-eingabe thead th { color: #1f5f74; font-size: 1rem; }
.d-eingabe tbody th { text-align: left; color: #44535a; font-weight: 600; }
.d-eingabe input { font: inherit; font-size: 1.3rem; width: 4.2rem; padding: 0.2rem 0.4rem; text-align: center; border: 2px solid #c7d9df; border-radius: 8px; }
.d-balken { display: flex; flex-direction: column; gap: 1.2rem; padding-top: 1.5rem; }
.d-balken-zeile { display: grid; grid-template-columns: 1fr; gap: 0.3rem; }
.d-balken-label strong { font-size: 1.3rem; }
.d-balken-label span { color: #6b7b82; }
.d-balken-spur { height: 2.4rem; }
.d-balken-fuell { height: 100%; background: #1f5f74; border-radius: 0 4px 4px 0; min-width: 2px; transition: width 0.4s; }
.d-balken-wert { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.d-fazit { font-size: 1.3rem; font-weight: 600; color: #1f5f74; }

/* Abruf-Overlay (Modul 8) – liegt über allem */
.abruf-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(20 32 42 / 0.55);
  animation: d-auf 0.3s ease-out; cursor: pointer;
}
.abruf-karte { background: #fff; border-radius: 24px; padding: 2.5rem 3.5rem; text-align: center; max-width: 80vw; box-shadow: 0 12px 40px rgb(0 0 0 / 0.3); font-size: 1.6rem; }
.abruf-gross { font-size: 5rem; font-weight: 900; color: #c98a00; margin: 0; }
.abruf-info { font-size: 3rem; font-weight: 800; color: #1f5f74; margin: 0.5rem 0 0; }
.abruf-nr { color: #8a979d; font-size: 1rem; }

@media (max-width: 900px) {
  .d-hilfen { grid-template-columns: repeat(2, 1fr); }
  .d-gruppen, .f-zwei, .d-zwei { grid-template-columns: 1fr; }
  .s-buehne { padding: 1rem; }
  body.beamer { overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .d-woerter span.neu, .d-zahl.bloecke span, .abruf-overlay { animation: none; }
  .f-station, .d-balken-fuell { transition: none; }
}

@media print {
  body.beamer .sitzung { display: none; }
}
