/* Startseiten-Design (nur von index.php geladen, baut auf dark.css auf). */

html { scroll-behavior: smooth; }

.home {
  --pink: #f472b6;
  --cyan: #22d3ee;
  --glass: rgba(255, 255, 255, .045);
  --glass-border: rgba(255, 255, 255, .09);
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.home section[id] { scroll-margin-top: 24px; }
.home p { margin: 0; }
.home h1, .home h2, .home h3 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
}
.home a:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
.centered { text-align: center; }

/* ---------- Buttons ---------- */
.home a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.home a.btn:hover { transform: translateY(-3px); }
.home a.btn-glow {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 12px 34px rgba(139, 92, 246, .5);
}
.home a.btn-glow:hover { color: #fff; box-shadow: 0 16px 44px rgba(236, 72, 153, .55); }
.home a.btn-glow::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
.home a.btn-ghost {
  color: #e9e4ff;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}
.home a.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.arrow { display: inline-block; transition: transform .2s ease; }
.home a:hover .arrow { transform: translateX(5px); }

@keyframes shine {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(139, 92, 246, .3);
  padding: clamp(44px, 8vw, 104px) clamp(22px, 5vw, 72px) clamp(26px, 4vw, 44px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(236, 72, 153, .18), transparent 70%),
    #0a0a14;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 90px rgba(110, 70, 220, .16);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(139, 92, 246, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, .11) 1px, transparent 1px);
  background-size: 30px 30px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
/* dunkler Verlauf hinter dem Text, damit er lesbar bleibt */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 20, .88) 0%, rgba(10, 10, 20, .55) 45%, transparent 80%);
}
.hero-inner { max-width: 700px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(139, 92, 246, .16);
  border: 1px solid rgba(167, 139, 250, .45);
  color: #ddd6fe;
  font-size: .88rem;
  font-weight: 600;
}
.pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); }
  70% { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(90deg, #c4b5fd, #f0abfc 50%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  max-width: 580px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #b4b4cc;
}
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
}
.stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 22px;
  backdrop-filter: blur(12px);
}
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Live-Aktivität ---------- */
.activity { margin-top: -40px; }
.activity-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ticker {
  overflow: hidden;
  padding: 14px 0;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 50s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-static {
  border-radius: 24px;
  -webkit-mask-image: none;
  mask-image: none;
}
.ticker-static .ticker-track {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  padding: 0 14px;
  animation: none;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 34px;
  white-space: nowrap;
  font-size: .95rem;
  color: #b9b9d0;
}
.tick strong { color: #fff; }
.tick b { color: #c4b5fd; }
.tick time { color: var(--muted); font-size: .82rem; }
.tick-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 10px rgba(167, 139, 250, .8);
}

/* ---------- Abschnittsköpfe ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #a78bfa;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.1; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.gallery-single { grid-template-columns: minmax(0, 880px); justify-content: center; }
.gallery > div { height: 100%; }

.home a.mcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, #13131f, #0b0b15);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.home a.mcard:hover,
.home a.mcard:focus-visible {
  color: var(--text);
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, .7);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, .25), 0 34px 64px rgba(0, 0, 0, .7), 0 0 64px rgba(139, 92, 246, .32);
}
.mcard-media { position: relative; overflow: hidden; background: #05050a; }
.mcard-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.mcard:hover .mcard-media img { transform: scale(1.06); }
.mcard-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(7, 7, 13, .85), transparent);
  pointer-events: none;
}
.chip {
  position: absolute;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(7, 7, 13, .66);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}
.chip b { color: #c4b5fd; }
.chip-top { top: 16px; left: 16px; }
.chip-bottom { bottom: 16px; left: 16px; }
.chip-hot { background: linear-gradient(135deg, #ec4899, #f97316); border-color: transparent; }
.chip-new { background: linear-gradient(135deg, #06b6d4, #8b5cf6); border-color: transparent; }
.chip-done { background: linear-gradient(135deg, #10b981, #06b6d4); border-color: transparent; }

.mcard-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.mcard-top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.ring {
  --p: 0;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: conic-gradient(#8b5cf6, #ec4899 calc(var(--p) * 1%), rgba(255, 255, 255, .09) calc(var(--p) * 1%));
}
.ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #0d0d18;
}
.ring span { position: relative; font-size: .8rem; font-weight: 800; color: #fff; }
.mcard-info h3 { font-size: 1.3rem; line-height: 1.2; }
.mcard-info p { margin-top: 4px; color: var(--muted); font-size: .95rem; }
.mcard-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(139, 92, 246, .35);
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.step {
  position: relative;
  padding: 30px 28px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .28), transparent 70%);
}
.step-num {
  display: block;
  margin-bottom: 14px;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h3 { font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--muted); line-height: 1.6; }

/* ---------- Vorteile ---------- */
.perks {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.perk {
  padding: 26px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #12121f, #0c0c17);
  border: 1px solid var(--glass-border);
  transition: border-color .25s ease, transform .25s ease;
}
.perk:hover { border-color: rgba(167, 139, 250, .5); }
.perk-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 1.6rem;
  background: rgba(139, 92, 246, .16);
  border: 1px solid rgba(139, 92, 246, .38);
}
.perk h3 { font-size: 1.15rem; }
.perk p { margin-top: 8px; color: var(--muted); line-height: 1.55; font-size: .97rem; }

/* ---------- Abschluss-CTA ---------- */
.cta-band {
  padding: clamp(44px, 8vw, 92px) 24px;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(244, 114, 182, .32);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(236, 72, 153, .3), transparent 70%),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(139, 92, 246, .32), transparent 70%),
    #0c0c18;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.cta-band p { max-width: 520px; margin: 16px auto 30px; color: #b4b4cc; font-size: 1.12rem; }

/* ---------- Scroll-Reveal (nur wenn JS aktiv) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .home { gap: 64px; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px 12px; border-radius: 16px; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: .74rem; }
  .activity { margin-top: -28px; }
  .hero::after { background: rgba(10, 10, 20, .6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .pulse, .home a.btn-glow::after { animation: none; }
  .home a.mcard, .mcard-media img, .arrow { transition: none; }
}
