/* ============================================================
   DEPESCHE — Landing (Risograph-Dispatch)
   Nur landingspezifische Styles. Tokens/Klassen kommen aus
   design-system.css — hier keine eigenen Farben/Fonts erfinden.
   ============================================================ */

:root {
  --lp-header-h: 68px;
}

html { scroll-behavior: smooth; }

/* Sanfter Anker-Sprung unter dem klebenden Header */
[id] { scroll-margin-top: calc(var(--lp-header-h) + 20px); }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 200;
  background: var(--tinte); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-s); font-weight: 700; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ============================================================
   HEADER (transparent → solid beim Scrollen)
   ============================================================ */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  background: transparent; border-bottom: 1px solid transparent;
}
.lp-header.scrolled {
  background: rgba(232, 229, 220, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--linie);
  box-shadow: 0 10px 30px -26px rgba(23, 21, 28, .8);
}
.lp-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--lp-header-h); padding-block: 10px;
}
.lp-brand {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem;
  letter-spacing: -.02em; color: var(--tinte); line-height: 1; white-space: nowrap;
}
.lp-brand:hover { color: var(--tinte); }
.lp-brand .dot { color: var(--fluor); }

.lp-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lp-nav__link {
  color: var(--tinte); font-weight: 600; font-size: .95rem;
  padding: 9px 13px; border-radius: var(--radius-s); line-height: 1;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lp-nav__link:hover { background: rgba(23, 21, 28, .06); color: var(--tinte); }
.lp-nav__cta { margin-left: 6px; }

.lp-burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--linie-stark);
  border-radius: var(--radius-s); cursor: pointer; color: var(--tinte);
}
.lp-burger__bars { position: relative; width: 20px; height: 2px; background: var(--tinte); display: block; transition: background .12s; }
.lp-burger__bars::before, .lp-burger__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--tinte);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.lp-burger__bars::before { top: -6px; }
.lp-burger__bars::after { top: 6px; }
.lp-burger[aria-expanded="true"] .lp-burger__bars { background: transparent; }
.lp-burger[aria-expanded="true"] .lp-burger__bars::before { top: 0; transform: rotate(45deg); }
.lp-burger[aria-expanded="true"] .lp-burger__bars::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--lp-header-h) + clamp(24px, 5vw, 56px));
  padding-bottom: clamp(40px, 7vw, 80px);
  min-height: 92svh; display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--tinte) 1px, transparent 1.4px);
  background-size: 7px 7px; opacity: .05; mix-blend-mode: multiply;
}
.hero__grid {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.hero__thesis { max-width: 34rem; }
.hero__eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -.02em;
  margin: 0 0 .5em;
}
.hero h1 .ink-pink { color: var(--fluor-tief); }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--tinte-60);
  line-height: 1.55; max-width: 32rem; margin: 0 0 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust {
  display: inline-flex; align-items: center; gap: .55em; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinte-60);
}
.hero__trust .ok { color: var(--erfolg); font-weight: 700; }
.hero__trust b { color: var(--kobalt); font-weight: 500; }

/* ---------- Scroll-Affordance ---------- */
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tinte-40);
}
.hero__scroll .arrow { width: 2px; height: 26px; background: var(--tinte-40); border-radius: 2px; position: relative; overflow: hidden; }
.hero__scroll .arrow::after {
  content: ""; position: absolute; left: 0; top: -60%; width: 2px; height: 60%;
  background: var(--fluor); animation: lp-scroll-hint 1.8s var(--ease) infinite;
}
@keyframes lp-scroll-hint { 0% { top: -60%; } 60%, 100% { top: 100%; } }

/* ============================================================
   HERO-SIGNATURE-ANIMATION (rein CSS/SVG, kein Bild)
   Basiszustand = ZUGESTELLT (für reduced-motion & no-JS)
   ============================================================ */
.hero__stage {
  position: relative; width: 100%; max-width: 480px; margin-inline: auto;
  aspect-ratio: 480 / 460;
}

/* Halbton-Aufblitz beim Stempeln */
.stage-flash {
  position: absolute; inset: -6% -6% -6% -6%; z-index: 3; pointer-events: none; opacity: 0;
  background-image: radial-gradient(var(--fluor) 1.4px, transparent 1.8px);
  background-size: 9px 9px; mix-blend-mode: multiply;
  animation: lp-flash .6s ease-out 1.9s 1 both;
}
@keyframes lp-flash { 0%, 100% { opacity: 0; } 45% { opacity: .5; } }

/* ---------- Route-SVG-Overlay ---------- */
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; overflow: visible; }
.route-line { fill: none; stroke: var(--kobalt); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 9; opacity: .55; }
.route-start { fill: var(--kobalt); }
.ziel-env { fill: var(--papier-3); stroke: var(--tinte); stroke-width: 2; }
.ziel-flap { fill: none; stroke: var(--kobalt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ziel-check-bg { fill: var(--fluor); transform-box: fill-box; transform-origin: center; animation: lp-check-pop .4s var(--ease) 1.9s 1 both; }
.ziel-check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes lp-check-pop { 0% { transform: scale(.2); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Fluor-Puls, wandert die Route entlang und loopt sanft.
   Ohne offset-path-Unterstützung (altes Safari) bleibt er ausgeblendet,
   statt als Streupunkt am SVG-Ursprung zu erscheinen. */
.route-pulse { display: none; }
@supports (offset-path: path('M0 0 L1 1')) {
  .route-pulse {
    display: block; fill: var(--fluor); r: 6;
    transform-box: fill-box; transform-origin: center;
    offset-path: path('M320 126 C398 150 402 58 452 60');
    offset-rotate: 0deg; offset-distance: 100%; offset-anchor: center;
    filter: drop-shadow(0 0 6px rgba(255, 61, 139, .8));
    animation: lp-pulse 5s var(--ease) infinite;
  }
}
@keyframes lp-pulse {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  38% { offset-distance: 100%; opacity: 1; }
  46% { opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- Die Depesche (Postkarte, gesetzt) ---------- */
.dispatch {
  position: absolute; left: 4%; top: 19%; width: 65%; z-index: 2;
  background: var(--papier-3); border: 1.5px solid var(--tinte);
  border-radius: var(--radius); padding: 16px 16px 14px;
  box-shadow: 6px 6px 0 var(--tinte), 0 22px 40px -26px rgba(23, 21, 28, .7);
  transform: rotate(-2.6deg);
  animation: lp-card-set .6s var(--ease) both;
}
@keyframes lp-card-set {
  0% { opacity: 0; transform: rotate(-2.6deg) translateY(20px) scale(.97); }
  100% { opacity: 1; transform: rotate(-2.6deg) translateY(0) scale(1); }
}
.dispatch__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dispatch__tag { color: var(--tinte-60); }
.dispatch__eyebrow { color: var(--fluor-tief); font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.dispatch__subject { font-family: var(--ff-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; margin-bottom: 12px; }
.dispatch__lines { display: grid; gap: 7px; margin-bottom: 14px; }
.dispatch__lines span { height: 6px; border-radius: 3px; background: var(--linie-stark); opacity: .5; }
.dispatch__lines span:nth-child(1) { width: 100%; }
.dispatch__lines span:nth-child(2) { width: 88%; }
.dispatch__lines span:nth-child(3) { width: 62%; background: var(--kobalt); opacity: .28; }
.dispatch__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dispatch__pill {
  background: var(--fluor); color: #fff; border: 1.5px solid var(--tinte);
  border-radius: var(--radius-pill); padding: 5px 12px; font-size: .72rem; font-weight: 700;
  box-shadow: 2px 2px 0 var(--tinte);
}
.dispatch__from { color: var(--tinte-40); font-size: .58rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Briefmarke mit Perforationskante (Signature-Detail) */
.briefmarke {
  flex: none; width: 46px; height: 52px; display: grid; place-items: center;
  background: var(--papier); position: relative;
  -webkit-mask: radial-gradient(circle at 0 0, #0000 3.4px, #000 3.9px) -3.5px -3.5px / 7px 7px round;
          mask: radial-gradient(circle at 0 0, #0000 3.4px, #000 3.9px) -3.5px -3.5px / 7px 7px round;
}
.briefmarke svg { width: 26px; height: 26px; }
.briefmarke .bm-env { fill: none; stroke: var(--kobalt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.briefmarke .bm-dot { fill: var(--fluor); }

/* ---------- ZUGESTELLT-Stempel (Kobalt, Rotationsversatz, Thunk) ---------- */
.stamp-zugestellt {
  position: absolute; right: 12%; top: 44%; z-index: 5;
  display: inline-flex; align-items: center; gap: .4em;
  padding: .42em .82em; border: 3px solid var(--kobalt); color: var(--kobalt);
  border-radius: 7px; background: rgba(232, 229, 220, .28);
  font-family: var(--ff-display); font-weight: 700; font-size: clamp(.8rem, 2.2vw, 1.05rem);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-9deg); opacity: 1;
  box-shadow: inset 0 0 0 1.5px rgba(35, 56, 204, .35);
  animation: lp-stamp-in .5s var(--ease) 1.9s both;
}
.stamp-zugestellt em { font-style: normal; font-size: 1.1em; }
@keyframes lp-stamp-in {
  0% { opacity: 0; transform: rotate(-9deg) scale(1.6); }
  60% { opacity: 1; transform: rotate(-9deg) scale(.9); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}

/* ---------- Live-Zähler ---------- */
.dispatch-meter {
  position: absolute; left: 6%; bottom: 2%; z-index: 6;
  display: inline-flex; align-items: baseline; gap: .5em;
  background: var(--tinte); color: #fff; padding: 8px 14px; border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0 var(--fluor); font-size: .74rem;
}
.dispatch-meter b { font-family: var(--ff-display); color: #fff; font-size: .95rem; }
.dispatch-meter .sep { color: var(--fluor); }
.dispatch-meter .mut { color: #b7b3c0; }

/* ============================================================
   SEKTIONEN
   ============================================================ */
.section__head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head p { color: var(--tinte-60); font-size: 1.05rem; margin: 0; }

.band-2 { background: var(--papier-2); }

/* ---------- Funktionen ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.feature { display: flex; flex-direction: column; }
.feature__ico {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px;
  border: 1.5px solid var(--tinte); border-radius: 11px; background: var(--papier);
  font-family: var(--ff-display); font-size: 1.15rem; box-shadow: 2px 2px 0 var(--tinte);
}
.feature:nth-child(3n+1) .feature__ico { color: var(--fluor-tief); }
.feature:nth-child(3n+2) .feature__ico { color: var(--kobalt); }
.feature:nth-child(3n) .feature__ico { color: var(--overprint); }
.feature h3 { margin: 0 0 .4em; font-size: 1.18rem; }
.feature p { color: var(--tinte-60); font-size: .95rem; margin: 0; }
.feature__note { margin-top: 14px; }

/* ---------- Ablauf in 3 Schritten ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 30px); position: relative; }
.step { position: relative; }
.step__n {
  font-family: var(--ff-mono); font-weight: 500; font-size: 2.4rem; line-height: 1;
  color: var(--kobalt); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .35em;
  margin-bottom: 16px;
}
.step__n::before { content: ""; width: 34px; height: 3px; background: var(--fluor); border-radius: 3px; }
.step h3 { margin: 0 0 .45em; font-size: 1.3rem; }
.step p { color: var(--tinte-60); margin: 0; font-size: .97rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; right: -15px; width: 30px; height: 2px;
  border-top: 2px dashed var(--linie-stark);
}

/* ---------- Zustellbarkeit ---------- */
.deliver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.deliver { }
.deliver__code {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 12px;
  font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--kobalt); border: 1px solid var(--linie-stark); border-radius: var(--radius-pill);
  padding: .3em .8em; background: var(--papier);
}
.deliver__code .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--erfolg); flex: none; }
.deliver h3 { margin: 0 0 .4em; font-size: 1.12rem; }
.deliver p { color: var(--tinte-60); font-size: .93rem; margin: 0; }
.deliver-note {
  margin-top: 26px; display: flex; align-items: center; gap: .7em; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .04em; color: var(--tinte-60);
}

/* ---------- Preis / CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .card {
  text-align: center; padding: clamp(34px, 6vw, 66px) clamp(20px, 5vw, 60px);
  background: var(--tinte); color: #fff; border-color: var(--tinte);
  box-shadow: 8px 8px 0 var(--fluor);
}
.cta-band .card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--fluor) 1.2px, transparent 1.6px);
  background-size: 10px 10px; opacity: .12;
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band .eyebrow { justify-content: center; color: var(--fluor); }
.cta-band .eyebrow::before { background: var(--fluor); }
.cta-band h2 { color: #fff; margin: 12px 0 .4em; }
.cta-band p { color: #c9c5d2; max-width: 34rem; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .price { display: inline-flex; align-items: baseline; gap: .35em; margin-bottom: 24px; }
.cta-band .price b { font-family: var(--ff-display); font-size: clamp(2.4rem, 6vw, 3.4rem); color: #fff; line-height: 1; }
.cta-band .price span { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #b7b3c0; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .btn--ghost { --fg: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn--ghost:hover { --fg: #fff; background: rgba(255, 255, 255, .12); }
.cta-band .fineprint { margin-top: 20px; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: #8b8794; }

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer { background: var(--tinte); color: #c9c5d2; padding-block: clamp(40px, 6vw, 64px) 28px; }
.lp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.lp-footer__brand { font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.lp-footer__brand .dot { color: var(--fluor); }
.lp-footer__claim { margin: 12px 0 0; max-width: 24rem; color: #9a96a5; font-size: .95rem; }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 18px 26px; justify-content: flex-end; }
.lp-footer__links a { color: #c9c5d2; font-weight: 600; font-size: .93rem; }
.lp-footer__links a:hover { color: #fff; }
.lp-footer__bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: #7d7889;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(26px, 8vw, 48px); }
  .hero { min-height: auto; padding-bottom: clamp(48px, 10vw, 72px); }
  .hero__thesis { max-width: none; }
  .hero__stage { max-width: 400px; }
  .hero__scroll { display: none; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 820px) {
  .lp-nav {
    position: fixed; left: 0; right: 0; top: var(--lp-header-h); z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    padding: 14px clamp(18px, 4vw, 40px) 20px; box-shadow: 0 20px 40px -30px rgba(23, 21, 28, .9);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: transform .24s var(--ease), opacity .24s var(--ease), visibility .24s;
  }
  .lp-header.nav-open .lp-nav { transform: none; opacity: 1; visibility: visible; }
  .lp-header.nav-open { background: rgba(232, 229, 220, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .lp-nav__link { padding: 13px 12px; font-size: 1rem; border-bottom: 1px solid var(--linie); }
  .lp-nav__link:last-of-type { border-bottom: 0; }
  .lp-nav__cta { margin: 8px 0 0; justify-content: center; }
  .lp-burger { display: inline-flex; }
}

@media (max-width: 560px) {
  .lp-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .lp-footer__links { justify-content: flex-start; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
}

@media (max-width: 380px) {
  .hero__stage { max-width: 320px; }
  .dispatch-meter { font-size: .66rem; padding: 7px 11px; }
  .stamp-zugestellt { right: 6%; }
}

/* ============================================================
   REDUCED MOTION — Endzustand (schon gestempelt), Loops aus
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll .arrow::after { animation: none; }
  .dispatch, .stamp-zugestellt, .stage-flash, .ziel-check-bg { animation: none !important; }
  .route-pulse { animation: none !important; opacity: 0; }
  .dispatch { opacity: 1; transform: rotate(-2.6deg); }
  .stamp-zugestellt { opacity: 1; transform: rotate(-9deg) scale(1); }
  .ziel-check-bg { transform: none; }
  .stage-flash { opacity: 0; }
}
