/* MYZEL – tgo-Leitstand. Mobil zuerst (390 px), hell/dunkel, keine Inline-Stile (CSP style-src 'self'). */
@font-face { font-family: "Inter"; src: url("inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f4f1ea; --bg2: #ebe6da; --card: #fffdf8; --ink: #23201a; --ink2: #5b5446; --line: #d9d1bf;
  --acc: #2f6b3a; --acc2: #6f8f3a; --amber: #b7791f; --red: #b3412f; --blue: #2e5f86;
  --hyphe: #8a6d3b; --hyphe2: #b89a62; --glow: rgba(184,154,98,.35);
  --strang: #7a5a2b; --puls: #e8f3c4; --spitze: #f6c94a; --pilz: #9c5b2e; --pilz-blass: #efe6d2; --stiel: #f3ead7;
  --land-aktiv: #9cc28f; --land-partner: #a9c4dc; --land-offen: #f0c97a; --land-gesucht: #e3dccb; --land-rest: #efebe2; --land-rand: #c9bfa8;
  --r: 14px; --sp: 16px; --touch: 44px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15130f; --bg2: #1d1a15; --card: #221f19; --ink: #efe8d8; --ink2: #b8ad96; --line: #3a342a;
    --acc: #8fcf8a; --acc2: #b5d27a; --amber: #e2b45a; --red: #e58a74; --blue: #8fb8dc;
    --hyphe: #d8bd85; --hyphe2: #f0dcae; --glow: rgba(240,220,174,.28);
    --strang: #e7cf98; --puls: #fffbe0; --spitze: #ffe27a; --pilz: #c9874f; --pilz-blass: #3a3428; --stiel: #e9dcc0;
    --land-aktiv: #3d5a33; --land-partner: #2f4a63; --land-offen: #6b5427; --land-gesucht: #2f2a21; --land-rest: #1f1c17; --land-rand: #4a4335;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15130f; --bg2: #1d1a15; --card: #221f19; --ink: #efe8d8; --ink2: #b8ad96; --line: #3a342a;
  --acc: #8fcf8a; --acc2: #b5d27a; --amber: #e2b45a; --red: #e58a74; --blue: #8fb8dc;
  --hyphe: #d8bd85; --hyphe2: #f0dcae; --glow: rgba(240,220,174,.28);
  --strang: #e7cf98; --puls: #fffbe0; --spitze: #ffe27a; --pilz: #c9874f; --pilz-blass: #3a3428; --stiel: #e9dcc0;
  --land-aktiv: #3d5a33; --land-partner: #2f4a63; --land-offen: #6b5427; --land-gesucht: #2f2a21; --land-rest: #1f1c17; --land-rand: #4a4335;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--acc); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: calc(6px + var(--safe-t)) var(--sp) 6px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.marke { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: var(--touch); flex: 1; text-decoration: none; color: var(--ink); }
.marke svg { flex: none; }
.marke b { font-weight: 600; letter-spacing: .08em; font-size: 17px; }
.marke span { display: block; font-size: 13px; color: var(--ink2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.knopf { min-height: var(--touch); min-width: var(--touch); padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; text-decoration: none; color: var(--ink); }
.knopf:hover { border-color: var(--hyphe); }
.knopf:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--hyphe2); outline-offset: 2px; }
.knopf.haupt { background: var(--acc); color: var(--bg); border-color: var(--acc); font-weight: 600; }
.knopf.klein { padding: 0 10px; font-size: 14px; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }

/* Navigation: mobil umbrechende Reiter unter dem Kopf (scrollt mit), Desktop Seitenleiste */
.nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px var(--sp); border-bottom: 1px solid var(--line); background: var(--bg2); }
.nav a { min-height: var(--touch); display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav a .zahl { margin-left: 6px; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; }

main { padding: var(--sp); padding-bottom: calc(32px + var(--safe-b)); max-width: 1280px; margin: 0 auto; }
h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 4px; font-weight: 600; }
h2 { font-size: 18px; margin: 24px 0 8px; font-weight: 600; }
h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
.unter { color: var(--ink2); font-size: 16px; margin: 0 0 14px; }
.hinweis { font-size: 14px; color: var(--ink2); }
.karte-box, .kasten { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.kasten + .kasten { margin-top: 12px; }

/* Urteil zuerst */
.urteil { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; font-size: 15px; }
.punkt { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; background: var(--ink2); }
.punkt.gruen { background: var(--acc); } .punkt.gelb { background: var(--amber); } .punkt.rot { background: var(--red); } .punkt.grau { background: var(--line); }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 92px; }
.kachel .wert { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kachel .wert.txt { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }   /* Text statt Zahl (Partner-Status bei einem Land) */
.kachel .name { font-size: 13px; color: var(--ink2); }
.kachel .fuss { font-size: 12px; color: var(--ink2); margin-top: 4px; }
.kachel.warn .wert { color: var(--red); }
.tonnen { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; font-size: 13px; }
.tonnen b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Myzel-Netz */
.netz-wrap { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.netz-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 14px 0; }
.netz { display: block; width: 100%; height: auto; touch-action: pan-y; }
.netz .land { stroke: var(--land-rand); stroke-width: .5; fill: var(--land-rest); vector-effect: non-scaling-stroke; }
.netz .land.aktiv { fill: var(--land-aktiv); } .netz .land.vertrag_offen { fill: var(--land-offen); }
.netz .land.partner { fill: var(--land-partner); } .netz .knoten.land.partner .hut { fill: var(--blue); }
.legende i.aktiv.partner { background: var(--land-partner); }
.netz .land.partner_gesucht { fill: var(--land-gesucht); stroke-dasharray: 3 2; stroke: var(--hyphe2); }
.netz .land.plattform { cursor: pointer; }
.netz .karte { opacity: .55; }
/* Pilzgeflecht: Breiten in Bildschirm-Pixeln (non-scaling-stroke), damit es auf dem Handy und am Desktop gleich fein wirkt */
.netz .hyphe, .netz .strang, .netz .puls, .netz .spitzen, .netz .endchen, .netz .lamellen { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.netz .hyphe { stroke: var(--hyphe2); }
.netz .hyphe.h1 { stroke-width: 1.2px; opacity: .85; } .netz .hyphe.h2 { stroke-width: .8px; opacity: .7; } .netz .hyphe.h3 { stroke-width: .55px; opacity: .6; }
.netz .strang { stroke: var(--hyphe); opacity: .55; }
.netz .strang.aktiv { opacity: .95; stroke: var(--strang); }
.netz .puls { stroke: var(--puls); stroke-dasharray: .8 99.2; stroke-dashoffset: 100; opacity: .95; animation: puls-lauf 7s linear infinite; }
.netz .spitzen { stroke: var(--acc2); stroke-width: 3px; opacity: .9; }
.netz .endchen { stroke: var(--hyphe2); stroke-width: 1.8px; opacity: .7; }
.netz .spitzen.frisch { stroke: var(--spitze); stroke-width: 5px; filter: drop-shadow(0 0 3px var(--spitze)); animation: spross 2.6s ease-in-out infinite; }
.netz .knoten { cursor: pointer; }
.netz .knoten .kern { stroke: var(--card); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.netz .knoten.tgo .kern { fill: var(--ink); }
.netz .knoten.land .kern { fill: var(--acc); }
.netz .knoten.land.vertrag_offen .kern { fill: var(--amber); }
.netz .knoten.land.partner_gesucht .kern { fill: var(--card); stroke: var(--hyphe); stroke-dasharray: 3 2; }
.netz .knoten.land .hut { fill: var(--pilz); }
.netz .knoten.land.vertrag_offen .hut { fill: var(--amber); }
.netz .knoten.land.partner_gesucht .hut { fill: var(--pilz-blass); stroke: var(--hyphe); stroke-dasharray: 3 2; }
.netz .knoten .stiel { fill: var(--stiel); stroke: var(--hyphe); stroke-width: .8px; vector-effect: non-scaling-stroke; }
.netz .knoten .lamellen { stroke: var(--card); stroke-width: .8px; opacity: .55; }
.netz .knoten.firma .kern { fill: var(--blue); }
.netz .knoten.partner .kern { fill: var(--amber); }
.netz .knoten .hof-glow { fill: var(--glow); }
.netz .knoten.frisch .hof-glow { animation: puls 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.netz .knoten.gewaehlt .kern { stroke: var(--ink); stroke-width: 3px; }
.netz text { fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; font-weight: 600; }
.netz text.zahl { fill: #fff; stroke: none; }
.netz .treffer { fill: transparent; }
@keyframes puls-lauf { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes spross { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes puls { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .netz .puls { animation: none; display: none; }
  .netz .spitzen.frisch, .netz .knoten.frisch .hof-glow { animation: none; }
}
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px 12px; font-size: 13px; color: var(--ink2); }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--land-rand); }
.legende i.aktiv { background: var(--land-aktiv); } .legende i.vertrag_offen { background: var(--land-offen); } .legende i.partner_gesucht { background: var(--land-gesucht); border-style: dashed; }
.legende i.rund { border-radius: 50%; border: 0; } .legende i.spitze { background: var(--spitze); box-shadow: 0 0 4px var(--spitze); } .legende i.hoefe { background: var(--acc2); } .legende i.firma { background: var(--blue); } .legende i.partner { background: var(--amber); }
.detail { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 12px; font-size: 15px; }
.detail dt { color: var(--ink2); }
.detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ticker und Listen */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.filter label { display: flex; flex-direction: column; font-size: 13px; color: var(--ink2); gap: 2px; flex: 1 1 140px; }
.filter input, .filter select, .feld input { min-height: var(--touch); border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; font-size: 16px; width: 100%; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-bottom: 1px solid var(--line); padding: 10px 2px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 15px; }
.liste > li:last-child { border-bottom: 0; }
.liste > li > .chip, .liste > li > .punkt { align-self: start; justify-self: start; margin-top: 3px; }
.liste .zeit { font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.liste .neu { animation: neu 2.5s ease-out; }
@keyframes neu { from { background: var(--glow); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .liste .neu { animation: none; } }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); margin-right: 4px; white-space: nowrap; }
.chip.agricoin { border-color: var(--acc); color: var(--acc); } .chip.carbofarm { border-color: var(--blue); color: var(--blue); } .chip.myzel { border-color: var(--hyphe); color: var(--hyphe); }
.chip.rot { border-color: var(--red); color: var(--red); } .chip.gelb { border-color: var(--amber); color: var(--amber); } .chip.gruen { border-color: var(--acc); color: var(--acc); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.live.aus::before { background: var(--line); }

.karten { display: grid; grid-template-columns: 1fr; gap: 10px; }
.zeile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: block; color: var(--ink); text-decoration: none; }
a.zeile:hover { border-color: var(--hyphe); }
.zeile .oben { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.zeile .oben b { font-weight: 600; }
.zeile .werte { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink2); margin-top: 4px; }
.zeile .werte b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.leer { padding: 18px; text-align: center; color: var(--ink2); background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); font-size: 15px; }

/* Netzwerk-Seite */
.graph { width: 100%; height: auto; display: block; touch-action: pan-y; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.graph .kante { fill: none; stroke: var(--hyphe); stroke-width: 1.4; opacity: .75; }
.graph .kante.hof_hof { stroke: var(--acc); stroke-dasharray: 4 3; }
.graph .kante.lieferung { stroke: var(--blue); }
.graph circle { stroke: var(--card); stroke-width: 1.5; }
.graph circle.hof { fill: var(--acc2); } .graph circle.firma { fill: var(--blue); } .graph circle.partner { fill: var(--amber); } .graph circle.berater, .graph circle.mitarbeiter { fill: var(--hyphe); }
.graph .kante.berater, .graph .kante.mitarbeiter, .graph .kante.betreuung { stroke: var(--hyphe); stroke-dasharray: 2 3; }
.graph text { fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3px; }

/* Anmeldung */
.anmelden { max-width: 420px; margin: 24px auto; }
.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; color: var(--ink2); }
.feld input { color: var(--ink); }
.feld input.code { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.fehler { color: var(--red); font-size: 15px; min-height: 1.5em; margin: 4px 0; }
.qr { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 10px; margin: 10px 0; }
.qr svg { width: 220px; height: 220px; }
.geheim { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; background: var(--bg2); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.codes { columns: 2; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; padding-left: 18px; }
.uhr { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.nav .uhr { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 4px; }
.kopf .uhr { display: none; }
@media (min-width: 700px) { .kopf .uhr { display: inline; } .nav .uhr { display: none; } }
.liste a, .werte a, .urteil a, .detail a:not(.knopf) { display: inline-flex; align-items: center; min-height: var(--touch); }

details.mehr { margin-top: 8px; }
details.mehr summary { min-height: var(--touch); display: flex; align-items: center; cursor: pointer; color: var(--ink2); font-size: 14px; }
.fusszeile { font-size: 13px; color: var(--ink2); padding: 16px var(--sp) calc(16px + var(--safe-b)); text-align: center; }

@media (min-width: 760px) {
  .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .karten.zwei { grid-template-columns: 1fr 1fr; }
  .uebersicht-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
  .uebersicht-raster > section > h2:first-child { margin-top: 16px; }
}
@media (min-width: 1100px) {
  .rahmen { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .nav { flex-direction: column; flex-wrap: nowrap; border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100svh - 57px); padding: 16px 12px; position: sticky; top: 57px; align-self: start; }
  .nav a { border-radius: 10px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .kopf { position: static; }
}
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.galerie figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--bg2); }
.galerie img { display: block; width: 100%; height: 100px; object-fit: contain; }
.galerie figcaption { font-size: 13px; color: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.feld input[type="color"] { width: 56px; min-height: 44px; padding: 2px; }
.feld textarea { border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 10px; font: inherit; font-size: 16px; width: 100%; color: var(--ink); }
.feld input[type="file"] { min-height: 44px; font-size: 15px; }


/* r42 Flächenpass: Klärungen doppelt angemeldeter Flächen */
.fp-seiten { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0; }
@media (min-width: 720px) { .fp-seiten { grid-template-columns: 1fr 1fr; } }
.fp-seite { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.fp-seite.fp-neu { border-left: 4px solid var(--red); } .fp-seite.fp-alt { border-left: 4px solid var(--blue); }
.fp-skizze { display: block; width: 100%; max-width: 320px; height: auto; margin: 6px 0; background: var(--bg2); border-radius: 10px; }
.fp-p-neu { fill: var(--red); fill-opacity: .25; stroke: var(--red); stroke-width: 2; }
.fp-p-alt { fill: var(--blue); fill-opacity: .2; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 3; }
.fp-entsch { display: grid; gap: 6px; margin-top: 8px; max-width: 640px; }
.fp-entsch select, .fp-entsch textarea { width: 100%; max-width: 100%; min-height: var(--touch); font: inherit; }
.fp-entsch .knopf { justify-self: start; }

/* ---- Eingang, Verzeichnis, Zwei-Faktor-Assistent (04.11.2026) ---- */
.nav a .zahl.ruhig { background: var(--amber); color: #1d1a15; }
.chip.blau { border-color: var(--blue); color: var(--blue); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.chips .chip { margin-right: 0; }

/* Assistent: groß, klar, Schritt für Schritt */
.assistent h1 { font-size: 24px; margin-top: 10px; }
.w-oben { font-size: 14px; color: var(--ink2); margin: 0; }
.w-schritte { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 4px; }
.w-schritte li { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border: 2px solid var(--line); color: var(--ink2); background: var(--card); }
.w-schritte li.jetzt { border-color: var(--acc); color: var(--acc); }
.w-schritte li.fertig { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.w-text { font-size: 17px; line-height: 1.5; }
.w-text.wichtig { font-weight: 600; }
.knopf.gross { min-height: 52px; font-size: 17px; padding: 0 20px; width: 100%; margin-top: 6px; }
.knopfreihe .knopf.gross { width: auto; flex: 1 1 200px; }
.feld input.code.gross { font-size: 30px; min-height: 60px; letter-spacing: .35em; }
.qr.gross svg { width: 240px; height: 240px; max-width: 100%; }
ol.codes.gross { columns: 1; list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
ol.codes.gross li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
ol.codes.gross .nr { font-size: 13px; color: var(--ink2); }
ol.codes.gross code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 22px; letter-spacing: .06em; font-weight: 600; color: var(--ink); }
@media (min-width: 520px) { ol.codes.gross { grid-template-columns: 1fr 1fr; } }
.w-tipps { margin: 4px 0 14px; padding-left: 20px; font-size: 15px; }
.w-tipps li { margin: 4px 0; }
.w-check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 600; padding: 12px; border: 2px solid var(--acc); border-radius: 12px; margin: 10px 0 6px; cursor: pointer; }
.w-check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--acc); }

/* Eingang */
.eg-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.eg-status .knopf[aria-pressed="true"], .vz-reiter .knopf[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.eg-meine { flex-direction: row !important; align-items: center; gap: 10px !important; min-height: var(--touch); flex: 0 1 auto !important; font-size: 15px !important; color: var(--ink) !important; align-self: flex-end; }
.eg-meine input { width: 24px; height: 24px; min-height: 0 !important; margin: 0; }
.eg-regel { margin: -4px 0 6px; font-size: 14px; }
.eg-regel summary { min-height: var(--touch); display: flex; align-items: center; cursor: pointer; color: var(--ink2); }
.eg-liste { display: grid; grid-template-columns: 1fr; gap: 12px; }
.eg-karte { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.eg-karte.rot { border-left-color: var(--red); } .eg-karte.gelb { border-left-color: var(--amber); } .eg-karte.gruen { border-left-color: var(--acc); }
.eg-karte .oben { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.eg-karte .oben .punkt { margin-top: 0; }
.eg-typ { font-size: 15px; margin-right: auto; }
.eg-titel { font-size: 17px; margin: 6px 0 2px; }
.eg-karte .werte { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink2); margin-top: 4px; }
.eg-karte .werte b { color: var(--ink); font-weight: 600; }
.eg-frist { font-weight: 600; }
.eg-frist.rot { color: var(--red); } .eg-frist.gelb { color: var(--amber); }
.eg-aktionen { margin-top: 10px; }
.eg-aktionen .knopf { flex: 1 1 auto; }
.eg-form { margin-top: 10px; padding: 12px; background: var(--bg2); border-radius: 10px; }
.eg-form select { min-height: var(--touch); border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; font-size: 16px; width: 100%; color: var(--ink); }
.eg-meldung { font-size: 15px; margin: 6px 0 0; min-height: 0; }
.eg-meldung:empty { display: none; }
.eg-hinweis { background: var(--card); border: 1px solid var(--acc); border-radius: var(--r); padding: 10px 14px; font-size: 15px; margin: 0 0 12px; }
.eg-det { margin-top: 8px; font-size: 15px; }
.eg-det summary { min-height: var(--touch); display: flex; align-items: center; cursor: pointer; color: var(--acc); font-weight: 600; }
.eg-det h4 { font-size: 15px; margin: 12px 0 4px; }
.eg-text { white-space: pre-wrap; }
dl.detail dd a { min-height: var(--touch); }

/* Verzeichnis */
.vz-reiter { margin-bottom: 8px; }
.vz-reiter .knopf { text-decoration: none; }
.vx-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0; font-size: 14px; }
.vx-zeile label { display: flex; flex-direction: column; gap: 2px; color: var(--ink2); flex: 1 1 180px; }
.vx-zeile input { min-height: var(--touch); border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 10px; font-size: 16px; color: var(--ink); width: 100%; }
@media (min-width: 900px) { .eg-liste { grid-template-columns: 1fr 1fr; } }

/* ---- Lage-Dashboard, Länderansicht, Werkzeuge (mz3) ---- */
.lage-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.urteil.gross { font-size: 17px; padding: 16px; border-width: 2px; }
.urteil.gross.rot { border-color: var(--red); } .urteil.gross.gelb { border-color: var(--amber); } .urteil.gross.gruen { border-color: var(--acc); }
.urteil.gross .punkt { width: 20px; height: 20px; margin-top: 2px; }
a.kachel { display: block; color: var(--ink); text-decoration: none; }
.kachel.lk { border-left: 6px solid var(--line); }
.kachel.lk.rot { border-left-color: var(--red); } .kachel.lk.rot .wert { color: var(--red); }
.kachel.lk.gelb { border-left-color: var(--amber); } .kachel.lk.gruen { border-left-color: var(--acc); }
.lage-kacheln .fuss { font-size: 13px; color: var(--ink2); margin-top: 4px; }
@media (min-width: 760px) { .lage-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lage-kacheln { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
dl.lage-werte { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 14px; }
dl.lage-werte div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
dl.lage-werte dt { color: var(--ink2); } dl.lage-werte dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
dl.lage-werte div.txt { grid-column: 1 / -1; }   /* Textwert über beide Spalten, kein Wortumbruch mitten im Wort */
dl.lage-werte div.rot dd { color: var(--red); } dl.lage-werte div.gelb dd { color: var(--amber); }
.lage-land .knopfreihe { margin-top: 8px; }
.lage-ansicht { margin-top: 14px; }
.lage-dringend a { display: inline; min-height: 0; }
.lage-dringend li { align-items: start; }
.lage-balken { width: 100%; max-width: 520px; height: auto; display: block; }
.lage-balken .b-ag, .legende i.b-ag { fill: var(--acc); background: var(--acc); }
.lage-balken .b-cf, .legende i.b-cf { fill: var(--blue); background: var(--blue); }
.lage-balken .b-mz, .legende i.b-mz { fill: var(--hyphe); background: var(--hyphe); }
.lage-balken text { fill: var(--ink2); font-size: 12px; font-family: inherit; }
.lage-balken .b-wert { fill: var(--ink); font-weight: 600; }
.legende i.b-ag, .legende i.b-cf, .legende i.b-mz { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ansicht-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px var(--sp); background: var(--amber); color: #1d1a15; font-size: 15px; }
.ansicht-banner .knopf { background: #fffdf8; color: #1d1a15; border-color: #1d1a15; }
.werkzeuge section { margin-top: 14px; }
.wz-dateien { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* r43 Flächenpass: Wechselmeldung, Datum der Entscheidung, Verlauf */
.fp-ab:not([hidden]) { display: grid; gap: 4px; }
.fp-ab input { min-height: var(--touch); font: inherit; max-width: 100%; }
.fp-wechsel { margin: 4px 0; }
.fp-log li { overflow-wrap: anywhere; }
