/* Farben und Schrift aus dem Manege-Video: Montserrat, Dunkelgrau mit Gelb, Orange und Türkis */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("schriften/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("schriften/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("schriften/Montserrat-Bold.woff2") format("woff2"); }

:root {
  --gelb: #ffaa01;
  --orange: #ff6002;
  --tuerkis: #14abbc;
  --grund: #272526;
  --karte: #3b393a;
  --feld: #2f2d2e;
  --text: #ffffff;
  --leise: #c9c6c7;
  --dunkel: #1d1b1c;
  --rand: #555253;
  --fokus: #14abbc;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 17px/1.45 "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header, main { max-width: 640px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 16px; }
header img { width: 52px; height: 52px; padding: 3px; border-radius: 50%; background: var(--gelb); }
header h1 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.marke { margin: 0; color: var(--gelb); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }

.karte {
  background: var(--karte);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}
.karte > h2 { color: var(--text); }
.karte > h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--gelb);
}

h2 { font-size: 1.15rem; margin: 0 0 12px; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
summary h2 { display: inline; margin: 0; }
strong { color: var(--gelb); }

label { display: block; margin: 12px 0 4px; font-weight: 600; }
textarea, input[type=password] {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--rand);
  border-radius: 10px;
  background: var(--feld);
  color: var(--text);
}

button, .knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  margin-top: 12px;
  border: 0;
  border-radius: 22px;
  background: var(--gelb);
  color: var(--dunkel);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .knopf:hover { background: #ffbb33; }
button:disabled { opacity: 0.5; cursor: wait; }
button.leise { background: transparent; color: var(--text); border: 2px solid var(--tuerkis); }
button.leise:hover { background: rgba(20, 171, 188, 0.18); }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

#film {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  margin-top: 12px;
}

.regler input { width: 100%; min-height: 44px; accent-color: var(--gelb); }
progress { width: 100%; height: 10px; margin-top: 8px; accent-color: var(--tuerkis); }

.hinweis, .meldung { color: var(--leise); font-size: 0.95rem; }
.haken { display: flex; gap: 10px; font-weight: 400; }
.haken input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--gelb); }

/* Anmeldung: Titelbild des Videos („DIE MANEGE“) als Bühne, Karte im unteren Drittel */
.anmeldung {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--gelb);
}
.anmeldung-buehne {
  position: relative;
  height: 100dvh;
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  background: url("bilder/anmeldung.jpg") center / cover no-repeat;
}
.anmeldung-karte {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  padding: 20px;
  border-radius: 20px;
  background: var(--karte);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.anmeldung-karte h1 { margin: 2px 0 8px; font-size: 1.5rem; line-height: 1.2; }
.anmeldung-karte button { width: 100%; }

/* Bühne: Probebild mit antippbaren Flächen */
.angebot .reiter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.reiter-knopf { margin-top: 0; padding: 0 16px; }
.reiter-knopf[aria-pressed="false"] { background: transparent; color: var(--text); border: 2px solid var(--rand); }
.buehne {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.buehne .probe { display: block; width: 100%; height: 100%; object-fit: cover; }
.flaeche {
  position: absolute;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border-radius: 6px;
}
.flaeche:hover { background: transparent; }
.flaeche.text {
  z-index: 2;
  outline: 2px dashed rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
  /* dunkler Saum: Rahmen auf hellen wie dunklen Flächen sichtbar */
  box-shadow: inset 0 0 0 3px rgba(29, 27, 28, 0.45), 0 0 0 1px rgba(29, 27, 28, 0.45);
}
.probe:not([src]) { visibility: hidden; }
.flaeche.text:hover, .flaeche.text:focus-visible { background: rgba(255, 170, 1, 0.25); outline-color: var(--gelb); }
.flaeche.video { z-index: 1; align-items: flex-start; padding-top: 22%; }
.flaeche.video span {
  background: rgba(29, 27, 28, 0.75);
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 20px;
}
.flaeche.video:hover span, .flaeche.video:focus-visible span { background: var(--gelb); color: var(--dunkel); }
.editor {
  position: absolute;
  left: 4%;
  right: 4%;
  z-index: 3;
  padding: 12px;
  background: var(--karte);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.editor label { margin-top: 0; }
.editor button { margin-top: 8px; }
.laedt {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(29, 27, 28, 0.75);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 12px;
}
.szene-wahl { max-width: 420px; margin: 0 auto; }
.angebot .entfernen { display: flex; margin: 8px auto 0; }
.quelle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.steuerung { position: relative; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
