/* Betriebssoftware – schlichtes, responsives Grundlayout */
:root {
  --bg: #f5f4f1; --karte: #fff; --text: #22201c; --leise: #6b665d; --linie: #dcd8cf;
  --akzent: #8a5a2b; --akzent-text: #fff; --ok: #2e7d32; --warn: #b26a00; --fehler: #c62828;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1a18; --karte: #26241f; --text: #ece8e1; --leise: #a39d92; --linie: #3a372f; --akzent: #d39a5e; --akzent-text: #1b1a18; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: var(--akzent); }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }

.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 16px;
        background: var(--karte); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.menue { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.menue a { padding: .35rem .6rem; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.menue a.an, .menue a:hover { background: var(--bg); }
.konto { position: relative; }
.konto summary { cursor: pointer; list-style: none; padding: .35rem .6rem; }
.konto > div { position: absolute; right: 0; z-index: 10; background: var(--karte); border: 1px solid var(--linie);
               border-radius: var(--radius); padding: .5rem; display: grid; gap: .4rem; min-width: 12rem; }
.konto button { width: 100%; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; }
.kacheln { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.leise { color: var(--leise); }
.liste { list-style: none; padding: 0; margin: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); }
.liste li { border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste a { display: block; padding: .75rem 1rem; text-decoration: none; }

input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: .5rem .6rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--bg); }
button { padding: .5rem 1rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--bg); cursor: pointer; }
button.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); margin-top: .5rem; }
label { display: block; }
.formular { display: grid; gap: .8rem; max-width: 640px; }
.formular label { font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
.formular small { color: var(--leise); }
.feld.fehler input, .feld.fehler select { border-color: var(--fehler); }
.errorlist { color: var(--fehler); margin: .2rem 0 0; padding-left: 1rem; }
.anmelden { max-width: 360px; margin: 10vh auto; display: grid; gap: .8rem; }
.anmelden h1 { text-align: center; }

.meldung { padding: .6rem .9rem; border-radius: var(--radius); background: var(--karte); border-left: 4px solid var(--akzent); }
.meldung.success { border-color: var(--ok); }
.meldung.warning { border-color: var(--warn); }
.meldung.error { border-color: var(--fehler); }

.breit { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--karte); }
.tabelle th, .tabelle td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: .85rem; color: var(--leise); }
.suche { display: flex; gap: .5rem; margin-bottom: 1rem; max-width: 480px; }
.blaettern { display: flex; gap: 1rem; justify-content: center; }
.tabelle label { display: flex; gap: .4rem; align-items: baseline; }
