/* MOON SHOT — Fan-Video-Upload
   Abschnitt #footage in index.html, Logik in js/upload.js.
   Nutzt das Section-Geruest aus layout.css (.block__head, .block__title)
   und die Buttons aus utils.css — hier steht nur, was dieser Abschnitt
   zusaetzlich braucht. */

.footage {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  padding: clamp(72px, 11vh, 150px) var(--gutter) 0;
  max-width: var(--page);
  margin-inline: auto;
}

.footage .block__head {
  margin: 0;
}

/* --- Formular ----------------------------------------------------------- */

.footage__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- Dateiauswahl ------------------------------------------------------- */

.footage__drop {
  border: 1px dashed var(--line-loud);
  background: var(--void-2);
  transition: border-color .25s, background .25s;
}

.footage__drop.is-over {
  border-color: var(--gold);
  background: var(--void-3);
}

/* Das <input type="file"> liegt unsichtbar im Label. So bleibt die Flaeche
   frei gestaltbar, waehrend Klick, Tastatur und Screenreader weiter am
   echten Bedienelement haengen. */
.footage__pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(28px, 5vh, 48px) 24px;
  text-align: center;
  cursor: pointer;
}

.footage__pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Fokus liegt auf dem unsichtbaren Feld — der Ring muss deshalb an der
   sichtbaren Flaeche erscheinen, sonst sieht man beim Tabben nichts. */
.footage__pick:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.footage__pick-main {
  font-family: var(--font-poster);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bone);
}

.footage__pick-sub {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footage__chosen {
  margin: 0;
  padding: 0 24px 16px;
  text-align: center;
  font-size: .8125rem;
  color: var(--gold);
  word-break: break-all;
}

.footage__chosen:empty {
  display: none;
}

/* --- Felder ------------------------------------------------------------- */

.footage__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.footage__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footage__field--wide {
  grid-column: 1 / -1;
}

.footage__field > span {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footage__field i {
  font-style: normal;
  opacity: .6;
}

.footage__field input,
.footage__field select {
  width: 100%;
  padding: 13px 14px;
  background: var(--void-3);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--bone);
  transition: border-color .25s;
}

.footage__field input::placeholder {
  color: rgba(238, 237, 227, .38);
}

.footage__field input:focus,
.footage__field select:focus {
  border-color: var(--line-loud);
}

/* --- Einwilligung ------------------------------------------------------- */

/* Bewusst nicht kleingedruckt: Hier werden Nutzungsrechte eingeraeumt, das
   soll man lesen koennen. Deshalb auch etwas mehr Zeilenabstand als noetig. */
.footage__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--void-2);
  border: 1px solid var(--line);
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--bone-2);
  cursor: pointer;
}

.footage__consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.footage__consent a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footage__consent a:hover {
  color: var(--gold);
}

.footage__submit {
  justify-content: center;
  width: 100%;
}

/* --- Fortschritt -------------------------------------------------------- */

.footage__bar {
  height: 3px;
  background: var(--void-3);
  border: 1px solid var(--line);
  overflow: hidden;
}

.footage__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width .2s linear;
}

.footage__bar-label {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.footage__bar-label:empty {
  display: none;
}

.footage__note {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--bone-2);
}

.footage__note.is-bad {
  color: var(--ember);
}

.footage__note:empty {
  display: none;
}

/* --- Danke -------------------------------------------------------------- */

.footage__done h3 {
  font-family: var(--font-poster);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}

.footage__done h3:focus {
  outline: none;
}

.footage__done p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bone-2);
  margin: 0;
}

.footage [hidden] {
  display: none !important;
}

/* --- Schmal ------------------------------------------------------------- */

@media (max-width: 860px) {
  .footage {
    grid-template-columns: 1fr;
    padding-top: clamp(56px, 8vh, 96px);
  }

  .footage__fields {
    grid-template-columns: 1fr;
  }
}
