/* =============================================================
   SI-Idee – Design im Lumy-Blau (aus dem Lumy-App-Icon abgeleitet).
   Hell = Standard, Dunkel per Umschalter. Glühbirne = SI-Ideen-Marke.
   ============================================================= */

:root {
  /* Hell (Standard) – Lumy-Blau (aus dem Lumy-App-Icon: #1a3a5c→#3a7abd + Gold-Lichtpunkt) */
  --bg:        #eef2fb;
  --surface:   #ffffff;
  --surface-2: #e3eaf6;
  --ink:       #16243a;
  --ink-dim:   #4f6079;
  --ink-soft:  #93a1b8;
  --border:    #d8e1ef;
  --accent-1:  #2a5a8c;
  --accent-2:  #3a7abd;
  --grad-from: #1a3a5c;
  --grad-to:   #3a7abd;
  --gold:      #d9a441;
  --shadow:    0 1px 3px rgba(16,28,52,.08), 0 1px 2px rgba(16,28,52,.05);
  --danger:    #ef4444;

  --radius:    14px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-scale: 1;          /* Listen-Schrift skalierbar via +/- im Header (app.js) */

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dunkel"] {
  --bg:        #0b121e;
  --surface:   #131d2e;
  --surface-2: #1c2840;
  --ink:       #e6ecf6;
  --ink-dim:   #8a98b0;
  --ink-soft:  #5a6880;
  --border:    #243349;
  --accent-1:  #3a7abd;
  --accent-2:  #5a9ad8;
  --grad-from: #2a5a8c;
  --grad-to:   #4a8ad0;
  --gold:      #f0d090;
  --shadow:    0 1px 3px rgba(0,0,0,.4);
  --danger:    #f87171;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

/* [hidden] muss immer wirken: sonst ueberschreibt .login/.app { display:flex }
   das hidden-Attribut (Author-CSS schlaegt den UA-Default [hidden]{display:none}).
   Das war der Login-Overlay-Bug – Panel blieb sichtbar trotz hidden=true. (04.06.2026) */
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

/* ===================== Login ===================== */
.login {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  padding-top: calc(24px + var(--safe-top));
  background: var(--bg);
  z-index: 50;
}
.login-card {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.login-logo { width: 56px; height: 56px; margin-bottom: 8px; border-radius: 14px; }
.login-title {
  font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.02em;
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-1);
}
.login-sub { margin: 0 0 14px; color: var(--ink-dim); font-size: 14px; }
.login-pw, .login-btn { width: 100%; height: 50px; border-radius: var(--radius-sm); font-size: 16px; }
.login-pw {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
  padding: 0 16px; outline: none; transition: border-color .15s;
}
.login-pw:focus { border-color: var(--accent-1); }
.pw-wrap { position: relative; width: 100%; }
.pw-wrap .login-pw { width: 100%; padding-right: 50px; }
.pw-toggle {
  position: absolute; right: 5px; top: 5px; bottom: 5px; width: 42px;
  border: 0; background: transparent; color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer; border-radius: 8px;
}
.pw-toggle:active { color: var(--accent-1); }
.pw-toggle svg { width: 22px; height: 22px; }
.pw-toggle .eye-hide { display: none; }
.pw-toggle.revealed { color: var(--accent-1); }
.pw-toggle.revealed .eye-show { display: none; }
.pw-toggle.revealed .eye-hide { display: block; }
.login-btn {
  margin-top: 10px; border: 0; cursor: pointer; font-weight: 600;
  color: #fff; background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  transition: transform .1s, filter .15s;
}
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { filter: saturate(.5) opacity(.7); cursor: default; }
.login-error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.login-hint { color: var(--ink-soft); font-size: 12.5px; margin: 14px 0 0; }

/* ===================== App-Rahmen ===================== */
.app {
  display: flex; flex-direction: column;
  min-height: 100%;
  max-width: 620px; margin: 0 auto;
}
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  padding-top: calc(14px + var(--safe-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { width: 34px; height: 34px; flex: none; border-radius: 9px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-title {
  font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-1);
}
.brand-sub { font-size: 12px; color: var(--ink-dim); }

.icon-btn {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.icon-btn:active { background: var(--surface-2); }
.ico { width: 21px; height: 21px; }
[data-theme="hell"]  .ico-sun  { display: none; }
[data-theme="dunkel"] .ico-moon { display: none; }

/* Header-Aktionen rechts: Schriftgröße-Stepper + Theme-Umschalter */
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.fs-controls { display: flex; gap: 6px; flex: none; }
.fs-btn { width: 40px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.fs-btn:disabled { opacity: .4; cursor: default; }

/* ===================== Liste ===================== */
.list-wrap { flex: 1; padding: 14px 14px 0; }

/* Eingabezeile – die immer bereite "neue Zeile mit Checkbox" */
.add-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.add-box {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  border: 2px dashed var(--ink-soft);
}
.add-input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  color: var(--ink); font-size: calc(16px * var(--fs-scale)); font-family: var(--font); padding: 6px 0;
}
.add-input::placeholder { color: var(--ink-soft); }

.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;                /* Lösch-Hintergrund bleibt im abgerundeten Rahmen */
  transition: opacity .15s, border-color .15s, transform .18s ease;
}
.item-main {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  padding: 11px 8px 11px 12px;
  min-height: 54px;
  position: relative; z-index: 1;
  touch-action: pan-y;             /* vertikal scrollt der Browser, horizontal = Swipe (JS) */
  transition: transform .18s ease;
}
.item.swiping .item-main { transition: none; }   /* folgt dem Finger direkt */
.item.dragging {                   /* gezogenes Item: folgt dem Finger ohne Transition, hebt sich ab */
  transition: none;
  z-index: 5; overflow: visible;
  box-shadow: 0 10px 28px rgba(20, 24, 35, .20);
  border-color: var(--accent-1);
}
.items.drag-active { user-select: none; -webkit-user-select: none; }
.item.pending { opacity: .6; }     /* offline/optimistisch, noch nicht bestätigt */

/* Lösch-Hintergrund (Links-Wisch) */
.swipe-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--danger); color: #fff;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 22px;
}
.swipe-bg svg { width: 22px; height: 22px; opacity: .85; transition: transform .12s; }
.item.swipe-armed .swipe-bg svg { transform: scale(1.25); opacity: 1; }

/* Checkbox */
.check {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid var(--ink-soft); background: transparent;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: border-color .15s, background .15s;
}
.check svg { width: 16px; height: 16px; stroke: #fff; opacity: 0; transition: opacity .12s; }
.check[aria-checked="true"] {
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to)); border-color: transparent;
}
.check[aria-checked="true"] svg { opacity: 1; }

/* Ideen-Titel – Zeilenumbruch bei langen Einträgen */
.item-titel {
  flex: 1; min-width: 0; font-size: calc(16px * var(--fs-scale)); color: var(--ink);
  overflow-wrap: anywhere; word-break: break-word; white-space: normal;
  padding: 2px 0; border: 0; background: transparent; outline: none;
  font-family: var(--font); line-height: 1.35;
}
.item-titel:focus { border-bottom: 1px solid var(--accent-1); }

/* Greifsymbol – NUR hierüber lässt sich ziehen (kein Scroll-Konflikt) */
.grip {
  flex: none; width: 38px; height: 38px; border: 0; background: transparent;
  color: var(--ink-soft); cursor: grab; display: grid; place-items: center;
  touch-action: none; border-radius: 9px;
}
.grip:active { cursor: grabbing; color: var(--accent-1); }
.grip svg { width: 20px; height: 20px; pointer-events: none; }

.empty-hint { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 28px 10px; }

/* ===================== Reiter (Ideen / Archiv) ===================== */
.tabs {
  display: flex; gap: 6px;
  padding: 12px 14px 0;
}
.tab {
  flex: 1; min-height: 40px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-dim);
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.tab:active { background: var(--surface-2); }
.tab.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
}
.tab-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--surface-2); color: var(--ink-dim);
}
.tab-count:empty { display: none; }
.tab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }

.archiv-info { color: var(--ink-soft); font-size: 12.5px; margin: 2px 4px 12px; }

/* ===================== Detail-Aufklapp-Pfeil (Chevron) ===================== */
.chev {
  flex: none; width: 34px; height: 38px; border: 0; background: transparent;
  color: var(--ink-soft); cursor: pointer; display: grid; place-items: center;
  border-radius: 9px; transition: color .15s;
}
.chev svg { width: 20px; height: 20px; transition: transform .18s ease; pointer-events: none; }
.chev.open svg { transform: rotate(180deg); }
.chev.has-detail { color: var(--gold); }   /* Gold-Lichtpunkt: hier steckt schon ein Detail-Text drin */
.chev:active { color: var(--accent-1); }

/* ===================== Detail-Textfeld (aufklappbar) ===================== */
.item-detail-wrap {
  position: relative; z-index: 1;  /* über dem roten Lösch-Hintergrund liegen (analog .item-main) */
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 12px 12px;
}
.item-detail {
  width: 100%; box-sizing: border-box; resize: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font); font-size: calc(15px * var(--fs-scale)); line-height: 1.45;
  padding: 10px 12px; outline: none; min-height: 64px;
  transition: border-color .15s;
}
.item-detail:focus { border-color: var(--accent-1); }
.item-detail:read-only { background: transparent; border-color: transparent; padding: 0; }
.item-detail::placeholder { color: var(--ink-soft); }

/* ===================== Foto-Galerie (mehrere Fotos im aufgeklappten Detail) ===================== */
.foto-box { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.foto-galerie {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.foto-kachel {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
}
.foto-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in;                 /* antippen/klicken -> groß + zoombar in der Lightbox */
}
.foto-del {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(8, 12, 20, .55); color: #fff; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background .15s;
}
.foto-del:active { background: rgba(8, 12, 20, .8); }
.foto-del svg { width: 15px; height: 15px; }
.foto-add {
  aspect-ratio: 1 / 1; cursor: pointer;
  border: 1.5px dashed var(--ink-soft); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--font); font-size: 12.5px; font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.foto-add:active { background: var(--surface-2); }
.foto-add svg { width: 24px; height: 24px; }

.foto-status { display: flex; flex-direction: column; gap: 6px; }
.foto-bar { width: 100%; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.foto-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  transition: width .2s ease;
}
.foto-stxt { font-size: 12.5px; color: var(--ink-dim); }

/* ===================== Subtasks (Etappe 3: eingerückte abhakbare Liste) ===================== */
.subtask-box { margin: 2px 0 10px; padding-left: 2px; }
.subtask-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.subtask {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 5px 4px 5px 8px;
  border-left: 2px solid var(--border);          /* dezente Einrückungs-Markierung */
  border-radius: 0 8px 8px 0;
  transition: opacity .15s, background .15s;
}
.subtask.pending { opacity: .55; }                /* offline/optimistisch, noch nicht bestätigt */
.subtask-check {
  flex: none; width: 21px; height: 21px; border-radius: 6px;
  border: 2px solid var(--ink-soft); background: transparent;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: border-color .15s, background .15s;
}
.subtask-check svg { width: 13px; height: 13px; stroke: #fff; opacity: 0; transition: opacity .12s; }
.subtask-check[aria-checked="true"] {
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to)); border-color: transparent;
}
.subtask-check[aria-checked="true"] svg { opacity: 1; }
.subtask-titel {
  flex: 1; min-width: 0; font-size: calc(14.5px * var(--fs-scale)); color: var(--ink);
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.35;
  padding: 1px 2px; border: 0; background: transparent; outline: none; font-family: var(--font);
}
.subtask-titel:focus { border-bottom: 1px solid var(--accent-1); }
.subtask.erledigt .subtask-titel { color: var(--ink-soft); text-decoration: line-through; }
.subtask-del {
  flex: none; width: 30px; height: 30px; border: 0; background: transparent;
  color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; border-radius: 8px;
  transition: color .15s, background .15s;
}
.subtask-del:active { color: var(--danger); background: var(--surface-2); }
.subtask-del svg { width: 15px; height: 15px; pointer-events: none; }

/* "+"-Eingabezeile für neue Unterpunkte (Fokus bleibt -> mehrere schnell diktieren) */
.subtask-add {
  display: flex; align-items: center; gap: 9px;
  margin-top: 3px; padding: 4px 4px 4px 8px;
  border-left: 2px dashed var(--ink-soft); border-radius: 0 8px 8px 0;
}
.subtask-add-icon {
  flex: none; width: 21px; height: 21px; border-radius: 6px;
  border: 2px solid var(--ink-soft); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer;
  font-size: 16px; font-weight: 700; line-height: 1; user-select: none; -webkit-user-select: none;
}
.subtask-neu {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  color: var(--ink); font-size: calc(14.5px * var(--fs-scale)); font-family: var(--font); padding: 2px 0;
}
.subtask-neu::placeholder { color: var(--ink-soft); }

/* ===================== Archiv (abgehakte Ideen) ===================== */
.archived-list { margin-top: 2px; }
.item.archived { box-shadow: none; }
.item.archived .item-main { background: var(--surface-2); min-height: 48px; }
.item.archived .item-titel { color: var(--ink-soft); text-decoration: line-through; }
.item.archived .item-detail-wrap { background: var(--surface-2); }
.item.archived .subtask { border-left-color: var(--border); }
.item.archived .subtask-titel { color: var(--ink-soft); }

/* ===================== Footer / Sync ===================== */
.app-footer {
  position: sticky; bottom: 0;
  padding: 10px 18px; padding-bottom: calc(10px + var(--safe-bottom));
  text-align: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sync-status { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.sync-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft);
}
.sync-status.ok::before     { background: #3fb27f; }
.sync-status.warten::before { background: var(--accent-2); }
.sync-status.fehler::before { background: var(--danger); }

/* ===================== Hinweise (Toasts) ===================== */
.toasts {
  position: fixed; left: 0; right: 0;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 14px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  max-width: 420px; width: 100%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-left: 4px solid var(--ink-soft);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 14px; line-height: 1.35;
  cursor: pointer;
  animation: toast-ein .22s ease-out;
}
.toast-fehler  { border-left-color: var(--danger); }
.toast-warnung { border-left-color: var(--accent-2); }
.toast-ok      { border-left-color: #3fb27f; }
.toast-aus { animation: toast-aus .25s ease-in forwards; }

@keyframes toast-ein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-aus {
  to { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .toast-aus { animation: none; opacity: 0; }
}

/* ===================== Foto-Lightbox (groß ansehen + zoomen) ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 10, 18, .94);
  display: flex; align-items: center; justify-content: center;
  padding: var(--safe-top) 0 var(--safe-bottom);
  touch-action: none;              /* Gesten gehören der Zoom-Engine, nicht dem Browser */
  animation: lb-ein .18s ease-out;
}
.lb-stage {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;                /* gezoomtes Bild wird am Rand abgeschnitten, Pan verschiebt */
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
  cursor: zoom-out;                /* Klick auf den freien Rand schließt */
}
.lb-img {
  /* Initial formatfüllend (contain). Beim Zoom setzt JS echte width/height in px
     (scharfes Re-Rendering aus der Quelle) + maxWidth/maxHeight:none. KEIN will-change:
     das würde auf iOS Safari eine einmalig grob gerasterte GPU-Textur einfrieren. */
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  cursor: zoom-in;                 /* JS schaltet bei Zoom auf grab/grabbing */
}
.lb-close {
  position: absolute;
  top: calc(10px + var(--safe-top));
  right: calc(10px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .15s;
}
.lb-close:active { background: rgba(255, 255, 255, .3); }
.lb-close svg { width: 24px; height: 24px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s;
}
.lb-nav:active { background: rgba(255, 255, 255, .3); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: calc(8px + env(safe-area-inset-left, 0px)); }
.lb-next { right: calc(8px + env(safe-area-inset-right, 0px)); }
.lb-zaehler {
  position: absolute; top: calc(13px + var(--safe-top)); left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px;
  background: rgba(8, 12, 20, .55); color: #fff; font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb-hint {
  position: absolute; left: 0; right: 0;
  bottom: calc(16px + var(--safe-bottom));
  margin: 0; padding: 0 16px;
  text-align: center; color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.4;
  pointer-events: none;
  animation: lb-hint-aus 3.8s ease-in forwards;
}
@keyframes lb-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-hint-aus { 0%, 65% { opacity: .85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox { animation: none; }
  .lb-hint { animation: none; opacity: .7; }
}

@media (max-width: 380px) {
  .brand-title { font-size: 17px; }
  .list-wrap { padding: 12px 10px 0; }
}
