/* =========================================================================
   IPFLIX – Website
   Ruhige, dunkle Bühne · Manrope für Überschriften · Magenta als Akzent
   Magenta nur als sparsamer Markenakzent
   ========================================================================= */

:root {
  --bg: #050506;
  --fg: #f4f2f5;
  --fg-2: rgba(244, 242, 245, 0.72);
  --muted: #8f8b96;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --surface: rgba(16, 15, 19, 0.62);
  --accent: #4f6bff;
  --accent-2: #8ea0ff;
  --rose: #c9d3ff;
  --gutter: clamp(20px, 5vw, 80px);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

/* ---------- Bühne ---------- */

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 60% 45%, rgba(79, 107, 255, 0.12), transparent 70%), var(--bg);
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.55) 0%, transparent 38%, transparent 62%, rgba(5, 5, 6, 0.55) 100%);
}

.letterbox { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.letterbox i {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5vh;
  background: #000;
  transition: transform 1.9s cubic-bezier(0.7, 0, 0.2, 1) 0.4s;
}
.letterbox i:first-child { top: 0; transform-origin: top; }
.letterbox i:last-child { bottom: 0; transform-origin: bottom; }
body.ready .letterbox i { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) { .letterbox { display: none; } }

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  background: #000;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader .logo { font-size: 26px; }
.loader-bar { width: 120px; height: 1px; background: var(--line-2); overflow: hidden; }
.loader-bar i { display: block; width: 35%; height: 100%; background: #fff; animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
body.ready .loader { opacity: 0; visibility: hidden; }

/* ---------- Logo ---------- */

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
}
.logo b { font-weight: 700; color: var(--accent); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.5s, padding 0.5s, border-color 0.5s;
}
.nav.solid {
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav nav { display: flex; gap: 34px; }
.nav nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--fg-2); transition: color 0.2s; }
.nav nav a:hover { color: #fff; }
.nav .btn { justify-self: end; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav { display: none; }
}

.progress { position: fixed; inset: 0 0 auto; height: 1px; z-index: 21; }
.progress i { display: block; height: 100%; background: #fff; opacity: 0.7; transform-origin: left; transform: scaleX(0); }

/* ---------- Kapitelanzeige ---------- */

.chapter {
  position: fixed;
  left: var(--gutter);
  bottom: 30px;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s 2s;
}
body.ready .chapter { opacity: 1; }
.chapter b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.chapter i { width: 40px; height: 1px; background: var(--line-2); }
@media (max-width: 760px) { .chapter { display: none; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #08070a;
  font: 600 15px var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -12px rgba(255, 255, 255, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.btn-small { height: 38px; padding: 0 18px; font-size: 13.5px; }

/* ---------- Kapitel / Sektionen ---------- */

main { position: relative; z-index: 3; }
.scene {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px var(--gutter);
}
.scene.right { justify-content: flex-end; }
.copy { max-width: 520px; }
.copy.wide { max-width: 620px; }
.copy.xwide { max-width: 760px; }
.copy.center { max-width: 880px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font: 500 12.5px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.center .eyebrow { justify-content: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
h1, h2 { letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 26px; text-wrap: balance; }
h1 { font-size: clamp(52px, 7.4vw, 112px); }
h2 { font-size: clamp(42px, 5.2vw, 78px); }
h2.huge { font-size: clamp(50px, 8vw, 128px); }
h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }

/* Akzentwort: elegante Kursive statt Verlauf */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rose);
}

.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--fg-2); margin: 0 0 34px; max-width: 34em; }
.center .lead { margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center .actions { justify-content: center; }
.fine { margin: 26px 0 0; font-size: 13px; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); font-size: 15.5px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
  opacity: 0.8;
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  font: 600 10px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(79, 107, 255, 0.12);
  vertical-align: 2px;
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.facts div { padding: 18px 16px 0 0; display: grid; gap: 4px; }
.facts strong { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.facts span { font-size: 13px; color: var(--muted); }

/* ---------- Karten ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card, .pf, .price {
  position: relative;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  transition: box-shadow 0.4s, transform 0.5s var(--ease), background 0.4s;
}
.card { padding: 24px; }
.card:hover, .pf:hover, .price:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ico { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.ico svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Plattformen */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
}
.pf-ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, 0.06); }
.pf-ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf b { font: 600 15px var(--font-display); letter-spacing: -0.01em; }
.pf small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.pf em { grid-row: 1 / span 2; grid-column: 3; font: 600 12px var(--font-body); font-style: normal; padding: 6px 12px; border-radius: 999px; background: #fff; color: #08070a; }
.pf.soon { cursor: default; }
.pf.soon em, .pf[data-pf="appletv"] em { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

/* Preise */
.billing { display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.billing button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: 500 14px var(--font-body); cursor: pointer; transition: background 0.3s, color 0.3s; }
.billing button.on { background: #fff; color: #08070a; }
.billing em { font-style: normal; font-size: 12px; color: var(--accent); margin-left: 6px; font-weight: 600; }
.billing button.on em { color: #2c3fc4; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price { display: flex; flex-direction: column; padding: 24px 22px 22px; }
.price.featured { background: rgba(26, 18, 26, 0.75); box-shadow: inset 0 0 0 1px rgba(79, 107, 255, 0.55), 0 40px 90px -50px rgba(79, 107, 255, 0.7); }
.price h3 { font-size: 17px; color: var(--fg-2); font-weight: 500; }
.price .amount { font: 600 clamp(32px, 3vw, 42px)/1 var(--font-display); letter-spacing: -0.035em; margin: 14px 0 0; }
.price .per { font-size: 13px; color: var(--muted); margin: 8px 0 20px; min-height: 2.8em; }
.price ul { list-style: none; padding: 18px 0 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 13.5px; color: var(--fg-2); flex: 1; border-top: 1px solid var(--line); }
.price li { position: relative; padding-left: 22px; line-height: 1.45; }
.price li::before { content: ""; position: absolute; left: 1px; top: 0.4em; width: 9px; height: 5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); opacity: 0.75; }
.price li.head { padding-left: 0; color: #fff; font-weight: 500; }
.price li.head::before { display: none; }
.price .btn { width: 100%; height: 46px; }
.ribbon { position: absolute; top: 20px; right: 20px; font: 600 11px/1 var(--font-body); padding: 6px 9px; border-radius: 999px; color: #fff; background: var(--accent); }
.ribbon.plain { background: rgba(255, 255, 255, 0.08); color: var(--fg-2); }
@media (max-width: 1100px) { .pricing { grid-template-columns: 1fr; } .price .per { min-height: 0; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font: 500 17px var(--font-display); letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--fg-2); font-size: 15.5px; max-width: 46em; }

.scroll-hint { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.scroll-hint span { width: 1px; height: 44px; background: linear-gradient(#fff, transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero { position: relative; }

/* ---------- Animationen ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(1.6s + var(--d, 0s)); }

h1.split, h2.split { opacity: 1; transform: none; }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 22ms + var(--d, 0s)); }
.split.in .ch { opacity: 1; transform: none; }
.hero .split .ch { transition-delay: calc(1.4s + var(--i) * 26ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split .ch { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 36px var(--gutter);
  border-top: 1px solid var(--line);
  background: #050506;
  font-size: 13px;
  color: var(--muted);
}
.footer p { margin: 0; flex: 1 1 280px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
  .scene, .scene.right { justify-content: flex-start; align-items: flex-end; padding-bottom: 90px; }
  .copy, .copy.wide, .copy.xwide { max-width: none; }
  .scroll-hint { display: none; }
  .vignette { background: linear-gradient(to bottom, transparent 20%, rgba(5, 5, 6, 0.85) 75%); }
}

/* =========================================================================
   Markenauftritt: Manrope, offizielles Logo, Magenta als Akzent
   ========================================================================= */

:root { --font-display: "Manrope", "Inter", system-ui, sans-serif; }

.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { display: block; height: 20px; width: auto; }
.loader .logo-img { height: 30px; }
.footer .logo-img { height: 18px; }

h1, h2 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h1 { font-size: clamp(44px, 6.4vw, 100px); }
h2 { font-size: clamp(36px, 4.8vw, 72px); }
h2.huge { font-size: clamp(44px, 7.4vw, 116px); }
h3 { font-family: var(--font-display); font-weight: 700; }
.hero .copy { max-width: 600px; }

/* Akzentwort: Markenfarbe statt Kursive oder Sticker */
.accent { font-family: var(--font-display); font-style: normal; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }

.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; }

/* Buttons */
.btn { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; letter-spacing: -0.005em; }
.btn:not(.btn-ghost) { background: var(--accent); color: #fff; }
.btn:not(.btn-ghost):hover { background: #6a82ff; box-shadow: 0 14px 40px -14px rgba(79, 107, 255, 0.9); }
.btn.play::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }

.facts strong, .price .amount { font-family: var(--font-display); font-weight: 800; }
.pf b, .faq summary { font-family: var(--font-display); font-weight: 700; }
.chapter { font-family: var(--font-display); font-weight: 600; }
.tv-hint { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.tv-hint kbd { font: inherit; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; }
@media (max-width: 600px) {
  .tv-hint { display: none; }
  .hero .lead { font-size: 15.5px; margin-bottom: 24px; }
}

/* Hochformat: Text bleibt über der 3D-Szene lesbar, Kennzahlen passen in eine Zeile */
@media (max-width: 600px) {
  .scene .copy h1, .scene .copy h2, .scene .copy .eyebrow { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75); }
  .scene .copy p { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
  .facts { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .facts div { padding-right: 8px; align-content: start; }
  .facts strong { font-size: 18px; white-space: nowrap; }
}
