/* ---------- Corporate Design Universität Paderborn ----------
   Hausfarbe: Ultramarinblau (Pantone 281, wie im Uni-Logo: #00205B) */
:root {
  --papier: #f3f5f9;
  --karte: #ffffff;
  --tinte: #1d2433;
  --tinte-leise: #5d6675;
  --stimme: #00205b;        /* UPB-Ultramarinblau */
  --stimme-hell: #e7ebf3;
  --aufnahme: #c9463d;      /* nur für den Recorder */
  --linie: #d9dee7;
  --fokus: #2f6fdb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.seite {
  max-width: 660px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* ---------- Kopf & Fortschritt ---------- */
.kopf { text-align: center; margin-bottom: 1.25rem; }

.logo {
  display: block;
  margin: .5rem auto 0;
  width: min(240px, 70%);
  height: auto;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin: .75rem 0 1rem;
}

.punkte {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--karte);
  border: 1.5px solid var(--tinte-leise);
  transition: background .2s, border-color .2s;
}

.punkt.fertig { background: var(--tinte-leise); }

.punkt.aktuell {
  background: var(--stimme);
  border-color: var(--stimme);
  transform: scale(1.25);
}

.fortschritt-label {
  font-size: .85rem;
  color: var(--tinte-leise);
  margin: .5rem 0 0;
}

/* ---------- Karte ---------- */
.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(38, 35, 46, .06);
}

h1, h2 {
  /* UPB-Hausschrift FF Meta ist nicht frei verfügbar; serifenlose Systemschrift als Ersatz */
  font-family: inherit;
  font-weight: 700;
  color: var(--stimme);
  line-height: 1.25;
  margin: 0 0 .75rem;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-top: 1.5rem; }

p { margin: 0 0 1rem; }
.leise { color: var(--tinte-leise); font-size: .95rem; }

/* ---------- Formulare ---------- */
label.feld { display: block; font-weight: 600; margin: 1.25rem 0 .4rem; }

input[type="number"], input[type="password"], textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: .65rem .75rem;
  border: 1.5px solid var(--linie);
  border-radius: 10px;
  background: #fff;
}

textarea { min-height: 6.5rem; resize: vertical; }

input:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, .option input:focus-visible + span {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

/* Einwilligung: sichtbare Checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem .9rem;
  border: 1.5px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  margin-top: 1rem;
}

.consent input {
  width: 1.3rem;
  height: 1.3rem;
  margin: .2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--stimme);
  cursor: pointer;
}

/* Auswahl-Optionen als Karten */
.optionen { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 .5rem; }
.optionen.reihe { flex-direction: row; flex-wrap: wrap; }
.optionen.reihe .option { flex: 1 1 8.5rem; text-align: center; }

.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; }

.option span {
  display: block;
  padding: .6rem .9rem;
  border: 1.5px solid var(--linie);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.option input:checked + span {
  border-color: var(--stimme);
  background: var(--stimme-hell);
  font-weight: 600;
}

/* ---------- Buttons & Navigation ---------- */
.nav-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

button, .knopf {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: .65rem 1.4rem;
  cursor: pointer;
  border: 1.5px solid var(--stimme);
  background: var(--stimme);
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

button:disabled { opacity: .45; cursor: not-allowed; }

.zurueck {
  background: transparent;
  color: var(--stimme);
}

.fehler {
  background: #fbecea;
  border: 1px solid #e6b1ac;
  color: #8c2f28;
  border-radius: 10px;
  padding: .6rem .9rem;
}

/* ---------- Eigener Audio-Player (ohne Download/Tempo) ---------- */
.player-rahmen {
  border: 1.5px solid var(--linie);
  border-radius: 12px;
  padding: 1rem;
  background: var(--stimme-hell);
  margin-bottom: 1.25rem;
}

.player-rahmen > p { margin: 0 0 .6rem; font-weight: 600; }

.mini-player {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.mp-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-seek {
  flex: 1;
  accent-color: var(--stimme);
  cursor: pointer;
  min-width: 0;
}

.mp-zeit {
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  color: var(--tinte-leise);
  white-space: nowrap;
}

/* Standard-Player nur im Admin-Bereich */
audio[controls] { width: 100%; margin: .5rem 0 1rem; }

/* ---------- Recorder ---------- */
.recorder {
  text-align: center;
  border: 1.5px dashed var(--linie);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  margin: 1.25rem 0;
}

.rec-knopf {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--aufnahme);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Roter Punkt exakt mittig; während der Aufnahme ein weißes Stopp-Quadrat */
.rec-symbol {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--aufnahme);
  transition: border-radius .15s, background .15s;
}

.rec-knopf.laeuft {
  background: var(--aufnahme);
  animation: puls 1.4s ease-in-out infinite;
}

.rec-knopf.laeuft .rec-symbol {
  background: #fff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
}

@keyframes puls {
  50% { box-shadow: 0 0 0 12px rgba(201, 70, 61, .15); }
}

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

.rec-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.3rem;
  margin: .75rem 0 0;
}

.rec-status { min-height: 1.5rem; margin: .5rem 0 0; }
.rec-status.ok { color: #2e6b3f; font-weight: 600; }

.rec-player-bereich { margin-top: 1rem; }

/* ---------- Danke ---------- */
.danke { text-align: center; padding: 2.5rem 0; }
.danke h1 { font-size: 2rem; }
.danke .note-gross { font-size: 3rem; color: var(--stimme); }

/* ---------- Admin ---------- */
.admin-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.admin-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.admin-aktionen .knopf { font-size: .9rem; padding: .5rem 1rem; }

.tabelle-scroll { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tinte-leise); }
tr:hover td { background: var(--stimme-hell); }
td a { color: var(--stimme); font-weight: 600; text-decoration: none; }

.loeschen-zeile { margin-top: 2rem; text-align: right; }

button.gefahr {
  background: transparent;
  color: #8c2f28;
  border-color: #c9463d;
}

button.gefahr:hover { background: #fbecea; }

dl.detail { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
dl.detail dt { font-weight: 600; color: var(--tinte-leise); }
dl.detail dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .karte { padding: 1.25rem 1rem; }
  dl.detail { grid-template-columns: 1fr; gap: 0 0; }
  dl.detail dd { margin-bottom: .6rem; }
}
