/* Fragbar landing page — LP Ticket 02 W3 + Ticket 115 W2 (fleet-frontend).
 *
 * Hand-written static CSS (no build step, no framework — F31). The visual
 * language follows the widget design tokens (Ticket 90 F38.6): restrained
 * greyscale, accent = ink (monochrome system, Ticket 111), rem spacing, one
 * focus ring. impressum.html and datenschutz.html share this file — their
 * header/footer/section/form classes stay untouched. */

:root {
  --lp-ink: #111827;
  --lp-muted: #4b5563;
  --lp-line: #e5e7eb;
  --lp-surface: #ffffff;
  --lp-tint: #f9fafb;
  --lp-accent: #111827;
  --lp-radius: 0.5rem;
  --lp-radius-lg: 1rem;
  --lp-space-1: 0.25rem;
  --lp-space-2: 0.5rem;
  --lp-space-3: 1rem;
  --lp-space-4: 1.5rem;
  --lp-space-5: 2.5rem;
  --lp-space-6: 4rem;
  --lp-focus: 0 0 0 3px rgba(17, 24, 39, 0.35);
  --lp-font:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-ink);
  background: var(--lp-surface);
  line-height: 1.6;
}

/* Header / footer --------------------------------------------------- */

.lp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--lp-space-3);
  padding: var(--lp-space-3) var(--lp-space-4);
  border-bottom: 1px solid var(--lp-line);
}

.lp-brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.lp-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.lp-brand-mark {
  display: block;
  flex: none;
}

.lp-header-nav a,
.lp-footer nav a {
  color: var(--lp-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  margin-left: var(--lp-space-3);
}

.lp-header-nav a:focus-visible,
.lp-footer nav a:focus-visible,
.lp-form a:focus-visible,
section a:focus-visible {
  outline: none;
  box-shadow: var(--lp-focus);
  border-radius: var(--lp-radius);
}

.lp-footer {
  border-top: 1px solid var(--lp-line);
  padding: var(--lp-space-4);
  color: var(--lp-muted);
  font-size: 0.9rem;
}

.lp-footer p {
  margin: var(--lp-space-2) 0 0;
}

/* Sections ----------------------------------------------------------- */

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--lp-space-4);
}

/* The V2 landing page uses the wider content band (Ticket 111 mockup:
 * 68rem wrap); the legal pages keep the narrow default. */
.lp-main-wide {
  max-width: 68rem;
}

.lp-section {
  padding: var(--lp-space-5) 0;
  border-bottom: 1px solid var(--lp-line);
}

.lp-section:last-of-type {
  border-bottom: none;
}

.lp-v2-section {
  padding: var(--lp-space-6) 0;
}

.lp-v2-section:last-of-type {
  padding-bottom: var(--lp-space-5);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 var(--lp-space-3);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

/* V2 headings live in the wide band */
.lp-main-wide h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lp-main-wide h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 var(--lp-space-3);
}

.lp-lead {
  color: var(--lp-muted);
  max-width: 34rem;
  margin-bottom: var(--lp-space-5);
}

/* Hero ---------------------------------------------------------------- */

.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  padding: var(--lp-space-6) 0;
}

.lp-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: var(--lp-space-2);
}

.lp-hero h1 em {
  font-style: normal;
  box-shadow: inset 0 -0.14em 0 var(--lp-line);
}

.lp-hero-lede {
  font-size: 1.08rem;
  color: var(--lp-muted);
  max-width: 32rem;
  margin-bottom: var(--lp-space-4);
}

.lp-cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.lp-button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-accent);
  cursor: pointer;
  justify-self: start;
  transition: transform 0.15s ease, background 0.15s ease;
}

.lp-button:active {
  transform: scale(0.97);
}

.lp-button-primary {
  background: var(--lp-accent);
  color: #ffffff;
}

.lp-button-primary:hover {
  background: #000000;
}

.lp-button-ghost {
  background: transparent;
  color: var(--lp-ink);
  border: 1.5px solid var(--lp-ink);
}

.lp-button-ghost:hover {
  background: var(--lp-tint);
}

.lp-button:focus-visible {
  outline: none;
  box-shadow: var(--lp-focus);
}

/* Demo-Karte (proof) ---------------------------------------------------- */

.lp-proof {
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(17, 24, 39, 0.25);
  background: var(--lp-surface);
  min-height: 18rem;
  display: flex;
  flex-direction: column;
}

.lp-proof-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-tint);
}

.lp-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lp-line);
}

.lp-dot-on {
  background: var(--lp-ink);
}

.lp-proof-body {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  font-size: 0.93rem;
  flex: 1;
  align-content: start;
  overflow: hidden;
}

.lp-proof-cap {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--lp-line);
  font-size: 0.78rem;
  color: var(--lp-muted);
  background: var(--lp-tint);
  margin: 0;
}

.lp-bub {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 0.9rem;
}

.lp-bub-q {
  justify-self: end;
  background: var(--lp-ink);
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
  animation: bubIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.lp-bub-a {
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
  border-bottom-left-radius: 0.25rem;
}

.lp-src {
  font-size: 0.78rem;
  color: var(--lp-muted);
  margin-top: 0.5rem;
  animation: fadeIn 0.5s ease both;
}

.lp-src a {
  color: var(--lp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-typing {
  justify-self: start;
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
  border-radius: 0.9rem;
  border-bottom-left-radius: 0.25rem;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.lp-typing i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--lp-muted);
  display: inline-block;
  animation: blink 1.1s infinite;
}

.lp-typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.lp-typing i:nth-child(3) {
  animation-delay: 0.36s;
}

.lp-cursor {
  display: inline-block;
  width: 0.5ch;
  background: var(--lp-ink);
  animation: blinkCaret 0.9s steps(1) infinite;
  margin-left: 1px;
  vertical-align: baseline;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes blinkCaret {
  50% {
    opacity: 0;
  }
}

@keyframes bubIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* KPI-Zeile (Tint-Band) -------------------------------------------------- */

.lp-kpis {
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-tint);
}

.lp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: var(--lp-space-5) 0;
}

.lp-kpi b {
  display: block;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lp-kpi span {
  font-size: 0.82rem;
  color: var(--lp-muted);
}

/* Ablauf: Timeline mit zeichnender Fortschrittslinie ---------------------- */

.lp-steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: lp-schritt;
}

.lp-step {
  position: relative;
  padding: 1.75rem 1.5rem 0 0;
  counter-increment: lp-schritt;
}

.lp-step::before {
  content: "0" counter(lp-schritt);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--lp-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.lp-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lp-line);
  transform-origin: left;
}

.lp-step.drawn::after {
  background: var(--lp-ink);
  animation: drawLine 0.5s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.lp-step.drawn:nth-child(2)::after {
  animation-delay: 0.12s;
}

.lp-step.drawn:nth-child(3)::after {
  animation-delay: 0.24s;
}

.lp-step.drawn:nth-child(4)::after {
  animation-delay: 0.36s;
}

.lp-step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lp-step p {
  font-size: 0.88rem;
  color: var(--lp-muted);
  margin: 0;
}

@keyframes drawLine {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Nach der Beta (geplant, gestrichelt) ------------------------------------ */

.lp-v2-planned {
  border: 1px dashed var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: var(--lp-space-5);
}

.lp-planned-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.lp-chip {
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--lp-muted);
  background: var(--lp-surface);
}

.lp-planned-note {
  font-size: 0.85rem;
  color: var(--lp-muted);
}

/* Für wen ------------------------------------------------------------------ */

.lp-who {
  max-width: 46rem;
}

.lp-who-yes {
  font-size: 1.02rem;
}

.lp-who-no {
  margin-top: var(--lp-space-4);
  padding: 1.1rem 1.35rem;
  background: var(--lp-tint);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  font-size: 0.95rem;
  color: var(--lp-muted);
}

/* Beta-Panel (invers) ------------------------------------------------------ */

.lp-beta-panel {
  background: var(--lp-ink);
  color: #ffffff;
  border-radius: 1.25rem;
  padding: 3.25rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.lp-beta-panel h2 {
  color: #ffffff;
}

.lp-beta-lead {
  color: #d1d5db;
  margin-bottom: var(--lp-space-2);
}

.lp-dots {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

.lp-pdot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.lp-pdot-fill {
  background: #ffffff;
  border-color: #ffffff;
}

.lp-beta-note {
  color: #d1d5db;
  font-size: 0.875rem;
}

.lp-beta-form {
  background: #ffffff;
  color: var(--lp-ink);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

/* Ticket 119: Formulare im Grid schrumpfen dürfen (min-content-Default
   überläuft sonst die Panel-Kante auf schmalen Viewports). */
.lp-beta-form,
.lp-form {
  min-width: 0;
}

/* Waitlist form (Bestand, LP105) -------------------------------------------- */

.lp-form {
  display: grid;
  gap: var(--lp-space-2);
  max-width: 32rem;
}

.lp-label {
  font-weight: 600;
}

.lp-input {
  font: inherit;
  /* Ticket 119: iOS-Zoom-Floor (F39.4, Widget-103-Präzedenz) — unter
     16px zoomt iOS Safari das Formular beim Fokus. */
  font-size: max(1rem, 16px);
  color: inherit;
  padding: var(--lp-space-2) var(--lp-space-3);
  border: 1px solid var(--lp-line);
  border-radius: 0.5rem;
  background: var(--lp-surface);
  width: 100%;
  transition: border-color 0.15s ease;
}

.lp-input:focus-visible {
  outline: none;
  box-shadow: var(--lp-focus);
}

.lp-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--lp-space-2);
  margin-top: var(--lp-space-2);
}

.lp-consent-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--lp-accent);
}

.lp-consent-checkbox:focus-visible {
  outline: none;
  box-shadow: var(--lp-focus);
}

.lp-consent-label {
  font-size: 0.95rem;
  color: var(--lp-muted);
}

.lp-status-zone {
  min-height: 1.5rem;
}

.lp-status {
  margin: var(--lp-space-2) 0 0;
  color: var(--lp-muted);
}

.lp-status-erfolg {
  color: var(--lp-ink);
  font-weight: 600;
}

.lp-legal-hint {
  font-size: 0.85rem;
  color: var(--lp-muted);
  margin-top: var(--lp-space-2);
  margin-bottom: 0;
}

.lp-beta-form .lp-legal-hint {
  color: var(--lp-muted);
}

/* FAQ-Karten ------------------------------------------------------------------ */

.lp-faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--lp-muted);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: var(--lp-focus);
}

.lp-pm {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid var(--lp-muted);
  color: var(--lp-muted);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.faq-item[open] .lp-pm {
  background: var(--lp-ink);
  border-color: var(--lp-ink);
  color: #ffffff;
  transform: rotate(45deg);
}

.lp-faq-a {
  padding: 0 1.35rem 1.15rem;
  color: var(--lp-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0;
}

.faq-item[open] .lp-faq-a {
  opacity: 0;
  transform: translateY(-6px);
  animation: faqIn 0.35s ease forwards;
}

@keyframes faqIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll-Reveal ------------------------------------------------------------- */
/* Hidden state only when JS is active (class "lp-js" on <html>): without
 * JavaScript every section stays visible — no content behind opacity:0. */

.lp-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Mobile breakpoint ----------------------------------------------------------- */

/* Über-uns (Ticket 121, F45) ------------------------------------------------- */

.lp-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 46rem;
}

.lp-person {
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 1.5rem;
}

.lp-person h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.lp-person-role {
  font-size: 0.85rem;
  color: var(--lp-muted);
  margin: 0 0 0.75rem;
}

.lp-person-role a {
  color: var(--lp-ink);
}

.lp-person p:last-child {
  font-size: 0.93rem;
  color: var(--lp-muted);
  margin: 0;
}

@media (max-width: 52rem) {
  .lp-people {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .lp-hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    gap: var(--lp-space-5);
  }

  .lp-kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .lp-steps-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .lp-step {
    padding-right: 0;
  }

  .lp-beta-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  /* Ticket 119: Punkte-Reihe passt sonst nicht auf 360px-Viewports
     (10 × 1.6rem + 9 × 0.5rem + Paddings > 390px gemessen). */
  .lp-dots {
    flex-wrap: wrap;
  }

  .lp-pdot {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* Legal pages: keep the narrow V1 heading scale -------------------------- */

@media (min-width: 48em) {
  .lp-main-wide h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* Reduced motion: ALL animations off ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .lp-js .reveal {
    opacity: 1;
    transform: none;
  }

  .lp-cursor {
    display: none;
  }

  .faq-item[open] .lp-faq-a {
    opacity: 1;
    transform: none;
  }
}

/* Print ------------------------------------------------------------------------ */

@media print {
  .lp-cta-row,
  .lp-beta-form,
  .lp-proof,
  .lp-dots {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  section {
    padding: 1rem 0;
  }

  .lp-v2-section {
    padding: 1rem 0;
  }

  /* Same reveal reset as prefers-reduced-motion: freshly loaded, unscrolled
     sections sit in .lp-js .reveal (opacity: 0) until the observer fires —
     printing must not omit them. */
  .lp-js .reveal {
    opacity: 1;
    transform: none;
  }
}
