/* =========================================================
   GMZ STUDIOS — Base: Tokens, Reset, Typografie, Layout,
   Navigation, Buttons, Footer
   ========================================================= */

:root {
  --bg: #000;
  --bg-2: #07070a;
  --surface: #0d0d11;
  --surface-2: #14141a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f7;
  --muted: #9a9aa5;
  --faint: #5c5c66;
  --white: #fff;
  --glow: 0 0 18px rgba(255, 255, 255, 0.35), 0 0 42px rgba(255, 255, 255, 0.12);
  --ok: #7dffb2;
  --warn: #ffd37d;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }

/* Feines Filmkorn über allem */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(44px, 8vw, 112px); }
h2 { font-size: clamp(34px, 5vw, 64px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; }
p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
/* Kontur-Schrift im Stil des Logos. Kontur wird zuerst gemalt, die dunkle
   Füllung verdeckt dann die inneren Überlappungen der variablen Schrift. */
.outline {
  color: #050507;
  -webkit-text-stroke: 2.4px var(--white);
  paint-order: stroke fill;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { margin: 0; }
.section-head p { max-width: 44ch; margin: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 34px; width: auto; transition: filter 0.3s; }
.nav__brand:hover img { filter: drop-shadow(0 0 8px rgba(255,255,255,.7)); }
.nav__brand span {
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: 0.32em; font-size: 14px;
}
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block;
  padding: 10px 16px;
  font-size: 14px; letter-spacing: 0.04em; color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a.btn { display: inline-flex; padding: 0 18px; margin-left: 8px; color: #000; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1px; background: #fff; box-shadow: var(--glow);
}
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: #000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  /* Weichzeichner/Transform der Leiste würden das Vollbild-Menü in die Leiste einsperren */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; background: transparent; border-color: transparent; }
  .nav__links a { font-family: var(--font-display); font-size: 30px; font-weight: 300; }
  .nav__links a.btn { font-family: var(--font-mono); font-size: 13px; font-weight: 500; height: 52px; padding: 0 30px; margin: 16px 0 0; letter-spacing: 0.14em; }
  .nav__links a[aria-current="page"]::after { bottom: 2px; }
  .nav__links .btn { margin-top: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { box-shadow: var(--glow); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff; transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn--ghost:hover { color: #000; border-color: #fff; }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 11px; }
.btn--xl { --h: 64px; padding: 0 38px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Play-Button mit pulsierendem Ring */
.btn--play { padding-left: 12px; }
.btn--play .play-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #000; color: #fff; position: relative;
}
.btn--play .play-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.35);
  animation: pulse 2s var(--ease) infinite;
}
.btn--play .play-dot svg { width: 14px; height: 14px; margin-left: 2px; }
.btn--play:hover .play-dot svg { transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Tags / Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: blink 1.6s infinite; }
.badge--live .badge__dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@keyframes blink { 50% { opacity: 0.35; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 32ch; font-size: 14px; }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--muted);
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.socials a:hover { color: #fff; border-color: #fff; box-shadow: var(--glow); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 12px;
  background: rgba(20, 20, 26, 0.92); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 14px; max-width: calc(100% - 32px);
  transition: transform 0.5s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150; background: #000;
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader img { width: 72px; animation: loaderGlow 1.2s var(--ease) both; }
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes loaderGlow {
  0% { opacity: 0; clip-path: inset(100% 0 0 0); filter: drop-shadow(0 0 0 #fff); }
  60% { opacity: 1; clip-path: inset(0 0 0 0); filter: drop-shadow(0 0 16px rgba(255,255,255,.8)); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); filter: drop-shadow(0 0 4px rgba(255,255,255,.4)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
