:root {
  --bg: #f4f5f7; --karte: #fff; --text: #1b1f24; --leise: #5b6572; --linie: #d8dde3;
  --akzent: #1f5fd1; --akzent-text: #fff; --gefahr: #b3261e;
  --ok: #1e7a3c; --warn: #8a5a00; --fehler: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151a; --karte: #1b2027; --text: #e8ebef; --leise: #9aa5b1; --linie: #2f3742;
    --akzent: #6ea1ff; --akzent-text: #0b1220; --gefahr: #ff8a80;
    --ok: #6fd38e; --warn: #f0c36a; --fehler: #ff8a80;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--akzent); }
code { font-size: .9em; word-break: break-all; }
h1 { font-size: 1.5rem; margin: .2em 0 .6em; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.leise { color: var(--leise); }

.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .6rem 16px; background: var(--karte); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.menue { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.menue a { text-decoration: none; padding: .5rem 0; }
.menue form { margin: 0; }

.inhalt { max-width: 56rem; margin: 0 auto; padding: 16px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.schmal { max-width: 30rem; }

.knopf { display: inline-block; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--akzent); border-radius: 8px; background: var(--akzent); color: var(--akzent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.knopf.klein { min-height: 44px; padding: .4rem .8rem; }
.knopf.leise { background: transparent; color: var(--text); border-color: var(--linie); }
.knopf.gefahr { background: transparent; color: var(--gefahr); border-color: var(--gefahr); }
.knopf:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

.feld { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.feld label { font-weight: 600; }
.feld small { color: var(--leise); }
.feld .fehlertext, .fehler small.fehlertext { color: var(--fehler); }
.feld.fehler input { border-color: var(--fehler); }
.haken { display: flex; align-items: center; gap: .6rem; font-weight: 600; min-height: 44px; }
.haken input { width: 22px; height: 22px; }
input[type=text], input[type=password], input[type=email], select { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }

.hinweis { padding: .7rem 1rem; border-radius: 8px; border: 1px solid var(--linie); background: var(--karte); margin: 0 0 12px; }
.hinweis.success { border-color: var(--ok); }
.hinweis.warning { border-color: var(--warn); }
.hinweis.error { border-color: var(--fehler); color: var(--fehler); }

.kacheln { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; display: flex; flex-direction: column; }
.kachel.inaktiv { opacity: .7; }
.kachel-link { display: flex; flex-direction: column; gap: .4rem; padding: 16px; text-decoration: none; color: var(--text); flex: 1; min-height: 44px; }
.kachel-link:hover .kachel-name { text-decoration: underline; }
.kachel-name { font-size: 1.2rem; font-weight: 700; }
.kachel-text { color: var(--leise); }
.kachel-fuss { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; padding-top: .5rem; }
.oeffnen { margin-left: auto; color: var(--akzent); font-weight: 600; }
.details { display: block; padding: .7rem 16px; border-top: 1px solid var(--linie); font-size: .9rem; min-height: 44px; }

.marke-rolle { font-size: .8rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--linie); color: var(--leise); }
.marke-rolle.admin { border-color: var(--akzent); color: var(--akzent); }
.marke-rolle.entwickler { border-color: var(--ok); color: var(--ok); }
.marke-rolle.inaktiv { border-color: var(--warn); color: var(--warn); }

.liste { list-style: none; padding: 0; margin: 0; }
.liste.karte { padding: 4px 16px; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.zeile:last-child { border-bottom: 0; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
form.inline select { width: auto; }
form.reihe { display: flex; flex-wrap: wrap; gap: .6rem; }
form.reihe select { flex: 1 1 10rem; width: auto; }
.rechte { list-style: none; padding: 0; margin: 0 0 .6rem; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; }
@media (max-width: 480px) { .daten { grid-template-columns: 1fr; } .daten dd { margin-bottom: .4rem; } }

/* Plattform (docs/06) */
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gruppe { border: 0; padding: 0; margin: 0; }
.gruppe legend { font-weight: 600; padding: 0; }
.gruppe .haken { font-weight: 400; }
textarea, input[type=number], input[type=email] { width: 100%; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
textarea { min-height: 8rem; }
form.inline input[type=text] { width: auto; flex: 1 1 10rem; }
.mailtext { white-space: pre-wrap; word-break: break-word; font: inherit; margin: 0; }
.fliesstext { white-space: pre-wrap; }
.fortschritt { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; }
.fortschritt li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; color: var(--leise); }
.fortschritt .schritt-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--linie); display: grid; place-items: center; font-weight: 700; }
.fortschritt .erledigt { color: var(--text); }
.fortschritt .erledigt .schritt-icon { border-color: var(--ok); color: var(--ok); }
.fortschritt .naechster { color: var(--text); font-weight: 600; }
.fortschritt .naechster .schritt-icon { border-color: var(--akzent); color: var(--akzent); }
@media (max-width: 640px) {
  .fortschritt { flex-direction: column; }
  .fortschritt li { flex-direction: row; text-align: left; }
  .fortschritt li .knopf { margin-left: auto; }
}
.app-kopf { display: flex; align-items: center; gap: .6rem; }
.app-icon { width: 2rem; height: 2rem; flex: none; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.einheiten { display: flex; flex-wrap: wrap; gap: .3rem; }
.zuteilung { text-align: center; }
.gross-icon { font-size: 2.5rem; }
.angebot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linie); }
.vorher { color: var(--leise); margin-right: .3rem; }
.haken input:disabled + span { color: var(--leise); }
#angebot[aria-busy="true"] { opacity: .6; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.anbieter { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--linie); }
.anbieter .knopf { display: block; margin: 0 0 8px; text-align: center; }
