/* ===================== Chaos Launcher – Animationen & Social ===================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-in { opacity: 0; transform: translateY(22px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
  .reveal { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 0.08s); }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9; }
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0; left: 0; top: 0; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), transparent 60%); transition: opacity 0.4s; opacity: 0; mix-blend-mode: screen; }
body:hover .cursor-glow { opacity: 1; }

.nav { transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; }
.nav.scrolled { padding-top: 8px; padding-bottom: 8px; background: rgba(11, 11, 14, 0.92); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.nav-social { display: flex; gap: 6px; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--dim); border: 1px solid var(--border); background: var(--bg2); transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.soc:hover { transform: translateY(-2px) scale(1.06); }
.soc-dc:hover { color: #fff; background: #5865f2; border-color: #5865f2; box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45); }
.soc-yt:hover { color: #fff; background: #ff0033; border-color: #ff0033; box-shadow: 0 8px 24px rgba(255, 0, 51, 0.45); }
.footer-social { display: inline-flex; gap: 6px; margin-left: 8px; }
.footer-social .soc { width: 30px; height: 30px; border-radius: 8px; }

/* Button-Glanz & Puls */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -40%; } 100% { left: 140%; } }
.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.35); } 50% { box-shadow: 0 10px 46px rgba(var(--accent-rgb), 0.65), 0 0 0 6px rgba(var(--accent-rgb), 0.12); } }

/* Glitch-Titel */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; opacity: 0; pointer-events: none; text-shadow: none; }
.glitch::before { color: #ff8a93; animation: glitchA 6s infinite; }
.glitch::after { color: #7a0f17; animation: glitchB 6s infinite; }
@keyframes glitchA { 0%, 92%, 100% { opacity: 0; transform: none; } 93% { opacity: 1; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); } 95% { opacity: 1; transform: translate(3px, -1px); clip-path: inset(60% 0 10% 0); } 97% { opacity: 0; } }
@keyframes glitchB { 0%, 92%, 100% { opacity: 0; transform: none; } 94% { opacity: 1; transform: translate(3px, 0); clip-path: inset(40% 0 30% 0); } 96% { opacity: 1; transform: translate(-2px, 1px); clip-path: inset(0 0 80% 0); } 98% { opacity: 0; } }
.key { display: inline-block; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.12); box-shadow: inset 0 -3px 0 rgba(var(--accent-rgb), 0.5); font-family: Consolas, monospace; font-size: 0.75em; vertical-align: middle; }

/* Hero-Screenshot: Tilt + schwebende Badges */
.tilt { transform-style: preserve-3d; transition: transform 0.15s ease-out; will-change: transform; }
.hero-shot img { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-badge { position: absolute; padding: 8px 12px; border-radius: 999px; background: rgba(11, 11, 14, 0.85); border: 1px solid rgba(var(--accent-rgb), 0.45); font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-rgb), 0.25); backdrop-filter: blur(6px); animation: bob 4s ease-in-out infinite; }
.fb1 { left: -18px; top: 16%; animation-delay: 0s; }
.fb2 { right: -14px; top: 42%; animation-delay: 1.2s; }
.fb3 { left: 12%; bottom: -14px; animation-delay: 2.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.bob { display: inline-block; animation: bob 3.6s ease-in-out infinite; }

/* Karten-Glow folgt der Maus */
.card, .cos, .news-item, .social-card { position: relative; overflow: hidden; }
.card::before, .cos::before, .news-item::before, .social-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.16), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover::before, .cos:hover::before, .news-item:hover::before, .social-card:hover::before { opacity: 1; }
.cos, .news-item { transition: transform 0.2s ease, border-color 0.2s ease; }
.cos:hover, .news-item:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.5); }

/* Social-Sektion */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.social-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 16px; align-items: center; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg2); text-decoration: none; color: var(--text); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.social-card:hover { transform: translateY(-4px); }
.social-card .social-ic { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: var(--bg3); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.social-card:hover .social-ic { transform: rotate(-6deg) scale(1.08); }
.social-card b { font-size: 17px; display: block; }
.social-card small { color: var(--dim); font-size: 13px; }
.social-card .social-cta { grid-column: 2; font-size: 13px; font-weight: 700; color: var(--accent-light); margin-top: 6px; }
.social-card.dc:hover { border-color: #5865f2; box-shadow: 0 16px 40px rgba(88, 101, 242, 0.3); }
.social-card.dc .social-ic { color: #8b94ff; }
.social-card.dc:hover .social-ic { background: #5865f2; color: #fff; }
.social-card.yt:hover { border-color: #ff0033; box-shadow: 0 16px 40px rgba(255, 0, 51, 0.3); }
.social-card.yt .social-ic { color: #ff4d6d; }
.social-card.yt:hover .social-ic { background: #ff0033; color: #fff; }
.social-card.mc:hover { border-color: rgba(var(--accent-rgb), 0.6); box-shadow: 0 16px 40px rgba(var(--accent-rgb), 0.3); }

/* Timeline-Punkt pulsiert */
.rel:first-child::before { animation: dotpulse 2s ease-in-out infinite; }
@keyframes dotpulse { 0%, 100% { box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); } 50% { box-shadow: 0 0 22px rgba(var(--accent-rgb), 1), 0 0 0 6px rgba(var(--accent-rgb), 0.15); } }

/* Nach oben */
.totop { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; background: var(--bg2); border: 1px solid var(--border); color: var(--text); opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; z-index: 20; }
.totop.show { opacity: 1; transform: none; }
.totop:hover { border-color: var(--accent); color: var(--accent-light); }
@media (max-width: 900px) { .nav-social { margin-left: auto; } .float-badge { display: none; } }
