/* Übergabe – ruhig, gut lesbar, ohne externe Schriften. */
:root {
  --akzent: #6b3fa0;
  --akzent-dunkel: #4f2a7a;
  --akzent-hell: #f3eef9;
  --text: #1f1d24;
  --text-leise: #55505e;
  --grund: #faf9fc;
  --karte: #ffffff;
  --rand: #ddd6e8;
  --gut: #1d6b3a;
  --gut-hell: #e6f4ea;
  --warn: #8a5a00;
  --warn-hell: #fff4dc;
  --schlecht: #a3242c;
  --schlecht-hell: #fdecee;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --akzent: #b593e0;
    --akzent-dunkel: #d2bdf0;
    --akzent-hell: #2a2236;
    --text: #ece8f2;
    --text-leise: #b8b0c4;
    --grund: #17141c;
    --karte: #211d28;
    --rand: #3a3347;
    --gut: #8fd4a6;
    --gut-hell: #1b2e22;
    --warn: #f0c46a;
    --warn-hell: #33290f;
    --schlecht: #f19aa0;
    --schlecht-hell: #3a1d21;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { font-size: 106.25%; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--akzent-dunkel); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 1rem; top: 1rem; background: var(--karte); padding: .5rem 1rem; z-index: 10; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kopf { background: var(--karte); border-bottom: 1px solid var(--rand); }
.kopf-innen { max-width: 960px; margin: 0 auto; padding: .6rem 16px; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.marke span { display: flex; flex-direction: column; line-height: 1.2; }
.marke small { color: var(--text-leise); font-size: .8rem; }
.navi { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }

.haupt { max-width: 960px; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.fuss { text-align: center; color: var(--text-leise); font-size: .85rem; padding: 2rem 16px; }
h1 { font-size: 1.6rem; margin: 0 0 .75rem; }
h2 { font-size: 1.2rem; margin: 1.25rem 0 .5rem; }
.klein { font-size: .9rem; color: var(--text-leise); }

.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.schmal { max-width: 560px; }
.mitte { margin-left: auto; margin-right: auto; }
.zeile-titel { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.knopf {
  display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 8px;
  padding: .65rem 1.2rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .knopf { color: #17141c; } }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:disabled { opacity: .6; cursor: wait; }
.knopf-klein { padding: .4rem .8rem; font-size: .95rem; }
.knopf-zweit { background: var(--akzent-hell); color: var(--akzent-dunkel); border: 1px solid var(--rand); }
.knopf-zweit:hover { background: var(--rand); }
.knopf-gefahr { background: var(--schlecht); }
.knopf-gefahr:hover { background: #7d1a21; }
.verweis { background: none; border: 0; color: var(--akzent-dunkel); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.verweis-label { color: var(--akzent-dunkel); text-decoration: underline; cursor: pointer; }

.formular .feld { margin-bottom: 1.1rem; }
.feld label, .beschriftung { display: block; font-weight: 600; margin-bottom: .3rem; }
.pflicht { font-weight: 400; color: var(--text-leise); font-size: .85rem; }
.hilfe { margin: .3rem 0 0; font-size: .85rem; color: var(--text-leise); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--grund);
  border: 1px solid var(--rand); border-radius: 8px; padding: .6rem .7rem;
}
textarea { resize: vertical; font-family: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", monospace; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } }
.haekchen { display: flex; gap: .6rem; align-items: flex-start; }
.haekchen input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--akzent); }
.haekchen label { font-weight: 400; }

.ablage { border: 2px dashed var(--rand); border-radius: var(--radius); padding: 1.25rem; text-align: center; background: var(--grund); }
.ablage.aktiv { border-color: var(--akzent); background: var(--akzent-hell); }
.ablage input[type=file] { max-width: 100%; }
.dateiliste { list-style: none; padding: 0; margin: .5rem 0 0; }
.dateiliste li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--rand); word-break: break-all; }
.dateiliste .summe { font-weight: 600; border-bottom: 0; }
.dateiliste .zu-gross { color: var(--schlecht); }
.fortschritt { display: flex; gap: .75rem; align-items: center; margin: 1rem 0; }
.fortschritt progress { flex: 1; height: 1rem; accent-color: var(--akzent); }

.fehler { background: var(--schlecht-hell); color: var(--schlecht); border: 1px solid var(--schlecht); border-radius: 8px; padding: .75rem 1rem; }
.fehler ul { margin: .25rem 0 0; }
.hinweis.warnung { background: var(--warn-hell); color: var(--warn); padding: .5rem .75rem; border-radius: 8px; }
.erfolg { border-color: var(--gut); background: var(--gut-hell); }

.code-gross, .code-riesig {
  font-family: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", monospace; font-weight: 700;
  letter-spacing: .12em; word-spacing: .4em; color: var(--akzent-dunkel); margin: .5rem 0;
}
.code-gross { font-size: 1.9rem; }
.code-riesig { font-size: clamp(2rem, 9vw, 3.4rem); text-align: center; background: var(--karte); border-radius: var(--radius); padding: .75rem; }

.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.karte-kopf h2 { margin: 0; font-size: 1.2rem; word-break: break-word; }
.karte-kopf h2 a { text-decoration: none; color: var(--text); }
.plakette { flex: none; border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; font-weight: 600; border: 1px solid currentColor; }
.plakette-aktiv { color: var(--gut); background: var(--gut-hell); }
.plakette-verbraucht, .plakette-abgelaufen, .plakette-deaktiviert { color: var(--text-leise); background: var(--grund); }
.plakette-gesperrt { color: var(--schlecht); background: var(--schlecht-hell); }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem 1rem; margin: 1rem 0; }
.eckdaten dt { font-size: .8rem; color: var(--text-leise); }
.eckdaten dd { margin: 0; word-break: break-word; }
.aufklapp { border-top: 1px solid var(--rand); padding: .6rem 0; }
.aufklapp summary { cursor: pointer; font-weight: 600; color: var(--akzent-dunkel); }
.kopierzeile { display: flex; gap: .5rem; flex-wrap: wrap; }
.kopierzeile input { flex: 1 1 260px; font-size: .85rem; }
.protokoll { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .5rem; }
.protokoll th, .protokoll td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--rand); }
.protokoll .art-fehlversuch td, .protokoll .art-gesperrt td { color: var(--schlecht); }
.deaktivieren { margin-top: .75rem; }

.code-eingabe {
  font-family: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", monospace;
  font-size: 2rem !important; letter-spacing: .35em; text-align: center; caret-color: var(--akzent);
  padding: .7rem !important;
}
.stellen { display: flex; justify-content: center; gap: .35rem; margin: .8rem 0 .2rem; }
.stelle { width: 1.1rem; height: .5rem; border-radius: 4px; background: var(--rand); transition: background .15s; }
.stelle.voll { background: var(--akzent); }
.stelle.gruppe-ende { margin-right: .7rem; }
#code-fortschritt { text-align: center; }

.vertraulich {
  white-space: pre-wrap; word-break: break-word; background: var(--grund); border: 1px solid var(--rand);
  border-radius: 8px; padding: 1rem; font-family: ui-monospace, "Cascadia Mono", "DejaVu Sans Mono", monospace; font-size: .95rem;
}
.downloads { list-style: none; padding: 0; }
.downloads li { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.downloads a { word-break: break-all; }

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