/* Admota Web (Auftrag 36): Richtung A „Klar" mit tiefgrüner Kopfzeile. Farben, Radien, Abstände und
   Schrift kommen aus tokens.css (erzeugt aus brand/tokens.json). Keine Inline-Stile (CSP). Signalorange
   nur im Lead-Pfeil. */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; } /* 1rem = Browser-Standard (16 px) */
body {
  margin: 0;
  font-family: var(--schrift-familie);
  font-size: var(--schrift-grund);
  line-height: var(--schrift-zeilenhoehe);
  color: var(--text);
  background: var(--hintergrund);
  -webkit-text-size-adjust: 100%;
}
h1 { font-size: var(--schrift-titel); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--schrift-abschnitt); line-height: 1.3; margin: 0; }
h3 { font-size: 1rem; line-height: 1.3; margin: var(--abstand-2) 0 0; }
p { margin: 0; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }

/* --- Kopfzeile (Tiefgrün, helles Logo) --- */
.kopfzeile {
  display: flex; align-items: center; justify-content: space-between; gap: var(--abstand-4);
  padding: var(--abstand-3) var(--abstand-5);
  background: var(--kopf-grund); color: var(--kopf-text);
}
.marke { display: inline-flex; align-items: center; min-height: var(--ziel-mindesthoehe); padding: var(--abstand-1) 0; }
/* horizontales Logo wie geliefert, mindestens 120 px breit (Brand-Sheet); Schutzraum über den Rand */
.marke img { display: block; height: 30px; width: auto; min-width: 135px; }
.navigation { display: flex; align-items: center; gap: var(--abstand-1); }
.navigation form { margin: 0; }
.navigation a, .navigation button {
  display: inline-flex; align-items: center; min-height: var(--ziel-mindesthoehe);
  padding: 0 var(--abstand-3); border-radius: var(--radius-knopf);
  color: var(--kopf-text-2); text-decoration: none; font: inherit; font-weight: 550;
  background: transparent; border: 1px solid transparent; cursor: pointer;
}
.navigation a:hover, .navigation button:hover { color: var(--kopf-text); background: var(--kopf-aktiv); }
.navigation a[aria-current="page"] { color: var(--kopf-text); background: var(--kopf-aktiv); }
.navigation button { border-color: var(--kopf-rand); color: var(--kopf-text); }
.kopfzeile :focus-visible { outline: 3px solid var(--kopf-text); outline-offset: 2px; }

/* --- Inhalt --- */
main { max-width: 61.25rem; margin: 0 auto; padding: var(--abstand-5) var(--abstand-4) var(--abstand-6); display: grid; gap: var(--abstand-4); }
.seitenkopf { display: grid; gap: var(--abstand-1); }
.unterzeile { color: var(--text-2); }
.leise, .hinweis { color: var(--text-2); }
.vorformatiert { white-space: pre-wrap; overflow-wrap: anywhere; }  /* Nutzungsbedingungen (Auftrag 119): Text mit Zeilenumbrüchen */
.klein { font-size: var(--schrift-klein); }

/* --- Flächen --- */
.abschnitt {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-karte);
  padding: var(--abstand-4); display: grid; gap: var(--abstand-3);
}
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: center; gap: var(--abstand-3); flex-wrap: wrap; }
.gefahrenzone { border-color: var(--fehler); } /* --fehler: 3 : 1 auch dunkel (--gefahr nur 2,6 : 1) */
.gefahrenzone h2 { color: var(--fehler); }

/* Gruppenliste als Karten */
.gruppen { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--abstand-3); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.gruppenkarte {
  display: flex; justify-content: space-between; align-items: center; gap: var(--abstand-3);
  min-height: 4.5rem; padding: var(--abstand-4);
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-karte);
  color: var(--text); text-decoration: none; font-weight: 650;
}
.gruppenkarte:hover { border-color: var(--link); background: var(--flaeche-2); }
.gruppenkarte:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.leerzustand { background: var(--flaeche); border: 1px dashed var(--rand); border-radius: var(--radius-karte); padding: var(--abstand-5); text-align: center; color: var(--text-2); }

/* --- Pillen, Punkte, Lead --- */
.pille {
  display: inline-flex; align-items: center; gap: var(--abstand-1);
  font-size: 0.75rem; font-weight: 650; line-height: 1; white-space: nowrap;
  padding: 0.3rem 0.55rem; border-radius: var(--radius-pille);
  background: var(--flaeche-2); color: var(--text-2); border: 1px solid var(--rand);
}
.pille.admin { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
/* Lead als Pille: Tiefgrün mit weißer Schrift, nie orange Schrift (Freigabe 36, Vorgabe 2) */
.pille.lead { background: var(--lead-scheibe); color: #FFFFFF; border-color: var(--lead-scheibe); }
.punkt { display: inline-block; flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.punkt.aktiv { background: var(--zustand-aktiv); }
.punkt.stillstand { background: var(--zustand-stillstand); }
.punkt.offline, .punkt.pausiert { background: transparent; border: 2px dashed var(--zustand-offline); }
.punkt.warnung { background: var(--warnung); }
.punkt.fehler { background: var(--fehler); }
.statusteil { display: inline-flex; align-items: center; gap: var(--abstand-2); }
.lead-scheibe { display: inline-block; flex: none; width: 1.5rem; height: 1.5rem; }
.lead-scheibe circle { fill: var(--lead-scheibe); stroke: var(--lead-ring); stroke-width: 1.5; }
.lead-scheibe path { fill: var(--lead-pfeil); stroke: var(--lead-pfeil); stroke-width: 1.2; stroke-linejoin: round; }

/* --- Listen (Mitfahrer, Mitglieder, Anmeldung) --- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--abstand-2) var(--abstand-3);
  padding: var(--abstand-3) 0; border-top: 1px solid var(--rand); min-height: var(--ziel-mindesthoehe);
}
.liste > li:first-child { border-top: 0; padding-top: 0; }
.liste .name { display: inline-flex; align-items: center; gap: var(--abstand-2); font-weight: 600; }
.liste .aktionen { display: flex; flex-wrap: wrap; gap: var(--abstand-2); }
.fuehrung { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand-2); }
.fuehrung .trenner { color: var(--text-2); }

/* --- Knöpfe --- */
.knopf, button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--abstand-2);
  min-height: var(--ziel-mindesthoehe); padding: 0 1.1rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: var(--radius-knopf); border: 1px solid transparent; cursor: pointer;
  background: var(--haupt); color: var(--auf-haupt); border-color: var(--rand-stark);
  transition: background-color .15s, border-color .15s;
}
/* #469 Variante 2: Hauptaktion Orange mit dunkler Schrift und Kontur (Orange gegen Weiß nur 2,61 : 1). */
.knopf:hover, button:hover { background: var(--haupt-hover); }
.knopf.sekundaer, button.sekundaer { background: var(--flaeche); color: var(--link); border-color: var(--rand); }
.knopf.sekundaer:hover, button.sekundaer:hover { background: var(--flaeche-2); }
.knopf.gefahr, button.gefahr { background: var(--gefahr); color: var(--auf-gefahr); border-color: var(--gefahr); }
.knopf.gefahr:hover, button.gefahr:hover { background: var(--gefahr-hover); }
button.klein, .knopf.klein { min-height: 2.25rem; padding: 0 0.8rem; font-size: var(--schrift-klein); }
button:disabled, .knopf[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--abstand-2); align-items: center; }
form.inline { display: inline; margin: 0; }
.gefahr-link { color: var(--fehler); font-weight: 600; }

/* --- Formulare --- */
form { display: grid; gap: var(--abstand-3); }
form.inline, .navigation form { display: inline; }
/* Formularblock als fieldset (Auftrag 91): wie das Formular selbst; disabled = sichtbar, nicht bedienbar */
fieldset.block { display: grid; gap: var(--abstand-3); border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.block:disabled { opacity: .45; cursor: not-allowed; }
fieldset.block:disabled button:disabled { opacity: 1; }
label { display: grid; gap: var(--abstand-1); font-weight: 600; }
/* mindestens 16 px: iOS-Safari zoomt sonst beim Antippen hinein */
input, select, textarea {
  font: inherit; font-size: max(1rem, 16px); font-weight: 400;
  min-height: var(--ziel-mindesthoehe); width: 100%; max-width: 28rem;
  padding: 0 var(--abstand-3); color: var(--text); background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: var(--radius-knopf);
}
input:hover { border-color: var(--text-2); }
input[readonly] { background: var(--flaeche-2); }
/* Anmeldung mit E-Mail unter Apple und Google (Auftrag 41); Hinweis am Feld normal gewichtet */
.email-anmeldung { border-top: 1px solid var(--rand); padding-top: var(--abstand-4); }
label .hinweis { font-weight: 400; }
[hidden] { display: none !important; }
.feldreihe { display: flex; flex-wrap: wrap; gap: var(--abstand-2); align-items: end; }
.feldreihe input { flex: 1 1 16rem; }

/* --- Meldungen --- */
.meldung {
  padding: var(--abstand-3) var(--abstand-4); border-radius: var(--radius-knopf); border-left: 4px solid; font-weight: 550;
  background: var(--fehler-grund); color: var(--fehler); border-color: var(--fehler); /* ohne Zusatz: Fehler */
}
.meldung.erfolg { background: var(--erfolg-grund); color: var(--erfolg); border-color: var(--erfolg); }
.meldung.warnung { background: var(--warnung-grund); color: var(--warnung); border-color: var(--warnung); }
.meldung.fehler { background: var(--fehler-grund); color: var(--fehler); border-color: var(--fehler); }
.folgen { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--abstand-1); }

/* --- Einladung --- */
.einladung { display: grid; gap: var(--abstand-2); padding: var(--abstand-3); border-radius: var(--radius-knopf); background: var(--flaeche-2); }

/* --- Karte --- */
.kartenbereich { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: var(--abstand-4); }
#karte { height: 70vh; min-height: 20rem; border-radius: var(--radius-karte); overflow: hidden; border: 1px solid var(--rand); background: var(--karte-grund); }
.statuszeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand-2) var(--abstand-4); font-weight: 600; }
.statuszeile .leise { font-weight: 400; }
.teilnehmer { list-style: none; margin: 0; padding: var(--abstand-3); display: grid; align-content: start; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-karte); }
.teilnehmer .kartenmarke { margin: 0 4px; }
.teilnehmer .kartenmarke .symbol, .teilnehmer .kartenmarke.ich .symbol { width: 18px; height: 18px; }
.teilnehmer .kartenmarke.steht .symbol, .teilnehmer .kartenmarke.offline .symbol { width: 12px; height: 12px; margin: 3px; border-width: 2px; box-shadow: none; }
.teilnehmer li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--abstand-2); align-items: center; padding: var(--abstand-2) 0; border-top: 1px solid var(--rand); }
.teilnehmer li:first-child { border-top: 0; }
.teilnehmer .titel { font-weight: 600; }
.teilnehmer .untertitel { grid-column: 2; color: var(--text-2); font-size: var(--schrift-klein); }
.teilnehmer li.leer { display: block; color: var(--text-2); padding: var(--abstand-2) 0; }
/* Kartenmarken (maplibregl.Marker mit eigenem Element, karte.js; Auftrag 95 mit den Marken aus 92):
   ich = oranger Pfeil ohne Text, fährt = Pfeil mit Kurs in `zustand-aktiv`, steht/ohne Kurs = Punkt (#469: kein Blau), offline/pausiert = grau,
   Lead mit Fähnchen. Das Element hat die Größe des Symbols (Anker Mitte), der Name hängt darunter. */
.kartenmarke { --marke-signal: var(--ich); --marke-blau: var(--zustand-aktiv); position: relative; display: inline-block; line-height: 0; }
.kartenmarke .symbol { display: block; width: 24px; height: 24px; }
.kartenmarke.ich .symbol { width: 32px; height: 32px; }
.kartenmarke svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
.kartenmarke svg path { stroke: #FFFFFF; stroke-width: 2; stroke-linejoin: round; fill: var(--marke-blau); }
.kartenmarke.ich svg path { fill: var(--marke-signal); }
.kartenmarke.steht .symbol, .kartenmarke.offline .symbol {
  width: 16px; height: 16px; margin: 4px; box-sizing: border-box; border-radius: 50%; border: 3px solid #FFFFFF;
  background: var(--marke-blau); box-shadow: 0 1px 3px rgb(0 0 0 / .35);
}
.kartenmarke.offline .symbol { background: var(--zustand-offline); }
.kartenmarke.offline { opacity: .8; }
.kartenmarke.lead::after {
  content: ""; position: absolute; top: -5px; right: -7px; width: 10px; height: 9px; background: var(--text);
  clip-path: polygon(0 0, 100% 30%, 18% 60%, 18% 100%, 0 100%); /* Fähnchen am Stab */
}
.kartenmarke .name {
  position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; line-height: 1.2;
  font-size: 11px; font-weight: 600; color: #14231E; background: rgb(255 255 255 / .85); padding: 1px 5px; border-radius: 999px;
}
.kartenmarke .name:empty { display: none; }

/* --- Stilseite --- */
.stil-modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--abstand-4); }
.stil-modi > section { background: var(--hintergrund); color: var(--text); border-radius: var(--radius-karte); padding: var(--abstand-4); display: grid; gap: var(--abstand-3); border: 1px solid var(--rand); }
.farbfelder { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: var(--abstand-2); list-style: none; margin: 0; padding: 0; }
.farbfeld { border: 1px solid var(--rand); border-radius: var(--radius-knopf); overflow: hidden; font-size: 0.75rem; }
.farbfeld span { display: block; height: 2rem; }
.farbfeld code { display: block; padding: 0.25rem 0.4rem; }
.ff-akzent { background: var(--akzent); } .ff-flaeche { background: var(--flaeche); } .ff-hintergrund { background: var(--hintergrund); }
.ff-aktiv { background: var(--zustand-aktiv); } .ff-stillstand { background: var(--zustand-stillstand); } .ff-offline { background: var(--zustand-offline); }
.ff-kopf { background: var(--kopf-grund); } .ff-fehler { background: var(--fehler); } .ff-erfolg { background: var(--erfolg); }

/* --- Handy --- */
@media (max-width: 30rem) {
  .marke img { height: 26.7px; min-width: 120px; } /* 120 px: Mindestbreite des Logos */
  .navigation a, .navigation button { font-size: 0.9375rem; padding: 0 0.4rem; }
}
@media (max-width: 48rem) {
  .kopfzeile { padding: var(--abstand-2) var(--abstand-4); }
  .navigation a, .navigation button { padding: 0 var(--abstand-2); }
  main { padding: var(--abstand-4) var(--abstand-4) var(--abstand-5); }
  .kartenbereich { grid-template-columns: 1fr; }
  #karte { height: 55vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Planung: Unterlinks über Karte und Blatt, ohne eigene leere Spalte. */
.planen-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); gap: var(--abstand-3); min-height: 70vh; }
.planen-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abstand-2); }
.planen-raster > .planen-leiste { grid-column: 1 / -1; }
.planen-baustellen { display: flex; align-items: center; gap: var(--abstand-2); min-height: var(--ziel-mindesthoehe); }
#planen-baustellen-status:empty, #planen-baustellen-liste:empty { display: none; }
.planen-baustellen input { width: auto; flex: 0 0 auto; margin: 0; }
.planen-leiste a[aria-current="page"] { font-weight: 650; }
.planen-karte { min-height: 60vh; border-radius: var(--radius-karte); overflow: hidden; background: var(--flaeche-2); }
.planen-blatt { align-self: start; }
.sammlung-raster > .planen-blatt { grid-column: 2; grid-row: 2; min-width: 0; }
.sammlung-raster > .planen-karte { grid-column: 1; grid-row: 2; }
.planen-kacheln { list-style: none; padding: 0; margin: var(--abstand-3) 0 0; display: grid; gap: var(--abstand-2); }
.planen-kachel { width: 100%; display: grid; gap: var(--abstand-1); text-align: left; padding: var(--abstand-3); border-radius: var(--radius-knopf);
  border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); min-height: var(--ziel-mindesthoehe); cursor: pointer; }
.planen-kachel.gewaehlt { border: 2px solid var(--akzent); }
.planen-kachel.gewaehlt strong::before { content: "✓ "; }
.planen-suche { display: grid; gap: var(--abstand-1); }
.planen-suchzeile { display: flex; gap: var(--abstand-2); }
.planen-suchzeile input { flex: 1; min-width: 0; }
.planen-treffer-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--abstand-1); }
.planen-treffer-liste:empty { display: none; }
.planen-treffer { width: 100%; justify-content: flex-start; text-align: left; padding: var(--abstand-2); overflow-wrap: anywhere; }
/* E-29-364 (K-105): OSM-Vermerk nur als Text, 9 px wie die App [S, F6 Mindestgröße offen], Klicks gehen an die Karte, nach 10 s weich weg (auf allen MapLibre-Karten) */
.maplibregl-ctrl.maplibregl-ctrl-attrib { font-size: 9px; line-height: 1.4; pointer-events: none; transition: opacity .4s, visibility .4s; }
.vermerk-weg .maplibregl-ctrl.maplibregl-ctrl-attrib { opacity: 0; visibility: hidden; }
.planen-zwischen { list-style: decimal inside; margin: 0; padding: 0; display: grid; gap: var(--abstand-1); }
.planen-zwischen:empty { display: none; }
.planen-zwischen-zeile { display: flex; gap: var(--abstand-2); align-items: center; }
.planen-zwischen-zeile input { flex: 1; min-width: 0; }
.planen-marke.zwischen { background: var(--akzent); display: grid; place-items: center; color: var(--akzent-text); font-size: 11px; line-height: 1; width: 22px; height: 22px; }
.bibliothek-zeile { display: grid; gap: var(--abstand-1); }
.planen-marke { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #0006; }
.planen-marke.start { background: var(--text); }
.planen-marke.ziel { background: var(--fehler); }
@media (max-width: 56rem) { .planen-raster { grid-template-columns: minmax(0, 1fr); } .sammlung-raster > .planen-blatt { grid-column: 1; } .sammlung-raster > .planen-karte { grid-row: 3; } }

/* --- Ä16 W1 Event-Webseite (F6 event-webseite-f6.md): Phase als Wort + Haken, nie nur Farbe; eine Spalte, höchstens 640 px --- */
.kopf-wort { color: var(--kopf-text); font-weight: 600; }
main:has(.phasen) { max-width: 40rem; }
.phasen { list-style: none; display: flex; gap: var(--abstand-2); padding: 0; margin: 0; }
.phase { flex: 1; text-align: center; padding: var(--abstand-2); border-radius: var(--radius-knopf); border: 1px solid var(--rand); color: var(--text-2); min-height: var(--ziel-mindesthoehe); display: flex; align-items: center; justify-content: center; }
.phase-aktiv { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 600; }
.zeitplan { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--abstand-2); }
.zeitplan time { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: var(--abstand-2); }
.zeitplan .naechstes { font-weight: 650; }
.eventlinks li { min-height: var(--ziel-mindesthoehe); }
/* --- Ä16 W2 Portal: Teilnehmertabelle --- */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: var(--abstand-2); border-bottom: 1px solid var(--rand); }
.tabelle th { color: var(--text-2); font-weight: 600; }
form.inline { display: inline; margin-left: var(--abstand-2); }
.formular { display: grid; gap: var(--abstand-2); max-width: 32rem; }
/* --- Ä16 W2 Portal Rollen/Startgruppen (Bilder F6 05.11.): zwei Karten nebeneinander, schmal untereinander; Zustand nie nur Farbe --- */
.portal-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--abstand-3); align-items: start; }
@media (max-width: 52rem) { .portal-raster { grid-template-columns: minmax(0, 1fr); } }
/* DOC-Portal: vier Tabellenspalten passen auf schmalen Geräten nicht in eine Karte.
   Zellüberschriften bleiben sichtbar; die semantische Kopfzeile bleibt für Vorlesehilfen. */
@media (max-width: 40rem) {
  .portal-raster .tabelle, .portal-teilnehmer .tabelle, .portal-raster .tabelle tbody, .portal-teilnehmer .tabelle tbody { display: block; }
  .portal-raster .tabelle thead, .portal-teilnehmer .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .portal-raster .tabelle tr, .portal-teilnehmer .tabelle tr { display: block; border-bottom: 1px solid var(--rand); }
  .portal-raster .tabelle td, .portal-teilnehmer .tabelle td { display: block; border: 0; overflow-wrap: anywhere; }
  .portal-raster .tabelle td[data-spalte]::before, .portal-teilnehmer .tabelle td[data-spalte]::before { content: attr(data-spalte); display: block; font-size: var(--schrift-klein); color: var(--text-2); }
}

.pille.aktiv { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.pille.wartet { background: var(--warnung-grund); color: var(--warnung); border-color: var(--warnung); }
.segment { display: flex; border: 1px solid var(--rand-stark); border-radius: var(--radius-knopf); overflow: hidden; margin: 0; padding: 0; min-width: 0; }
.segment legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.segment label { flex: 1; display: flex; align-items: center; justify-content: center; min-height: var(--ziel-mindesthoehe); padding: 0 var(--abstand-2); font-weight: 600; cursor: pointer; border-left: 1px solid var(--rand); }
.segment label:first-of-type { border-left: 0; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment label:has(input:checked) { background: var(--akzent); color: var(--akzent-text); }
.segment input:checked + span::before { content: "✓ "; }
.segment label:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: -3px; }
.planen-optionen { display: grid; gap: var(--abstand-2); }
.planen-optionen fieldset { margin-top: var(--abstand-2); }
.planen-optionen legend { position: static; width: auto; height: auto; clip-path: none; font-weight: 600; font-size: var(--schrift-klein); padding-bottom: var(--abstand-1); }
.feldtitel { font-weight: 600; font-size: var(--schrift-klein); color: var(--text-2); }
/* --- E-29-286: QR-Aushang (Druck A4, ohne Kopf/Fuß); QR schwarz auf weiß auch im dunklen Modus (Lesbarkeit für Kameras) --- */
.aushang { min-width: 0; overflow-wrap: anywhere; display: grid; gap: var(--abstand-3); justify-items: center; text-align: center; }
.aushang-bild { margin: 0; display: grid; gap: var(--abstand-2); justify-items: center; }
.aushang-qr { display: block; max-width: 100%; width: min(80vw, 14cm); height: auto; background: #fff; }
.aushang-link code { font-size: 1.25rem; overflow-wrap: anywhere; }
.aushang-code { font-weight: 650; font-size: 1.25rem; }
/* Nur der Aushang bekommt ein eigenes Blatt; andere Web-Seiten bleiben unberührt. */
@page aushang { size: A4 portrait; margin: 15mm; }
@media print {
  body:has(.aushang) { page: aushang; background: #fff; color: #000; }
  body:has(.aushang) .kopfzeile, body:has(.aushang) footer,
  body:has(.aushang) .zum-inhalt { display: none; }
  .web-layout:has(.aushang) { display: block; max-width: none; margin: 0; }
  .web-layout > main:has(.aushang) { display: block; max-width: none; padding: 0; margin: 0; }
  .aushang { gap: 4mm; break-inside: avoid; }
  .aushang h1 { font-size: 24pt; }
  .aushang .unterzeile { font-size: 12pt; }
  .aushang-qr { width: 90mm; }
  .aushang-link code, .aushang-code { font-size: 14pt; }
  .aushang .unterzeile, .aushang .leise { color: #000; }
}
/* F6 P-3 (05.11.): Kästchen und Name in einer Zeile, mehrere nebeneinander */
.auswahl { display: flex; flex-wrap: wrap; gap: var(--abstand-2) var(--abstand-3); }
.auswahl label { display: inline-flex; align-items: center; gap: var(--abstand-1); min-height: var(--ziel-mindesthoehe); }
.auswahl label { white-space: nowrap; }
.auswahl input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--akzent); }  /* F6 12:05: ≥ 24 px, Haken kräftig */
/* S3d Rechte-Haken: Kästchen links neben dem Satz (24 px), Satz darf umbrechen */
.haken { display: flex; align-items: flex-start; gap: var(--abstand-2); }
.haken input[type="checkbox"] { flex: none; width: 24px; height: 24px; margin: 0.05em 0 0; accent-color: var(--akzent); }  /* S-3: mit der ersten Zeile */
.logo-vorschau { margin: 0; display: grid; gap: var(--abstand-1); justify-items: start; }

/* T-ADM-562: Kartenaktionen im vorhandenen Planungsplatz, ohne Layoutsprung. */
.planen-raster { position: relative; }
.planen-kontext:not([hidden]) { position: absolute; z-index: 5; top: 1rem; left: 10rem; display: flex; gap: var(--abstand-1); flex-wrap: wrap; }
@media (max-width: 56rem) { .planen-kontext:not([hidden]) { left: 1rem; top: 4rem; } }

/* Statische P2-Symbole neben ihrer Textbeschriftung. */
.admota-symbol { width: 1.5rem; height: 1.5rem; vertical-align: middle; margin-inline-end: .4rem; }
/* Externe SVGs erben currentColor nicht vom HTML-Dokument. */
@media (prefers-color-scheme: dark) {
  :root:not([data-darstellung="hell"]) .admota-symbol { filter: invert(1); }
}
.modus-hell .admota-symbol { filter: none; }
.modus-dunkel .admota-symbol { filter: invert(1); }

/* A29-7: four permanent places, including on narrow screens. */
.plaetze { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--kopf-grund); }
.plaetze a { justify-content: center; padding: var(--abstand-2); }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* #493 (D02): Kartenblase nur aus dem strukturierten Standort einer Nachricht, nie aus Freitext */
.chat-standort { display: grid; grid-template-columns: 56px 1fr; column-gap: 10px; align-items: center; min-height: 56px; margin: 6px 0; padding: 8px; border: 1px solid var(--rand); border-radius: var(--radius-karte); background: var(--flaeche); color: inherit; text-decoration: none; }
.chat-standort-karte { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: var(--flaeche-2); }
.chat-standort small { color: var(--text-2); }

/* BM-14 / E-ADM-385, -390, -444: gemeinsamer Entwurfslook aus rahmen-922
   und bau-040/web. Markenquelle tokens.css und Kartenstile bleiben eigenständig. */
.web-rahmen, .web-rahmen :is(.modus-hell, .modus-dunkel) {
  --schrift-familie: system-ui, sans-serif;
  --schrift-grund: 0.9375rem;
  --schrift-klein: 0.8125rem;
  --schrift-abschnitt: 1.125rem;
  --schrift-titel: 1.5rem;
  --schrift-zeilenhoehe: 1.45;
  --radius-karte: 22px;
  --radius-knopf: 12px;
}
/* #469 (F463-04): Farben nur noch aus tokens.css (Corporate-Farbschema #463 Variante 2), keine zweite Farbquelle hier. */
.zum-inhalt { position: absolute; top: -8rem; left: 1rem; z-index: 100; padding: 1rem; background: var(--flaeche); }
.zum-inhalt:focus { top: 1rem; }
.web-rahmen .kopfzeile { flex-wrap: wrap; }
.web-rahmen h1 { letter-spacing: -0.025em; }
.web-rahmen .abschnitt { padding: 20px; }
.web-rahmen .gruppenkarte, .web-rahmen .leerzustand { border-radius: 16px; }
.web-rahmen :is(input, select, textarea) { background: var(--flaeche-2); }
.web-rahmen :is(button, .knopf):not(.sekundaer):not(.gefahr) { border-radius: var(--radius-knopf); }
.web-rahmen :is(.knopf.sekundaer, button.sekundaer) { background: var(--flaeche-2); color: var(--text); }
.web-rahmen :is(.knopf.sekundaer, button.sekundaer):hover { border-color: var(--link); }
.web-rahmen .navigation { flex-wrap: wrap; }
.web-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 90rem; margin: 0 auto; }
.web-layout:has(> .bereichsleiste) { grid-template-columns: 12rem minmax(0, 1fr); }
.web-layout > main { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: start; overflow-wrap: anywhere; }
.web-rahmen .tabelle:has(> table) { max-width: 100%; overflow-x: auto; }
.bereichsleiste { padding: var(--abstand-5) var(--abstand-3); border-right: 1px solid var(--rand); }
.plaetze { position: static; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--abstand-2); background: transparent; }
.plaetze a, .planen-einstieg, .kontextwege a, .rueckweg {
  display: inline-flex; align-items: center; min-height: var(--ziel-mindesthoehe);
  padding: var(--abstand-2) var(--abstand-3); border-radius: var(--radius-knopf);
  text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
}
.plaetze a { color: var(--text); }
.plaetze a:hover, .kontextwege a:hover { background: var(--flaeche-2); }
.plaetze a[aria-current="page"], .planen-einstieg[aria-current="page"] { background: var(--akzent); color: var(--akzent-text); }
.planen-einstieg { margin-top: var(--abstand-4); border: 1px solid var(--rand-stark); }
.kontextwege { display: flex; flex-wrap: wrap; gap: var(--abstand-2); }
.kontextwege a { background: var(--flaeche); border: 1px solid var(--rand); }
.gruppen-arbeitsbereich { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: var(--abstand-5); align-items: start; }
.gruppen-arbeitsbereich > *, .liste > li > *, .feldreihe > *, form, label { min-width: 0; }
.arbeitsblatt { background: var(--flaeche); }
.web-rahmen button.klein, .web-rahmen .knopf.klein { min-height: var(--ziel-mindesthoehe); }
.web-rahmen .liste .name, .web-rahmen .leise, .web-rahmen h1 { overflow-wrap: anywhere; }
.web-rahmen textarea { padding: var(--abstand-3); min-height: 7rem; resize: vertical; }
.web-rahmen section[id] { scroll-margin-top: var(--abstand-4); }
.web-rahmen .fuss { max-width: 90rem; margin: 0 auto; padding: var(--abstand-4); }
.web-rahmen .fuss a { display: inline-flex; align-items: center; min-height: var(--ziel-mindesthoehe); }
@media (max-width: 64rem) {
  .gruppen-arbeitsbereich { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .web-rahmen .abschnitt { padding: var(--abstand-3); }
  .web-layout:has(> .bereichsleiste) { grid-template-columns: minmax(0, 1fr); }
  .bereichsleiste { display: flex; overflow-x: auto; align-items: center; gap: var(--abstand-2); border-right: 0; border-bottom: 1px solid var(--rand); padding: var(--abstand-3) var(--abstand-4); }
  .plaetze { display: flex; flex-wrap: nowrap; flex: 0 0 auto; }
  .bereichsleiste a { flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; }
  .planen-einstieg { margin-top: 0; }
  .web-rahmen .navigation a, .web-rahmen .navigation button { padding: 0 var(--abstand-2); }
}

.web-rahmen .gruppenkarte { overflow-wrap: anywhere; }
.web-rahmen summary { min-height: var(--ziel-mindesthoehe); padding-block: var(--abstand-2); cursor: pointer; }
.web-rahmen .liste .aktionen { min-width: 0; max-width: 100%; }
.web-rahmen .feldreihe input { flex-basis: min(16rem, 100%); }

/* G1 Leitung: Teilnehmerliste und Dateifeld dürfen den schmalen Rasterplatz nicht verbreitern. */
.portal-teilnehmer { display: grid; gap: var(--abstand-4); min-width: 0; }
.portal-teilnehmer .formular { grid-template-columns: minmax(0, 1fr); }
.portal-teilnehmer input { min-width: 0; }

/* Portal: Ankreuzfelder gehören neben ihren Satz; das ganze Label ist eine Trefffläche. */
.formular .portal-haken { display: flex; align-items: center; gap: var(--abstand-2); min-height: var(--ziel-mindesthoehe); cursor: pointer; }
.formular .portal-haken input:is([type="checkbox"], [type="radio"]) { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; accent-color: var(--akzent); }
.portal-reiter { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; gap: var(--abstand-1); margin-bottom: var(--abstand-3); }
.portal-reiter a { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--ziel-mindesthoehe); padding: var(--abstand-1) var(--abstand-2); border: 1px solid var(--rand); border-radius: var(--radius-knopf); }
.portal-reiter a[aria-current="page"] { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

/* Gruppenrouten: Aktionen gemeinsam ausrichten, Status als eigene Zeile. */
#gruppenrouten-editor { display: grid; gap: var(--abstand-3); }
#gruppenrouten-editor h3 { margin: 0; }
#editor-status:empty { display: none; }
#gruppenrouten-editor .gruppenroute-import { display: block; }
#gruppenrouten-editor .gruppenroute-import[open] summary { margin-bottom: var(--abstand-3); }
#gruppenrouten-editor .knopfreihe > :is(.knopf, button) { padding-inline: 0.625rem; }

/* BM-14: breite Arbeitsflächen direkt neben der Seitenleiste; Mobilraster erhalten. */
.breit-inhalt, .karten-raster { display: contents; }
@media (min-width: 1200px) {
  .web-layout > main:has(> .breit-inhalt) { max-width: none; margin-inline: 0; }
  .breit-inhalt .karten-raster {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--abstand-4); align-items: start;
  }
  .breit-inhalt .karten-raster > * { min-width: 0; }
  .breit-inhalt .gruppen-arbeitsbereich { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breit-inhalt .gruppen { grid-template-columns: minmax(0, 1fr); }
  .breit-inhalt #chat-verlauf .liste > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .breit-inhalt #chat-verlauf .chat-text { grid-column: 1 / -1; }
  .breit-inhalt :is(input, select, textarea) { max-width: 480px; }
}


/* GS-A: Farbe + Initialen und Live-Ring in Listen und Gesprächskopf. */
.gruppenkreis { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--akzent); color: var(--akzent-text);
  font-size: 16px; font-weight: 700; line-height: 1; }
.gruppenkreis-1 { background: #ad195b; } .gruppenkreis-2 { background: #b93f30; }
.gruppenkreis-3 { background: #317781; } .gruppenkreis-4 { background: #687d3f; }
.gruppenkreis-live { outline: 2px solid var(--ich); outline-offset: 2px; }
.gruppenkreis-klein { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
.gruppenkopf { display: flex; align-items: center; gap: 12px; }

/* 0.42: derselbe Ebenensatz auf allen Karten. */
.karten-popover>summary{list-style:none}.karten-popover>summary::-webkit-details-marker{display:none}
.karten-popover-inhalt{position:absolute;right:54px;top:0;z-index:30;width:286px;max-width:calc(100vw - 80px);padding:12px;border:1px solid var(--rand);border-radius:18px;background:var(--flaeche);color:var(--text);box-shadow:0 12px 35px #0003}
.karten-popover-inhalt:after{content:'';position:absolute;right:-8px;top:18px;width:14px;height:14px;transform:rotate(45deg);background:var(--flaeche);border-top:1px solid #cbd7d2;border-right:1px solid #cbd7d2}
.karten-segment{display:flex;background:var(--flaeche-2);border-radius:12px;padding:3px;margin:10px 0;gap:2px}.karten-segment button{flex:1;min-width:0;background:transparent;color:inherit;border:0;border-radius:9px;padding:9px 5px}.karten-segment button[aria-pressed=true]{background:var(--flaeche);color:var(--akzent,#236e63);box-shadow:0 1px 3px #0002}
.karten-kacheln{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.karten-kacheln button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:66px;padding:6px 2px;border:1px solid #cad7d0;border-radius:13px;background:transparent;color:inherit;font-size:12px}.karten-kacheln img,.karten-einstellzeile img{width:21px;height:21px}.karten-kacheln button[aria-pressed=true]{background:var(--flaeche-2);color:var(--akzent,#236e63);border-color:var(--akzent,#236e63)}
.karten-einstellzeile{display:flex;align-items:center;gap:12px;padding:12px 2px;border-top:1px solid #cad7d0;color:inherit;text-decoration:none}.karten-einstellzeile span{margin-left:auto}.karten-popover-inhalt p:empty{display:none}
.karten-ich{grid-column:1/-1}.karten-ich-layout{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:24px}.karten-vorschau{min-height:460px;position:sticky;top:20px;border-radius:16px;overflow:hidden}.karten-vorschau>div{height:100%;min-height:460px}.karten-stilzeilen button{display:flex;align-items:center;gap:12px;width:100%;padding:14px;text-align:left;background:transparent;color:inherit;border:0;border-bottom:1px solid #cad7d0}.karten-stilzeilen small{display:block}.karten-stilmini{width:58px;height:44px;object-fit:cover;border-radius:8px}.karten-punkt{color:#ad6000}.karten-farbwahl{display:flex;flex-wrap:wrap;gap:7px}.karten-farbwahl button{width:36px;height:36px;border-radius:50%;border:3px solid transparent}.karten-farbwahl button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px}.sammlung-kachelrahmen{position:relative}.sammlung-kachelrahmen .sammlung-kachel{width:100%;height:100%}.sammlung-auge{position:absolute;right:8px;top:8px;min-width:44px;min-height:44px;background:var(--flaeche);color:var(--akzent,#236e63);border:1px solid #cad7d0;border-radius:50%}.sammlung-auge img{width:22px;height:22px}.sammlung-auge[aria-pressed=false]{opacity:.55}
.abspielen-web{position:absolute;left:16px;right:70px;bottom:18px;z-index:8;padding:14px;border-radius:18px;background:var(--flaeche);box-shadow:0 4px 20px #0003}.abspielen-web[hidden]{display:none}.abspielen-web .karten-segment{display:inline-flex}.abspielen-kapsel{display:inline-block;padding:6px 12px;border-radius:22px;background:#a75800;color:white}.abspielen-web input[type=range]{width:100%}.abspielposition{background:#236e63;color:white;border:3px solid white;border-radius:50%;width:26px;height:26px;box-shadow:0 1px 5px #0006}.copilot-karte-041.abspiel-aktuell{outline:2px solid var(--akzent,#236e63)}
@media(max-width:760px){.karten-ich-layout{display:flex;flex-direction:column-reverse}.karten-vorschau,.karten-vorschau>div{min-height:230px;height:230px;position:relative;top:0}.karten-popover-inhalt{max-height:calc(100dvh - 145px);overflow:auto}.abspielen-web{left:8px;right:60px;bottom:8px}}



.karten-popover-inhalt{position:fixed}.karten-popover-inhalt:after{top:var(--pfeil,18px)}.karten-ich-layout{align-items:start}.karten-ich label{display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:400}.karten-ich input[type=checkbox]{appearance:auto;width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0;accent-color:var(--akzent)}.karten-ich .seitenkopf{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.karten-ich .seitenkopf button{width:auto}.karten-stilzeilen button{justify-content:flex-start}.karten-stilzeilen button[aria-pressed=true]{background:var(--flaeche-2)}.abspielen-web .karten-segment button{min-width:48px;white-space:nowrap}.karten-vorschau{height:min(700px,calc(100dvh - 100px));top:80px}.karten-vorschau>div{height:100%}
@media(max-width:760px){.karten-vorschau{height:200px;min-height:200px;position:sticky;top:110px;z-index:1;flex:0 0 200px}.karten-vorschau>div{height:200px;min-height:200px}.karten-ich-layout>div:first-child{width:100%}.karten-popover-inhalt{max-height:calc(100dvh - 24px)}}

/* #290: dieselben drei gemessenen Kurvenstufen wie im Datenbestand #281. */
.kurven-legende>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:11px}
.kurven-legende span{min-width:0}.kurven-legende i{display:block;height:3px;border-radius:3px;margin:4px 0 6px;background:var(--kurven-farbe)}
.kurven-legende small{display:block;font-size:10px;color:var(--text-2)}
.kurven-stufe-1{--kurven-farbe:#92713D}.kurven-stufe-2{--kurven-farbe:#B05C26}.kurven-stufe-3{--kurven-farbe:#A33122}
.modus-dunkel .kurven-stufe-1{--kurven-farbe:#E6BC78}.modus-dunkel .kurven-stufe-2{--kurven-farbe:#F39A52}.modus-dunkel .kurven-stufe-3{--kurven-farbe:#FF704F}
.karten-popover-inhalt{max-height:calc(100dvh - 24px);overflow:auto}
.karten-popover-inhalt .darstellung-titel{margin-bottom:0}.karten-popover-inhalt [hidden]{display:none}

@media (max-width: 56rem) { .sammlung-raster .bibliothek-zeile { display: grid; overflow-wrap: anywhere; } }

/* #402: Bild über den Initialen; bei Ladefehler bleiben die Initialen sichtbar. */
.gruppenkreis, .kopf-gruppenkreis { position: relative; }
.gruppenbild { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: var(--papier, white); }
