/* Unsere Momente – Klickdummy.
   Aufbau nach Locket: ein großer Sucher, der Verlauf Bild für Bild. Drei
   Designs teilen sich diesen Aufbau und unterscheiden sich nur in den
   Variablen unten (Farben, Schrift, Rahmen der Bilder). Umschalten in den
   Einstellungen oder per ?design=nacht|papier|sofortbild. Dieselben Werte
   stehen in docs/design/designs.md für die nativen Apps. */

:root {
  --bg: #000;
  --fl: #1c1c1e;      /* Flächen: Knöpfe, Listen */
  --fl2: #2c2c2e;     /* Flächen auf Flächen */
  --tx: #fff;
  --mu: #8e8e93;      /* Nebensachen */
  --li: rgba(255, 255, 255, .1);
  --rot: #ff453a;
  --gruen: #30d158;   /* nur für den Schalter, wie im System */
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  --akzent: #fff;           /* Hauptknopf, Senden */
  --auf-akzent: #000;
  --schrift: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --schrift-titel: var(--schrift);
  --ecke: 44px;             /* Ecken der Bilder im Verlauf */
  --rahmen: 0px;            /* Rand um jedes Bild … */
  --rahmen-unten: 0px;      /* … unten breiter beim Sofortbild */
  --rahmen-farbe: transparent;
  --schatten: 0 0 0 0 transparent;
  --sucher-ecke: 56px;
  --kachel-ecke: 16px;
  --ausloeser-ring: #fff;
  --ausloeser-kern: #fff;
  color-scheme: dark;
}

/* Papier: hell und warm, Serifen in den Überschriften, Bilder wie Abzüge mit weißem Rand. */
:root[data-design="papier"] {
  --bg: #f4f0e8; --fl: #fffdf9; --fl2: #e9e3d8; --tx: #231f1a; --mu: #8a8176; --li: rgba(35, 31, 26, .1);
  --rot: #c0392b; --akzent: #c2562f; --auf-akzent: #fff;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --schrift-titel: "New York", "Iowan Old Style", Palatino, Georgia, "Noto Serif", serif;
  --ecke: 5px; --rahmen: 7px; --rahmen-unten: 7px; --rahmen-farbe: #fff;
  --schatten: 0 12px 28px -14px rgba(60, 40, 20, .45);
  --sucher-ecke: 16px; --kachel-ecke: 4px; --ausloeser-ring: #231f1a; --ausloeser-kern: #c2562f;
  color-scheme: light;
}

/* Sofortbild: dunkles Grün, jedes Bild im cremefarbenen Polaroid-Rahmen mit breiter Unterkante. */
:root[data-design="sofortbild"] {
  --bg: #1b2923; --fl: #253830; --fl2: #30473d; --tx: #f3efe6; --mu: #9fb0a6; --li: rgba(243, 239, 230, .12);
  --rot: #ff7a66; --akzent: #efe3c8; --auf-akzent: #1b2923;
  --schrift: -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
  --schrift-titel: var(--schrift);
  --ecke: 3px; --rahmen: 10px; --rahmen-unten: 40px; --rahmen-farbe: #f5f0e4;
  --schatten: 0 16px 32px -14px rgba(0, 0, 0, .7);
  --sucher-ecke: 4px; --kachel-ecke: 3px; --ausloeser-ring: #efe3c8; --ausloeser-kern: #efe3c8;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--tx); overscroll-behavior: none; }
body {
  font: 500 16px/1.35 var(--schrift);
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
input { -webkit-user-select: text; user-select: text; }
button, input { font: inherit; color: inherit; background: none; border: 0; outline: none; }
button, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }

#app { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 520px) {
  body { background: #0d0d0e; }
  #app { box-shadow: 0 0 0 1px #1f1f21; }
}
.bs { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ------------------------------------------------ Grundbausteine */

.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(var(--oben) + 10px) 16px 10px; flex: none; }
.kopf.ueber { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: linear-gradient(color-mix(in srgb, var(--bg) 87%, transparent) 30%, color-mix(in srgb, var(--bg) 0%, transparent)); }
h1, h2, .titel, .historie h3, .ereignis-karte p { font-family: var(--schrift-titel); }
.titel { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rund { width: 44px; height: 44px; border-radius: 50%; background: var(--fl); display: grid; place-items: center; flex: none; }
.rund.gross { width: 54px; height: 54px; }
.rund.leer { background: none; }
.rund.profil { background: none; }

.pille { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 18px; border-radius: 22px; background: var(--fl); font-weight: 700; font-size: 16px; min-width: 0; max-width: 62%; }
.pille .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ini { --g: 32px; width: var(--g); height: var(--g); border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: calc(var(--g) * .38); color: #fff; letter-spacing: .02em; }
.gruppen-ini { --g: 36px; width: var(--g); height: var(--g); border-radius: calc(var(--g) * .32); display: grid; place-items: center; flex: none; font-weight: 700; font-size: calc(var(--g) * .36); background: var(--fl2); }
.gruppen-ini.familie { background: #5a4636; }
.gruppen-ini.freunde { background: #34485a; }

.knopf { height: 54px; width: 100%; border-radius: 27px; background: var(--fl2); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 17px; flex: none; }
.knopf.hell { background: var(--akzent); color: var(--auf-akzent); }
.knopf.rot { background: var(--rot); color: #fff; }
.knopf.leise { background: none; color: var(--mu); }
.knopf.klein { height: 42px; width: auto; padding: 0 20px; font-size: 15px; }
.knopf:disabled { opacity: .35; }

.segment { display: flex; background: var(--fl2); border-radius: 14px; padding: 3px; width: 100%; }
.segment button { flex: 1; height: 38px; border-radius: 11px; font-weight: 700; color: var(--mu); }
.segment button.an { background: var(--tx); color: var(--bg); }

.fuss { color: var(--mu); font-size: 13px; display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 18px 24px calc(var(--unten) + 18px); }

/* ------------------------------------------------ Ausloeser */

.ausloeser { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--ausloeser-ring); display: grid; place-items: center; flex: none; touch-action: none; }
.ausloeser i { width: 66px; height: 66px; border-radius: 50%; background: var(--ausloeser-kern); transition: transform .15s, border-radius .2s, background .2s; }
.ausloeser:active i { transform: scale(.9); }
.ausloeser::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; opacity: 0;
  background: conic-gradient(var(--rot) calc(var(--p, 0) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.ausloeser.nimmt { border-color: color-mix(in srgb, var(--tx) 25%, transparent); }
.ausloeser.nimmt::before { opacity: 1; }
.ausloeser.nimmt i { background: var(--rot); transform: scale(.5); border-radius: 28%; }
.ausloeser.klein { width: 66px; height: 66px; border-width: 3px; }
.ausloeser.klein i { width: 52px; height: 52px; }
.ausloeser.senden-knopf { background: var(--akzent); color: var(--auf-akzent); border: 0; }
.ausloeser.senden-knopf:disabled { opacity: .35; }
.ausloeser-platz { width: 66px; }

/* ------------------------------------------------ Kamera */

.kamera .sucher-bereich { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.sucher { --seite: 1; position: relative; overflow: hidden; border-radius: var(--sucher-ecke); background: #111; aspect-ratio: var(--seite);
  border: var(--rahmen) solid var(--rahmen-farbe); border-bottom-width: var(--rahmen-unten); box-shadow: var(--schatten);
  width: min(100%, calc((100dvh - var(--oben) - var(--unten) - 320px) * var(--seite))); transition: width .25s; }
.sucher video, .sucher img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gespiegelt { transform: scaleX(-1); }
.sucher .hinweis { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; color: #fff; background: #000a; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 6px 12px; border-radius: 14px; font-size: 13px; white-space: nowrap; }
.sucher .aufnahme { position: absolute; top: 18px; left: 50%; translate: -50% 0; background: var(--rot); padding: 4px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sucher .blitz { position: absolute; inset: 0; background: #fff; animation: blitz .3s forwards; }
@keyframes blitz { to { opacity: 0; } }
.format .form { --seite: 1; display: block; border: 2px solid currentColor; border-radius: 4px;
  width: calc(18px * min(1, var(--seite))); height: calc(18px / max(1, var(--seite))); }
.kamera .steuer { display: flex; justify-content: space-between; align-items: center; padding: 26px 34px 0; flex: none; }
.zum-verlauf { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 18px 0 calc(var(--unten) + 12px); font-weight: 700; flex: none; }
.zum-verlauf .zeile1 { display: flex; align-items: center; gap: 8px; }
.neu-zahl { background: var(--akzent); color: var(--auf-akzent); font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; }

/* ------------------------------------------------ Stapel und Medien */

.stapel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.stapel::-webkit-scrollbar { display: none; }
.folie { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 22px 14px 14px; }
.medium { --seite: 1; --platz: 60dvh; position: relative; overflow: hidden; border-radius: var(--ecke); background: var(--fl); flex: none; aspect-ratio: var(--seite);
  border: var(--rahmen) solid var(--rahmen-farbe); border-bottom-width: var(--rahmen-unten); box-shadow: var(--schatten);
  width: min(100%, calc(var(--platz) * var(--seite))); }
.medium img, .medium video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Solange ein Bild entschlüsselt wird, steht die Fläche in seiner Form da und atmet leise. */
.medium.laedt, .kachel.laedt { animation: laedt 1.4s ease-in-out infinite alternate; }
@keyframes laedt { to { background: color-mix(in srgb, var(--fl) 70%, var(--tx)); } }
@media (prefers-reduced-motion: reduce) { .medium.laedt, .kachel.laedt { animation: none; } }
.medium.kaputt, .kachel.kaputt { background: repeating-linear-gradient(135deg, var(--fl) 0 10px, color-mix(in srgb, var(--fl) 85%, var(--tx)) 10px 20px); }
/* Die Kanten dahinter sagen: Da liegt noch mehr. */
.stapel.mehrere .medium { box-shadow: 9px -9px 0 -3px color-mix(in srgb, var(--tx) 17%, transparent), 18px -18px 0 -6px color-mix(in srgb, var(--tx) 8%, transparent), var(--schatten); }
.medium .ton, .medium .weg { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: #0009; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
.medium .ton { right: 16px; bottom: 16px; }
.medium .weg { right: 16px; top: 16px; }
.punkte { display: flex; justify-content: center; gap: 6px; padding-top: 4px; }
.punkte i { width: 6px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--tx) 35%, transparent); transition: width .2s, background .2s; }
.punkte i.an { width: 18px; background: var(--tx); }

/* ------------------------------------------------ Senden */

.senden .stapel-bereich { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.senden .medium { --platz: calc(100dvh - var(--oben) - var(--unten) - 360px); }
.empfaenger { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 16px 0; flex: none; }
.chip { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 10px; border-radius: 19px; background: var(--fl); color: var(--mu); font-weight: 700; font-size: 15px; }
.chip::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.chip.an { background: var(--tx); color: var(--bg); }
.chip.an::before { content: "✓"; border: 0; width: auto; height: auto; font-weight: 900; }
.senden .steuer { display: flex; justify-content: center; padding: 22px 0 0; flex: none; }
.senden .status { text-align: center; color: var(--mu); font-size: 14px; padding: 12px 0 calc(var(--unten) + 18px); min-height: 50px; flex: none; }

/* ------------------------------------------------ Verlauf */

.verlauf .seiten { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: contain; }
.verlauf .seiten::-webkit-scrollbar { display: none; }
.seite { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: calc(var(--oben) + 60px) 0 calc(var(--unten) + 104px); }
.seite .stapel-bereich { width: 100%; }
.seite .medium { --platz: calc(100dvh - var(--oben) - var(--unten) - 290px); }
.absender { display: flex; align-items: center; gap: 8px; background: var(--fl); padding: 5px 14px 5px 5px; border-radius: 20px; font-size: 15px; max-width: calc(100% - 32px); }
.absender b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.absender span { color: var(--mu); white-space: nowrap; }
.gruppen-namen { font-size: 13px; color: var(--mu); text-align: center; padding: 0 24px; }
.ereignis-karte { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 36px; }
.ereignis-karte p { font-size: 21px; font-weight: 700; line-height: 1.3; }
.ereignis-karte span { color: var(--mu); }
.fuss-leiste { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 30px calc(var(--unten) + 16px); background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), color-mix(in srgb, var(--bg) 87%, transparent) 45%); }
.fuss-leiste .laden[aria-disabled="true"] { opacity: .3; }

.leerzustand { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center; padding: calc(var(--oben) + 70px) 32px calc(var(--unten) + 110px); }
.leerzustand h2 { font-size: 24px; }
.leerzustand p { color: var(--mu); margin-bottom: 10px; }
.demo { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.demo small { color: var(--mu); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 800; }
.demo a { color: var(--mu); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

/* ------------------------------------------------ Historie */

.historie .raster-bereich { flex: 1; overflow-y: auto; padding: 0 3px calc(var(--unten) + 24px); }
.historie h3 { font-size: 20px; font-weight: 800; padding: 16px 10px 10px; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.kachel { position: relative; aspect-ratio: 1; border-radius: var(--kachel-ecke); overflow: hidden; background: var(--fl); }
.kachel img, .kachel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachel .marke { position: absolute; top: 7px; right: 7px; display: flex; align-items: center; gap: 3px; background: #0009; border-radius: 9px; padding: 2px 6px; font-size: 11px; font-weight: 800; }

/* ------------------------------------------------ Listen, Einstellungen */

.kopf.fest { background: var(--bg); }
.liste-bs .inhalt { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 0 16px calc(var(--unten) + 32px); }
.inhalt h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mu); font-weight: 800; margin: 28px 6px 8px; }
.profil-kopf { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 4px; text-align: center; }
.profil-kopf h2 { font-size: 24px; font-weight: 800; }
.unter { color: var(--mu); font-size: 14px; }
.liste { background: var(--fl); border-radius: 18px; overflow: hidden; }
.zeile { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; font-size: 16px; }
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; border-top: 1px solid var(--li); }
.zeile .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zeile .text b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile small { color: var(--mu); font-size: 13px; }
.zeile .rechts { color: var(--mu); font-size: 14px; white-space: nowrap; }
.zeile .haken { width: 22px; }
.zeile:disabled { cursor: default; }
.zeile.rot b { color: var(--rot); }
.zeile .rund-ikon { width: 36px; height: 36px; border-radius: 12px; background: var(--fl2); display: grid; place-items: center; flex: none; }
.erklaerung { color: var(--mu); font-size: 13px; padding: 10px 6px 0; }

.schalter { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fl2); position: relative; flex: none; transition: background .2s; }
.schalter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: translate .2s; }
.schalter:checked { background: var(--gruen); }
.schalter:checked::after { translate: 20px 0; }

/* ------------------------------------------------ Formulare */

.feld { width: 100%; height: 58px; border-radius: 18px; background: var(--fl); padding: 0 18px; font-size: 20px; font-weight: 700; }
.feld:focus { box-shadow: 0 0 0 2px var(--tx); }
.feld::placeholder { color: var(--mu); }
.onboarding .mitte { margin: auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 14px; }
.marke-text { color: var(--mu); font-weight: 800; }
.onboarding h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; margin: -8px 0 10px; }
/* .liste-bs .inhalt setzt padding-top: 0 und war spezifischer; dann schnitt
   der Scrollbereich den Fokusrahmen des ersten Felds oben ab. */
.inhalt.formular { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.typ-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.typ-wahl button { background: var(--fl); border-radius: 18px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 2px transparent; }
.typ-wahl button.an { box-shadow: inset 0 0 0 2px var(--tx); }
.typ-wahl b { font-size: 17px; }
.typ-wahl small { color: var(--mu); font-size: 13px; }

/* ------------------------------------------------ Einladen, Scannen, Einladung */

.mitte-inhalt { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.qr-karte { width: min(100%, 320px); background: #fff; color: #000; border-radius: 34px; padding: 26px 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-karte .qr { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr-karte .qr svg { width: 100%; height: 100%; }
.qr-karte b { font-size: 18px; margin-top: 12px; }
.qr-karte small { color: #6e6e73; font-size: 14px; }

.scannen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scannen .rahmen { position: absolute; top: 50%; left: 50%; width: 250px; height: 250px; translate: -50% -60%; }
.scannen .rahmen i { position: absolute; width: 46px; height: 46px; border: 4px solid #fff; }
.scannen .rahmen i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.scannen .rahmen i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.scannen .rahmen i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.scannen .rahmen i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.scannen .scan-text { position: absolute; left: 24px; right: 24px; top: calc(50% + 110px); text-align: center; font-weight: 700; text-shadow: 0 1px 8px #000; }
.scannen .link-feld { position: absolute; left: 16px; right: 16px; bottom: calc(var(--unten) + 20px); display: flex; gap: 8px; }
.scannen .link-feld .feld { height: 48px; font-size: 15px; font-weight: 600; border-radius: 24px; background: color-mix(in srgb, var(--fl) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.einladung .mitte { margin: auto 0; padding: 0 28px calc(var(--unten) + 20px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.einladung h1 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.einladung .rolle-info { color: var(--mu); margin: 4px 0 18px; max-width: 300px; }

/* ------------------------------------------------ Blatt, Banner, Hinweis */

.blatt-hinter { position: fixed; inset: 0; z-index: 50; background: #0009; display: flex; align-items: flex-end; justify-content: center; animation: einblenden .2s; }
.blatt-hinter.weg { opacity: 0; transition: opacity .2s; }
.blatt { width: 100%; max-width: 480px; max-height: 85dvh; overflow-y: auto; background: var(--fl); border-radius: 30px 30px 0 0; padding: 22px 16px calc(var(--unten) + 16px); animation: hochfahren .28s cubic-bezier(.2, .8, .2, 1); }
.blatt h3 { font-size: 17px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.blatt .liste { background: var(--fl2); }
.blatt .knopf { margin-top: 12px; }
.blatt .mitte { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.blatt .mitte .segment { margin-top: 6px; }
.blatt-hinweis { color: var(--mu); font-size: 13px; text-align: center; padding: 10px 8px 0; }
@keyframes einblenden { from { opacity: 0; } }
@keyframes hochfahren { from { transform: translateY(100%); } }

#banner { position: fixed; z-index: 60; top: calc(var(--oben) + 8px); left: 50%; width: min(calc(100% - 16px), 464px); translate: -50% 0;
  transform: translateY(-160%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
#banner.an { transform: none; }
#banner button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 24px; text-align: left;
  background: rgba(44, 44, 46, .92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 10px 30px #0008; }
#banner .app-ikon { width: 38px; height: 38px; border-radius: 10px; background: #000; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px #333; }
#banner .app-ikon i { width: 20px; height: 20px; border-radius: 7px; border: 3px solid #fff; }
#banner .t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
#banner .t b { font-weight: 800; }
#banner .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d1d1d6; }
#banner img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; }

/* Oben unter der Kopfzeile: unten lägen Hinweise über Auslöser und Senden-Knopf. */
#toast { position: fixed; z-index: 70; left: 50%; top: calc(var(--oben) + 72px); translate: -50% 0; max-width: calc(100% - 40px);
  background: var(--tx); color: var(--bg); font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 20px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s; }
#toast.an { opacity: 1; }

.fehler-bs { align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.fehler-bs p { color: var(--mu); }

/* Design-Wahl in den Einstellungen: eine kleine Vorschau je Design. */
.design-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.design-wahl button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border-radius: 18px; background: var(--fl); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 2px transparent; }
.design-wahl button.an { box-shadow: inset 0 0 0 2px var(--tx); }
.design-wahl .probe { width: 56px; height: 72px; border-radius: 12px; display: grid; place-items: center; }
.design-wahl .probe i { width: 34px; height: 34px; }
.design-wahl .nacht .probe { background: #000; } .design-wahl .nacht .probe i { background: #8a8f98; border-radius: 12px; }
.design-wahl .papier .probe { background: #f4f0e8; } .design-wahl .papier .probe i { background: #b7a48c; border: 3px solid #fff; border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.design-wahl .sofortbild .probe { background: #1b2923; } .design-wahl .sofortbild .probe i { background: #7d9486; border: 3px solid #f5f0e4; border-bottom-width: 9px; border-radius: 2px; }
