/* Alle Masse sind die Original-Koordinaten der PDF (1920 x 1080).
   Die Buehne wird per JS als Ganzes skaliert - dadurch sieht die Show am
   Beamer und am Handy identisch aus. */

:root {
  --gold: #b99c4e;
  --gold-hell: #d8bd72;
  --blau-dunkel: #0b1622;
}

* { box-sizing: border-box; }

html { background: #06101c; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Barlow Semi Condensed', 'Helvetica Neue', Arial, sans-serif;
}

/* Nur die Show steht fest im Bild, Login und Verwaltung duerfen scrollen.
   position:fixed haelt die 1920px breite Buehne davon ab, am Handy den
   Anzeigebereich aufzublaehen - sonst wird sie aus dem Bild geschoben. */
body.show-body {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ Buehne */
.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  background: #06101c url('../img/bg.jpg') center/cover no-repeat;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
}
.slide.active { display: block; }

.fullpage {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
}

/* ---------------------------------------------------------------- Portrait */
.portrait {
  position: absolute;
  left: 768px;
  top: 51px;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  object-fit: cover;
}

/* ------------------------------------------------- Goldlinien hinter Formen */
.rail {
  position: absolute;
  left: 0;
  width: 1920px;
  height: 5px;
  background: linear-gradient(180deg, #c9ae63, #a98f43 45%, #7d682c);
}
.rail-q  { top: 573.5px; }
.rail-a1 { top: 781.5px; }
.rail-a2 { top: 939.5px; }

/* ------------------------------------------------------ Formen (SVG-Pfade) */
.shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.shape path {
  fill: url(#gBlue);
  stroke: url(#gGold);
  stroke-width: 4.5;
}

/* ------------------------------------------------------------ Frageg-Rahmen */
.frame-q {
  position: absolute;
  left: 133px;
  top: 469px;
  width: 1653px;
  height: 214px;
}

.qtext {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 60px;
}
.qline {
  display: block;
  font-size: 50px;
  line-height: 1.06;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

/* -------------------------------------------------------------- Antworten */
.answer {
  position: absolute;
  width: 789px;
  height: 120px;
}
.answer-a { left: 126px;  top: 724px; }
.answer-b { left: 1004px; top: 724px; }
.answer-c { left: 126px;  top: 882px; }
.answer-d { left: 1004px; top: 882px; }

.diamond {
  position: absolute;
  left: 79px;
  top: 47px;
  width: 26px;
  height: 26px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #d8bd72, #a98f43);
}

.letter,
.atext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 52px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}
.letter { left: 117px; color: #c9a44a; }
.atext  { left: 173px; color: #fff; }

/* Aufloesung: richtige Antwort wird gruen */
.slide-question.revealed .answer.correct .shape path { fill: url(#gGreen); }
.slide-question.revealed .answer.correct .letter { color: #d9e8b0; }

/* ------------------------------------------------------------------ Video */
.slide-video { background: #000; }
.slide-video video {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

/* Die eingebauten Bedienelemente sind aus: sie wuerden mit der Buehne
   mitskaliert und passten dadurch nie zur echten Bildschirmgroesse.
   Stattdessen zeigt dieses Zeichen an, dass das Video steht. */
.pausemark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 34px 46px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 92px;
  line-height: 1;
  letter-spacing: 6px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.slide-video.paused .pausemark { opacity: 0.85; }

/* ------------------------------------------------------------------ Hinweis */
.hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 14px;
  font-size: 14px;
  color: #8ea3b5;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
  transition: opacity 0.4s;
}
.hint a { color: var(--gold-hell); }
.hint b { color: #fff; }
body.idle .hint { opacity: 0; }
body.idle { cursor: none; }

/* Hinweis nur am hochkant gehaltenen Handy */
.rotate-hint { display: none; }
@media (orientation: portrait) and (max-width: 900px) {
  .rotate-hint {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 14%;
    text-align: center;
    font-size: 20px;
    color: var(--gold-hell);
  }
}

/* ------------------------------------------------------- Login / Verwaltung */
.page {
  background: #06101c url('../img/bg.jpg') center/cover fixed no-repeat;
  min-height: 100vh;
  /* Innenabstand statt Aussenabstand der Karte - sonst rutscht der
     Hintergrund durch zusammenfallende Raender nach unten weg. */
  padding: 8vh 16px 40px;
  font-family: 'Barlow Semi Condensed', 'Helvetica Neue', Arial, sans-serif;
}
.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 38px;
  background: rgba(10, 24, 38, 0.88);
  border: 2px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
.card.wide { max-width: 900px; }
.card h1 {
  margin: 0 0 6px;
  font-size: 38px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #fff;
}
.card h2 {
  margin: 28px 0 10px;
  font-size: 24px;
  color: var(--gold-hell);
  font-weight: 600;
}
.card p { color: #b9c8d6; font-size: 19px; line-height: 1.45; }
label { display: block; margin: 16px 0 6px; color: var(--gold-hell); font-size: 18px; }
input[type=text], input[type=password], select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 19px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid #3c556d;
  border-radius: 6px;
}
button, .btn {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 22px;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  color: #16202c;
  background: linear-gradient(180deg, #d8bd72, #a98f43);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
button.ghost {
  background: transparent;
  color: var(--gold-hell);
  border: 1px solid var(--gold);
}
.error {
  margin-top: 16px;
  padding: 10px 13px;
  background: rgba(150, 40, 40, 0.35);
  border: 1px solid #a4494b;
  border-radius: 6px;
  color: #ffd7d7;
}
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 8px 6px; text-align: left; border-bottom: 1px solid #24384c; font-size: 19px; }
th { color: var(--gold-hell); font-weight: 600; }
td code { font-size: 21px; letter-spacing: 3px; color: #fff; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > * { flex: 1; }
.row > button { flex: 0 0 auto; }
.muted { color: #7f93a6; font-size: 16px; }

@media print {
  .page { background: #fff; }
  .card { border: 0; box-shadow: none; background: #fff; }
  .card h1, .card h2, th, td, td code, p { color: #000; }
  .noprint { display: none; }
}
