/* ---------- Kopffläche (Start) ---------- */
.held {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  background: var(--verlauf);
  border-radius: 10px;
  padding: 40px;
  color: var(--weiss);
  overflow: hidden;
}
.held-text {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.held-zeile {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.held h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 300;
}
.held p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
}
.held-bild {
  flex: 1 1 220px;
  display: flex;
  justify-content: center;
}
/* Unter 1024 px rutscht der große Roboter sonst unter den Text: er steht dann klein oben rechts
   neben dem Titel, darunter kleiner, am Handy entfällt er. */
@media (max-width: 1023px) {
  .held {
    position: relative;
  }
  .held-bild {
    position: absolute;
    top: 32px;
    right: 32px;
  }
  .held-bild svg {
    width: 130px;
    height: auto;
  }
  .held h1 {
    max-width: calc(100% - 150px);
  }
}
@media (max-width: 640px) {
  .held-bild {
    top: 20px;
    right: 16px;
  }
  .held h1 {
    max-width: calc(100% - 92px);
  }
}
/* Am Handy braucht die Überschrift die ganze Breite. */
@media (max-width: 480px) {
  .held-bild {
    display: none;
  }
  .held h1 {
    max-width: none;
  }
}
/* Datenschutz knapp im Kopf: dunklere Fläche, damit Weiß überall gut lesbar bleibt */
.held .held-hinweis {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 0;
  padding: 10px 14px;
  width: fit-content;
  border-radius: 8px;
  background: rgba(14, 74, 96, 0.55);
  font-size: 15px;
  line-height: 1.45;
  max-width: 720px;
}
.held-hinweis svg {
  flex: none;
  margin-top: 1px;
}
.rollen {
  animation: rollen 3.2s var(--bewegung) 1;
}
.blinzeln {
  transform-origin: center;
  transform-box: fill-box;
  animation: blinzeln 4s linear 1;
}
@keyframes rollen {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(14px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes blinzeln {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.1);
  }
}

/* ---------- Eingabefelder ---------- */
.feld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Startschritte: alle gleich gebaut; ein noch nicht erreichter Schritt ist blass. */
.startschritt {
  gap: 12px;
}
/* Überschrift blasser, aber lesbar (BF-01, Kontrast 1.4.3); die Karten bleiben deutlich gesperrt. */
.startschritt-inaktiv .zwischentitel {
  opacity: 0.7;
}
.startschritt-inaktiv .karte {
  opacity: 0.45;
}
.karte:disabled {
  cursor: not-allowed;
  filter: none;
}
/* Roboter, an den dieser Browser nicht senden kann (app.js, geraetPruefen) */
.karte-gesperrt {
  opacity: 0.55;
}
.karte-sperre {
  font-size: 14px;
  font-weight: 700;
  color: var(--anthrazit);
}
/* Ganze Seite gesperrt: nur Meldung und Liste, wo es geht */
.sperre-wo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sperre-kopf {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sperre-einleitung {
  margin: 0;
  font-size: 17px;
}
.sperre-adresse {
  margin: 0;
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-t8);
  color: var(--teal-tief);
  font-weight: 700;
  font-size: 16px;
}
.sperre-karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.sperre-karte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: var(--weiss);
  border: 2px solid var(--warmgrau-40);
  border-radius: 10px;
  box-shadow: var(--schatten);
}
.sperre-karte .karte-text {
  margin: 0;
  flex: 1;
  font-size: 15px;
}
.sperre-karte-nein {
  background: var(--rost-t8);
  border-color: var(--rost);
}
.sperre-karte-nein .kartentitel {
  color: var(--rost);
}
.etikett.etikett-nein {
  color: var(--rost);
  background: var(--weiss);
  border-color: var(--rost);
}
.code-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
}
.code-zeile .eingabe {
  flex: 1 1 240px;
}
.eingabe[readonly] {
  background: var(--teal-t8);
}
.feld-titel {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}
.eingabe,
.textfeld {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--anthrazit);
  background: var(--weiss);
  border: 1px solid var(--warmgrau);
  border-radius: 6px;
}
.textfeld {
  min-height: 150px;
  padding: 14px 16px;
  font-size: 18px;
  line-height: 1.55;
  resize: vertical;
}
.eingabe::placeholder,
.textfeld::placeholder {
  color: var(--warmgrau-text);
  opacity: 1;
}
.eingabe:focus,
.textfeld:focus {
  border-color: var(--teal);
}
.eingabe[aria-invalid="true"] {
  border-color: var(--rost);
}
.feld .meldung {
  margin-top: 8px;
}
.eingabe:focus-visible,
.textfeld:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 2px;
}
.zaehler {
  font-size: 14px;
  color: var(--warmgrau-text);
  align-self: flex-end;
}
.zaehler-voll {
  color: var(--rost);
  font-weight: 700;
}
