/* ==========================================================================
   Schriften (lokal, DSGVO)
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* ==========================================================================
   Tokens – Farben aus ibiza-vip-app/src/theme/tokens.ts
   ========================================================================== */
:root {
  --limestone: #f4f1ec;
  --clay: #fbf9f6;
  --surface: #ffffff;
  --ink: #15171a;
  --ink-2: #4a4f57;
  --muted: #666b73;
  --line: rgba(21, 23, 26, .1);

  --sea: #0b5c7a;
  --sea-hi: #11708f;
  --sea-deep: #084a63;
  --sea-soft: #e3eff3;
  --lagoon: #2e8b7a;
  --lagoon-ink: #1f6e5e;
  --gold: #b7862f;
  --gold-ink: #8a6420;
  --sunset: #e8673a;
  --sunset-hi: #f08a5d;

  --night-0: #0e0f14;
  --night-1: #171922;
  --night-2: #1f222d;

  /* Wechseln stufenlos von Tag zu Nacht, gesetzt von js/scenes.js */
  --bg: var(--limestone);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --accent: var(--sea);
  --night: 0;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --fs-mega: clamp(3.6rem, 12.5vw, 13rem);
  --fs-display: clamp(3rem, 8.4vw, 8.6rem);
  --fs-h2: clamp(2.5rem, 6vw, 6.2rem);
  --fs-h3: clamp(1.6rem, 2.6vw, 2.4rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.32rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 24px;
  --r-xl: 32px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-clay: 0 1px 2px rgba(60, 48, 30, .06), 0 18px 40px -18px rgba(60, 48, 30, .28);
  --shadow-sea: 0 12px 26px -12px rgba(11, 92, 122, .6);
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sea); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: 999px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ==========================================================================
   Typografie
   ========================================================================== */
.display, .h2, .mega {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .92;
}
.mega { font-size: var(--fs-mega); line-height: .86; }
.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.h3 { font: 500 var(--fs-h3)/1.12 var(--sans); letter-spacing: -.02em; }
.display em, .h2 em, .mega em { font-style: italic; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-2); max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 var(--fs-label)/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7cc3dc, var(--accent) 70%);
}
.num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { width: 100%; padding-inline: var(--gutter); margin-inline: auto; max-width: 1680px; }
.section { padding-block: clamp(110px, 18vh, 220px); position: relative; }

/* ==========================================================================
   Einblenden (js/main.js setzt .is-in)
   ========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Wörter steigen aus einer Maske (js/main.js zerlegt [data-split]) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0) * 90ms);
}
.is-in .w > span, .w.is-in > span { transform: none; }

/* Bilder öffnen sich von der Mitte */
[data-unveil] { clip-path: inset(18% 12% round var(--r-l)); transition: clip-path 1.4s var(--ease-out); overflow: hidden; }
[data-unveil] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
[data-unveil].is-in { clip-path: inset(0 0 round var(--r-l)); }
[data-unveil].is-in img { transform: none; }

/* Platzhalter für kommende Medien: zeigt im Entwurf den Slot-Namen */
[data-slot] { position: relative; }
.show-slots [data-slot]::after {
  content: "Slot " attr(data-slot); position: absolute; left: 10px; top: 10px; z-index: 5;
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: #ffde59; color: #111; pointer-events: none;
}
.show-slots [data-beispiel] { outline: 1px dashed #ffde59; outline-offset: 2px; }

/* ==========================================================================
   Weniger Bewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .w > span { opacity: 1; transform: none; }
  [data-unveil] { clip-path: none; }
}
