/* Stil der Vorlage. Farben und Schriften kommen als Variablen aus marke.css (vom Build aus
   app.config.json erzeugt, Kontrast geprueft). Hier steht keine Farbe der Kundin.
   Mindestversionen (Kapitel 16 §5): iOS 15, Android Chrome 90, aktuelle Desktop-Browser.
   Alles Neuere nur mit Rueckfall davor: svh (iOS 15.4), dvh, :focus-visible (iOS 15.4).
   Kein color-mix() (erst iOS 16.2): abgeleitete Toene rechnet der Build aus (werkzeug/kontrast.mjs). */

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* sonst gewinnt display:flex einer Klasse gegen hidden (Audit, niedrig) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Die feste Leiste unten (.leiste) verdeckt sonst, was der Browser beim Fokus oder Antippen gerade an den unteren Rand
   rollt (Haken der Reise, Felder bei der Tastatur). Mit Abstand rollt er es darueber. Fiel als wackliger Reise-Test auf. */
html:has(#leiste) { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 1.0625rem/1.55 var(--schrift-text);
  min-height: 100vh; min-height: 100svh;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
body.seite { padding-bottom: 2rem; }
h1, h2, h3 { font-family: var(--schrift-titel); line-height: 1.2; font-weight: var(--titel-gewicht, 600); overflow-wrap: break-word; hyphens: auto; } /* lange deutsche Woerter (Teilnahmebedingungen) sprengen sonst schmale Bildschirme */
h1 { font-size: 1.6rem; margin: 1.25rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
a { color: var(--akzent); }
img { max-width: 100%; height: auto; }

.rahmen {
  max-width: 40rem; margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right));
}
main:focus { outline: none; }
.unsichtbar, .springen:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springen:focus { position: fixed; top: .5rem; left: .5rem; z-index: 50; background: var(--grund); padding: .5rem 1rem; }

.kopf { padding-top: env(safe-area-inset-top); background: var(--grund); border-bottom: 1px solid var(--rand-leise); }
.kopf-innen { display: flex; align-items: center; gap: .6rem; min-height: 3.25rem; }
.kopf-logo { height: 2rem; width: auto; }
.kopf-name { font-family: var(--schrift-titel); font-weight: var(--titel-gewicht, 600); font-size: 1.05rem; }

.karte { background: var(--flaeche); border-radius: .9rem; padding: 1.1rem 1rem; margin: 0 0 1rem; }
.feld { margin: 0 0 1rem; }
label { display: block; margin: 0 0 .3rem; font-weight: 500; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; /* unter 16px zoomt iOS beim Tippen (U22) */
  padding: .7rem .8rem; border: 1px solid var(--rand); border-radius: .55rem; background: var(--grund); color: var(--text);
}
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; } /* sonst sprengt eine Checkbox die Flex-Zeile (U150) */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .6rem 1.15rem; border: 0; border-radius: .6rem;
  background: var(--akzent); color: var(--akzent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.knopf.voll { width: 100%; margin-top: .25rem; }
.knopf.voll + .knopf.voll { margin-top: .5rem; }
.knopf.zweit { background: transparent; color: var(--akzent); box-shadow: inset 0 0 0 1.5px var(--akzent); }
.knopf.gefahr { background: var(--gefahr); color: #fff; }
.knopf.gefahr-text { color: var(--gefahr); box-shadow: inset 0 0 0 1.5px var(--gefahr); }
.knopf.klein { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
.knopf:disabled { opacity: .55; cursor: default; }
/* Laeuft (A.laeuft setzt aria-busy): sofort ein drehendes Rad im Knopf, nicht nur grau. Sonst wirkt ein langsamer Klick wie keiner. */
.knopf[aria-busy="true"] { opacity: .85; cursor: progress; }
.knopf[aria-busy="true"]::after { content: ''; display: inline-block; width: .95em; height: .95em; margin-left: .5em; vertical-align: -.12em; flex: none;
  border: .14em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kreisel .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .knopf[aria-busy="true"]::after { animation-duration: 2.4s; } }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.knopfreihe > .knopf { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.b-titel { font-size: 1.05rem; margin: 1.25rem 0 .25rem; }
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: 3px solid var(--akzent); outline-offset: 2px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; } /* Rueckfall: ohne :focus-visible bleibt der Rahmen */
@media (hover: hover) and (pointer: fine) { .knopf:hover { filter: brightness(1.08); } } /* U24 */

.leise { color: var(--leise); }
.status { min-height: 1.5em; }
.gruss { font-family: var(--schrift-titel); font-size: 1.5rem; margin: 1.25rem 0 .5rem; }
.start-bild { display: block; width: 100%; border-radius: .9rem; margin-top: 1rem; aspect-ratio: 16 / 9; object-fit: cover; }
.text p, .text ul, .text ol { margin: 0 0 .9rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.kachel { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: .9rem; background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 600; min-height: 6rem; }
.kachel .symbol { width: 1.75rem; height: 1.75rem; color: var(--akzent); }

/* Startseite der Kundinnen (Vorbild Wolfsgeschwister): Bild mit kurzem Gruss darauf, darunter eine ruhige Liste
   nur der Bereiche, die fuer sie gelten. Ohne Startbild steht der Gruss als Titel. */
.held { margin: 1rem 0 1.1rem; }
.held .gruss { margin: 1.25rem 0 .25rem; font-size: 1.75rem; line-height: 1.2; }
.held.mit-bild { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.5rem; background: var(--akzent);
  aspect-ratio: 4 / 3; min-height: 13rem; max-height: 52vh; max-height: 52svh; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12); }
.held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.held.mit-bild::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%); }
.held.mit-bild .held-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.35rem 1.35rem; }
.held.mit-bild .gruss { margin: 0; color: #fff; font-size: 1.75rem; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
@media (min-width: 40rem) { .held.mit-bild { aspect-ratio: 16 / 9; } .held.mit-bild .gruss { font-size: 2.1rem; } }
.start-text { margin: 0 0 1.25rem; }
.start-text > :last-child { margin-bottom: 0; }
.start-liste { list-style: none; margin: 0 0 1.5rem; padding: 0; background: var(--flaeche); border-radius: 1.25rem; overflow: hidden; }
.start-liste > li { position: relative; }
.start-liste > li + li::before { content: ''; position: absolute; top: 0; left: 4.4rem; right: 0; height: 1px; background: var(--rand-leise); }
.start-zeile { display: flex; align-items: center; gap: .9rem; min-height: 4rem; padding: .75rem 1rem; color: var(--text); text-decoration: none; }
.start-zeile:focus { outline-offset: -3px; }
.start-zeile:active { background: var(--rand-leise); }
@media (hover: hover) and (pointer: fine) { .start-zeile:hover { background: var(--rand-leise); } }
.start-symbol { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: var(--akzent-hell); color: var(--akzent); }
.start-symbol .symbol { width: 1.35rem; height: 1.35rem; }
.start-zeile-text { flex: 1; min-width: 0; }
.start-zeile-text strong { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.start-stand { display: block; font-size: .9rem; line-height: 1.35; }
.start-stand:empty { display: none; }
.start-zeile > .symbol { flex: none; width: 1.1rem; height: 1.1rem; color: var(--leise); }
.start-liste li.wichtig { background: var(--akzent-hell); }
.start-liste li.wichtig .start-symbol { background: var(--akzent); color: var(--akzent-text); }
.symbol { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: .7rem 0; border-top: 1px solid var(--rand-leise); }
.liste > li:first-child { border-top: 0; }
.zeile { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.zeilenknopf { display: block; width: 100%; min-height: 44px; padding: .2rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
/* Modul aufgaben: Haken links, Titel und Angaben linksbuendig, Erledigtes durchgestrichen */
.zeile.aufgabe { justify-content: flex-start; align-items: flex-start; }
.zeile.aufgabe > span { flex: 1 1 auto; min-width: 0; }
.zeile.aufgabe .schalter-zeile { padding-top: .7rem; }
.aufgabe-titel { min-height: 0; padding-top: .55rem; overflow-wrap: anywhere; }
.zeile.aufgabe.erledigt .aufgabe-titel { text-decoration: line-through; color: var(--leise); }
.aufgaben-filter { display: flex; justify-content: flex-end; margin: .6rem 0 .2rem; }
.aufgaben-filter select { width: auto; max-width: 100%; }
.af-dok { margin-top: .6rem; }
.af-vorschlaege { list-style: none; padding: 0; }
.af-vorschlag { display: grid; grid-template-columns: auto 1fr; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--linie, rgba(127,127,127,.2)); }
.af-vorschlag > input[type=checkbox] { width: 1.3rem; height: 1.3rem; margin-top: .65rem; }
.af-vorschlag > div { display: grid; gap: .35rem; min-width: 0; }
.af-vorschlag input[type=date] { justify-self: start; }
.af-vorschlag.aus > div { opacity: .5; }
.block { display: block; }
.klein { font-size: .9rem; }
.schalter-zeile { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 1rem; font-weight: 500; }
.schalter-zeile input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; }
.knopfreihe input { flex: 1 1 12rem; width: auto; }
.ebene h3 { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
/* Assistent oben auf der Uebersicht: die erste Anlaufstelle */
.ue-assistent { border: 2px solid var(--akzent); }
.ue-assistent-titel { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.ue-assistent-titel .symbol { width: 1.4rem; height: 1.4rem; color: var(--akzent); }
.ue-assistent textarea { width: 100%; font-size: 16px; }
.ue-assistent .knopfreihe { justify-content: flex-end; margin-top: .5rem; }
/* Einrichtung als Checkliste */
.einrichtung-zahl { font-weight: 600; margin: .25rem 0 1rem; }
.einrichtung-zahl.achtung { color: var(--akzent); }
.liste.einrichtung { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.einrichtung-punkt { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid var(--rand-leise); }
.einrichtung-punkt:first-child { border-top: 0; }
.einrichtung-marke { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--flaeche); border: 1px solid var(--rand); }
.stand-ok .einrichtung-marke { color: var(--akzent); }
.stand-offen .einrichtung-marke { background: var(--akzent); color: var(--grund); border-color: var(--akzent); }
.stand-hinweis .einrichtung-marke { color: var(--leise); }
.einrichtung-text { flex: 1; min-width: 0; }
.einrichtung-text p { margin: .2rem 0 0; }
.einrichtung-stand { color: var(--leise); font-size: .85rem; }
.stand-offen .einrichtung-stand { color: var(--akzent); font-weight: 600; }
.stand-uebersprungen { opacity: .75; }
.stand-uebersprungen .einrichtung-marke { color: var(--leise); }
.leise-knopf { color: var(--leise); border-color: var(--rand-leise); }
.einrichtung-text .knopfreihe { margin-top: .5rem; justify-content: flex-start; }
.einrichtung-kurz li { padding: .35rem 0; }
.integrationen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: .75rem; }
.integration { border: 1px solid var(--rand-leise); border-radius: .75rem; padding: .9rem; background: var(--grund); min-width: 0; overflow-wrap: anywhere; } /* lange Adressen im Hinweis (Weiterleitungs-URI) brechen um statt ueber die Kachel zu laufen */
.integration h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.integration.fehler { border-color: var(--gefahr); }
/* KI-Assistent: alle Wege auf einer Tafel ueber die ganze Breite (Chat, Claude-Connector, WhatsApp) */
.integration.ki-tafel { grid-column: 1 / -1; margin: 0 0 .75rem; }
/* Integrationen kompakt (15.11.2026): Zahlen oben, Gruppen, Zeilen zum Aufklappen */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ig-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0 .5rem; }
.ig-zahl { background: var(--flaeche); border-radius: .6rem; padding: .55rem .75rem; display: flex; flex-direction: column; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.ig-zahl strong { font-size: 1.4rem; line-height: 1.2; }
.ig-zahl-an strong { color: var(--erfolg, #5f8a6a); } .ig-zahl-achtung strong { color: #b07a00; }
.ig-gruppe { font-size: .8rem; font-weight: 600; color: var(--leise); text-transform: none; margin: 1.1rem 0 .35rem; }
.ig-block { border: 1px solid var(--rand-leise); border-radius: .75rem; background: var(--grund); overflow: hidden; }
.ig-zeile + .ig-zeile { border-top: 1px solid var(--rand-leise); }
.ig-zeile > summary { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; cursor: pointer; list-style: none; min-height: 2.75rem; }
.ig-zeile > summary::-webkit-details-marker { display: none; }
.ig-zeile > summary::after { content: '›'; margin-left: auto; color: var(--leise); transition: transform .15s; font-size: 1.2rem; line-height: 1; }
.ig-zeile[open] > summary::after { transform: rotate(90deg); }
.ig-zeile > summary:hover { background: var(--flaeche); }
.ig-punkt { width: .6rem; height: .6rem; border-radius: 50%; flex: none; background: var(--rand); }
.ig-an { background: var(--erfolg, #5f8a6a); } .ig-achtung { background: #e0a800; box-shadow: 0 0 0 3px color-mix(in srgb, #e0a800 25%, transparent); } .ig-neutral { background: var(--akzent); }
.ig-name { font-weight: 600; flex: none; }
.ig-kurz { color: var(--leise); font-size: .85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ig-inhalt { padding: .1rem .9rem .9rem 2.2rem; overflow-wrap: anywhere; }
.ig-inhalt .ki-tafel { border: 0; padding: 0; margin: 0; background: transparent; }
.ig-inhalt .ki-tafel > h3, .ig-inhalt .ki-tafel > p:first-of-type { display: none; }
.ig-technik { margin-top: .6rem; } .ig-technik summary { cursor: pointer; color: var(--leise); }
/* Nicht verbundene Dienste als Karten (17.11.2026): Symbol und Name, eine Zeile wofuer, rechts der Knopf */
.ig-neu { display: grid; gap: .6rem; }
.ig-karte { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: .75rem; background: var(--flaeche); border: 1px solid var(--rand-leise); min-width: 0; }
.ig-karte-text { flex: 1; min-width: 0; }
.ig-karte-kopf { display: flex; align-items: center; gap: .5rem; margin: 0; }
.ig-karte-zweck { margin: .2rem 0 0; color: var(--leise); font-size: .9rem; overflow-wrap: anywhere; }
.ig-karte .ig-claude { margin-top: .25rem; padding: 0; min-height: 0; font-size: .8rem; color: var(--leise); text-decoration: underline; text-underline-offset: 2px; }
.ig-karte .ig-verbinden { flex: none; background: var(--grund); }
.ig-symbol { width: 1.1rem; height: 1.1rem; color: var(--akzent); flex: none; }
.ig-zeile > summary .ig-symbol { margin-left: -.2rem; }
@media (max-width: 30rem) { .ig-karte { padding: .75rem .8rem; gap: .7rem; } }
@media (max-width: 30rem) { .ig-zahlen { gap: .35rem; } .ig-zahl { padding: .45rem .55rem; } .ig-zahl strong { font-size: 1.2rem; } .ig-inhalt { padding-left: .9rem; } .ig-kurz { display: none; } }
.ki-wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: .9rem; margin-top: .6rem; }
.ki-weg { border-top: 1px solid var(--rand-leise); padding-top: .6rem; min-width: 0; }
.ki-kopf { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0 0 .4rem; }
.ki-adresse { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0 0 .4rem; }
.ki-adresse code { font-size: .85rem; min-width: 0; }
.ki-schritte, .ki-liste { margin: .3rem 0 .4rem; padding-left: 1.2rem; }
.hinweis-warn { margin: .4rem 0; padding: .45rem .6rem; border-radius: .5rem; background: color-mix(in srgb, #e0a800 18%, transparent); border-left: 3px solid #e0a800; }
.marke.aus { background: var(--flaeche); }
.gefahr-farbe { color: var(--gefahr); }
select { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--rand); border-radius: .55rem; background: var(--grund); color: var(--text); }
.video { position: relative; margin: 0 0 1rem; padding: 1.25rem; border-radius: .9rem; background: var(--flaeche); text-align: center; }
.video.laeuft { padding: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.video.laeuft iframe { width: 100%; height: 100%; border: 0; display: block; }
@supports not (aspect-ratio: 1) { .video.laeuft { height: 0; padding-bottom: 56.25%; } .video.laeuft iframe { position: absolute; inset: 0; top: 0; left: 0; } }
.videowahl { display: flex; align-items: center; gap: .75rem; }
.videowahl img { border-radius: .4rem; flex: none; }
.vereinbarung-text { white-space: pre-wrap; max-height: 50vh; overflow: auto; padding: 1rem; margin: 0 0 1rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--grund); }
.unterschrift-feld { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; touch-action: none; background: #fff; border: 1px solid var(--rand); border-radius: .6rem; }
.mitte { text-align: center; }
.einrichten { padding-left: 1.25rem; margin: 1rem 0; }
.einrichten > li { margin-bottom: 1.25rem; }
.einrichten > li.erledigt { opacity: .6; }
.einrichten-schritte { padding-left: 1.25rem; margin: .5rem 0; }
.einrichten-schritte li { margin: .3rem 0; }
.b-zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.b-zeile.aus { opacity: .55; }
.b-frequenz { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--rand); border-radius: .75rem; }
.schalter { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 2.9rem; height: 1.7rem; margin: 0; border-radius: 1rem; background: var(--rand); cursor: pointer; transition: background .15s; }
.schalter::after { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.schalter:checked { background: var(--akzent); }
.schalter:checked::after { transform: translateX(1.2rem); }
.schalter:disabled { cursor: not-allowed; opacity: .5; }
.schalter:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
/* Der Schalter ist ein input: Feld-Innenabstand und Rahmen (input, textarea, select), width:auto fuer Haken (U150) und die
   Haken-Groesse der Schalterzeile duerfen ihn nicht treffen, sonst schrumpft er zum Kreis und der Knopf ragt beim Einschalten
   ueber die Schiene (iPhone, 12.11.2026). (0,2,1) schlaegt alle drei. */
input[type=checkbox].schalter { width: 2.9rem; height: 1.7rem; padding: 0; border: 0; margin: 0; }
/* Netzwerk: Richtlinien (beim Beitreten aufklappbar, nach einer neuen Fassung als Karte) */
.nw-richtlinien ol { padding-left: 1.25rem; margin: 0 0 .9rem; }
.nw-richtlinien li { margin: 0 0 .5rem; }
.as-schritte { list-style: none; padding: 0; margin: .5rem 0 0; }
.as-schritt { display: flex; gap: .6rem; align-items: baseline; margin: 0 0 .45rem; }
.as-haken { flex: none; width: 1.2rem; text-align: center; font-weight: 700; color: var(--leise); }
.as-schritt.ok .as-haken { color: var(--akzent); }
.as-code { font: 600 1.35rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--grund); border-radius: .55rem; padding: .6rem .8rem; margin: .4rem 0 .8rem; display: inline-block; user-select: all; }
.as-eingabe { margin: .4rem 0 1rem; padding: .7rem .8rem; background: var(--grund); border-radius: .55rem; }
.as-eingabe dt { font-size: .85rem; font-weight: 600; margin: .35rem 0 0; }
.as-eingabe dt:first-child { margin-top: 0; }
.as-eingabe dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.as-eingabe dd.as-code { font-size: .85rem; word-break: break-all; display: block; }
.as-app { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem .75rem; padding: .6rem 0; border-top: 1px solid var(--rand-leise); }
.as-app .knopfreihe { margin: 0; }
.as-nummer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; }
.as-wortlaut { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0 .8rem; font-size: .95rem; }
.as-wortlaut input { margin-top: .3rem; flex: none; width: auto; }
.as-beispiele { padding-left: 1.2rem; margin: .4rem 0 .8rem; }
.as-beispiele li { margin: 0 0 .35rem; }
details > summary { cursor: pointer; margin: 0 0 .75rem; color: var(--akzent); }
.social-medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem; margin: .5rem 0; }
.social-medien figure { position: relative; margin: 0; }
.social-medien img, .social-medien video, .social-wahl img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; display: block; }
.social-medien figure button { position: absolute; top: .25rem; right: .25rem; }
.social-wahl { padding: 0; border: 0; background: none; cursor: pointer; min-height: 2.75rem; }
.social-zeile { display: flex; gap: .75rem; align-items: center; }
.social-zeile > img, .social-zeile > video, .social-leer { flex: none; width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: .5rem; background: var(--flaeche); }
.wa-verlauf { display: flex; flex-direction: column; gap: .5rem; max-height: 55vh; overflow-y: auto; margin: 1rem 0; padding: .25rem; }
.wa-blase { max-width: 85%; padding: .55rem .75rem; border-radius: .9rem; background: var(--grund); border: 1px solid var(--rand-leise); }
.wa-blase p { margin: 0 0 .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-blase.ein { align-self: flex-start; border-bottom-left-radius: .25rem; }
.wa-blase.aus { align-self: flex-end; border-bottom-right-radius: .25rem; background: var(--akzent-hell); }
.ablauf { list-style: none; margin: 1rem 0; padding: 0; }
.ablauf li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 auto 1.25rem; padding: .7rem .9rem; max-width: 24rem; border: 1px solid var(--rand); border-radius: .7rem; background: var(--grund); }
.ablauf li + li::before { content: ''; position: absolute; top: -1.25rem; left: 50%; height: 1.25rem; border-left: 2px solid var(--rand); }
.ablauf .ablauf-ausloeser { flex-direction: column; align-items: flex-start; border-color: var(--akzent); background: var(--akzent-hell); }
.ablauf .warten { border-style: dashed; }
.ablauf-schritt > span { flex: 1; min-width: 0; }
.ablauf details { width: 100%; }
code.block { display: block; padding: .6rem .75rem; margin: .5rem 0; border-radius: .5rem; background: var(--grund); border: 1px solid var(--rand-leise); overflow-wrap: anywhere; font-size: .9rem; }
.marke { display: inline-block; padding: .1rem .55rem; border-radius: 1rem; background: var(--akzent-hell); color: var(--text); font-size: .85rem; font-weight: 600; }

.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: var(--grund); border-top: 1px solid var(--rand-leise);
  padding: .25rem max(.25rem, env(safe-area-inset-right)) calc(.25rem + env(safe-area-inset-bottom)) max(.25rem, env(safe-area-inset-left));
}
.leiste-punkt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 48px; padding: .3rem .2rem; color: var(--leise); text-decoration: none; font-size: .75rem; border-radius: .5rem; }
.leiste-punkt[aria-current="page"] { color: var(--akzent); font-weight: 600; }
@media (max-width: 380px) { .leiste-punkt { font-size: .68rem; padding-left: 0; padding-right: 0; } }
.leiste-punkt span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meldung { position: fixed; left: 1rem; right: 1rem; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 70; /* ueber .ebene-hg (60), sonst unsichtbar aus jedem Fenster */ max-width: 30rem; margin: 0 auto; padding: .75rem 1rem; border-radius: .6rem; background: var(--text); color: var(--grund); }
.meldung.fehler { background: var(--gefahr); color: #fff; }
.inapp-hinweis { background: var(--hinweis); padding: .75rem 1rem; border-radius: .6rem; margin: 0 0 1rem; }
.inapp-hinweis .knopf { margin-top: .25rem; }
.fuss { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1rem; font-size: .9rem; }
.fuss a { color: var(--leise); }

.ebene-hg { position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); }
.ebene { width: 100%; max-width: 32rem; max-height: 90vh; overflow: auto; background: var(--grund); border-radius: 1rem 1rem 0 0; padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 40rem) { .ebene-hg { align-items: center; } .ebene { border-radius: 1rem; } }
.ebene:focus { outline: none; }

.sw-leiste { position: fixed; left: 0; right: 0; bottom: calc(4rem + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .75rem 1rem; background: var(--text); color: var(--grund); }
.sw-leiste button { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } } /* U28 */

/* Verwaltung (zweite App unter /verwaltung/) */
.kachel.achtung { box-shadow: inset 0 0 0 2px var(--akzent); }
/* Fehler rot (Winni 13.11.2026), nicht in der Akzentfarbe */
.kachel.fehler { box-shadow: inset 0 0 0 2px var(--gefahr); background: color-mix(in srgb, var(--gefahr) 9%, var(--flaeche)); }
.kachel.fehler .kachel-wert { color: var(--gefahr); }
.kachel-details .zeile { align-items: flex-start; gap: .75rem; }
.kachel-details .marke { margin-left: .4rem; }
.kachel-details-wert { font-weight: 600; white-space: nowrap; }
.kachel-wert { font-size: 1.8rem; font-weight: 700; line-height: 1.1; color: var(--akzent); }
.kachel .leise { font-weight: 400; }
.mehr-link { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: var(--text); text-decoration: none; min-height: 44px; }
.zur-verwaltung { margin: 0 0 1rem; }
.bereich.einzeln > h2:first-child { display: none; }
.leiste .nur-breit { display: none; }
@media (min-width: 900px) {
  body[data-app="verwaltung"] .leiste { position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: 15rem; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: .15rem; padding: 4.5rem .75rem 1rem; border-top: 0; border-right: 1px solid var(--rand-leise); overflow-y: auto; }
  body[data-app="verwaltung"] .leiste .leiste-punkt { flex: none; flex-direction: row; justify-content: flex-start; gap: .65rem; font-size: .95rem; padding: .55rem .75rem; min-height: 40px; }
  body[data-app="verwaltung"] .leiste .nur-breit { display: flex; }
  body[data-app="verwaltung"] .leiste .nur-schmal { display: none; }
  body[data-app="verwaltung"] .leiste .leiste-zurueck { margin-top: auto; }
  body[data-app="verwaltung"] main, body[data-app="verwaltung"] .kopf-innen { margin-left: 16rem; max-width: 60rem; }
}

/* Modul Seiten (Verwaltung) */
.seiten-abschnitt { margin: .75rem 0; }
.seiten-bild img { max-height: 120px; width: auto; border-radius: .5rem; margin: .25rem 0; }
.seiten-paar { display: grid; gap: .25rem; padding: .5rem 0; border-bottom: 1px solid var(--rand-leise); }
.seiten-paar textarea, .seiten-paar input { width: 100%; }
.feld .label { display: block; font-weight: 600; margin-bottom: .25rem; }

/* Modul Kurse */
.kurs-balken { height: .5rem; border-radius: 1rem; background: var(--rand-leise); overflow: hidden; margin: .5rem 0 .25rem; }
.kurs-balken span { display: block; height: 100%; background: var(--akzent); }
.kurs-kachel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .6rem; }
.kurs-lektionen { list-style: none; padding: 0; }
.kurs-link { display: flex; gap: .6rem; align-items: baseline; padding: .55rem 0; min-height: 44px; color: var(--text); text-decoration: none; }
.kurs-link.gesperrt { color: var(--leise); }
.kurs-haken { width: 1.2rem; flex: none; color: var(--akzent); font-weight: 700; }
.kurs-datei { margin: 1rem 0; } .kurs-datei audio { width: 100%; }
.kurs-blaettern { justify-content: space-between; }
.kurs-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .35rem 0; }
.kurs-zeile input { flex: 1 1 8rem; min-width: 0; }
.kurs-lektion { margin: .5rem 0; } .kurs-baustein { display: grid; gap: .25rem; padding: .5rem 0; border-bottom: 1px solid var(--rand-leise); }
.kurs-baustein textarea { width: 100%; }

/* Zahl an der Leiste und in Listen (ungelesen) */
.leiste-punkt { position: relative; }
.zahl-punkt { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--akzent); color: var(--grund); font-size: .72rem; font-weight: 700; line-height: 1; }
.leiste-punkt .zahl-punkt { position: absolute; top: .15rem; left: calc(50% + .35rem); max-width: none; overflow: visible; }
/* Hinweise: in der breiten Seitenleiste und unter "Mehr" steht die Zahl rechts neben dem Namen */
@media (min-width: 900px) { body[data-app="verwaltung"] .leiste .leiste-punkt .zahl-punkt { position: static; margin-left: auto; } }
.mehr-link .zahl-punkt { margin-left: auto; }
.hinweise-liste .hinweis { display: grid; gap: .25rem; padding: .75rem 0; }
.hinweise-liste .hinweis > .knopf { justify-self: start; margin-top: .25rem; }
.hinweise-liste .hinweis code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Modul Gemeinschaft */
.gem-gruppe { display: flex; align-items: center; gap: .75rem; }
.gem-gruppe-text { flex: 1 1 auto; min-width: 0; }
.gem-gruppe-text .block { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gem-zeichen { font-size: 1.5rem; width: 2rem; text-align: center; flex: none; }
.gem-nachrichten-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
/* Gemeinschaft: Karte (karte-ansicht.js). Pins als Tropfen in der Akzentfarbe, der eigene mit Rand; Zahlen je Gegend als
   halbdurchsichtige Kreise. Leaflet bringt eigene Stile mit (/m/gemeinschaft-karte/leaflet.css). */
.gem-karte { height: 58vh; height: 58svh; min-height: 300px; max-height: 620px; border-radius: 14px; overflow: hidden; margin: .75rem 0; background: var(--flaeche); border: 1px solid var(--rand-leise); position: relative; z-index: 0; }
.gem-karte.aus { display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; height: auto; min-height: 120px; }
.gem-karte .leaflet-container { font: inherit; background: var(--grund); }
.gem-karte .leaflet-control-attribution { font-size: .7rem; background: var(--grund); color: var(--leise); opacity: .9; }
.gem-karte .leaflet-control-attribution a { color: var(--leise); }
.gem-karte .leaflet-bar a { background: var(--flaeche); color: var(--text); border-color: var(--rand-leise); }
.gem-pin { display: block; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--akzent); box-shadow: 0 2px 6px rgba(0,0,0,.25); border: 2px solid var(--flaeche); }
.gem-pin.eigen { border: 3px solid var(--text); }
.gem-pin span { display: block; transform: rotate(45deg); color: var(--akzent-text); font-weight: 700; font-size: .85rem; line-height: 30px; text-align: center; }
.gem-gegend { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--akzent); color: var(--akzent-text); opacity: .82; font-weight: 700; box-shadow: 0 0 0 6px var(--akzent-hell); cursor: pointer; }
.gem-karte-person { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.gem-karte-suche { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.gem-karte-suche .feld { flex: 1 1 12rem; margin: 0; }
.gem-karte-zustimmung { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 .75rem; }
.gem-karte-zustimmung input { margin-top: .25rem; flex: none; width: 1.2rem; height: 1.2rem; }
.gem-nachrichten-link strong { flex: 1; }
.gem-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 1rem; }
.gem-leiste select { width: auto; }
.gem-eingabe textarea { width: 100%; resize: vertical; min-height: 3rem; }
.gem-eingabe .knopfreihe { margin-top: .5rem; }
.gem-bildvorschau img, .gem-bild { display: block; max-width: 100%; max-height: 420px; border-radius: .6rem; margin: .5rem 0; object-fit: contain; }
.gem-faden { padding-bottom: .5rem; }
.gem-beitrag + .gem-antworten { border-top: 1px solid var(--rand-leise); margin-top: .5rem; padding-top: .25rem; }
.gem-beitrag.antwort { padding: .5rem 0 .25rem .75rem; border-left: 2px solid var(--rand-leise); margin-top: .5rem; }
.gem-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.gem-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .35rem 0; }
.gem-reaktionen { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0; }
.gem-reaktion { border: 1px solid var(--rand-leise); background: transparent; color: inherit; border-radius: 999px; padding: .15rem .55rem; font-size: .85rem; min-height: 32px; cursor: pointer; }
.gem-reaktion.meine { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 12%, transparent); }
.gem-reaktion.neu { color: var(--leise); }
.gem-emojis { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.gem-emoji { font-size: 1.8rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--rand-leise); background: transparent; cursor: pointer; }
.gem-aktionen { display: flex; flex-wrap: wrap; gap: .75rem; }
.textknopf { background: none; border: 0; padding: .35rem 0; color: var(--leise); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.gem-angeheftet { border-color: var(--akzent); }
.gem-verlauf { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.gem-blase { max-width: 85%; align-self: flex-start; background: var(--flaeche); border-radius: 1rem 1rem 1rem .3rem; padding: .5rem .8rem; }
.gem-blase.eigen { align-self: flex-end; background: color-mix(in srgb, var(--akzent) 16%, transparent); border-radius: 1rem 1rem .3rem 1rem; }
.gem-blase .gem-text { margin: 0 0 .2rem; }
.gem-audio { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; }
.gem-audio audio { flex: 1; min-width: 0; max-width: 100%; }
.gem-video { display: block; width: 100%; max-height: 420px; border-radius: .6rem; margin: .5rem 0; background: #000; }
.gem-datei { display: inline-block; margin: .5rem 0; padding: .5rem .8rem; border: 1px solid var(--rand-leise); border-radius: .6rem; color: inherit; overflow-wrap: anywhere; }
.gem-aufnahme { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .5rem 0; }
.gem-punkt { width: .7rem; height: .7rem; border-radius: 50%; background: #d33; animation: gem-puls 1s ease-in-out infinite alternate; }
@keyframes gem-puls { to { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .gem-punkt { animation: none; } }

/* Kurswerkstatt */
.werkstatt-kopf { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.werkstatt-text { width: 100%; min-height: 18rem; font-family: inherit; line-height: 1.6; }
.werkstatt-zwei { display: grid; gap: 1rem; }
@media (min-width: 720px) { .werkstatt-zwei { grid-template-columns: 1fr 1fr; } }
.werkstatt-diff p { margin: 0 0 .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-gleich { color: var(--leise); }
.diff-aenderung { border: 1px solid var(--rand-leise); border-radius: .6rem; padding: .6rem .75rem; margin: .5rem 0 1rem; }
.diff-alt, .diff-neu { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: .4rem; }
.diff-alt del { background: color-mix(in srgb, var(--gefahr) 18%, transparent); text-decoration: line-through; }
.diff-neu ins { background: color-mix(in srgb, var(--akzent) 20%, transparent); text-decoration: none; }
.diff-wahl { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; }

/* Kurswerkstatt (Vollbild): Kursplan, Kapitel links, Lektion wie bei der Teilnehmerin, Kulissen rechts */
.ws { --ws-fertig: var(--erfolg, #5f8a6a); --ws-entwurf: var(--akzent); --ws-gedanken: #c2975c; --ws-leer: color-mix(in srgb, var(--leise) 35%, transparent);
  display: flex; flex-direction: column; height: 100%; background: var(--flaeche); color: var(--text); }
.ws-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: calc(.55rem + env(safe-area-inset-top)) 1rem .55rem; background: var(--grund); border-bottom: 1px solid var(--rand-leise); }
.ws-titel { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; }
.ws-titel strong { font-family: var(--schrift-titel); font-weight: var(--titel-gewicht, 600); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-eyebrow, .ws-eyebrow2, .ws-k { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); }
.ws-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ws-zurueck { text-decoration: none; }
.ws-stand { min-width: 5rem; text-align: right; }
.ws-stand-fehler { color: var(--gefahr); }
.ws-zahl { margin-left: .4rem; padding: .05rem .45rem; border-radius: 1rem; background: color-mix(in srgb, var(--akzent-text, #fff) 25%, transparent); font-size: .8em; }
.ws-schalter { display: inline-flex; padding: 3px; border-radius: 2rem; background: var(--flaeche); border: 1px solid var(--rand-leise); }
.ws-schalter button { border: 0; background: none; padding: .35rem .8rem; border-radius: 2rem; font: inherit; font-size: .85rem; color: var(--text); cursor: pointer; min-height: 32px; }
.ws-schalter button[aria-pressed="true"] { background: var(--grund); box-shadow: 0 1px 3px rgba(0,0,0,.14); font-weight: 600; }
.ws-kapitel-knopf { display: none; }
.ws-koerper { flex: 1; min-height: 0; display: flex; position: relative; }

/* Kursplan */
.ws-plan { flex: 1; overflow-y: auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; }
.ws-plan-kopf { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; margin-bottom: 1.25rem; }
.ws-plan-kopf > div:first-child { flex: 1 1 16rem; }
.ws-gross { font-family: var(--schrift-titel); font-size: 1.9rem; line-height: 1.15; }
.ws-naechstes { flex: 1 1 18rem; background: var(--grund); border: 1px solid color-mix(in srgb, var(--akzent) 35%, transparent); border-radius: .9rem; padding: .85rem 1rem; }
.ws-naechstes ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.ws-naechstes .textknopf { color: var(--text); text-align: left; font-size: .95rem; }
.ws-fortschritt { margin-top: .6rem; }
.ws-balken { display: flex; height: 7px; border-radius: 1rem; overflow: hidden; background: var(--ws-leer); }
.ws-balken span { display: block; }
.ws-b-fertig { background: var(--ws-fertig); } .ws-b-entwurf { background: var(--ws-entwurf); } .ws-b-gedanken { background: var(--ws-gedanken); }
.ws-legende { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .4rem; font-size: .75rem; color: var(--leise); }
.ws-legende i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; }
.ws-module { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.ws-modul { background: var(--grund); border: 1px solid var(--rand-leise); border-radius: .9rem; overflow: hidden; display: flex; flex-direction: column; }
.ws-band { position: relative; height: 4.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--akzent) 45%, var(--grund)), color-mix(in srgb, var(--akzent) 12%, var(--grund))); display: flex; justify-content: space-between; align-items: flex-start; padding: .55rem; }
.ws-band.zu { background: linear-gradient(135deg, color-mix(in srgb, var(--leise) 25%, var(--grund)), var(--flaeche)); }
.ws-frei { background: color-mix(in srgb, var(--grund) 88%, transparent); border-radius: 1rem; padding: .15rem .6rem; font-size: .75rem; }
.ws-menue { position: relative; }
.ws-menue summary { list-style: none; cursor: pointer; background: color-mix(in srgb, var(--grund) 88%, transparent); border-radius: 1rem; padding: 0 .6rem; line-height: 1.6rem; min-width: 32px; text-align: center; }
.ws-menue summary::-webkit-details-marker { display: none; }
.ws-menue-liste { position: absolute; right: 0; top: 2rem; z-index: 5; min-width: 13rem; background: var(--grund); border: 1px solid var(--rand-leise); border-radius: .7rem; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: .3rem; display: flex; flex-direction: column; }
.ws-menue-liste button { text-align: left; background: none; border: 0; font: inherit; font-size: .9rem; padding: .5rem .6rem; border-radius: .5rem; cursor: pointer; color: var(--text); min-height: 36px; }
.ws-menue-liste button:hover { background: var(--flaeche); }
.ws-modul-innen { padding: .7rem .9rem .9rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.ws-modul h3 { margin: 0; font-size: 1.05rem; }
.ws-modul-titel { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ws-modul-innen > p { margin: 0; }
.ws-kaestchen { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .5rem; }
.ws-kaestchen button { width: 22px; height: 22px; border-radius: 6px; border: 0; padding: 0; cursor: pointer; background: var(--ws-leer); position: relative; }
.ws-kaestchen .ws-k-fertig { background: var(--ws-fertig); } .ws-kaestchen .ws-k-entwurf { background: var(--ws-entwurf); } .ws-kaestchen .ws-k-gedanken { background: var(--ws-gedanken); }
.ws-kaestchen .ws-k-vor::after { content: ''; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: #e0b34a; border: 2px solid var(--grund); }
.ws-kaestchen .ws-k-neu { background: none; border: 1px dashed var(--rand); color: var(--leise); font-size: .8rem; line-height: 1; }
.ws-kaestchen button:hover { outline: 2px solid color-mix(in srgb, var(--akzent) 50%, transparent); }
.ws-unterzeile { display: flex; justify-content: space-between; margin-top: auto; padding-top: .5rem; }
.ws-vor-text { color: #8a6420; }
.ws-modul-neu { border: 1.5px dashed var(--rand); background: none; min-height: 11rem; align-items: center; justify-content: center; font: inherit; color: var(--akzent); cursor: pointer; }
.ws-hinweis-unten { margin-top: 1.5rem; }

/* Kapitel links */
.ws-rail { width: 20rem; flex: none; overflow-y: auto; padding: .9rem .75rem 3rem; border-right: 1px solid var(--rand-leise); background: var(--flaeche); }
.ws-karte { background: var(--grund); border: 1px solid var(--rand-leise); border-radius: .8rem; padding: .7rem .8rem; margin-bottom: .6rem; }
.ws .ws-karte > h3.ws-k { font-size: .7rem; letter-spacing: .14em; display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .45rem; font-family: inherit; font-weight: 400; }
.ws-k-r { letter-spacing: 0; text-transform: none; color: var(--leise); }
.ws-zeile { display: flex; justify-content: space-between; }
.ws-label { display: flex; justify-content: space-between; gap: .5rem; margin: 1.1rem .25rem .45rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.ws-tag { letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ws-tag.zu { color: #8a6420; }
.ws-item { position: relative; display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .65rem; margin-bottom: .35rem; border-radius: .7rem; background: var(--grund); border: 1px solid var(--rand-leise); font: inherit; color: inherit; cursor: pointer; min-height: 44px; }
.ws-item:hover { border-color: color-mix(in srgb, var(--akzent) 40%, transparent); }
.ws-item.aktuell { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 9%, var(--grund)); }
.ws-item[draggable="true"] { cursor: grab; }
.ws-item.zieht { opacity: .45; }
.ws-item.ziel { box-shadow: 0 -3px 0 var(--akzent); }
.ws-num { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: color-mix(in srgb, var(--akzent) 13%, transparent); color: var(--akzent); }
.ws-num::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--grund); background: var(--ws-leer); }
.ws-s-fertig .ws-num::after { background: var(--ws-fertig); } .ws-s-entwurf .ws-num::after { background: var(--ws-entwurf); } .ws-s-gedanken .ws-num::after { background: var(--ws-gedanken); }
.ws-it { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-it-titel { font-size: .92rem; line-height: 1.3; }
.ws-it-meta { font-size: .74rem; color: var(--leise); }
.ws-vor { flex: none; font-size: .72rem; padding: .1rem .45rem; border-radius: 1rem; background: #f3e6c9; color: #6e4f18; }
.ws-neu-zeile { width: 100%; border: 1px dashed var(--rand); background: none; border-radius: .7rem; padding: .45rem; font: inherit; font-size: .85rem; color: var(--akzent); cursor: pointer; min-height: 40px; }

/* Lektion in der Mitte */
.ws-main { position: relative; flex: 1; min-width: 0; overflow-y: auto; background: var(--grund); }
.ws-main-innen { max-width: 46rem; margin: 0 auto; padding: 1.6rem clamp(1rem, 3vw, 2.25rem) 5rem; }
/* Handy: ein Geraet mit echten Massen (390 x 844), gescrollt wird im Geraet, nicht die Seite */
.ws-handy .ws-main { background: var(--flaeche); display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.ws-handy .ws-main-innen { box-sizing: border-box; flex: none; width: 410px; max-width: calc(100% - 2rem); height: 864px; max-height: calc(100% - 2.5rem); margin: 1.25rem auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--grund); border: 10px solid #151515; border-radius: 2.6rem; padding: 2.4rem 1rem 3rem; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.ws-ltitel { font-size: clamp(1.6rem, 3.2vw, 2rem); line-height: 1.2; margin: .25rem 0 .2rem; outline: none; border-radius: .3rem; }
.ws-vor-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .8rem 0 0; padding: .55rem .8rem; border-radius: .7rem; background: color-mix(in srgb, #e0b34a 14%, var(--grund)); border: 1px solid color-mix(in srgb, #e0b34a 45%, transparent); }
.ws-video { position: relative; margin: 1.1rem 0 .5rem; border-radius: .9rem; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a1a1e, #141012); color: #f2ece6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center; padding: 1rem; }
.ws-video { overflow: hidden; }
.ws-video-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-video.mit-bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.1) 55%, rgba(0,0,0,.25)); }
.ws-video.mit-bild > :not(.ws-video-bild) { position: relative; z-index: 1; }
.ws-video.mit-bild { justify-content: flex-end; }
.ws-video.mit-bild .ws-video-play { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); width: 3rem; height: 3rem; background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.85); font-size: 1.1rem; }
.ws-video.mit-bild .ws-video-t { font-size: .95rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.ws-video-play { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .9rem; opacity: .85; }
.ws-video-t { font-family: var(--schrift-titel); font-size: 1.1rem; }
.ws-video-s { font-size: .82rem; opacity: .7; max-width: 24rem; }
.ws-video-ein { display: flex; gap: .4rem; width: min(26rem, 100%); margin-top: .3rem; }
.ws-video-ein input { flex: 1; min-width: 0; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); font-size: .9rem; padding: .5rem .65rem; }
.ws-video .knopf.zweit { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.ws-text { outline: none; font-size: 1.04rem; line-height: 1.7; min-height: 3rem; }
.ws-text h2, .ws-text h3, .ws-text h4, .ws-text h5 { margin: 1.6rem 0 .5rem; }
.ws-text h2 { font-size: 1.45rem; } .ws-text h3 { font-size: 1.25rem; } .ws-text h4, .ws-text h5 { font-size: 1.1rem; }
.ws-text p, .ws-text ul, .ws-text ol { margin: .8rem 0 0; }
.ws-text ul { padding-left: 1.3rem; } .ws-text li { margin-bottom: .35rem; } .ws-text li::marker { color: var(--akzent); }
.ws-text blockquote, .text blockquote { margin: 1.2rem 0 0; padding-left: 1rem; border-left: 2px solid color-mix(in srgb, var(--akzent) 45%, transparent); font-family: var(--schrift-titel); font-style: italic; font-size: 1.1em; line-height: 1.5; }
.ws-text[contenteditable="true"] > *:hover { background: color-mix(in srgb, var(--akzent) 5%, transparent); box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--akzent) 5%, transparent); border-radius: .3rem; }
.ws-ltitel[contenteditable="true"]:hover, .ws-ltitel[contenteditable="true"]:focus { background: color-mix(in srgb, var(--akzent) 6%, transparent); }
.ws-text[contenteditable="true"]:empty::before, .ws-text[contenteditable="true"] > p:only-child:empty::before { content: attr(data-leer); color: var(--leise); }
.ws-roh { margin: .9rem 0 0; padding: .55rem .75rem; border: 1px dashed var(--rand); border-radius: .6rem; background: var(--flaeche); cursor: pointer; }
.ws-roh-art { display: block; font-size: .78rem; color: var(--leise); }
.ws-roh code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.ws-nicht { outline: 2px dashed var(--gefahr); outline-offset: 4px; border-radius: .2rem; }
.ws-roh-feld { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.ws-plus-box { position: relative; margin: 1rem 0 0; }
.ws-plus { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; font: inherit; cursor: pointer; padding: .2rem 0; min-height: 40px; }
.ws-plus-rund { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--akzent) 50%, transparent); color: var(--akzent); display: grid; place-items: center; font-size: 1.05rem; background: var(--grund); }
.ws-block-menue { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .2rem; margin-top: .35rem; padding: .35rem; max-width: 26rem; background: var(--grund); border: 1px solid var(--rand-leise); border-radius: .8rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ws-block-menue[hidden] { display: none; }
.ws-block-menue button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; padding: .45rem .55rem; border-radius: .5rem; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; }
.ws-block-menue button:hover { background: var(--flaeche); }
.ws-block-menue small { color: var(--leise); font-size: .75rem; }
.ws-downloads { display: flex; flex-direction: column; gap: .45rem; margin-top: 1.5rem; }
.ws-dl { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .85rem; border: 1px solid var(--rand-leise); border-radius: .7rem; background: var(--grund); font: inherit; color: inherit; }
.ws-dl.leer { justify-content: center; border-style: dashed; background: none; color: var(--akzent); cursor: pointer; min-height: 44px; }
.ws-dl.leer.ziel { background: color-mix(in srgb, var(--akzent) 8%, transparent); }
.ws-erledigt { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.8rem 0 .5rem; }
.ws-erledigt .knopf { opacity: .55; pointer-events: none; }
.ws-vorschau .ws-erledigt .knopf { opacity: 1; }

/* Formatleiste */
.ws-format { position: absolute; z-index: 6; display: flex; gap: 2px; padding: 4px; border-radius: .6rem; background: #1d1a19; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.ws-format[hidden] { display: none; }
.ws-format button { background: none; border: 0; color: #fff; font: inherit; font-size: .85rem; padding: .35rem .55rem; border-radius: .4rem; cursor: pointer; min-width: 32px; min-height: 32px; }
.ws-format button:hover { background: rgba(255,255,255,.14); }
.ws-format .ws-format-claude { color: #f3c9db; }

/* Hinter den Kulissen */
.ws-seite { width: 19.5rem; flex: none; overflow-y: auto; padding: .9rem .8rem 3rem; border-left: 1px solid var(--rand-leise); background: var(--flaeche); }
.ws-vorschau .ws-seite { display: none; }
.ws-seite-kopf { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -.9rem; z-index: 2; margin: -.9rem -.8rem .3rem; padding: .7rem .8rem .2rem; background: var(--flaeche); }
.ws-seite-kopf h2 { font-size: 1.05rem; margin: .1rem 0 .6rem; }
.ws-seite-zu { display: none; text-decoration: none; font-size: 1.1rem; }
.ws-stufen { display: flex; width: 100%; }
.ws-stufen button { flex: 1; padding: .35rem .2rem; font-size: .78rem; }
.ws-feldchen { width: 100%; font-size: .9rem; padding: .5rem .6rem; resize: vertical; }
.ws-chip { border: 1px solid color-mix(in srgb, var(--akzent) 40%, transparent); background: var(--grund); color: var(--text); border-radius: 1rem; padding: .3rem .7rem; font: inherit; font-size: .82rem; margin: .25rem .25rem 0 0; cursor: pointer; min-height: 32px; }
.ws-ki-feld { margin-top: .5rem; }
.ws-ki-knoepfe { margin-top: .4rem; }
.ws-ki-antwort { margin-top: .5rem; padding: .5rem .6rem; border-radius: .5rem; background: var(--flaeche); font-size: .85rem; white-space: pre-wrap; }
.ws-ki-antwort.laeuft { color: var(--leise); font-style: italic; }
.ws-ki-antwort.fehler { color: var(--gefahr); }
.ws-ki-antwort[hidden] { display: none; }
.ws-claude { background: linear-gradient(180deg, var(--grund), color-mix(in srgb, var(--akzent) 6%, var(--grund))); border-color: color-mix(in srgb, var(--akzent) 30%, transparent); }
.ws-roh-notiz { border-left: 3px solid var(--ws-gedanken); padding: .1rem 0 .1rem .6rem; margin: .5rem 0; cursor: grab; }
.ws-roh-notiz p { margin: 0; font-size: .88rem; white-space: pre-wrap; }
.ws-roh-notiz.verwendet { opacity: .55; }
.ws-roh-zeile { display: flex; flex-wrap: wrap; gap: 0 .7rem; align-items: center; }
.ws-mikro[aria-pressed="true"] { background: var(--gefahr); color: #fff; border-color: var(--gefahr); }
.ws-fassungen { list-style: none; padding: 0; margin: 0 0 .5rem; font-size: .82rem; }
.ws-fassungen li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }

/* Vorschlag im Text */
.ws-vor-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin: 1rem 0; padding: .7rem .85rem; border-radius: .8rem; background: color-mix(in srgb, #e0b34a 12%, var(--grund)); border: 1px solid color-mix(in srgb, #e0b34a 40%, transparent); position: sticky; top: .5rem; z-index: 3; }
.ws-vorschlag { margin: .9rem -.85rem 0; padding: .3rem .85rem .7rem; border-radius: .8rem; border: 1px solid color-mix(in srgb, #e0b34a 45%, transparent); background: color-mix(in srgb, #e0b34a 7%, var(--grund)); }
.ws-v-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: #8a6420; font-size: .85rem; margin-top: .25rem; }
.ws-v-wahl { display: inline-flex; gap: .3rem; }
.ws-mini { border: 1px solid var(--rand); background: var(--grund); color: var(--text); border-radius: .5rem; padding: .25rem .6rem; font: inherit; font-size: .8rem; cursor: pointer; min-height: 32px; }
.ws-mini[aria-pressed="true"] { background: var(--text); color: var(--grund); border-color: var(--text); }
.ws-vorschlag del { color: color-mix(in srgb, var(--gefahr) 80%, var(--text)); text-decoration-color: color-mix(in srgb, var(--gefahr) 60%, transparent); }
.ws-vorschlag del + ins, .ws-vorschlag ins + del { margin-left: .2em; }
.ws-vorschlag ins { text-decoration: none; background: color-mix(in srgb, var(--ws-fertig) 22%, transparent); border-radius: 3px; }
.ws-vorschlag:not(.an) ins { opacity: .45; } .ws-vorschlag:not(.an) del { text-decoration: none; color: inherit; }
.ws-vorschlag.an .ws-v-alt { opacity: .6; }
.ws-pruefen > div > *:first-child { margin-top: .8rem; }
.ws-gl-modul { margin-bottom: .6rem; }

/* Handy-Leiste unten und schmale Bildschirme */
.ws-unten { display: none; }
@media (max-width: 1100px) {
  .ws-seite { position: absolute; right: 0; top: 0; bottom: 0; z-index: 8; box-shadow: -10px 0 30px rgba(0,0,0,.14); transform: translateX(105%); transition: transform .2s; }
  .ws-seite-offen .ws-seite { transform: none; }
  .ws-seite-zu { display: inline; }
  .ws-lektion:not(.ws-vorschau) .ws-unten { display: flex; }
}
@media (max-width: 760px) {
  .ws-rail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 8; width: min(20rem, 88vw); box-shadow: 10px 0 30px rgba(0,0,0,.14); transform: translateX(-105%); transition: transform .2s; }
  .ws-rail-offen .ws-rail { transform: none; }
  .ws-kapitel-knopf { display: inline-flex; }
  .ws-geraet, .ws-titel .ws-eyebrow { display: none; }
  .ws-seite { width: 100%; }
  .ws-main-innen { padding: 1.1rem 1rem 6rem; }
  .ws-handy .ws-main { display: block; overflow-y: auto; }
  .ws-handy .ws-main-innen { width: auto; max-width: none; height: auto; max-height: none; overflow: visible; border: 0; border-radius: 0; margin: 0; box-shadow: none; padding: 1.1rem 1rem 6rem; }
  .ws-format { position: fixed; left: .5rem; right: .5rem; top: auto; bottom: calc(4.2rem + env(safe-area-inset-bottom)); overflow-x: auto; }
}
.ws-unten { gap: .4rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--grund); border-top: 1px solid var(--rand-leise); overflow-x: auto; }
.ws-unten button { flex: none; border: 1px solid color-mix(in srgb, var(--akzent) 40%, transparent); background: var(--grund); color: var(--text); border-radius: 1.2rem; padding: .45rem .8rem; font: inherit; font-size: .85rem; min-height: 40px; }

/* Integrationen: Schluessel verdeckt ohne Passwortfeld (kein Speichern-Angebot), lange Pruefwoerter umbrechen */
input.verdeckt { -webkit-text-security: disc; text-security: disc; }
.umbruch { overflow-wrap: anywhere; }

/* Workflows: Ja-/Nein-Zweige eingerueckt unter der Bedingung */
.zweig { margin: .5rem 0 0 1.25rem; padding-left: .75rem; border-left: 2px solid var(--rand); }
.ablauf-zweig { margin: .25rem 0 .5rem; }

/* Workflows: grafischer Ablauf (editor.js). Kein freies Ziehen; die Anordnung folgt dem Ablauf. */
.fluss { display: flex; flex-direction: column; align-items: center; margin: 1rem 0; }
.fluss-spalte { display: flex; flex-direction: column; align-items: center; width: 100%; }
.fluss-knoten { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; max-width: 22rem; margin: 0 0 1.25rem;
  padding: .65rem .85rem; border: 1px solid var(--rand); border-radius: .7rem; background: var(--grund); color: var(--text); font: inherit; text-align: left; }
button.fluss-knoten { cursor: pointer; }
button.fluss-knoten:hover, button.fluss-knoten:focus-visible { border-color: var(--akzent); }
.fluss-knoten > .fluss-text { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.fluss-knoten > svg, .fluss-knoten > .symbol { flex: none; }
.fluss-knoten details { width: 100%; }
/* Linie nach unten zum naechsten Kaestchen */
.fluss-knoten::after { content: ''; position: absolute; left: 50%; bottom: -1.25rem; height: 1.25rem; border-left: 2px solid var(--rand); }
.fluss-spalte > :last-child.fluss-knoten::after { display: none; }
.fluss-ausloeser { flex-direction: column; align-items: flex-start; border-color: var(--akzent); background: var(--akzent-hell); }
.fluss-knoten.warten { border-style: dashed; max-width: 14rem; justify-content: center; }
.fluss-knoten.bedingung { border-color: var(--akzent); border-width: 2px; }
.fluss-plus { width: 1.9rem; height: 1.9rem; margin: -.95rem 0 .3rem; border: 1px dashed var(--akzent); border-radius: 50%; background: var(--grund); color: var(--akzent);
  font: inherit; font-weight: 600; line-height: 1; cursor: pointer; position: relative; z-index: 1; }
.fluss-plus:hover, .fluss-plus:focus-visible { background: var(--akzent-hell); }
/* Weiche: Ja links, Nein rechts, danach laufen beide wieder zusammen */
.fluss-weiche { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; width: 100%; margin: -.5rem 0 1.25rem; padding-top: .75rem; border-top: 2px solid var(--rand); position: relative; }
.fluss-weiche::after { content: ''; position: absolute; left: 50%; bottom: -1.25rem; height: 1.25rem; border-left: 2px solid var(--rand); }
.fluss-zweig { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: .5rem .35rem 0; border-radius: .6rem; background: var(--grund-zwei, transparent); }
.fluss-marke { display: inline-block; margin-bottom: .6rem; padding: .1rem .6rem; border-radius: 1rem; font-size: .85rem; font-weight: 600; border: 1px solid var(--rand); }
.fluss-zweig.ja .fluss-marke { border-color: var(--akzent); color: var(--akzent); }
.fluss-zweig .fluss-knoten { font-size: .92rem; }
/* Schmal: verschachtelte Weichen untereinander statt nebeneinander, sonst wird es unleserlich */
@media (max-width: 40rem) {
  .fluss-weiche.innen { grid-template-columns: 1fr; }
  .fluss-weiche.innen .fluss-zweig { border-left: 2px solid var(--rand); align-items: stretch; padding-left: .6rem; }
  .fluss-weiche.innen .fluss-marke { align-self: flex-start; }
  .fluss-zweig .fluss-knoten { padding: .55rem .6rem; }
}
.fluss-editor .feld:first-of-type { max-width: 24rem; }
/* Modul Shopify */
.sh-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.sh-zahl strong { font-size: 1.15rem; }
.sh-regel { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--rand-leise); }
/* Modul Mail-Zentrale */
.as-schritt span { overflow-wrap: anywhere; }
.mz-app { display: block; }
.mz-dns dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; }
.mz-dns dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; }
.mz-bremse { color: var(--fehler, #b3261e); }
.mz-pool { margin-top: .5rem; }

/* Assistent: Chat in der Verwaltung */
.as-chat-kopf { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.as-chat-kopf h3 { margin: 0; }
/* Assistent als Seite wie Claude: Kopf, Verlauf ueber die ganze Hoehe, Feld unten (Hoehe setzt ansicht.js) */
.as-chat-seite { display: flex; flex-direction: column; max-width: 52rem; margin: 0 auto; }
.as-chat-kopf-rechts { justify-content: flex-end; margin-top: -3rem; }
@media (max-width: 40rem) { .as-chat-kopf-rechts { margin-top: 0; } }
.as-chat-knoepfe { display: flex; gap: .5rem; align-items: center; }
.as-einst { position: relative; }
.as-zahl { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; margin-left: .35rem; padding: 0 .3rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text, #fff); font-size: .72rem; font-weight: 700; }
.as-chat-seite .as-chat-verlauf { flex: 1; max-height: none; min-height: 0; margin: .75rem 0 .5rem; background: none; padding: .25rem 0; }
.as-chat-seite .as-chat-eingabe { padding: .5rem; border: 1px solid var(--rand); border-radius: 1rem; background: var(--flaeche); }
/* Eingabe bleibt unten stehen, ueber der Leiste (Handy) bzw. am unteren Rand (breit), der Verlauf scrollt darunter
   durch. Der Schatten in Grundfarbe deckt den Spalt zur Leiste, sonst schaut gescrollter Text durch (Winni 11.11.2026). */
.as-chat-seite .as-chat-eingabe { position: sticky; bottom: calc(4.4rem + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 .55rem 0 .55rem var(--grund); }
body.seite .as-chat-seite .as-chat-eingabe { bottom: .75rem; }
@media (min-width: 900px) { body[data-app="verwaltung"] .as-chat-seite .as-chat-eingabe { bottom: 1rem; } }
.as-chat-seite .as-chat-eingabe textarea { border: 0; background: none; resize: none; box-shadow: none; }
.as-chat-seite .as-chat-eingabe textarea:focus-visible { outline: none; }
.as-chat-seite .as-chat-eingabe:focus-within { border-color: var(--akzent); }
.as-chat-ki { text-align: center; margin: .4rem 0 0; }
/* Ueber dem Schatten der festen Eingabe (Grundfarbe, deckt den Spalt zur Leiste), sonst halb verdeckt */
.as-chat-seite .as-chat-ki { position: relative; z-index: 6; }
.as-leer { margin: auto 0; text-align: center; padding: 2rem 0; }
.as-leer-frage { font-family: var(--schrift-titel, inherit); font-size: 1.6rem; margin: 0 0 1rem; }
.as-vorschlaege { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.as-vorschlag { font: inherit; font-size: .9rem; text-align: left; padding: .55rem .8rem; border: 1px solid var(--rand); border-radius: .8rem; background: var(--flaeche); color: var(--text); cursor: pointer; max-width: 22rem; }
.as-vorschlag:hover, .as-vorschlag:focus-visible { border-color: var(--akzent); }
.as-guthaben { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .4rem 0 .6rem; }
.as-warnung { color: var(--gefahr); font-weight: 600; }
.as-chat-verlauf { max-height: min(60vh, 34rem); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: .6rem; padding: .75rem; margin: .6rem 0 .4rem; background: var(--grund); border-radius: .75rem; }
.as-msg { max-width: 88%; padding: .55rem .8rem; border-radius: .8rem; background: var(--flaeche); overflow-wrap: anywhere; }
.as-msg.as-ich { align-self: flex-end; background: var(--akzent-leise, var(--flaeche)); border: 1px solid var(--rand-leise); }
.as-msg.as-assistent { align-self: flex-start; }
.as-msg.as-hinweis { align-self: center; background: none; font-size: .9rem; color: var(--leise); text-align: center; padding: .2rem .5rem; }
.as-wer { display: block; font-size: .75rem; font-weight: 600; color: var(--leise); margin: 0 0 .15rem; }
.as-wer:empty { display: none; }
.as-roh { white-space: pre-wrap; margin: 0; }
.as-md p { margin: 0 0 .5rem; white-space: pre-wrap; }
.as-md p:last-child, .as-md ul:last-child { margin-bottom: 0; }
.as-md ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.as-chat-freigabe { margin: .5rem 0 0; padding: .6rem .7rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--grund); }
.as-chat-freigabe .knopfreihe { margin: .4rem 0 0; }
.as-chat-freigabe .karte { margin: 0; padding: 0; background: none; }
.as-chat-freigabe h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.as-plan { margin: .5rem 0 0; padding: .6rem .7rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--grund); }
.as-plan-liste { list-style: none; margin: .4rem 0; padding: 0; }
.as-plan-liste li { display: flex; gap: .5rem; align-items: flex-start; padding: .2rem 0; }
.as-plan-liste input { margin-top: .25rem; flex: none; }
.as-plan-liste li.weg label { text-decoration: line-through; opacity: .6; }
.as-plan-zusatz { width: 100%; margin: .2rem 0 0; }
.as-plan .knopfreihe { margin: .4rem 0 0; }
.as-wunsch { margin: .4rem 0 0; color: var(--erfolg, inherit); }
.as-chat-eingabe { display: flex; gap: .5rem; align-items: flex-end; }
.as-chat-eingabe textarea { flex: 1; min-width: 0; resize: vertical; min-height: 2.9rem; max-height: 40vh; }
.as-chat-denkt { margin: 0 0 .4rem; }

/* Seiten: Visual Editor (Im Bild bearbeiten) */
.ebene-hg.ve-hg { align-items: stretch; }
.ebene.ve-ebene { max-width: none; width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; padding: 0; overflow: hidden; }
.ve { display: flex; flex-direction: column; height: 100%; }
.ve-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding: calc(.6rem + env(safe-area-inset-top)) 1rem .6rem; border-bottom: 1px solid var(--rand-leise); background: var(--grund); }
.ve-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ve-knoepfe [aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); }
.ve-status { min-width: 8rem; text-align: right; }
.ve-status.ve-fehler { color: var(--fehler, #b3261e); }
.ve-buehne { flex: 1; min-height: 0; background: var(--flaeche); display: flex; flex-direction: column; align-items: center; }
.ve-huelle { position: relative; width: 100%; flex: 1; min-height: 0; display: flex; }
.ve-geraet-buehne .ve-huelle { flex: none; }
.ve-geraet-box { display: flex; width: 100%; height: 100%; }
.ve-geraet-box.an { position: absolute; top: 0; left: 0; width: auto; height: auto; transform-origin: 0 0; }
/* Mockup im Visual Editor: Rand, Tasten, Kamera, Statusleiste, Home (Masse setzt ansicht.js je Modell) */
.ve-geraet-box.ve-mockup { border-style: solid; border-color: #121212; background: #121212; box-shadow: 0 0 0 1.5px #3a3a3a, 0 0 0 3px #1b1b1b, 0 20px 50px rgba(0,0,0,.3); }
.ve-mockup .ve-rahmen.ve-geraet { box-shadow: none; }
.ve-kamera, .ve-sb, .ve-home, .ve-taste { position: absolute; pointer-events: none; }
.ve-kamera { left: 50%; transform: translateX(-50%); background: #000; z-index: 3; }
.ve-kamera-insel { top: 11px; width: 126px; height: 37px; border-radius: 19px; }
.ve-kamera-kerbe { top: 0; width: 162px; height: 32px; border-radius: 0 0 20px 20px; }
.ve-kamera-loch { top: 11px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.ve-kamera-rand { width: 9px; height: 9px; border-radius: 50%; background: #2b2f36; box-shadow: inset 0 0 0 2px #15181c; }
.ve-typ-home .ve-kamera-rand { margin-left: -46px; }
.ve-typ-home .ve-kamera-rand::after { content: ""; position: absolute; left: 30px; top: 2px; width: 46px; height: 5px; border-radius: 3px; background: #2b2f36; }
.ve-sb { top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 34px; color: #fff; mix-blend-mode: difference; font: 600 15px/1 -apple-system, system-ui, sans-serif; }
.ve-sb-insel, .ve-sb-kerbe { padding: 6px 28px 0 44px; }
.ve-sb-insel .ve-sb-zeit, .ve-sb-kerbe .ve-sb-zeit { width: 60px; text-align: center; }
.ve-sb-home { justify-content: center; font-size: 12px; padding: 0 8px; }
.ve-sb-home .ve-sb-symbole { position: absolute; right: 8px; transform: scale(.8); transform-origin: right center; }
.ve-sb-android { padding: 0 18px; font-size: 13px; font-weight: 500; }
.ve-sb-tablet { padding: 0 20px; font-size: 13px; }
.ve-home { left: 50%; transform: translateX(-50%); z-index: 2; }
.ve-home-strich { bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: #fff; mix-blend-mode: difference; }
.ve-home-knopf { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 2px #3c3c3c; background: #1a1a1a; }
.ve-taste { background: #2a2a2a; }
.ve-taste-left { width: 4px; border-radius: 2px 0 0 2px; }
.ve-taste-right { width: 4px; border-radius: 0 2px 2px 0; }
.ve-taste-oben { height: 4px; border-radius: 2px 2px 0 0; }
.ve-taste-unten { height: 4px; border-radius: 0 0 2px 2px; }
.ve-quer .ve-kamera { left: 11px; top: 50%; transform: translateY(-50%); }
.ve-quer .ve-kamera-insel { width: 37px; height: 126px; }
.ve-quer .ve-kamera-kerbe { left: 0; width: 32px; height: 162px; border-radius: 0 20px 20px 0; }
.ve-quer .ve-kamera-rand { margin-left: 0; }
.ve-quer.ve-typ-home .ve-kamera-rand::after { left: 2px; top: 30px; width: 5px; height: 46px; }
.ve-quer .ve-home-knopf { left: auto; top: 50%; transform: translateY(-50%); }
.ve-modell { margin: 10px 0 0; text-align: center; font-weight: 600; font-size: .95rem; }
.ve-falz { margin: 8px 0 0; text-align: center; }
.ve-rahmen { border: 0; width: 100%; height: 100%; background: #fff; }
.ve-buehne.ve-geraet-buehne { padding: 20px; overflow: hidden; }
.ve-rahmen.ve-geraet { flex: none; margin: 0; border-radius: 8px; box-shadow: 0 0 0 1px var(--rand), 0 12px 40px rgba(0,0,0,.18); transform-origin: 0 0; }
select.ve-breite { width: auto; font-size: .9rem; padding: .35rem .5rem; }
/* Gemeinsam bearbeiten: fremde Aenderung im Editor, Anwesenheit, Wahl bei echtem Konflikt */
.ve-fremd { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .5rem 1rem; background: #fff4d6; color: #4a3b00; border-bottom: 1px solid #e0c46c; font-size: .9rem; }
.ve-fremd[hidden] { display: none; }
.ve-fremd > span { flex: 1 1 14rem; }
.ve-fremd-zu { border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; padding: .2rem .4rem; }
.ve-mit { padding: .2rem .6rem; border-radius: 999px; background: #fff4d6; color: #4a3b00; white-space: nowrap; }
.ve-mit[hidden] { display: none; }
.wahl { margin: .8rem 0; }
.wahl-paar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 520px) { .wahl-paar { grid-template-columns: 1fr; } }
.wahl-karte { display: grid; gap: .25rem; text-align: left; padding: .7rem .8rem; border: 1.5px solid var(--rand); border-radius: 10px; background: var(--flaeche, transparent); color: inherit; font: inherit; cursor: pointer; min-height: 44px; }
.wahl-karte[aria-pressed="true"] { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.ve-md { padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--rand); background: var(--grund); max-height: 55vh; overflow: auto; }
.ve-md textarea { width: 100%; min-height: 8rem; margin: .4rem 0; }
@media (max-width: 40rem) { .ve-breite { display: none; } .ve-status { min-width: 0; text-align: left; } }

/* Seiten: Neue Seite (Fragen und Assistent links, Vorschau rechts; schmal untereinander) */
.sn-koerper { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; }
.sn-chat { overflow: auto; padding: 1rem; border-right: 1px solid var(--rand-leise); background: var(--grund); display: flex; flex-direction: column; gap: .8rem; }
.sn-rechts { min-height: 0; display: flex; flex-direction: column; background: var(--flaeche); }
.sn-rechts > .ve-buehne { flex: 1; }
.sn-rechts.sn-ohne > .ve-buehne { visibility: hidden; height: 0; flex: 0; }
.sn-leer { margin: auto; padding: 2rem; max-width: 22rem; text-align: center; }
.sn-rechts:not(.sn-ohne) .sn-leer { display: none; }
.sn-verlauf { display: flex; flex-direction: column; gap: .6rem; }
.sn-nachricht { padding: .6rem .8rem; border-radius: 10px; background: var(--flaeche); white-space: pre-wrap; overflow-wrap: anywhere; }
.sn-nachricht ul { margin: .3rem 0 0; padding-left: 1.1rem; white-space: normal; }
.sn-ich { align-self: flex-end; max-width: 92%; border: 1px solid var(--rand-leise); }
.sn-assistent.fehler { color: var(--fehler, #b3261e); }
.sn-fertig { white-space: normal; border: 1px solid var(--akzent); }
.sn-fertig p { margin: 0 0 .6rem; }
.sn-weiter textarea { width: 100%; }
@media (max-width: 52rem) {
  .sn-koerper { grid-template-columns: 1fr; grid-template-rows: auto minmax(75vh, auto); overflow: auto; }
  .sn-chat { overflow: visible; border-right: 0; border-bottom: 1px solid var(--rand-leise); }
}
.ve-panel-kopf { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: 0 0 .5rem; }
.ve-wahlen { display: flex; flex-wrap: wrap; gap: .5rem; }
.seiten-alle { margin: 1.25rem 0 .5rem; }
.seiten-alle > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
/* Verlauf einer Seite: Zeitleiste, die Live-Fassung hervorgehoben */
.seiten-verlauf-liste { list-style: none; margin: .5rem 0; padding: 0 0 0 .9rem; border-left: 2px solid var(--rand); }
.seiten-verlauf-eintrag { position: relative; margin: 0 0 .9rem; }
.seiten-verlauf-eintrag::before { content: ''; position: absolute; left: -1.27rem; top: .45rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--rand); }
.seiten-verlauf-eintrag.an::before { background: var(--akzent); }
.seiten-verlauf-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.seiten-verlauf-eintrag p { margin: .15rem 0 .35rem; }
.seiten-verlauf-eintrag input { flex: 1 1 12rem; min-width: 0; }
/* Verlauf nach Tagen (Schalter seiten_verlauf): Tageskopf mit Zahl der Veroeffentlichungen, Veroeffentlichungen markiert */
.seiten-verlauf-tag { margin: .4rem 0; }
.seiten-verlauf-tag > summary { cursor: pointer; padding: .3rem 0; }
.seiten-verlauf-tag > summary .leise { margin-left: .4rem; }
.seiten-verlauf-eintrag.live-art::before { background: var(--text); border-radius: 2px; }
.seiten-verlauf-eintrag.an::before { background: var(--akzent); }
.seiten-verlauf-eintrag .zeit { font-variant-numeric: tabular-nums; }
/* "Ist live" mit Rueckgaengig nach dem Veroeffentlichen */
.seiten-livemeldung { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000; width: min(34rem, calc(100vw - 2rem));
  background: var(--flaeche, #fff); color: var(--text); border: 1px solid var(--rand); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: .8rem 1rem; }
.seiten-livemeldung .knopfreihe { margin-top: .5rem; }
.seiten-livemeldung ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.seiten-livemeldung-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
/* Assistent: Liste der Chats */
.as-chats-eintrag { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: .2rem 0; color: inherit; font: inherit; cursor: pointer; }
.as-chats-eintrag strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chats-eintrag:hover strong, .as-chats-eintrag:focus-visible strong { text-decoration: underline; }
.as-chats-eintrag.as-aktuell strong { color: var(--akzent, inherit); }
/* Assistent: Anhaenge (Bueroklammer, Leiste ueber dem Feld, Bilder und PDFs im Verlauf) */
.as-klammer { flex: none; align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: .6rem; background: none; color: var(--leise); cursor: pointer; }
.as-klammer:hover, .as-klammer:focus-visible { color: var(--text); background: var(--rand-leise); }
.as-anhaenge { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.as-anhang { display: inline-flex; align-items: center; gap: .4rem; max-width: 15rem; padding: .25rem .3rem .25rem .25rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--flaeche); font-size: .85rem; }
.as-anhang img { width: 2.2rem; height: 2.2rem; object-fit: cover; border-radius: .35rem; }
.as-anhang-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.as-anhang-laedt { opacity: .6; }
.as-anhang-fehler { border-color: var(--gefahr); color: var(--gefahr); }
.as-anhang-weg { flex: none; border: 0; background: none; color: inherit; font-size: 1.1rem; line-height: 1; padding: .1rem .3rem; cursor: pointer; }
.as-anhang-pdf { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .3rem; border-radius: .35rem; background: var(--gefahr); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
/* Bueroklammer mit Wort (Kurs mit KI, neue Seite): klein und leise, erst nach dem Klick erscheint mehr */
.as-klammer.mit-text { width: auto; gap: .35rem; padding: 0 .5rem; font-size: .9rem; align-self: auto; }
.kurs-ki-datei, .sn-datei { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .6rem; }
.kurs-ki-datei .as-anhaenge, .sn-datei .as-anhaenge { margin: 0; }
.as-msg-dateien { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; margin: .2rem 0 .3rem; }
.as-msg-bild img { display: block; max-width: min(14rem, 100%); max-height: 12rem; border-radius: .5rem; border: 1px solid var(--rand-leise); }
.as-msg-pdf { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; padding: .25rem .5rem .25rem .25rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--grund); }
.as-msg-pdf:hover span:last-child { text-decoration: underline; }
.as-chat.as-ziehen { outline: 2px dashed var(--akzent); outline-offset: -6px; }
/* Werbung: Kampagnen als Karten mit Vorschaubild, Detail mit Anzeigen als Beitragsvorschau */
.w-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.w-kopf h3 { margin: 0; }
.w-kopf-rechts { display: flex; gap: .5rem; align-items: center; }
.w-kopf-rechts select { width: auto; min-width: 11rem; }
.w-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.2rem; }
.w-kachel { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: .8rem; background: var(--grund); border: 1px solid var(--rand-leise); }
.w-kachel-wert { font-size: 1.35rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.w-kachel-titel { font-size: .85rem; color: var(--leise); }
.w-gruppe + .w-gruppe { margin-top: 1.2rem; }
.w-gruppe-titel { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); font-weight: 600; }
.w-karten { display: grid; gap: .5rem; }
.w-karte { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .6rem .8rem .6rem .6rem; border: 1px solid var(--rand-leise); border-radius: .9rem; background: var(--grund); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.w-karte:hover, .w-karte:focus-visible { border-color: var(--akzent); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.w-karte-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.w-karte-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.w-karte-zahlen, .w-karte-budget { font-size: .88rem; color: var(--leise); }
.w-pfeil { flex: none; font-size: 1.6rem; line-height: 1; color: var(--leise); }
.w-bild { flex: none; width: 4.5rem; height: 4.5rem; border-radius: .6rem; overflow: hidden; background: var(--flaeche); display: flex; align-items: center; justify-content: center; color: var(--leise); }
.w-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-bild-gross { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: .7rem .7rem 0 0; }
.w-pille { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border-radius: 1rem; font-size: .78rem; font-weight: 600; background: var(--flaeche); color: var(--leise); }
.w-pille::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .7; }
.w-pille.w-an { background: color-mix(in srgb, #2f8a52 16%, transparent); color: #2f8a52; }
.w-karte-zeile { display: flex; gap: .4rem; }
.w-detail { display: flex; flex-direction: column; gap: .4rem; }
.w-detail h2 { margin: .35rem 0 .2rem; }
.w-detail h3 { margin: 1.2rem 0 .3rem; }
.w-detail-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.w-zu { flex: none; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--flaeche); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.w-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.w-anzeigen { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.w-anzeige { display: flex; flex-direction: column; border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); overflow: hidden; }
.w-anzeige-text { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .8rem .8rem; }
.w-anzeige-body { margin: 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.w-anzeige-link { font-size: .85rem; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-zahlen { margin: 0 0 1.2rem; }
.w-zahlen-liste { display: grid; gap: .7rem; }
.w-zahl-karte { border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); padding: .8rem .9rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.w-zahl-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.w-zahl-kopf strong { overflow-wrap: anywhere; }
.w-urteil { flex: none; padding: .1rem .55rem; border-radius: 1rem; font-size: .78rem; font-weight: 600; background: var(--flaeche); color: var(--leise); }
.w-urteil-behalten { background: color-mix(in srgb, #2f8a52 16%, transparent); color: #2f8a52; }
.w-urteil-beobachten { background: color-mix(in srgb, #b7791f 18%, transparent); color: #9a6418; }
.w-urteil-abschalten { background: color-mix(in srgb, #c0392b 16%, transparent); color: #b03224; }
.w-gruende { margin: 0; color: var(--leise); }
.w-werte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .7rem; }
.w-wert { display: flex; flex-direction: column; min-width: 0; }
.w-wert-zahl { font-weight: 600; font-variant-numeric: tabular-nums; }
.w-wert-titel { font-size: .75rem; color: var(--leise); }
.w-zahl-zeilen { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
@media (max-width: 560px) { .w-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-budgets { display: grid; gap: .6rem; }
.w-budget { padding: .7rem .8rem; border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); }
.w-budget-kopf { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.w-budget-name { font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.w-budget-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.w-geld { display: inline-flex; align-items: center; gap: .4rem; }
.w-geld input { width: 6rem; }
@media (max-width: 40rem) {
  .w-kacheln { grid-template-columns: 1fr 1fr; }
  .w-kacheln .w-kachel:last-child { grid-column: 1 / -1; }
  .w-bild { width: 3.8rem; height: 3.8rem; }
  .w-kopf-rechts { width: 100%; }
  .w-kopf-rechts select { flex: 1; min-width: 0; }
}
.w-kachel-wert.w-kachel-mehr { font-size: 1rem; white-space: pre-line; }
.w-video { position: relative; background: #000; }
.w-video video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.w-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,0) 45%); color: #fff; cursor: pointer; }
.w-play svg { width: 3.6rem; height: 3.6rem; padding: .9rem .8rem .9rem 1rem; border-radius: 50%; background: rgba(0,0,0,.45); box-shadow: 0 2px 12px rgba(0,0,0,.3); transition: transform .15s, background .15s; }
.w-play:hover svg, .w-play:focus-visible svg { transform: scale(1.08); background: rgba(0,0,0,.6); }
.w-video-fehler { padding: 1rem; text-align: center; color: var(--text); font-size: .9rem; }
.w-video-fehler p { margin: 0 0 .5rem; }
.w-meta { display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.w-meta .w-detail-kopf { width: 100%; align-items: center; }
.w-meta-rahmen { width: 100%; max-height: 78vh; border-radius: .6rem; overflow: hidden; background: #fff; }
.w-meta-rahmen iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Werbung: Ebenen einer Kampagne (Kampagne, Anzeigengruppe, Anzeige) und der Entwurf in fuenf Schritten */
.w-erklaer { margin: 0 0 .9rem; padding: .5rem .8rem; border-radius: .7rem; background: var(--flaeche); }
.w-erklaer summary { cursor: pointer; font-weight: 600; }
.w-erklaer ul { margin: .4rem 0 .2rem; padding-left: 1.1rem; display: grid; gap: .25rem; }
.w-ebene { border: 1px solid var(--rand-leise); border-radius: .9rem; background: var(--grund); padding: .8rem .9rem; display: flex; flex-direction: column; gap: .45rem; }
.w-ebene-k { border-left: 4px solid var(--akzent); }
.w-ebene-kopf { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.w-ebene-marke { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .5rem; border-radius: .4rem; background: var(--flaeche); color: var(--leise); }
.w-ebene-kampagne { background: color-mix(in srgb, var(--akzent) 16%, transparent); color: var(--text); }
.w-ebene-satz { margin: 0; }
.w-baum { display: flex; flex-direction: column; gap: .6rem; margin: .4rem 0 0 1rem; padding-left: .9rem; border-left: 2px solid var(--rand-leise); }
.w-baum-titel { margin: .6rem 0 0; }
.w-ebene-g { padding: 0; }
.w-ebene-g > summary { list-style: none; cursor: pointer; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.w-ebene-g > summary::-webkit-details-marker { display: none; }
.w-ebene-g > summary::after { content: "›"; position: absolute; right: 1rem; top: .65rem; font-size: 1.4rem; color: var(--leise); transition: transform .15s; }
.w-ebene-g { position: relative; }
.w-ebene-g[open] > summary::after { transform: rotate(90deg); }
.w-ebene-name { overflow-wrap: anywhere; padding-right: 1.6rem; }
.w-ebene-inhalt { padding: 0 .9rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.w-ebene-unter { margin: .6rem 0 0; }
.w-zeile { display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: .2rem .8rem; align-items: baseline; }
.w-zeile-titel { font-size: .85rem; color: var(--leise); }
.w-zeile-wert { min-width: 0; overflow-wrap: anywhere; }
.w-zeile-wert p { margin: .2rem 0 0; }
.w-schalter-liste { display: flex; flex-direction: column; gap: .45rem; margin-top: .3rem; }
.w-schalter { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.w-schalter .knopf { flex: none; }
.w-schalter span { flex: 1 1 12rem; min-width: 0; }
.w-wege { display: grid; gap: .6rem; margin: .8rem 0; }
.w-weg { display: flex; flex-direction: column; gap: .2rem; text-align: left; padding: .9rem 1rem; border: 1px solid var(--rand-leise); border-radius: .9rem; background: var(--grund); color: inherit; font: inherit; cursor: pointer; }
.w-weg:hover:not(:disabled), .w-weg:focus-visible { border-color: var(--akzent); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.w-weg:disabled { opacity: .55; cursor: default; }
.w-schritte { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: 0; margin: .4rem 0 .8rem; }
.w-schritte button { border: 0; background: none; padding: .2rem 0; font: inherit; font-size: .9rem; color: var(--leise); display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.w-schritte b { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--flaeche); font-size: .78rem; }
.w-schritte li.fertig b { background: color-mix(in srgb, #2f8a52 16%, var(--grund)); color: color-mix(in srgb, #2f8a52 80%, var(--text)); }
.w-schritte li.an button { color: var(--text); font-weight: 600; }
.w-schritte li.an b { background: var(--akzent); color: var(--akzent-text); }
.w-schritt-titel { margin: 0 0 .4rem; }
.w-tafel { display: flex; flex-direction: column; gap: .5rem; }
.w-tafel[hidden] { display: none; }
.w-schritt-nav { margin-top: 1rem; }
.w-ziele { display: grid; gap: .5rem; }
.w-ziel { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); cursor: pointer; }
.w-ziel:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.w-ziel input { margin-top: .25rem; flex: none; }
.w-uebersicht { display: flex; flex-direction: column; gap: .6rem; }
.w-ue-block { border: 1px solid var(--rand-leise); border-radius: .8rem; padding: .6rem .8rem; background: var(--grund); }
.w-ue-kopf { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.w-ue-kopf h4 { margin: 0; }
.w-ue-block ul { margin: .3rem 0 0; padding-left: 1.1rem; overflow-wrap: anywhere; }
.w-klon-gruppen { border: 1px solid var(--rand-leise); border-radius: .8rem; padding: .5rem .8rem .7rem; margin: .5rem 0; }
@media (max-width: 34rem) { .w-zeile { grid-template-columns: 1fr; } .w-baum { margin-left: .2rem; padding-left: .6rem; } }
/* Modul Ausbau ("Mehr Module") */
.ab-liste { display: grid; gap: .6rem; margin: 1rem 0; }
.ab-modul { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); }
label.ab-modul { cursor: pointer; }
.ab-sofort .ab-text { flex: 1; min-width: 0; }
.ab-sofort > .knopf { flex: none; align-self: center; }
.ab-modul input { margin-top: .3rem; }
.ab-modul.ab-hat, .ab-modul.ab-bestellt { opacity: .75; }
.ab-text { flex: 1; min-width: 0; }
.ab-kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ab-preis { margin: .2rem 0 0; font-weight: 600; }
.ab-summe { font-weight: 600; }
.ab-modul.ab-anfrage { align-items: center; }
/* Wissen in den Einstellungen */
.wissen-liste .zeile { align-items: flex-start; }
.wissen-liste .knopfreihe { flex: none; flex-wrap: nowrap; }
.wissen-eintrag { min-width: 0; }
/* Dein Tag (Modul tagebuch) */
.tb-kopf { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.tb-kopf .knopfreihe { flex: none; }
.tb-spalten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.tb-spalte h4 { margin: 1rem 0 .25rem; }
.tb-spalte ul { margin: .25rem 0; padding-left: 1.2rem; }
.tb-kopfsatz { font-weight: 600; }
.tb-roh { margin-top: .75rem; }
.tb-auch { list-style: none; padding: 0 !important; }
.tb-auch li { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; }
.tb-weg { background: none; border: 0; color: var(--leise, inherit); font-size: 1.2rem; cursor: pointer; min-width: 2.75rem; min-height: 2.75rem; }
.tb-form { display: flex; gap: .5rem; }
.tb-form input { flex: 1; min-width: 0; }
.tb-summe b { font-size: 2rem; }
.tb-posten { list-style: none; padding: 0 !important; }
.tb-posten li { display: flex; gap: .75rem; padding: .25rem 0; }
.tb-posten li b { min-width: 2.5rem; text-align: right; }
.tb-fehler, .tb-alt { color: var(--gefahr); }
/* Geschichten fuer den Autopost (Modul social) */
.sg { margin-top: 1.5rem; }
.sg-plan { margin: 1rem 0; }
.sg-folien { display: flex; gap: .5rem; overflow-x: auto; }
.sg-folien img { height: 10rem; width: auto; border-radius: .5rem; display: block; }
.sg-caption, .sg-transkript { white-space: pre-wrap; }
.tb-datum { margin: 0; }
/* Fragebogen (Modul fragebogen): Seite /fragebogen/<id> und Kurve in der Verwaltung */
.fb-seite { background: var(--grund); }
.fb { max-width: 40rem; margin: 0 auto; padding: max(1rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom)); min-height: 100svh; }
.fb-karte { padding-top: 1rem; }
.fb-karte h1:focus, .fb-karte h2:focus { outline: none; }
.fb-fortschritt { height: .35rem; border-radius: 1rem; background: var(--linie, #ddd); overflow: hidden; margin-bottom: 1rem; }
.fb-fortschritt span { display: block; height: 100%; background: var(--akzent); transition: width .25s; }
.fb-optionen { display: grid; gap: .6rem; margin: 1rem 0; }
.fb-option { text-align: left; padding: .9rem 1rem; min-height: 3rem; border-radius: .8rem; border: 1.5px solid var(--linie, #ccc); background: var(--flaeche, #fff); color: var(--text); font: inherit; cursor: pointer; }
.fb-option[aria-checked="true"] { border-color: var(--akzent); box-shadow: inset 0 0 0 1.5px var(--akzent); }
.fb-karte textarea, .fb-karte input[type="url"], .fb-karte input[type="text"], .fb-karte input[type="email"] { width: 100%; box-sizing: border-box; }
.fb-unten { margin-top: 1rem; }
.fb-fehler { color: var(--gefahr); min-height: 1.2em; }
.fb-falle { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.fb-warten { height: .35rem; border-radius: 1rem; background: linear-gradient(90deg, transparent, var(--akzent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: fb-laeuft 1.4s linear infinite; }
@keyframes fb-laeuft { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { .fb-warten { animation: none; background: var(--akzent); opacity: .4; } }
.fb-bericht { font-weight: 600; }
.fb-kurve { display: flex; gap: .2rem; align-items: flex-end; height: 6rem; margin: .5rem 0 1rem; }
.fb-balken { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.fb-balken span { display: block; width: 100%; background: var(--akzent); border-radius: .2rem .2rem 0 0; min-height: 1px; }
.fb-balken small { font-size: .65rem; color: var(--leise, inherit); }
.fb-code { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.fb-bericht-text { white-space: pre-wrap; }
.fb-meldung { color: var(--gefahr); }
/* Fragebogen-Editor in der Verwaltung (module/fragebogen/ansicht.js editor, Schalter fragebogen_editor) */
.fb-vorschau .fb { min-height: 0; }
.fbe-kopf { position: sticky; top: 0; z-index: 4; background: var(--grund); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .6rem 0 .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--linie, #ddd); }
.fbe-kopf h2 { margin: 0; flex: 1 1 6rem; min-width: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.fbe-status { font-size: .85rem; opacity: .75; }
.fbe-status.offen { color: var(--akzent); opacity: 1; font-weight: 600; }
.fbe-zwei { display: grid; gap: 1.5rem; }
.fbe-reiter { display: flex; gap: .4rem; margin-bottom: 1rem; }
.fbe-reiter [aria-pressed="true"] { border-color: var(--akzent); box-shadow: inset 0 0 0 1.5px var(--akzent); }
@media (min-width: 1200px) {
  body[data-app="verwaltung"] main:has(.fbe) { max-width: 78rem; }
  .fbe-zwei { grid-template-columns: minmax(0, 1fr) 23rem; align-items: start; }
  .fbe-rechts { position: sticky; top: 5rem; }
  .fbe-reiter { display: none; }
}
@media (max-width: 1199px) { .fbe:not(.fbe-zeigt-vorschau) .fbe-rechts, .fbe.fbe-zeigt-vorschau .fbe-links { display: none; } }
.fbe-abschnitt { border: 1px solid var(--linie, #ddd); border-radius: .8rem; background: var(--flaeche, #fff); margin-bottom: .75rem; }
.fbe-abschnitt > summary { cursor: pointer; padding: .85rem 1rem; font-weight: 600; }
.fbe-abschnitt[open] > summary { border-bottom: 1px solid var(--linie, #ddd); }
.fbe-innen { padding: .9rem 1rem 1rem; }
.fbe-abschnitt.hat-fehler > summary, .fbe-frage.hat-fehler > summary { color: var(--gefahr); }
.fbe-frage { border: 1px solid var(--linie, #ddd); border-radius: .6rem; margin-bottom: .5rem; background: var(--grund); }
.fbe-frage > summary { display: flex; gap: .6rem; align-items: baseline; padding: .65rem .8rem; cursor: pointer; }
.fbe-frage[open] > summary { border-bottom: 1px solid var(--linie, #ddd); }
.fbe-nr { font-weight: 700; min-width: 1.2rem; }
.fbe-frage-titel { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.fbe-art { flex: 0 1 auto; text-align: right; max-width: 40%; }
.fbe input[type="text"], .fbe input[type="number"], .fbe textarea, .fbe select { width: 100%; box-sizing: border-box; }
.fbe-optionen { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 2.6rem; gap: .4rem; align-items: center; margin-bottom: .3rem; }
.fbe-mini { padding: .3rem .6rem; min-height: 2.4rem; }
.fbe-neu { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.fbe-haken-reihe { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: .5rem 0; }
.fbe-haken { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.fbe-haken input { width: auto; }
.fbe-mehr { margin: .75rem 0 .25rem; }
.fbe-mehr > summary { cursor: pointer; font-size: .9rem; }
.fbe-mehr > div { padding: .25rem 0 0 .9rem; border-left: 2px solid var(--linie, #ddd); margin-top: .5rem; }
.fbe-mehr-titel { font-weight: 600; font-size: .9rem; margin: .75rem 0 .3rem; }
.fbe-tags { display: grid; gap: .4rem; }
.fbe-tags label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: center; }
.fbe-aktionen { margin-top: .75rem; }
.fbe-stufe { border-top: 1px solid var(--linie, #ddd); padding-top: .75rem; margin-top: .75rem; }
.fbe-zeile { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; }
.fbe-zeile .feld { margin: 0; width: 9rem; }
.fbe-zeile > strong { align-self: center; }
.fbe-fehler { color: var(--gefahr); font-size: .9rem; margin: .35rem 0; }
.fbe-fehler:empty { display: none; }
.fbe-hinweis { background: var(--grund); border-radius: .5rem; padding: .5rem .7rem; }
.fbe-handy { border: 10px solid #151515; border-radius: 2rem; overflow: hidden; height: min(72vh, 680px); background: var(--grund); }
.fbe-handy iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 40rem) { .fbe-kopf h2 { display: none; } .fbe-kopf { gap: .4rem; } .fbe-kopf .knopf { padding-left: .8rem; padding-right: .8rem; } }
@media (max-width: 1199px) { .fbe-handy { max-width: 26rem; margin: 0 auto; height: 75vh; } }

/* Seiten: Uebersicht als Baum (module/seiten/ansicht.js uebersicht) */
.sb-kopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.sb-kopf h2 { margin-bottom: .2rem; }
.sb-neu { margin: 0; }
.sb-claude { margin: .5rem 0 1rem; }
.sb-claude > summary { cursor: pointer; color: var(--leise); font-size: .9rem; }
.sb-hinweis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-radius: .6rem; background: color-mix(in srgb, #b7791f 14%, var(--grund)); margin: 0 0 .75rem; font-size: .92rem; }
.sb-werkzeuge { margin: 0 0 .75rem; }
.sb-suche { width: 100%; max-width: 22rem; flex: 1 1 14rem; }
.sb-sortierung { width: auto; max-width: 100%; }
.sb-zwei { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sb-detail { display: none; }
@media (min-width: 1100px) {
  body[data-app="verwaltung"] main:has(.sb-zwei) { max-width: 76rem; }
  .sb-zwei { grid-template-columns: minmax(0, 1fr) 20rem; }
  .sb-detail { display: block; position: sticky; top: 1rem; }
}
.sb-gruppe { border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); margin: 0 0 1rem; overflow: hidden; }
.sb-gruppe-titel { font-size: .85rem; font-weight: 600; color: var(--leise); margin: 0; padding: .7rem .9rem .3rem; }
.sb-kopfzeile, .sb-reihe { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 5.5rem 6rem; align-items: center; gap: .5rem; padding: 0 .9rem; }
.sb-kopfzeile { font-size: .75rem; color: var(--leise); padding-bottom: .3rem; }
.sb-kopfzeile span:nth-child(2), .sb-zahl { text-align: right; }
.sb-reihe { border-top: 1px solid var(--rand-leise); }
.sb-reihe:hover, .sb-reihe:has(.sb-an) { background: var(--flaeche); }
.sb-zeile { grid-column: 1 / 4; display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 5.5rem; gap: .5rem; align-items: center; min-height: 48px; padding: .4rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sb-name { min-width: 0; display: block; }
.sb-name strong { margin-right: .5rem; }
.sb-name strong { font-weight: 600; }
.sb-ast { color: var(--leise); }
.sb-pfad { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; color: var(--leise); overflow-wrap: anywhere; }
.sb-zahl { font-size: .85rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.sb-stand { font-size: .82rem; display: inline-flex; align-items: center; gap: .35rem; }
.sb-stand::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #2f8a52; flex: none; }
.sb-geaendert::before { background: #c58a1d; }
.sb-entwurf::before { background: var(--leise); }
.sb-sprachen { display: flex; flex-wrap: wrap; gap: .3rem; }
.sb-sprache { min-width: 2.4rem; min-height: 32px; padding: 0 .45rem; border: 1px solid var(--rand); border-radius: 999px; background: var(--grund); color: inherit; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.sb-sprache.sb-geaendert { border-color: #c58a1d; }
.sb-sprache.sb-entwurf { border-style: dashed; }
@media (max-width: 640px) {
  .sb-kopfzeile { display: none; }
  .sb-zwei .sb-gruppe .sb-reihe { grid-template-columns: minmax(0, 1fr) auto; padding: .2rem .7rem; }
  .sb-zeile { grid-column: 1; grid-template-columns: minmax(0, 1fr) auto; }
  .sb-zahl { display: none; }
}
.sb-detail-kopf { display: flex; flex-direction: column; gap: .1rem; margin: 0 0 .6rem; }
.sb-telefon { width: 17.5rem; height: 36rem; margin: 0 auto .75rem; border: 8px solid #1d1d1f; border-radius: 2.2rem; overflow: hidden; background: #fff; }
.sb-telefon-innen { width: 390px; height: 844px; transform: scale(.677); transform-origin: 0 0; }
.sb-telefon iframe { width: 390px; height: 844px; border: 0; display: block; }
.sb-aktionen { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; }
.sb-aktionen .knopf { flex: 1 1 auto; }
.sb-einsprachig .sb-kopfzeile, .sb-einsprachig .sb-reihe { grid-template-columns: minmax(0, 1fr) 4.5rem 5.5rem; }
.sb-leer { padding: 2rem 1rem; text-align: center; border: 1px dashed var(--rand); border-radius: .8rem; }
/* Seiten-Check beim Veroeffentlichen und Google-Vorschau (L2) */
.sc-liste { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.sc-punkt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--rand-leise); }
.sc-punkt > span { min-width: 0; overflow-wrap: anywhere; }
.sc-punkt .knopf { flex: none; }
.gv { display: flex; flex-direction: column; gap: .1rem; margin: -.4rem 0 1rem; padding: .75rem .9rem; border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--flaeche); font-family: Arial, sans-serif; }
.gv[hidden] { display: none; }
.gv-kopf { margin-bottom: .25rem; font-family: var(--schrift-text); }
.gv-adresse { font-size: .8rem; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-titel { font-size: 1.15rem; line-height: 1.3; color: #1a0dab; overflow-wrap: anywhere; }
.gv-text { font-size: .875rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.gv-leer { color: var(--leise); font-style: italic; }

/* Social-Planer: Kopf, Zahlen, gepostete Beitraege mit Erfolg (module/social/ansicht.js) */
.sp-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin: 0 0 .75rem; }
.sp-kopf .leise { margin: 0; }
.sp-kopf-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sp-kopf-rechts select { width: auto; min-width: 0; }
.sp-kopf-rechts .knopf { margin: 0; }
.sp-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.25rem; }
.sp-kachel { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border-radius: .8rem; background: var(--flaeche); }
.sp-kachel strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.sp-kachel span { font-size: .8rem; color: var(--leise); }
@media (max-width: 560px) { .sp-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-titel { margin: 1.5rem 0 .6rem; }
.sp-titel-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.sp-titel-zeile h3 { margin: 0; }
.sp-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13rem, calc(50% - .4rem)), 1fr)); gap: .75rem; }
.sp-karte { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rand-leise); border-radius: .8rem; background: var(--grund); color: inherit; text-decoration: none; overflow: hidden; }
.sp-karte:hover { border-color: var(--rand); }
.sp-bild { position: relative; aspect-ratio: 4 / 5; background: var(--flaeche); }
.sp-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-art { position: absolute; top: .4rem; right: .4rem; padding: .1rem .4rem; border-radius: .4rem; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; }
.sp-text { margin: .55rem .7rem 0; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.sp-wann { margin: .2rem .7rem 0; }
.sp-zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .5rem; padding: .5rem .7rem .7rem; font-size: .8rem; color: var(--leise); }
.sp-zahlen b { color: var(--text); font-variant-numeric: tabular-nums; }
.sp-zahlen > span:nth-child(3) { grid-column: 1 / -1; } /* neue Follower: eigene Zeile, nicht umgebrochen */
.sp-beste { position: absolute; top: .4rem; left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, #2f8a52 85%, #000); color: #fff; font-size: .72rem; font-weight: 600; }
.sp-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.sp-funke { display: flex; flex-direction: column; gap: .15rem; margin: 0 .7rem .7rem; padding: .35rem .45rem; border: 1px solid var(--rand-leise); border-radius: .5rem; background: var(--flaeche); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 2.75rem; }
.sp-funke:hover:not(:disabled) { border-color: var(--rand); }
.sp-funke:disabled { cursor: default; justify-content: center; }
.sp-funke-bild svg { display: block; width: 100%; height: 4rem; }
/* Test-Reel: Banderole unten ueber dem Bild, gedaempfte Karte (Winni 22.11.2026) */
.sp-test-band { position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem .5rem; background: color-mix(in srgb, #b7791f 90%, #000); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.sp-karte-test .sp-bild img { filter: saturate(.55); }
/* Als Naechstes: dieselbe Kachel, Status als Marke oben links */
button.sp-karte { padding: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.sp-plan { margin-bottom: .75rem; }
.sp-plan-karte .sp-bild video, .sp-plan-karte .sp-bild .social-leer { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-status { position: absolute; top: .4rem; left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 600; }
.sp-status-geplant { background: color-mix(in srgb, var(--akzent, #2f6f8a) 85%, #000); }
.sp-status-fehler { background: #b3261e; }
.sp-fehler { border-color: #b3261e; }
.sp-fehlertext { margin: 0 .7rem .7rem; color: #b3261e; }
.sp-funke-zahl { font-size: .75rem; color: var(--leise); }
.sp-funke-zahl b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Kundenkartei (CRM): Kopf, Zeitleiste links, Fakten rechts; auf dem Handy untereinander */
.crm-kopf h2 { margin: 0 0 .2rem; }
.crm-merkmale { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.crm-merkmale .marke.zugang { box-shadow: inset 0 0 0 1.5px var(--akzent); background: transparent; }
.crm-raster { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1rem; align-items: start; }
/* Handy: offene Wiedervorlagen zuerst, dann der Verlauf, dann Daten und Bearbeiten (UX-Durchsicht 15.11.2026) */
@media (max-width: 960px) { .crm-raster { grid-template-columns: minmax(0, 1fr); } .crm-rechts { display: contents; } .crm-offen { order: -1; } .crm-offen:empty { display: none; } }
.crm-merkmale .marke.zugang::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-right: .3rem; border-radius: 50%; background: var(--akzent); vertical-align: .05rem; }
.crm-unterschied { margin: .2rem 0 .5rem; }
.crm-bearbeiten > summary { cursor: pointer; font-weight: 600; padding: .35rem 0; }
.crm-bearbeiten[open] > summary { margin-bottom: .5rem; }
.crm-datenschutz { margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid var(--rand-leise); }
.crm-datenschutz h3 { margin-top: 0; }
.crm-bereich-leer { display: none; }
.crm-reise { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--rand-leise); }
.crm-ereignis { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .75rem; padding: .55rem 0; }
.crm-ereignis::before { content: ''; position: absolute; left: calc(-1rem - 6px); top: .9rem; width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); }
.crm-ereignis.kuenftig::before { background: var(--grund); box-shadow: inset 0 0 0 2px var(--akzent); }
.crm-ereignis.kuenftig { opacity: .85; }
.crm-ereignis.storniert { opacity: .5; }
.crm-ereignis.storniert strong { text-decoration: line-through; }
.crm-eintrag::before { background: var(--text); }
.crm-wann { font-size: .85rem; color: var(--leise); }
.crm-art { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); }
.crm-was .knopf { margin-top: .35rem; }
.crm-heute { margin: .5rem 0 .5rem -1rem; padding: .2rem .6rem; font-size: .8rem; font-weight: 700; color: var(--akzent); border-top: 1px dashed var(--akzent); }
.crm-jahr { margin: .75rem 0 .25rem -1rem; padding-left: .6rem; font-weight: 700; color: var(--leise); }
@media (max-width: 560px) { .crm-ereignis { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }
.crm-wv .knopf { margin-left: .25rem; }
/* Werbung: Verlauf als drei kleine Grafiken (je eigene Achse), Marken in der Akzentfarbe, Raster und Achsen zurueckhaltend */
.w-verlauf { margin: 0 0 1rem; }
.w-figur { margin: .6rem 0 0; }
.w-figur figcaption { color: var(--leise); margin: 0 0 .15rem; }
.w-grafik { width: 100%; height: auto; display: block; overflow: visible; }
.w-raster { stroke: var(--rand-leise); stroke-width: 1; }
.w-achse { fill: var(--leise); font-size: 11px; }
.w-balken { fill: var(--akzent); }
.w-linie { fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.w-punkt { fill: var(--akzent); stroke: var(--flaeche); stroke-width: 2; }
.w-treffer { fill: transparent; cursor: pointer; }
.w-treffer.gewaehlt { fill: color-mix(in srgb, var(--akzent) 12%, transparent); }
.w-tip { position: sticky; top: .5rem; z-index: 2; margin: .5rem 0 0; padding: .45rem .65rem; border-radius: .5rem; background: var(--text); color: var(--grund); font-size: .85rem; }
.w-tabelle { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.w-tabelle th, .w-tabelle td { text-align: right; padding: .25rem .4rem; border-bottom: 1px solid var(--rand-leise); }
.w-tabelle th:first-child, .w-tabelle td:first-child { text-align: left; }
/* Buchung: Wochenzeiten als kleine Woche, ein Balken je Tag ueber die buchbaren Stunden */
.bu-merkmale { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 .35rem; }
.bu-kurz { margin: 0 0 .4rem; }
.bu-woche { display: grid; gap: 3px; margin: 0 0 .75rem; max-width: 34rem; }
.bu-tag { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.bu-tagname { font-size: .78rem; color: var(--leise); }
.bu-tag.frei .bu-tagname { opacity: .5; }
.bu-spur { position: relative; height: 10px; border-radius: 5px; background: var(--rand-leise); }
.bu-fenster { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--akzent); }
.bu-skala { position: relative; height: 1rem; }
.bu-skala span { position: absolute; transform: translateX(-50%); font-size: .7rem; color: var(--leise); }
.bu-skala span:first-child { transform: none; }
.bu-skala span:last-child { transform: translateX(-100%); }

/* Zugangs-Auswahl (A.zugangWahl): Eintraege wie Karten, einer gewaehlt */
.zw { display: grid; gap: .5rem; }
.zw-liste { display: grid; gap: .4rem; }
.zw-eintrag { display: flex; gap: .6rem; align-items: flex-start; width: 100%; text-align: left; padding: .55rem .75rem; border: 1px solid var(--rand-leise); border-radius: .6rem; background: var(--grund); color: inherit; font: inherit; cursor: pointer; }
.zw-eintrag:hover { border-color: var(--rand); }
.zw-eintrag.an { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent-hell); }
.zw-haken { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .15rem; border-radius: 50%; border: 1.5px solid var(--rand); }
.zw-eintrag.an .zw-haken { border: .32rem solid var(--akzent); }
.zw-text { display: grid; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.zw-text b { font-weight: 600; }
.zw-neu { display: grid; gap: .35rem; padding: .2rem 0 0 1.7rem; }
.zw-schl { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.zw-schl input { flex: 1; min-width: 10rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }

/* Angebote: Reiter, Karten, Drei-Schritt-Editor mit Vorschau */
.va-reiter { display: flex; gap: .15rem; border-bottom: 1px solid var(--rand-leise); overflow-x: auto; margin: .5rem 0 1rem; }
.va-reiter button { padding: .55rem .85rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--leise); font: inherit; white-space: nowrap; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; }
.va-reiter button.an { color: var(--text); border-bottom-color: var(--akzent); font-weight: 600; }
.va-zahl:empty { display: none; }
.va-zahl { font-size: .72rem; background: var(--flaeche); border-radius: 999px; padding: 0 .45rem; font-weight: 600; }
.va-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.va-kopf p { flex: 1 1 18rem; margin: 0; }
.va-kopf h3 { margin: 0; }
.va-karten { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.va-angebot { display: grid; gap: .35rem; align-content: start; }
.va-angebot p { margin: 0; }
.va-angebot.aus { opacity: .75; }
/* Bildkacheln: Angebote, Mitgliedschaften und Kurse mit Vorschaubild (ohne Bild: ruhige Flaeche mit Initiale) */
.bk-raster { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); align-items: start; margin: .75rem 0 1rem; }
.bk-karte { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; min-width: 0; }
.bk-karte > .bk-bild { border-radius: 0; }
.bk-inhalt { padding: .85rem 1rem 1rem; display: grid; gap: .4rem; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.bk-inhalt p { margin: 0; }
.bk-inhalt h2 { margin: 0; }
.bk-inhalt > .marke { justify-self: start; }
.bk-inhalt .knopfreihe { margin-top: .35rem; }
.bk-bild { aspect-ratio: 16 / 9; width: 100%; display: grid; place-items: center; overflow: hidden; border-radius: .6rem; background: color-mix(in srgb, var(--akzent) 12%, var(--flaeche)); }
.bk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-initiale { font-size: 2.6rem; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--akzent) 70%, var(--text)); opacity: .55; }
.bk-karte.aus .bk-bild { filter: grayscale(.6); opacity: .8; }
.bk-zahlen { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .9rem; }
.bk-zahlen b { font-size: 1.15rem; }
.bk-personen > summary { cursor: pointer; font-weight: 600; padding: .6rem 0; margin: 0; color: var(--akzent); }
.bk-personen .liste > li { display: grid; gap: .3rem; }
.bk-personen .liste .knopf { justify-self: start; }
.bk-wahl { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.bk-wahl-bild .bk-bild { max-width: 16rem; }
.bk-link { color: inherit; }
@media (max-width: 40rem) { .bk-bild.leer { aspect-ratio: 16 / 6; } .bk-initiale { font-size: 2rem; } }
.va-zeile { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.va-status { flex: none; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--flaeche); color: var(--leise); }
.va-status.an { background: color-mix(in srgb, #2f8a52 16%, var(--grund)); color: color-mix(in srgb, #2f8a52 80%, var(--text)); }
.va-schritte { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: 0; margin: 0 0 1rem; }
.va-schritte button { border: 0; background: none; padding: .2rem 0; font: inherit; color: var(--leise); display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.va-schritte button:disabled { cursor: default; opacity: .6; }
.va-schritte b { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--flaeche); font-size: .78rem; }
.va-schritte li.fertig b { background: color-mix(in srgb, #2f8a52 16%, var(--grund)); color: color-mix(in srgb, #2f8a52 80%, var(--text)); }
.va-schritte li.an button { color: var(--text); font-weight: 600; }
.va-schritte li.an b { background: var(--akzent); color: var(--akzent-text); }
.va-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 1.4rem; align-items: start; }
@media (max-width: 720px) { .va-editor { grid-template-columns: minmax(0, 1fr); } }
.va-tafeln { display: grid; gap: 1rem; min-width: 0; }
.va-tafeln h3 { margin: 0 0 .6rem; }
.va-felder { display: grid; gap: .2rem; }
.va-arten { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.va-art { display: grid; gap: .25rem; text-align: left; padding: .8rem .9rem; border: 1px solid var(--rand-leise); border-radius: .7rem; background: var(--grund); color: inherit; font: inherit; cursor: pointer; }
.va-art:hover { border-color: var(--rand); }
.va-art.an { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent-hell); }
.va-unter { padding-left: 1.6rem; }
.va-mehr { margin-top: .8rem; border-top: 1px dashed var(--rand-leise); padding-top: .6rem; }
.va-mehr summary { cursor: pointer; color: var(--leise); }
.va-vorschau { position: sticky; top: 1rem; display: grid; gap: .4rem; }
.va-kasse { display: grid; gap: .35rem; }
.va-kasse p { margin: 0; }
.va-preis { font-family: var(--schrift-titel); font-size: 1.5rem; font-weight: var(--titel-gewicht, 600); }
.va-alt { text-decoration: line-through; color: var(--leise); }
.va-alt:empty { display: none; }

/* Texte schreiben: Werkzeugleiste ueber dem Feld */
.tw-leiste { display: flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border: 1px solid var(--rand-leise); border-bottom: 0; border-radius: .5rem .5rem 0 0; background: var(--flaeche); }
.tw-leiste + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.tw-knopf { min-width: 2.1rem; min-height: 2.1rem; padding: 0 .55rem; border: 1px solid var(--rand-leise); border-radius: .4rem; background: var(--grund); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.tw-knopf:hover { border-color: var(--rand); }
.feld-titel { font-weight: 600; }

/* Startseite und Infos: Felder links, Handy rechts */
.st-hinweis { padding: .55rem .8rem; border-radius: .55rem; background: var(--flaeche); margin: 0 0 .8rem; }
.st-raster { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 1.4rem; align-items: start; }
@media (max-width: 760px) { .st-raster { grid-template-columns: minmax(0, 1fr); } .st-seite { justify-self: center; } }
.st-felder { display: grid; gap: .3rem; min-width: 0; }
.st-bild { border: 1px dashed var(--rand-leise); border-radius: .6rem; min-height: 4rem; display: grid; place-items: center; overflow: hidden; margin-bottom: .4rem; }
.st-bild img { width: 100%; max-height: 9rem; object-fit: cover; display: block; }
.st-seite { position: sticky; top: 1rem; display: grid; gap: .4rem; width: 15rem; max-width: 100%; }
.st-handy { border: 7px solid var(--text); border-radius: 1.8rem; background: var(--grund); overflow: hidden; height: 30rem; overflow-y: auto; }
.st-hbild img { width: 100%; height: 6.5rem; object-fit: cover; display: block; }
.st-hin { padding: .75rem; display: grid; gap: .5rem; font-size: .78rem; }
.st-hin .gruss { font-size: 1.05rem; margin: 0; }
.st-hin .text { overflow-wrap: anywhere; }
.st-hin .text iframe, .st-hin .text img { max-width: 100%; height: auto; }
.st-kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.st-kacheln span { height: 2.2rem; border-radius: .45rem; background: var(--flaeche); }
.st-kopf { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.st-kopf .st-hinweis { flex: 1 1 18rem; margin: 0; }

/* Einrichtung als Zeitleiste: Ring oben, Erledigtes knapp, der naechste Schritt gross, Kommendes grau */
.ez-kopf { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1.2rem; }
.ez-kopf h3 { margin: 0; }
.ez-kopf p { margin: .15rem 0 0; }
.ez-ring { position: relative; width: 4.6rem; height: 4.6rem; flex: none; }
.ez-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ez-ring circle { fill: none; stroke-width: 7; }
.ez-hinten { stroke: var(--rand-leise); }
.ez-vorn { stroke: var(--akzent); stroke-linecap: round; stroke-dashoffset: var(--ez-ziel); animation: ez-ring 1.3s ease-out; }
@keyframes ez-ring { from { stroke-dashoffset: var(--ez-voll); } }
.ez-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ez-leiste { position: relative; list-style: none; margin: 0 0 1.2rem; padding: 0 0 0 2.4rem; display: grid; gap: .55rem; }
.ez-leiste::before { content: ""; position: absolute; left: .8rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--rand-leise); }
.ez-linie { position: absolute; left: .8rem; top: .5rem; width: 2px; background: color-mix(in srgb, #2f8a52 75%, var(--text)); transform-origin: top; animation: ez-linie 1.3s ease-out; }
@keyframes ez-linie { from { transform: scaleY(0); } }
.ez-schritt { position: relative; min-height: 1.7rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3rem; }
.ez-knoten { position: absolute; left: -2.4rem; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--grund); border: 2px solid var(--rand-leise); color: var(--leise); z-index: 1; }
.ez-schritt.fertig .ez-knoten { background: color-mix(in srgb, #2f8a52 80%, var(--text)); border-color: transparent; color: #fff; }
.ez-schritt.fertig .ez-titel { color: var(--leise); }
.ez-schritt .ez-titel { font-weight: 600; padding-top: .15rem; }
.ez-schritt.spaeter { opacity: .7; }
.ez-schritt.jetzt .ez-knoten { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); animation: ez-puls 2.2s ease-out 1.3s infinite; }
.ez-schritt.jetzt.fertig .ez-knoten { background: color-mix(in srgb, #2f8a52 80%, var(--text)); border-color: transparent; animation: none; }
@keyframes ez-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--akzent) 45%, transparent); } 100% { box-shadow: 0 0 0 .7rem transparent; } }
.ez-karte { flex: 1; display: grid; gap: .35rem; border: 1px solid var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); margin: 0; }
.ez-karte p { margin: 0; }
.ez-als { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--akzent); font-weight: 600; }
.ez-mehr { border: 0; background: none; padding: .15rem 0; font: inherit; color: var(--leise); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ez-gruppe { border-top: 1px solid var(--rand-leise); padding: .6rem 0; }
.ez-gruppe summary { cursor: pointer; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ez-vorn, .ez-linie, .ez-schritt.jetzt .ez-knoten { animation: none; } }

/* Beispieldaten: Band oben, Marke an jedem Eintrag, Platzhalterbilder */
.bsp-band { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .65rem .85rem; margin: 0 0 1rem; border: 1px dashed var(--akzent); border-radius: .7rem; background: var(--akzent-hell); }
.bsp-band p { flex: 1 1 16rem; margin: 0; }
.bsp-marke { display: inline-block; flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; background: var(--akzent); color: var(--akzent-text); }
.bsp-bild { display: grid; place-items: start end; padding: .4rem; }
.bsp-bild .bsp-marke { position: relative; z-index: 1; }
.bsp-b1, .bsp-b4 { background: linear-gradient(160deg, color-mix(in srgb, var(--akzent) 35%, var(--grund)), color-mix(in srgb, var(--akzent) 75%, var(--text))); }
.bsp-b2, .bsp-b5 { background: linear-gradient(200deg, var(--akzent-hell), color-mix(in srgb, var(--akzent) 45%, var(--grund))); }
.bsp-b3, .bsp-b6 { background: linear-gradient(120deg, var(--flaeche), color-mix(in srgb, var(--akzent) 55%, var(--grund))); }
.bsp-bild .sp-art { right: auto; left: .4rem; }
.bsp-bild.bsp-foto { background-size: cover; background-position: center; }
.bsp-karte { cursor: default; }
.bsp-liste .bsp-zeile { padding: .55rem 0; }
.bsp-liste .bsp-marke, .bsp-karte > .bsp-marke { margin-left: .2rem; vertical-align: middle; }
.bsp-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.bsp-aus { color: var(--leise); font-size: .8rem; }
.bsp-kachel { border-style: dashed; cursor: default; } .bsp-kachel .bsp-marke { align-self: flex-start; justify-self: start; margin-top: .3rem; }

/* Einstellungen: Bereiche im Menue ein- und ausblenden */
.menue-wahl { display: grid; gap: .3rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); margin: .6rem 0 .8rem; }
.menue-punkt { display: flex; align-items: center; gap: .5rem; padding: .35rem .2rem; cursor: pointer; }
.menue-punkt .symbol { width: 1.15rem; height: 1.15rem; flex: none; }
.menue-punkt input:disabled + .symbol, .menue-punkt input:disabled ~ span { opacity: .7; }
.menue-punkt .leise { margin-left: auto; }

/* Buchhaltung: Zustand in einer Zeile, "N warten", eine Zahlung als Satz */
.bh-zustand { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); margin: .8rem 0; }
.bh-stand { display: grid; gap: .1rem; text-align: left; padding: .55rem .75rem; border: 1px solid var(--rand-leise); border-radius: .6rem; background: var(--grund); color: inherit; font: inherit; cursor: pointer; }
.bh-stand:hover { border-color: var(--rand); }
.bh-punkt { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; background: var(--rand-leise); }
.bh-punkt.gruen { background: #2e7d32; } .bh-punkt.gelb { background: #b8860b; } .bh-punkt.rot { background: #b3261e; }
.bh-held-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.1rem; border-radius: .9rem; background: var(--akzent-hell); margin: 0 0 1rem; }
.bh-held-innen p { margin: 0; }
.bh-held-innen.gut { background: var(--flaeche); }
.bh-zahl { font-family: var(--schrift-titel); font-size: 2.2rem; line-height: 1; font-weight: var(--titel-gewicht, 600); }
.bh-fokus .bh-vorschlag { margin-bottom: 1rem; }
.bh-vorschlag { display: grid; gap: .5rem; }
.bh-vorschlag p { margin: 0; }
.bh-kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.bh-balken { height: .35rem; border-radius: 999px; background: var(--flaeche); overflow: hidden; }
.bh-balken i { display: block; height: 100%; background: var(--akzent); }
.bh-satz { font-size: 1.05rem; }
.bh-stapel { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25rem .9rem; margin: 0; font-size: .9rem; }
.bh-stapel dt { color: var(--leise); }
.bh-stapel dd { margin: 0; overflow-wrap: anywhere; }
.bh-rueck { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; border-radius: .6rem; background: var(--flaeche); margin-bottom: .8rem; }
.bh-technik { margin-top: 1rem; }
.bh-technik > summary { cursor: pointer; color: var(--leise); padding: .4rem 0; }

/* Workflows: Vorlagen und Phasen */
.wf-vorlagen { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 0 0 1.2rem; }
.wf-vorlage { display: grid; gap: .2rem; text-align: left; padding: .65rem .8rem; border: 1px dashed var(--rand); border-radius: .7rem; background: var(--grund); color: inherit; font: inherit; cursor: pointer; }
.wf-vorlage:hover { border-style: solid; border-color: var(--akzent); }
.wf-phasen { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding: 0; margin: .3rem 0; }
.wf-phasen li { text-align: center; font-size: .82rem; padding: .35rem .2rem; border-radius: .45rem; background: var(--flaeche); color: var(--leise); }
.wf-phasen li.fertig { background: color-mix(in srgb, #2f8a52 16%, var(--grund)); color: color-mix(in srgb, #2f8a52 80%, var(--text)); font-weight: 600; }
.wf-phasen li.an { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
/* Workflow-Editor im Vollbild (module/workflows/editor.js): Kopfzeile, Leinwand, Seitenleiste (am Handy Blatt von unten) */
.ebene-hg.wfe-hg { align-items: stretch; }
.ebene.wfe-ebene { max-width: none; max-height: none; height: 100%; height: 100dvh; border-radius: 0; padding: 0; overflow: hidden; overflow: clip; display: flex; }
/* clip statt hidden: sonst schiebt der Browser beim Antippen einer Karte die Kopfzeile aus dem Bild */
.wfe { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: clip; background: var(--flaeche); }
.wfe-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: calc(.5rem + env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) .5rem max(.75rem, env(safe-area-inset-left)); background: var(--grund); border-bottom: 1px solid var(--rand); }
.wfe-zurueck { flex: none; width: 2.6rem; height: 2.6rem; border: 0; border-radius: .5rem; background: transparent; color: inherit; font-size: 1.35rem; cursor: pointer; }
.wfe-zurueck:hover, .wfe-zurueck:focus-visible { background: var(--flaeche); }
.wfe-titel { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; }
.wfe-name { width: 100%; font: inherit; font-weight: 600; font-size: 1.05rem; padding: .3rem .45rem; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: inherit; }
.wfe-name:hover, .wfe-name:focus { border-color: var(--rand); background: var(--grund); }
.wfe-stand { padding-left: .5rem; min-height: 1.1em; }
.wfe-schalter { display: inline-flex; padding: .15rem; border: 1px solid var(--rand); border-radius: 2rem; background: var(--flaeche); }
.wfe-schalter button { min-height: 2.3rem; padding: .3rem .9rem; border: 0; border-radius: 2rem; background: transparent; color: var(--leise); font: inherit; font-size: .9rem; cursor: pointer; }
.wfe-schalter button[aria-pressed="true"] { background: var(--grund); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.wfe-schalter button:last-child[aria-pressed="true"] { background: #2f8a52; color: #fff; }
.wfe-aktionen { display: flex; flex-wrap: wrap; gap: .4rem; }
.wfe-aktionen .knopf { margin: 0; }
.wfe-band { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .55rem 1rem; background: var(--hinweis); font-size: .92rem; }
.wfe-band.fehler { background: color-mix(in srgb, var(--gefahr) 14%, var(--grund)); }
.wfe-band > span { flex: 1 1 16rem; }
.wfe-band .knopf { margin: 0; }
.wfe-band-zu { border: 0; background: none; color: inherit; font-size: 1.3rem; cursor: pointer; min-width: 2.2rem; min-height: 2.2rem; }
.wfe-rumpf { position: relative; flex: 1; min-height: 0; display: flex; }
.wfe-flaeche { position: relative; flex: 1; min-width: 0; overflow: auto; padding: 1rem .75rem 7rem; background-color: var(--flaeche); background-image: radial-gradient(color-mix(in srgb, var(--rand) 80%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.wfe-leiste { flex: none; width: 23rem; overflow: auto; padding: 1rem 1rem 2rem; background: var(--grund); border-left: 1px solid var(--rand); }
.wfe-leiste-kopf { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.wfe-leiste-kopf h3 { flex: 1; margin: 0; font-size: 1.05rem; }
.wfe-leiste-zu { min-width: 2.5rem; min-height: 2.5rem; border: 0; background: none; color: var(--leise); font-size: 1.4rem; cursor: pointer; }
.wfe-leiste textarea { min-height: 9rem; }
.wfe-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.wfe-platzhalter { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: -.3rem 0 .9rem; }
.wfe-chip { padding: .25rem .55rem; border: 1px solid var(--rand); border-radius: 1rem; background: var(--flaeche); color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.wfe-chip:hover, .wfe-chip:focus-visible { border-color: var(--akzent); }
.wfe-schrittknoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.wfe-schrittknoepfe .knopf { margin: 0; }
.wfe-statistik { padding: .6rem .75rem; border-radius: .6rem; background: var(--flaeche); }
.wfe-personen { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--leise); overflow-wrap: anywhere; }
.wfe-palette h4 { margin: 1rem 0 .4rem; color: var(--leise); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.wfe-baustein { display: flex; align-items: flex-start; gap: .65rem; width: 100%; margin: 0 0 .4rem; padding: .6rem .7rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--grund); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wfe-baustein:hover, .wfe-baustein:focus-visible { border-color: var(--akzent); background: var(--akzent-hell); }
.wfe-treffer { list-style: none; margin: 0 0 .75rem; padding: 0; }
.wfe-probe-ergebnis { font-weight: 600; }
.wfe-probe-weg { padding-left: 1.2rem; }
.wfe-laeufe li { overflow-wrap: anywhere; }
/* Karten */
.wfe-karte { align-items: flex-start; gap: .6rem; color: inherit; font: inherit; text-align: left; }
.wfe-k { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.wfe-k-art { color: var(--leise); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wfe-karte .fluss-text { overflow-wrap: anywhere; }
.wfe-karte.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 30%, transparent); }
.wfe-karte.fehlerhaft { border-color: var(--gefahr); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gefahr) 35%, transparent); }
.wfe-zahl, .wfe-probe-marke { width: 100%; padding-left: 1.9rem; font-size: .78rem; font-weight: 600; }
.wfe-zahl { color: var(--akzent); }
.wfe-probe-marke { color: color-mix(in srgb, #2f8a52 85%, var(--text)); }
.wfe-karte.im-weg { border-color: #2f8a52; box-shadow: 0 0 0 2px color-mix(in srgb, #2f8a52 35%, transparent); }
.wfe-karte.neben-weg { opacity: .45; }
.fluss-knoten.ziel { border-color: #2f8a52; background: color-mix(in srgb, #2f8a52 8%, var(--grund)); }
.fluss-plus.gewaehlt, .fluss-plus.drop { background: var(--akzent); color: var(--akzent-text); border-style: solid; transform: scale(1.15); }
.wfe-zieht .fluss-plus { border-width: 2px; background: var(--akzent-hell); }
.wfe-linie { display: block; height: 0; }
.wfe-ende { margin-top: .2rem; padding: .25rem .9rem; border: 1px solid var(--rand); border-radius: 1rem; background: var(--grund); color: var(--leise); font-size: .85rem; }
.wfe-zoom { display: none; }
/* Leinwand am Rechner: verschieben, zoomen, Karten in fester Breite, Zweige so breit wie noetig */
.wfe-leinwand .wfe-flaeche { overflow: hidden; padding: 0; cursor: grab; touch-action: none; }
.wfe-leinwand .wfe-flaeche.zieht { cursor: grabbing; }
.wfe-leinwand .wfe-welt { position: absolute; top: 0; left: 0; width: max-content; transform-origin: 0 0; }
.wfe-leinwand .fluss { margin: 0; padding: 0 2rem 4rem; }
.wfe-leinwand .fluss-knoten { width: 18rem; max-width: none; }
.wfe-leinwand .fluss-knoten.warten { width: 14rem; }
.wfe-leinwand .fluss-weiche, .wfe-leinwand .fluss-weiche.innen { grid-template-columns: auto auto; gap: 2rem; width: auto; }
.wfe-leinwand .fluss-weiche.innen .fluss-zweig { border-left: 0; align-items: center; padding-left: .35rem; }
.wfe-leinwand .fluss-zweig { padding: .5rem 1rem 0; }
.wfe-leinwand .wfe-zoom { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .2rem; padding: .25rem; border: 1px solid var(--rand); border-radius: .6rem; background: var(--grund); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.wfe-zoom button { min-width: 2.2rem; min-height: 2.2rem; padding: 0 .5rem; border: 0; border-radius: .4rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.wfe-zoom button:hover { background: var(--flaeche); }
.wfe-zoom-wert { min-width: 3rem; text-align: center; font-size: .85rem; color: var(--leise); }
@media (min-width: 900px) { .wfe-info { display: none; } }
/* Handy und schmale Fenster: Seitenleiste als Blatt von unten, nur wenn etwas gewaehlt ist */
@media (max-width: 899px) {
  .wfe-kopf { gap: .35rem .5rem; padding-bottom: .4rem; }
  .wfe-zurueck { width: 2.4rem; height: 2.4rem; }
  .wfe-titel { flex-basis: calc(100% - 3.2rem); }
  .wfe-name { font-size: 1rem; padding: .2rem .35rem; }
  /* Schalter und Knoepfe in einer Zeile, waagerecht wischbar */
  .wfe-schalter button { min-height: 2.4rem; padding: .25rem .7rem; font-size: .85rem; }
  .wfe-aktionen { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wfe-aktionen::-webkit-scrollbar { display: none; }
  .wfe-aktionen .knopf { flex: none; min-height: 2.4rem; padding: .25rem .7rem; font-size: .85rem; white-space: nowrap; }
  .wfe-band { padding: .4rem .75rem; font-size: .85rem; }
  .wfe-leiste { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; width: auto; max-height: 75%; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--rand); border-radius: 1rem 1rem 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); transform: translateY(105%); transition: transform .2s ease; visibility: hidden; }
  .wfe-leiste.offen { transform: none; visibility: visible; }
}
.bu-calendly { border-top: 1px dashed var(--rand-leise); padding-top: .5rem; margin: .5rem 0; } .bu-calendly summary { cursor: pointer; font-weight: 600; }
.bh-schon { margin-top: 1rem; } .bh-schon summary { cursor: pointer; color: var(--leise); }

/* Offline-Band der Verwaltung (Stand vom Geraet) */
.offline-band { position: sticky; top: 0; z-index: 65; padding: calc(.4rem + env(safe-area-inset-top)) 1rem .4rem; background: #3a3330; color: #fff; font-size: .85rem; text-align: center; }
.offline-band[hidden] { display: none; }

/* Visual Editor: KI-Assistent im Seitenpanel */
.ve-ki-feld { width: 100%; font: inherit; font-size: .95rem; padding: .6rem .7rem; resize: vertical; }
.ve-ki-antwort { margin: .5rem 0 0; white-space: pre-wrap; }
.ve-ki-antwort.laeuft { font-style: italic; }
.ve-ki-antwort.fehler { color: var(--gefahr); }

/* Google Fotos: Auswahl in die Mediathek */
.gf-kopf h2 { margin: 0 0 .25rem; }
.gf-konten { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .5rem; }
.gf-konten li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.gf-stand { margin: 1rem 0; }
.gf-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .4rem; margin: 1rem 0; }
.gf-kachel { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; background: var(--flaeche); }
.kreisel { display: inline-block; width: 1.1em; height: 1.1em; flex: none; border: .16em solid color-mix(in srgb, var(--akzent) 25%, transparent); border-top-color: var(--akzent); border-radius: 50%; animation: kreisel .8s linear infinite; }
@keyframes kreisel { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kreisel { animation-duration: 2.4s; } }
.gf-laeuft { display: flex; align-items: center; gap: .6rem; }
.gf-schritte { list-style: none; display: flex; gap: .35rem; padding: 0; margin: .25rem 0 1rem; flex-wrap: wrap; }
.gf-schritte li { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--leise); padding: .3rem .6rem .3rem .3rem; border-radius: 999px; background: var(--flaeche); }
.gf-schritte .gf-nr { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; background: var(--grund); border: 1px solid var(--rand-leise); }
.gf-schritte li.jetzt { color: var(--text); font-weight: 600; } .gf-schritte li.jetzt .gf-nr { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text, #fff); }
.gf-schritte li.erledigt .gf-nr { background: var(--erfolg, #5f8a6a); border-color: var(--erfolg, #5f8a6a); color: #fff; }
.gf-start { margin: 1rem 0 .5rem; }
.gf-gross { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .8rem 1.4rem; }
.gf-gross small { font-weight: 400; opacity: .85; font-size: .8rem; }
.gf-andere { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .5rem 0 0; }
.gf-video { position: relative; display: block; overflow: hidden; }
.gf-video video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gf-spielen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.gf-feld { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0; }
.gf-weg { font-size: .75rem; }
.ve-medium { position: relative; }
.mk { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: .5rem; overflow: hidden; background: var(--flaeche); }
.mk img, .mk video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mk-wartet { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: rgba(0,0,0,.45); color: #fff; font-size: .7rem; text-align: center; }
.mk-wartet .kreisel { border-color: rgba(255,255,255,.35); border-top-color: #fff; font-size: 1.3rem; }
.social-wahl[aria-disabled="true"] { cursor: progress; }
.ve-video { display: block; aspect-ratio: 1; border-radius: .5rem; }
.ve-wartet { position: absolute; left: 0; right: 0; bottom: 0; padding: .2rem; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; text-align: center; }
.social-wahl:disabled { cursor: not-allowed; opacity: .75; }
.ve-medium .social-wahl { width: 100%; }
.ve-medium-weg { position: absolute; top: .25rem; right: .25rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ve-medium:hover .ve-medium-weg, .ve-medium-weg:focus-visible { opacity: 1; }
@media (hover: none) { .ve-medium-weg { opacity: 1; } }
.ve-bild-jetzt { max-width: 100%; max-height: 10rem; border-radius: .5rem; display: block; margin: 0 0 .5rem; }
.ve-bilder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .4rem; }

.gf-karte { margin: .6rem 0; padding-top: .6rem; border-top: 1px solid var(--rand-leise); }
.gf-karte-titel { margin: 0 0 .3rem; font-weight: 600; }
.gf-karte-liste { list-style: none; padding: 0; margin: 0 0 .5rem; }
.gf-karte-liste li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 .5rem; }

/* Menue in Gruppen (Seitenleiste, "Mehr" am Handy, Menue aufraeumen) */
.leiste-gruppe { margin: .9rem .75rem .2rem; padding: 0; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.mehr-gruppe { margin: 1.25rem 0 .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.mehr-liste { margin-top: 0; padding-top: .15rem; padding-bottom: .15rem; }
.mehr-liste + .mehr-liste { margin-top: 1rem; }
.menue-gruppe { border: 0; padding: 0; margin: 0 0 .6rem; min-width: 0; }
.menue-gruppe legend { padding: 0; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.menue-gruppe .menue-wahl { margin-top: .2rem; }
/* Einstellungen in Reitern */
.ein-reiter { margin-top: 0; scrollbar-width: none; }
.ein-reiter::-webkit-scrollbar { display: none; }
/* Uebersicht: Bereiche ohne Zahl in einer Zeile */
.ue-ruhig { margin: -.4rem 0 1rem; line-height: 1.7; }
.ue-ruhig-titel { font-weight: 600; }
/* Heute (Schalter 'heute'): Karten mit Kopf (Zahl, Titel, Pfeil) und Zeilen; jede Zeile ein grosses Tippziel */
.heute { margin: 1rem 0; }
.heute-karte { padding: 0; overflow: hidden; }
.heute-karte.achtung { box-shadow: inset 0 0 0 2px var(--akzent); }
.heute-karte.fehler { box-shadow: inset 0 0 0 2px var(--gefahr); background: color-mix(in srgb, var(--gefahr) 9%, var(--flaeche)); }
.heute-kopf { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; min-height: 3.25rem; color: var(--text); text-decoration: none; }
.heute-zahl { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--akzent); min-width: 1.6rem; text-align: center; }
.heute-karte.fehler .heute-zahl { color: var(--gefahr); }
.heute-titel { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.heute-pfeil { font-size: 1.5rem; line-height: 1; opacity: .5; }
.heute-zeilen { list-style: none; margin: 0; padding: 0 0 .3rem; }
.heute-zeilen li a { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .7rem 1rem; min-height: 2.75rem; box-sizing: border-box; color: var(--text); text-decoration: none; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.heute-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.heute-wer { opacity: .7; }
.heute-wann { white-space: nowrap; font-size: .85em; opacity: .7; }
.heute-mehr a { justify-content: flex-start; color: var(--akzent); font-weight: 600; }
.heute-kopf:focus-visible, .heute-zeilen a:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.heute-ruhig h2 { margin-top: 0; }
.heute-unten { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
@media (hover: hover) { .heute-kopf:hover, .heute-zeilen li a:hover { background: color-mix(in srgb, var(--akzent) 6%, transparent); } }
.ue-ruhig a { color: inherit; }
@media (max-width: 40rem) {
  .ein-reiter { flex-wrap: wrap; overflow: visible; gap: .4rem; border-bottom: 0; }
  .ein-reiter button { padding: .4rem .8rem; border: 1px solid var(--rand-leise); border-radius: 1.2rem; min-height: 40px; }
  .ein-reiter button.an { border-color: var(--akzent); background: var(--akzent-hell); }
}
.mehr-liste > li { padding: 0; }
/* Markenassistent (Einstellungen, Karte Marke) */
.mk-ki-start { margin: .5rem 0 1rem; }
.mk-ki-start p { margin: .35rem 0 0; }
.mk-ki-schritt { margin: 0 0 .35rem; }
.mk-ki-balken { height: 4px; border-radius: 2px; background: var(--rand-leise); overflow: hidden; margin-bottom: 1rem; }
.mk-ki-balken span { display: block; height: 100%; background: var(--akzent); }
.mk-ki-frage { margin-top: 0; }
.mk-ki-frage:focus { outline: none; }
.mk-ki-bsp-titel { margin: .75rem 0 .1rem; }
.mk-ki-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.mk-ki-chip { border: 1px solid color-mix(in srgb, var(--akzent) 40%, transparent); background: var(--grund); color: var(--text); border-radius: 1rem; padding: .35rem .75rem; font: inherit; font-size: .85rem; text-align: left; cursor: pointer; min-height: 36px; }
.mk-ki-chip:hover { background: var(--flaeche); }
.mk-ki .feld textarea { width: 100%; }
.mk-ki-liste { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.mk-ki-liste li { margin-bottom: .5rem; font-size: .9rem; }
.mk-ki-zu { padding: 0; min-height: 0; color: var(--text); text-align: left; font-weight: 600; font-size: .9rem; }
.mk-ki-status { min-height: 1.2em; }
.mk-ki-status.fehler { color: var(--gefahr); }
/* UX Formulare: Hinweis mit Link-Knopf in einer Zeile, Unterpunkte (Feineinstellung, Code), Platzhalter-Knoepfe */
.hinweis-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0 0 1rem; }
.hinweis-zeile .leise { flex: 1 1 14rem; }
details.unterpunkt { border-top: 1px solid var(--rand-leise); padding-top: .5rem; margin: .5rem 0; }
details.unterpunkt > summary { color: var(--leise); margin-bottom: .5rem; }
.knopfreihe.platzhalter { margin: -.4rem 0 .6rem; gap: .4rem; }
details.termin-aufklapper { border-top: 1px solid var(--rand-leise); padding-top: .6rem; margin: .8rem 0; }
details.termin-aufklapper > summary { font-weight: 600; color: var(--text); }
.schalter-block { margin: 0 0 .5rem; }
.schalter-block .b-zeile { padding: .4rem 0; font-weight: 500; }
.schalter-feld { padding-left: .1rem; }
.sp-mehr { margin: -.3rem .7rem .5rem; font-size: .8rem; }
.sp-mehr > summary { margin: 0; color: var(--leise); min-height: 1.6rem; }
.sp-mehr .sp-zahlen { padding: .3rem 0 0; }
.sp-wiedergabe { margin: .3rem 0 0; color: var(--leise); }
/* Zugangs-Auswahl als Klappliste (zugangAuswahl) und mehrere als Chips (zugaengeMehrere) */
.zs { display: grid; gap: .35rem; min-width: 0; flex: 1 1 12rem; }
.zs select { width: 100%; max-width: 100%; }
.zs-neu { display: grid; gap: .25rem; }
.zs-mehrere { display: grid; gap: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .25rem .15rem .6rem; border-radius: 1rem; background: var(--akzent-hell); font-size: .9rem; font-weight: 600; }
.chip-weg { border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.05rem; line-height: 1; padding: .1rem .35rem; border-radius: 1rem; cursor: pointer; min-height: 1.75rem; min-width: 1.75rem; }
.chip-weg:hover { background: var(--flaeche); }

/* Mediathek mit Ordnern */
.mo-leiste { margin: .5rem 0 .75rem; }
.mo-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-bottom: .5rem; font-size: .9rem; }
.mo-pfad .an { font-weight: 600; color: var(--text); }
.mo-ordner { display: flex; flex-wrap: wrap; gap: .4rem; }
.mo-chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--rand-leise); background: var(--grund); color: var(--text); border-radius: .6rem; padding: .45rem .7rem; font: inherit; cursor: pointer; min-height: 40px; }
.mo-chip .symbol { width: 1.1rem; height: 1.1rem; }
.mo-chip.ziel { border-color: var(--akzent); background: var(--akzent-hell, var(--flaeche)); }
.mo-neu { border-style: dashed; color: var(--leise); }
.mo-ordner-menue { margin: 0 0 .5rem; }
.mo-aktion { position: sticky; top: .5rem; z-index: 5; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem .75rem; margin-bottom: .5rem; border-radius: .6rem; background: var(--flaeche); border: 1px solid var(--rand-leise); }
.mo-feld.an .social-wahl { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: .5rem; }
.mo-datei { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; aspect-ratio: 1; padding: .4rem; overflow: hidden; }
.mo-datei small { font-size: .7rem; overflow-wrap: anywhere; }
.mo-ziele .zeilenknopf { display: flex; align-items: center; gap: .3rem; }
.social-medien > .mo-leiste { grid-column: 1 / -1; margin: 0 0 .25rem; }

.ig-neu { flex-direction: column; align-items: flex-start; }
.ig-neu-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.ig-prompt { width: 100%; font-size: .85rem; }

/* Tag-Feld: eigene Vorschlagsliste */
.tag-eingabe { position: relative; }
.tag-vorschlag { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: .2rem 0 0; padding: .25rem; list-style: none; background: var(--grund); border: 1px solid var(--rand); border-radius: .6rem; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 16rem; overflow: auto; }
.tag-vorschlag li { padding: .5rem .7rem; border-radius: .4rem; cursor: pointer; }
.tag-vorschlag li:hover, .tag-vorschlag li.an { background: var(--flaeche); }

.mo.mo-ablage { outline: 2px dashed var(--akzent); outline-offset: -6px; background: var(--akzent-hell, var(--flaeche)); }
.mo-stand { margin: .25rem 0 .5rem; }
/* Vertrag zum Lesen und Annehmen (E59): eigener Rollbereich, damit Felder und Knopf in Reichweite bleiben */
.vertrag-text { max-height: 55vh; overflow: auto; border: 1px solid var(--rand-leise); border-radius: .6rem; padding: .25rem 1rem; margin: 0 0 1rem; font-size: .95rem; overscroll-behavior: contain; }
.vertrag-text h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
/* Verkauf: Kennzahlen und Startschuss je Auftrag (16.11.2026) */
.va-kz-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.va-kz { border: 1px solid var(--rand-leise); border-radius: .75rem; padding: .7rem .85rem; }
.va-kz-wert { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.va-start { margin-top: .45rem; }
.va-start p { margin: .2rem 0; }
.va-start .ok { color: var(--ok, #2f7a4b); }
.va-kz-tabelle { overflow-x: auto; }
.va-kz-tabelle table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.va-kz-tabelle th, .va-kz-tabelle td { text-align: left; padding: .35rem .6rem; border-bottom: 1px solid var(--rand-leise); white-space: nowrap; }
.va-kz-tabelle th { color: var(--leise); font-weight: 500; }

/* Empfehlen (Verwaltung): Status der Anmeldung, Kennzahlen, Reiter, Zeilen mit Aktionen rechts, mobil darunter (17.11.2026) */
.ep-status { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem .8rem; padding: .85rem 1rem; margin: 0 0 1rem; border-radius: .9rem; background: var(--flaeche); }
.ep-punkt { flex: none; width: .65rem; height: .65rem; margin-top: .4rem; border-radius: 50%; background: var(--leise); }
.ep-status.an .ep-punkt { background: var(--ok, #2f7a4b); }
.ep-status-text { flex: 1 1 16rem; min-width: 0; }
.ep-status-text p { margin: .15rem 0; }
.ep-status-titel { font-weight: 600; }
.ep-status-knopf { flex: none; align-self: center; }
.ep-admin .va-kz-reihe { margin-bottom: .5rem; }
.ep-admin h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.ep-unterkopf { margin: 1.4rem 0 .4rem !important; }
.ep-leer { text-align: left; }
.ep-leer p { margin: .2rem 0; }
.ep-leer-titel { font-weight: 600; }
.ep-liste > li { padding: .8rem 0; }
.ep-zeile { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; }
.ep-haupt { flex: 1 1 18rem; min-width: 0; overflow-wrap: anywhere; }
.ep-haupt p { margin: .1rem 0; }
.ep-aktion { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.ep-aktion select { width: auto; max-width: 100%; font-size: .9rem; padding: .45rem .6rem; min-height: 40px; }
.ep-mehr { margin-top: .35rem; }
.ep-mehr > summary { cursor: pointer; color: var(--akzent); font-size: .9rem; min-height: 32px; display: inline-flex; align-items: center; }
.ep-mehr[open] { padding: .6rem .8rem .8rem; border: 1px solid var(--rand-leise); border-radius: .7rem; }
.ep-formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; margin-top: .5rem; }
.ep-formular .feld { margin-bottom: .7rem; }
.ep-erledigt { background: color-mix(in srgb, var(--ok, #2f7a4b) 18%, transparent); }
.ep-iban { overflow-wrap: anywhere; font-size: .85rem; }
.ep-admin .status { margin: 0; }
#ea-monat { max-width: 20rem; }
@media (max-width: 40rem) {
  .ep-status-knopf { flex-basis: 100%; padding-left: 1.45rem; }
  .ep-aktion { justify-content: flex-start; width: 100%; }
  .ep-aktion select { flex: 1 1 100%; }
}

/* Mediathek: bleibender Bericht nach dem Ordner-Upload (17.11.2026) */
.mo-bericht { margin: .25rem 0 .75rem; padding: .7rem .9rem; border-radius: .75rem; background: var(--flaeche); border: 1px solid var(--rand-leise); overflow-wrap: anywhere; }
.mo-bericht p, .mo-bericht details { margin: .2rem 0; }
.mo-bericht-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.mo-bericht-liste { margin: .3rem 0 .4rem; padding-left: 1.2rem; max-height: 14rem; overflow-y: auto; }
.mo-stand .kreisel { vertical-align: -.15em; }

/* Schalter-Banner (E60): neue Bedienung jetzt einschalten oder spaeter */
.schalter-banner { display: grid; gap: .6rem; margin: 0 0 1rem; }
.schalter-eintrag { padding: .8rem 1rem; border-radius: .75rem; background: color-mix(in srgb, var(--akzent) 10%, var(--grund)); border: 1px solid color-mix(in srgb, var(--akzent) 35%, transparent); }
.schalter-eintrag p { margin: .15rem 0; }
.schalter-eintrag .knopfreihe { justify-content: flex-start; margin-top: .4rem; }
/* Probeversion (E80): Band mit Restzeit und Weg zur Vollversion */
.probe-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin: 0 0 1rem; padding: .7rem 1rem; border-radius: .75rem;
  background: color-mix(in srgb, var(--akzent) 8%, var(--grund)); border: 1px solid color-mix(in srgb, var(--akzent) 30%, transparent); }
.probe-banner.bald { border-color: var(--akzent); }
.probe-banner-text { font-weight: 600; }
.probe-fenster textarea { width: 100%; margin: .2rem 0 .6rem; }
.probe-punkte { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.probe-grund { font-weight: 600; }
/* Kunden-Apps (Betreiber, E60) */
.ka-liste { display: grid; gap: .6rem; margin-top: .75rem; }
.ka-app { padding: .8rem 1rem; border-radius: .75rem; background: var(--flaeche); border: 1px solid var(--rand-leise); overflow-wrap: anywhere; }
.ka-app p { margin: .15rem 0; } .ka-app .knopfreihe { justify-content: flex-start; margin-top: .4rem; }
.ka-warn { border-color: var(--gefahr); }
.ka-module { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr)); gap: .2rem .8rem; margin: .4rem 0 .8rem; }
.ka-modul { display: flex; gap: .4rem; align-items: center; min-height: 2.2rem; }
.ka-ampel { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; }
.ka-punkt { width: .65rem; height: .65rem; border-radius: 50%; flex: none; background: var(--leise); }
.ka-gruen .ka-punkt { background: var(--erfolg, #2f8a52); } .ka-gelb .ka-punkt { background: #e0a800; } .ka-rot .ka-punkt { background: var(--gefahr); }
.ka-rot { color: var(--gefahr); } .ka-grau { color: var(--leise); font-weight: 500; }
.ka-fehlt { margin: .1rem 0 .3rem 1.1rem; } .ka-fehlt ul { margin: .3rem 0; padding-left: 1.1rem; }
.ka-runde { margin-top: .75rem; } .ka-runde .knopfreihe { justify-content: flex-start; }
.ka-auftrag { padding: .8rem 1rem; margin-bottom: .6rem; border-radius: .75rem; background: var(--flaeche); border: 1px solid var(--rand-leise); overflow-wrap: anywhere; }
.ka-auftrag p, .ka-auftrag ul { margin: .2rem 0; }

/* Unterschrift zur AVV (17.11.2026): Feld, QR-Code fuers Handy, getippter Name */
.vt-unterschrift { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--rand-leise); border-radius: .9rem; background: var(--flaeche); }
.vt-unterschrift h4 { margin: 0 0 .5rem; }
.vt-feld { position: relative; width: 100%; max-width: 36rem; aspect-ratio: 3 / 1; background: #fff; border: 1.5px solid var(--rand); border-radius: .8rem; touch-action: none; }
.vt-feld canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: .8rem; cursor: crosshair; }
.vt-linie { position: absolute; left: 8%; right: 8%; bottom: 26%; border-bottom: 1.5px dashed #cbbfb2; pointer-events: none; }
.vt-x { position: absolute; left: 4.5%; bottom: 24%; color: #b3a596; font-size: 1.2rem; pointer-events: none; }
.vt-handy { display: flex; gap: 1rem; align-items: center; margin: 0 0 1rem; padding: .8rem; background: var(--grund); border-radius: .8rem; border: 1px solid var(--rand-leise); }
.vt-handy p { margin: .15rem 0; }
.vt-qr { flex: none; width: 9.5rem; height: 9.5rem; background: #fff; padding: .3rem; border-radius: .5rem; }
.vt-qr svg { width: 100%; height: 100%; display: block; }
.vt-vorschau { max-width: 24rem; background: #fff; border: 1px solid var(--rand-leise); border-radius: .6rem; }
.vt-vorschau svg { display: block; width: 100%; height: auto; }
.vt-getippt { font: italic 2rem/1.3 'Snell Roundhand', 'Segoe Script', 'Apple Chancery', cursive; color: #1a1a2e; margin: .2rem 0 .4rem; padding: .3rem .8rem; background: #fff; border-radius: .6rem; display: inline-block; min-width: 12rem; }
@media (max-width: 30rem) { .vt-handy { flex-direction: column; align-items: flex-start; } }

/* Willkommen: gefuehrte Reise (17.11.2026) */
.reise { max-width: 46rem; }
.reise-schritte { list-style: none; padding: 0; margin: .8rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.reise-punkt .textknopf { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .4rem; border-radius: 2rem; background: var(--flaeche); border: 1px solid var(--rand-leise); text-decoration: none; color: var(--text); font-size: .9rem; }
.reise-punkt.jetzt .textknopf { border-color: var(--akzent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--akzent) 25%, transparent); }
.reise-nr { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--grund); border: 1px solid var(--rand); font-size: .8rem; font-weight: 600; }
.reise-punkt.ok .reise-nr { background: var(--erfolg, #5f8a6a); border-color: transparent; color: #fff; }
.reise-buehne { padding: 1rem 1.1rem; border-radius: .9rem; background: var(--flaeche); border: 1px solid var(--rand-leise); }
.reise-buehne h2 { margin-top: 0; }
/* Ein Hauptknopf je Schritt, darunter leise Wege (Winni 17.11.2026) */
.reise-wege { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin: .9rem 0; }
.reise-claude-hinweis { margin: 0; }
.reise-leise { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: .2rem 0 0; }
.reise-wahl strong { display: block; }
.reise-unten { justify-content: flex-start; margin-top: 1rem; }
.reise-ok { color: var(--erfolg, #2f7a4b); font-weight: 600; }
.wk-link { width: 100%; font-size: .85rem; margin: .3rem 0; }

/* Eigene App eines Moduls (Buch) im Inhaltsbereich der Verwaltung, rechts der Leiste (17.11.2026) */
@media (min-width: 900px) {
  body.mit-rahmen[data-app="verwaltung"] main { max-width: none; padding: 0; margin-right: 0; }
}
.modul-rahmen { display: block; width: 100%; height: 80vh; border: 0; background: var(--grund); }

/* Vorschau nicht gebuchter Module (17.11.2026): fester Streifen, Rahmen aus dem Schaufenster, Schloss im Menue */
.schloss { font-size: .75em; opacity: .7; margin-left: .15rem; }
.vs-streifen { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: color-mix(in srgb, var(--akzent) 12%, var(--grund)); border-bottom: 1px solid color-mix(in srgb, var(--akzent) 35%, transparent); }
.vs-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 18rem; }
.vs-text strong { font-size: .95rem; } .vs-text span { font-size: .88rem; color: var(--leise); }
.vs-preis { color: var(--text) !important; font-weight: 600; }
.vs-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.vs-karte { margin: 1rem; }
/* Built from Pleasure */
.programm-karte { border: 1px solid color-mix(in srgb, var(--akzent) 35%, transparent); background: color-mix(in srgb, var(--akzent) 6%, var(--grund)); }
.programm-oben { margin: 0; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--akzent); font-weight: 600; }
.programm-karte h2 { margin: .2rem 0 .4rem; }
.ab-ansehen { display: inline-block; margin-top: .3rem; }

/* Menue: "Mehr fuer dein Business" als Klappe, Schloss neben dem (abgeschnittenen) Namen (17.11.2026) */
.leiste-klappe-inhalt:not([hidden]) { display: contents; }
.leiste-klappe { background: none; border: 0; cursor: pointer; align-items: center; justify-content: space-between; gap: .4rem; text-align: left; font-family: inherit; padding: .2rem 0; }
.leiste-klappe:hover { color: var(--text); }
.leiste-klappe .klappe-pfeil { transition: transform .15s; font-size: .9rem; }
.leiste-klappe[aria-expanded="false"] .klappe-pfeil { transform: rotate(-90deg); }
.leiste-punkt .mit-schloss, .mehr-link .mit-schloss { display: flex; align-items: center; gap: .3rem; min-width: 0; overflow: visible; }
.mit-schloss > .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mit-schloss > .schloss { flex: none; overflow: visible; margin-left: 0; }
.mehr-klappe > summary { cursor: pointer; }
/* Kontakte umziehen (Reise, 18.11.2026): Vorschau mit Zahlen vor dem Einspielen */
.reise-gesperrt { padding: .7rem .9rem; border-radius: .6rem; background: var(--grund); border: 1px solid var(--rand-leise); }
.kontakte-umzug { margin-top: 1rem; }
.kontakte-zahlen { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; gap: .25rem; }
.kontakte-zahlen li { display: flex; gap: .5rem; }
.kontakte-zahlen strong { flex: none; min-width: 3rem; font-variant-numeric: tabular-nums; }
.feld-haken { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0; }
.feld-haken input { margin-top: .25rem; flex: none; }
.ig-connector { margin: 0 0 1rem; }
/* Social-Planer: ungespeicherte Texte (Text-Schutz) */
.sp-kopien ul.liste { margin: .5rem 0 0; }
.sp-kopien li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.sp-kopien li > span { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.sp-kopie .knopfreihe, .sp-kopien .knopfreihe { margin: .5rem 0 0; }
/* Mediathek: Favorit, Schlagworte, Filter (Schalter mediathek_schlagworte, 24.11.2026) */
.mf-leiste { display: grid; gap: .4rem; margin: 0 0 .6rem; }
.mf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.mf-suche { flex: 1 1 10rem; min-width: 0; min-height: 40px; }
.mf-chip { border: 1px solid var(--rand-leise); background: var(--grund); color: var(--text); border-radius: 999px; padding: .35rem .7rem; font: inherit; font-size: .9rem; cursor: pointer; min-height: 36px; }
.mf-chip.an { border-color: var(--akzent); background: var(--akzent-hell, var(--flaeche)); font-weight: 600; }
.mf-wort { font-size: .85rem; }
.mf-hinweis { margin: 0; }
.mf-stern, .mf-info { position: absolute; top: .25rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mf-stern { left: .25rem; opacity: .75; }
.mf-stern.an { color: #ffd34d; opacity: 1; }
.mf-info { left: 2.3rem; opacity: 0; transition: opacity .15s; }
.ve-medium:hover .mf-info, .mf-info:focus-visible { opacity: 1; }
@media (hover: none) { .mf-info { opacity: 1; } }
.mf-kachel-worte { display: block; font-size: .7rem; color: var(--leise); margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-angaben { display: grid; gap: .75rem; }
.mf-angaben textarea { width: 100%; }
.mf-bild { max-width: 100%; max-height: 40vh; object-fit: contain; border-radius: .5rem; justify-self: start; }
.mf-worte { min-height: 2rem; }

/* Vorschau vor dem Speichern (A.vorschau in app.js, Schalter vorschau_vor_speichern, 24.11.2026): Rahmen in echter
   Breite (Handy 390, Rechner 1200 Pixel), auf die Breite der Spalte verkleinert */
.vr { margin: 1rem 0; padding: .75rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); min-width: 0; }
.vr-leiste { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.vr-sicht { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; padding: 3px; background: var(--grund); }
.vr-sicht button { border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; padding: .35rem .9rem; border-radius: 999px; cursor: pointer; min-height: 36px; }
.vr-sicht button[aria-pressed=true] { background: var(--akzent); color: var(--knopf-text, #fff); }
.vr-kopf { background: var(--grund); border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .75rem; margin-bottom: .5rem; }
.vr-kopf p { margin: .1rem 0; overflow-wrap: anywhere; }
.vr-betreff { font-weight: 600; }
.vr-feld { color: var(--leise); font-weight: 400; }
.vr-buehne { position: relative; overflow: hidden; width: 100%; background: #fff; border: 1px solid var(--linie); border-radius: 8px; }
.vr-buehne.vr-handy { max-width: 390px; margin: 0 auto; border-radius: 18px; }
.vr-rahmen { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; display: block; }
.vr-status { min-height: 1.2em; margin: .4rem 0 0; }

/* Seite Design (Einstellungen): Felder links, Live-Vorschau rechts. Die Vorschau setzt die Variablen der App auf
   ihrem Rahmen (functions/_lib/design.js rechnet sie), darin echte Karte, Knopf und Link. */
.design-raster { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .design-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); } .design-rechts { position: sticky; top: 1rem; align-self: start; } }
.design-gruppe { border: 1px solid var(--rand-leise); border-radius: 12px; padding: .75rem 1rem 0; margin: 0 0 1rem; min-width: 0; }
.design-gruppe legend { font-weight: 600; padding: 0 .25rem; }
.design-farbe-zeile { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.design-farbe-zeile input[type="color"] { inline-size: 3rem; block-size: 2.75rem; padding: 2px; border: 1px solid var(--rand); border-radius: 8px; background: var(--grund); }
.design-farbe-zeile input[type="text"] { flex: 1 1 7rem; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.design-farbe.fehler input[type="text"] { border-color: var(--gefahr); }
.design-vorschau { background: var(--grund); color: var(--text); font-family: var(--schrift-text); border: 1px solid var(--rand); border-radius: 14px; overflow: hidden; }
.design-vorschau h3 { font-family: var(--schrift-titel); font-weight: var(--titel-gewicht); margin: 0 0 .5rem; }
.design-v-kopf { padding: .75rem 1rem; border-bottom: 1px solid var(--rand-leise); min-height: 3rem; display: flex; align-items: center; }
.design-v-logo img { max-height: 2.25rem; max-width: 10rem; display: block; }
.design-v-innen { padding: 1rem; }
.design-v-innen .karte { background: var(--flaeche); margin: 0 0 1rem; }
.design-v-fuss { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .75rem 1rem; border-top: 1px solid var(--rand-leise); font-size: .875rem; color: var(--leise); }
.design-probleme { list-style: none; padding: 0; margin: .75rem 0 0; }
.design-probleme li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem .75rem; margin: 0 0 .5rem; border-radius: 10px; background: var(--hinweis); color: var(--text); }
.design-probleme li > span { flex: 1 1 12rem; min-width: 0; }

/* ---------- Hilfe: Suche, Artikel, "?" (24.11.2026, app.js hilfeSuchen) ---------- */
.kopf-hilfe { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .7rem; border: 1px solid var(--rand-leise);
  border-radius: 999px; background: var(--grund); color: var(--leise); font: inherit; font-size: .9rem; cursor: pointer; }
.kopf-hilfe:hover { color: var(--text); border-color: var(--leise); }
.kopf-hilfe .symbol { width: 1.15rem; height: 1.15rem; }
.kopf-hilfe-kbd { font: inherit; font-size: .75rem; padding: .05rem .35rem; border: 1px solid var(--rand-leise); border-radius: .35rem; }
@media (max-width: 899px) { .kopf-hilfe { padding: .35rem; min-width: 2.5rem; justify-content: center; } .kopf-hilfe-text, .kopf-hilfe-kbd { display: none; } }
h1 .hilfe-frage { margin-left: .5rem; vertical-align: .2em; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--rand-leise); background: transparent;
  color: var(--leise); font: inherit; font-size: .85rem; font-weight: 700; line-height: 1; cursor: pointer; }
h1 .hilfe-frage:hover { color: var(--akzent); border-color: var(--akzent); }
.ebene.hilfe-ebene { max-width: 40rem; }
.hilfe-feldzeile { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--rand-leise); padding-bottom: .5rem; }
.hilfe-feldzeile .symbol { flex: none; color: var(--leise); }
.hilfe-feld { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.1rem; padding: .5rem 0; color: var(--text); }
.hilfe-feld:focus { outline: none; }
.hilfe-feld::-webkit-search-cancel-button { cursor: pointer; }
.hilfe-liste { margin-top: .5rem; max-height: min(60vh, 28rem); overflow-y: auto; }
.hilfe-gruppe { margin: .75rem 0 .25rem; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
.hilfe-treffer { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .6rem; border-radius: .6rem; cursor: pointer; }
.hilfe-treffer .symbol { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--akzent); }
.hilfe-treffer[aria-selected="true"] { background: var(--flaeche); }
.hilfe-treffer-text { display: flex; flex-direction: column; min-width: 0; }
.hilfe-treffer-text span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hilfe-ki { margin-top: .75rem; padding: .75rem .9rem; border-radius: .75rem; background: var(--flaeche); }
.hilfe-ki p { margin: .25rem 0; }
.hilfe-ki-titel { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.hilfe-ki-titel .symbol, .hilfe-ki-knopf .symbol { width: 1.1rem; height: 1.1rem; color: var(--akzent); }
.hilfe-ki-knopf { display: inline-flex; align-items: center; gap: .4rem; }
.hilfe-tipp { margin: .75rem 0 0; }
@media (hover: none) { .hilfe-tipp { display: none; } }
.hilfe-artikel h3 { margin: 1rem 0 .35rem; font-size: 1rem; }
.hilfe-schritte { padding-left: 1.3rem; }
.hilfe-schritte li { margin: .3rem 0; }
.hilfe-orte { list-style: none; padding: 0; margin: .75rem 0; }
.hilfe-orte li { margin: .2rem 0; }
.hilfe-orte button { display: inline-flex; align-items: center; gap: .4rem; text-align: left; }
.hilfe-orte .symbol { width: 1rem; height: 1rem; flex: none; }
.hilfe-zurueck { margin-bottom: .5rem; }
.hilfe-zeigen { outline: 3px solid var(--akzent) !important; outline-offset: 3px; border-radius: .4rem; animation: hilfe-puls 1.2s ease-in-out 2; }
@keyframes hilfe-puls { 50% { outline-offset: 7px; } }
@media (prefers-reduced-motion: reduce) { .hilfe-zeigen { animation: none; } }
/* Buchungsseite: Zeiten als Auswahlliste (Schalter buchung_zeitliste) und Preisstufen (buchung_bezahlen). Gross genug fuer den Daumen */
.buchung .zeitliste select { min-height: 3rem; }
.buchung #tagwahl { margin-top: 1rem; }
.buchung .zeitliste + .zeitliste { margin-top: .4rem; }
.buchung .bu-stufen { border: 0; padding: 0; margin: 0 0 1rem; }
.buchung .bu-stufen legend { font-weight: 600; margin-bottom: .4rem; }
.buchung .bu-stufe { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--rand); border-radius: .55rem; margin-bottom: .5rem; cursor: pointer; }
.buchung .bu-stufe input { width: auto; margin-top: .25rem; }
.buchung .bu-stufe:has(input:checked) { border-color: var(--akzent); }
/* Profil je Geschaeftsart (functions/_lib/profile.js): Wahl in Einstellungen > Ansicht, "Weitere Bereiche" in der Leiste */
.profil-arten { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: .6rem 0 1.2rem; }
.profil-art { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--rand); border-radius: .6rem; cursor: pointer; }
.profil-art.an { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent) inset; }
.profil-art input { margin-top: .2rem; flex: none; }
.profil-art > span { display: flex; flex-direction: column; gap: .15rem; }
.leiste-untergruppe { margin-top: .6rem; font-size: .66rem; }
.mehr-untergruppe { margin-top: .8rem; font-size: .72rem; text-transform: none; letter-spacing: 0; }

/* Wer macht was (24.11.2026): der eine Satz und das Bild mit den vier Rollen, breit oder schmal je nach Platz */
.produkt-satz { font-weight: 600; font-size: 1.05rem; margin: 0 0 .4rem; }
.wmw-details { margin: 0 0 1rem; }
.wmw-details > summary { cursor: pointer; color: var(--akzent); font-weight: 600; padding: .2rem 0; }
.wmw { margin-top: .6rem; }
.wmw svg { display: block; width: 100%; height: auto; max-width: 46rem; margin: 0 auto; }
.wmw-schmal { display: none; }
@media (max-width: 560px) { .wmw-breit { display: none; } .wmw-schmal { display: block; } .wmw-schmal svg { max-width: 22rem; } }

/* Mediathek als Dateimanager (Schalter mediathek_dateimanager, 26.11.2026): Baum, Brotkrumen, Raster oder Liste,
   Auswahl mit Rahmen, Ziehen auf Ordner, Rechtsklick-Menue, Meldung mit Rueckgaengig. Am Handy ohne Baum. */
.fm-rahmen { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: .5rem; }
.fm-ohne-baum .fm-rahmen { grid-template-columns: minmax(0, 1fr); }
.fm-ohne-baum .fm-baum { display: none; }
.fm-baum { position: sticky; top: .75rem; max-height: calc(100vh - 2rem); overflow: auto; padding: .25rem .5rem .25rem 0; border-right: 1px solid var(--rand-leise); }
.fm-baum ul { list-style: none; margin: 0; padding: 0; }
.fm-knoten-zeile { display: flex; align-items: center; gap: .1rem; }
.fm-auf, .fm-auf-platz { flex: none; width: 1.4rem; height: 1.9rem; }
.fm-auf { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: .35rem; background: none; color: var(--leise); cursor: pointer; }
.fm-auf:hover { background: var(--flaeche); color: var(--text); }
.fm-auf .symbol { width: .85rem; height: .85rem; transition: transform .15s ease; }
.fm-auf.offen .symbol { transform: rotate(90deg); }
.fm-knoten { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; padding: .3rem .5rem; min-height: 2rem; border: 0; border-radius: .45rem; background: none; color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.fm-knoten:hover { background: var(--flaeche); }
.fm-knoten.an { background: var(--akzent-hell, var(--flaeche)); font-weight: 600; }
.fm-knoten .symbol { flex: none; width: 1.05rem; height: 1.05rem; color: var(--akzent); }
.fm-knoten-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-knoten small { font-variant-numeric: tabular-nums; }
.fm-knoten.ziel, .fm-krume.ziel, .fm-el.ziel { outline: 2px solid var(--akzent); outline-offset: -2px; background: var(--akzent-hell, var(--flaeche)); }
.fm-haupt { min-width: 0; }
.fm-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin-bottom: .6rem; }
.fm-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: .05rem; min-width: 0; font-size: .98rem; }
.fm-krume { max-width: 16rem; padding: .3rem .45rem; border: 0; border-radius: .4rem; background: none; color: var(--leise); font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.fm-krume:hover { background: var(--flaeche); color: var(--text); }
.fm-krume.an { color: var(--text); font-weight: 600; cursor: default; }
span.fm-krume { cursor: default; }
.fm-pfad-trenner { color: var(--leise); padding: 0 .05rem; }
.fm-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; margin-left: auto; }
.fm-werkzeuge .knopf { width: auto; }
.fm-werkzeuge .symbol { width: 1.05rem; height: 1.05rem; vertical-align: -.2em; }
.fm-sort { width: auto; max-width: 12rem; min-height: 36px; padding: .3rem .5rem; border: 1px solid var(--rand-leise); border-radius: .5rem; background: var(--grund); color: var(--text); font: inherit; font-size: .9rem; }
.fm-ansicht { display: inline-flex; border: 1px solid var(--rand-leise); border-radius: .5rem; overflow: hidden; }
.fm-ansicht-knopf { display: inline-flex; align-items: center; min-height: 34px; padding: .3rem .55rem; border: 0; background: var(--grund); color: var(--leise); cursor: pointer; }
.fm-ansicht-knopf + .fm-ansicht-knopf { border-left: 1px solid var(--rand-leise); }
.fm-ansicht-knopf.an { background: var(--flaeche); color: var(--text); }
.fm-ansicht-knopf .symbol { width: 1.1rem; height: 1.1rem; }
.fm .mo-aktion { position: fixed; left: 50%; bottom: calc(var(--fm-unten, 0px) + 1rem + env(safe-area-inset-bottom)); top: auto; z-index: 40; /* ueber nav.leiste (20), unter .ebene-hg (60) */ width: max-content; max-width: calc(100vw - 2rem); margin: 0; padding: .55rem .6rem .55rem 1rem; border-radius: .9rem; background: var(--grund); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transform: translateX(-50%); }
.fm.mit-auswahl .fm-toast { bottom: calc(var(--fm-unten, 0px) + 5.5rem + env(safe-area-inset-bottom)); }
.fm.mit-auswahl .fm-flaeche { padding-bottom: 6rem; }
.fm-zahl { font-variant-numeric: tabular-nums; }
.fm-luecke { flex: 1; }
.fm-flaeche { position: relative; min-height: 16rem; padding: .3rem .3rem 3rem; border-radius: .6rem; outline: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fm-flaeche:focus-visible { box-shadow: 0 0 0 2px var(--akzent); }
.fm.mo-ablage .fm-flaeche { background: var(--akzent-hell, var(--flaeche)); }
.fm-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; align-content: start; }
.fm-el { position: relative; border: 1px solid transparent; border-radius: .65rem; cursor: default; -webkit-tap-highlight-color: transparent; }
.fm-raster .fm-el { display: flex; flex-direction: column; padding: .4rem; }
@media (hover: hover) { .fm-el:hover { background: var(--flaeche); } }
.fm-el.an { background: var(--akzent-hell, var(--flaeche)); border-color: var(--akzent); }
.fm-flaeche:focus-visible .fm-el.fokus { box-shadow: 0 0 0 2px var(--akzent); }
.fm-el.fm-zieht { opacity: .4; }
.fm-bild { display: block; overflow: hidden; border-radius: .45rem; background: var(--flaeche); pointer-events: none; }
.fm-raster .fm-bild { aspect-ratio: 1; }
.fm-bild .mk { display: block; width: 100%; height: 100%; }
.fm-bild img, .fm-bild video { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.fm-ist-ordner .fm-bild { background: none; }
.fm-ordner-bild, .fm-datei-bild { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 100%; height: 100%; color: var(--akzent); }
.fm-ordner-bild .symbol { width: 62%; height: 62%; fill: var(--akzent-hell, transparent); stroke-width: 1.2; }
.fm-datei-bild .symbol { width: 45%; height: 45%; stroke-width: 1.4; }
.fm-datei-bild small { font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--leise); }
.fm-text { display: flex; flex-direction: column; min-width: 0; padding: .4rem .15rem 0; }
.fm-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .86rem; line-height: 1.3; }
.fm-unter { font-size: .74rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.fm-name-feld { width: 100%; padding: .15rem .3rem; border: 1.5px solid var(--akzent); border-radius: .3rem; background: var(--grund); color: var(--text); font: inherit; font-size: .86rem; user-select: text; -webkit-user-select: text; }
.fm-mehr { position: absolute; top: .6rem; right: .6rem; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s ease; }
.fm-el:hover .fm-mehr, .fm-el.an .fm-mehr, .fm-el.fokus .fm-mehr, .fm-mehr:focus-visible { opacity: 1; }
@media (hover: none) { .fm-mehr { opacity: 1; } }
.fm-stern { position: absolute; top: .6rem; left: .7rem; color: #f5b301; text-shadow: 0 0 3px rgba(0, 0, 0, .6); pointer-events: none; }
/* Liste */
.fm-liste { display: flex; flex-direction: column; gap: 1px; }
.fm-kopfzeile, .fm-liste .fm-el { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 6.5rem 5.5rem 6.5rem 2.2rem; align-items: center; gap: .75rem; padding: .3rem .5rem; }
.fm-kopfzeile { position: sticky; top: 0; z-index: 1; padding-top: .2rem; padding-bottom: .35rem; border-bottom: 1px solid var(--rand-leise); background: var(--grund); font-size: .8rem; color: var(--leise); }
.fm-kopfzeile button { padding: .15rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fm-kopfzeile button.an { color: var(--text); font-weight: 600; }
.fm-liste .fm-el { border-radius: .45rem; }
.fm-liste .fm-bild { width: 2.6rem; height: 2.6rem; }
.fm-liste .fm-text { padding: 0; }
.fm-liste .fm-name { -webkit-line-clamp: 1; font-size: .92rem; }
.fm-spalte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.fm-liste .fm-mehr { position: static; width: 2rem; height: 2rem; background: none; color: var(--leise); }
.fm-liste .fm-stern { top: .1rem; left: .35rem; font-size: .8rem; }
.fm-leer { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--leise); }
.fm-leer .symbol { width: 2.6rem; height: 2.6rem; color: var(--akzent); }
.fm-leer p { margin: .5rem 0 1rem; }
.fm-rahmenwahl { position: fixed; z-index: 30; border: 1px solid var(--akzent); border-radius: 3px; background: rgba(120, 120, 255, .12); background: color-mix(in srgb, var(--akzent) 14%, transparent); pointer-events: none; }
.fm-ziehbild { position: fixed; top: -1000px; left: 0; padding: .4rem .75rem; border-radius: .5rem; background: var(--akzent); color: #fff; font-size: .86rem; font-weight: 600; white-space: nowrap; }
/* Menue */
.fm-menue { position: fixed; z-index: 58; min-width: 14rem; max-width: 22rem; padding: .3rem; border: 1px solid var(--rand-leise); border-radius: .65rem; background: var(--grund); color: var(--text); box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
.fm-menue button { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; min-height: 2.2rem; padding: .4rem .65rem; border: 0; border-radius: .4rem; background: none; color: inherit; font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.fm-menue button:hover, .fm-menue button:focus { background: var(--flaeche); outline: none; }
.fm-menue button.gefahr-farbe { color: var(--gefahr); }
.fm-menue kbd { font: inherit; font-size: .76rem; color: var(--leise); }
.fm-menue-strich { height: 1px; margin: .25rem .35rem; background: var(--rand-leise); }
.fm-menue.unten { left: 0; right: 0; bottom: 0; max-width: none; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom)); border-radius: 1rem 1rem 0 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
.fm-menue.unten button { min-height: 3rem; font-size: 1rem; }
/* Meldung mit Rueckgaengig */
.fm-toast { position: fixed; left: 50%; bottom: calc(var(--fm-unten, 0px) + 1.25rem + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 2rem); padding: .7rem 1rem; border-radius: .75rem; background: var(--text); color: var(--grund); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transform: translateX(-50%); }
.fm-toast .textknopf { color: inherit; font-weight: 700; text-decoration: underline; }
/* Vorschau */
.fm-vorschau-titel { overflow-wrap: anywhere; }
.fm-vorschau-bild { display: block; max-width: 100%; max-height: 60vh; margin: .5rem auto; border-radius: .6rem; }
.fm-vorschau-ton { width: 100%; margin: .5rem 0; }
.fm-daten { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: .75rem 0 .25rem; font-size: .9rem; }
.fm-daten dt { color: var(--leise); }
.fm-daten dd { margin: 0; overflow-wrap: anywhere; }
.fm-stellen { margin: .25rem 0 .9rem; }
.fm-warnung { margin: .5rem 0 .75rem; padding: .6rem .85rem; border: 1px solid var(--gefahr); border-radius: .6rem; background: var(--flaeche); }
.fm-warnung p { margin: .2rem 0; }
.fm-nur-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .fm-nur-touch { display: inline-flex; } }
@media (max-width: 760px) {
  .fm .mo-aktion { left: .5rem; right: .5rem; bottom: calc(var(--fm-unten, 0px) + .5rem); width: auto; max-width: none; padding: .45rem .5rem .45rem .75rem; transform: none; gap: .35rem; }
  .fm.mit-auswahl .fm-toast { bottom: calc(var(--fm-unten, 0px) + 7rem); }
  .fm-rahmen { grid-template-columns: minmax(0, 1fr); }
  .fm-baum { display: none; }
  .fm-raster { grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: .3rem; }
  .fm-raster .fm-el { padding: .25rem; }
  .fm-mehr { top: .4rem; right: .4rem; width: 1.9rem; height: 1.9rem; }
  .fm-kopfzeile, .fm-liste .fm-el { grid-template-columns: 2.6rem minmax(0, 1fr) 2.2rem; }
  .fm-liste .fm-spalte, .fm-kopfzeile .fm-k-zusatz { display: none; }
}

/* Neue Bedienungen: Hinweis oben auf der Seite und Liste unter Einstellungen (26.11.2026) */
.schalter-seite { margin: 0 0 1rem; }
.schalter-neu-an { margin: 0; padding: .55rem .85rem; border-radius: .65rem; background: var(--flaeche); border: 1px solid var(--rand-leise); }
.schalter-neu-an .textknopf { font-weight: 600; }
.schalter-liste .liste { list-style: none; margin: .75rem 0 0; padding: 0; }
.schalter-liste .liste .schalter-zeile { display: block; padding: .85rem 0; border-top: 1px solid var(--rand-leise); }
.schalter-zeile p { margin: .15rem 0; }
.schalter-zeile .schalter-titel { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.schalter-zeile .knopfreihe { justify-content: flex-start; margin-top: .45rem; }
.schalter-zurueck textarea { width: 100%; }
