/* Coaching-Live — ApoTune-Consulting-Designsystem (Konzept §11)
   Tokens: Charcoal #2B383E · Lime #92EB28 · Arial */
:root {
  --charcoal: #2B383E;
  --charcoal-hell: #3D4E56;
  --charcoal-dunkel: #1E282D;
  --lime: #92EB28;
  --lime-dunkel: #7BC91E;   /* exakt aus dem ApoTune-Design-System (Hover/Press auf Lime) */
  --flaeche: #F4F6F5;
  --karte: #FFFFFF;
  --linie: #DCE3E1;
  --text: #2B383E;
  --text-schwach: #6B7A80;
  --warn: #E05A3A;
  --radius: 12px;
  --schatten: 0 2px 10px rgba(43,56,62,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--flaeche);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: .3em 0; }
.schwach { color: var(--text-schwach); font-size: .9rem; }

/* Kopfleiste */
.topbar {
  background: var(--charcoal);
  color: #fff;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-bottom: 4px solid var(--lime);
}
.topbar .marke { font-weight: bold; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.topbar a.marke:hover { opacity: .85; }
.topbar .marke .apo-logo { height: 30px; width: auto; display: block; }
.topbar .marke .trenner { width: 1px; height: 24px; background: rgba(255,255,255,.28); }
.topbar .marke .wort { font-weight: bold; }
.topbar .marke .wort span { color: var(--lime); }
.topbar .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Karten */
.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 18px;
  margin-bottom: 16px;
}
.karten-reihe { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Buttons — große Touch-Flächen (Teilnehmer!) */
button, .btn {
  font-family: inherit; font-size: 1rem;
  border: none; border-radius: 10px;
  padding: 12px 18px; cursor: pointer;
  background: var(--charcoal); color: #fff;
  min-height: 48px;
  /* Bewegung nach ApoTune-Design-System: ruhig, funktional */
  transition: background .16s cubic-bezier(.2,.6,.2,1), transform .08s, box-shadow .16s;
}
/* Hover/Press exakt nach Design-System: Charcoal -> #1E282D, Lime -> #7BC91E,
   Druck = 1px-Nudge nach unten, Lime-Fokusring. Kein brightness-Filter mehr. */
button:hover, .btn:hover { background: var(--charcoal-dunkel); }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(146,235,40,.55); }
button:disabled { opacity: .45; cursor: default; transform: none; }
.btn-lime { background: var(--lime); color: var(--charcoal); font-weight: bold; }
.btn-lime:hover { background: var(--lime-dunkel); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn-ghost:hover { background: var(--flaeche); }
.btn-warn { background: var(--warn); }
.btn-warn:hover { background: #C24328; }
.btn-klein { min-height: 36px; padding: 6px 12px; font-size: .88rem; }

/* Akzentlinie unter Seitentiteln (Lime-Strich wie auf Homepage/Broschüre) */
.akzent-linie { width: 64px; height: 4px; background: var(--lime); border-radius: 2px; margin: 6px 0 16px; }

/* Fortschrittsleiste auf dem Teilnehmergerät: „Baustein x von y" — Orientierung */
.fortschritt-leiste { max-width: 1200px; margin: 0 auto; padding: 8px 20px 0; }
.fortschritt-leiste .zeile { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-schwach); margin-bottom: 4px; }
.fortschritt-leiste .spur { background: var(--linie); border-radius: 6px; height: 6px; overflow: hidden; }
.fortschritt-leiste .fuellung { background: var(--lime); height: 100%; border-radius: 6px; transition: width .4s; }

input[type=text], input[type=number], textarea, select {
  font-family: inherit; font-size: 1rem;
  padding: 11px 12px; border: 1.5px solid var(--linie); border-radius: 10px;
  width: 100%; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--lime); border-color: var(--lime-dunkel); }
label { font-weight: bold; font-size: .9rem; display: block; margin: 10px 0 4px; }

/* Statuspunkte & Chips */
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: bold;
  background: var(--linie); color: var(--charcoal);
}
.chip.live { background: var(--lime); }
.chip.laufend { background: var(--lime); }
.chip.beendet, .chip.fertig { background: var(--charcoal); color: #fff; }
.chip.gewertet { background: var(--lime-dunkel); color: #fff; }

/* Tabellen (Stations-Board) */
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; font-size: .92rem; }
th { background: var(--charcoal); color: #fff; }
tr:nth-child(even) td { background: #FAFBFB; }

/* Balken für Auswertungen */
.balken-zeile { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.balken-label { flex: 0 0 200px; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken-spur { flex: 1; background: var(--linie); border-radius: 6px; height: 22px; overflow: hidden; }
.balken { background: var(--lime); height: 100%; border-radius: 6px; min-width: 2px; transition: width .4s; }
.balken-wert { flex: 0 0 44px; font-weight: bold; text-align: right; }

/* ==== Beamer-Ansicht: dunkel, groß, aus 6 m lesbar ==== */
body.beamer {
  background: var(--charcoal-dunkel);
  color: #fff;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body.beamer .buehne {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4vh 5vw; text-align: center; position: relative; overflow: hidden;
}
/* ApoTune-Bildmarke als dezentes Wasserzeichen (~6 %) unten rechts auf der Charcoal-Fläche */
body.beamer .buehne::before {
  content: ""; position: absolute; right: -3vw; bottom: -3vh;
  width: 30vw; height: 30vw;
  background: url("assets/apotune-icon-weiss.png") no-repeat center/contain;
  opacity: .06; pointer-events: none; z-index: 0;
}
body.beamer .buehne > * { position: relative; z-index: 1; }
/* Kicker im Webinar-Folien-Stil: Versalien, gesperrt, darunter Lime-Linie */
body.beamer .kicker { font-size: 1.4vw; letter-spacing: .32em; text-transform: uppercase; color: var(--lime); font-weight: bold; margin-bottom: 1vh; }
body.beamer .kicker-linie { width: 7vw; height: .5vh; background: var(--lime); border-radius: 3px; margin: 1.4vh auto 2vh; }
body.beamer h1 { font-size: 4.2vw; }
body.beamer h2 { font-size: 2.8vw; color: var(--lime); }
body.beamer .join-code { font-size: 9vw; font-weight: bold; letter-spacing: .14em; color: var(--lime); }
body.beamer .join-url { font-size: 3vw; color: #fff; }
body.beamer .qr-box { background: #fff; border-radius: 16px; padding: 1.4vw; display: inline-block; }
body.beamer .qr-box img, body.beamer .qr-box svg { width: 22vw; height: 22vw; display: block; }
body.beamer .balken-label { flex-basis: 26vw; font-size: 1.8vw; }
body.beamer .balken-spur { height: 3.2vw; }
body.beamer .balken-wert { font-size: 1.8vw; flex-basis: 6vw; }
body.beamer table { font-size: 1.6vw; }
body.beamer th, body.beamer td { border-color: var(--charcoal-hell); padding: .7vw 1vw; }
body.beamer tr:nth-child(even) td { background: transparent; }
body.beamer .gross { font-size: 7vw; font-weight: bold; color: var(--lime); }
body.beamer .wolke span { display: inline-block; margin: .4vw .9vw; color: #fff; }
body.beamer .wolke .top { color: var(--lime); }

/* Siegerehrung */
.podest { display: flex; align-items: flex-end; justify-content: center; gap: 2vw; margin-top: 3vh; }
.podest .platz { background: var(--charcoal-hell); border-radius: 12px 12px 0 0; padding: 1.5vw; width: 18vw; }
.podest .platz .team { font-size: 2vw; font-weight: bold; }
.podest .platz .pkt { font-size: 1.6vw; color: var(--lime); }
.podest .p1 { border-top: 6px solid var(--lime); min-height: 16vw; }
.podest .p2 { min-height: 11vw; }
.podest .p3 { min-height: 8vw; }

/* ==== Teilnehmer-Ansicht: mobil zuerst ==== */
body.teilnehmer { max-width: 560px; margin: 0 auto; background: var(--flaeche); }
body.teilnehmer .wrap { padding: 14px; }
body.teilnehmer h1 { font-size: 1.25rem; }
.antwort-skala { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.antwort-skala button { flex: 1 0 44px; min-width: 44px; font-size: 1.2rem; background: #fff; color: var(--charcoal); border: 2px solid var(--linie); }
.antwort-skala button.gewaehlt { background: var(--lime); border-color: var(--lime-dunkel); font-weight: bold; }
.antwort-emoji button { font-size: 2rem; padding: 8px 14px; }
.timer-gross { font-size: 3.4rem; font-weight: bold; text-align: center; letter-spacing: .05em; margin: 12px 0; }
.hinweis {
  background: #EEF7E2; border: 1px solid var(--lime-dunkel);
  border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin: 10px 0;
}

.liste-eintrag { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--linie); }
.liste-eintrag:last-child { border-bottom: none; }
.liste-eintrag .haupt { flex: 1; }

.modal-hintergrund { position: fixed; inset: 0; background: rgba(30,40,45,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); padding: 20px; max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; }

@media (max-width: 700px) {
  .balken-label { flex-basis: 120px; }
  .wrap { padding: 12px; }
}
