:root {
  --seite: #f7f8fa;
  --karte: #ffffff;
  --rand: #e6e8ee;
  --rand-stark: #d5d9e2;
  --text: #0f1729;
  --text-2: #4a5468;
  --gedaempft: #667085;
  --akzent: #d0253a;
  --akzent-dunkel: #ae1d30;
  --akzent-weich: #fdedef;
  --gruen: #0f8a5f;
  --gruen-weich: #e7f6ef;
  --rot: #a32135;
  --rot-weich: #fbeef0;
  --bernstein: #b3720a;
  --bernstein-weich: #fdf4e3;
  --blau: #2266cc;
  --blau-weich: #eaf2fd;
  --nav: #0e1424;
  --nav-2: #1a2236;
  --nav-text: #97a1b8;
  --nav-titel: #6b7590;
  --schatten: 0 1px 2px rgba(15,23,41,.05);
  --schatten-hoch: 0 4px 16px rgba(15,23,41,.10);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --seite: #0b0f18; --karte: #131926; --rand: #232c3d; --rand-stark: #2f3a4f;
    --text: #e8ecf4; --text-2: #aeb8ca; --gedaempft: #7d879b;
    --akzent: #ff6b7a; --akzent-dunkel: #ff8794; --akzent-weich: #33161c;
    --gruen: #3ecf95; --gruen-weich: #0f2a20; --rot: #f08b99; --rot-weich: #2a141a;
    --bernstein: #e8a93c; --bernstein-weich: #2a2010; --blau: #6aa5ff; --blau-weich: #12203a;
    --nav: #080c14; --nav-2: #161d2e;
    --schatten: 0 1px 2px rgba(0,0,0,.4); --schatten-hoch: 0 6px 20px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--seite); color: var(--text);
  font: 400 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.006em;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { color: var(--akzent-dunkel); }

/*  Tastaturbedienung: Fokus muss sichtbar sein — sonst navigiert man blind.  */
a, button, select, input, summary, [tabindex] { transition: background-color .15s ease,
  border-color .15s ease, color .15s ease; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px;
}
button, summary, select, .knopf { cursor: pointer; }

/*  Sprungmarke fuer Tastaturnutzer — sonst 20 Tabs bis zum Inhalt.  */
.sprungmarke {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--akzent); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13.5px; font-weight: 550;
}
.sprungmarke:focus { left: 8px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: .875em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }

.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.klein { width: 15px; height: 15px; }
.ic.gross { width: 26px; height: 26px; }

/* ─────────────── Grundgerüst ─────────────── */
.layout { display: flex; min-height: 100vh; }

.seitenleiste {
  width: 244px; flex: 0 0 244px; background: var(--nav); color: var(--nav-text);
  display: flex; flex-direction: column; padding: 18px 12px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.marke { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: inherit; }
.marke:hover { color: inherit; }
.marke .zeichen {
  width: 32px; height: 32px; border-radius: 9px; flex: none; color: #fff;
  background: var(--akzent); display: grid; place-items: center;
}
.marke .name { color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.25; }
.marke .name small { display: block; font-weight: 400; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--nav-titel); margin-top: 2px; }

.navgruppe { margin-top: 18px; }
.navgruppe > span {
  display: block; padding: 0 10px 6px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--nav-titel);
}
.seitenleiste nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px;
  color: var(--nav-text); font-size: 13.5px; margin-bottom: 1px;
}
.seitenleiste nav a:hover { background: var(--nav-2); color: #fff; }
.seitenleiste nav a.aktiv { background: var(--akzent); color: #fff; font-weight: 500; }
.seitenleiste nav a .ic { opacity: .9; }

.navfuss { margin-top: auto; padding-top: 14px; }
.hinweisband {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 8px;
  background: #ffffff0d; border: 1px solid #ffffff1a; color: var(--nav-text); font-size: 12.5px;
}
.hinweisband:hover { background: #ffffff14; color: #fff; }

/* ─────────────── Kopfzeile ─────────────── */
.inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kopfzeile {
  display: flex; align-items: center; gap: 14px; padding: 11px 24px;
  background: var(--karte); border-bottom: 1px solid var(--rand);
  position: sticky; top: 0; z-index: 20;
}
.suchfeld { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
.suchfeld input {
  width: 100%; padding: 8px 12px 8px 36px; border-radius: 8px;
  border: 1px solid var(--rand-stark); background: var(--seite); color: var(--text);
  font: inherit; font-size: 13.5px;
}
.suchfeld .lupe { position: absolute; left: 11px; color: var(--gedaempft); }
.kopfrechts { margin-left: auto; display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.rundknopf {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--text-2); position: relative;
}
.rundknopf:hover { background: var(--seite); color: var(--text); }
.rundknopf .punkt {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 20px; background: var(--rot); color: #fff; font-size: 10px; font-weight: 600;
  display: grid; place-items: center; border: 2px solid var(--karte);
}
.konto { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 5px; border-radius: 8px; }
.konto:hover { background: var(--seite); }
.konto .kreis {
  width: 30px; height: 30px; border-radius: 8px; background: var(--akzent-weich);
  color: var(--akzent); display: grid; place-items: center; font-weight: 600; font-size: 12px;
  flex: 0 0 auto;
}
/* Name und Rolle stehen je auf einer Zeile — bricht der Text um, rutscht die Kopfzeile auseinander. */
.konto .wer { line-height: 1.3; min-width: 0; max-width: 190px; }
.konto .wer strong, .konto .wer span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.konto .wer strong { font-size: 13px; font-weight: 550; color: var(--text); }
.konto .wer span { font-size: 11.5px; color: var(--gedaempft); }
details.menue { position: relative; }
details.menue > summary { list-style: none; cursor: pointer; }
details.menue > summary::-webkit-details-marker { display: none; }
details.menue .klappe {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--karte);
  border: 1px solid var(--rand); border-radius: 10px; box-shadow: var(--schatten-hoch);
  min-width: 200px; padding: 5px; z-index: 30;
}
details.menue .klappe a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  color: var(--text); font-size: 13.5px;
}
details.menue .klappe a:hover { background: var(--seite); }
.kundenwahl {
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--rand-stark);
  background: var(--karte); color: var(--text); font: inherit; font-size: 13px; max-width: 200px;
}

/* ─────────────── Kundenleiste ─────────────── */
.kundenleiste {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 24px; background: var(--karte); border-bottom: 1px solid var(--rand);
}
.kundenleiste .etikett {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gedaempft);
}
.kundenleiste strong { font-size: 14px; font-weight: 600; }
.kundenleiste .trenner { width: 1px; height: 14px; background: var(--rand-stark); }
.kundenleiste .knopf { margin-left: auto; }

/*  Volle Breite nutzen. Lesbarkeit bleibt erhalten, weil Fliesstext weiter
    ueber max-width in ch begrenzt ist (.erklaerung, .fussnote) — nur Tabellen,
    Diagramme und Kacheln wachsen mit.  */
main { padding: 22px 24px 60px; width: 100%; }
@media (min-width: 1600px) {
  main { padding: 26px 40px 70px; }
  .kopfzeile, .kundenleiste { padding-left: 40px; padding-right: 40px; }
  .kacheln, .raster-2-1, .raster-3 { gap: 20px; }
}
@media (min-width: 2000px) {
  main { padding: 30px 56px 80px; }
  .kopfzeile, .kundenleiste { padding-left: 56px; padding-right: 56px; }
  /*  Auf sehr breiten Schirmen bekommt das Diagramm mehr Raum als die Hinweise  */
  .raster-2-1 { grid-template-columns: 2.6fr 1fr; }
  .suchfeld { max-width: 640px; }
}

/* ─────────────── Seitenkopf ─────────────── */
.seitenkopf { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.seitenkopf h1 { font-size: 22px; }
.seitenkopf p { margin: 5px 0 0; color: var(--text-2); font-size: 13.5px; max-width: 78ch; }
.statuspille {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 7px;
  background: var(--gruen-weich); color: var(--gruen); font-size: 12.5px; font-weight: 500;
}
.statuspille.stoerung { background: var(--rot-weich); color: var(--rot); }
.statuspille i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─────────────── Kacheln ─────────────── */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px; margin-bottom: 16px; }
.kachel { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 16px 17px; box-shadow: var(--schatten); }
.kachel .oben { display: flex; align-items: flex-start; gap: 11px; }
.kachel .symbol { width: 36px; height: 36px; border-radius: 9px; flex: none;
  display: grid; place-items: center; }
.symbol.indigo { background: var(--akzent-weich); color: var(--akzent); }
.symbol.tuerkis { background: var(--gruen-weich); color: var(--gruen); }
.symbol.bernstein { background: var(--bernstein-weich); color: var(--bernstein); }
.symbol.blau { background: var(--blau-weich); color: var(--blau); }
.symbol.gruen { background: var(--gruen-weich); color: var(--gruen); }
.symbol.rot { background: var(--rot-weich); color: var(--rot); }
.kachel .titel { font-size: 12.5px; color: var(--text-2); }
.kachel .wert { font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.kachel .unter { font-size: 12px; color: var(--gedaempft); }
.kachel .unten { display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--rand); }
.kachel .fuss { font-size: 12px; color: var(--text-2); }
.kachel .fuss.warn { color: var(--bernstein); font-weight: 500; }
.trend { font-size: 11.5px; font-weight: 550; color: var(--gruen); }
.trend.runter { color: var(--rot); }
.kachel svg.kurve { margin-left: auto; display: block; }

/* ─────────────── Karten ─────────────── */
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); margin-bottom: 16px; }
.karte > .kopf { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--rand); }
.karte > .kopf h2 { font-size: 14.5px; }
.karte > .rumpf { padding: 16px 17px; }
.karte > .rumpf.eng { padding: 4px 7px; overflow-x: auto; }
.karte > .rumpf.eng table { min-width: 520px; }
.raster-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.raster-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.raster-2-1 > .karte, .raster-3 > .karte { margin-bottom: 0; }

/* ─────────────── Diagramm ─────────────── */
.legende { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 7px; height: 7px; border-radius: 50%; }
.diagramm { width: 100%; height: auto; overflow: visible; }
.diagramm .gitter { stroke: var(--rand); stroke-width: 1; }
.diagramm .beschriftung { fill: var(--gedaempft); font-size: 10px; }

/* ─────────────── Hinweisliste ─────────────── */
.hinweisliste { display: flex; flex-direction: column; }
.hinweiszeile { display: flex; align-items: center; gap: 12px; padding: 12px 17px;
  border-bottom: 1px solid var(--rand); color: var(--text); }
.hinweiszeile:last-child { border-bottom: none; }
.hinweiszeile:hover { background: var(--seite); }
.hinweiszeile .marke2 { width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center; }
.hinweiszeile.warnung .marke2 { background: var(--bernstein-weich); color: var(--bernstein); }
.hinweiszeile.fehler .marke2 { background: var(--rot-weich); color: var(--rot); }
.hinweiszeile.info .marke2 { background: var(--blau-weich); color: var(--blau); }
.hinweiszeile .txt strong { display: block; font-size: 13px; font-weight: 550; }
.hinweiszeile .txt span { font-size: 12px; color: var(--gedaempft); }
.hinweiszeile .pfeil { margin-left: auto; color: var(--gedaempft); }
.leerhinweis { padding: 28px 18px; text-align: center; color: var(--gedaempft); font-size: 13px; }

/* ─────────────── Tabellen ─────────────── */
table { width: 100%; border-collapse: collapse; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--gedaempft);
  font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rand); }
td { padding: 11px 10px; border-bottom: 1px solid var(--rand); vertical-align: middle; font-size: 13.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--seite); }
.rechts { text-align: right; }
.nowrap { white-space: nowrap; }
.blass { opacity: .5; }
.klein { font-size: 12.5px; color: var(--gedaempft); }

.marker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border-radius: 6px; font-size: 11.5px; font-weight: 550; white-space: nowrap; }
.marker i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.marker.gruen { background: var(--gruen-weich); color: var(--gruen); }
.marker.rot { background: var(--rot-weich); color: var(--rot); }
.marker.bernstein { background: var(--bernstein-weich); color: var(--bernstein); }
.marker.grau { background: var(--seite); color: var(--gedaempft); border: 1px solid var(--rand); }
.marker.blau { background: var(--blau-weich); color: var(--blau); }

/* ─────────────── Bedienelemente ─────────────── */
.knopf, button.knopf, .karte button { font: inherit; font-size: 13.5px; padding: 8px 14px;
  border-radius: 8px; border: 1px solid var(--rand-stark); background: var(--karte);
  color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; }
.knopf:hover { border-color: var(--akzent); color: var(--akzent); }
.knopf.haupt { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.knopf.haupt:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
.knopf.klein { padding: 5px 10px; font-size: 12.5px; }
.knopf.gefahr:hover { border-color: var(--rot); color: var(--rot); }
form.inline { display: inline; }

input, select, textarea { font: inherit; font-size: 13.5px; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--rand-stark); background: var(--karte); color: var(--text); width: 100%; }
input:focus, select:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }

.formular { display: flex; flex-direction: column; gap: 13px; max-width: 460px; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 550; }
.formular label input, .formular label select { font-weight: 400; }
.formular button { align-self: flex-start; }
/* Beschriftung und Zusatz ("optional") bleiben eine Zeile, sonst rutscht das Eingabefeld nach unten. */
.formular label > .feldname { display: block; }
.formular label > .feldname > .klein { font-weight: 400; }
/* Zusaetzlich unten ausrichten: auch bei umbrechender Beschriftung stehen die Felder auf einer Linie. */
.felder {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; align-items: end;
}
.filterzeile { display: flex; gap: 9px; flex-wrap: wrap; }
.filterzeile select, .filterzeile input { width: auto; }
.filterzeile input { flex: 1; min-width: 180px; }

.erklaerung { color: var(--text-2); margin: 0 0 15px; max-width: 78ch; }
.fussnote { color: var(--gedaempft); font-size: 12.5px; margin: 13px 0 0; max-width: 86ch; }
.meldung { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px;
  margin-bottom: 16px; font-size: 13.5px; }
.meldung.erfolg { background: var(--gruen-weich); color: var(--gruen); }
.meldung.fehler { background: var(--rot-weich); color: var(--rot); }

.geheim { cursor: pointer; user-select: none; background: var(--seite); padding: 3px 9px;
  border-radius: 6px; color: transparent; text-shadow: 0 0 7px var(--gedaempft);
  border: 1px solid var(--rand); }
.geheim.sichtbar { color: var(--text); text-shadow: none; user-select: all; }

ol { margin: 0; padding-left: 20px; }
ol li { margin-bottom: 7px; }

/* ─────────────── Reiter ─────────────── */
.wegwahl { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.wegwahl a {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--rand);
  background: var(--karte); color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
.wegwahl a:hover { border-color: var(--rand-stark); color: var(--text); }
.wegwahl a.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }

/* ─────────────── Schrittliste ─────────────── */
ol.schritte { list-style: none; padding: 0; margin: 0; }
ol.schritte > li { display: flex; gap: 15px; padding: 0 0 22px; position: relative; margin: 0; }
ol.schritte > li::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--rand);
}
ol.schritte > li:last-child::before { display: none; }
ol.schritte > li > .nr {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--akzent-weich); color: var(--akzent); font-weight: 600; font-size: 13px;
  position: relative; z-index: 1;
}
ol.schritte > li.fertig > .nr { background: var(--gruen-weich); color: var(--gruen); }
ol.schritte > li > div { flex: 1; min-width: 0; padding-top: 4px; }
ol.schritte > li > div > strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
ol.schritte > li > div > p { margin: 0 0 10px; color: var(--text-2); }
ol.schritte code { background: var(--seite); padding: 2px 6px; border-radius: 5px; }

.wertfeld {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--seite); border: 1px solid var(--rand); border-radius: 8px;
  padding: 9px 12px; margin-bottom: 8px; max-width: 560px;
}
.wertfeld > .klein { min-width: 74px; }
.wertfeld code { background: none; padding: 0; font-size: 13.5px; font-weight: 550; }
.wertfeld button { margin-left: auto; }

.warnkasten, .infokasten {
  border-radius: 9px; padding: 12px 15px; margin: 4px 0 8px; font-size: 13.5px;
  max-width: 78ch; line-height: 1.55;
}
.warnkasten { background: var(--bernstein-weich); color: var(--bernstein); }
.infokasten { background: var(--blau-weich); color: var(--blau); margin-top: 16px; }

/* ─────────────── Anmeldeseite ─────────────── */
.anmeldeseite {
  display: grid; place-items: center; min-height: 100vh; padding: 20px;
  background-color: var(--seite);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23000' fill-opacity='.055'/%3E%3C/svg%3E");
}
.anmeldemarke { display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 4px; text-align: center; }
.anmeldemarke .zeichen {
  width: 56px; height: 56px; border-radius: 15px; background: var(--akzent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(208,37,58,.26);
}
.anmeldemarke .zeichen .ic { width: 30px; height: 30px; }
.anmeldemarke .name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.anmeldemarke .unter { font-size: 12px; color: var(--gedaempft); letter-spacing: .1em;
  text-transform: uppercase; margin-top: 2px; }
.anmeldefuss { text-align: center; font-size: 12px; color: var(--gedaempft); margin: 14px 0 0; }
.anmeldekasten { background: var(--karte); border: 1px solid var(--rand); border-radius: 14px;
  padding: 30px; width: 100%; max-width: 380px; box-shadow: var(--schatten-hoch);
  display: flex; flex-direction: column; gap: 14px; }
.anmeldekasten .marke { justify-content: center; padding-bottom: 6px; }
.anmeldekasten .marke .name { color: var(--text); }
.anmeldekasten label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 550; }
.anmeldekasten button { background: var(--akzent); color: #fff; border: none; font-weight: 550;
  padding: 11px; border-radius: 8px; font-size: 14px; cursor: pointer; margin-top: 4px; }
.anmeldekasten button:hover { background: var(--akzent-dunkel); }
.codefeld { text-align: center; font-size: 24px !important; letter-spacing: .35em;
  font-family: ui-monospace, monospace; padding: 12px !important; }

/* ─────────────── Zwei-Faktor ─────────────── */
.qr { background: #fff; padding: 12px; border-radius: 10px; border: 1px solid var(--rand);
  width: 190px; height: 190px; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.codeliste { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px;
  font-family: ui-monospace, monospace; font-size: 13px; }
.codeliste span { background: var(--seite); border: 1px solid var(--rand); border-radius: 6px;
  padding: 7px 10px; text-align: center; }

@media (max-width: 1100px) { .raster-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .seitenkopf h1 { font-size: 19px; }
  .kacheln { grid-template-columns: 1fr; }
  .wegwahl a { flex: 1; text-align: center; }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .seitenleiste { width: 100%; flex: none; height: auto; position: static; }
  .seitenleiste nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .navgruppe { margin-top: 8px; }
  .kopfzeile { padding: 10px 14px; }
  .konto .wer { display: none; }
  main { padding: 18px 14px 40px; }
}
