/* ==========================================================================
   Willkommensseite (templates/core/intro.html): kleine Navigation, Hero, Erklärung des Produkts, Video.
   Nur hier geladen. Farben nur aus den Token von app.css – so passen Hell, Dunkel und eine eigene Akzentfarbe.
   ========================================================================== */

html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.lp { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); overflow-x: clip; }
.lp main { flex: 1; outline: none; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-5); }
.lp h2, .lp h3 { text-wrap: balance; }

/* Gemeinsame Bausteine */
.lp-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent);
}
.lp-icon--sm { width: 38px; height: 38px; border-radius: 10px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lp-actions--center { justify-content: center; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.lp-checks .icon { color: var(--accent-strong); margin-top: 2px; }
.lp-checks--sm li { font-size: var(--text); color: var(--ink-2); }
.lp-checks--sm .icon { margin-top: 3px; }

/* ---------- Navigation ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.lp-nav.is-scrolled, .lp-nav.is-open { border-bottom-color: var(--line); }
.lp-nav__bar { display: flex; align-items: center; gap: var(--space-3); height: 64px; }
.lp-nav__brand { padding: 0; flex: none; border-radius: 8px; }
.lp-nav__panel { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.lp-nav__links { margin: 0 auto; }
.lp-nav__links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lp-nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 560; white-space: nowrap;
}
.lp-nav__links a:hover { color: var(--ink); background: var(--surface-3); text-decoration: none; }
.lp-nav__tools { display: flex; align-items: center; gap: var(--space-2); }
.lp-lang { margin: 0; }
.lp-lang .segmented button { min-height: 30px; padding: 0 10px; font-size: var(--text-sm); }
.lp-theme__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }  /* im Menü sichtbar */
.lp-theme .lp-theme__sun, .lp-theme[aria-pressed="true"] .lp-theme__moon { display: none; }
.lp-theme[aria-pressed="true"] .lp-theme__sun { display: inline; }
.lp-nav__cta { flex: none; }
.lp-nav__toggle { display: none; }
.lp-nav__close, .lp-nav.is-open .lp-nav__open { display: none; }
.lp-nav.is-open .lp-nav__close { display: inline; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; isolation: isolate; padding: 72px 0 96px; }
.lp-hero::before {  /* feines Punktraster wie im Video, nach unten ausgeblendet */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 11%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.lp-hero::after {  /* warmer Schein der Akzentfarbe hinter dem Bild */
  content: ""; position: absolute; inset: -10% -10% 0 30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent);
  opacity: .8;
}
:root[data-theme="dark"] .lp-hero::after { opacity: .45; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .lp-hero::after { opacity: .45; } }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--space-5); padding: 5px 14px 5px 10px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-2);
}
.lp-eyebrow .icon { color: var(--accent-strong); }
.lp-hero__title { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 760; text-wrap: balance; }
.lp-mark {
  white-space: nowrap; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 60%, color-mix(in oklab, var(--accent) 75%, transparent) 60%, color-mix(in oklab, var(--accent) 75%, transparent) 90%, transparent 90%);
}
:root[data-theme="dark"] .lp-mark { background: none; color: var(--accent); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .lp-mark { background: none; color: var(--accent); } }
.lp-hero__lead { margin: var(--space-5) 0 0; max-width: 54ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }
.lp-hero .lp-actions { margin-top: var(--space-6); }
.lp-facts { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--text-sm); color: var(--ink-2); }
.lp-facts li { display: inline-flex; align-items: center; gap: 7px; }
.lp-facts .icon { color: var(--accent-strong); }

.lp-hero__visual { position: relative; }
.lp-window {
  position: relative; display: block; overflow: hidden; border-radius: 18px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgb(20 20 40 / .04), 0 24px 60px -18px rgb(20 20 40 / .28), 0 0 0 6px color-mix(in oklab, var(--surface) 55%, transparent);
  transition: transform .35s ease, box-shadow .35s ease;
}
:root[data-theme="dark"] .lp-window { box-shadow: 0 24px 60px -18px rgb(0 0 0 / .7), 0 0 0 6px color-mix(in oklab, var(--surface) 55%, transparent); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .lp-window { box-shadow: 0 24px 60px -18px rgb(0 0 0 / .7), 0 0 0 6px color-mix(in oklab, var(--surface) 55%, transparent); } }
.lp-window:hover { text-decoration: none; transform: translateY(-3px); }
.lp-window__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lp-window__dots { display: flex; gap: 6px; }
.lp-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-window__dots i:first-child { background: var(--accent); }
.lp-window__address {
  flex: 1; max-width: 230px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 7px; background: var(--surface-3); color: var(--ink-3); font-size: var(--text-xs); overflow: hidden; white-space: nowrap;
}
.lp-window__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-window__play {
  position: absolute; left: 50%; top: calc(50% + 19px); translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -6px color-mix(in oklab, var(--accent) 70%, black), 0 0 0 8px color-mix(in oklab, var(--accent) 25%, transparent);
  transition: transform .2s ease;
}
.lp-window__play .icon { margin-left: 3px; fill: currentColor; }
.lp-window:hover .lp-window__play { transform: scale(1.06); }
.lp-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; max-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: var(--text-sm);
}
.lp-float > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.lp-float strong { font-weight: 650; color: var(--ink); }
.lp-float small { color: var(--ink-3); font-size: var(--text-xs); }
.lp-float__icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.lp-float--a { left: -32px; bottom: -26px; }
.lp-float--b { right: -20px; top: -30px; }
.lp-float--b .lp-float__icon { background: var(--accent-soft); color: var(--accent-strong); }
@media (prefers-reduced-motion: no-preference) {
  .lp-float { animation: lp-float 6s ease-in-out infinite; }
  .lp-float--b { animation-delay: -3s; }
}
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Abschnitte ---------- */
.lp-section { padding: 96px 0; }
.lp-section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.lp-head { max-width: 700px; margin-bottom: 44px; }
.lp-head--center { margin-inline: auto; text-align: center; }
.lp-kicker { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); }
.lp-head h2 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 720; }
.lp-head p:not(.lp-kicker) { margin: 14px 0 0; font-size: var(--text-md); line-height: 1.6; color: var(--ink-2); }

/* Problem → Lösung */
.lp-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-5); align-items: stretch; }
.lp-compare__card { border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.lp-compare__card h3 { font-size: var(--text-md); margin-bottom: var(--space-4); }
.lp-compare__card--before { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px); }
.lp-compare__card--before h3 { color: var(--ink-2); }
.lp-scatter { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-scatter li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: var(--text-sm); font-weight: 560;
}
.lp-scatter li:nth-child(odd) { rotate: -1.2deg; }
.lp-scatter li:nth-child(even) { rotate: 1deg; }
.lp-scatter .icon { color: var(--ink-3); }
.lp-compare__arrow { align-self: center; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.lp-compare__card--after {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 65%);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: var(--shadow);
}
.lp-compare__card--after > p { color: var(--ink-2); margin-bottom: var(--space-4); }

/* Funktionen */
.lp-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-tile {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lp-tile:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.lp-tile h3 { font-size: var(--text-md); margin-top: 4px; }
.lp-tile p { margin: 0; color: var(--ink-2); }

/* Rollen */
.lp-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-role {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.lp-role::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.lp-role h3 { font-size: var(--text-lg); margin-top: 4px; }
.lp-role__tag { margin: 0 0 4px; font-weight: 600; color: var(--accent-strong); }

/* Ablauf */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.lp-step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lp-step::after {  /* Verbindungslinie zum nächsten Schritt */
  content: ""; position: absolute; top: 23px; left: 56px; right: calc(-1 * var(--space-4) + 8px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.lp-step:last-child::after { display: none; }
.lp-step__num {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 760; font-size: var(--text-md);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.lp-step h3 { display: flex; align-items: center; gap: 8px; font-size: var(--text-md); margin-bottom: 6px; }
.lp-step h3 .icon { color: var(--accent-strong); }
.lp-step p { margin: 0; color: var(--ink-2); font-size: var(--text); }

/* Datenschutz */
.lp-trust { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.lp-trust .lp-head { margin-bottom: var(--space-5); }
.lp-note {
  display: flex; gap: 16px; padding: 22px; border-radius: 18px;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
}
.lp-note h3 { font-size: var(--text-md); margin-bottom: 6px; }
.lp-note p { margin: 0; color: var(--ink-2); }
.lp-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-trust__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lp-trust__list h3 { font-size: var(--text); font-weight: 650; margin: 2px 0 2px; }
.lp-trust__list p { margin: 0; color: var(--ink-2); }

/* Video */
.lp-video { max-width: 980px; margin: 0 auto; }
.lp-video .intro-video__player { border-radius: 18px; box-shadow: var(--shadow-lg); }
.lp-video .intro-video__caption { text-align: center; color: var(--ink-2); }
.lp-video .intro-transcript { max-width: 760px; margin-inline: auto; }

/* Abschluss */
.lp-cta { padding-top: 80px; }
.lp-cta__box {
  text-align: center; padding: 56px 32px; border-radius: 28px;
  background: radial-gradient(640px 280px at 50% 0%, color-mix(in oklab, var(--accent) 24%, transparent), transparent 72%), var(--surface);
  border: 1px solid color-mix(in oklab, var(--accent) 38%, var(--line)); box-shadow: var(--shadow);
}
.lp-cta__mark { height: 44px; width: auto; margin: 0 auto var(--space-4); display: block; }
.lp-cta__box h2 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.35rem); letter-spacing: -.025em; font-weight: 720; }
.lp-cta__box p { max-width: 52ch; margin: 12px auto var(--space-5); color: var(--ink-2); font-size: var(--text-md); }

/* Fußbereich */
.lp-footer { padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--text-sm); }
.lp-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.lp-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.lp-footer__brand .brand { padding: 0; }
.lp-footer__top { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); color: var(--ink-2); font-weight: 600; }
.lp-footer__top:hover { color: var(--ink); }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1100px) {
  .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-6); }
  .lp-step:nth-child(3)::after { display: none; }
  .lp-float--a { left: -12px; }
  .lp-float--b { right: -8px; }
  .lp-hero__visual { margin-block: 24px; }
}

/* Navigation als Menü */
@media (max-width: 980px) {
  .lp-nav__toggle { display: inline-flex; flex: none; }
  .lp-nav__cta { margin-left: auto; }
  .lp-nav__panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--space-3);
    padding: var(--space-2) var(--space-5) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .lp-nav.is-open .lp-nav__panel { display: flex; }
  .lp-nav__links { margin: 0; }
  .lp-nav__links ul { flex-direction: column; }
  .lp-nav__links a { display: flex; min-height: var(--touch); margin-inline: -12px; font-size: var(--text-md); }
  .lp-nav__tools { justify-content: space-between; padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .lp-lang .segmented button { min-height: 36px; padding: 0 14px; }
  .lp-theme { width: auto; padding: 0 12px; margin-right: -12px; gap: 8px; color: var(--ink-2); }
  .lp-theme__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }

  .lp-hero { padding: 48px 0 72px; }
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lp-hero__visual { max-width: 720px; }
  .lp-trust { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

@media (max-width: 760px) {
  .lp-wrap { padding: 0 var(--space-4); }
  .lp-section { padding: 64px 0; }
  .lp-head { margin-bottom: 32px; }
  .lp-compare { grid-template-columns: minmax(0, 1fr); }
  .lp-compare__arrow { justify-self: center; rotate: 90deg; }
  .lp-compare__card { padding: 22px; }
  .lp-tiles, .lp-roles { grid-template-columns: minmax(0, 1fr); }
  .lp-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 20px; }
  .lp-tile h3 { margin: 0; flex: 1; min-width: 0; }
  .lp-tile p { flex-basis: 100%; }
  /* Ablauf senkrecht: Nummer links, Linie nach unten */
  .lp-steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .lp-step { flex-direction: row; gap: 16px; padding-bottom: 28px; }
  .lp-step:last-child { padding-bottom: 0; }
  .lp-step::after, .lp-step:nth-child(3)::after {
    display: block; top: 56px; bottom: 6px; left: 23px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
  }
  .lp-step:last-child::after { display: none; }
  .lp-step > div { padding-top: 10px; }
  .lp-float { display: none; }
  .lp-window { border-radius: 14px; }
  .lp-window__play { width: 56px; height: 56px; }
  .lp-cta__box { padding: 40px 20px; border-radius: 22px; }
  .lp-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Schmale Handys (ab 360 px): Navigation ohne Umbruch und ohne seitliches Scrollen */
@media (max-width: 420px) {
  .lp-nav__bar { gap: var(--space-2); }
  .lp-nav__brand .brand__mark { height: 19px; }
  .lp-nav__brand .brand__word-img { height: 20px; }
  .lp-nav__cta { padding: 0 10px; }
  .lp-nav__cta .icon { display: none; }
  .lp-hero__title { font-size: 2rem; }
  .lp-actions .btn { flex: 1 1 100%; }
  .lp-window__bar { height: 30px; padding: 0 10px; }
  .lp-window__address { display: none; }
  .lp-window__play { top: calc(50% + 15px); }
}
