/* ===== Schriften (lokal, keine Verbindung zu Google) ===== */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("fonts/permanent-marker-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --switch: .6s;
  --gutter: clamp(16px, 3vw, 44px);
  /* wie weit der Mittelpunkt des Wortes über der Logomitte steht, Anteil der Logohöhe */
  --word-rise: .1;
  /* größte Wortbreite (Anteil der Bühnenbreite) und größte Buchstabenhöhe (Anteil der Logohöhe), liest script.js */
  --word-width: .86;
  --word-cap: .56;
  /* Höhe der Logomitte auf der Bühne */
  --stage-center: 50%;
  /* dunkler Außenrand ums Logo (Sticker-Look): 1 = an, 0 = aus */
  --logo-rim: 1;
}

/* ===== Farbwelten je Plattform =====
   ring-*: Verlauf des Logo-Rings von oben nach unten, lens-*: Brillengläser,
   ink: Tinten-Spritzer, on-white: Plattformfarbe auf weißen Buttons, theme: Browserleiste am Handy */
[data-platform="youtube"] {
  --ring-1: #FFFFFF; --ring-2: #FFB8C2; --ring-3: #FF3355; --ring-4: #FF0033;
  --lens-1: #FF8597; --lens-2: #FF1F48; --lens-3: #B80024;
  --ink: #1F0008; --ink-2: #1F0008;
  --iam: #FFFFFF; --on-white: #E0002A; --theme: #D10028; --glow: .2;
}
[data-platform="twitch"] {
  --ring-1: #F1E8FF; --ring-2: #BF94FF; --ring-3: #9146FF; --ring-4: #6A1FE0;
  --lens-1: #D3B5FF; --lens-2: #9146FF; --lens-3: #5513C7;
  --ink: #12052B; --ink-2: #12052B;
  --iam: #FFFFFF; --on-white: #772CE8; --theme: #7B38E8; --glow: .2;
}
[data-platform="instagram"] {
  --ring-1: #5B51D8; --ring-2: #C13584; --ring-3: #F56040; --ring-4: #FFDC80;
  --lens-1: #833AB4; --lens-2: #FD1D1D; --lens-3: #FCAF45;
  --ink: #1A0716; --ink-2: #1A0716;
  --iam: #FFFFFF; --on-white: #C13584; --theme: #D62976; --glow: .16;
}
[data-platform="tiktok"] {
  --ring-1: #25F4EE; --ring-2: #6FA8F5; --ring-3: #C44AA7; --ring-4: #FE2C55;
  --lens-1: #25F4EE; --lens-2: #8C7FF0; --lens-3: #FE2C55;
  --ink: #25F4EE; --ink-2: #FE2C55;
  --iam: #FE2C55; --on-white: #050507; --theme: #060608; --glow: .07;
}
[data-platform="discord"] {
  --ring-1: #E3E6FF; --ring-2: #8F98FA; --ring-3: #5865F2; --ring-4: #EB459E;
  --lens-1: #A7AEFF; --lens-2: #5865F2; --lens-3: #EB459E;
  --ink: #0D1033; --ink-2: #0D1033;
  --iam: #FFFFFF; --on-white: #4752C4; --theme: #4E5AE8; --glow: .2;
}

/* ===== Grundgerüst ===== */
*, *::before, *::after { box-sizing: border-box; }

/* kein Zurück-Wischen und kein Pull-to-Refresh, das Wischen gehört der Seite */
html { background: #111; overscroll-behavior: none; }

body {
  margin: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.is-loading .stage,
.is-loading .cta-row,
.is-loading .dock { opacity: 0; }

.stage, .cta-row, .dock { transition: opacity .4s ease; }

/* ===== Hintergrund ===== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--switch) ease;
}

[data-platform="youtube"] .bg-youtube,
[data-platform="twitch"] .bg-twitch,
[data-platform="instagram"] .bg-instagram,
[data-platform="tiktok"] .bg-tiktok,
[data-platform="discord"] .bg-discord { opacity: 1; }

.bg-youtube { background: radial-gradient(110% 85% at 50% 48%, #FF2443 0%, #E00028 42%, #9E001C 100%); }
.bg-twitch { background: radial-gradient(110% 85% at 50% 48%, #A66BFF 0%, #8240F2 42%, #4D14A8 100%); }
.bg-instagram {
  background:
    radial-gradient(75% 95% at 12% 105%, #FFD776 0%, #FCAF45 22%, rgba(245, 96, 64, 0) 62%),
    radial-gradient(85% 90% at 92% -8%, #5B51D8 0%, rgba(91, 81, 216, 0) 60%),
    linear-gradient(150deg, #833AB4 0%, #C13584 38%, #E1306C 62%, #F56040 100%);
}
.bg-tiktok {
  background:
    radial-gradient(48% 58% at 18% 42%, rgba(37, 244, 238, .22), rgba(37, 244, 238, 0) 70%),
    radial-gradient(48% 58% at 82% 58%, rgba(254, 44, 85, .24), rgba(254, 44, 85, 0) 70%),
    #060608;
}
.bg-discord { background: radial-gradient(110% 85% at 50% 48%, #7C86F6 0%, #5865F2 42%, #2E36A6 100%); }

.glow {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 110vmin;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0));
  opacity: var(--glow);
  transition: opacity var(--switch) ease;
}

/* ===== Kopfzeile ===== */
.topbar {
  position: relative;
  /* über der Reiter-Leiste, damit der Datenschutz-Link unten rechts klickbar bleibt */
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top) + clamp(14px, 2.6vh, 28px)) var(--gutter) 0;
}

.wordmark {
  position: relative;
  padding-top: .5em;
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1;
  user-select: none;
}

.wordmark-denow {
  display: block;
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: .015em;
}

.wordmark-iam {
  position: absolute;
  left: -.1em;
  top: .02em;
  font: .55em/1 "Permanent Marker", cursive;
  text-transform: uppercase;
  color: var(--iam);
  rotate: -10deg;
  transition: color var(--switch) ease;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .8em 1.1em .8em .95em;
  border-radius: 999px;
  background: #fff;
  color: #121212;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55); }
.cta:active { transform: scale(.97); }

.cta-icon {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: var(--on-white);
  transition: fill var(--switch) ease;
}

.cta-arrow {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Datenschutz-Link: am Desktop klein unten rechts, am Handy oben rechts neben der Wortmarke */
.legal-link {
  position: fixed;
  right: var(--gutter);
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  z-index: 4;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: color .2s ease;
}
.legal-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Bühne: Wort, Spritzer, Logo ===== */
.stage {
  position: relative;
  z-index: 1;
  container-type: size;
  /* seitlich abschneiden: überstehende Spritzer würden die Seite am Handy herauszoombar machen */
  overflow-x: clip;
  --logo-h: min(80cqh, 95cqw);
}

.word {
  position: absolute;
  left: 50%;
  top: calc(var(--stage-center) - var(--logo-h) * var(--word-rise));
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0);
  pointer-events: none;
  user-select: none;
}

.word-text {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% calc(-50% + var(--cap-shift, 0) * 1em);
  font-family: "Anton", Impact, sans-serif;
  line-height: var(--cap, .75);
  letter-spacing: .01em;
  white-space: nowrap;
  color: #fff;
}

[data-platform="tiktok"] .word-text { text-shadow: -.035em -.02em 0 #25F4EE, .035em .02em 0 #FE2C55; }

.word-letter { display: inline-block; }

.splatter {
  position: absolute;
  left: 50%;
  top: var(--stage-center);
  width: calc(var(--logo-h) * 2.3);
  height: calc(var(--logo-h) * 1.25);
  translate: -50% -50%;
  transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 18px), 0);
  overflow: visible;
  pointer-events: none;
}

.splat { transform-box: fill-box; transform-origin: center; }
.ink { fill: var(--ink); }
.ink-2 { fill: var(--ink-2); }

.logo-link {
  position: absolute;
  left: 50%;
  top: var(--stage-center);
  height: var(--logo-h);
  aspect-ratio: 879 / 1200;
  translate: -50% -50%;
  transform:
    perspective(1400px)
    rotateY(calc(var(--mx, 0) * 8deg))
    rotateX(calc(var(--my, 0) * -6deg))
    translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 8px), 0);
  border-radius: 28%;
}

.logo-punch, .logo-float { width: 100%; height: 100%; }
.logo-punch { transition: scale .35s var(--ease); }
.logo-link:hover .logo-punch { scale: 1.03; }
.logo-float { animation: float 6s ease-in-out infinite; will-change: transform; }

@keyframes float {
  0%, 100% { transform: translateY(-1.2%) rotate(-.5deg); }
  50% { transform: translateY(1.2%) rotate(.5deg); }
}

.logo { display: block; width: 100%; height: 100%; overflow: visible; }
.logo stop { transition: stop-color var(--switch) ease; }
.ring-1 { stop-color: var(--ring-1); }
.ring-2 { stop-color: var(--ring-2); }
.ring-3 { stop-color: var(--ring-3); }
.ring-4 { stop-color: var(--ring-4); }
.lens-1 { stop-color: var(--lens-1); }
.lens-2 { stop-color: var(--lens-2); }
.lens-3 { stop-color: var(--lens-3); }
.logo-shadow { opacity: .5; }
.logo-rim { fill: #000; opacity: var(--logo-rim); }

/* ===== Reiter unten ===== */
.cta-row { display: none; }

.dock {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 34px var(--gutter) calc(env(safe-area-inset-bottom) + clamp(16px, 3vh, 30px));
}

.dock-line {
  flex: 0 1 150px;
  height: 1px;
  background: rgba(255, 255, 255, .5);
}

.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, .86);
  font: 600 14px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  transition: color .3s ease;
}
.tab:hover { color: #fff; }
.tab:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.tab[aria-selected="true"] { color: #121212; }

.tab-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: fill .3s ease;
}
.tab[aria-selected="true"] .tab-icon { fill: var(--on-white); }

.tab-pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 0;
  width: 0;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.hint {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  transition: opacity .5s ease, transform .5s ease;
}
.hint.is-hidden { opacity: 0; transform: translateY(6px); }

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: hint 1.6s var(--ease) infinite;
}

@keyframes hint {
  0% { transform: translateY(-4px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(5px); opacity: 0; }
}

/* ohne JavaScript: einfache Linkliste statt Reiter */
html:not(.js) .dock { display: none; }

.fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 14px var(--gutter) 28px;
  list-style: none;
}
.fallback a {
  display: block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #121212;
  font-weight: 600;
  text-decoration: none;
}

/* ===== Hochformat (Handy, Tablet): Wort über der Kappe statt dahinter ===== */
@media (orientation: portrait) {
  :root { --word-rise: .44; --stage-center: 53%; --word-width: .94; --word-cap: .5; }
  .stage { --logo-h: min(70cqh, 100cqw); }
}

/* ===== Handy ===== */
@media (max-width: 700px) {
  .cta-top { display: none; }
  .legal-link { position: static; }
  .cta-row {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding: 0 var(--gutter);
  }
  .cta-main { font-size: 17px; padding: 1em 1.6em 1em 1.35em; }

  .dock { padding-top: 30px; }
  .dock-line { display: none; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab, .tab-pill { height: 46px; }
  .tab { padding: 0 14px; }
  .tab-label { display: none; }
  .tab[aria-selected="true"] .tab-label { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-float, .hint-dot { animation: none; }
  .tab-pill { transition-duration: .2s; }
}
