:root {
  --gruen: #6B7A3E;
  --bordeaux: #A04050;
  --gold: #B8924A;
  --blau: #1E3560;
  --text: #24231f;
  --leise: #6b6a64;
  --linie: #e4e1da;
  --flaeche: #ffffff;
  --grund: #f7f5f0;
  --gut: #4f6b2a;
  --schlecht: #a33a3a;
  --raster: #ece9e2;
  --achse: #c9c5bb;
  --gedaempft: #cdc8bd;
  --radius: 8px;
  --schrift: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.45; }
.wm { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; display: flex; flex-direction: column; gap: 32px; }
h1 { font-weight: 400; font-size: 34px; margin: 0; letter-spacing: .01em; }
h2 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.dachzeile { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--bordeaux); font-weight: 600; }
.kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.nutzer { font-size: 13px; color: var(--leise); }
.fazit { margin: 10px 0 0; font-size: 17px; }
.hint { margin: 0 0 12px; color: var(--leise); font-size: 13px; }
.fehlerbox { margin: 0; padding: 12px 16px; border-radius: var(--radius); background: #f8e7e7; color: var(--schlecht); }
.filter { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.filter.eng { margin: 0 0 8px; }
.filter label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--leise); }
select, input { font: inherit; font-size: 15px; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 6px 10px; min-width: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.karte:first-child { border-top: 3px solid var(--bordeaux); }
.lbl { font-size: 13px; color: var(--leise); }
.gross { font-size: 32px; font-variant-numeric: tabular-nums; margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.auf { color: var(--gut); font-weight: 600; }
.ab { color: var(--schlecht); font-weight: 600; }
.chart { position: relative; min-height: 290px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 14px 6px; }
.chart svg { display: block; overflow: visible; }
.achse text { fill: var(--leise); font-size: 12px; font-family: var(--schrift); }
.achse .domain { stroke: var(--achse); }
.legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--leise); margin-bottom: 8px; }
.legende .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.meldung { color: var(--leise); margin: 0; padding: 18px 0; }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--linie); box-shadow: 0 4px 14px rgba(0,0,0,.12); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; color: var(--leise); white-space: nowrap; opacity: 0; z-index: 2; }
.tip .kopf { color: var(--text); font-weight: 600; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.tabwrap { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--linie); text-align: right; white-space: nowrap; }
th { color: var(--leise); font-weight: 600; font-size: 13px; }
th:first-child, td:first-child, .txt { text-align: left; }
td.txt { white-space: normal; }
tbody tr:last-child td { border-bottom: 0; }
body.schreiber tbody tr.klick { cursor: pointer; }
body.schreiber tbody tr.klick:hover { background: var(--grund); }
body:not(.schreiber) .nurschreiber { display: none; }
.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; }
.formular label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--leise); }
.formular .breit { grid-column: 1 / -1; }
.aktionen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { font: inherit; font-size: 15px; border-radius: var(--radius); padding: 8px 18px; border: 1px solid var(--bordeaux); background: var(--bordeaux); color: #fff; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--linie); }
.btn.klein { font-size: 13px; padding: 5px 12px; }
.btn:disabled { opacity: .6; cursor: wait; }
.ok { color: var(--gut); font-size: 13px; }
.err { color: var(--schlecht); font-size: 13px; }
details summary { cursor: pointer; color: var(--leise); font-size: 13px; }
details p { font-size: 13px; color: var(--leise); }
@media (max-width: 520px) { h1 { font-size: 28px; } .gross { font-size: 26px; } .wm { padding: 16px 12px 48px; } }
