/* reki54 – eigene Regeln auf Grundlage der Lokani-Tokens (tokens.css). Hell und dunkel nach dem System. */
:root {
  color-scheme: light dark;
  --ampel-gruen: var(--gruen);
  --ampel-gelb: var(--gelb);
  --ampel-rot: var(--rot);
  --ampel-grau: var(--grau-400);
}
* { box-sizing: border-box; }
html { font-family: var(--schrift); font-size: 15px; background: var(--grund); color: var(--text); }
body { margin: 0; line-height: 1.45; }
a { color: var(--primaer-text); }
a:hover { color: var(--primaer-text-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }

.kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: .7rem 1.2rem;
  background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf__marke { font-weight: 700; color: var(--text); text-decoration: none; margin-right: .6rem; }
.kopf__marke span { color: var(--lagune); }
.kopf nav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.kopf nav a { color: var(--text-leise); text-decoration: none; padding: .2rem 0; }
.kopf nav a[aria-current="page"], .kopf nav a:hover { color: var(--text); }
.kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: .8rem; color: var(--text-leise); font-size: .9rem; }

.inhalt { max-width: 1200px; margin: 0 auto; padding: 1.2rem; }
.fuss { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem 1.5rem; color: var(--text-leise); font-size: .85rem; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--karte-radius);
  padding: 1rem 1.1rem; margin-bottom: 1rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--text-leise); font-size: .85rem; }
.tabelle tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .tabelle--umbrechen thead { display: none; }
  .tabelle--umbrechen tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
  .tabelle--umbrechen td { display: inline-block; border: 0; padding: .15rem .5rem .15rem 0; }
}

.knopf { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .35rem .85rem;
  border-radius: var(--radius); border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
  font: inherit; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--flaeche-hover); color: var(--text); }
.knopf--primaer { background: var(--erp-primaer-flaeche); border-color: var(--erp-primaer-flaeche); color: var(--auf-primaer); }
.knopf--primaer:hover { background: var(--erp-primaer-flaeche-hover); color: var(--auf-primaer); }
.knopf--klein { min-height: 30px; padding: .15rem .6rem; font-size: .9rem; }
.knopf--gefahr { color: var(--rot); }

.formular p { margin: 0 0 .8rem; }
.formular label { display: block; font-weight: 600; margin-bottom: .2rem; }
.formular input:not([type=checkbox]), .formular select, .formular textarea { width: 100%; max-width: 480px; min-height: 40px;
  padding: .4rem .6rem; border: 1px solid var(--linie-stark); border-radius: var(--radius-klein);
  background: var(--flaeche-feld); color: var(--text); font: inherit; }
.formular .helptext { display: block; color: var(--text-leise); font-size: .85rem; }
.errorlist { color: var(--rot); margin: .2rem 0; padding-left: 1rem; }

.meldung { padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--linie); background: var(--flaeche); }
.meldung--success { border-color: var(--gruen); background: var(--gruen-hell); }
.meldung--error, .band--rot { border-color: var(--rot); background: var(--rot-hell); }
.meldung--warning { border-color: var(--gelb); background: var(--gelb-hell); }
.band { padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--linie); }

.leise { color: var(--text-leise); }
.klein { font-size: .85rem; }
.mono { font-family: var(--schrift-mono); }
.geheim { font-family: var(--schrift-mono); word-break: break-all; padding: .6rem; background: var(--flaeche-2);
  border-radius: var(--radius-klein); user-select: all; }

.ampel { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--ampel-grau);
  vertical-align: middle; flex: none; }
.ampel--gruen { background: var(--ampel-gruen); }
.ampel--gelb { background: var(--ampel-gelb); }
.ampel--rot { background: var(--ampel-rot); }
.schild { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--linie-stark); }
.schild--rot { color: var(--rot); border-color: var(--rot); }
.schild--gelb { color: var(--gelb); border-color: var(--gelb); }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.verlauf { width: 100%; max-width: 360px; height: 48px; color: var(--primaer); }
.zeile--fest { flex-wrap: nowrap; align-items: flex-start; }
.zeile--fest > .ampel { margin-top: .3rem; }
