/* RTL United, wie auf rtl.de (Regular 400, Bold 700). Dateien von cdn.rtl.de
   (Stand rtl.de 2.244.1, 19.11.2026); Weblizenz fuer diese Domain mit RTL klaeren. */
@font-face {
  font-family: "RTL United";
  src: url("fonts/rtl-united-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RTL United";
  src: url("fonts/rtl-united-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Arial mit den Metriken von RTL United (Werte von rtl.de): kein Springen beim Nachladen */
@font-face {
  font-family: "RTL United Fallback";
  src: local("Arial");
  ascent-override: 98.65%;
  descent-override: 24.61%;
  line-gap-override: 0%;
  size-adjust: 99.95%;
}

:root {
  --font: "RTL United", "RTL United Fallback", Arial, sans-serif;
  --text: #212427;
  --text-muted: #65676d;
  --surface: #ffffff;
  --border: #d4d5d9;
  /* Rot der Pailletten aus dem RTL-Motiv LD_Pailetten.png (Briefing 13.11.2026) */
  --accent: #9e1f38;
  --accent-strong: #7d1629;
  --accent-tint: #fbeef1;
  --accent-ring: rgba(158, 31, 56, .22);
  --error: #c4002b;
  --success: #0b7a3b;
  --radius: 16px;
  --stage: #140608;
  --gap: 16px;
}

* { box-sizing: border-box; }

/* Kein height:100% und kein vh: Der Viewport im iFrame ist die von rtl.de gesetzte Hoehe.
   Inhalte in vh wuerden mitwachsen und die Hoehenmeldung in eine Schleife treiben. */
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
  /* Grundton = dunkler Rand der RTL-Hintergruende; das Bild blendet unten darin aus */
  background-color: var(--stage);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrund aus dem RTL-Briefing: Bühne mit drei Scheinwerfern (Querformat), von RTL gewählt am 23.11.2026.
   Das Bild sitzt oben, ist mindestens so breit wie der iFrame und laeuft nach unten in --stage aus.
   Es ist absolut positioniert und zaehlt daher nicht zur gemeldeten Hoehe (embed.js).
   Die Texte stehen auf eigenen Flaechen (.panel), daher braucht das Bild nur eine leichte Abdunklung. */
.backdrop {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.backdrop img {
  display: block;
  width: 100%;
  height: auto;
  /* Bühne ist 16:9: auf schmalen iFrames sonst nur ein Streifen; min-height + cover schneidet seitlich zu */
  min-height: 900px;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Oben kraeftiger abgedunkelt: Headline und Subline liegen direkt auf den Scheinwerfern (Wunsch RTL, Mail 23.11.2026) */
  background: linear-gradient(rgba(20, 6, 8, .7), rgba(20, 6, 8, .72) 32%, rgba(20, 6, 8, .52) 55%, rgba(20, 6, 8, .78));
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--gap) 8px;
}

/* Let's-Dance-Logo oben mittig (weiss, transparent; siehe index.html) */
.logo { display: flex; justify-content: center; margin: 0 0 22px; }
.logo img {
  display: block;
  width: auto;
  height: clamp(64px, 14vw, 110px);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6));
}

.intro { text-align: center; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }

.headline {
  margin: 0 0 6px;
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.subline {
  max-width: 34em;
  margin: 0 auto 16px;
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 16px rgba(0, 0, 0, .8);
  text-wrap: balance;
}


.explainer {
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.explainer video { display: block; width: 100%; height: 100%; }

/* Texte auf zwei roten Flaechen direkt unter dem Video, in Videobreite (Wunsch RTL, Mail 20.11.2026).
   Hell = Paillettenrot, dunkel = Schattenrot des Hintergrunds; beide mit Weiss > 7:1 Kontrast. */
.copy {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  text-wrap: pretty;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}
.panel { padding: 16px 22px; }
.panel-light { background: var(--accent); }
.panel-dark { background: #4a0d15; padding-bottom: 18px; }
.copy p { margin: 0 0 6px; }
.copy .panel > :last-child { margin-bottom: 0; }
.copy-title { margin: 0 0 4px; font-size: 20px; line-height: 1.2; }
@media (max-width: 480px) {
  .panel { padding: 12px 16px; }
}

.card-title { margin: 0 0 12px; font-size: 22px; line-height: 1.2; text-align: center; }
.card-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 3px;
  background: var(--highlight);
}

.card {
  /* Dunkle Karte in den Farben des Paillettenbilds (gemessen: #190205, #33070d, #5c1019,
     #962a33, Glanzlichter #df636b / #fcb6ba). Die Variablen gelten nur innerhalb der Karte;
     legal.css nutzt weiter die hellen Werte aus :root. */
  --text: #ffffff;
  --text-muted: #e6c3c7;
  --border: rgba(252, 182, 186, .28);
  --field-bg: rgba(255, 255, 255, .06);
  --highlight: #df636b;
  --link: #fcb6ba;
  --accent-ring: rgba(223, 99, 107, .35);
  --error: #ff8f99;
  --success: #7ee2a8;
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(170deg, rgba(92, 16, 25, .92), rgba(51, 7, 13, .94) 45%, rgba(25, 2, 5, .96));
  border-radius: var(--radius);
  padding: 20px 22px 20px;
  box-shadow: 0 0 0 1px rgba(223, 99, 107, .35), 0 18px 48px rgba(0, 0, 0, .55), 0 0 60px rgba(150, 42, 51, .3);
}
.card a { color: var(--link); }
.card a:hover { color: #fff; }
/* Roter Streifen oben, nimmt das Paillettenrot auf */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--highlight) 50%, var(--accent));
}
@media (max-width: 480px) {
  .page { padding-top: 14px; }
  .card { padding: 16px 14px; }
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(223, 99, 107, .55);
  border-radius: 14px;
  background: rgba(150, 42, 51, .18);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.dropzone:hover { border-color: var(--highlight); }
.dropzone.is-dragover { border-color: var(--highlight); background: rgba(150, 42, 51, .35); box-shadow: 0 0 0 4px var(--accent-ring); }
.dropzone.has-file { border-style: solid; border-color: var(--highlight); background: var(--field-bg); }
.dropzone.has-error { border-color: var(--error); }

.dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px 18px;
  cursor: pointer;
  text-align: center;
}
.dropzone.has-file .dropzone-label { display: none; }
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 1px rgba(252, 182, 186, .25);
  transition: transform .15s;
}
.dropzone-label:hover .dropzone-icon { transform: translateY(-2px); }
/* "Video auswählen" als Button-Optik; das ganze Feld bleibt klickbar */
.dropzone-text strong {
  display: inline-block;
  padding: 8px 22px;
  border: 2px solid var(--link);
  border-radius: 999px;
  color: var(--link);
  font-size: 17px;
  transition: background-color .15s, color .15s;
}
.dropzone-label:hover .dropzone-text strong { border-color: var(--accent); background: var(--accent); color: #fff; }
.drag-hint { display: block; margin-top: 4px; }
.drag-hint { color: var(--text-muted); font-size: 14px; }
.dropzone-limits { color: var(--text-muted); font-size: 13px; }
#file:focus-visible + .dropzone-label { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 10px; }

/* Touch-Geraete koennen nicht ziehen: Hinweis ausblenden */
@media (hover: none) { .drag-hint { display: none; } }

.file-info {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-left: 5px solid var(--highlight);
  border-radius: 12px;
}
.file-name { font-weight: 700; overflow-wrap: anywhere; }
.file-meta { color: var(--text-muted); font-size: 14px; }

/* Formular */
.field { margin-top: 12px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.optional { font-weight: 400; color: var(--text-muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field-bg);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--highlight);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
textarea { resize: vertical; }
.field-hint { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }

.consents { border: 0; padding: 0; margin: 14px 0 0; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--highlight); }

.captcha { margin-top: 14px; }
.captcha:empty { display: none; }


a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

.field-error, .form-error { margin: 4px 0 0; color: var(--error); font-size: 14px; }
.field-error:empty, .form-error:empty { display: none; }
.consents .field-error { margin-left: 32px; }

.button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(252, 182, 186, .3);
  transition: background-color .15s, transform .15s;
}
.button:hover { background: #b3283f; transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.button:disabled { opacity: .6; cursor: progress; }

.link-button {
  justify-self: start;
  padding: 0;
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* Upload-Fortschritt */
.progress-title, .done-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transition: width .3s;
}
.progress-meta { margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.progress-hint { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.done-title { color: var(--success); }
.done p { margin: 0 0 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

[hidden] { display: none !important; }

/* Nach dem Absenden: Hoehe halten, Status unten (siehe show() in upload.js) */
.card.is-locked { display: flex; flex-direction: column; justify-content: flex-end; }

/* ------------------------------------------------------------------ Platzhalter
   Markieren Inhalte, die RTL noch liefert. Verschwinden, sobald das Asset da ist
   (Hintergrund, Erklaerfilm) bzw. data-placeholder entfernt wird (Headline, Copy). */
.placeholder-tag,
[data-placeholder]::before {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ffd84d;
  color: #1a1a1a;
  font: 700 11px/1.6 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}
[data-placeholder]::before { content: "Platzhalter: " attr(data-placeholder); }
[data-placeholder] {
  outline: 2px dashed rgba(255, 255, 255, .55);
  outline-offset: 6px;
  border-radius: 4px;
}
/* Inline-Platzhalter im Fliesstext (z. B. Einsendeschluss): markiert statt Etikett */
.placeholder-inline[data-placeholder]::before { content: none; }
.placeholder-inline[data-placeholder] {
  outline: 0;
  padding: 0 4px;
  background: #ffd84d;
  color: #1a1a1a;
  text-shadow: none;
}

.explainer { position: relative; }
.explainer-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .8);
  background: repeating-linear-gradient(135deg, #141414 0 14px, #1d1d1d 14px 28px);
}
.explainer-placeholder .placeholder-tag { margin: 0; }
/* Schmale Breiten: Spalte auf Containerbreite begrenzen, damit das Etikett umbricht */
.explainer-placeholder { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }

/* ------------------------------------------------------------------ Jury
   Gruppenfoto von rtl.de (1536 x 864 px). Gezeigt wird der Ausschnitt x 300-1220, y 20-480:
   die drei Juroren ohne Publikumsrand und ohne die Weihnachtsschleife vorn am Pult.
   Bildbreite = 1536 / 920 = 167 % des Rahmens; Versatz -300/920 bzw. -20/460. */
.jury { margin: 24px 0 20px; color: #fff; text-align: center; }
.jury-title { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.jury-photo {
  position: relative;
  aspect-ratio: 2 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #2a0b10;
  box-shadow: 0 0 0 2px var(--accent), 0 18px 48px rgba(0, 0, 0, .5);
}
.jury-photo img {
  position: absolute;
  left: -32.6%;
  top: -4.3%;
  width: 167%;
  max-width: none;
  height: auto;
}
.jury-credit { margin: 4px 0 0; color: rgba(255, 255, 255, .6); font-size: 12px; }
.jury-names { margin: 8px 0 0; font-weight: 700; font-size: clamp(14px, 2.6vw, 17px); }
