/* SPDX-License-Identifier: AGPL-3.0-only
 * Copyright (C) 2026 Mitwirkende der PV-P2P-Plattform
 * Teil der PV-P2P-Plattform. Freie Software unter der GNU Affero General Public
 * License, Version 3. Ohne jede Gewährleistung; Details in LICENSE.
 *
 * Gestaltung nach docs/KONZEPT.md, Abschnitt 11, und dem Entwurf unter
 * docs/oberflaeche/. Farbe trägt Bedeutung, nicht Dekoration:
 * Türkis = geteilte Energie, Ocker = Erzeugung und Akku, Grau = Netz.
 */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --hintergrund: #F3F5F4;
  --flaeche: #FFFFFF;
  --rand: #DCE1DE;
  --rand-eingabe: #C3CBCF;
  --rand-plus: #B9C3C0;
  --text: #14212B;
  --text-2: #3B4A52;
  --gedaempft: #55636B;
  --akzent: #0F766E;
  --akzent-dunkel: #0B5953;
  --akzent-hell: #E6F1EF;
  --akzent-flaeche: #F0F7F6;
  --pv: #C98A2E;
  --pv-text: #8A5410;
  --pv-hell: #F6E8D2;
  --netz: #C3CBCF;
  --spur: #E3E7E9;
  --warn-hell: #FBF1E0;
  --warn-text: #7A4A0C;
  --warn-flaeche: #FDF9F0;
  --warn-rand: #E9CD96;
  --gefahr: #A8361F;
  --gefahr-hell: #FBEAE6;
  --radius: 16px;
  --radius-klein: 12px;
  --radius-feld: 10px;
  --schrift: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --seitenrand: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 16px; font-weight: 600; color: var(--text-2); }
h2.gross { font-size: 20px; font-weight: 700; color: var(--text); }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
.mono, .zahl { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gedaempft { color: var(--gedaempft); }
.klein { font-size: 13px; }
.rechts { text-align: right; }
.mitte { text-align: center; }
.unsichtbar {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.zum-inhalt { position: absolute; left: -9999px; top: 0; }
.zum-inhalt:focus { left: 16px; top: 8px; z-index: 10; background: var(--flaeche); padding: 8px 12px; border-radius: 8px; }

/* --- Kopf ---------------------------------------------------------------- */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.kopf-innen {
  max-width: 1280px; margin: 0 auto; padding: 16px var(--seitenrand);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.marke { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.marke:hover { color: var(--text); }
.marke-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 10px 14px; border-radius: 10px; color: var(--text-2);
  font-weight: 500; font-size: 15px; text-decoration: none;
}
.nav a:hover { background: var(--hintergrund); color: var(--text); }
.nav a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 600; }
.kopf-rechts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--rand); border-radius: 999px; font-size: 14px; color: var(--text-2);
}
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--netz); flex: 0 0 auto; }
.punkt.an { background: var(--akzent); }
.punkt.warn { background: var(--pv); }
.punkt.aus { background: var(--gefahr); }
.link-knopf {
  background: none; border: 0; padding: 10px 6px; min-height: 44px; font: inherit;
  color: var(--text-2); font-weight: 500; cursor: pointer;
}
.link-knopf:hover { color: var(--text); text-decoration: underline; }

/* --- Inhalt -------------------------------------------------------------- */
.inhalt {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: var(--seitenrand);
  display: flex; flex-direction: column; gap: 24px; flex: 1 0 auto;
}
.inhalt.schmal { max-width: 760px; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.seitenkopf .titel { display: flex; flex-direction: column; gap: 4px; }
.seitenkopf .titel-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.untertitel { font-size: 15px; color: var(--gedaempft); }
.brotkrumen { font-size: 15px; color: var(--gedaempft); display: flex; gap: 8px; flex-wrap: wrap; }
.brotkrumen a { text-decoration: none; }

.reihe { display: flex; flex-wrap: wrap; gap: 24px; }
.reihe.eng { gap: 16px; }
.spalte { display: flex; flex-direction: column; gap: 24px; }
.breit { flex: 2 1 560px; min-width: 0; }
.schmal-spalte { flex: 1 1 300px; min-width: 0; }
.halb { flex: 1 1 420px; min-width: 0; }

.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0;
}
.karte.kompakt { padding: 22px; gap: 14px; }
.karte.akzent { background: var(--akzent-hell); border-color: #CFE3DF; }
.karte.warn { background: var(--warn-flaeche); border-color: var(--warn-rand); }
.karte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }

.kachel {
  flex: 1 1 160px; padding: 16px; background: var(--hintergrund); border-radius: var(--radius-klein);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.kachel.akzent { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.kachel.akzent .kachel-titel, .kachel.akzent .kachel-zusatz { color: var(--akzent-dunkel); }
.kachel-titel, .kachel-zusatz { font-size: 13px; color: var(--gedaempft); }
.kachel-wert { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }

.kennzahl { flex: 1 1 220px; }
.kennzahl .kachel-wert { font-size: 28px; }

.gross-zahl {
  font-family: var(--mono); font-size: 48px; font-weight: 500; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.gross-zeile { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.gross-zusatz { font-size: 18px; color: var(--text-2); }

/* Balken als SVG (ohne Inline-Styles, wegen CSP) */
.balken { display: block; width: 100%; height: 12px; overflow: visible; }
.balken .spur { fill: var(--spur); }
.balken .fuellung { fill: var(--akzent); }
.balken.akku .spur { fill: var(--pv-hell); }
.balken.akku .fuellung { fill: var(--pv); }
.balken .marker { fill: var(--text); }
.balken-legende { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--gedaempft); }

/* Werteliste in Karten */
.werte { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin: 0; }
.werte > div { display: flex; justify-content: space-between; gap: 12px; }
.werte dt { color: var(--gedaempft); }
.werte dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.werte dd.text { font-family: var(--schrift); }
.werte.gross { font-size: 15px; gap: 12px; }
.werte .trenner { border-top: 1px solid var(--rand); padding-top: 12px; }

/* --- Einheiten-Karten ---------------------------------------------------- */
.einheiten { display: flex; flex-wrap: wrap; gap: 16px; }
.einheit-karte { flex: 1 1 260px; }
.einheit-kopf { display: flex; align-items: center; gap: 12px; }
.symbol {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; background: var(--spur); color: var(--text-2);
}
.symbol svg { width: 22px; height: 22px; }
.symbol.erzeugung { background: var(--pv-hell); color: var(--pv-text); }
.symbol.geteilt { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.einheit-name { display: flex; flex-direction: column; gap: 2px; }
.einheit-name strong { font-size: 16px; font-weight: 600; }
.einheit-name span { font-size: 13px; color: var(--text-2); }
.einheit-name span.erzeugung { color: var(--pv-text); }
.einheit-name span.geteilt { color: var(--akzent-dunkel); }
.karte-link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }

.plus-karte {
  flex: 1 1 260px; min-height: 200px; border: 2px dashed var(--rand-plus); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; color: var(--text-2); text-align: center;
}
.plus-karte:hover { background: var(--flaeche); color: var(--text); }
.plus-kreis {
  width: 52px; height: 52px; border-radius: 50%; background: var(--akzent);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.plus-karte strong { font-size: 16px; font-weight: 600; }
.plus-karte span.klein { color: var(--gedaempft); }

/* --- Marken (Status) ----------------------------------------------------- */
.marke-status {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--spur); color: var(--text-2);
}
.marke-status.ok { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.marke-status.warn { background: var(--warn-hell); color: var(--warn-text); }
.marke-status.fehler { background: var(--gefahr-hell); color: var(--gefahr); }
.marke-status.erzeugung { background: var(--pv-hell); color: var(--pv-text); }

/* --- Diagramm ------------------------------------------------------------ */
.legende { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-2); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--netz); }
.legende i.geteilt { background: var(--akzent); }
.legende i.erzeugung { background: var(--pv); }
.legende i.plan { background: transparent; border: 2px dashed var(--text-2); }
.diagramm-rahmen { overflow-x: auto; }
.diagramm { display: block; width: 100%; min-width: 560px; height: auto; }
.diagramm .geteilt { fill: var(--akzent); }
.diagramm .netz { fill: var(--netz); }
.diagramm .erzeugung { fill: var(--pv); }
.diagramm .vorlaeufig { opacity: 0.55; }
.diagramm .achse { fill: var(--gedaempft); font-family: var(--mono); font-size: 15px; }
.diagramm .linie { stroke: var(--rand); stroke-width: 1; }
.diagramm .plan { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.diagramm .jetzt { stroke: var(--text); stroke-width: 1; stroke-dasharray: 2 3; }
.leer { color: var(--gedaempft); font-size: 14px; padding: 24px 0; text-align: center; }

/* --- Tabellen ------------------------------------------------------------ */
.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th {
  text-align: left; padding: 10px 8px; font-weight: 600; border-bottom: 1px solid var(--rand); white-space: nowrap;
}
.tabelle td { padding: 12px 8px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl, .tabelle th.zahl { text-align: right; }
.tabelle th.zahl { font-family: var(--schrift); }
.tabelle td.aktion { text-align: right; white-space: nowrap; }
.tabelle td.aktion form { display: inline; }
.tabelle .fett { font-weight: 600; }

/* --- Formulare ----------------------------------------------------------- */
form { margin: 0; }
.formular { display: flex; flex-direction: column; gap: 18px; }
.felder { display: flex; flex-wrap: wrap; gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0; }
.feld.voll { flex-basis: 100%; }
.feld.klein-feld { flex: 0 1 180px; }
.feld label, .feld .label, legend { font-size: 14px; font-weight: 600; color: var(--text-2); }
.feld .hilfe { font-size: 13px; color: var(--gedaempft); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="time"],
input[type="date"], input[type="month"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--rand-eingabe);
  border-radius: var(--radius-feld); font: inherit; font-size: 15px; color: var(--text); background: var(--flaeche);
}
textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
select { padding: 0 12px; }
input.mono { font-family: var(--mono); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--akzent-hell); border-color: var(--akzent); }
input[aria-invalid="true"] { border-color: var(--gefahr); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--akzent); margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wahl-zeile {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px; background: var(--hintergrund); border-radius: var(--radius-klein);
}
.wahl-zeile label { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 15px; color: var(--text); }
.wahl-zeile .hilfe { font-weight: 400; font-size: 13px; color: var(--gedaempft); }
.haken-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; }

/* Typwahl als Karten */
.typwahl { display: flex; flex-wrap: wrap; gap: 12px; }
.typ-option { flex: 1 1 200px; position: relative; }
.typ-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.typ-option label {
  display: flex; flex-direction: column; gap: 8px; min-height: 120px; height: 100%; padding: 16px;
  border: 2px solid var(--rand); border-radius: 14px; background: var(--flaeche); cursor: pointer;
}
.typ-option label strong { font-size: 15px; font-weight: 600; color: var(--text); }
.typ-option label span { font-size: 13px; line-height: 1.45; color: var(--text-2); font-weight: 400; }
.typ-option input:checked + label { border-color: var(--akzent); background: var(--akzent-flaeche); }
.typ-option input:focus-visible + label { outline: 3px solid var(--akzent); outline-offset: 2px; }

.knopfleiste { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rand); }
.knopfleiste.links { justify-content: flex-start; border-top: 0; padding-top: 0; }

/* --- Knöpfe -------------------------------------------------------------- */
.knopf, button.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-feld); border: 1px solid var(--akzent);
  background: var(--akzent); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
.knopf.zweit { background: var(--flaeche); color: var(--text); border-color: var(--rand-eingabe); }
.knopf.zweit:hover { background: var(--hintergrund); color: var(--text); }
.knopf.rahmen { background: var(--flaeche); color: var(--akzent-dunkel); border-color: var(--akzent); min-height: 44px; font-size: 14px; padding: 0 16px; }
.knopf.rahmen:hover { background: var(--akzent-hell); }
.knopf.still { background: transparent; border-color: transparent; color: var(--text-2); }
.knopf.still:hover { background: var(--hintergrund); color: var(--text); }
.knopf.gefahr { background: var(--gefahr); border-color: var(--gefahr); color: #fff; }
.knopf.gefahr:hover { background: #8C2C18; }
.knopf.gefahr-rahmen { background: var(--flaeche); border-color: var(--gefahr); color: var(--gefahr); min-height: 44px; font-size: 14px; padding: 0 16px; }
.knopf.voll-breit { width: 100%; }
.knopf[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --- Hinweise ------------------------------------------------------------ */
.meldung {
  padding: 14px 16px; border-radius: var(--radius-klein); font-size: 15px;
  background: var(--akzent-hell); color: var(--akzent-dunkel); border: 1px solid #CFE3DF;
}
.meldung.fehler { background: var(--gefahr-hell); color: var(--gefahr); border-color: #F1C7BE; }
.meldung.warn { background: var(--warn-hell); color: var(--warn-text); border-color: var(--warn-rand); }
.meldung.neutral { background: var(--hintergrund); color: var(--text-2); border-color: var(--rand); }
.infobox { padding: 16px; background: var(--hintergrund); border-radius: var(--radius-klein); font-size: 14px; color: var(--text-2); }
.code-anzeige {
  font-family: var(--mono); font-size: 36px; letter-spacing: 0.08em; font-weight: 500;
  padding: 16px 20px; background: var(--akzent-hell); color: var(--akzent-dunkel); border-radius: var(--radius-klein);
  text-align: center; word-break: break-all;
}
.geheim {
  font-family: var(--mono); font-size: 14px; padding: 10px 12px; background: var(--hintergrund);
  border: 1px solid var(--rand); border-radius: 8px; word-break: break-all; user-select: all;
}

/* --- Anmeldung ----------------------------------------------------------- */
.anmeldung {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 48px var(--seitenrand);
}
.anmeldung-innen { width: 100%; max-width: 960px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 96px; }
.anmeldung-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.anmeldung-text h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
.anmeldung-text p { font-size: 17px; color: var(--text-2); line-height: 1.6; }
.punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.punkte li { display: flex; align-items: baseline; gap: 10px; }
.punkte li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); flex: 0 0 auto; transform: translateY(-2px); }
.anmeldung-karte { flex: 1 1 340px; max-width: 420px; padding: 36px; gap: 18px; }
.anmeldung-karte h2 { font-size: 22px; font-weight: 700; color: var(--text); }

/* --- Fuß ----------------------------------------------------------------- */
.fuss { background: var(--flaeche); border-top: 1px solid var(--rand); margin-top: 32px; }
.fuss-innen {
  max-width: 1280px; margin: 0 auto; padding: 20px var(--seitenrand);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--gedaempft);
}
.fuss nav { display: flex; flex-wrap: wrap; gap: 20px; }
.fuss a { text-decoration: none; }

/* --- Regler-Kopf (lokale Seite, nur Vorschau) ------------------------------ */
.textblock { white-space: pre-wrap; line-height: 1.6; }

/* --- Schritte der Abrechnung ---------------------------------------------- */
.schritte { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.schritt {
  flex: 1 1 220px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.schritt .nr { font-size: 13px; color: var(--gedaempft); }
.schritt .stand { font-weight: 600; color: var(--text); }
.schritt.fertig .stand { color: var(--akzent-dunkel); }
.schritt.offen .stand { color: var(--warn-text); }

.rechnungen { display: flex; flex-wrap: wrap; gap: 16px; }
.rechnung-karte { flex: 1 1 360px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--rand); background: var(--flaeche); display: flex; flex-direction: column; gap: 12px; }
.rechnung-karte.offen { background: var(--warn-flaeche); border-color: var(--warn-rand); }
.ueberweisung { padding: 12px 14px; background: var(--flaeche); border-radius: 10px; font-size: 14px; color: var(--text-2); }

/* --- Zeitplan ------------------------------------------------------------ */
.wochentage { display: flex; flex-wrap: wrap; gap: 6px; }
.wochentage label {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--rand-eingabe); border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--text);
}

/* --- Handybreite --------------------------------------------------------- */
@media (max-width: 760px) {
  :root { --seitenrand: 16px; }
  h1 { font-size: 26px; }
  .karte { padding: 20px; }
  .gross-zahl { font-size: 40px; }
  .kopf-innen { gap: 8px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .anmeldung-text h1 { font-size: 30px; }
  .anmeldung-karte { padding: 24px; }
  .knopfleiste { justify-content: stretch; }
  .knopfleiste .knopf { flex: 1 1 auto; }
}

/* --- Ergänzungen ---------------------------------------------------------- */
.fehlertext { color: var(--gefahr); font-weight: 600; }
details { border: 1px solid var(--rand); border-radius: var(--radius-klein); padding: 0 16px; }
details[open] { padding-bottom: 16px; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--text-2); }
details .felder { margin-top: 8px; }
.geraet-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rand); }
.geraet-zeile:last-child { border-bottom: 0; }
.geraet-zeile .info { display: flex; flex-direction: column; gap: 2px; }
.schritte-liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.zwei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.karte-link-gross { text-decoration: none; color: var(--text); gap: 6px; }
.karte-link-gross:hover { border-color: var(--akzent); color: var(--text); }
.karte-link-gross strong { font-size: 16px; }
