/* GSAP/Three.js Design-Layer – nur Ergänzungen, überschreibt keine bestehenden Inhalte. */
#bg-3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* Hero: Parallax über CSS-Variable (individuelle translate-Eigenschaft kollidiert nicht mit transform) */
.hero-logo-wrap, .hero-intro, .hero-desc { translate: 0 var(--py, 0px); }

/* Scroll-Hinweis */
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 2rem;
  color: var(--grey); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--purple-2), transparent);
  transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Kapitel-Label (Zähler automatisch) */
body:has(main.hero) { counter-reset: chap; }
.has-chapter { counter-increment: chap; translate: 0 var(--sy, 0px); }
.has-chapter::before {
  content: "KAPITEL 0" counter(chap) " · " attr(data-chapter);
  display: block; width: fit-content; margin: 0 auto 1rem; padding: .3rem .9rem;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(18, 10, 31, .6);
  color: var(--purple-2); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}

/* Karten: Eintritt + Tilt + Spotlight (Variablen per GSAP) */
.fx-item { opacity: var(--fo, 1); translate: 0 var(--fy, 0px); }
.fx-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important;
}

/* Magnetische Buttons */
.fx-magnet { translate: var(--mx, 0px) var(--my, 0px); }

@media (max-width: 700px) {
  .hero-intro { letter-spacing: .06em; }
  .scroll-cue { margin-top: 1.2rem; }
  .has-chapter::before { font-size: .7rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i { animation: none; }
}

/* ===== Neue Generation: offene Glas-Flächen statt harter Kästen (nur Optik) ===== */
:root {
  --hair: rgba(255, 255, 255, .08);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
  --aurora: radial-gradient(640px circle at 0% 0%, rgba(168, 85, 247, .16), transparent 60%);
}

/* Große Flächen: weiches Glas mit Aurora-Schimmer, kaum Rand */
.community-panel, .social-panel, .contact-panel, .events-panel, .newsletter-panel,
.testimonial-panel, .legal-card, .form-card, .solocup-info-card, .stats-section .stats-trust {
  background: var(--aurora), var(--glass);
  border: 1px solid var(--hair); border-radius: 28px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}

/* Karten in Flächen: flach, ohne Rahmen, Hover färbt sie nur ein */
.social-card, .team-card, .giveaway-card, .contact-card, .rating-card, .community-discord-card,
.testimonial-card, .agency-card, .stats-platform-tile {
  background: rgba(255, 255, 255, .035); border: 1px solid transparent; border-radius: 22px;
  box-shadow: none; transition: background .3s ease, border-color .3s ease;
}
.social-card:hover, .team-card:hover, .giveaway-card:hover, .contact-card:hover, .agency-card:hover {
  background: rgba(168, 85, 247, .09); border-color: var(--hair); box-shadow: none;
}
.community-feature { background: transparent; border: 0; border-radius: 18px; box-shadow: none; transition: background .3s ease; }
.community-feature:hover { background: rgba(255, 255, 255, .045); }

/* FAQ: Liste mit Haarlinien statt Kästen */
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; box-shadow: none; }
.faq-item:hover, .faq-item[open] { background: rgba(255, 255, 255, .025); }

/* Eingabefelder: klarer Fokus */
input:not([type=checkbox]):not([type=radio]):focus, textarea:focus, select:focus {
  outline: none; border-color: var(--purple-2) !important; box-shadow: 0 0 0 3px rgba(168, 85, 247, .22);
}
input:not([type=checkbox]):not([type=radio]), textarea, select { border-radius: 14px; }

/* Buttons: runde Pillen statt Parallelogramme */
.submit-btn, .community-cta, .discord-join-btn, .hero-discord-btn, .community-discord-join, .partner-portfolio-btn, .not-found-btn {
  clip-path: none !important; border-radius: 999px;
}
.cup-btn { clip-path: none !important; border-radius: 22px; }
.submit-btn, .cup-btn, .community-cta, .discord-join-btn {
  transition: box-shadow .3s ease, filter .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.submit-btn:hover:not(:disabled), .cup-btn:hover, .community-cta:hover, .discord-join-btn:hover {
  filter: brightness(1.1); box-shadow: 0 12px 34px -10px var(--purple-glow);
}

/* Tabellen (Scoreboard) */
.leaderboard-table tbody tr { transition: background .25s ease; }
.leaderboard-table tbody tr:hover { background: rgba(168, 85, 247, .1); }

@media (max-width: 700px) {
  .community-panel, .social-panel, .contact-panel, .events-panel, .newsletter-panel,
  .testimonial-panel, .legal-card, .form-card, .solocup-info-card { -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 22px; }
}

/* ===== Taapex-inspirierte Elemente (in GIOTTV-Violett) ===== */

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  background: radial-gradient(circle at 50% 45%, #1a0b33, #050308 70%);
  transition: opacity .6s ease, visibility .6s ease;
  animation: pl-failsafe 0s linear 3s forwards; /* falls JS hängt */
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 28px rgba(168, 85, 247, .8)); animation: pl-pulse 1.6s ease-in-out infinite; }
.pl-num { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; letter-spacing: .15em; color: var(--white); opacity: .8; }
.pl-num span { display: inline-block; min-width: 2.2ch; text-align: right; }
.pl-bar { width: 200px; height: 2px; background: rgba(168, 85, 247, .2); overflow: hidden; border-radius: 2px; }
.pl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-1), #d9b8ff); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--purple-2); }
@keyframes pl-pulse { 50% { transform: scale(1.06); } }
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; } }

/* Custom Cursor */
.fx-cursor-dot, .fx-cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s; margin: 0; }
.has-cursor .fx-cursor-dot, .has-cursor .fx-cursor-ring { opacity: 1; }
.fx-cursor-dot::before, .fx-cursor-ring::before { content: ""; position: absolute; border-radius: 50%; }
.fx-cursor-dot::before { width: 8px; height: 8px; left: -4px; top: -4px; background: #fff; }
.fx-cursor-ring::before { width: 38px; height: 38px; left: -19px; top: -19px; border: 1px solid rgba(196, 140, 255, .7);
  transition: width .25s, height .25s, left .25s, top .25s, background .25s, border-color .25s; }
.fx-cursor-ring.is-hover::before { width: 56px; height: 56px; left: -28px; top: -28px; border-color: var(--purple-2); }
.fx-cursor-ring.is-down::before { width: 28px; height: 28px; left: -14px; top: -14px; }

/* Schwebende Pill-Navigation (Links/Funktion unverändert) */
.navbar {
  top: 12px; align-self: center; width: min(1240px, calc(100% - 24px)); margin: 12px auto 0;
  padding: .4rem .6rem .4rem 1rem; border: 1px solid var(--border); border-radius: 999px;
  background: linear-gradient(160deg, rgba(30, 16, 52, .7), rgba(8, 4, 14, .7));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .8), 0 0 40px -16px rgba(109, 31, 214, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-links a:not(.active) { padding: .45rem .85rem; border-radius: 999px; }
.nav-links a:not(.active):hover { background: rgba(168, 85, 247, .14); }
.nav-links a:not(.active)::after { display: none; }
.nav-links a.active {
  clip-path: none; border-radius: 999px; padding: .45rem 1rem;
  background: linear-gradient(135deg, rgba(109, 31, 214, .55), rgba(168, 85, 247, .35));
  border: 1px solid rgba(196, 140, 255, .45); box-shadow: 0 0 22px -4px var(--purple-glow);
}
.social-icon { border-radius: 50%; }
@media (max-width: 860px) {
  .navbar { border-radius: 26px; padding: .55rem .8rem; top: 8px; margin-top: 8px; }
}

/* Hero: riesige Wortmarke hinter dem Logo */
main.hero { position: relative; isolation: isolate; }
.hero-wordmark {
  position: absolute; z-index: -1; left: 50%; top: 0; translate: -50% var(--py, 0px); width: 100%; text-align: center; pointer-events: none; user-select: none;
  font-family: 'Orbitron', sans-serif; font-weight: 900; line-height: .85; letter-spacing: -.02em;
  font-size: clamp(4.5rem, 21vw, 19rem);
  background: linear-gradient(180deg, rgba(246, 243, 255, .16), rgba(168, 85, 247, .05) 70%, transparent);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Schräges Laufband */
.fx-marquee { flex-shrink: 0; position: relative; z-index: 1; overflow: hidden; padding: 3.5rem 0; margin: 0; }
.fx-marquee-band {
  rotate: -2deg; width: 108%; margin-left: -4%; padding: .9rem 0; overflow: hidden;
  background: linear-gradient(90deg, #5b17b8, #a855f7 50%, #6d1fd6);
  box-shadow: 0 0 50px -8px var(--purple-glow);
}
.fx-marquee-track { display: flex; width: max-content; animation: fx-marq 38s linear infinite; }
.fx-marquee-track span { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: clamp(1rem, 2.6vw, 1.9rem); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.fx-marquee-track i { font-style: normal; color: rgba(255, 255, 255, .55); margin: 0 clamp(1rem, 3vw, 2.4rem); font-size: 1.1rem; align-self: center; }
@keyframes fx-marq { to { transform: translateX(-25%); } }

/* Footer: große Wortmarke als Wasserzeichen */
.site-footer { overflow: hidden; }
.site-footer::before {
  content: "GIOTTV"; display: block; text-align: center; margin: 0 0 1.4rem; pointer-events: none; user-select: none;
  font-family: 'Orbitron', sans-serif; font-weight: 900; line-height: .9; letter-spacing: -.02em;
  font-size: clamp(3.5rem, 18vw, 13rem);
  background: linear-gradient(180deg, rgba(168, 85, 247, .22), rgba(168, 85, 247, 0) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .fx-marquee-track { animation: none; }
  #preloader { display: none; }
}
@media (hover: none), (pointer: coarse) { .fx-cursor-dot, .fx-cursor-ring { display: none; } }

/* ===== Taapex-Ideen: Zahlen, nummerierte Karten, kräftigere Überschriften ===== */

/* Statistik-Zahlen groß mit Verlauf */
.stats-platform-value, .stats-trust-value {
  font-weight: 900; letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(180deg, #fff 10%, #c48cff 70%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, .35));
}
.stats-platform-value { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.stats-trust-value { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.stats-platform-label, .stats-trust-label { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* Überschriften: Orbitron schwer und enger (lokale Schrift, keine neue Datei) */
section h2, .legal-card h1 { font-weight: 900; letter-spacing: -.005em; line-height: 1.08; }
section h2 { font-size: clamp(1.6rem, 4.4vw, 2.8rem); }

/* Events als kompakte Liste */
.events-panel { padding: clamp(1.2rem, 3vw, 2rem); }
.events-grid, .events-grid-compact { display: flex; flex-direction: column; gap: 0; counter-reset: blk; }
.event-card {
  counter-increment: blk; flex-direction: row; align-items: center; gap: 1rem; padding: .65rem .8rem; border-radius: 18px;
  background: transparent; border: 0; border-bottom: 1px solid var(--hair); box-shadow: none; overflow: visible;
  transition: background .25s ease;
}
.event-card:last-child { border-bottom: 0; }
.event-card:hover, .event-card:focus-visible { background: rgba(168, 85, 247, .08); transform: none; box-shadow: none; }
.event-card::before {
  content: counter(blk, decimal-leading-zero); flex: none; width: 2.2rem; font-family: 'Orbitron', sans-serif;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--grey);
}
.event-card-image, .events-grid-compact .event-card-image { flex: none; width: 104px; height: 60px; border-radius: 12px; }
.event-card-body, .events-grid-compact .event-card-body { flex: 1; min-width: 0; padding: 0; }
.event-card-date { margin-bottom: .1rem; font-size: .7rem; }
.event-card-title { margin: 0; font-size: .95rem; }
.event-card-desc { -webkit-line-clamp: 1; margin-top: .1rem; font-size: .78rem; }
.event-card::after {
  content: "↗"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--hair); color: #fff; transition: background .25s, transform .25s;
}
.event-card:hover::after { background: var(--purple-2); transform: translate(2px, -2px); }
.events-grid-compact .event-card-image { display: none; }
.events-group + .events-group { margin-top: 1.6rem; padding-top: 1.6rem; }
.events-group-label { margin-bottom: .5rem; }
@media (max-width: 560px) { .event-card-image { width: 72px; height: 48px; } .event-card::before { display: none; } }

/* Giveaway-Karten behalten ihre Nummer */
.giveaway-grid { counter-reset: gblk; }
.giveaway-card { counter-increment: gblk; position: relative; }
.giveaway-card::before {
  content: counter(gblk, decimal-leading-zero); position: absolute; z-index: 2; top: .8rem; left: .9rem;
  font-family: 'Orbitron', sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .12em; color: #fff;
  padding: .2rem .55rem; border-radius: 999px; background: rgba(8, 4, 14, .65); pointer-events: none;
}

/* ===== Statistik-Balken größer ===== */
.stats-trust {
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(.8rem, 3vw, 2rem); gap: 1.4rem 0; border-radius: 22px; align-items: stretch;
}
.stats-trust-item { flex: 1 1 180px; padding: .4rem clamp(1rem, 3vw, 2.4rem); gap: .5rem; justify-content: center; }
.stats-trust-label { margin-top: .2rem; }
.stats-platform-tile { padding: 1.6rem 1.2rem; border-radius: 18px; }
@media (max-width: 640px) {
  .stats-trust-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1rem; flex-basis: 100%; }
  .stats-trust-item:last-child { border-bottom: none; padding-bottom: .4rem; }
}

/* ===== Eigener Cursor ersetzt den normalen Mauszeiger ===== */
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ===== Lenis ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ===== Navigation: ausblenden beim Runterscrollen + gleitende Hover-Pille ===== */
.navbar { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.navbar.is-hidden { transform: translateY(-160%); }
.nav-links { position: relative; }
.nav-pill {
  position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; opacity: 0; border-radius: 999px;
  background: rgba(168, 85, 247, .18); border: 1px solid rgba(196, 140, 255, .28);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), width .4s cubic-bezier(.16, 1, .3, 1), height .4s, opacity .25s;
}
.nav-links a:not(.active):hover { background: transparent; }

/* SplitText-Reveal: Überschriften laufen als Block, nichts verrutscht */
.type-reveal { display: block; max-width: 100%; text-align: inherit; }

/* Social-Karten: drei nebeneinander statt 2+1 */
.social-grid { max-width: 700px; }

/* Partner: gleichmäßige Abstände */
.partner-grid { gap: 1.2rem; margin-bottom: 2.2rem; }
.agency-card { margin-top: .6rem; margin-bottom: 2rem; }

/* ===== Discord-Seite ===== */
.dc-page { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) 0 3rem; flex: 1; }
.dc-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding-bottom: clamp(2rem, 6vw, 4rem); }
.dc-kicker { padding: .35rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(18, 10, 31, .6); color: var(--purple-2); font-size: .8rem; font-weight: 700; letter-spacing: .2em; }
.dc-hero h1 { font-family: 'Orbitron', sans-serif; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; font-size: clamp(2rem, 6.5vw, 4.2rem); max-width: 16ch; }
.dc-lede { max-width: 56ch; color: var(--grey); font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.6; }
.dc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; margin-top: .6rem; }
.dc-live { display: flex; gap: 1.4rem; color: var(--grey); font-size: .95rem; }
.dc-live strong { font-family: 'Orbitron', sans-serif; color: var(--white); margin-right: .3rem; }
.dc-dot { display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

.dc-section { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
.dc-section > h2 { text-align: center; margin-bottom: 2rem; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.dc-card, .dc-wide {
  padding: clamp(1.3rem, 3vw, 2rem); border-radius: 26px; border: 1px solid var(--hair);
  background: var(--aurora), var(--glass); box-shadow: 0 40px 90px -55px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.dc-card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 16px; background: rgba(168, 85, 247, .14); font-size: 1.5rem; }
.dc-card h3, .dc-wide h2 { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; letter-spacing: .02em; margin-bottom: 1rem; }
.dc-card ul, .dc-wide ul { list-style: none; display: grid; gap: .75rem; }
.dc-card li, .dc-wide li { position: relative; padding-left: 1.1rem; color: var(--grey); line-height: 1.55; font-size: .95rem; }
.dc-card li::before, .dc-wide li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-2); }
.dc-card li strong, .dc-wide li strong, .dc-wide p strong { color: var(--white); font-weight: 700; }
.dc-page code { padding: .12rem .5rem; border-radius: 8px; background: rgba(168, 85, 247, .14); color: #d9b8ff; font-family: 'Rajdhani', monospace; font-size: .92em; font-weight: 700; }
.dc-wide p { color: var(--grey); line-height: 1.6; }
.dc-muted { color: var(--grey); margin-top: -.5rem; margin-bottom: 1rem; }
.dc-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem; }
.dc-chips code { padding: .4rem .9rem; border-radius: 999px; font-size: 1rem; }
.dc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.dc-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: clamp(2rem, 6vw, 3.5rem) 1rem; }
.dc-cta .dc-muted { margin: 0; }
