/* FROZEN FLOAT · Kampagnenseite (Masterplan-Stand 15.08.2026)
   Palette aus dem Kampagnenbild; Marken-Typo selbstgehostet (OFL):
   Space Grotesk (Display/Copy) + Instrument Serif Italic (Kipp-Signatur).
   Harte Regeln: Produkt immer 100 % Deckkraft (Journey = Schicht-Blend,
   abgehender Frame bleibt voll), kein Wash über Essen, Scrim max. 35 %
   nur hinter Schrift, Reduced Motion/No-JS = statischer Zwilling. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --burgundy-void: #1a0a0e;
  --burgundy-deep: #2b1016;
  --coral: #e2653f;
  --coral-soft: #eb8a63;
  --vanilla: #f3ead9;
  --vanilla-dim: #cbbfae;
  --frost: #ffffff;
  --slate: #0d0507;

  --font-sans: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-melt: 'Instrument Serif', ui-serif, Georgia, serif;

  --beat-pad: clamp(4rem, 12vh, 9rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--burgundy-void);
  color: var(--vanilla);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* Screenreader-sichtbar, visuell versteckt — ersetzt display:none im Kino-Pfad */
.visually-hidden,
.cine .journey-static {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ---------- Dauerhaft sichtbar ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 30;
  background: var(--vanilla);
  color: var(--burgundy-void);
  padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--edge);
  pointer-events: none;
}
/* Rueckweg — ohne ihn ist die Fallstudie eine Sackgasse. */
.back-link {
  pointer-events: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--frost);
  opacity: 0.75;
  white-space: nowrap;
}
.back-link:hover, .back-link:focus-visible { opacity: 1; }
.wordmark {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--frost);
  /* bleibt auf der hellen Sorten-Sektion lesbar (Panel-Befund: Creme auf Creme) */
  mix-blend-mode: difference;
}

.truth-label {
  position: fixed;
  bottom: 1rem;
  left: var(--edge);
  z-index: 20;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vanilla-dim);
  border: 1px solid rgba(203, 191, 174, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(26, 10, 14, 0.82);
  backdrop-filter: blur(4px);
}
@media (max-width: 700px) {
  .truth-label {
    bottom: auto;
    left: auto;
    top: 3.1rem;
    right: var(--edge);
  }
}

/* ---------- Typografie: die Kipp-Signatur ---------- */

h1, h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--frost);
  text-wrap: balance;
}
h1 em, h2 em {
  font-family: var(--font-melt);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--coral-soft);
}

/* ---------- Beat 1 · Hero ---------- */

.beat { position: relative; }

.beat-hero {
  min-height: 100svh;
  display: grid;
  overflow: hidden;
}
.hero-media,
.hero-media picture,
.hero-media img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}
.hero-media { position: relative; }
.hero-media img {
  display: block;
  object-fit: cover;
  object-position: right center;
  min-height: 100svh;
}
.hero-video { display: none; }
.cine .hero-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 1;
}
.hero-copy {
  position: relative;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: start;
  z-index: 2;
  padding: 2.5rem var(--edge);
  max-width: 34rem;
}
/* Lokaler Scrim, max. 35 %, nur hinter der Schrift */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 60% at 38% 50%,
    rgba(26, 10, 14, 0.35) 0%,
    rgba(26, 10, 14, 0.28) 45%,
    rgba(26, 10, 14, 0) 74%
  );
  pointer-events: none;
}
.hero-copy h1,
.hero-copy .flavor-line {
  text-shadow: 0 1px 3px rgba(12, 4, 6, 0.7), 0 2px 18px rgba(12, 4, 6, 0.45);
}
.flavor-line {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vanilla);
  margin-bottom: 1.3rem;
}
.beat-hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  margin-bottom: 2.2rem;
}
.spoon-cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--burgundy-void);
  background: var(--vanilla);
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  text-decoration: none;
  transition: transform 200ms ease, background-color 200ms ease;
}
.spoon-cta:hover { background: var(--frost); transform: translateY(-2px); }

.sound-chip {
  position: absolute;
  right: var(--edge);
  bottom: 1.2rem;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vanilla);
  background: rgba(26, 10, 14, 0.6);
  border: 1px solid rgba(243, 234, 217, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 200ms ease;
}
.sound-chip:hover { background: rgba(26, 10, 14, 0.85); }
.sound-chip[aria-pressed="true"] { border-color: var(--coral); color: var(--coral-soft); }

@media (max-width: 700px) {
  .beat-hero {
    min-height: auto;
    grid-template-rows: auto auto;
  }
  /* Essen zuerst: Bild Reihe 1, Copy Reihe 2 */
  .hero-media,
  .hero-media img {
    grid-area: 1 / 1;
    min-height: 0;
  }
  .hero-media img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: center;
  }
  .cine .hero-video { object-position: 62% center; }
  .hero-copy {
    grid-area: 2 / 1;
    position: static;
    padding: 2rem var(--edge) 2.6rem;
    max-width: none;
  }
  .hero-copy::before { display: none; }
  .sound-chip { bottom: auto; top: calc(100vw * 1.25 - 3.2rem); }
}

/* Hero-Choreografie: nur .cine (JS-gesetzt, nie bei Reduce) */
@media (prefers-reduced-motion: no-preference) {
  .cine .hero-media img,
  .cine .hero-video {
    animation: hero-settle 2400ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  @keyframes hero-settle {
    from { transform: scale(1.055); }
    to   { transform: scale(1); }
  }
  .cine .hero-copy [data-chor] {
    opacity: 0;
    transform: translateY(16px);
    animation: chor-in 900ms cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
  }
  .cine .hero-copy [data-chor="1"] { animation-delay: 250ms; }
  .cine .hero-copy [data-chor="2"] { animation-delay: 450ms; }
  .cine .hero-copy [data-chor="3"] { animation-delay: 800ms; }
  @keyframes chor-in { to { opacity: 1; transform: none; } }
  .cine .beat-hero h1 em {
    display: inline-block;
    filter: blur(10px);
    opacity: 0;
    animation: melt-word 1100ms 950ms cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
  }
  @keyframes melt-word { to { filter: blur(0); opacity: 1; } }
}

/* ---------- Beat 2+3 · Szenen-Journey (Schicht-Blend) ---------- */

.journey-stage { display: none; }
.cine .journey-stage { display: block; height: 100%; }

/* Brand-Freeze 2026-08-20: 5 Zustaende auf 210svh (Spec §5: 3-5 / 180-220svh) */
.cine .scene-journey { height: 210svh; }
.journey-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.journey-frames { position: absolute; inset: 0; }
/* Schicht-Blend: Frames sind standardmäßig unsichtbar; der aktive liegt
   voll deckend darunter (is-under), der eingehende blendet DARÜBER auf
   (is-over, Opacity via JS). Das Essen ist nie unter 100 % Deckkraft. */
.jframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
}
.jframe.is-under { opacity: 1; visibility: visible; z-index: 1; }
.jframe.is-over  { visibility: visible; z-index: 2; }

.journey-hud {
  position: absolute;
  top: clamp(4rem, 9vh, 6rem);
  left: var(--edge);
  z-index: 3;
}
.jlabel {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--frost);
  text-shadow: 0 1px 3px rgba(12, 4, 6, 0.75), 0 2px 18px rgba(12, 4, 6, 0.5);
  min-height: 1.2em;
}
.jlabel span { display: inline-block; }
.jlabel span.anim {
  animation: label-in 460ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
@keyframes label-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(-8px); }
  to   { opacity: 1; filter: blur(0);  transform: none; }
}
.jmeter { display: flex; gap: 0.45rem; margin-top: 0.8rem; }
.jmeter i {
  width: 1.6rem;
  height: 2px;
  background: rgba(243, 234, 217, 0.35);
  transition: background-color 300ms ease;
}
.jmeter i.is-past { background: var(--coral); }

.journey-copy {
  position: absolute;
  left: var(--edge);
  bottom: clamp(4.5rem, 12vh, 8rem);
  z-index: 3;
  max-width: 30rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.journey-copy.is-on { opacity: 1; transform: none; }
.journey-copy::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  background: radial-gradient(
    ellipse 75% 70% at 40% 55%,
    rgba(26, 10, 14, 0.35) 0%,
    rgba(26, 10, 14, 0.25) 48%,
    rgba(26, 10, 14, 0) 75%
  );
}
.journey-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 3px rgba(12, 4, 6, 0.75), 0 2px 20px rgba(12, 4, 6, 0.5);
}
.journey-copy p {
  color: var(--vanilla);
  max-width: 32ch;
  text-shadow: 0 1px 3px rgba(12, 4, 6, 0.8), 0 1px 14px rgba(12, 4, 6, 0.55);
}
.jcopy-small p {
  font-family: var(--font-melt);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--frost);
}
.journey-copy h2 em { display: inline-block; transition: filter 700ms ease, opacity 700ms ease; }
.journey-copy:not(.is-on) h2 em { filter: blur(7px); opacity: 0.2; }

/* Statischer Zwilling (Default, Reduce, No-JS) */
.journey-static {
  display: grid;
  gap: clamp(1.2rem, 3vh, 2.4rem);
  padding: var(--beat-pad) var(--edge);
  max-width: 72rem;
  margin: 0 auto;
}
.static-scene { position: relative; }
.static-scene img { display: block; width: 100%; height: auto; border-radius: 6px; }
.static-scene figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--frost);
  text-shadow: 0 1px 12px rgba(12, 4, 6, 0.8);
}
.static-copy { padding: 0.6rem 0 1.6rem; }
.static-copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.static-copy p { color: var(--vanilla-dim); max-width: 46ch; }

/* ---------- Beat 4 · Sorten: heller Vanille-Schnitt ---------- */

.beat-range {
  background: var(--vanilla);
  color: var(--burgundy-deep);
  padding: var(--beat-pad) var(--edge);
  text-align: center;
}
.beat-range h2 {
  color: var(--burgundy-void);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 2.6rem;
}
.range-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.range-list li { display: grid; gap: 0.9rem; }
.range-list li img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(43, 16, 22, 0.35);
}
.range-list li span {
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--burgundy-deep);
}
.range-note {
  margin-top: 2.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
}
.range-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.range-detail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.range-shelf {
  max-width: 56rem;
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
}
.range-shelf img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 50px -20px rgba(43, 16, 22, 0.4);
}

.range-motion {
  max-width: 56rem;
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
}
.range-motion video,
.range-motion img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 50px -20px rgba(43, 16, 22, 0.4);
}
@media (max-width: 900px) {
  .range-list { grid-template-columns: minmax(0, 420px); }
  .range-detail { grid-template-columns: minmax(0, 420px); }
}

/* Sorten-Stagger */
@media (prefers-reduced-motion: no-preference) {
  .js .range-list li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .js [data-reveal].is-in .range-list li,
  .js .range-list[data-reveal].is-in li { opacity: 1; transform: none; }
  .js [data-reveal].is-in .range-list li:nth-child(1) { transition-delay: 120ms; }
  .js [data-reveal].is-in .range-list li:nth-child(2) { transition-delay: 260ms; }
  .js [data-reveal].is-in .range-list li:nth-child(3) { transition-delay: 400ms; }
}

/* ---------- Beat 5 · Reveal (Slate) ---------- */

.beat-reveal {
  min-height: 92svh;
  display: grid;
  align-items: center;
  background: var(--slate);
  padding: var(--beat-pad) var(--edge);
}
.reveal-slate {
  width: min(100%, 68rem);
  margin: 0 auto;
}
.reveal-topline {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--vanilla-dim);
  border-bottom: 1px solid rgba(203, 191, 174, 0.25);
  padding-bottom: 0.9rem;
  margin-bottom: clamp(2rem, 6vh, 3.5rem);
}
.beat-reveal h2 {
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  line-height: 0.96;
  margin-bottom: 1.6rem;
}
.reveal-sub {
  color: var(--vanilla-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: clamp(2.2rem, 5vh, 3.2rem);
}
.reveal-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(203, 191, 174, 0.25);
  border-bottom: 1px solid rgba(203, 191, 174, 0.25);
  padding: 1.4rem 0;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.reveal-ledger dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--coral-soft);
  margin-bottom: 0.5rem;
}
.reveal-ledger dd { color: var(--vanilla); }
/* Die beste Zeile der Seite (Panel 8/11) bekommt die Buehne direkt ueber dem CTA */
.reveal-bridge {
  font-family: var(--font-melt);
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: var(--frost);
  margin-bottom: clamp(1.8rem, 4vh, 2.6rem);
  text-wrap: balance;
}
.studio-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 650;
  color: var(--burgundy-void);
  background: var(--coral);
  border-radius: 14px;
  padding: clamp(1.1rem, 2.4vh, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease;
}
.studio-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--coral-soft);
  transform: translateX(-101%);
  transition: transform 380ms cubic-bezier(0.22, 0.9, 0.3, 1);
  z-index: 0;
}
.studio-cta:hover::after { transform: translateX(0); }
.studio-cta span, .studio-cta i { position: relative; z-index: 1; font-style: normal; }
.studio-cta:hover { transform: translateY(-2px); }
.reveal-contact {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  color: var(--vanilla-dim);
  font-size: 0.95rem;
}
.reveal-contact a {
  color: var(--vanilla);
  text-decoration-color: rgba(226, 101, 63, 0.6);
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .reveal-ledger { grid-template-columns: 1fr; }
  .reveal-contact { flex-wrap: wrap; }
}

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

footer {
  padding: 2.2rem var(--edge) 4.5rem;
  font-size: 0.8rem;
  color: var(--vanilla-dim);
  text-align: center;
  background: var(--slate);
  display: grid;
  gap: 0.5rem;
}
footer a { color: var(--vanilla); }

/* ---------- Scroll-Reveals ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease;
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .range-list li { opacity: 1 !important; transform: none !important; }
  .spoon-cta, .studio-cta, .studio-cta::after { transition: none; }
}


/* ── Brand-Freeze 2026-08-20: sichtbare KI-Kennzeichnung am Bewegtbild ── */
.hero-media { position: relative; }
.range-motion { position: relative; }
.media-tag {
  position: absolute; right: var(--edge); bottom: 1rem; z-index: 6; margin: 0;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--vanilla-dim); background: rgba(26, 10, 14, 0.82);
  border: 1px solid rgba(203, 191, 174, 0.45); border-radius: 999px;
  padding: 0.35rem 0.85rem; pointer-events: none;
}
.media-tag--in { right: 0.8rem; bottom: 0.8rem; }
