:root {
  --tinte: #1f1f1e; --tinte2: #5f5e57; --linie: #dcdad2; --grund: #f4f3ee; --karte: #ffffff;
  --akzent: #1c3f6e; --akzent2: #16335a; --sonne: #f2b705; --rot: #b42318; --gelb: #fff4d6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
h1 { font-size: 1.35rem; margin: 0 0 14px; }
h1 small { display: block; font-size: .95rem; font-weight: 400; color: var(--tinte2); }
h2 { font-size: 1.05rem; margin: 0 0 10px; }
h2 small { font-weight: 400; color: var(--tinte2); }

.leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: var(--akzent); color: #fff; }
.leiste a, .leiste .link { color: #fff; }
.leiste nav { display: flex; gap: 14px; align-items: center; }
.leiste form { margin: 0; }
.marke { font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sonne { width: 16px; height: 16px; border-radius: 50%; background: var(--sonne); box-shadow: 0 0 0 3px rgba(242,183,5,.35); }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

main { margin: 0 auto; padding: 16px; }
main.schmal { max-width: 560px; }
main.breit { max-width: 1100px; }
.karte { background: var(--karte); border-radius: 14px; padding: 18px 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

label { display: block; font-weight: 600; margin: 0 0 6px; }
label > input:not([type=radio]):not([type=checkbox]) { margin-top: 6px; }
input:not([type=radio]):not([type=checkbox]) { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--linie); border-radius: 10px; background: #fff; color: var(--tinte); }
input:focus { outline: 3px solid rgba(28,63,110,.25); border-color: var(--akzent); }
select { flex: 1; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1.5px solid var(--linie);
  border-radius: 10px; background: #fff; color: var(--tinte); min-width: 0; }
.zeile { display: flex; gap: 8px; }
.unterwegs .knopf { flex: none; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }

.wahl { display: grid; gap: 8px; margin-bottom: 8px; }
.wahl.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wahl[hidden] { display: none; }
.wahl.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wahl label { margin: 0; font-weight: 600; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px;
  border: 1.5px solid var(--linie); border-radius: 10px; background: #fff; cursor: pointer; font-size: .95rem; }
.wahl input:checked + span { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.wahl input:focus-visible + span { outline: 3px solid rgba(28,63,110,.35); }

button, .knopf, .haupt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.haupt { width: 100%; margin-top: 20px; border: 0; background: var(--akzent); color: #fff; font-size: 1.05rem; min-height: 56px; }
.haupt:active { background: var(--akzent2); }
.haupt:disabled { opacity: .6; }
.knopf, .neben { border: 1.5px solid var(--akzent); background: #fff; color: var(--akzent); }
.neben { margin-top: 8px; width: 100%; }
.breit { width: 100%; }
.klein-knopf { min-height: 32px; padding: 4px 10px; font-size: .85rem; float: right; }
.knoepfe { display: grid; gap: 10px; margin-bottom: 14px; }
.knoepfe .haupt { margin-top: 0; }

.klein { font-size: .85rem; color: var(--tinte2); }
.meldung { background: #e8f0fa; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.fehler { background: #fde8e6; color: var(--rot); border-radius: 10px; padding: 10px 12px; }
.warnung { background: var(--gelb); border-radius: 10px; padding: 10px 12px; }
.warnung ol { margin: 8px 0 0; padding-left: 20px; }
.warnung li { margin-bottom: 6px; }
#standort-hilfe { margin-top: 8px; }

.kartenbild { height: 300px; border-radius: 10px; overflow: hidden; margin: 6px 0; background: #e5e3dc; }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.kacheln div { background: var(--grund); border-radius: 10px; padding: 10px 12px; }
.kacheln b { display: block; font-size: 1.15rem; }
.kacheln span { font-size: .8rem; color: var(--tinte2); }
.dach svg { width: 100%; height: auto; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-top: 1px solid var(--linie); }
.liste li > a, .liste li { display: block; padding: 10px 0; text-decoration: none; color: inherit; }
.liste li > a { padding: 0; }
.status { float: right; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--grund); }
.s-gedruckt { background: #e3f4e8; color: #1e6b34; }
.s-pv_vorhanden { background: var(--gelb); color: #6b4a00; }
.s-keine_daten { background: #fde8e6; color: var(--rot); }

.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
th { color: var(--tinte2); font-weight: 600; }
.r { text-align: right; }
tr.aus { opacity: .5; }
.status { float: none; }
.liste .status { float: right; }
