/* ============================================================================
   FiMa24 — Werbeseite (/), templates/pages/landing.php
   Ergänzt app.css: NUR Layout/Komponenten der Marketingseite. Farben, Radien,
   Abstände und Typo kommen ausschließlich aus den Design-Tokens von app.css
   (--accent/--color-primary = Brand-Indigo #4318FF über data-accent="indigo",
   --surface, --border, --s1…--s8, --text-*). Kein zweites Farbsystem.

   MOBIL ZUERST: Basis ist die einspaltige Telefon-Ansicht; alles Größere kommt
   über min-width-Media-Queries dazu. Animationen respektieren
   prefers-reduced-motion (globale Regel in app.css + Block am Dateiende).
   ========================================================================== */

/* ---------------------------------------------------------------- Grundgerüst */

.lp {
    margin: 0;
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Sanftes Scrollen zu den Ankern (#features …) — ohne Reduced-Motion */
html:has(.lp) { scroll-behavior: smooth; }

.lp-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--s4);
}

/* Nur für Screenreader (app.css hat keine solche Klasse) */
.lp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lp a { color: inherit; text-decoration: none; }
.lp a:hover { text-decoration: none; }

/* Tastaturbedienung: app.css setzt den Fokus-Ring für a/button/.btn
   (app.css: „.btn:focus-visible, … a:focus-visible, button:focus-visible").
   <summary> ist weder a noch button — FAQ-Akkordeon und Burger-Menü brauchen
   ihn deshalb hier, sonst wandert der Fokus unsichtbar durch die Seite. */
.lp summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Schrift auf Akzentflächen: im Dark Mode ist der Akzent aufgehellt, Weiß
   verfehlt dort AA (siehe --on-accent in app.css). */
.lp .btn { color: var(--on-accent); }
.lp .btn-secondary { color: var(--text); }
.lp h1, .lp h2, .lp h3 { margin: 0; letter-spacing: -.02em; }
.lp p { margin: 0; }
.lp ul, .lp ol { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- Kopfzeile */

.lp-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.lp-top__inner {
    display: flex;
    align-items: center;
    gap: var(--s3);
    min-height: 60px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-weight: 800;
    font-size: 1.1rem;
    margin-right: auto;
}
/* Feste Größe im CSS deckungsgleich mit width/height im HTML — das Bild
   reserviert seinen Platz vor dem Laden (kein Layout-Sprung). */
.lp-brand__mark { width: 28px; height: 28px; display: block; }

/* Desktop-Navigation und Kopf-Aktionen sind mobil ausgeblendet (Burger) */
.lp-nav { display: none; }
.lp-top__actions { display: none; }

.lp-lang {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: var(--text-sm);
}
.lp-lang a { color: var(--text-muted); font-weight: 600; }
.lp-lang a:hover { color: var(--accent); }
.lp-lang a[aria-current] { color: var(--accent); }
/* Trenner bewusst --text-muted statt --text-subtle: subtle liegt auf Weiß nur
   bei 3,2:1 und damit unter WCAG AA für Text. */
.lp-lang li + li::before { content: "·"; color: var(--text-muted); margin-right: var(--s2); }

/* Burger-Menü: natives <details>, kein JS, kein Inline-Skript */
.lp-burger { position: relative; }
.lp-burger > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}
.lp-burger > summary::-webkit-details-marker, .lp-burger > summary::marker { display: none; content: ""; }
.lp-burger__panel {
    position: absolute;
    right: 0;
    top: calc(100% + var(--s2));
    min-width: 13rem;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--e3);
    padding: var(--s2);
}
.lp-burger__panel a {
    padding: .55rem var(--s3);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.lp-burger__panel a:hover { background: var(--surface-2); color: var(--accent); }

/* ---------------------------------------------------------------- Abschnitte */

.lp-section { padding: var(--s7) 0; }
.lp-section--alt { background: var(--surface-2); }

.lp-h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
}
.lp-h1 span { display: block; color: var(--accent); }

.lp-h2 {
    font-size: 1.5rem;
    font-weight: 750;
    line-height: var(--leading-tight);
    max-width: 48rem;
}
.lp-h2 span { display: block; color: var(--text-muted); font-weight: 600; font-size: 1.1rem; margin-top: var(--s2); }

.lp-lead {
    margin-top: var(--s4);
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 44rem;
}

.lp-kicker {
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent);
}

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

.lp-hero {
    padding: var(--s6) 0 var(--s7);
    background:
        radial-gradient(120% 80% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
        var(--bg);
}
.lp-hero__grid { display: grid; gap: var(--s6); }

.lp-checks { margin-top: var(--s5); display: grid; gap: var(--s3); }
.lp-checks > li {
    display: flex;
    gap: var(--s3);
    align-items: flex-start;
    font-size: var(--text-sm);
    color: var(--text);
}
.lp-tick {
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
}

.lp-cta-row { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Beispielansicht (Mockup) — Zahlen aus DemoDataService, nie echte Daten */
.lp-mock { margin: 0; }
.lp-mock__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--e3);
    padding: var(--s5);
}
.lp-mock__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.lp-mock__account { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: var(--text-sm); }
.lp-mock__account .icon { color: var(--accent); }
.lp-mock__label { margin-top: var(--s4); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.lp-mock__label--mt { margin-top: var(--s5); }
.lp-mock__value { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lp-mock__list { margin-top: var(--s2); display: grid; gap: var(--s1); }
.lp-mock__list > li {
    display: flex;
    justify-content: space-between;
    gap: var(--s3);
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}
.lp-mock__list > li:last-child { border-bottom: 0; }
.lp-mock__note { margin-top: var(--s3); font-size: var(--text-xs); color: var(--text-muted); }

.lp-heat { margin-top: var(--s2); display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.lp-heat__cell { height: 1.5rem; border-radius: var(--radius-xs); background: var(--surface-2); }
.lp-heat__cell--paid { background: var(--accent); }
.lp-heat__cell--partial { background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); }
.lp-heat__cell--open { background: var(--surface-2); border: 1px dashed var(--border-strong); }
.lp-heat__legend { margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: var(--s3); font-size: var(--text-xs); color: var(--text-muted); }
.lp-heat__legend > li { display: inline-flex; align-items: center; gap: var(--s1); }
.lp-heat__dot { width: .75rem; height: .75rem; border-radius: 3px; display: inline-block; }

/* ---------------------------------------------------------------- Karten-Raster */

.lp-grid { margin-top: var(--s5); display: grid; gap: var(--s4); }

.lp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--s5);
    box-shadow: var(--e1);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lp-card:hover { border-color: var(--accent); box-shadow: var(--e2); transform: translateY(-2px); }
.lp-card h3 { font-size: 1.05rem; font-weight: 700; }
.lp-card p { margin-top: var(--s2); color: var(--text-muted); font-size: var(--text-sm); }

.lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: var(--s3);
}

.lp-closer {
    margin-top: var(--s5);
    font-weight: 650;
    font-size: 1.05rem;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: var(--s4);
}

/* ---------------------------------------------------------------- Belege */

.lp-proof { margin-top: var(--s5); display: grid; gap: var(--s3); }
.lp-proof > li {
    display: flex;
    gap: var(--s3);
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--s4);
    font-size: var(--text-sm);
}

/* ---------------------------------------------------------------- Sicherheit */

.lp-badges { margin-top: var(--s5); display: grid; gap: var(--s3); }
.lp-badges > li {
    display: grid;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--s4);
    text-align: center;
    justify-items: center;
}
.lp-badges__sub { color: var(--text-muted); font-size: var(--text-xs); }

/* ---------------------------------------------------------------- Einrichtung / Schritte */

.lp-steps { margin-top: var(--s5); display: grid; gap: var(--s4); counter-reset: lp-step; }
.lp-steps > li { display: flex; gap: var(--s4); align-items: flex-start; }
.lp-steps > li p { color: var(--text-muted); font-size: var(--text-sm); }
.lp-steps__num {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-note { margin-top: var(--s4); font-size: var(--text-sm); color: var(--text-muted); }
.lp-note .icon { color: var(--accent); margin-right: var(--s1); }

.lp-flow { margin-top: var(--s5); display: grid; gap: var(--s3); }
.lp-flow > li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--s3);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--s4);
}
.lp-flow > li .lp-steps__num { grid-row: span 2; }
.lp-flow > li strong { font-size: var(--text-sm); }
.lp-flow > li span:last-child { color: var(--text-muted); font-size: var(--text-xs); }

/* ---------------------------------------------------------------- Preise */

.lp-price__card {
    margin-top: var(--s5);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--e2);
    padding: var(--s5);
    max-width: 34rem;
}
.lp-price__figures { display: grid; gap: var(--s3); }
.lp-price__amount {
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.lp-price__amount span { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.lp-price__net { margin-top: var(--s3); font-size: var(--text-xs); color: var(--text-muted); }
.lp-price__card .btn { margin-top: var(--s5); }

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

.lp-faq { margin-top: var(--s5); display: grid; gap: var(--s2); max-width: 54rem; }
.lp-faq > details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--s4);
}
.lp-faq > details > summary {
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: var(--s3);
}
.lp-faq > details > summary::-webkit-details-marker, .lp-faq > details > summary::marker { display: none; content: ""; }
.lp-faq > details > summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.lp-faq > details[open] > summary::after { content: "–"; }
.lp-faq > details > p { margin-top: var(--s3); color: var(--text-muted); font-size: var(--text-sm); }

/* ---------------------------------------------------------------- CTA + Fußzeile */

.lp-cta { text-align: center; background: var(--accent-soft); }
.lp-cta .lp-h2, .lp-cta .lp-lead { margin-left: auto; margin-right: auto; }
.lp-cta .lp-cta-row { justify-content: center; }

.lp-footer { padding: var(--s6) 0 var(--s5); border-top: 1px solid var(--border); background: var(--surface); }
.lp-footer__grid { display: grid; gap: var(--s5); }
.lp-footer h3 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.lp-footer ul { margin-top: var(--s3); display: grid; gap: var(--s2); font-size: var(--text-sm); }
.lp-footer a:hover { color: var(--accent); }
.lp-footer__tagline { margin-top: var(--s3); color: var(--text-muted); font-size: var(--text-sm); max-width: 20rem; }
.lp-footer__bottom { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-muted); }

/* ============================================================== ab Tablet */

@media (min-width: 720px) {
    .lp-wrap { padding: 0 var(--s5); }
    .lp-section { padding: var(--s8) 0; }
    .lp-h1 { font-size: 2.6rem; }
    .lp-h2 { font-size: 2rem; }
    .lp-grid--2, .lp-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .lp-badges { grid-template-columns: repeat(4, 1fr); }
    .lp-proof { grid-template-columns: repeat(2, 1fr); }
    .lp-flow { grid-template-columns: repeat(2, 1fr); }
    .lp-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .lp-nav { display: flex; gap: var(--s5); font-size: var(--text-sm); font-weight: 600; }
    .lp-nav a { color: var(--text-muted); }
    .lp-nav a:hover { color: var(--accent); }
    .lp-top__actions { display: flex; align-items: center; gap: var(--s3); margin-left: var(--s5); }
    .lp-burger { display: none; }
}

/* ============================================================== ab Desktop */

@media (min-width: 1024px) {
    .lp-hero { padding: var(--s8) 0; }
    .lp-hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--s8); }
    .lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .lp-flow { grid-template-columns: repeat(5, 1fr); }
    .lp-flow > li { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: var(--s2); align-items: start; }
    .lp-flow > li .lp-steps__num { grid-row: auto; }
    .lp-h1 { font-size: 3rem; }
}

/* ============================================================== Reduced Motion
   Zusätzlich zur globalen Regel in app.css (*, *::before, *::after:
   animation/transition none) — hier gehören noch Scroll- und Transform-
   Effekte abgeschaltet, die nicht über transition laufen. */

@media (prefers-reduced-motion: reduce) {
    html:has(.lp) { scroll-behavior: auto; }
    .lp-card:hover { transform: none; }
    .lp-top { backdrop-filter: none; }
}
