/* Fotofäscht – Gestaltung (Entwurf Code, 27.11.2026).
   Idee: Fotos als Papierabzüge. Ein gewähltes Foto liegt als Abzug auf dem Tisch und «entwickelt» sich
   beim Hochladen von Grau zu Farbe. Sonst ruhig: Weiss, Nachtviolett, Blitzgelb für die eine Handlung. */

:root {
  --nacht: #241a3d;
  --nacht-70: #5b5470;
  --gelb: #ffd43b;
  --gelb-dunkel: #f2c21f;
  --pink: #f0457d;
  --mint: #1fa98b;
  --lila: #f3eefa;
  --linie: #ddd5ea;
  --rot: #b3261e;
  --weiss: #ffffff;
  --rund: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Quicksand", system-ui, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mass: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--nacht);
  font: 400 1.0625rem/1.5 var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--rund); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8.5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.09em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible { outline: 3px solid var(--nacht); outline-offset: 3px; border-radius: 4px; }
.auf-gelb :focus-visible, .knopf:focus-visible { outline-color: var(--nacht); box-shadow: 0 0 0 6px var(--weiss); }

.blatt { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Kopf und Fuss ---------- */

.kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.marke { font: 800 1.25rem/1 var(--rund); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.marke img { width: 30px; height: 30px; border-radius: 8px; }
.sprache { font: 600 0.9375rem/1 var(--text); background: none; border: 0; color: inherit; padding: 0.75rem 0.25rem; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
/* Umschalter DE · EN · FR · IT (Auftrag 98-Plus-INT): gewählte Sprache fett, ohne Unterstrich. */
.sprachen { display: flex; align-items: center; gap: 0.125rem; }
.sprachen .sprache { min-width: 44px; padding-inline: 0.375rem; }
.sprachen .sprache[aria-pressed="true"] { font-weight: 800; text-decoration: none; }
.sprachen .punkt { opacity: 0.6; }
.sprachhinweis { background: var(--nacht); color: var(--weiss); font-size: 0.9375rem; padding: 0.6rem 1.25rem; text-align: center; }
.sprachhinweis a { color: inherit; font-weight: 700; }

/* ---------- Einrichtung in 1 Minute (Teil 4 A) ---------- */
.einrichtung { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; counter-reset: schritt; }
.einrichtung li { counter-increment: schritt; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: start; padding: 0.625rem 0.75rem; border-radius: 14px; }
.einrichtung .marke-schritt { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--weiss); box-shadow: inset 0 0 0 2px var(--nacht); font: 800 1.0625rem/1 var(--rund); }
.einrichtung .marke-schritt::before { content: counter(schritt); }
.einrichtung li[data-fertig="true"] .marke-schritt { background: var(--mint); color: var(--weiss); box-shadow: none; }
.einrichtung li[data-fertig="true"] .marke-schritt::before { content: "✓"; }
.einrichtung li[data-aktiv="true"] { background: var(--gelb); }
.einrichtung li span, .einrichtung li a { padding-top: 0.4rem; }
.einrichtung small { color: var(--nacht-70); font-size: 0.875rem; }

/* ---------- Best-of (Teil 4 B) ---------- */
.raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.5rem; }
.raster button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--lila); cursor: pointer; }
.raster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.raster button[aria-pressed="true"] { outline: 4px solid var(--pink); outline-offset: -4px; }
.raster button::after { content: "☆"; position: absolute; right: 0.375rem; top: 0.25rem; font-size: 1.5rem; color: var(--weiss); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.raster button[aria-pressed="true"]::after { content: "★"; color: var(--gelb); }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.galerie figure { margin: 0; display: grid; gap: 0.5rem; }
.galerie img { width: 100%; height: auto; border-radius: 12px; cursor: zoom-in; background: var(--lila); }
.vollbild { border: 0; padding: 0; background: #000; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.vollbild img { width: 100%; height: calc(100% - 4rem); object-fit: contain; }
.vollbild .reihe { justify-content: center; padding: 0.5rem; }

/* ---------- Bildschirmfotos auf der Verkaufsseite (Teil 4 C) ---------- */
.einblicke { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; margin-top: 1.25rem; }
.einblicke img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 4px 16px rgba(36, 26, 61, 0.15); background: var(--lila); }

/* ---------- Plus: Sprachnachricht (Gäste), Diashow-Link, Erinnern (Verwaltung) ---------- */
.ton { background: var(--lila); border-radius: 20px; padding: 1.25rem; display: grid; gap: 0.875rem; }
.ton .zeit { font: 800 1.5rem/1 var(--rund); font-variant-numeric: tabular-nums; }
.ton audio { width: 100%; }
.ton .aufnahme::before { content: ""; display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--rot); margin-right: 0.5rem; vertical-align: 0.05em; }
@media (prefers-reduced-motion: no-preference) { .ton .aufnahme::before { animation: blinken 1.2s steps(2, start) infinite; } }
@keyframes blinken { to { visibility: hidden; } }

/* ---------- Live-Diashow ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.diashow { position: fixed; inset: 0; background: #000; color: var(--weiss); display: grid; place-items: center; overflow: hidden; }
.diashow .folie { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.diashow .folie.sichtbar { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .diashow .folie { transition: opacity 0.8s ease; } }
.diashow .leer { max-width: 32ch; text-align: center; font: 700 clamp(1.25rem, 3vw, 2rem)/1.3 var(--rund); padding: 1rem; }
.diashow .ecke { position: absolute; right: 1.25rem; bottom: 1.25rem; background: var(--weiss); color: var(--nacht); border-radius: 16px; padding: 0.75rem; display: grid; gap: 0.375rem; justify-items: center; font: 800 1rem/1.1 var(--rund); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.diashow .ecke img { width: clamp(7rem, 12vw, 11rem); height: auto; image-rendering: pixelated; }
.diashow .titel { position: absolute; left: 1.25rem; bottom: 1.25rem; font: 800 clamp(1rem, 2vw, 1.5rem)/1.2 var(--rund); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); max-width: 50vw; }
.diashow .steuerung { position: absolute; right: 1rem; top: 1rem; }
.diashow .steuerung .knopf { min-height: 2.75rem; font-size: 0.9375rem; }
.diashow:fullscreen .steuerung { opacity: 0; }
.diashow:fullscreen .steuerung:focus-within, .diashow:fullscreen .steuerung:hover { opacity: 1; }

.fuss { margin-top: auto; padding-block: 2.5rem 2rem; font-size: 0.9375rem; color: var(--nacht-70); display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.fuss a { display: inline-block; padding-block: 0.6rem; }

.testmodus { background: var(--nacht); color: var(--weiss); font-size: 0.9375rem; padding: 0.6rem 1.25rem; text-align: center; }

/* ---------- Bausteine ---------- */

.knopf {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem; border-radius: 999px;
  background: var(--gelb); color: var(--nacht);
  font: 800 1.125rem/1.1 var(--rund);
  box-shadow: 0 3px 0 var(--nacht);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.knopf:hover { background: var(--gelb-dunkel); }
.knopf:active { transform: translateY(3px); box-shadow: 0 0 0 var(--nacht); }
.knopf[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }
.knopf.gross { width: 100%; min-height: 4rem; font-size: 1.3125rem; }
.knopf.still { background: var(--weiss); box-shadow: inset 0 0 0 2px var(--nacht); font-size: 1rem; min-height: 2.875rem; padding: 0.5rem 1.125rem; }
.knopf.still:hover { background: var(--lila); }
.knopf.still:active { transform: none; }
.knopf.ernst { background: var(--weiss); color: var(--rot); box-shadow: inset 0 0 0 2px var(--rot); font-size: 1rem; min-height: 2.875rem; }
.knopf.ernst:hover { background: #fdecea; }
.knopf.ernst:active { transform: none; }

.reihe { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.feld { display: grid; gap: 0.375rem; }
.feld label, .feld legend { font: 700 1rem/1.3 var(--text); padding: 0; }
.feld .hinweis { font-size: 0.9375rem; color: var(--nacht-70); }
.feld input[type="text"], .feld input[type="date"], .feld input[type="password"], .feld textarea, .feld select {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--nacht);
  background: var(--weiss); border: 2px solid var(--nacht); border-radius: 12px;
  padding: 0.7rem 0.875rem; min-height: 3.125rem;
}
.feld textarea { min-height: 7rem; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible { outline-offset: 2px; }
fieldset.feld { border: 0; margin: 0; padding: 0; min-width: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.wahl label { font-weight: 400; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.wahl input { width: 1.25rem; height: 1.25rem; accent-color: var(--nacht); }

.meldung { border-radius: 12px; padding: 0.875rem 1rem; background: var(--lila); font-weight: 500; }
.meldung.gut { background: #e3f6f0; }
.meldung.schlecht { background: #fdecea; color: #7a1712; }
.meldung.warnung { background: #fff4c7; }
.fehlertext { color: var(--rot); font-weight: 600; font-size: 0.9375rem; }

.stapel { display: grid; gap: 1rem; }
.stapel.weit { gap: 1.5rem; }

/* ---------- Startseite ---------- */

.auftakt { background: var(--gelb); padding-block: 0.5rem 3.5rem; position: relative; overflow: hidden; }
.auftakt h1 { margin-top: 1.5rem; max-width: 12ch; }
.auftakt .vorspann { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 34ch; font-weight: 500; }
.auftakt .abzuege { position: absolute; right: max(-1.5rem, calc(50% - 26rem)); bottom: -2.25rem; width: 11.5rem; height: 12rem; pointer-events: none; }
.auftakt .abzuege span { position: absolute; background: var(--weiss); padding: 0.5rem 0.5rem 1.75rem; box-shadow: 0 6px 16px rgba(36, 26, 61, 0.18); }
.auftakt .abzuege span::before { content: ""; display: block; width: 100%; height: 100%; }
.auftakt .abzuege span:nth-child(1) { width: 6.5rem; height: 8rem; left: 0; top: 2rem; transform: rotate(-9deg); }
.auftakt .abzuege span:nth-child(1)::before { background: var(--mint); }
.auftakt .abzuege span:nth-child(2) { width: 7rem; height: 8.5rem; right: 0; top: 0; transform: rotate(7deg); }
.auftakt .abzuege span:nth-child(2)::before { background: var(--pink); }
@media (max-width: 30rem) { .auftakt .abzuege { opacity: 0.9; width: 8.5rem; right: -1.75rem; transform: scale(0.8); transform-origin: bottom right; } .auftakt .vorspann { max-width: 26ch; } }

.abschnitt { padding-block: 2.75rem 0; }
.abschnitt > h2 { margin-bottom: 1.25rem; }

.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; counter-reset: schritt; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: start; font-weight: 500; }
.schritte li::before { content: counter(schritt); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--nacht); color: var(--gelb); font: 800 1.0625rem/2.25rem var(--rund); text-align: center; }
.schritte li span { padding-top: 0.3rem; }
.randnotiz { color: var(--nacht-70); font-size: 0.9375rem; }

.formular { background: var(--lila); border-radius: 20px; padding: 1.5rem 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .formular { padding: 2rem; } }

.albenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.albenliste li { border: 2px solid var(--linie); border-radius: 14px; padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.albenliste strong { font-family: var(--rund); font-weight: 800; }
.albenliste small { display: block; color: var(--nacht-70); font-size: 0.9375rem; }
.textknopf { background: none; border: 0; padding: 0.6rem 0; min-height: 44px; font: inherit; font-size: 0.9375rem; color: var(--nacht-70); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- Verwaltung ---------- */

.titelblock { padding-block: 1rem 0.5rem; }
.titelblock h1 { font-size: clamp(1.9rem, 7vw, 2.75rem); overflow-wrap: anywhere; }
.titelblock p { margin-top: 0.5rem; color: var(--nacht-70); font-weight: 500; }

.kasten { border-top: 2px solid var(--nacht); padding-block: 1.5rem 0.5rem; display: grid; gap: 1rem; }
.kasten.hervor { border: 0; background: var(--gelb); border-radius: 20px; padding: 1.5rem 1.25rem; }
.kasten > h2 { font-size: 1.375rem; }

.linkfeld { font: 500 0.9375rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--lila); border-radius: 12px; padding: 0.75rem 0.875rem; overflow-wrap: anywhere; user-select: all; }

.qrzeile { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 36rem) { .qrzeile { grid-template-columns: 11rem 1fr; } }
.qrbild { width: 11rem; height: 11rem; border: 2px solid var(--nacht); border-radius: 12px; padding: 0.375rem; background: var(--weiss); image-rendering: pixelated; }

.zaehler { font: 800 clamp(1.75rem, 7vw, 2.5rem)/1.1 var(--rund); font-variant-numeric: tabular-nums; }
.balken { height: 0.75rem; border-radius: 999px; background: var(--lila); overflow: hidden; }
.balken span { display: block; height: 100%; width: 100%; background: var(--nacht); border-radius: 999px; transform-origin: left; transform: scaleX(var(--anteil, 0)); transition: transform 0.4s ease; }

.meldeliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.meldeliste li { background: var(--lila); border-radius: 12px; padding: 0.75rem 1rem; }
.meldeliste time, .meldeliste small { display: block; font-size: 0.875rem; color: var(--nacht-70); }

dialog { border: 0; border-radius: 20px; padding: 1.5rem 1.25rem; width: min(30rem, calc(100vw - 2rem)); color: var(--nacht); }
dialog::backdrop { background: rgba(36, 26, 61, 0.55); }
dialog form { display: grid; gap: 1rem; }

/* ---------- Hochladen (Gäste) ---------- */

.gast-kopf { background: var(--gelb); padding-block: 0.25rem 2rem; }
.gast-kopf h1 { margin-top: 1rem; font-size: clamp(1.9rem, 8vw, 3rem); overflow-wrap: anywhere; }
.gast-kopf .datum { margin-top: 0.5rem; font-weight: 600; }
.gast-kopf .vorspann { margin-top: 0.75rem; font-weight: 500; }
.gast-haupt { padding-top: 1.5rem; display: grid; gap: 1.25rem; }

.dateiwahl { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.dateiwahl:focus-visible + .knopf { outline: 3px solid var(--nacht); outline-offset: 3px; }

.fortschritt { font: 800 1.1875rem/1.2 var(--rund); font-variant-numeric: tabular-nums; }

.abzuege-liste { list-style: none; margin: 0; padding: 0.5rem 0.25rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); gap: 1.125rem 0.875rem; }
.abzug { position: relative; background: var(--weiss); padding: 0.375rem 0.375rem 1.875rem; box-shadow: 0 2px 10px rgba(36, 26, 61, 0.2), 0 0 0 1px rgba(36, 26, 61, 0.06); transform: rotate(var(--dreh, 0deg)); }
.abzug:nth-child(3n + 1) { --dreh: -1.6deg; }
.abzug:nth-child(3n + 2) { --dreh: 1.1deg; }
.abzug:nth-child(4n) { --dreh: -0.6deg; }
.abzug .bild { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--linie); filter: grayscale(calc(1 - var(--stand, 0))) brightness(calc(1.25 - 0.25 * var(--stand, 0))); transition: filter 0.3s linear; }
.abzug .stand { position: absolute; left: 0.375rem; right: 0.375rem; bottom: 0.3rem; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abzug .lauf { position: absolute; left: 0.375rem; right: 0.375rem; bottom: 1.75rem; height: 4px; background: var(--gelb); transform-origin: left; transform: scaleX(var(--stand, 0)); transition: transform 0.2s linear; }
.abzug[data-zustand="fertig"] .lauf { background: var(--mint); }
.abzug[data-zustand="fertig"] .stand { color: #0b6b56; }
.abzug[data-zustand="fehler"] .stand { color: var(--rot); font-size: 0.75rem; }
.abzug[data-zustand="fehler"] .bild { filter: grayscale(1) brightness(1.1); }
.abzug[data-zustand="fehler"] .lauf { background: var(--rot); transform: scaleX(1); }
.abzug .nochmal { position: absolute; inset: 0; width: 100%; background: rgba(255, 255, 255, 0.82); border: 0; font: 700 0.8125rem/1.2 var(--text); color: var(--nacht); cursor: pointer; padding: 0.5rem; text-decoration: underline; }
.abzug .grund { position: absolute; inset: 0.375rem 0.375rem 1.875rem; display: grid; place-items: center; padding: 0.25rem; background: rgba(255, 255, 255, 0.9); font-size: 0.75rem; line-height: 1.25; text-align: center; color: #7a1712; }

.kleingedrucktes { font-size: 0.9375rem; color: var(--nacht-70); display: grid; gap: 0.25rem; }
.kleingedrucktes .reihe { gap: 0 1.5rem; }
.kleingedrucktes a, .kleingedrucktes .textknopf { color: var(--nacht); }
.kleingedrucktes .erstellt-mit { font-size: 0.8125rem; margin-top: 0.75rem; }
.kleingedrucktes .erstellt-mit a { color: var(--nacht-70); }

/* Rechtstexte (Entwurf) */
.fliesstext { padding-block: 1rem 0; display: grid; gap: 1rem; }
.fliesstext h1 { font-size: clamp(1.9rem, 7vw, 2.75rem); }
.fliesstext h2 { font-size: 1.25rem; margin-top: 0.75rem; }
.fliesstext ul { margin: 0; padding-left: 1.25rem; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .abzug { transform: none; }
}

.fliesstext ul.meldeliste { padding-left: 0; max-width: none; }

/* ---------- Verkaufsseite (Startseite) ---------- */
.auftakt h1 { max-width: 14ch; }
.auftakt-knopf { margin-top: 1.5rem; }
.auftakt-notiz { margin-top: 0.75rem; font-weight: 600; max-width: 44ch; }
.knopf.dunkel { background: var(--nacht); color: var(--weiss); box-shadow: 0 3px 0 rgba(36, 26, 61, 0.35); }
.knopf.dunkel:hover { background: #3a2c5f; }
.abschnitt > p + p, .abschnitt > ul + p, .abschnitt > p + ul { margin-top: 0.75rem; }
.abschnitt > p + form { margin-top: 1.25rem; }
.schritte li strong { font-family: var(--rund); font-weight: 800; }
.punkte { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.25rem; max-width: 62ch; }
.fragen { margin: 0; display: grid; gap: 0.25rem; max-width: 62ch; }
.fragen dt { font: 800 1.0625rem/1.3 var(--rund); margin-top: 0.875rem; }
.fragen dt:first-child { margin-top: 0; }
.fragen dd { margin: 0; }
.formular h3 { font-size: 1.375rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 30rem) { .auftakt-notiz { max-width: 20ch; } }

/* Suchseiten (FF-Fertigstellung Teil 4): Abstände der häufigen Fragen und der Linkliste. */
.suche .faq h3 { margin: 1.4em 0 .3em; font-size: 1.05rem; }
.suche .faq h3:first-of-type { margin-top: .6em; }
.suche .faq p { margin-top: 0; }
.suche nav { margin-top: 1.6em; }

/* ---------- Ausbau 2 – Baustein 4 ---------- */
.zaehler.zweit { font-size: 1.375rem; }
.einrichtung li a { display: inline-block; min-height: 44px; padding-block: 0.4rem; }
.einrichtung li span:has(> a) { padding-top: 0; }

/* ---------- Ausbau 2 – Baustein 5 ---------- */
.meldung.warnung { color: var(--nacht); }
#zustand[data-art] { display: flex; align-items: center; gap: 0.75rem; }
#zustand[data-art]::before {
  content: "";
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1rem/1 var(--rund);
}
#zustand[data-art="pause"]::before { content: "!" / ""; background: var(--gelb); border: 2px solid var(--nacht); color: var(--nacht); }
#zustand[data-art="ende"]::before { content: "✓" / ""; background: var(--mint); color: var(--weiss); }
#zustand[data-art="info"]::before { content: "i" / ""; background: var(--weiss); border: 2px solid var(--nacht); color: var(--nacht); }
#zustand[data-art="stopp"]::before { content: "!" / ""; background: var(--rot); color: var(--weiss); }

/* ---------- Ausbau 2 – Baustein 6 ---------- */
#zugang-liste li[data-status] { border-left: 6px solid var(--linie); }
#zugang-liste li[data-status="aktiv"] { border-left-color: var(--mint); }
#zugang-liste li[data-status="abgelaufen"] { border-left-color: var(--gelb-dunkel); }
#zugang-liste li[data-status="beendet"] { border-left-color: var(--rot); }
#zugang-liste .reihe { margin-top: 0.625rem; }
#zugang-liste .reihe .abgesetzt { margin-left: auto; }
.codefeld { font-size: 1.125rem; letter-spacing: 0.02em; user-select: all; }
#zugang-meldung > * + * { margin-top: 0.625rem; }
.grenze-zahl { display: grid; gap: 0.375rem; }
.grenze-zahl[hidden] { display: none; }
#zugang-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--nacht); }
#zugang-form label:has(input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 400; }
.fuss a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }

/* ---------- Ausbau 3 – Baustein 8 ---------- */
.zeile-form { margin-top: 0.875rem; background: var(--weiss); border-radius: 12px; padding: 1rem; }
.zeile-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--nacht); }
.zeile-form label:has(input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 400; }

/* ---------- Ausbau 3 – Baustein 10 (Tischkarte wählen) ---------- */
.vorlagen { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; }
.vorlagen label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 400; cursor: pointer; }
.vorlagen input { width: 1.25rem; height: 1.25rem; accent-color: var(--nacht); }
.vorlagen .farbe { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--nacht); flex-shrink: 0; }
.vorlagen .farbe[data-farbe="gelb"] { background: var(--gelb); }
.vorlagen .farbe[data-farbe="mint"] { background: #8fdcc8; }
.vorlagen .farbe[data-farbe="flieder"] { background: #d9c8f2; }

.karten-vorschau { max-width: 16rem; height: auto; border: 1px solid var(--linie); border-radius: 12px; }

/* ---------- Ausbau 3 – Baustein 12 (Gäste) ---------- */

/* Hinweis zum nächsten Schritt: schliesst unmittelbar unter der Meldung im gleichen Farbkasten an. */
.naechster-schritt {
  background: var(--lila);
  border-radius: 0 0 12px 12px;
  margin-top: -1.25rem; /* Abstand des Hauptrasters aufheben: ein Kasten mit der Meldung */
  padding: 0 1rem 0.875rem;
  font-size: 1rem;
}
.naechster-schritt[data-art="pause"] { background: #fff4c7; }
.naechster-schritt[data-art="ende"], .naechster-schritt[data-art="info"] { background: var(--lila); }
.naechster-schritt[data-art="stopp"] { background: #fdecea; color: #7a1712; }
#zustand:has(+ .naechster-schritt:not([hidden])) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Vertrauenszeile unter dem Wahlknopf: am Computer eine Zeile, am Handy umbrechend. */
.vertrauen.klein {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--nacht-70);
}
.vertrauen.klein li { display: flex; align-items: center; gap: 0.375rem; }
.vertrauen.klein li::before { content: "✓" / ""; font-weight: 800; }
@media (min-width: 40rem) { .vertrauen.klein { flex-wrap: nowrap; } }

/* Link zur Startseite bei unbekanntem Album: genügend gross für den Touch. */
#unbekannt-start a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Ausbau 3 – Baustein 13 (Startseite, Suchseiten) ---------- */

/* Demo-Link neben dem dunklen Knopf; am Handy darunter. */
.auftakt-knopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
@media (max-width: 47.99rem) { .auftakt-knopf { flex-direction: column; align-items: flex-start; } }

/* Demo-Notiz nur ab 48rem sichtbar. */
.demo-notiz { display: none; margin-top: 0.75rem; font-weight: 500; font-size: 0.9375rem; }
@media (min-width: 48rem) { .demo-notiz { display: block; } }

/* Vertrauenszeile: am Handy untereinander, am Computer nebeneinander. */
.auftakt .vertrauen { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.375rem; }
.auftakt .vertrauen li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.auftakt .vertrauen li::before { content: "✓" / ""; font: 800 1rem/1.5 var(--rund); color: var(--nacht); flex-shrink: 0; }
@media (min-width: 48rem) { .auftakt .vertrauen { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; } }

/* Text bleibt rechts neben der Deko .abzuege (bei 320–480 px rechts unten). */
@media (max-width: 30rem) { .auftakt .vertrauen li { padding-right: 7rem; } }

/* Breiter am Computer: nur ab 64rem und nur auf Startseite und Suchseiten (body-Klasse seite-start). */
@media (min-width: 64rem) {
  .seite-start .blatt { max-width: 64rem; }
  .seite-start .auftakt h1 { max-width: 18ch; }
  .seite-start .auftakt .abzuege { right: calc(50% - 32rem); transform: scale(1.18); transform-origin: bottom right; }
  /* Fliesstext bleibt bei höchstens 62ch (Vorgabe aus stil.css, hier keine Änderung nötig). */
  .seite-start .einblicke { grid-template-columns: repeat(3, 1fr); }
  .seite-start .schritte { grid-template-columns: repeat(3, 1fr); }
  .seite-start .formular { max-width: 44rem; }
}

/* ---------- Ausbau 3 – Baustein 11 (Gastgeber-Wahl) ---------- */
/* ---------- Einstellungen für Gäste (#gaeste-wahl) ---------- */

/* Kontrollkästchen mit Beschriftung in einer Zeile, genügend gross für den Touch. */
#gaeste-wahl label:has(input[type='checkbox']) {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}
#gaeste-wahl input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--nacht);
  flex-shrink: 0;
}
/* Feld «Höchstzahl je Gast»: nah bei der zugehörigen Wahl, aber nicht über die ganze Breite. */
#wahl-limit-zeile {
  max-width: 12rem;
  margin-top: 0.5rem;
}

/* ---------- Diashow-Freigabe (#dia-raster) ---------- */

/* Das Dia-Raster übersteuert bewusst die Sternform des Best-of (.raster button in stil.css):
   Bild oben, darunter ein normaler Knopf. */
.dia-raster li {
  position: relative;
  display: grid;
  gap: 0.375rem;
  align-content: start;
}
.dia-raster img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--lila);
}
.dia-raster img.ausgeblendet {
  opacity: 0.35;
}
.dia-raster button {
  aspect-ratio: auto;
  overflow: visible;
  border: 2px solid var(--nacht);
  background: var(--weiss);
  min-height: 2.75rem;
  padding: 0.375rem 0.5rem;
  font: 700 0.8125rem/1.2 var(--text);
  color: var(--nacht);
}
.dia-raster button::after {
  content: none;
}
.dia-raster button:hover {
  background: var(--lila);
}
.dia-raster button[disabled] {
  opacity: 0.55;
  cursor: default;
}
/* Schild auf ausgeblendeten Fotos. */
.dia-raster .dia-schild {
  position: absolute;
  top: 0.375rem;
  left: 0.375rem;
  background: var(--nacht);
  color: var(--weiss);
  font: 700 0.75rem/1.2 var(--rund);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

/* ---------- Ausbau 3 – Baustein 14 (S1, zweispaltig) ---------- */

@media (min-width: 64rem) {
  /* Das Blatt der Verwaltung wird breiter; Kopf und Fuss ziehen mit. */
  .seite-verwalten .blatt { max-width: 72rem; }

  /* Zwei Spalten: links Stand, Erinnern, Best-of, Diashow, Freischalten, Meldungen, Ende;
     rechts QR, Einstellungen für Gäste und Verwaltungslink. Titel, Hinweise, Schritte und
     #verbinden liegen weiter vor den Spalten und bleiben über die ganze Breite. */
  .seite-verwalten .spalten {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
  /* [hidden] gilt weiter. */
  .seite-verwalten .spalten[hidden] { display: none; }

  /* In der rechten, schmaleren Spalte darf die QR-Zeile umbrechen. */
  .seite-verwalten .spalten #spalte-rechts .qrzeile { display: flex; flex-wrap: wrap; }
}

/* ---------- Ausbau 3 – Feinschliff (Claude Code) ---------- */
#kalender-hinweis { margin-top: 0.5rem; }
#gaeste-wahl .feld { gap: 0; }
#wahl-limit-zeile.feld { gap: 0.375rem; }
#gaeste-wahl .feld .randnotiz { margin-top: 0; }
.abzug[data-zustand="fehler"] .stand { left: 0; right: 0; letter-spacing: -0.02em; }
@media (min-width: 64rem) { .seite-start .auftakt .vorspann { max-width: 46ch; } }

/* Ausbau 4: «Wird gleich wiederholt» darf umbrechen (schmale Kacheln, lange Sprachen). */
.abzug.wiederholt .stand { white-space: normal; background: #fff; font-size: 0.75rem; line-height: 1.1; padding-top: 0.2rem; }

/* Fotofäscht – Baustein 15: ruhiger Hinweis «wird gleich nochmals versucht» (#warten-hinweis). */

/* Kleiner Punkt links, wie bei #zustand in stil.css, mit leerem Alternativtext. */
.warten {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.warten::before {
  content: "" / "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--nacht); /* kein Rot: der Hinweis ist ruhig, keine Gefahr */
}

/* Langsames Pulsieren, nur die Deckkraft. */
@media (prefers-reduced-motion: no-preference) {
  .warten::before { animation: warten-puls 2s ease-in-out infinite; }
}

@keyframes warten-puls {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Fotofäscht – Baustein 17a: Stufe, Füllstand, Drive-Speicher. */

/* Überschrift des Stands und das Stufen-Schild in einer Zeile. */
.titel-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

/* Schild der Stufe: ruhige Kapsel mit Farben aus stil.css. */
.schild {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--linie);
  border-radius: 999px;
  background: var(--lila);
  font: 700 0.875rem/1.4 var(--rund);
  white-space: nowrap;
}

/* Fotofäscht – Baustein 17b: mehrere QR-Codes (#quellen). */

/* Einträge: Bezeichnung und Fotozähler in einer Zeile, darunter QR-Bild und Knöpfe.
   .albenliste liefert Rahmen und Abstand; hier die innere Ordnung. */
#quellen-liste li {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}
#quellen-liste .quellen-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}
#quellen-liste .quellen-name {
  font: 800 1.0625rem/1.3 var(--rund);
  margin: 0;
  overflow-wrap: anywhere;
}
#quellen-liste .quellen-anzahl {
  margin: 0;
  color: var(--nacht-70);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
/* Ausgeschaltete Quellen ruhig darstellen. */
#quellen-liste li[data-aktiv="false"] .quellen-name { color: var(--nacht-70); }
#quellen-liste li[data-aktiv="false"] .qrbild { opacity: 0.55; }

/* Kleineres QR-Bild als der Haupt-QR-Code (.qrbild aus stil.css). */
#quellen-liste .qrbild {
  width: 8rem;
  height: 8rem;
}

/* Formular: Feld nicht über die ganze Breite, Knopf bleibt gut getroffen (mindestens 44 px). */
#quellen-form .feld { max-width: 22rem; }

/* Fotofäscht – Baustein 18: Preisstufen auf der Startseite (#stufen).
   Ruhig, gleiche Flächen und Radien wie die übrigen Kästen (Formular, Ton). */

.stufen-liste {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.stufen-liste > li {
  background: var(--lila);
  border-radius: 20px;
  padding: 1.25rem;
  display: grid;
  gap: 0.375rem;
  align-content: start;
}

.stufen-liste h3 { font-size: 1.25rem; }

.stufe-fotos { font-size: 0.9375rem; color: var(--nacht-70); }

.stufe-preis {
  font: 800 1.25rem/1.2 var(--rund);
  font-variant-numeric: tabular-nums;
}

/* Richtwert in Fremdwährungen (nur englische Seite), ruhig unter dem Preis. */
.stufe-preis span[data-chf] {
  display: block;
  font: 400 0.8125rem/1.4 var(--text);
  color: var(--nacht-70);
}

/* Hinweis unter der Liste. */
.stufen-liste + p { margin-top: 1.25rem; }

/* Ab 64rem fünf Spalten; darunter liegen die Karten untereinander. */
@media (min-width: 64rem) {
  .seite-start .stufen-liste { grid-template-columns: repeat(5, 1fr); }
}

/* Fotofäscht – Baustein 19: Speicherwahl (Google Drive, OneDrive, Dropbox). */

/* Karten der Auswahl: darunter untereinander, ab 40rem nebeneinander. */
.speicher-karten {
  display: grid;
  gap: 0.625rem;
}
@media (min-width: 40rem) {
  .speicher-karten { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
}

/* Eine Karte: Knopf mit Symbol und Name, mindestens 56 px hoch. */
.speicher-karte {
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 56px;
  padding: 0.625rem 0.875rem;
  background: var(--weiss);
  color: var(--nacht);
  border: 2px solid var(--nacht);
  border-radius: 12px;
  font: 700 1rem/1.2 var(--text);
  text-align: left;
}
.speicher-karte:hover { background: var(--lila); }
.speicher-karte svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* Gewählte Karte: deutlicher 3-px-Rahmen und Häkchen, nicht nur Farbe. */
.speicher-karte[aria-pressed='true'] {
  border-width: 3px;
  padding: calc(0.625rem - 1px) calc(0.875rem - 1px);
}
.speicher-karte[aria-pressed='true']::after {
  content: "✓" / "";
  margin-left: auto;
  font: 800 1.125rem/1 var(--rund);
  color: var(--nacht);
}

/* Trennen-Knopf: Gefahr ohne Fehlermeldung; der bestätigende zweite Klick füllt die Fläche. */
.knopf.gefahr {
  background: var(--weiss);
  color: var(--rot);
  box-shadow: inset 0 0 0 2px var(--rot);
  font-size: 1rem;
  min-height: 2.875rem;
}
.knopf.gefahr:hover { background: #fdecea; }
.knopf.gefahr:active { transform: none; }
.knopf.gefahr.bestaetigt {
  background: var(--rot);
  color: var(--weiss);
  box-shadow: 0 3px 0 #7a1712;
}

/* Fotofäscht – Baustein 20: ZIP-Download (/zip/). Nur neue Regeln; sonst stil.css. */

/* Zeile mit Kontrollkästchen «Best-of einbeziehen»: gut getroffen, mindestens 44 px. */
.zip-kaestchen {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 500;
}
.zip-kaestchen input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--nacht);
  flex-shrink: 0;
}

/* Fortschritt: Balken aus stil.css (span mit --anteil), darunter Text und Abbrechen. */
#zip_fortschritt { margin-block: 0.25rem; }
#zip_leben { margin: 0; }

/* Teile: Knöpfe untereinander (Browser blockieren mehrere automatische Downloads). */
#zip_teile {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

/* Fehlliste: Dateinamen deutlich, aber ruhig; lange Namen brechen um. */
#zip_failed_list {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.25rem;
  color: var(--rot);
  font-weight: 600;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* Fotofäscht – Baustein 21a: ZIP-Knopf, Aufbewahrung und Support-Freigabe in der Verwaltung. */

/* Aufbewahrungsband: Ausrufezeichen als Symbol, nicht nur Farbe (gleiche Form wie #zustand in stil.css). */
#loesch-band {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.warn-symbol {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--nacht);
  color: var(--weiss);
  font: 800 1rem/1 var(--rund);
}

/* Überschrift der Support-Freigabe: sichtbarer Fokus, wenn sie nach einem Wechsel fokussiert wird. */
#support-titel:focus {
  outline: 3px solid var(--nacht);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Fotofäscht – Baustein 21b: Support-Freigaben (#support-freigaben).
   Variablen und Klassen aus stil.css; dieses Blatt wird separat eingebunden. */

/* Knopfzeile und Ausgabe unter dem Eintrag etwas absetzen. */
#support-liste .reihe { margin-top: 0.625rem; }
#support-liste .support-ausgabe { margin-top: 0.875rem; }

/* Vorschau: Abzüge im Raster, ab 320 px zwei Spalten. */
.support-vorschau {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
  gap: 0.5rem;
}
.support-vorschau img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--lila);
}

/* ZIP-Link: Feld nimmt den Platz ein, Knopf bleibt gut treffbar. */
.support-zip .reihe { align-items: end; }
.support-zip .feld { flex: 1 1 12rem; max-width: 30rem; }
.support-zip .knopf { min-height: 3.125rem; }

/* Ausbau 5, F9 (Baustein 23): Fotoaufgaben, Zähler und Bewertung in der Verwaltung. */
/* Kontrollkästchen mit Beschriftung in einer Zeile, genügend gross für den Touch. */
label.kaestchen {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}
label.kaestchen input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--nacht);
  flex-shrink: 0;
}
label.kaestchen input[type='checkbox']:disabled {
  cursor: default;
}

/* Liste der Fotoaufgaben: Kästchen untereinander, ab 40rem in zwei Spalten. */
#aufgaben-liste {
  display: grid;
  gap: 0.125rem 1.5rem;
}
@media (min-width: 40rem) {
  #aufgaben-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Eigenes Aufgabenfeld: Eingabe nimmt den Platz ein, Knopf bleibt gut getroffen. */
#aufgaben-form {
  max-width: 30rem;
}
#aufgaben-eigen {
  flex: 1 1 12rem;
  width: auto;
}

/* Sterne der Bewertung: gut treffbar, Sternzeichen zeigt gefüllt oder leer. */
#bewertung-sterne {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
label.stern-wahl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 44px;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}
label.stern-wahl input[type='radio'] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--nacht);
  flex-shrink: 0;
}
.stern-zeichen {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--nacht);
}

/* Namensform und Namensfeld: nicht über die ganze Breite. */
#bewertung-name .wahl {
  margin-top: 0.375rem;
}
#bewertung-name-zeile {
  max-width: 22rem;
  margin-top: 0.625rem;
}

/* Ausbau 5, F9 (Baustein 24): Fotos für die Diashow freigeben. */
.moderation-stand { font-weight: 700; }
.moderation-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.moderation-raster li { display: grid; gap: 0.375rem; min-width: 0; align-content: start; }
.moderation-raster img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--lila); border-radius: 0.5rem; }
.moderation-aktionen { display: grid; gap: 0.375rem; }
.moderation-knopf { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.25rem 0.5rem; font: inherit; color: var(--nacht); background: var(--weiss); border: 2px solid var(--nacht); border-radius: 0.5rem; cursor: pointer; }
.moderation-knopf:disabled { opacity: 0.6; cursor: default; }

/* Baustein 22a: Aufgabe-Karte und Live-Zähler (nur Regeln, nicht im HTML eingebunden) */

.aufgabe {
  background: var(--lila);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 1rem;
  color: var(--nacht);
}

#aufgabe-titel {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--nacht);
}

#aufgabe-text {
  margin: 0 0 0.75rem;
  font-family: var(--rund);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--nacht);
  overflow-wrap: break-word;
}

.aufgabe .reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.aufgabe .knopf {
  min-height: 44px;
}

#live-zahl {
  color: var(--nacht);
}

/* Untertitel in der Diashow: unten links, gut lesbar auf hellen und dunklen Fotos. */
.untertitel {
  position: absolute;
  left: 1.25rem;
  bottom: 4.5rem; /* über dem Albumnamen */
  /* Höchstens 60 % breit; rechts Platz für den QR-Code in #ecke lassen, auch hochkant */
  max-width: min(60%, calc(100% - 16rem));
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border-radius: 0.25rem;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  pointer-events: none;
}

/* Stil für die Dateiverwaltung im Fotofäscht-Speicher */

#dateien-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

#dateien-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--linie);
}

#dateien-liste li:last-child {
  border-bottom: none;
}

#dateien-liste img {
  width: 10rem;
  max-width: 100%;
  min-height: 4rem;
  height: auto;
  background: var(--lila);
  border: 1px solid var(--linie);
}

#dateien-liste audio {
  width: 100%;
  max-width: 18rem;
  min-height: 44px;
}

#dateien-liste .randnotiz {
  flex: 1 1 8rem;
}

#dateien-zeigen,
#dateien-alle,
#dateien-liste button {
  min-height: 44px;
}

#dateien-dialog {
  width: calc(100% - 2rem);
  max-width: 22rem;
  padding: 1rem;
  border: 1px solid var(--linie);
  background: var(--weiss);
  color: var(--nacht);
}

#dateien-dialog h2 {
  margin: 0;
}

#dateien-dialog .reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
