/* Leadvio Haendlerbereich.
   Ruhig und dicht: Inhalte direkt auf weisser Flaeche, Abschnitte durch Linien getrennt, keine Kaesten um alles,
   keine Etiketten in Grossbuchstaben, keine Farbstriche an Kacheln, Farbe nur dort, wo etwas zu tun ist. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --blau: #0159fb; --blau-tief: #0043c9; --nacht: #00103a; --tinte: #1c2540; --grau: #636c82; --linie: #e2e6ee; --linie-zart: #eef1f6; --linie-stark: #c3cad8;
  --spur: #f2f4f8; --weiss: #fff; --rot: #b3261e; --rot-hell: #fbeceb; --gruen: #0f6b43; --gruen-hell: #edf6f1; --gelb: #8a5a00; --gelb-hell: #fdf5e0;
  --radius: 4px; --schrift: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font: 400 16px/1.55 var(--schrift); }
h1, h2, h3 { color: var(--nacht); line-height: 1.25; margin: 0; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 12px; }
strong { font-weight: 600; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--blau-tief); }
small, .klein { font-size: .85rem; }
.leise { color: var(--grau); }
code { font: .86em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--spur); padding: 1px 5px; border-radius: 3px; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: 12px; background: var(--weiss); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

/* Rahmen: flache dunkle Leiste. Mobil oben mit aufklappbarem Menue, ab 960px an der Seite. */
.leiste { background: var(--nacht); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.leiste__logo img { display: block; height: 28px; width: auto; }
.leiste__schalter { font: 500 .9rem/1 var(--schrift); color: #fff; padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); background: none; cursor: pointer; }
.leiste__menue { flex: 1 0 100%; }
.js .leiste__menue { display: none; }
.js .leiste--offen .leiste__menue { display: block; }
.leiste nav { display: grid; margin-top: 8px; }
.leiste nav a { padding: 10px 2px; color: rgba(255,255,255,.76); text-decoration: none; font-weight: 500; font-size: .95rem; }
.leiste nav a:hover { color: #fff; }
.leiste nav a.an { color: #fff; font-weight: 600; }
.leiste__gruppe { display: block; padding: 14px 2px 4px; font-size: .78rem; color: rgba(255,255,255,.42); }
.leiste__fuss { padding-top: 14px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.leiste__fuss p { margin: 0; font-weight: 500; font-size: .9rem; color: #fff; }
.leiste__fuss span { font-weight: 400; color: rgba(255,255,255,.5); font-size: .8rem; }
.leiste__fuss .knopf--text { color: rgba(255,255,255,.7); font-weight: 400; font-size: .86rem; }
.leiste__fuss .knopf--text:hover { color: #fff; }
.inhalt { padding: 22px 16px 60px; max-width: 1020px; }

@media (min-width: 960px) {
  .rahmen { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
  .leiste { padding: 22px 12px 18px; display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .leiste__logo { display: block; padding: 2px 10px 22px; }
  .leiste__logo img { height: 30px; }
  .leiste__schalter { display: none; }
  .js .leiste__menue { display: block; }
  .leiste nav { margin: 0; gap: 1px; }
  .leiste nav a { padding: 8px 10px; font-size: .9rem; border-radius: 3px; }
  .leiste nav a.an { background: rgba(255,255,255,.1); }
  .leiste__gruppe { padding: 18px 10px 5px; }
  .leiste__fuss { padding: 16px 10px 0; display: grid; justify-content: start; gap: 6px; margin-top: 20px; }
  .inhalt { padding: 32px 40px 80px; }
}

/* Seitenkopf */
.kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.kopf p { margin: 3px 0 0; color: var(--grau); font-size: .92rem; max-width: 62ch; }
.kopf__aktionen { display: flex; flex-wrap: wrap; gap: 8px; }

/* Abschnitte direkt auf der Flaeche: Linie oben, Titel links, Inhalt rechts (ab 760px) */
.abschnitt { padding: 20px 0; border-top: 1px solid var(--linie); }
.abschnitt__kopf { margin-bottom: 12px; }
.abschnitt__kopf p { margin: 3px 0 0; color: var(--grau); font-size: .88rem; max-width: 62ch; }
@media (min-width: 760px) {
  .abschnitt--zwei { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .abschnitt--zwei .abschnitt__kopf { margin: 0; }
}

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--blau); border-radius: var(--radius); background: var(--blau); color: #fff; font: 600 .92rem/1.2 var(--schrift); text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--blau-tief); border-color: var(--blau-tief); color: #fff; }
.knopf--linie { background: var(--weiss); color: var(--nacht); border-color: var(--linie-stark); font-weight: 500; }
.knopf--linie:hover { background: var(--spur); color: var(--nacht); border-color: var(--grau); }
.knopf--rot { background: var(--weiss); color: var(--rot); border-color: var(--linie-stark); font-weight: 500; }
.knopf--rot:hover { background: var(--rot-hell); color: var(--rot); border-color: var(--rot); }
.knopf--text { background: none; border: 0; padding: 0; min-height: 0; color: var(--blau); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.knopf--text:hover { background: none; color: var(--blau-tief); }
.knopf--klein { min-height: 34px; padding: 5px 11px; font-size: .86rem; }
.knopf--gross { min-height: 50px; padding: 11px 26px; font-size: 1rem; }

/* Formulare */
label, legend { display: block; font-weight: 500; font-size: .88rem; color: var(--nacht); margin-bottom: 5px; padding: 0; }
label small, legend small { font-weight: 400; color: var(--grau); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; font: 400 1rem/1.4 var(--schrift); color: var(--nacht); background: var(--weiss); border: 1px solid var(--linie-stark); border-radius: var(--radius); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 0; border-color: var(--blau); }
input[type=color] { width: 52px; height: 42px; padding: 3px; border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--weiss); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feld { margin-bottom: 14px; }
.feld .hilfe, .hilfe { margin: 5px 0 0; font-size: .84rem; color: var(--grau); }
.felder { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .felder--2 { grid-template-columns: 1fr 1fr; } .felder--3 { grid-template-columns: 1fr 1fr 1fr; } .felder--4 { grid-template-columns: repeat(4, 1fr); } }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--tinte); margin-bottom: 8px; cursor: pointer; }
.haken input { width: 19px; height: 19px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blau); }
.zeile-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }

/* Meldungen: ruhige Flaeche, kein Farbstrich */
.meldung { padding: 10px 14px; background: var(--gruen-hell); color: #0b4c30; border-radius: var(--radius); margin-bottom: 18px; }
.meldung--fehler { background: var(--rot-hell); color: #7c1a14; }
.hinweis { padding: 11px 14px; background: var(--gelb-hell); color: #4d3500; border-radius: var(--radius); margin-bottom: 18px; }
.hinweis a { color: inherit; }
.hinweis p:last-child { margin: 0; }

/* Listen und Tabellen */
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 11px 0; border-bottom: 1px solid var(--linie-zart); }
.liste__haupt { min-width: 0; flex: 1 1 260px; }
.liste__haupt strong { color: var(--nacht); font-weight: 600; }
.liste__haupt span { display: block; color: var(--grau); font-size: .86rem; }
.liste__haupt span.marke { display: inline; }
.liste__rechts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Kennzeichnung als schlichter Text, Farbe nur bei Auffaelligem */
.marke { font-size: .8rem; font-weight: 400; color: var(--grau); margin-left: 6px; white-space: nowrap; }
.marke--blau { color: var(--grau); }
.marke--rot { color: var(--rot); font-weight: 500; }
.marke--gruen { color: var(--gruen); }
.tabelle-huelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .8rem; color: var(--grau); font-weight: 500; padding: 8px 12px 8px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linie-zart); vertical-align: top; }
td strong { color: var(--nacht); }

/* Zahlenleiste: Kennzahlen in einer Reihe, getrennt durch Linien */
.zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--linie); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin-bottom: 26px; }
.zahlen > div { background: var(--weiss); padding: 12px 16px 12px 0; }
.zahlen > div:nth-child(even) { padding-left: 16px; }
.zahlen strong { display: block; font-size: 1.55rem; font-weight: 500; color: var(--nacht); line-height: 1.2; font-variant-numeric: tabular-nums; }
.zahlen span { font-size: .82rem; color: var(--grau); }
@media (min-width: 760px) { .zahlen { grid-template-columns: repeat(4, 1fr); } .zahlen > div { padding-left: 16px; } .zahlen > div:first-child { padding-left: 0; } }

/* Aufgaben auf der Uebersicht: schlichte Liste zum Antippen */
.aufgaben { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
@media (min-width: 760px) { .aufgaben { column-count: 2; column-gap: 40px; border-top: 0; } .aufgaben li { break-inside: avoid; border-top: 1px solid var(--linie-zart); } }
.aufgaben a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--nacht); font-weight: 500; }
@media (max-width: 759px) { .aufgaben li { border-bottom: 1px solid var(--linie-zart); } }
.aufgaben a span { color: var(--grau); font-weight: 400; font-size: .86rem; text-align: right; }
.aufgaben a:hover { color: var(--blau); }

/* Pruefliste "Laeuft alles?": Text, bei Offenem ein Knopf */
.ampel { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.ampel li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--linie-zart); min-height: 54px; }
.ampel li.gut { color: var(--grau); }
.ampel li.offen span { color: var(--nacht); font-weight: 500; }

/* Umschalter */
.segmente { display: inline-flex; background: var(--spur); border-radius: var(--radius); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.segmente a { white-space: nowrap; padding: 0 12px; min-height: 32px; display: inline-flex; align-items: center; font-weight: 500; font-size: .86rem; color: var(--grau); text-decoration: none; border-radius: 3px; }
.segmente a:hover { color: var(--nacht); }
.segmente a.an { background: var(--weiss); color: var(--nacht); box-shadow: 0 0 0 1px var(--linie); }
.werkzeug { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.blaettern { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--nacht); font-variant-numeric: tabular-nums; }
.blaettern a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--linie-stark); border-radius: var(--radius); text-decoration: none; color: var(--nacht); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter select, .filter input { width: auto; min-width: 150px; min-height: 36px; padding: 5px 9px; font-size: .9rem; }

/* Termine: Tagesliste und Woche */
.tag-titel { font-size: .88rem; font-weight: 500; color: var(--grau); padding: 18px 0 6px; border-bottom: 1px solid var(--linie); margin: 0; }
.tag-titel.heute { color: var(--nacht); font-weight: 600; }
.termin { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 14px; padding: 11px 0; border-bottom: 1px solid var(--linie-zart); }
.termin__zeit { font-weight: 600; color: var(--nacht); font-variant-numeric: tabular-nums; }
.termin__zeit small { display: block; font-weight: 400; color: var(--grau); font-size: .8rem; }
.termin__kern strong { color: var(--nacht); }
.termin__kern p { margin: 1px 0 0; font-size: .88rem; color: var(--grau); }
.termin--abgesagt .termin__zeit, .termin--abgesagt strong { text-decoration: line-through; color: var(--grau); font-weight: 400; }
.termin details { grid-column: 2; margin-top: 4px; }
.termin summary { cursor: pointer; font-size: .86rem; color: var(--blau); }
.termin dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: .88rem; }
.termin dt { color: var(--grau); }
.termin dd { margin: 0; overflow-wrap: anywhere; }
.ergebnis { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; grid-column: 2; margin-top: 6px; }
.ergebnis span { font-size: .86rem; color: var(--grau); }
.dateiliste { list-style: none; margin: 6px 0 0; padding: 0; font-size: .88rem; }
.dateiliste li { padding: 3px 0; }
.woche { display: grid; grid-template-columns: repeat(7, minmax(124px, 1fr)); border-left: 1px solid var(--linie); border-top: 1px solid var(--linie); min-width: 880px; }
.woche__tag { border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); min-height: 220px; }
.woche__kopf { padding: 8px 10px; border-bottom: 1px solid var(--linie); font-weight: 500; color: var(--nacht); font-size: .86rem; }
.woche__kopf small { font-weight: 400; color: var(--grau); margin-left: 6px; }
.woche__tag.heute .woche__kopf { background: var(--spur); font-weight: 600; }
.woche__termin { display: block; margin: 6px; padding: 6px 8px; background: var(--spur); border-radius: 3px; text-decoration: none; color: var(--tinte); font-size: .82rem; line-height: 1.35; }
.woche__termin:hover { background: #e8ecf3; color: var(--tinte); }
.woche__termin strong { display: block; color: var(--nacht); font-variant-numeric: tabular-nums; }
.woche__zu { padding: 8px 10px; font-size: .8rem; color: #a3abbb; margin: 0; }
.leer { padding: 22px 0; color: var(--grau); border-bottom: 1px solid var(--linie-zart); margin: 0; }

/* Oeffnungszeiten-Raster */
.zeitraster { display: grid; gap: 8px; }
.zeitraster__tag { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; }
.zeitraster__tag > span { font-weight: 500; color: var(--nacht); font-size: .9rem; }
.zeitraster__bloecke { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.zeitraster__block { display: flex; align-items: center; gap: 6px; color: var(--grau); }
.zeitraster__block input { width: 108px; min-height: 38px; padding: 5px 8px; }

/* Code zum Kopieren, Vorschau, QR */
.code { margin: 0 0 8px; }
.code pre { margin: 0; padding: 11px 13px; background: var(--spur); color: var(--nacht); border: 1px solid var(--linie); font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: var(--radius); }
.code + .knopf { margin-bottom: 16px; }
.vorschau { width: 100%; height: 620px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); }
.qr { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.qr svg { width: 160px; height: 160px; border: 1px solid var(--linie); }

/* Fragen- und Quiz-Editor */
.frage { padding: 12px 0; border-bottom: 1px solid var(--linie-zart); }
.frage:first-of-type { border-top: 1px solid var(--linie); }
.quiztabelle td { padding: 6px 10px 6px 0; vertical-align: middle; }
.quiztabelle td:first-child { min-width: 260px; width: 42%; }
.quiztabelle select { min-width: 200px; }
.quizbild { min-width: 230px; }
.quizbild img { display: inline-block; vertical-align: middle; width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--linie); margin-right: 8px; }
.quizbild .haken { display: inline-flex; margin: 0 0 4px; vertical-align: middle; }
.quizbild input[type=file] { display: block; font: .82rem var(--schrift); max-width: 230px; margin-top: 6px; }
.symbolwahl { display: flex; align-items: center; gap: 8px; }
.symbolwahl select { min-width: 0; max-width: 180px; }
.symbolwahl__vorschau { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 6px; color: var(--blau); background: #fff; }
.symbolwahl__vorschau svg { width: 34px; height: 34px; }

/* Aussenseiten (Anmelden, Registrieren): schmale Spalte auf weisser Flaeche, ohne Kasten */
.aussen { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; }
.aussen__spalte { width: 100%; max-width: 420px; margin: 0 auto; padding: 44px 16px 30px; }
.aussen__logo { display: inline-block; margin-bottom: 34px; }
.aussen__logo img { display: block; height: 36px; width: auto; }
.aussen h1 { margin-bottom: 6px; }
.aussen__text { color: var(--grau); margin-bottom: 22px; }
.aussen form .knopf { width: 100%; min-height: 46px; margin-top: 6px; }
.aussen__unten { margin-top: 20px; font-size: .92rem; color: var(--grau); }
.aussen__fuss { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding: 18px 16px 24px; font-size: .8rem; color: var(--grau); border-top: 1px solid var(--linie-zart); }
.aussen__fuss a { color: inherit; }
.aussen--breit .aussen__spalte { max-width: 720px; }
.rechtstext h2 { margin: 26px 0 8px; }

/* Assistent: eine Frage je Bildschirm, direkt auf der Flaeche */
.assistent__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.assistent__kopf img { display: block; height: 28px; width: auto; }
.assistent__spaeter { font-size: .88rem; color: var(--grau); }
.assistent__spalte { max-width: 560px; margin: 0 auto; padding: 28px 18px 70px; }
.assistent h1 { font-size: 1.45rem; margin-bottom: 8px; }
@media (min-width: 620px) { .assistent h1 { font-size: 1.6rem; } .assistent__spalte { padding-top: 44px; } }
.assistent__hilfe { color: var(--grau); margin-bottom: 22px; }
.assistent__fortschritt { margin-bottom: 30px; }
.assistent__fortschritt span { display: block; font-size: .84rem; color: var(--grau); margin-bottom: 8px; }
.assistent__fortschritt div { height: 3px; background: var(--linie); }
.assistent__fortschritt i { display: block; height: 100%; background: var(--nacht); }
.assistent__fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--linie); }
.assistent__fertig p { font-size: 1.02rem; max-width: 48ch; }
.assistent__link a { font-weight: 600; overflow-wrap: anywhere; }
.assistent input[type=text], .assistent input[type=email], .assistent input[type=url], .assistent input[type=date], .assistent select { min-height: 48px; }
.assistent .vorschau { height: 640px; }

/* Auswahl zum Antippen im Assistenten: Zeilen mit Rahmen, kein Farbstrich */
.kacheln { display: grid; gap: 8px; }
@media (min-width: 620px) { .kacheln--zwei { grid-template-columns: 1fr 1fr; } }
.kachel { position: relative; display: block; padding: 14px 40px 14px 16px; border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--weiss); text-decoration: none; color: var(--tinte); cursor: pointer; margin: 0; }
a.kachel::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--grau); }
.kachel:hover, .kachel:focus-visible { border-color: var(--nacht); color: var(--tinte); }
.kachel strong { display: block; font-size: 1rem; font-weight: 600; color: var(--nacht); }
.kachel span { display: block; font-size: .88rem; color: var(--grau); margin-top: 2px; font-weight: 400; }
.kachel--wahl { padding-right: 16px; }
.kachel--wahl input { position: absolute; opacity: 0; }
.kachel--wahl:has(input:checked) { border-color: var(--nacht); box-shadow: inset 0 0 0 1px var(--nacht); }
.kachel--wahl:has(input:focus-visible) { outline: 2px solid var(--blau); outline-offset: 2px; }

/* Terminarten und Quiz-Fragen zum Anhaken, Wochentage */
.wahlkarte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 13px 0; border-bottom: 1px solid var(--linie-zart); }
.wahlkarte:first-of-type { border-top: 1px solid var(--linie); }
.wahlkarte .haken { margin: 0; flex: 1 1 260px; }
.wahlkarte .haken input { width: 22px; height: 22px; }
.wahlkarte__dauer { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: var(--grau); }
.wahlkarte__dauer select { width: auto; min-height: 42px; font-size: .95rem; }
.wochentage { border-top: 1px solid var(--linie); margin-bottom: 12px; }
.wochentag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 9px 0; border-bottom: 1px solid var(--linie-zart); }
.wochentag .haken { margin: 0; min-width: 130px; font-weight: 500; color: var(--nacht); }
.wochentag .haken input { width: 22px; height: 22px; }
.wochentag div { display: flex; align-items: center; gap: 8px; color: var(--grau); }
.wochentag input[type=time] { width: 112px; }
.wochentag:has(input[type=checkbox]:not(:checked)) div { opacity: .35; }

/* Farbwahl: Farbflaechen, die gewaehlte bekommt einen Ring */
.farbwahl { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.farbwahl label { position: relative; display: grid; justify-items: center; gap: 5px; font-weight: 400; font-size: .82rem; color: var(--grau); margin: 0; cursor: pointer; width: 60px; }
.farbwahl label > input[type=radio] { position: absolute; opacity: 0; }
.farbwahl span, .farbwahl input[type=color] { display: block; width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 0; outline: 2px solid transparent; outline-offset: 3px; }
.farbwahl label:has(input[type=radio]:checked) span, .farbwahl label:has(input[type=radio]:checked) input[type=color] { outline-color: var(--nacht); }
.farbwahl label:has(input[type=radio]:checked) { color: var(--nacht); font-weight: 500; }

/* Anleitung in Schritten */
.anleitung { margin: 0 0 22px; padding: 0 0 0 22px; }
.anleitung li { padding: 6px 0 6px 6px; }
.anleitung li::marker { font-weight: 600; color: var(--nacht); }

/* Uebersicht: Einrichtung noch offen */
.weiter-einrichten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 0; margin-bottom: 8px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.weiter-einrichten h2 { margin-bottom: 3px; }
.weiter-einrichten p { margin: 0; max-width: 56ch; color: var(--grau); font-size: .92rem; }

/* Quiz-Editor auf dem Smartphone: jede Antwort als Block untereinander */
@media (max-width: 700px) {
  .quiztabelle, .quiztabelle tbody, .quiztabelle tr, .quiztabelle td { display: block; width: 100%; }
  .quiztabelle thead { display: none; }
  .quiztabelle tr { padding: 10px 0; border-bottom: 1px solid var(--linie-zart); }
  .quiztabelle td { border: 0; padding: 4px 0; min-width: 0; }
  .quiztabelle td:first-child { width: 100%; }
  .quiztabelle select { min-width: 0; }
}

/* Kalender: Zeilen mit Linien. Termine fett, eigene Eintraege auf ruhiger Flaeche. */
.kal__zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--linie-zart); text-decoration: none; color: var(--tinte); font-size: .92rem; }
a.kal__zeile:hover strong { color: var(--blau); }
.kal__zeit { color: var(--grau); font-variant-numeric: tabular-nums; }
.kal__zeile--termin .kal__zeit { color: var(--nacht); font-weight: 600; }
.kal__zeile--eintrag { background: var(--spur); padding-left: 8px; padding-right: 8px; border-radius: 3px; border-bottom-color: var(--weiss); }
.kal__text strong { color: var(--nacht); }
.kal__wer { color: var(--grau); white-space: nowrap; }
.kal__wer::before { content: "· "; }
.kal__hinweis { color: var(--grau); font-size: .88rem; margin: 6px 0; }
.kal__leer { color: #a3abbb; font-size: .86rem; margin: 6px 0; }
.kal__plus { display: inline-block; font-size: .84rem; color: var(--grau); text-decoration: none; padding: 6px 0; }
.kal__plus::before { content: "+ "; }
.kal__plus:hover { color: var(--blau); }
.kal__vorschlaege { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.kal-woche { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.kal-woche__tag { padding: 10px 0 12px; border-bottom: 1px solid var(--linie); }
.kal-woche__tag h2 { font-size: .95rem; margin-bottom: 4px; }
.kal-woche__tag h2 a { color: inherit; text-decoration: none; }
.kal-woche__tag h2 span { font-weight: 400; color: var(--grau); margin-left: 4px; }
.kal-woche__tag.heute h2 a { color: var(--blau); }
@media (min-width: 1100px) {
  .kal-woche { grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--linie); }
  .kal-woche__tag { padding: 10px 10px 14px; border-right: 1px solid var(--linie); min-height: 260px; }
  .kal-woche .kal__zeile { grid-template-columns: 1fr; font-size: .84rem; padding: 6px 0; }
  .kal-woche .kal__zeile--eintrag { padding-left: 6px; padding-right: 6px; }
  .kal-woche .kal__wer { display: block; }
  .kal-woche .kal__wer::before { content: ""; }
}
.kal-tag { border-top: 1px solid var(--linie); }
.kal-tag__stunde { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 10px; border-bottom: 1px solid var(--linie-zart); min-height: 46px; align-items: start; }
.kal-tag__uhr { padding-top: 9px; font-size: .82rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.kal-tag__stunde .kal__zeile { border-bottom: 0; }
.kal-tag__stunde .kal__plus { padding: 10px 0; }

/* Ausgeblendetes bleibt ausgeblendet, auch in Rastern */
[hidden] { display: none !important; }

/* Selten gebrauchte Abschnitte bleiben zu, bis jemand sie aufklappt */
.mehr { border-top: 1px solid var(--linie); }
.mehr > summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style-position: outside; margin-left: 18px; }
.mehr > summary span { display: block; font-weight: 400; font-size: .9rem; color: var(--grau); margin-top: 2px; }
.mehr > .abschnitt:first-of-type { border-top: 0; padding-top: 4px; }

.rechts { text-align: right; font-variant-numeric: tabular-nums; }

/* Assistent: Erinnerungen */
.assistent__frage { font-size: 1.05rem; margin: 26px 0 8px; }
.ki { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 16px 0; margin: 18px 0 10px; }
.ki label { display: block; font-weight: 400; margin-bottom: 8px; }
.ki__zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.ki__zeile input { flex: 1 1 240px; }
.vorschau-text { white-space: pre-wrap; font: inherit; background: var(--linie-zart); padding: 14px 16px; margin: 0 0 16px; }
.assistent .hilfe + .feld { margin-top: 14px; }
.rechtstext ul { margin: 0 0 14px; padding-left: 20px; }
.rechtstext li { margin-bottom: 4px; }
.rechtstext ol { margin: 0 0 14px; padding-left: 22px; }
.rechtstext h3 { font-size: 1rem; margin: 16px 0 6px; }
.rechtstext table td { vertical-align: top; }
