/* Schlank und selbst-enthalten, kein CDN (core/sicherheit/eigene-anwendungen.md).
   Farben aus Peters CI: Plum #4a3e53, Rot #cf3425, Gold #f0bf57, Grün #466624. */
:root {
  --plum: #4a3e53;
  --rot: #cf3425;
  --gold: #f0bf57;
  --gruen: #466624;
  --papier: #f7f5f3;
  --linie: #d8d2cc;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  max-width: 46rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: #141414;
  background: var(--papier);
}

body.schmal { max-width: 22rem; }

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--plum);
  margin-bottom: 1.5rem;
}

h1 { font-size: 1.4rem; color: var(--plum); margin: 0 0 .6rem; }
h2 { font-size: 1rem; margin: 0 0 .5rem; }

.kasten {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.gate { border-left: 4px solid var(--gold); }

.zeile {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

label { display: block; font-size: .85rem; color: #555; margin-bottom: .25rem; }
.zeile label { margin: 0; }

input[type="text"], input:not([type]), input[type="password"], select {
  width: 100%;
  padding: .5rem;
  font: inherit;
  border: 1px solid var(--linie);
  border-radius: 4px;
  background: #fff;
}

input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex: none; }
input[type="range"] { flex: 1; }

button {
  font: inherit;
  padding: .5rem 1rem;
  border: 1px solid var(--plum);
  border-radius: 4px;
  background: var(--plum);
  color: #fff;
  cursor: pointer;
}

button:hover { background: #5d4f68; }
button:disabled { background: #b5aeba; border-color: #b5aeba; cursor: not-allowed; }
button.gross { min-width: 11rem; font-weight: 600; }
button.leise { background: none; color: var(--plum); border-color: var(--linie); }

.stand {
  font-size: .85rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.stand.an { background: var(--gruen); color: #fff; }
.stand.aus { background: #e4e0dc; color: #555; }

.pegel {
  height: .6rem;
  background: #e4e0dc;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .75rem;
}

.pegel > div { height: 100%; width: 0; background: var(--gruen); transition: width .1s linear; }

.hinweis { font-size: .85rem; color: #555; margin: .4rem 0 0; }
.fehler { color: var(--rot); font-weight: 600; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--linie); }
code { background: #ece8e4; padding: .1rem .3rem; border-radius: 3px; font-size: .85em; }
a { color: var(--plum); }
