/* Sicherungskasten – Grundgestaltung (Mischung aus erwachsenenbildung.digital und Sketchnote-Elementen) */
:root {
  --papier: #FDFCF8;
  --tusche: #2B2D42;
  --grau: #55576B;
  --violett: #5c2483;
  --violett-dunkel: #3f1859;
  --gelb: #FFE27A;
  --blau: #A9C8EC;
  --gruen: #A8DCC1;
  --rosa: #F4A3A8;
  --rot: #A3262A;
  --rand: 2px solid var(--tusche);
  --radius-a: 6px 16px 8px 14px / 14px 6px 16px 8px;
  --radius-b: 14px 6px 16px 8px / 8px 16px 6px 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tusche);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.5;
}
a { color: var(--violett); }
a:hover { color: var(--violett-dunkel); }
:focus-visible { outline: 3px solid var(--violett); outline-offset: 3px; }
.sprung { position: absolute; left: -9999px; top: 0; background: var(--tusche); color: #fff; padding: .5rem 1rem; z-index: 10; }
.sprung:focus { left: 1rem; }
[hidden] { display: none !important; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rahmen { max-width: 44rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
body.breit .rahmen { max-width: 72rem; }
.fuss { margin-top: 3rem; padding-top: 1rem; border-top: 2px dashed #B9B8B0; font-size: .875rem; color: var(--grau); }
.fuss p { margin: 0; }
.fuss-navi { margin-top: .5rem; }
.fuss-navi a { color: var(--grau); }
.fuss-navi a:hover { color: var(--violett); }

/* Kopfzeile mit Label „Sicherungskasten“ (Haftzettel, Schrift Variante L: Lexend + Caveat) */
:root { --schrift-name: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        --schrift-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', 'Chalkboard SE', cursive;
        --orange: #F7B58C; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.1rem; margin: 0 0 1.75rem; padding-bottom: .9rem; border-bottom: 2px dashed #B9B8B0; }
.kopf-marke { display: inline-flex; align-items: center; gap: .55rem; padding: .15rem .25rem .15rem 0; color: var(--tusche); text-decoration: none; line-height: 1.1; border-radius: 8px; }
.kopf-marke:hover { color: var(--tusche); }
.kopf-marke:hover .marke-sicherung { color: var(--violett-dunkel); }
.marke-zettel { flex-shrink: 0; width: 2.9rem; height: 2.9rem; }
.marke-wort { font-family: var(--schrift-name); font-weight: 600; font-size: 1.7rem; letter-spacing: -.03em; }
.marke-sicherung { color: var(--violett); }
.marke-kasten { padding: 0 .06em; background: linear-gradient(transparent 70%, var(--orange) 70%, var(--orange) 92%, transparent 92%); border-radius: 2px 10px 4px 12px; }
.kopf-unterzeile { display: inline-block; font-family: var(--schrift-hand); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--tusche); transform: rotate(-1.5deg); }
.marke-marker { padding: 0 .2em; background: linear-gradient(transparent 16%, var(--gelb) 16%, var(--gelb) 88%, transparent 88%); border-radius: 4px 12px 6px 14px; }
/* Startseite: Kopfzeile zentriert und etwas größer */
body.startseite .seitenkopf { flex-direction: column; justify-content: center; text-align: center; gap: .35rem; }
body.startseite .marke-zettel { width: clamp(2.6rem, 11vw, 3.6rem); height: clamp(2.6rem, 11vw, 3.6rem); }
body.startseite .marke-wort { font-size: clamp(1.45rem, 7.2vw, 2.15rem); }
body.startseite .kopf-unterzeile { font-size: clamp(1.35rem, 6vw, 1.7rem); }
@media print { body.qr-seite .seitenkopf { display: none !important; } }

/* Datenschutzerklärung */
.text-seite h2 { margin-top: 2rem; font-size: 1.25rem; }
.text-seite h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.text-seite li { margin-bottom: .35rem; }
.text-seite address { font-style: normal; }
.marke { margin: 0 0 1.25rem; }
.marke img { display: block; width: 100%; max-width: 300px; height: auto; }
@media (max-width: 30rem) { .marke img { max-width: 220px; } }

/* Kopf */
.kopf { margin-bottom: 1.5rem; }
.dachzeile { margin: 0; font-size: .875rem; color: var(--grau); }
.dachzeile a { color: var(--grau); }
h1 { margin: .15rem 0 .25rem; font-size: 1.85rem; line-height: 1.2; font-weight: 750; }
h2 { font-size: 1.3rem; line-height: 1.25; }
.marker {
  background: linear-gradient(transparent 14%, var(--gelb) 14%, var(--gelb) 88%, transparent 88%);
  padding: 0 .35em; border-radius: 4px 10px 6px 12px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.klein { font-size: .9rem; color: var(--grau); }
.aktionen, .knopfzeile, .zeile { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.aktionen { margin-top: 1rem; }
.zeile + .zeile { margin-top: .6rem; }
.sprungnavi { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .75rem; font-size: .95rem; }

/* Karten und Sketch-Rahmen */
.karte { background: var(--papier); padding: 1rem 1.1rem; margin: 0 0 1rem; }
.karte.schmal { max-width: 28rem; }
.sketch { border: var(--rand); border-radius: var(--radius-a); }
.sketch:nth-of-type(even) { border-radius: var(--radius-b); }
@media (prefers-reduced-motion: no-preference) {
  .beitrag.sketch:nth-of-type(odd) { transform: rotate(.2deg); }
  .beitrag.sketch:nth-of-type(even) { transform: rotate(-.2deg); }
}

/* Formulare */
.formular { display: flex; flex-direction: column; gap: .45rem; }
.formular label { font-weight: 600; }
.formular .knopf { align-self: flex-start; margin-top: .4rem; }
.zeile.formular { flex-direction: row; align-items: flex-end; }
input, select, textarea {
  font: inherit; color: inherit; background: #fff; border: 2px solid #6B6D80; border-radius: 8px;
  padding: .55rem .7rem; min-height: 2.75rem; width: 100%;
}
.zeile input { width: auto; flex: 1 1 14rem; }
textarea { resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--violett); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .45rem 1rem; font: inherit; font-weight: 650; text-decoration: none;
  color: var(--tusche); background: #fff; border: var(--rand); border-radius: 10px 4px 10px 4px; cursor: pointer;
}
.knopf:hover { background: #F3F1EA; }
.knopf.haupt { background: var(--violett); border-color: var(--violett); color: #fff; box-shadow: 2px 3px 0 var(--tusche); }
.knopf.haupt:hover { background: var(--violett-dunkel); }
.knopf.leise { border-color: transparent; background: transparent; color: var(--violett); text-decoration: underline; text-underline-offset: 3px; padding-inline: .5rem; }
.knopf.leise:hover { background: #F3F1EA; }
.knopf.gefahr { color: var(--rot); }
.knopf.gefahr:not(.leise) { border-color: var(--rot); }
.knopf[disabled] { opacity: .45; cursor: not-allowed; }

/* Meldungen */
.meldung { padding: .6rem .8rem; border-radius: 8px; border: 2px solid; }
.meldung.fehler { border-color: var(--rot); background: #FDECEC; color: #7A1C1F; }
.meldung.erfolg { border-color: #2E7D4F; background: #E8F5EC; }
.meldung.warnung { border-color: #B26B00; background: #FFF4D6; }

/* Beiträge */
.beitraege { display: flex; flex-direction: column; gap: 1.4rem; }
.abschnitt-beitraege { position: relative; }
.leitfrage { padding: 1.4rem 1rem 1rem; }
.leitfrage-titel {
  margin: 0 0 .25rem; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.leitfrage > .leitfrage-titel { position: absolute; top: -.8rem; left: .9rem; padding: 0 .5rem; background: var(--papier); }
.leitfrage-text { margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 600; }
.beitrag-stapel { display: flex; flex-direction: column; gap: 1rem; }
.beitrag { position: relative; padding: .8rem 1rem; background: var(--papier); overflow: hidden; }
.beitrag::before {
  content: ""; position: absolute; width: 13rem; height: 6rem; right: -3rem; top: -2rem;
  border-radius: 50%; opacity: .45; filter: blur(6px); z-index: 0; background: var(--blau);
}
.beitrag.typ-diktat::before { background: var(--gelb); left: -3rem; right: auto; top: auto; bottom: -2.5rem; }
.beitrag.typ-foto::before { background: var(--gruen); }
.beitrag > * { position: relative; z-index: 1; }
.beitrag-kopf { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.typ { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zeit { font-size: .85rem; color: var(--grau); }
.beitrag-text { margin: .4rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hinweis { margin: 0; font-size: .85rem; color: var(--grau); }
.hinweis.sperre { color: #7A4B00; font-weight: 600; }
.beitrag.gesperrt { border-style: dashed; }
.beitrag-aktionen { display: flex; justify-content: flex-end; gap: .25rem; }
.am-bearbeiten { box-shadow: 0 0 0 3px var(--violett); }
.leer { padding: 1rem; border: 2px dashed #B9B8B0; border-radius: var(--radius-a); color: var(--grau); }
.weitere { margin-top: .5rem; }

/* Neuer Beitrag */
.neuer-beitrag { margin-top: 2rem; padding-top: 1rem; border-top: var(--rand); }
.mini-titel { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .6rem; }

/* Admin */
.abschnitt { margin: 2.5rem 0; scroll-margin-top: 1rem; }
.abschnitt > h2 { border-bottom: 2px dashed #B9B8B0; padding-bottom: .3rem; }
.liste-veranstaltungen, .gruppenliste, .leitfragenliste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.liste-veranstaltungen h2 { margin: 0 0 .25rem; }
.link-feld { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.leitfragenliste li { justify-content: space-between; border-bottom: 1px solid #DDDBD2; padding-bottom: .4rem; }
.admin-gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.5rem; align-items: start; }
.admin-gruppe { border: var(--rand); border-radius: var(--radius-b); padding: .9rem; }
.admin-gruppe-titel { margin: 0 0 .9rem; font-size: 1.15rem; }
.ergaenzen { margin-top: 1rem; }
.ergaenzen summary { cursor: pointer; font-weight: 650; color: var(--violett); min-height: 2.75rem; display: flex; align-items: center; }

@media (max-width: 30rem) {
  h1 { font-size: 1.55rem; }
  .rahmen { padding-inline: .8rem; }
}

/* Admin-Navigation und Konten */
.admin-navi { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-bottom: .5rem; margin-bottom: .75rem; border-bottom: 2px dashed #B9B8B0; font-size: .95rem; }
.admin-navi form { margin-left: auto; }
.gesperrt { opacity: .75; }
.einmal { border-color: var(--violett); }
.zugang { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.zugang dt { font-weight: 650; }
.zugang dd { margin: 0; overflow-wrap: anywhere; }
.zugang code { font-size: 1.15rem; font-weight: 700; letter-spacing: .03em; }

/* Startseite (Sketchnote-Stil) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
body.startseite .rahmen { max-width: 60rem; text-align: center; }
body.startseite .marke img { margin-inline: auto; }
.start-kicker { margin: 0; font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.start-titel { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; margin: .3rem auto .6rem; max-width: 22ch; }
.start-lead { font-size: 1.15rem; max-width: 34rem; margin: 0 auto 1rem; }
.start-szene { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto 1.5rem; }
.start-unter { font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1.2rem; }
.start-schritte { list-style: none; padding: 0; margin: 0 auto 2rem; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.start-schritt { padding: 1rem 1rem 1.2rem; background: var(--papier); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
@media (prefers-reduced-motion: no-preference) {
  .start-schritt:nth-child(1) { transform: rotate(-.6deg); }
  .start-schritt:nth-child(2) { transform: rotate(.4deg); }
  .start-schritt:nth-child(3) { transform: rotate(-.3deg); }
}
.start-schritt h3 { margin: .2rem 0 0; font-size: 1.15rem; }
.start-schritt p { margin: 0; max-width: 22rem; }
.nummer {
  display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; margin-right: .3rem;
  border: 2px solid var(--tusche); border-radius: 50% 45% 55% 48%; background: var(--gelb); font-size: .95rem;
}
.start-hinweis { max-width: 34rem; margin: 0 auto; padding: 1rem 1.2rem; border: 2px dashed #B9B8B0; border-radius: var(--radius-b); }
.start-hinweis p { margin: .25rem 0; }
body.startseite .fuss { text-align: center; }

.start-titel .marker { padding: 0 .12em; }
.start-hinweis .start-login { margin-top: 1.75rem; }
.start-login .knopf { min-height: 2.5rem; padding: .3rem .85rem; font-size: .9rem; }
.fuss-logo { margin-bottom: .75rem !important; }
.fuss-logo img { display: block; width: 100%; max-width: 240px; height: auto; }
body.startseite .fuss-logo img { margin-inline: auto; }
body.startseite .start { margin-top: 1.5rem; }

/* Menüleiste unter dem Veranstaltungsnamen */
.v-menue { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin-top: .9rem; }
.aufklapp { position: relative; }
.aufklapp > summary { list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary::after { content: "▾"; font-size: .8em; margin-left: .2rem; }
.aufklapp[open] > summary { background: #F3F1EA; }
.aufklapp-inhalt {
  position: absolute; z-index: 20; top: calc(100% + .4rem); left: 0; width: min(26rem, 90vw);
  padding: 1rem; background: #fff; box-shadow: 3px 4px 0 var(--tusche);
}
.aufklapp-inhalt p { margin: 0 0 .75rem; }
.knopf.gefahr-text { color: var(--rot); }
@media (max-width: 40rem) { .aufklapp { position: static; } .aufklapp-inhalt { left: 1rem; right: 1rem; width: auto; } }

/* Gruppen als Klapp-Kacheln */
.kacheln { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: start; }
@media (max-width: 60rem) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .kacheln { grid-template-columns: 1fr; } }
.kacheln > li { scroll-margin-top: 1rem; }
.kachel { background: #fff; }
.kacheln > li:nth-child(even) .kachel { border-radius: var(--radius-b); }
.kachel > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .6rem .9rem;
  cursor: pointer; list-style: none; font-weight: 700;
}
.kachel > summary::-webkit-details-marker { display: none; }
.kachel > summary::before { content: "▸"; display: inline-block; width: 1em; transition: transform .15s; }
.kachel[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .kachel > summary::before { transition: none; } }
.kachel > summary:hover { background: #F3F1EA; }
.kachel-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.abzeichen { font-size: .75rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: var(--gelb); color: var(--tusche); }
.kachel-inhalt { display: flex; flex-direction: column; gap: .75rem; padding: 0 .9rem .9rem; border-top: 2px dashed #B9B8B0; padding-top: .8rem; }
.kachel-inhalt .formular { gap: .35rem; }
.kachel-inhalt .zeile input { min-width: 0; }
.kachel-inhalt textarea { font-size: .95rem; }
.knopf.klein-knopf { min-height: 2.5rem; padding: .3rem .75rem; font-size: .9rem; }
.kachel-fuss { justify-content: space-between; }
.kachel-fuss .knopf.leise { font-size: .9rem; }

/* Aufgaben auf der Gruppenseite */
.aufgaben { margin: 0 0 1.5rem; padding: 1rem 1.1rem; background: #FFF8DC; }
.aufgaben h3.mini-titel { margin-top: .9rem; }
.aufgabe-text { margin: 0; white-space: pre-wrap; font-size: 1.05rem; }

/* Diktieren (Gruppenseite) */
.diktat { display: flex; flex-direction: column; gap: .35rem; margin-top: .3rem; }
.diktat p { margin: 0; }
.diktat-knopf svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diktat-knopf.nimmt-auf { color: #fff; background: var(--rot); border-color: var(--rot); }
.diktat-knopf.nimmt-auf:hover { background: var(--rot); filter: brightness(.92); }
.diktat-uhr { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }
.diktat-uhr::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .4rem; border-radius: 50%; background: var(--rot); vertical-align: .05em; }
@media (prefers-reduced-motion: no-preference) { .diktat-uhr::before { animation: blinken 1s steps(2, start) infinite; } }
@keyframes blinken { to { visibility: hidden; } }
.diktat-status:empty { display: none; }
.diktat progress { width: 100%; max-width: 24rem; height: .7rem; accent-color: var(--violett); }

/* Dialog */
.dialog { max-width: min(32rem, calc(100vw - 2rem)); padding: 1.25rem 1.4rem; background: var(--papier); color: var(--tusche); box-shadow: 4px 5px 0 var(--tusche); }
.dialog::backdrop { background: rgba(30, 30, 50, .45); }
.dialog h2 { margin-top: 0; }
.dialog ul { padding-left: 1.2rem; }
.dialog li + li { margin-top: .35rem; }

/* Gruppenseite: Eingabe oben und hervorgehoben */
.eingabe { margin: 0 0 2rem; padding: 1.1rem 1.2rem 1.25rem; background: #fff; border-color: var(--violett); box-shadow: 4px 5px 0 var(--violett); }
.eingabe-titel { margin: 0 0 .6rem; font-size: 1.35rem; }
.eingabe-text { font-size: 1.1rem; line-height: 1.5; min-height: 10rem; }
.eingabe-text:focus-visible { outline: 3px solid var(--violett); outline-offset: 2px; }
.foto-bereich { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed #B9B8B0; }
.foto-bereich p { margin: .4rem 0 0; }
.foto-knopf svg, .diktat-knopf svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foto-knopf { cursor: pointer; }
#foto-datei:focus-visible + .foto-knopf { outline: 3px solid var(--violett); outline-offset: 2px; }
.foto-form { margin-top: .5rem; }
.foto-vorschau { display: block; max-width: 100%; max-height: 22rem; width: auto; border: var(--rand); border-radius: var(--radius-b); background: #F3F1EA; }
.bisherige .mini-titel .klein { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Fotos in der Beitragsliste */
.foto-link { display: block; margin: .4rem 0; }
.beitrag .foto { display: block; max-width: 100%; max-height: 28rem; width: auto; height: auto; border-radius: 6px; border: 1px solid #D8D6CE; }
.foto-unterschrift { font-style: italic; }

/* QR-Codes: Druckansicht */
.schalter { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; cursor: pointer; }
.schalter input { width: 1.2rem; height: 1.2rem; accent-color: var(--violett); }
.qr-blatt { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.qr-karte { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem 1rem 1.1rem; background: #fff; border: var(--rand); border-radius: var(--radius-a); }
.qr-karte:nth-child(even) { border-radius: var(--radius-b); }
.qr-veranstaltung { margin: 0; font-size: .85rem; color: var(--grau); }
.qr-name { margin: .2rem 0 .6rem; font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.qr-code { width: 13rem; max-width: 100%; aspect-ratio: 1; }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-hinweis { margin: .6rem 0 .15rem; font-size: .85rem; }
.qr-link { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: .75rem; overflow-wrap: anywhere; color: var(--tusche); }
.qr-blatt.einzeln { grid-template-columns: 1fr; }
.qr-blatt.einzeln .qr-code { width: 20rem; }
.qr-blatt.einzeln .qr-name { font-size: 2rem; }

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body.qr-seite { background: #fff; }
  body.qr-seite .nicht-drucken, body.qr-seite .fuss, body.qr-seite .sprung { display: none !important; }
  body.qr-seite .rahmen { max-width: none; padding: 0; margin: 0; }
  .qr-blatt { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6mm; margin: 0; padding: 0 1mm; }
  .qr-karte { height: 84mm; justify-content: center; padding: 4mm; break-inside: avoid; page-break-inside: avoid; border-width: 1.5px; }
  .qr-code { width: 46mm; }
  .qr-name { font-size: 15pt; margin: 1mm 0 2mm; }
  .qr-veranstaltung, .qr-hinweis { font-size: 8.5pt; color: #333; }
  .qr-link { font-size: 7.5pt; }
  .qr-blatt.einzeln { grid-template-columns: 1fr; gap: 0; }
  .qr-blatt.einzeln .qr-karte { height: 270mm; border: none; break-after: page; page-break-after: always; }
  .qr-blatt.einzeln .qr-karte:last-child { break-after: auto; page-break-after: auto; }
  .qr-blatt.einzeln .qr-code { width: 125mm; }
  .qr-blatt.einzeln .qr-name { font-size: 32pt; margin-bottom: 8mm; }
  .qr-blatt.einzeln .qr-veranstaltung, .qr-blatt.einzeln .qr-hinweis { font-size: 13pt; }
  .qr-blatt.einzeln .qr-link { font-size: 11pt; }
}

/* Veranstaltungsseite: Bereiche farblich voneinander absetzen */
.bereich { --flaeche: #F6F5F0; --linie: #B9B8B0; padding: 1.1rem 1.25rem 1.3rem; background: var(--flaeche); border: 1.5px solid var(--linie); border-left-width: 7px; border-radius: 6px 14px 8px 12px; }
.bereich > h2 { margin-top: 0; border-bottom: 2px dashed var(--linie); }
.bereich-aufgabe    { --flaeche: #FFFCEF; --linie: #EBD58A; }
.bereich-gruppen    { --flaeche: #F5F9FE; --linie: #B3CBE8; }
.bereich-ergebnisse { --flaeche: #F4FAF6; --linie: #AFD6BE; }
.bereich-leitung    { --flaeche: #F9F5FC; --linie: #D3C1E5; }
.bereich textarea, .bereich input, .bereich select { background: #fff; }
.bereich .admin-gruppe { background: #fff; }
@media (max-width: 38rem) { .bereich { padding: .9rem .8rem 1rem; border-left-width: 5px; } }

/* Farbpunkte in der Sprungnavigation */
.sprungnavi a[class^="punkt-"]::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .35rem; border-radius: 50%; border: 1.5px solid var(--tusche); vertical-align: -.05em; }
.sprungnavi .punkt-aufgabe::before    { background: #F6E3A0; }
.sprungnavi .punkt-gruppen::before    { background: #BFD5EF; }
.sprungnavi .punkt-ergebnisse::before { background: #BEE0CB; }
.sprungnavi .punkt-leitung::before    { background: #B89AD6; }

/* Neue Gruppe */
.neue-gruppe > summary { list-style: none; display: inline-flex; }
.neue-gruppe > summary::-webkit-details-marker { display: none; }
.neue-gruppe[open] > summary { display: none; }
.neue-gruppe-form { max-width: 36rem; padding: 1rem 1.1rem; background: #fff; }

/* Audiopegel beim Diktieren */
.diktat-pegel { display: inline-block; width: 9rem; max-width: 40vw; height: .7rem; border: 1.5px solid var(--tusche); border-radius: 999px; overflow: hidden; background: #fff; }
.diktat-pegel-balken { display: block; width: 100%; height: 100%; background: #6DB08A; transform-origin: left center; transform: scaleX(0); }
.diktat-details { margin-top: .4rem; font-size: .85rem; }
.diktat-details summary { cursor: pointer; color: var(--violett); font-weight: 600; }
.diktat-log { max-height: 16rem; overflow: auto; margin: .4rem 0; padding: .5rem .6rem; background: #F3F1EA; border: 1px solid #D8D6CE; border-radius: 6px; font-size: .75rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Einstellungsmenü mit Leitung; Export im Ergebnisbereich */
.aufklapp-inhalt { max-height: min(80vh, 46rem); overflow-y: auto; }
.menue-leitung { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed #B9B8B0; }
.menue-leitung .leitfragenliste { list-style: none; margin: .4rem 0 .8rem; padding: 0; }
.menue-leitung .leitfragenliste li { justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid #ECEAE3; }
.export-zeile { margin: .2rem 0 .3rem; }

/* Gruppencode */
.kachel-code { margin: 0; font-size: .9rem; }
.kachel-code strong { font-family: ui-monospace, Menlo, monospace; font-size: 1.1rem; letter-spacing: .06em; }
.qr-code-text { margin: .35rem 0 0; font-size: .85rem; }
.qr-code-text strong { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; letter-spacing: .08em; }
.code-form { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-bottom: .8rem; }
.code-zeile { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.code-zeile input { width: 12rem; text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; }
.code-zeile input::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 1rem; }
.code-fehler { margin: .2rem 0 0; color: #7A1C1F; font-weight: 600; }
@media print { .qr-code-text { font-size: 9pt; } .qr-code-text strong { font-size: 12pt; } .qr-blatt.einzeln .qr-code-text { font-size: 14pt; } .qr-blatt.einzeln .qr-code-text strong { font-size: 22pt; } }

/* ---------- 1.10.0: Beiträge für die Gruppe unsichtbar ---------- */
.abzeichen-verborgen { background: var(--blau); }
.schalter-zeile { display: flex; align-items: center; gap: .55rem; }
.schalter-zeile input[type=checkbox] { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--violett); flex: none; }
.schalter-zeile label { font-weight: 650; }
.sichtbarkeit { border-top: 1px solid #DDDBD2; padding-top: .7rem; }
.hinweis-verborgen { border-color: var(--violett); background: #F2ECF7; margin: 0 0 .8rem; }

/* ---------- 1.10.0: Präsentationsmodus ---------- */
.admin-gruppe-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .9rem; }
.admin-gruppe-kopf .admin-gruppe-titel { margin: 0; }
.admin-gruppe-kopf .knopf { flex: none; }

body.praesentation .seitenkopf, body.praesentation .fuss { display: none; }
body.praesentation .rahmen { max-width: none; padding: 1rem clamp(1rem, 3vw, 3rem) 3rem; }
.praes { --praes-groesse: 1; }
.praes-leiste { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding-bottom: .8rem; border-bottom: 2px dashed #B9B8B0; }
.praes-wechsel { display: inline-flex; gap: .35rem; align-items: center; }
.praes-wechsel select { min-height: 2.5rem; max-width: 16rem; }
.praes-kopf { margin: 1.4rem 0 1rem; }
.praes-kopf .dachzeile { font-size: calc(1rem * var(--praes-groesse)); }
.praes-kopf h1 { font-size: calc(2.6rem * var(--praes-groesse)); line-height: 1.15; }
.praes-aufgaben { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 1.4rem; padding: .8rem 1rem; border-left: 6px solid var(--gelb); background: #FFFBEA; border-radius: 4px; }
.praes-aufgabe { margin: 0; font-size: calc(1.05rem * var(--praes-groesse)); white-space: pre-wrap; overflow-wrap: anywhere; }
.praes-status { margin: 0 0 1rem; }
.praes-beitraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(22rem * var(--praes-groesse))), 1fr)); gap: 1.25rem; align-items: start; }
.praes-karte { background: #fff; padding: 1rem 1.2rem; box-shadow: 3px 4px 0 var(--tusche); }
.praes-karte:nth-child(3n+2) { border-radius: var(--radius-b); background: #FBFDFF; }
.praes-karte:nth-child(3n) { background: #FBFEFC; }
.praes-karte.typ-foto { grid-column: span 2; }
@media (max-width: 50rem) { .praes-karte.typ-foto { grid-column: auto; } }
.praes-text { margin: 0; font-size: calc(1.5rem * var(--praes-groesse)); line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.praes-figur { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.praes-foto { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; border-radius: 6px; border: 1px solid #D8D6CE; }
.praes-meta { margin: .6rem 0 0; font-size: calc(.9rem * var(--praes-groesse)); color: var(--grau); }
.praes-leer { font-size: calc(1.2rem * var(--praes-groesse)); }
body.praes-vollbild { background: var(--papier); }
@media print {
  .praes-leiste { display: none; }
  .praes-karte { box-shadow: none; break-inside: avoid; }
}
