:root {
  --flaeche: #f6f4ef;
  --karte: #ffffff;
  --text: #1c1c1a;
  --text-2: #4d4d48;
  --text-3: #6b6b65;
  --linie: #e6e3dc;
  --linie-2: #d6d2c8;
  --gruen: #1b5441;
  --gruen-hell: #e4efe9;
  --gruen-text: #174837;
  --warn: #8a5a00;
  --warn-hell: #fbf1dc;
  --rot: #a3291f;
  --rot-hell: #fbe9e7;
  --radius: 10px;
  --schrift: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --flaeche: #161614;
    --karte: #1f1f1c;
    --text: #efeee9;
    --text-2: #c9c7bf;
    --text-3: #a3a19a;
    --linie: #2f2e2a;
    --linie-2: #3d3c37;
    --gruen: #3f9a78;
    --gruen-hell: #1d3229;
    --gruen-text: #9fd6bf;
    --warn: #e7b85c;
    --warn-hell: #33291a;
    --rot: #f08b80;
    --rot-hell: #3a1f1c;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--flaeche); color: var(--text); font: 16px/1.55 var(--schrift); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--gruen-text); }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 960px; width: 100%; margin: 0 auto; padding: 20px 20px 0; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.marke img { border-radius: 7px; }
.zusatz { color: var(--text-3); font-weight: 400; }
#kopf-rechts { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.inhalt { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 32px 20px 48px; }
.fuss { max-width: 960px; width: 100%; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--linie); }
.fuss a { color: var(--text-3); }

.schmal { max-width: 420px; margin: 24px auto 0; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 0 0 4px; font-weight: 600; }
.unter { color: var(--text-2); margin: 0 0 24px; }
.feld { display: block; margin-bottom: 16px; }
.feld span { display: block; font-size: 14px; font-weight: 550; margin-bottom: 6px; color: var(--text-2); }
input[type='email'], input[type='password'], input[type='text'], input[type='search'] {
  width: 100%; height: 44px; padding: 0 12px; font: inherit; color: var(--text); background: var(--karte);
  border: 1px solid var(--linie-2); border-radius: 8px;
}
h1:focus { outline: none; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 4px 0 20px; }
.haken input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gruen); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knopf.haupt { background: var(--gruen); color: #fff; }
.knopf.haupt:hover { filter: brightness(1.08); }
.knopf.neben { background: var(--karte); color: var(--text); border-color: var(--linie-2); }
.knopf.neben:hover { background: var(--flaeche); }
.knopf.breit { width: 100%; }
.knopf.klein { height: 36px; padding: 0 12px; font-size: 15px; }
.knopf[disabled] { opacity: 0.55; cursor: default; }
.textknopf { background: none; border: 0; padding: 0; font: inherit; color: var(--gruen-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--text-2); }
.meldung { border-radius: 8px; padding: 10px 12px; font-size: 15px; margin-bottom: 16px; }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.meldung.ok { background: var(--gruen-hell); color: var(--gruen-text); }
.meldung.hinweis { background: var(--warn-hell); color: var(--warn); }

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 680px) { #kopf-rechts .mail { display: none; } .raster { grid-template-columns: 1fr; } h1 { font-size: 23px; } .karte { padding: 22px; } }
.werkzeug { display: flex; flex-direction: column; gap: 14px; }
.werkzeug-kopf { display: flex; gap: 14px; align-items: center; }
.werkzeug-kopf img { width: 52px; height: 52px; border-radius: 10px; background: var(--flaeche); object-fit: cover; flex: none; }
.status { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--flaeche); color: var(--text-2); }
.status.aktiv, .status.frei { background: var(--gruen-hell); color: var(--gruen-text); }
.status.test { background: var(--warn-hell); color: var(--warn); }
.status.abgelaufen { background: var(--rot-hell); color: var(--rot); }
.werkzeug p { margin: 0; color: var(--text-2); font-size: 15px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.tarife { display: grid; gap: 12px; margin: 20px 0; }
.tarif { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--linie-2); border-radius: 8px; background: var(--karte); }
.tarif strong { display: block; }
.tarif small { color: var(--text-3); }
.klein-text { font-size: 14px; color: var(--text-3); }

.liste { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.liste th, .liste td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.liste th { font-size: 13px; color: var(--text-3); font-weight: 600; }
.schalter { display: flex; flex-wrap: wrap; gap: 6px; }
.schalter label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 8px; border: 1px solid var(--linie-2); border-radius: 6px; cursor: pointer; }
.schalter input { accent-color: var(--gruen); }
.versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
