/* ═══════════════════════════════════════════════════════════════════
   Twinkle — One-Pager
   Markenfarben aus lib/src/theme/app_theme.dart
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --green:  #3F5F53;
  --sage:   #8FB3A2;
  --cream:  #FCF5EB;
  --paper:  #FDF8F1;
  --ink:    #1F2933;
  --deep:   #0E1A16;
  --deep-2: #16281F;

  --radius: 26px;
  --shadow: 0 22px 60px rgba(15, 29, 24, .10), 0 2px 6px rgba(15, 29, 24, .04);
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --film-scroll: 620vh; /* Länge der gepinnten Film-Sektion */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 12px 18px;
  border-radius: 0 0 14px 0; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 0; }

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

.wrap {
  width: min(100% - 44px, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 44px, 760px); }

/* ───────────────────────────── Typo ───────────────────────────── */

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
}
.kicker--dark { color: var(--green); opacity: .8; }

.h2 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
.h2--light { color: var(--paper); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 62ch;
  color: rgba(31, 41, 51, .72);
  margin: 0 0 40px;
}
.lead--light { color: rgba(253, 248, 241, .74); }

.note {
  margin: 34px 0 0;
  font-size: 15px;
  color: rgba(31, 41, 51, .6);
}
.note--light { color: rgba(253, 248, 241, .6); }

/* ──────────────────────────── Buttons ─────────────────────────── */

.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease);
  box-shadow: 0 10px 26px rgba(15, 29, 24, .18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 29, 24, .26); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(253, 248, 241, .3);
}
.btn--ghost:hover { background: rgba(253, 248, 241, .08); box-shadow: inset 0 0 0 1.5px rgba(253, 248, 241, .55); }
.btn--light { background: var(--paper); color: var(--deep); }

/* ────────────────────────────── Nav ───────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 40px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-stuck {
  background: rgba(252, 245, 235, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(31, 41, 51, .07);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -.02em; font-size: 18px;
  text-decoration: none; color: var(--paper);
  transition: color .4s var(--ease);
}
.nav__brand img { border-radius: 9px; }
.nav__links {
  margin-left: auto;
  display: flex; gap: 26px;
  font-size: 14px; font-weight: 500;
}
.nav__links a {
  color: rgba(253, 248, 241, .78);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav.is-stuck .nav__brand { color: var(--ink); }
.nav.is-stuck .nav__links a { color: rgba(31, 41, 51, .66); }
.nav.is-stuck .nav__links a:hover { color: var(--green); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ────────────────────────────── Hero ──────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #1c3229 0%, var(--deep) 62%),
    var(--deep);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero__glow {
  position: absolute;
  left: 50%; top: 58%;
  width: min(1200px, 130vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(143, 179, 162, .22) 0%, rgba(143, 179, 162, 0) 62%);
  z-index: -1;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

.hero__inner {
  text-align: center;
  padding: 130px 24px 120px;
  max-width: 900px;
}
.hero__logo {
  height: 62px; width: auto;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
  opacity: .95;
  animation: rise 1s var(--ease) both;
}
.hero__title {
  font-size: clamp(38px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  color: var(--paper);
  margin: 0 0 24px;
  animation: rise 1s var(--ease) .1s both;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--sage) 10%, #dff0e6 55%, var(--sage) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(16px, 1.7vw, 20px);
  color: rgba(253, 248, 241, .68);
  max-width: 58ch;
  margin: 0 auto 38px;
  animation: rise 1s var(--ease) .2s both;
}
.hero .kicker { animation: rise 1s var(--ease) .05s both; }
.hero__cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: rise 1s var(--ease) .3s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(253, 248, 241, .45);
}
.hero__scroll i {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(253, 248, 241, .5), transparent);
  animation: drop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* ───────────────────── Der Film (gepinnte Szene) ──────────────── */

.film {
  position: relative;
  background: var(--deep);
}
.film__scroll { height: var(--film-scroll); }

.film__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 50% 40%, #1b2f26 0%, var(--deep) 70%),
    var(--deep);
}
.film__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.film__vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 60% at 50% 45%, transparent 40%, rgba(6, 14, 11, .72) 100%),
    linear-gradient(to bottom, rgba(6, 14, 11, .5), transparent 22%, transparent 68%, rgba(6, 14, 11, .85));
}

.film__captions {
  position: absolute;
  left: 0; right: 0; bottom: clamp(64px, 11vh, 130px);
  display: grid;
  padding-inline: clamp(20px, 6vw, 80px);
  pointer-events: none;
}
.cap {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 30rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.cap.is-active { opacity: 1; transform: none; }
.cap__no {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .3em;
  color: var(--sage);
  margin-bottom: 10px;
}
.cap h3 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--paper);
  margin: 0 0 12px;
}
.cap p {
  margin: 0;
  color: rgba(253, 248, 241, .66);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 44ch;
}

.film__progress {
  position: absolute;
  left: clamp(20px, 6vw, 80px);
  right: clamp(20px, 6vw, 80px);
  bottom: clamp(30px, 5vh, 54px);
  height: 2px;
  background: rgba(253, 248, 241, .13);
  border-radius: 2px;
  overflow: hidden;
}
.film__progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sage), var(--paper));
  border-radius: 2px;
}
.film__hint {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: clamp(44px, 7vh, 74px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(253, 248, 241, .38);
  transition: opacity .5s var(--ease);
}
.film__hint.is-hidden { opacity: 0; }

/* ──────────────────────────── Sektionen ───────────────────────── */

.section { padding: clamp(88px, 13vh, 150px) 0; }
.section--dark {
  background: linear-gradient(160deg, var(--deep-2), var(--deep));
  color: var(--paper);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 46px;
}
.card {
  background: #fff;
  border: 1px solid rgba(31, 41, 51, .05);
  border-radius: var(--radius);
  padding: 34px 30px 36px;
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(15, 29, 24, .14); }
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green), #57806f);
  color: var(--cream);
  font-size: 19px;
  margin-bottom: 20px;
}
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.card p { margin: 0; color: rgba(31, 41, 51, .66); font-size: 16px; }

/* Zweispaltig: die Überschrift bleibt links stehen, während rechts die
   Punkte durchlaufen. Bewusst anders als die Karten weiter oben. */
.duo {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.duo__side { position: sticky; top: 96px; }
.duo__side .lead { margin-bottom: 0; }

.duo__list { list-style: none; margin: 0; padding: 0; }
.duo__list li {
  padding: 26px 0;
  border-bottom: 1px solid rgba(31, 41, 51, .1);
}
.duo__list li:first-child { padding-top: 0; }
.duo__list h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2vw, 21px);
  letter-spacing: -.02em;
}
.duo__list p {
  margin: 0;
  color: rgba(31, 41, 51, .66);
  font-size: 16px;
}

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo__side { position: static; }
  .duo__side .lead { margin-bottom: 8px; }
}

/* ─────────────────────────── Match Check ──────────────────────── */

.qr { display: grid; place-items: center; margin: 44px 0 30px; }
.qr__frame {
  position: relative;
  width: 190px; height: 190px;
  border-radius: 26px;
  background: rgba(253, 248, 241, .05);
  box-shadow: inset 0 0 0 1px rgba(143, 179, 162, .35);
  overflow: hidden;
}
.qr__dots {
  position: absolute; inset: 22px;
  background-image:
    radial-gradient(circle, var(--sage) 46%, transparent 47%),
    radial-gradient(circle, rgba(143, 179, 162, .45) 46%, transparent 47%);
  background-size: 24px 24px, 12px 12px;
  background-position: 0 0, 6px 6px;
  opacity: .55;
  border-radius: 8px;
}
.qr__scan {
  position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(143, 179, 162, .35), transparent);
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(-40%); }
  50%      { transform: translateY(230%); }
}

/* ──────────────────────────── Mission ─────────────────────────── */

.quote {
  margin: clamp(56px, 8vh, 90px) auto 0;
  max-width: 780px;
  text-align: center;
}
.quote p {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.24;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--green);
}
.quote footer { font-size: 15px; color: rgba(31, 41, 51, .58); }

/* ────────────────────────────── CTA ───────────────────────────── */

.cta {
  position: relative;
  padding: clamp(90px, 14vh, 160px) 0;
  background: radial-gradient(100% 100% at 50% 0%, #1c3229, var(--deep) 70%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta__inner { position: relative; }
.cta__icon { margin: 0 auto 26px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───────────────────────────── Footer ─────────────────────────── */

.footer {
  background: var(--deep);
  color: rgba(253, 248, 241, .55);
  padding: 40px 0;
  font-size: 14px;
}
/* Drei Spalten mit gleich breiten Aussenspalten: die Links sitzen dadurch
   exakt in der Seitenmitte, Logo und Copyright jeweils in ihrer Ecke. */
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: clamp(18px, 3vw, 44px);
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--paper); font-weight: 700;
}
.footer__brand img { border-radius: 8px; }
.footer__links {
  display: flex; gap: 22px; flex-wrap: wrap;
  justify-content: center;
}
.footer__links a { text-decoration: none; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--paper); }
.footer__copy { margin: 0; text-align: right; }

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer__copy { text-align: center; }
}

/* ────────────────────────── Reveal-Effekt ─────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────────────── Reduzierte Bewegung / Fallback ───────────── */

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