/* ==========================================================
   Timeless – Basis (Tokens, Reset, Typo, Komponenten)
   ========================================================== */

:root {
  --bg: #060908;
  --bg-2: #0b100e;
  --surface: #101715;
  --surface-2: #151e1b;
  --line: rgba(236, 230, 220, 0.09);
  --line-strong: rgba(236, 230, 220, 0.18);

  --text: #ece6dc;
  --text-soft: #c9c2b6;
  --muted: #8d958f;

  --neon: #d9fff0;
  --neon-glow: #3ef0a5;
  --neon-deep: #0f6b48;
  --gold: #d8bb8c;
  --gold-soft: rgba(216, 187, 140, 0.14);
  --ember: #e9883f;

  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--neon-glow); color: #04130c; }

:focus-visible {
  outline: 2px solid var(--neon-glow);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typo ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em {
  font-style: italic;
  color: var(--gold);
}

/* ---------- Neon-Wortmarke (SVG) ---------- */

/* Strich-Eigenschaften am <svg>, damit sie auch in <use>-Kopien vererbt werden */
.wordmark {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--neon);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wordmark--glow {
  filter:
    drop-shadow(0 0 2px rgba(217, 255, 240, 0.9))
    drop-shadow(0 0 10px rgba(62, 240, 165, 0.55))
    drop-shadow(0 0 28px rgba(62, 240, 165, 0.35));
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.btn svg { flex-shrink: 0; width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--neon);
  color: #03140c;
  box-shadow: 0 0 0 rgba(62, 240, 165, 0);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 10px 40px -10px rgba(62, 240, 165, 0.6); }
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(6, 9, 8, 0.25);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--ghost:hover::before { transform: scaleX(1); transform-origin: left; }

.btn svg.btn__lead { width: 18px; height: 18px; }
.btn:hover svg.btn__lead { transform: none; }

/* ---------- Social & Credit ---------- */

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.social svg { width: 20px; height: 20px; }
.social:hover {
  background: var(--neon);
  border-color: var(--neon);
  color: #03140c;
  box-shadow: 0 0 24px rgba(62, 240, 165, 0.45);
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 0.4s;
}
.credit img { height: 22px; width: auto; }
.credit:hover { opacity: 1; }

/* ---------- Korn / Atmosphäre ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
/* Auf Touch-Geräten statisch – spart Rechenleistung beim Scrollen */
@media (hover: none) {
  .grain { animation: none; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Neon-Flackern ---------- */

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; }
}
.flicker { animation: flicker 6s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
