/* Fortvio – Marketing-Site */
:root {
  --green: #17311F;
  --green-2: #1A3526;
  --green-deep: #122718;
  --ac: #3D7A55;
  --ac2: #97BC62;
  --gold: #C9A24B;
  --parch: #F3EEDF;
  --bg: #F1EEE6;
  --ink: #23241E;
  --mu: #6B7280;
  --hair: rgba(0, 0, 0, 0.07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background-color: #EFEBDF;
  background-image:
    radial-gradient(120% 40% at 88% -8%, rgba(61, 122, 85, 0.10), transparent 62%),
    linear-gradient(180deg, #F5F2E9 0%, #EFEBDF 100%);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.num, h1, h2, h3, .logo { font-family: 'Space Grotesk', system-ui, sans-serif; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 50; background-color: #17311F; border-bottom: 1px solid rgba(243, 238, 223, 0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: 0.08em; color: var(--parch); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(243, 238, 223, 0.6); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--parch); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ac); color: #fff; box-shadow: 0 4px 14px rgba(61, 122, 85, 0.35); }
.btn-ghost { border: 1px solid rgba(243, 238, 223, 0.35); color: var(--parch); }
.btn-dark { background: var(--ac); color: #fff; }

/* ── Hero ────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, #1B3824 0%, var(--green) 55%, var(--green-deep) 100%); color: var(--parch); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 0; perspective: 1200px; }
.hero .kicker { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.3em; color: var(--ac2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; }
.hero h1 .gold { color: var(--gold); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero p.sub { margin: 16px 0 24px; font-size: 19px; color: #B9C7B0; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: #7E9472; padding-bottom: 8px; }
.hero-phone { justify-self: center; align-self: end; }
.hero-copy, .hero-phone { will-change: transform; }

/* Fakten-Zeile im Hero */
.hero-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 20px; width: max-content; }
.hero-facts span { display: flex; align-items: center; gap: 9px; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: #9DB394; }
.hero-facts i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* Weiche Lichtscheine — driften langsam */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 1; }
.glow-a { width: 620px; height: 620px; right: -180px; top: -220px; background: rgba(151, 188, 98, 0.16); animation: drift 16s ease-in-out infinite alternate; }
.glow-b { width: 480px; height: 480px; left: -200px; bottom: -240px; background: rgba(201, 162, 75, 0.10); animation: drift 20s ease-in-out infinite alternate-reverse; }
.glow-c { width: 520px; height: 520px; right: -180px; top: -180px; background: rgba(151, 188, 98, 0.12); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(50px, 36px, 0) scale(1.12); }
}

/* Intro-Choreografie */
.intro { opacity: 0; transform: translateY(26px); animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.intro-1 { animation-delay: 0.05s; }
.intro-2 { animation-delay: 0.15s; }
.intro-3 { animation-delay: 0.28s; }
.intro-4 { animation-delay: 0.42s; }
.intro-5 { animation-delay: 0.55s; }
.hero h1 .intro { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Hero-Phone: Einflug + Schweben + Tilt */
.tilt { transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform; }
.phone-hero {
  opacity: 0;
  animation:
    phoneIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards,
    floaty 7s ease-in-out 1.3s infinite;
}
@keyframes phoneIn {
  from { opacity: 0; transform: translateY(70px) rotateY(-16deg) rotateX(6deg); }
  to   { opacity: 1; transform: translateY(0) rotateY(0deg) rotateX(0deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Ticker-Laufband ─────────────────────────────── */
.ticker { position: relative; z-index: 2; border-top: 1px solid rgba(243, 238, 223, 0.12); overflow: hidden; background: rgba(0, 0, 0, 0.18); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0; animation: tick 36s linear infinite; }
.ticker span { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.22em; color: #8FA687; white-space: nowrap; }
.ticker i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ── Typo-Interlude ──────────────────────────────── */
.words { padding: 56px 0 40px; overflow: hidden; }
.words-lead { color: var(--mu); font-size: 18px; max-width: 52ch; margin-bottom: 22px; }
.words-stack { display: flex; flex-direction: column; line-height: 0.98; padding: 0 24px; max-width: 1080px; margin: 0 auto; }
.w { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: clamp(56px, 10.5vw, 128px); letter-spacing: -0.03em; }
.w-fill { color: var(--green); }
.w-line { color: transparent; -webkit-text-stroke: 2px rgba(35, 36, 30, 0.5); }
.w-gold { color: var(--gold); }
.words .w.rv { transform: translateX(var(--dx, 0)) translateY(14px); }
.words .w.rv.in { transform: none; }

/* ── Scrollytelling ──────────────────────────────── */
.story { padding: 8px 0 40px; }
.story-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.chapters { display: flex; flex-direction: column; position: relative; }

/* Kompakte Kapitel-Liste (Desktop): alle untereinander, aktiver groß + hell */
.story-list { display: none; }
.story-caption { display: none; }
@media (min-width: 881px) {
  .chapter { visibility: hidden; min-height: 130vh; }
  .story-list {
    display: flex; flex-direction: column;
    position: sticky; top: 108px; z-index: 3;
    margin-bottom: -60vh;
  }
  .story-item {
    text-align: left; background: none; border: 0; cursor: pointer;
    padding: 14px 0; border-bottom: 1px solid var(--hair);
    opacity: 0.4; transition: opacity 0.35s ease;
  }
  .story-item:hover { opacity: 0.75; }
  .si-head { display: flex; align-items: baseline; gap: 14px; }
  .si-no { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; }
  .si-title { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; font-size: 19px; line-height: 1.2; transition: font-size 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
  .story-item p { max-height: 0; overflow: hidden; opacity: 0; margin: 0 0 0 34px; color: var(--mu); font-size: 15px; max-width: 44ch; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, margin-top 0.35s ease; }
  .story-item.active { opacity: 1; }
  .story-item.active .si-title { font-size: 31px; }
  .story-item.active p { max-height: 140px; opacity: 1; margin-top: 10px; }
}
.chapter { min-height: 160vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.25; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.chapter.on { opacity: 1; transform: none; }
.ch-no { font-size: 15px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.chapter h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.chapter p { color: var(--mu); margin-top: 18px; max-width: 48ch; font-size: 17px; }
.ch-tag { margin-top: 20px; font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: var(--ac); text-transform: uppercase; }

.story-phone { position: sticky; top: 84px; align-self: start; padding-bottom: 24px; }
/* Breite aus Fensterhöhe abgeleitet: Handy passt immer komplett in den Viewport */
.phone-rotor { width: min(100%, calc((100vh - 215px) * 0.44)); margin: 0 auto; }
.sticky-phone { width: 100%; }
.shotstack { position: relative; }
.shotstack img { display: block; width: 100%; border-radius: 34px; transition: opacity 0.18s ease; }
.shotstack img:not(.active) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.shotstack img.active { opacity: 1; }
.story-progress { margin-top: 14px; text-align: center; font-size: 14px; letter-spacing: 0.2em; color: var(--mu); }
.ch-label { display: inline-block; margin-left: 14px; color: var(--ac); font-weight: 600; letter-spacing: 0.14em; }
.ch-label.label-in { animation: labelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes labelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 3D-Rotor: Vorderseite = Screen, Rückseite = Gehäuse mit Kamera */
.phone-rotor { position: relative; transform-style: preserve-3d; will-change: transform; }
.phone-rotor.spin-out { animation: spinOut 0.42s cubic-bezier(0.5, 0.06, 0.75, 0.6) forwards; }
@keyframes spinOut {
  from { transform: perspective(1200px) rotateY(0deg); }
  to   { transform: perspective(1200px) rotateY(180deg); }
}
.phone-rotor.spin-in { animation: spinIn 0.5s cubic-bezier(0.2, 0.5, 0.25, 1) forwards; }
@keyframes spinIn {
  from { transform: perspective(1200px) rotateY(180deg); }
  to   { transform: perspective(1200px) rotateY(360deg); }
}
.phone-rotor .sticky-phone { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.phone-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex;
}
.phone-back-inner {
  flex: 1; position: relative;
  border-radius: 34px;
  background: linear-gradient(150deg, #1C2620 0%, #10150F 70%);
  overflow: hidden;
}
.cam {
  position: absolute; top: 14px; left: 14px;
  width: 40%; aspect-ratio: 1; max-width: 110px;
  border-radius: 26%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.cam i {
  position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #3A4740 0%, #10150F 52%, #000 78%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.06), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.cam i:first-child { top: 9%; left: 9%; }
.cam i:nth-child(2) { bottom: 9%; right: 9%; }
.cam .flash {
  position: absolute; top: 14%; right: 14%; width: 13%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #E9E4D2 0%, #8C8768 70%);
  opacity: 0.85;
}
.back-mark {
  position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%);
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.34em;
  color: rgba(243, 238, 223, 0.28); padding-left: 0.34em;
}
.story-progress em { font-style: normal; margin: 0 6px; color: rgba(0, 0, 0, 0.25); }
.story-progress #chNow { color: var(--ink); font-weight: 600; }

/* ── Prinzipien / Stats ──────────────────────────── */
.zahlen { position: relative; overflow: hidden; background: linear-gradient(160deg, #1B3824 0%, var(--green) 60%, var(--green-deep) 100%); color: var(--parch); padding: 64px 0; }
.zahlen .wrap { position: relative; z-index: 2; }
.kicker-light { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.3em; color: var(--ac2); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.stat { border-left: 2px solid rgba(151, 188, 98, 0.35); padding-left: 22px; }
.stat-n { font-size: clamp(48px, 6vw, 76px); font-weight: 600; line-height: 1; color: var(--parch); font-variant-numeric: tabular-nums; }
.stat-n em { font-style: normal; font-size: 0.55em; color: var(--ac2); margin-left: 2px; }
.stat-l { margin-top: 10px; color: #9DB394; font-size: 15px; line-height: 1.45; }
.zahlen-foot { margin-top: 36px; color: #B9C7B0; font-size: 16px; max-width: 60ch; }

/* ── Galerie ─────────────────────────────────────── */
.galerie { padding: 56px 0 16px; }
.galerie .wrap { text-align: center; }
.kicker-dark { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.3em; color: var(--ac); margin-bottom: 14px; }
h2 { text-wrap: balance; }
.galerie h2, .faq h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.shots { display: flex; align-items: flex-start; gap: 26px; overflow-x: auto; overflow-y: hidden; padding: 28px 24px 34px; scroll-snap-type: x mandatory; perspective: 900px; }
.shots::-webkit-scrollbar { height: 0; }
.shots figure { scroll-snap-align: center; flex: 0 0 auto; width: 250px; text-align: center; }
/* zentriert, solange alles passt — bei Overflow normales Scrollen */
.shots figure:first-child { margin-left: auto; }
.shots figure:last-child { margin-right: auto; }
.shots figcaption { margin-top: 14px; font-size: 14px; color: var(--mu); font-weight: 500; }

/* Phone frame */
.phone { border-radius: 44px; padding: 12px; background: #0B120D; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.phone img { display: block; width: 100%; border-radius: 34px; }
.phone-hero { width: min(320px, 78vw); }
.phone.small { width: 250px; padding: 9px; border-radius: 36px; box-shadow: 0 18px 44px rgba(26, 53, 38, 0.28); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease; }
.phone.small img { border-radius: 28px; }
.shots figure:hover .phone.small { transform: translateY(-10px) rotateX(3deg) rotateY(-3deg) scale(1.02); box-shadow: 0 34px 70px rgba(26, 53, 38, 0.35); }
.sticky-phone { box-shadow: 0 34px 90px rgba(26, 53, 38, 0.4); }

/* ── Scroll-Reveals ──────────────────────────────── */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { padding: 40px 0 56px; }
details { background: #fff; border: 1px solid var(--hair); border-radius: 16px; padding: 20px 24px; margin-top: 14px; transition: box-shadow 0.25s ease; }
details[open] { box-shadow: 0 10px 28px rgba(26, 53, 38, 0.1); }
summary { font-weight: 600; cursor: pointer; font-size: 16px; }
details p { margin-top: 10px; color: var(--mu); font-size: 15px; }

/* ── Footer ──────────────────────────────────────── */
footer { border-top: 1px solid var(--hair); padding: 40px 0 56px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--mu); font-size: 14px; }
.foot a { color: var(--mu); text-decoration: none; margin-left: 20px; }
.foot a:hover { color: var(--ink); }

/* ── Legal ───────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.legal h1 { font-size: 34px; font-weight: 600; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: #444; font-size: 16px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal .muted { color: var(--mu); font-size: 14px; }
.placeholder { background: rgba(201, 162, 75, 0.12); border: 1px dashed var(--gold); border-radius: 12px; padding: 16px 20px; margin: 18px 0; color: #7a6428; }

/* ── Reduced Motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rv, .chapter { opacity: 1; transform: none; transition: none; }
  .intro, .phone-hero { animation: none; opacity: 1; transform: none; }
  .glow, .ticker-track { animation: none; }
}

/* ── Mobil ───────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; text-align: center; }
  .hero-facts { margin-inline: auto; text-align: left; }
  .hero p.sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 8px; }
  /* Phone klebt oben, Kapitel scrollen darunter durch */
  .story-phone { position: sticky; top: 64px; order: -1; z-index: 5; width: auto; margin: 0 -24px; padding: 10px 0 16px; background: linear-gradient(180deg, #F1EDE2 0%, #F1EDE2 88%, rgba(241, 237, 226, 0) 100%); min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); display: flex; flex-direction: column; }
  .phone-rotor { width: min(196px, 52vw); margin: 0 auto; }
  .phone-back-inner { border-radius: 25px; }
  .sticky-phone, .phone-back { border-radius: 32px; }
  .sticky-phone, .phone-back { padding: 8px; }
  .sticky-phone .shotstack img { border-radius: 25px; }
  .story-progress { margin-top: 10px; font-size: 12px; background: rgba(241, 238, 230, 0.9); backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 12px; width: max-content; margin-inline: auto; }
  .chapter { min-height: 175vh; padding: 20px 0; visibility: hidden; }
  .story-caption { display: grid; padding: 6px 24px 0; margin-top: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .story-caption > div { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
  .story-caption > div.active { opacity: 1; transform: none; }
  .sc-no { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
  .sc-h { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
  .sc-p { color: var(--mu); font-size: 15px; margin-top: 8px; }
  .sc-tag { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--ac); text-transform: uppercase; margin-top: 10px; }
  .chapter h2 { font-size: 26px; }
  .chapter p { font-size: 15px; }
  .ch-no { margin-bottom: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
  .words { padding: 44px 0 28px; }
  .w { font-size: clamp(42px, 12vw, 72px); }
  .phone.small { width: 200px; }
  .shots { gap: 18px; }
  .shots figure { width: 200px; }
  .zahlen { padding: 52px 0; }
}

/* Erstes Kapitel kürzer — schnellerer Weg zur ersten Drehung */
@media (min-width: 881px) { .chapter:first-of-type { min-height: 85vh; } }
@media (max-width: 880px) { .chapter:first-of-type { min-height: 95vh; } }
