/* Startseite des Online-Spiegels (party.vodus.me). Baut auf app.css auf. */

.landing-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

/* ---------- bewegter Hintergrund ---------- */

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop .blob {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .2; mix-blend-mode: screen;
}
.backdrop .b1 { background: var(--accent); top: -30vmax; left: -20vmax; animation: drift1 26s ease-in-out infinite alternate; }
.backdrop .b2 { background: var(--accent-2); bottom: -35vmax; right: -25vmax; animation: drift2 32s ease-in-out infinite alternate; }
.backdrop .b3 { background: #7a3cff; top: 30vh; left: 40vw; width: 45vmax; height: 45vmax; opacity: .16; animation: drift3 22s ease-in-out infinite alternate; }
.backdrop .grain {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}
@keyframes drift1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -10vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-22vw, 8vh) scale(.85); } }

.landing { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 40px 16px 56px; }

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

.hero { text-align: center; margin-bottom: 36px; }
.vinyl {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle, var(--accent) 0 14%, #111 15% 17%, transparent 18%),
    repeating-radial-gradient(circle, #151520 0 2px, #1d1d2b 2px 4px);
  box-shadow: 0 0 0 2px #2a2a40, 0 14px 40px rgba(255, 61, 154, .35);
  animation: spin 6s linear infinite;
}
.vinyl::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.12) 25%, transparent 30% 70%, rgba(255,255,255,.08) 75%, transparent 80%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 {
  margin: 0; font-size: clamp(32px, 8vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(92deg, #fff 0%, #ffd1e8 35%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }

/* ---------- Abschnitte ---------- */

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.section-head h2 { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.live-count {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 61, 154, .14); color: #ff8cc4;
}
.live-count[hidden] { display: none; }
.live-count .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,61,154,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(255,61,154,0); } 100% { box-shadow: 0 0 0 0 rgba(255,61,154,0); } }

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

.party-list { display: flex; flex-direction: column; gap: 14px; }
.party-card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: 20px; padding: 16px; color: inherit; text-decoration: none;
  background: rgba(22, 22, 36, .72); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.party-card:hover, .party-card:focus-visible {
  transform: translateY(-2px); border-color: rgba(255, 61, 154, .55);
  box-shadow: 0 16px 40px rgba(255, 61, 154, .18);
}
.party-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.party-card .bg {
  position: absolute; inset: -30px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(36px) saturate(1.4); opacity: .45; transform: scale(1.1);
}
.party-card .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,20,.55), rgba(11,11,20,.85)); }

.party-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.party-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.badge-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #fff;
  background: var(--accent); padding: 4px 10px 4px 8px; border-radius: 999px;
}

.party-now { display: flex; gap: 14px; align-items: center; }
.party-cover { position: relative; width: 76px; height: 76px; flex: none; }
.party-cover img, .party-cover .ph {
  width: 100%; height: 100%; border-radius: 14px; object-fit: cover; display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
.party-cover .ph {
  display: grid; place-items: center; font-size: 30px; color: rgba(255,255,255,.7);
  background: linear-gradient(135deg, #3a1550, #12334a);
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -.8s; }
.eq i:nth-child(4) { height: 75%; animation-delay: -.35s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }
.paused .eq i { animation-play-state: paused; }

.party-meta { flex: 1; min-width: 0; }
.now-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.track-title { font-size: 17px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { color: #c9c9e0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); margin-top: 10px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; transition: width 1s linear; }

.party-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: var(--muted);
}
.party-foot .next { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-foot .go { flex: none; color: #fff; font-weight: 700; }
.party-foot .go span { display: inline-block; transition: transform .2s; }
.party-card:hover .go span { transform: translateX(3px); }
.chip-wishes { flex: none; display: inline-flex; align-items: center; gap: 5px; color: #ff8cc4; font-weight: 700; }

/* Platzhalter beim Laden */
.skeleton { height: 178px; border-radius: 20px; background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Leer */
.empty-state {
  text-align: center; padding: 34px 20px; border-radius: 20px;
  background: rgba(22,22,36,.6); border: 1px dashed rgba(255,255,255,.14);
}
.empty-state .vinyl { width: 64px; height: 64px; margin-bottom: 14px; animation-duration: 14s; opacity: .7; box-shadow: 0 0 0 2px #2a2a40; }
.empty-state strong { display: block; font-size: 17px; margin-bottom: 4px; }
.empty-state span { color: var(--muted); font-size: 14px; }

/* ---------- So geht's ---------- */

.how { margin-top: 44px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { text-align: center; padding: 16px 8px; border-radius: 16px; background: rgba(22,22,36,.55); border: 1px solid rgba(255,255,255,.06); }
.step .ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(255,61,154,.25), rgba(77,217,255,.2)); }
.step b { display: block; font-size: 14px; }
.step span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }

/* ---------- Code-Eingabe ---------- */

.join-card {
  margin-top: 26px; padding: 20px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(255,61,154,.16), rgba(77,217,255,.08)); border: 1px solid rgba(255,255,255,.1);
}
.join-card h3 { margin: 0; font-size: 18px; }
.join-card p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.code-boxes { display: flex; justify-content: center; gap: 8px; }
.code-boxes input {
  width: 44px; height: 54px; padding: 0; text-align: center; font-size: 24px; font-weight: 800;
  text-transform: uppercase; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(11,11,20,.7); caret-color: var(--accent);
}
.code-boxes input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,61,154,.25); }
.join-card button { margin-top: 16px; width: 100%; max-width: 320px; padding: 14px; font-size: 16px; border-radius: 14px; }
.join-card button:disabled { opacity: .45; }

.foot { margin-top: 40px; text-align: center; font-size: 12px; color: #6f6f8c; }

@media (max-width: 440px) {
  .party-foot .next { display: none; }
  .party-foot { justify-content: space-between; }
}

@media (max-width: 380px) {
  .code-boxes { gap: 5px; }
  .code-boxes input { width: 38px; height: 48px; font-size: 20px; }
  .steps { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop .blob, .vinyl, .eq i, .live-count .dot, .skeleton { animation: none !important; }
  .party-card { transition: none; }
}
