/* Weddypix — Anmutung einer Hochzeitseinladung.
 *
 * Bewusst nur ein helles Erscheinungsbild, kein prefers-color-scheme: eine
 * Einladung ist hell, und die Seite wird 30 Sekunden lang benutzt — da ist die
 * Stimmung wichtiger als Augenschonung im dunklen Saal. `color-scheme: light`
 * sorgt dafür, dass auch Eingabefelder und Scrollbalken hell bleiben, wenn das
 * Gerät auf Dunkelmodus steht.
 *
 * Schriften kommen aus dem System: `ui-serif` liefert auf Apple-Geräten
 * "New York", sonst greift Georgia. Kein externer Request, kein Flackern. */

:root {
  color-scheme: light;

  /* Palette „Weiß · Rosé · Apricot". Rosé trägt Marke und Ort, Apricot den
     Vorgang (Upload läuft, Bild wird entwickelt). Alle Textfarben sind auf mind.
     4,5:1 gegen Papier und Karten gemessen (WCAG AA). */
  --paper: #fffcfa;
  --blush: #fdf0ea;
  --surface: #ffffff;
  --ink: #3d2f31;
  --muted: #6f5d5f;
  --line: #f4e3dc;
  --dim: #b9a5a3;

  /* Rosé: kräftig für Text/Marke, weich nur als heller Verlaufsanfang der Buttons. */
  --accent: #9a4a55;
  --accent-deep: #9a4a55;
  --accent-soft: #c47f88;
  --accent-ink: #ffffff;

  /* Apricot: der laufende Vorgang. */
  --apricot: #e89a6a;
  --apricot-deep: #9d5726;

  --sage: #3f7a63;
  --error: #9c2233;
  --error-line: #efc9c7;
  --radius: 18px;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Jede eigene `display`-Regel schlägt sonst die eingebaute Regel des Browsers
   für [hidden] — ein per JS verstecktes Flex-Element bliebe sichtbar. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
  /* Zarter Rosé-Schimmer von oben — das ist der Unterschied zwischen
     "freundlich" und "Formular". */
  background-image:
    radial-gradient(130% 55% at 50% -8%, var(--blush) 0%, transparent 68%),
    radial-gradient(80% 40% at 100% 100%, #fdf4ec 0%, transparent 60%);
  background-attachment: fixed;
}

.wrap {
  max-width: 30rem;
  margin: 0 auto;
  /* Unten Platz für die feste Navigationsleiste, sonst verdeckt sie den
     letzten Eintrag der Liste. */
  padding: 2.5rem 1.25rem calc(5.5rem + env(safe-area-inset-bottom));
}

/* ---------- Kopf ---------- */

.head {
  text-align: center;
  margin-bottom: 2rem;
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.date {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Haarlinie mit Raute — das klassische Trennelement auf Einladungskarten. */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.ornament .rule {
  height: 1px;
  width: 3.5rem;
  background: linear-gradient(to right, transparent, var(--accent));
  opacity: 0.5;
}

.ornament .rule:last-child {
  background: linear-gradient(to left, transparent, var(--accent));
}

.ornament .lozenge {
  width: 6px;
  height: 6px;
  rotate: 45deg;
  background: var(--accent);
}

/* ---------- Karten ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 1px 2px rgb(154 74 85 / 6%), 0 12px 32px -16px rgb(154 74 85 / 30%);
}

.card h1,
.card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gate {
  margin-top: 3rem;
}

.thanks {
  margin-top: 1.75rem;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  animation: rise 0.5s ease-out;
}

/* Spezifität muss `.card p` schlagen, sonst gewinnt dessen --muted. */
.card .thanks-mark {
  margin: 0 0 0.6rem;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent);
  animation: beat 1.6s ease-in-out 0.3s 2;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.35rem;
}

.notice p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Schritt 1: Name ---------- */

#step-name {
  text-align: center;
  animation: rise 0.4s ease-out;
}

#step-name label {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.step-hint {
  margin: 0.3rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

#step-name input {
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.95rem;
  font: inherit;
  font-size: 1rem; /* < 16px löst auf iOS Auto-Zoom aus */
  text-align: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#step-name input::placeholder {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

#step-name input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.error {
  margin: -0.35rem 0 0.8rem;
  color: var(--error);
  font-size: 0.85rem;
}

/* ---------- Schritt 2 ---------- */

#step-upload {
  animation: rise 0.4s ease-out;
}

.greeting {
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.greeting span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.linkbtn {
  margin-left: 0.45rem;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--accent-deep);
  background: none;
  border: 0;
  text-underline-offset: 3px;
  text-decoration: underline;
  cursor: pointer;
}

.lede {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}

/* ---------- Alben ---------- */

#album-row {
  margin-bottom: 1.35rem;
}

.album-label {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.chip {
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
}

.chip.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.chip:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  /* `display: block` ist Pflicht, nicht Kosmetik: Als <a> wäre der Button inline,
     `width: 100%` würde nicht greifen und er legte sich über den Text darüber. */
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 1.1rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  background: linear-gradient(160deg, var(--accent-soft), var(--accent));
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 16px -4px rgb(154 74 85 / 45%);
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px -4px rgb(154 74 85 / 55%);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

/* ---------- Status ---------- */

.hint,
.empty,
.summary {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.hint {
  margin: 1.1rem 0 0;
  color: var(--accent-deep);
}

.empty {
  margin: 2.25rem 0;
  font-family: var(--serif);
  font-style: italic;
}

.summary {
  margin: 1.35rem 0 0;
}

/* ---------- Dateiliste ---------- */

.files {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.file {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgb(154 74 85 / 5%);
  animation: rise 0.35s ease-out;
}

.file-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.file-name {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: none;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 5px;
  margin: 0.6rem 0 0.5rem;
  background: var(--blush);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  /* Apricot = laufender Vorgang. Rosé bleibt Marke und Ort. */
  background: var(--apricot);
  border-radius: inherit;
  transition: width 0.25s ease-out;
}

/* Wartend: sichtbar, aber zurückgenommen — noch passiert nichts. */
.file[data-status="queued"] { opacity: 0.72; }

.file[data-status="done"] .bar-fill { background: var(--sage); }

.file[data-status="error"] {
  border-color: var(--error-line);
}
.file[data-status="error"] .bar-fill { background: var(--error); }

.file-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.5rem;
}

.file-status {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.file[data-status="done"] .file-status {
  color: var(--sage);
}

.file[data-status="error"] .file-status {
  color: var(--error);
}

.retry {
  flex: none;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.76rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.retry:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ---------- Sichtbarkeits-Hinweis (Schritt 2) ---------- */

.visibility {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  background: var(--blush);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.visibility-mark {
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.42rem;
  rotate: 45deg;
  background: var(--accent);
}

.visibility a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 2px;
}

.formats {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Stapel-Leiste ---------- */

.batchbar {
  position: fixed;
  left: 50%;
  /* Über der Navigationsleiste, nicht darauf. */
  bottom: calc(3.9rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(28rem, calc(100vw - 1.5rem));
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 10px 30px -12px rgb(154 74 85 / 40%);
  animation: rise 0.3s ease-out;
}

.batchbar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
}

.batchbar-row b { font-weight: 600; }
.batchbar-row span { color: var(--muted); font-variant-numeric: tabular-nums; }

.batchbar .bar { margin: 0.45rem 0 0.4rem; }
.bar-fill.batch { background: var(--apricot); }

.batch-hint { font-size: 0.76rem; color: var(--muted); }

/* ---------- Danke: eigene Uploads ---------- */

/* `.card p { margin: 0 }` gilt auch hier — der Abstand zum Button muss deshalb
   ausdrücklich gesetzt werden, sonst klebt beides aneinander. */
.thanks #thanks-sub { margin-bottom: 1.4rem; }

.own-label {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.own-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.own-grid .cell {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--blush);
}

.own-grid .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video-Kachel: Dauer unten rechts, Play-Symbol mittig. */
.cell.video { background: linear-gradient(160deg, #3d2f31, #6b5457); }
.cell .dur {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 0.6rem;
  color: #fffcfa;
  background: rgb(0 0 0 / 35%);
  border-radius: 3px;
  padding: 0 3px;
  font-variant-numeric: tabular-nums;
}
.cell .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cell .play::after {
  content: "";
  width: 0; height: 0;
  border-left: 12px solid rgb(255 255 255 / 92%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}

/* „Wird entwickelt": HEIC/Transformationen, die noch nicht fertig sind. */
.cell.developing {
  background: repeating-linear-gradient(45deg, var(--blush), var(--blush) 6px, #f9e5da 6px, #f9e5da 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.56rem;
  line-height: 1.2;
  color: var(--apricot-deep);
  animation: pulse 1.8s ease-in-out infinite;
}

.own-caption {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.thanks .own-label,
.thanks .own-caption { color: var(--muted); }

#thanks-more { margin-top: 0.65rem; }

/* ---------- Galerie ---------- */

.wrap-gallery {
  max-width: 34rem;
  /* Platz für die untere Navigation. */
  padding-bottom: calc(5rem + env(safe-area-inset-bottom));
}

.gallery-sub {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Reiter: waagerecht scrollbar, weil sechs Alben auf einem Handy nicht
   nebeneinander passen und Umbrechen den Kopf zu hoch machen würde. */
.tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -1.25rem 1rem;
  padding: 0.2rem 1.25rem;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  white-space: nowrap;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.tab.is-empty { color: var(--dim); }
.tab.is-empty.is-active { color: var(--accent-ink); }

.group-label {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blush);
  cursor: pointer;
  font: inherit;
  color: var(--apricot-deep);
  font-size: 0.6rem;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Liegt von Anfang an im DOM (sonst greift loading="lazy" nicht) und wird erst
   sichtbar, wenn die Umwandlung wirklich da ist. */
.tile-img {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.tile.is-loaded .tile-img { opacity: 1; }

.tile.developing {
  background: repeating-linear-gradient(45deg, var(--blush), var(--blush) 6px, #f9e5da 6px, #f9e5da 12px);
  animation: pulse 1.8s ease-in-out infinite;
}

.tile.stalled { animation: none; }

/* Kein Streifenmuster und kein Puls: Hier passiert nichts mehr, das Original ist
   nur nicht darstellbar. Ein Pulsieren würde Fortschritt vortäuschen. */
.tile.undisplayable {
  background: var(--blush);
  color: var(--muted);
  border: 1px dashed var(--line);
}

.tile.video { background: linear-gradient(160deg, #3d2f31, #6b5457); }

.tile .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile .play::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid rgb(255 255 255 / 92%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.tile .dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.62rem;
  color: #fffcfa;
  background: rgb(0 0 0 / 35%);
  border-radius: 3px;
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
}

/* „von dir" — Apricot, weil es den eigenen Beitrag markiert, nicht die Marke. */
.tile .mine {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.6rem;
  color: var(--ink);
  background: var(--apricot);
  border-radius: 3px;
  padding: 0 4px;
}

.gallery-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

#sentinel { height: 1px; }

/* ---------- Leerzustand ---------- */

.empty-state {
  text-align: center;
  margin-top: 3rem;
  padding: 0 0.5rem;
}

.empty-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  border: 1px dashed #f0d9cf;
  background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 5px, var(--blush) 5px, var(--blush) 10px);
}

.empty-state h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  text-wrap: balance;
}

.empty-state p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-wrap: pretty;
}

.empty-state .linkbtn { margin-top: 0.7rem; }

/* ---------- Untere Navigation ---------- */

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottomnav a,
.bottomnav span {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.bottomnav .is-current {
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 2px 0 var(--accent);
}

/* ---------- Großansicht ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: calc(0.9rem + env(safe-area-inset-top)) 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
  background: rgb(61 47 49 / 96%);
  animation: fade 0.2s ease-out;
}

.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lb-round {
  width: 44px; /* Fingergröße — kleiner trifft man im Dunkeln nicht. */
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 252 250 / 12%);
  color: rgb(255 252 250 / 92%);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.lb-round:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lb-count {
  color: rgb(255 252 250 / 80%);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0.6rem 0;
}

.lb-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-media img,
.lb-media video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  display: block;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 30%);
  color: rgb(255 252 250 / 92%);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
}

#lb-prev { left: 0; }
#lb-next { right: 0; }

.lb-undisplayable {
  max-width: 18rem;
  margin: 0;
  text-align: center;
  color: rgb(255 252 250 / 80%);
  font-size: 0.92rem;
  text-wrap: pretty;
}

.lb-caption {
  margin: 0 0 0.2rem;
  text-align: center;
  color: rgb(255 252 250 / 92%);
  font-size: 0.88rem;
}

.lb-hint {
  margin: 0 0 0.7rem;
  text-align: center;
  color: rgb(255 252 250 / 65%);
  font-size: 0.74rem;
}

.lb-strip {
  display: flex;
  gap: 4px;
  justify-content: center;
  opacity: 0.8;
}

.strip-cell {
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #6b5457;
  cursor: pointer;
}

.strip-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip-cell.is-current {
  outline: 2px solid #fffcfa;
  outline-offset: 1px;
}

/* ---------- Bewegung & a11y ---------- */

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.14); }
  40% { transform: scale(1); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
