/* ═══════════════════════════════════════════════════════════════════════════
   §LP-WIDESCREEN-2026-09-30 — Landing auf FHD / QHD / Ultrawide / 4K
   ---------------------------------------------------------------------------
   Vorher (gemessen mit tests/test-landing-responsive.js): der Hero war eine
   1200-px-Karte (responsive-polish.css max-width 1240, apple-light-prelogin.css
   §17 weiße Glas-Karte), die Nav auf 1300 px gedeckelt (app.css:3524). Auf
   3440 px nutzte der Hero 32 % der Breite, auf 2560 px 43 %.

   Jetzt ab 1025 px: rahmenlos, ein gemeinsamer Container min(1500px, 92vw)
   für Nav-Inhalt, Hero und Sections; Abstände und Typo per clamp().
   Unter 1025 px ändert diese Datei nichts außer dem Button-Pfeil — die
   Tablet-/Handy-Umschaltung bleibt bei den bestehenden Media Queries.

   Muss als LETZTES Landing-Stylesheet laden. Spezifität: html + body:not() +
   zwei IDs schlägt die bisherigen „body:not(.auth-ready) #landing-screen #lp-hero“-
   Regeln, ohne die Reihenfolge der übrigen Dateien anzufassen.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* §LP-ULTRAWIDE-2026-10-01: 1500 → 1520 (Vorgabe min(1520px, 92vw)). */
  --lp-container: min(1520px, 92vw);
  --lp-gutter: calc((100vw - var(--lp-container)) / 2);
}

/* „Zero-Trust“ nicht am Bindestrich umbrechen (bei 1920 px stand „Zero-“ allein). */
#landing-screen .lp-h1 .lp-nobr { white-space: nowrap; }

/* ── „Wie es funktioniert“: einzeilig, Pfeil als SVG-Maske ─────────────────
   Der Text wird bei jedem Sprachwechsel per textContent gesetzt
   (ui-render.js lpSetTextAll '#lp-hero .lp-ctas > *'), ein <svg> im Markup
   wäre danach weg. ::after überlebt das und nimmt currentColor an. */
html body #landing-screen #lp-hero .lp-ctas .lp-btn-primary,
html body #landing-screen #lp-hero .lp-ctas .lp-btn-secondary {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
html body #landing-screen #lp-hero .lp-ctas .lp-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5em !important;
  width: auto !important;
  max-width: none !important;
}
html body #landing-screen #lp-hero .lp-ctas .lp-btn-secondary::after {
  content: "";
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  /* §LP-ULTRAWIDE-2026-10-01: Pfeil nach rechts (→) wie beim Primärknopf. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
html body #landing-screen #lp-hero .lp-ctas .lp-btn-secondary:hover::after {
  transform: translateX(3px);
}

@media (min-width: 1025px) {
  /* ── Nav: Leiste über die volle Breite, Inhalt auf Container-Kante ────── */
  html body #landing-screen #lp-nav {
    max-width: none !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin: 0 !important;
    padding-left: max(clamp(1rem, 3vw, 2.5rem), var(--lp-gutter)) !important;
    padding-right: max(clamp(1rem, 3vw, 2.5rem), var(--lp-gutter)) !important;
    box-sizing: border-box !important;
  }
  html body #landing-screen #lp-nav .lp-nav-links {
    gap: clamp(1rem, 1.6vw, 2.25rem) !important;
  }
  html body #landing-screen #lp-nav .lp-nav-links a {
    font-size: clamp(0.85rem, 0.72rem + 0.22vw, 1rem) !important;
  }

  /* ── Hero: rahmenlos, gemeinsamer Container ──────────────────────────── */
  html body #landing-screen #lp-hero {
    padding: clamp(6rem, 9vh, 9rem) 0 clamp(3rem, 6vh, 6rem) !important;
  }
  html body:not(.auth-ready) #landing-screen #lp-hero .lp-hero-inner,
  html body #landing-screen #lp-hero .lp-hero-inner {
    width: var(--lp-container) !important;
    max-width: var(--lp-container) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
    column-gap: clamp(3rem, 5vw, 7rem) !important;
    row-gap: 0 !important;
    align-items: center !important;
  }

  /* Linke Spalte: Typo skaliert mit, Fließtext bleibt lesbar breit. */
  html body #landing-screen #lp-hero .lp-hero-left {
    min-width: 0 !important;
    max-width: none !important;
  }
  html body #landing-screen #lp-hero .lp-h1 {
    font-size: clamp(3.25rem, 1.6rem + 2.6vw, 6rem) !important;
    line-height: 1.04 !important;
    max-width: 14ch !important;
  }
  html body #landing-screen #lp-hero .lp-hero-sub {
    font-size: clamp(1.05rem, 0.85rem + 0.35vw, 1.35rem) !important;
    line-height: 1.65 !important;
    max-width: 62ch !important;
  }
  html body #landing-screen #lp-hero .lp-ctas {
    flex-wrap: wrap !important;
    gap: clamp(0.75rem, 1vw, 1.25rem) !important;
  }
  html body #landing-screen #lp-hero .lp-ctas .lp-btn-primary,
  html body #landing-screen #lp-hero .lp-ctas .lp-btn-secondary {
    font-size: clamp(0.95rem, 0.8rem + 0.25vw, 1.15rem) !important;
    padding: clamp(0.8rem, 0.6rem + 0.35vw, 1.1rem) clamp(1.4rem, 1rem + 0.8vw, 2.2rem) !important;
  }
  html body #landing-screen #lp-hero .lp-hero-note {
    max-width: 62ch !important;
  }

  /* Rechte Spalte: Globus oben, Terminal darunter, beide auf einer Achse
     und gleich breit — vorher 472 px gestaucht, jetzt skaliert mit. */
  html body #landing-screen #lp-hero .lp-hero-right {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    align-content: center !important;
    gap: clamp(1.25rem, 2.5vh, 2.25rem) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body #landing-screen #lp-hero .ec-globe-img-wrap {
    width: min(100%, clamp(340px, 26vw, 600px), 46vh) !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  /* globe.png ist 1235×1274 — mit contain in der quadratischen Box schnitt
     border-radius:50% die Bildkanten gerade ab. cover + 1:1 hält den Kreis
     (kappt ~1,5 % oben/unten, dort ist nur Hintergrund). */
  html body #landing-screen #lp-hero .ec-globe-img-wrap .globe-visual {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-width: none !important;
    object-fit: cover !important;
  }
  html body #landing-screen #lp-hero .lp-terminal {
    width: min(100%, 680px) !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body #landing-screen #lp-hero .lp-term-body {
    font-size: clamp(0.72rem, 0.6rem + 0.2vw, 0.9rem) !important;
  }

  /* ── Sections unterhalb: dieselbe Kante wie der Hero ──────────────────── */
  /* .lp-seed-wrap lief vorher randlos über die volle Breite (2560 px). */
  html body #landing-screen .lp-wrap,
  html body #landing-screen .lp-seed-wrap,
  html body #landing-screen #lp-lang-section > div {
    width: var(--lp-container) !important;
    max-width: var(--lp-container) !important;
    margin-inline: auto !important;
  }
}

/* ── Nav ≤ 1024 px: Burger an den rechten Rand ─────────────────────────────
   #lp-nav ist ein 3-Spalten-Grid (Logo | Links | Rechts). Sind die Links
   ausgeblendet, rückte .lp-nav-right per Auto-Placement in die MITTLERE
   Spalte — der Burger stand bei 390 px mitten in der Leiste. */
@media (max-width: 1024px) {
  html body #landing-screen #lp-nav .lp-nav-right {
    grid-column: -2 / -1 !important;
    justify-self: end !important;
  }
}

/* ── Hero-Info-Zeilen ≤ 768 px: Titel einzeilig, Text darunter ─────────────
   Vorher flex-row: „Beta aktiv“ brach in zwei Zeilen, der Beschreibungstext
   bekam eine schmale Restspalte (gequetscht). */
@media (max-width: 768px) {
  html body #landing-screen #lp-hero .lp-hero-note span {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 2px !important;
    align-items: center !important;
    text-align: left !important;
    line-height: 1.4 !important;
  }
  /* Icon (::before) links über beide Zeilen; Titel oben, Text (anonymes
     Grid-Item) landet per Auto-Placement darunter in Spalte 2. */
  html body #landing-screen #lp-hero .lp-hero-note span::before {
    grid-row: span 2 !important;
  }
  html body #landing-screen #lp-hero .lp-hero-note span strong {
    white-space: nowrap !important;
    min-width: 0 !important;
  }
}

/* ── Live-Demo (ec-landing-demo.js) hängt direkt in .lp-section, nicht in
   .lp-wrap; eine Fremdregel setzt max-width:100% → lief randlos über 1920 px. */
html body #landing-screen .ec-lp-demo {
  box-sizing: border-box !important;
  width: min(var(--lp-container), calc(100% - 32px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Zahlenband (.lp-stats): war als randloser Dunkel-Streifen mit 1-px-Fugen
   gebaut; auf hellem Grund lagen die weißen Karten Kante an Kante bis an den
   Bildschirmrand, darunter blitzte der schwarze Streifen (#0a0a12) durch. */
html body:not(.auth-ready) #landing-screen .lp-stats {
  background: transparent !important;
  border: 0 !important;
}
html body #landing-screen .lp-stats-grid {
  box-sizing: border-box !important;
  width: min(var(--lp-container), calc(100% - 32px)) !important;
  margin-inline: auto !important;
  gap: clamp(10px, 1.2vw, 20px) !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   §LP-ULTRAWIDE-2026-10-01 — 32" (QHD 2560) / 34" (Ultrawide 3440)
   ---------------------------------------------------------------------------
   Gemessen vor dieser Runde (3440 px): Hero 44 % der Breite, daneben je
   ~970 px leeres Weiß; innerhalb des Containers waren einzelne Bausteine
   nochmals eingesperrt — Spec-Box 880 px, Feature-Leiste 3 × 280 px, Preise
   als 820-px-Spalte (2 691 px hoch), Vergleichstabelle schmaler als ihr
   Rahmen, Manifest-Liste 720 px. Fließtext 11–13 px.
   Jetzt: Inhalt bleibt auf dem Container min(1520px, 92vw); die FLÄCHE
   (Hero-Hintergrund, Raster, Sektionsbänder) läuft randlos, die Bausteine
   nutzen die volle Containerbreite, Typo wächst per clamp() mit.
   Unter 1025 px ändert dieser Block nur die Nav-Schrift.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Nav-Schrift: Poppins hat ein EINSTÖCKIGES „ɑ“. Bei 13–15 px mit kurzem
   Stiel lasen sich „Features“/„Roadmap“ als „Feotures“/„Roodmap“ — der Text
   im Markup war immer korrekt. Systemschriften (SF Pro, Segoe UI, Roboto)
   haben ein zweistöckiges „a“; keine externe Schrift, kein Netzabruf. */
html body #landing-screen #lp-nav .lp-nav-links a,
html body #lp-mobile-menu a {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em !important;
}

/* Manifest: Überschrift zentriert, das Label stand allein links. */
html body #landing-screen #lp-manifest .lp-label { justify-content: center !important; }

@media (min-width: 1025px) {
  /* ── Hero: Fläche randlos, Inhalt im Container ─────────────────────────
     Weiche Licht-Ellipsen + feines Raster über die VOLLE Breite. Das Raster
     lag in app.css als dunkles ::before vor; apple-light-prelogin.css blendet
     es auf hellem Grund aus — hier kommt eine helle Fassung zurück. */
  html body:not(.auth-ready) #landing-screen #lp-hero {
    background:
      radial-gradient(ellipse 42% 58% at 80% 42%, rgba(0, 113, 227, 0.09), transparent 72%),
      radial-gradient(ellipse 38% 52% at 8% 78%, rgba(124, 92, 255, 0.06), transparent 72%),
      linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 100%) !important;
  }
  html body:not(.auth-ready) #landing-screen #lp-hero::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    animation: none !important;
    background:
      linear-gradient(rgba(0, 113, 227, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
      linear-gradient(90deg, rgba(0, 113, 227, 0.045) 1px, transparent 1px) 0 0 / 64px 64px !important;
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%) !important;
            mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%) !important;
  }
  html body #landing-screen #lp-hero .lp-hero-inner {
    position: relative !important;
    z-index: 1 !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
  }

  /* Info-Zeilen: drei Kacheln nebeneinander statt Kasten mit Liste. */
  html body:not(.auth-ready) #landing-screen #lp-hero .lp-hero-note {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(0.6rem, 0.8vw, 1rem) !important;
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  html body:not(.auth-ready) #landing-screen #lp-hero .lp-hero-note span {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 2px !important;
    align-items: start !important;
    align-content: start !important;
    padding: clamp(0.7rem, 0.9vw, 1rem) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid var(--al-border-soft, rgba(0, 0, 0, 0.06)) !important;
    border-radius: 14px !important;
    font-size: clamp(0.74rem, 0.62rem + 0.16vw, 0.875rem) !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }
  html body:not(.auth-ready) #landing-screen #lp-hero .lp-hero-note span::before { grid-row: span 2 !important; }
  html body:not(.auth-ready) #landing-screen #lp-hero .lp-hero-note span strong { display: block !important; }

  /* Rechte Spalte: Globus + Terminal als EINE Komposition — das Terminal
     überlappt den Globus leicht und liegt als Glas darüber. */
  html body #landing-screen #lp-hero .lp-hero-right { gap: 0 !important; }
  html body #landing-screen #lp-hero .ec-globe-img-wrap {
    width: min(100%, clamp(360px, 27vw, 640px), 50vh) !important;
  }
  html body #landing-screen #lp-hero .lp-terminal {
    position: relative !important;
    z-index: 2 !important;
    width: min(100%, 660px) !important;
    margin-top: calc(-1 * clamp(1.25rem, 3.5vh, 3rem)) !important;
    -webkit-backdrop-filter: saturate(160%) blur(14px) !important;
            backdrop-filter: saturate(160%) blur(14px) !important;
  }

  /* ── Bausteine auf volle Containerbreite ─────────────────────────────── */
  html body:not(.auth-ready) #landing-screen .lp-featurestrip,
  html body:not(.auth-ready) #landing-screen .lp-herofoot {
    box-sizing: border-box !important;
    width: var(--lp-container) !important;
    max-width: var(--lp-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body:not(.auth-ready) #landing-screen .lp-featurestrip { padding: 0 !important; gap: clamp(12px, 1vw, 20px) !important; }

  /* Vergleichstabelle: apple-light §… setzt display:block (Handy-Scroller) —
     auf dem Desktop schrumpfte die Tabelle dadurch auf Inhaltsbreite. */
  html body:not(.auth-ready) #landing-screen .lp-ctable {
    display: table !important;
    width: 100% !important;
    overflow: visible !important;
  }

  /* Spec-Inspector: volle Breite, Zeilen zweispaltig. */
  html body #landing-screen #lp-spec-inspector .ec-spec-box {
    max-width: none !important;
    width: 100% !important;
  }
}

@media (min-width: 1280px) {
  html body #landing-screen #lp-spec-inspector .ec-spec-body {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body #landing-screen #lp-spec-inspector .ec-spec-row.ec-spec-note { grid-column: 1 / -1 !important; }

  /* Manifest-Punkte: drei Spalten statt 720-px-Liste. */
  html body #landing-screen #lp-manifest .lp-spec-list {
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(1rem, 1.4vw, 1.75rem) !important;
  }

  /* Preise: der Inline-Wrapper (max-width:820px) stapelte drei Pläne in
     einer schmalen Spalte. Pläne jetzt nebeneinander auf Containerbreite;
     Wunsch-ID-Box, Rechtshinweis und FAQ behalten ihre Lesebreite. */
  html body #landing-screen #lp-pricing .lp-wrap > div[style*="max-width:820px"] { max-width: none !important; }
  html body #landing-screen #lp-pricing .lp-pricing-grid { gap: clamp(16px, 1.4vw, 28px) !important; }
  html body #landing-screen #lp-pricing .lp-wbox,
  html body #landing-screen #lp-pricing .lp-reveal[style*="margin-top:2.5rem"] {
    max-width: 940px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ── Flüssige Typo ab 1600 px: 11–13-px-Fließtext wächst bis 16 px mit ── */
@media (min-width: 1600px) {
  html body #landing-screen .lp-title {
    font-size: clamp(2.6rem, 1.35rem + 1.45vw, 3.9rem) !important;
  }
  html body #landing-screen .lp-sub,
  html body #landing-screen .lp-faq-summary,
  html body #landing-screen .lp-spec-text strong,
  html body #landing-screen .lp-bc-title,
  html body #landing-screen .lp-fs-text strong,
  html body #landing-screen .lp-compare-card > strong,
  html body #landing-screen .lp-meta-card > strong,
  html body #landing-screen .lp-mini-metric > strong {
    font-size: clamp(0.95rem, 0.72rem + 0.3vw, 1.2rem) !important;
  }
  html body #landing-screen .lp-sub { max-width: 62ch !important; }
  html body #landing-screen .lp-faq-body,
  html body #landing-screen .lp-fc-desc,
  html body #landing-screen .lp-ctable td,
  html body #landing-screen .lp-ctable th,
  html body #landing-screen .lp-spec-text span,
  html body #landing-screen .lp-bc-desc,
  html body #landing-screen .lp-feats li,
  html body #landing-screen .lp-truth-list li,
  html body #landing-screen .lp-truth-card > p,
  html body #landing-screen .lp-roadmap-card p,
  html body #landing-screen .lp-fs-text span,
  html body #landing-screen .lp-compare-card > span,
  html body #landing-screen .lp-meta-card > span,
  html body #landing-screen .lp-mini-metric > span,
  html body #landing-screen .lp-plan-desc,
  html body #landing-screen .lp-plan-meta,
  html body #landing-screen .lp-stat-l,
  html body #landing-screen .lp-faq-item p,
  html body #landing-screen .lp-pf-t,
  html body #landing-screen .lp-pf-d,
  html body #landing-screen .lp-cta-point,
  html body #landing-screen .lp-footer-links a,
  html body #landing-screen #lp-nav .lp-nav-cta {
    font-size: clamp(0.82rem, 0.6rem + 0.26vw, 1rem) !important;
  }
  html body #landing-screen .lp-label,
  html body #landing-screen .lp-feat-tag,
  html body #landing-screen .lp-roadmap-tag,
  html body #landing-screen .lp-roadmap-date,
  html body #landing-screen .lp-chip-secure,
  html body #landing-screen .lp-plan-badge {
    font-size: clamp(0.68rem, 0.5rem + 0.18vw, 0.85rem) !important;
  }
  html body #landing-screen #lp-spec-inspector .ec-spec-box {
    font-size: clamp(13px, 0.55rem + 0.2vw, 15px) !important;
  }
}
