/* Schlichte Oberfläche, hell und dunkel je nach Systemeinstellung. */
:root {
  --grund: #f6f6f4; --karte: #ffffff; --text: #1d1d1b; --leise: #6b6b66; --rand: #dcdcd7;
  --akzent: #2f6fdb; --akzent-text: #ffffff; --gefahr: #c4331f; --ok: #2e7d32; --warn: #b26a00;
  --hinweis-ok: #e5f4e6; --hinweis-fehler: #fbe5e1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #161615; --karte: #1f1f1d; --text: #ecece8; --leise: #9c9c95; --rand: #343430;
    --akzent: #6d9cf0; --akzent-text: #101010; --gefahr: #ef6a55; --ok: #7bc47f; --warn: #e0a54a;
    --hinweis-ok: #1f2f20; --hinweis-fehler: #3a1f1a;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--rand); background: var(--karte); flex-wrap: wrap; }
.marke { font-weight: 600; text-decoration: none; color: var(--text); }
.marke small { color: var(--leise); font-weight: 400; margin-left: .5rem; }
nav { display: flex; align-items: center; gap: 1rem; }
nav a { color: var(--text); text-decoration: none; }
nav .wer { color: var(--leise); }
main { max-width: 64rem; margin: 0 auto; padding: 1.2rem; }
h1 { font-size: 1.4rem; margin: 0 0 .8rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--grund); padding: .05em .3em; border-radius: 3px; }
a { color: var(--akzent); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; padding: 1.2rem; margin-bottom: 1.2rem; }
.schmal { max-width: 26rem; margin: 3rem auto; }
.hinweis { padding: .7rem 1rem; border-radius: 6px; margin: 0 0 1rem; }
.hinweis.ok { background: var(--hinweis-ok); color: var(--ok); }
.hinweis.fehler { background: var(--hinweis-fehler); color: var(--gefahr); }
.warn { color: var(--warn); font-style: normal; }
.klein { color: var(--leise); font-size: .9em; }
label { display: block; margin: .6rem 0; }
label > input:not([type=radio]):not([type=checkbox]), .zeile > input:not([type=checkbox]) { display: block; width: 100%; margin-top: .25rem; }
label.zeile { display: flex; gap: .5rem; align-items: center; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  padding: .45rem .6rem; border: 1px solid var(--rand); border-radius: 5px; background: var(--grund); color: var(--text); font: inherit; width: 100%;
}
input:disabled { opacity: .5; }
button, .knopf {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--akzent); border-radius: 5px;
  background: var(--akzent); color: var(--akzent-text); font: inherit; cursor: pointer; text-decoration: none; line-height: 1.3;
}
button.leise { background: transparent; color: var(--text); border-color: var(--rand); }
button.gefahr { background: var(--gefahr); border-color: var(--gefahr); color: #fff; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; }
.knoepfe form { margin: 0; }
.knoepfe.klein button, .knoepfe.klein .knopf { padding: .25rem .6rem; font-size: .9em; }
nav form { margin: 0; }
.stapel > button { margin-top: .8rem; }
.zeile { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.zeile > input[type=email] { flex: 1; min-width: 14rem; width: auto; }
dl.fakten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.fakten dt { color: var(--leise); }
dl.fakten dd { margin: 0; }
.punkt { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--leise); vertical-align: middle; margin-right: .2em; }
.punkt.gruen { background: var(--ok); }
.punkt.gelb { background: var(--warn); }
.erweitert { border: 1px solid var(--rand); border-radius: 6px; padding: .6rem 1rem; margin: .6rem 0 0; }
details.erweitert-auf { margin: .8rem 0 0; }
details.erweitert-auf > summary { cursor: pointer; color: var(--leise); padding: .3rem 0; }
details.erweitert-auf[open] > summary { color: var(--text); }
.balken { height: .5rem; border-radius: 999px; background: var(--rand); margin-top: .35rem; max-width: 22rem; overflow: hidden; }
.balken > span { display: block; height: 100%; background: var(--ok); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
th { color: var(--leise); font-weight: 500; }
input.link { width: 100%; min-width: 18rem; font-family: ui-monospace, Menlo, monospace; font-size: .85em; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
select { padding: .45rem .6rem; border: 1px solid var(--rand); border-radius: 5px; background: var(--grund); color: var(--text); font: inherit; width: 100%; margin-top: .25rem; }
.arbeitsplatz h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.arbeitsplatz h2 a { text-decoration: none; }
.knopf.leise { background: transparent; color: var(--text); border-color: var(--rand); }
table.zahlen td:not(:first-child) { text-align: right; white-space: nowrap; }
table.zahlen th:not(:first-child) { text-align: right; }
tr.nutzer th { padding-top: 1rem; color: var(--text); font-weight: 600; border-bottom: 2px solid var(--rand); }
tr.summe td { color: var(--leise); font-style: italic; }
.modelle-stand { display: block; margin-top: .4rem; }
dialog { border: 1px solid var(--rand); border-radius: 8px; background: var(--karte); color: var(--text); padding: 1.2rem; max-width: 30rem; }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog form { margin: 0; }
