:root {
  --tinte: #3E222A;          /* Rosenholz-Tiefe: Schrift */
  --tinte-weich: #6B4852;
  --altrosa: #C98B94;
  --altrosa-tief: #B5606B;
  --pastell: #F6E4E5;
  --pastell-hell: #FBF1F1;
  --ebene: #FEF9F9;          /* leicht rosiges Weiss, nie gelblich */
  --gold: #C9AE7A;           /* nur als Linie */
  --rand: #EBD3D5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--tinte);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.seite { max-width: 40rem; margin: 0 auto; padding: 1.25rem 16px 3rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kopf { text-align: center; padding: 0.75rem 0 0.5rem; }
.name { margin: 0; font: 600 0.85rem/1.2 Georgia, "Times New Roman", serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tinte); }
.linie { height: 1px; background: var(--gold); width: 4.5rem; margin: 0.9rem auto; }
h1 { margin: 0.25rem 0 0.6rem; font: 400 1.75rem/1.25 Georgia, "Times New Roman", serif; color: var(--tinte); }
h2 { margin: 0 0 0.6rem; font: 600 1.05rem/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinte); }
.einleitung { margin: 0 auto; max-width: 32rem; color: var(--tinte-weich); }

.karte {
  background: var(--ebene); border: 1px solid var(--rand); border-top: 1px solid var(--gold);
  border-radius: 14px; padding: 1.1rem 1rem 1.2rem; margin: 1rem 0;
  box-shadow: 0 1px 0 #fff inset, 0 6px 18px -14px rgba(62, 34, 42, .35);
}
.klein { font-size: 0.9rem; color: var(--tinte-weich); margin: 0.6rem 0 0; }
a { color: var(--tinte); text-decoration-color: var(--altrosa-tief); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pflicht { color: var(--tinte-weich); }

.feld { margin-bottom: 0.9rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
input[type=text], input[type=email] {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem; font: inherit; font-size: 16px; color: var(--tinte);
  background: #fff; border: 1px solid var(--altrosa); border-radius: 10px; appearance: none;
}
input:focus-visible, .knopf:focus-visible, .haken input:focus-visible, .option input:focus-visible, .entfernen:focus-visible {
  outline: 3px solid var(--altrosa); outline-offset: 2px;
}
input[aria-invalid=true] { border-color: var(--altrosa-tief); border-width: 2px; background: var(--pastell-hell); }

.feldfehler, .meldung {
  margin: 0.45rem 0 0; padding: 0.55rem 0.75rem; background: var(--pastell); color: var(--tinte);
  border-left: 4px solid var(--altrosa-tief); border-radius: 6px; font-size: 0.95rem;
}
.meldung { margin: 1rem 0; }
.hinweis { text-align: center; }

.knopf {
  display: block; width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem; margin: 0.4rem 0 0;
  font: 600 1.05rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; color: var(--tinte);
  border-radius: 12px; cursor: pointer; border: 1px solid var(--gold);
}
.knopf-haupt { background: #E9C4C8; }
.knopf-haupt:hover { background: #E2B5BA; }
.knopf-hell { background: var(--pastell-hell); border-color: var(--altrosa); }
.knopf[disabled], .knopf.aus { background: var(--pastell-hell); color: var(--tinte-weich); cursor: not-allowed; opacity: .75; }
.unsichtbar-eingabe { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.unsichtbar-eingabe:focus-visible + .knopf { outline: 3px solid var(--altrosa); outline-offset: 2px; }

.liste { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.datei { padding: 0.7rem 0; border-top: 1px solid var(--rand); }
.datei:first-child { border-top: 1px solid var(--gold); }
.datei-kopf { display: flex; gap: 0.5rem; align-items: baseline; justify-content: space-between; }
.datei-name { font-weight: 600; word-break: break-all; font-size: 0.95rem; }
.datei-groesse { font-size: 0.85rem; color: var(--tinte-weich); white-space: nowrap; }
.balken { height: 0.6rem; background: var(--pastell); border-radius: 99px; margin: 0.45rem 0 0.25rem; overflow: hidden; }
.balken > span { display: block; height: 100%; width: 0; background: var(--altrosa); border-radius: 99px; transition: width .25s ease; }
.datei.fertig .balken > span { background: var(--altrosa); }
.datei.fehler .balken > span { background: var(--altrosa-tief); }
.datei-status { font-size: 0.9rem; color: var(--tinte-weich); margin: 0; }
.datei.fehler .datei-status { color: var(--tinte); font-weight: 600; }
.entfernen { background: none; border: 0; color: var(--tinte); font: inherit; font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--altrosa-tief); padding: 0.4rem 0; min-height: 2.75rem; cursor: pointer; }

.haken, .option { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; margin: 0.5rem 0; padding: 0.35rem 0; min-height: 2.75rem; }
.haken input, .option input { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--altrosa-tief); }
fieldset.auswahl { border: 0; border-top: 1px solid var(--gold); margin: 1.1rem 0 0; padding: 0.9rem 0 0; min-width: 0; }
fieldset.auswahl legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }

.absenden { margin-top: 1.25rem; }
.warte { margin: 0.9rem 0 0; padding: 0.7rem 0.8rem; background: var(--pastell); border-radius: 10px; font-weight: 600; text-align: center; }
.punkt { display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.35rem; border-radius: 50%; background: var(--altrosa); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.gesamt { text-align: center; }

.danke { text-align: center; padding: 1.8rem 1rem; }
.danke h2 { font: 400 1.5rem/1.3 Georgia, "Times New Roman", serif; }
.haken-rund { width: 3.4rem; height: 3.4rem; line-height: 3.2rem; margin: 0 auto 0.8rem; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--pastell); font-size: 1.6rem; }
.fuss { text-align: center; margin-top: 2rem; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) { .punkt { animation: none; } .balken > span { transition: none; } }
@media (min-width: 640px) { body { font-size: 18px; } h1 { font-size: 2.1rem; } .karte { padding: 1.4rem 1.5rem; } }
