/* ═══════════════════════════════════════
   Variables
═══════════════════════════════════════ */
:root {
  --red:          #e50914;
  --red-dark:     #8b0000;
  --bg:           #141414;
  --bg-card:      #1f1f1f;
  --bg-modal:     #181818;
  --text:         #ffffff;
  --text-muted:   #b3b3b3;
  --text-dim:     #8c8c8c;
  --topbar-h:     54px;
  --bottomnav-h:  62px;
  --radius:       4px;
  --ease:         0.22s ease;
}

/* ═══════════════════════════════════════
   Reset
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

button, a {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════
   Shared Keyframes
═══════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════
   LOCK-SCREEN
═══════════════════════════════════════ */
#lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.12) 0%, transparent 65%),
    var(--bg);
}

.lock-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  width: min(320px, 92vw);
}

.lock-logo {
  font-size: 2.5rem;
  color: var(--red);
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.18); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.1); }
}

.lock-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--red);
}

.lock-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* PIN-Punkte */
.lock-dots {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}

.lock-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  transition: background 0.15s, border-color 0.15s;
}

.lock-dots span.filled {
  background: var(--text);
  border-color: var(--text);
}

.lock-dots.error span {
  background: var(--red);
  border-color: var(--red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* Zahlen-Pad */
.lock-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 260px;
}

.pad-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.pad-btn:hover   { background: rgba(255,255,255,0.16); }
.pad-btn:active  { transform: scale(0.92); background: rgba(255,255,255,0.22); }
.pad-del         { font-size: 1.1rem; color: var(--text-muted); }

.lock-hint {
  font-size: 0.8rem;
  color: var(--red);
  min-height: 1.2em;
}

/* ═══════════════════════════════════════
   PROFIL-SCREEN
═══════════════════════════════════════ */
#profile-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1rem;
  gap: 3rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.08) 0%, transparent 70%),
    var(--bg);
}

#profile-screen h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
  animation: fadeSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

.profile-btn:nth-child(1) {
  animation: scaleIn 0.55s 0.18s cubic-bezier(0.22,1,0.36,1) both;
}

.profile-btn:nth-child(2) {
  animation: scaleIn 0.55s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

.profiles {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease), outline var(--ease), box-shadow var(--ease);
  outline: 3px solid transparent;
}

/* Jessica — warmes Terrakotta */
.avatar-jessica {
  background: linear-gradient(145deg, #c8572a 0%, #e07840 100%);
}

/* Leon — kühles Schieferblau */
.avatar-leon {
  background: linear-gradient(145deg, #2d4f8a 0%, #4a72b8 100%);
}

.profile-avatar i {
  font-size: 3.6rem;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  transition: transform var(--ease);
}

.profile-btn:hover .profile-avatar i {
  transform: scale(1.1);
}

.profile-btn:hover .profile-avatar,
.profile-btn:focus-visible .profile-avatar {
  outline-color: var(--text);
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
}

.profile-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--ease);
}

.profile-btn:hover .profile-name,
.profile-btn:focus-visible .profile-name {
  color: var(--text);
}

/* ═══════════════════════════════════════
   MAIN SCREEN — padding for bottom nav
═══════════════════════════════════════ */
#main-screen {
  padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
}

#main-screen.entering {
  animation: fadeIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}

/* ═══════════════════════════════════════
   TOPBAR
═══════════════════════════════════════ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  transition: background 0.35s;
}

#topbar.scrolled {
  background: rgba(20,20,20,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.7rem;
  color: var(--red);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  transition: color var(--ease);
}

.nav-links a:hover { color: var(--text-muted); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  position: relative;
  background: var(--bg);
}

.hero-image {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 460px;
  max-height: 720px;
  background-color: #1a1030;
  /* Bild wird per JS gesetzt: assets/memories/hero.jpg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── Foto-Mosaik ── */
.hero-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  z-index: 0;
}

.hero-mosaic-photo {
  overflow: hidden;
  position: relative;
}

.hero-mosaic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72) saturate(1.1);
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero-mosaic-photo:nth-child(2) img { animation-delay: -2s; }
.hero-mosaic-photo:nth-child(3) img { animation-delay: -4s; }
.hero-mosaic-photo:nth-child(4) img { animation-delay: -6s; }
.hero-mosaic-photo:nth-child(5) img { animation-delay: -8s; }
.hero-mosaic-photo:nth-child(6) img { animation-delay: -10s; }

@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.1); }
}

/* Links dunkel → rechts transparent (Titel-Lesbarkeit Desktop) */
.hero-mosaic-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(20,20,20,1)    0%,
    rgba(20,20,20,0.92) 22%,
    rgba(20,20,20,0.55) 50%,
    rgba(20,20,20,0.15) 80%,
    rgba(20,20,20,0.05) 100%
  );
  pointer-events: none;
}

/* Mobile: Gradient von unten (Titel sitzt unten) */
@media (max-width: 600px) {
  .hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .hero-mosaic-fade {
    background: linear-gradient(
      to top,
      rgba(20,20,20,1)    0%,
      rgba(20,20,20,0.85) 35%,
      rgba(20,20,20,0.3)  65%,
      rgba(20,20,20,0.08) 100%
    );
  }
}

/* Top-Gradient für Topbar-Lesbarkeit */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}

/* Bottom-Gradient für Title-Lesbarkeit */
.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 75%;
  background: linear-gradient(
    to top,
    rgba(20,20,20,1) 0%,
    rgba(20,20,20,0.85) 18%,
    rgba(20,20,20,0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Vertikales Badge oben links */
.hero-badge {
  position: absolute;
  top: calc(var(--topbar-h) + 0.75rem);
  left: 1.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  pointer-events: none;
}

.badge-icon {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-label {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  padding-left: 0.4em;
}

/* Titel-Overlay unten */
.hero-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 1rem;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  margin-bottom: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.title-line {
  font-size: clamp(3.5rem, 17vw, 6rem);
  color: var(--text);
  text-shadow: 0 4px 18px rgba(0,0,0,0.55);
  text-transform: uppercase;
  display: inline-block;
}

.title-line.accent {
  background: var(--red);
  padding: 0 0.18em 0.05em;
  color: var(--text);
  text-shadow: none;
}

.title-line.title-sub {
  font-size: clamp(0.85rem, 3.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  margin-top: 0.6em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  padding-left: 0.35em;
}

.hero-genres {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45em;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.01em;
}

.hero-genres .dot { color: var(--red); font-weight: 700; }

/* Action-Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.25rem 1rem 1.5rem;
  background: var(--bg);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  transition: opacity var(--ease);
}

.action-btn:hover { opacity: 0.7; }

.action-btn i {
  font-size: 1.45rem;
  color: var(--text);
}

.action-btn.primary {
  flex-direction: row;
  gap: 0.5rem;
  background: var(--text);
  color: #000;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--ease);
  opacity: 1;
}

.action-btn.primary i {
  color: #000;
  font-size: 1rem;
}

.action-btn.primary:hover {
  background: rgba(255,255,255,0.78);
  opacity: 1;
}

/* ═══════════════════════════════════════
   ROW (generisch)
═══════════════════════════════════════ */
.row {
  padding: 0.5rem 0 0.25rem;
  margin-top: 0.5rem;
}

.row-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 1.25rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════
   PREVIEWS-REIHE (runde Stories-Style)
═══════════════════════════════════════ */
.row-previews { padding-top: 0.5rem; }

.previews-scroll {
  display: flex;
  gap: 0.9rem;
  padding: 0.5rem 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.previews-scroll::-webkit-scrollbar { display: none; }

.preview-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.preview-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2a2a;
  border: 2px solid #3a3a3a;
  transition: border-color var(--ease), transform var(--ease);
  position: relative;
}

.preview-item:hover .preview-circle,
.preview-item:focus-visible .preview-circle {
  border-color: var(--red);
  transform: scale(1.06);
}

.preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.preview-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   POSTER-KARTEN (portrait 2:3)
═══════════════════════════════════════ */
.cards-scroll {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 112px;
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2a2a2a;
  position: relative;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.28s ease,
              opacity 0.4s ease;
}

/* Karten-Stagger: initial unsichtbar, via JS eingeblendet */
.card.card-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.95);
}

.card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card:hover,
.card:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  outline: none;
  z-index: 2;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  font-size: 2.5rem;
}

/* Herz-Badge oben rechts */
.card-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 900;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Video-Indikator auf Karte */
.card-video-icon {
  position: absolute;
  bottom: 0.35rem;
  left: 0.35rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Mystery-Karte */
.card-mystery {
  background: linear-gradient(135deg, #2a0008 0%, #050505 100%);
}

.card-mystery .mystery-q {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: rgba(229,9,20,0.55);
  text-shadow: 0 0 40px rgba(229,9,20,0.7);
  animation: pulse-q 2.6s ease-in-out infinite;
}

@keyframes pulse-q {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%      { transform: scale(1.1);  opacity: 0.85; }
}

.card-coming-soon {
  position: absolute;
  bottom: 0.45rem;
  left: 0.45rem;
  right: 0.45rem;
  background: var(--red);
  color: var(--text);
  padding: 0.3rem 0.4rem;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════
   BOTTOM-NAV
═══════════════════════════════════════ */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.96);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.25rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  padding: 0.35rem 0.2rem;
  color: var(--text-dim);
  font-size: 0.6rem;
  font-weight: 500;
  transition: color var(--ease);
  min-width: 0;
}

.tab-btn i { font-size: 1.15rem; }

.tab-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tab-btn.active,
.tab-btn:hover,
.tab-btn:focus-visible {
  color: var(--text);
  outline: none;
}

/* Roter Strich über aktivem Tab */
.tab-btn {
  position: relative;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.tab-btn.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* ═══════════════════════════════════════
   MODALE
═══════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-box {
  position: relative;
  background: var(--bg-modal);
  width: 100%;
  max-width: 580px;
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: 14px 14px 0 0;
  animation: slideUp 0.28s cubic-bezier(0.22,1,0.36,1);
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

@keyframes slideUp {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  width: 34px;
  height: 34px;
  margin: 0.75rem 0.75rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40,40,40,0.92);
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--text);
  z-index: 10;
  transition: background var(--ease);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--red); }

/* Video-Player im Detail-Modal */
.modal-video-wrap {
  width: 100%;
  background: #000;
  position: relative;
}

.modal-video-wrap video {
  width: 100%;
  max-height: 320px;
  display: block;
  outline: none;
}

/* Bild-Header im Detail-Modal */
.modal-img-wrap {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-modal) 100%);
  pointer-events: none;
}

.modal-content {
  padding: 1.25rem 1.5rem 2.5rem;
  clear: both;
}

.modal-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.modal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.chip-date {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  margin-top: -0.2rem;
}

.detail-location i {
  color: var(--red);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   STORY SLIDESHOW (ersetzt Timeline)
═══════════════════════════════════════ */
.story-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  overflow: hidden;
  /* Ein/Ausblend-Animation */
  animation: storyFadeIn 0.35s ease;
}

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

/* Fortschrittsbalken (Instagram-Stories-Style) */
.story-progress {
  position: absolute;
  top: max(env(safe-area-inset-top), 0.75rem);
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.3rem;
  z-index: 10;
  pointer-events: none;
}

.story-seg {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.28);
  overflow: hidden;
  position: relative;
}

.story-seg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0s;
}

.story-seg.done::after  { transform: scaleX(1); }
.story-seg.active::after {
  transform: scaleX(1);
  transition: transform 0.35s ease;
}

/* Schließen-Button */
.story-close {
  position: absolute;
  top: calc(max(env(safe-area-inset-top), 0.75rem) + 0.6rem);
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--ease);
}

.story-close:hover { background: var(--red); }

/* Stage — Container für alle Karten */
.story-stage {
  position: absolute;
  inset: 0;
}

/* Einzelne Story-Karte */
.story-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 1.75rem 4.5rem;

  /* Standard: unsichtbar rechts */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.story-card.is-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.story-card.is-prev {
  transform: translateX(-38%) scale(0.88);
  opacity: 0;
  pointer-events: none;
}

/* Karten-Hintergrund */
.story-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0d0d0d;
  background-size: cover;
  background-position: center;
}

/* Gradient-Overlays */
.story-card-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    transparent 35%,
    rgba(0,0,0,0.65) 65%,
    rgba(0,0,0,0.92) 100%
  );
}

/* Dezenter roter Glow (nur bei Karten ohne Bild) */
.story-card-bg.no-img {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(229,9,20,0.12) 0%, transparent 65%),
    #0d0d0d;
}

/* Hero-Inhalt Einblend-Animation */
.hero-overlay {
  animation: fadeSlideUp 0.7s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.hero-actions {
  animation: fadeSlideUp 0.6s 0.25s cubic-bezier(0.22,1,0.36,1) both;
}

/* Karten-Inhalt */
.story-card-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.story-card-chapter {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.story-card-chapter::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.story-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.story-card-title {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* Letzter Karte: Titel in Rot */
.story-card.is-final .story-card-title {
  color: var(--red);
}

.story-card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
  margin-top: -0.25rem;
}

.story-card-location i { color: var(--red); font-size: 0.7rem; }

.story-card-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  font-weight: 400;
}

/* Video in Story-Karte */
.story-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000;
}

/* Mute-Toggle Button */
.story-mute-btn {
  position: absolute;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 30;
  touch-action: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.story-mute-btn:hover { background: rgba(0,0,0,0.8); }

/* Checkliste in Story-Karte */
.story-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 360px;
}

.story-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.story-check-item:hover { background: rgba(255,255,255,0.12); }

.story-check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.story-check-item input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}

.story-check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.story-check-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  flex: 1;
  transition: opacity 0.2s;
}

.story-check-item.done .story-check-label {
  text-decoration: line-through;
  text-decoration-color: rgba(229,9,20,0.6);
  opacity: 0.6;
}

.story-check-success {
  text-align: center;
  padding: 1rem 0 0;
  display: none;
}

.story-check-success.show {
  display: block;
  animation: fadeSlideUp 0.5s ease both;
}

.story-check-success p {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
  animation: pulse-success 1.3s ease-in-out infinite alternate;
}

/* Zähler (1 / 6) */
.story-card-count {
  position: absolute;
  top: calc(max(env(safe-area-inset-top), 0.75rem) + 0.6rem);
  left: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.05em;
}

/* Desktop-Pfeile */
.story-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: var(--text);
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--ease), transform var(--ease);
}

.story-nav:hover {
  background: rgba(229,9,20,0.8);
  transform: translateY(-50%) scale(1.1);
}

.story-prev { left: 1.25rem; }
.story-next { right: 1.25rem; }

.story-nav.hidden { opacity: 0; pointer-events: none; }

/* Mobile Tap-Zonen */
.story-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 40%;
}

.story-tap-left  { left: 0; }
.story-tap-right { right: 0; width: 60%; }

@media (min-width: 600px) {
  .story-nav { display: flex; }
  .story-tap  { display: none; }

  .story-card {
    padding: 5rem 4rem 5rem;
    align-items: center;
    text-align: center;
  }

  .story-card-chapter {
    justify-content: center;
  }
}

/* Checklist */
.checklist {
  list-style: none;
  margin-top: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: color var(--ease);
  font-size: 0.93rem;
  color: var(--text-muted);
}

.checklist li:last-child { border-bottom: none; }

.checklist li label {
  cursor: pointer;
  flex: 1;
  transition: color var(--ease);
}

.checklist li input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #444;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  position: relative;
}

.checklist li input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}

.checklist li input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checklist li.is-checked label {
  color: var(--text);
  text-decoration: line-through;
  text-decoration-color: rgba(229,9,20,0.5);
}

.checklist-success {
  text-align: center;
  padding: 2rem 0 0.5rem;
}

.success-text {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--red);
  animation: pulse-success 1.3s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes pulse-success {
  from { opacity: 0.8; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.04); }
}

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 1.25rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #2c2c2c;
  color: var(--text);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  z-index: 500;
  opacity: 0;
  transition: opacity 0.28s, transform 0.28s;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   DESKTOP
═══════════════════════════════════════ */
@media (min-width: 600px) {
  .modal {
    align-items: center;
  }
  .modal-box {
    border-radius: 12px;
    max-height: 82dvh;
  }
}

@media (min-width: 768px) {
  :root { --topbar-h: 68px; }

  .hero-image {
    height: 75vh;
    min-height: 540px;
  }

  .card { flex: 0 0 152px; }

  .preview-circle {
    width: 96px;
    height: 96px;
  }

  .profile-avatar {
    width: 148px;
    height: 148px;
  }

  .profile-avatar i {
    font-size: 4.4rem;
  }

  .cards-scroll,
  .previews-scroll {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .row-title { padding-left: 2rem; padding-right: 2rem; font-size: 1.1rem; }

  .hero-actions {
    gap: 2.5rem;
    padding: 1.5rem 2rem 2rem;
  }

  .modal-img-wrap { height: 320px; }
}
