/*
 * Landingpage – gleiche Formensprache wie Admin und Main: ruhige Flächen, Karten mit feinem Rand,
 * Dunkelblau als Akzent, Systemschrift. Bewusst immer hell (seriöser Auftritt); die Dunkel-Farben unten
 * greifen nur, falls später ein Umschalter data-bs-theme="dark" setzt.
 */
:root {
    --lp-primary: #1e3c72;
    --lp-primary-2: #2a5298;
    --lp-primary-soft: #e8eef8;
    --lp-accent: #f59f00;
    --lp-bg: #f4f6f9;
    --lp-surface: #ffffff;
    --lp-border: #dee2e6;
    --lp-text: #212529;
    --lp-muted: #6c757d;
    --lp-ok: #146c43;
    --lp-radius: .75rem;
    --lp-nav-h: 64px;
}
[data-bs-theme="dark"] {
    --lp-primary: #8fb3ff;
    --lp-primary-2: #6d97f0;
    --lp-primary-soft: #16233d;
    --lp-bg: #010409;
    --lp-surface: #0d1117;
    --lp-border: #30363d;
    --lp-text: #e6edf3;
    --lp-muted: #8b949e;
    --lp-ok: #56d364;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-nav-h) + 12px); }
body.lp {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.lp main a:not(.btn) { color: var(--lp-primary); }
.lp .text-muted, .lp-muted { color: var(--lp-muted) !important; }

/* ---------- Navigation ---------- */
.lp-nav {
    position: sticky; top: 0; z-index: 1030; min-height: var(--lp-nav-h);
    background: color-mix(in srgb, var(--lp-surface) 92%, transparent);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--lp-border);
}
.lp-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--lp-text) !important; }
.lp-brand img { width: 36px; height: 36px; object-fit: contain; }
.lp-brand strong { font-size: 1rem; line-height: 1.1; display: block; }
.lp-brand small { color: var(--lp-muted); font-size: .75rem; display: block; }
.lp-nav .nav-link { color: var(--lp-muted); font-weight: 500; padding: .5rem .8rem !important; border-radius: .5rem; }
.lp-nav .nav-link:hover { color: var(--lp-text); background: var(--lp-bg); }
.lp-nav .navbar-toggler { border: 1px solid var(--lp-border); padding: .35rem .55rem; }
.lp-nav .navbar-toggler:focus { box-shadow: none; }

/* ---------- Buttons ---------- */
.lp .btn-lp {
    --bs-btn-bg: var(--lp-primary); --bs-btn-border-color: var(--lp-primary);
    --bs-btn-hover-bg: var(--lp-primary-2); --bs-btn-hover-border-color: var(--lp-primary-2);
    --bs-btn-active-bg: var(--lp-primary-2); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
    font-weight: 600; border-radius: .6rem;
}
[data-bs-theme="dark"] .lp .btn-lp { --bs-btn-color: #0d1117; --bs-btn-hover-color: #0d1117; --bs-btn-active-color: #0d1117; }
.lp .btn-lp-outline {
    --bs-btn-color: var(--lp-text); --bs-btn-border-color: var(--lp-border); --bs-btn-bg: var(--lp-surface);
    --bs-btn-hover-bg: var(--lp-bg); --bs-btn-hover-border-color: var(--lp-muted); --bs-btn-hover-color: var(--lp-text);
    font-weight: 600; border-radius: .6rem;
}

/* ---------- Abschnitte ---------- */
.lp-section { padding: 4.5rem 0; }
.lp-section.alt { background: var(--lp-surface); border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }
.lp-kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-primary); margin-bottom: .5rem; }
.lp-h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: .6rem; }
.lp-lead { color: var(--lp-muted); font-size: 1.05rem; max-width: 46rem; }
.lp-head { margin-bottom: 2.25rem; }
.lp-head.center { text-align: center; }
.lp-head.center .lp-lead { margin-left: auto; margin-right: auto; }

.lp-card {
    background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
    height: 100%;
}
.lp-card .body { padding: 1.25rem; }
.lp-icon {
    width: 2.5rem; height: 2.5rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center;
    background: var(--lp-primary-soft); color: var(--lp-primary); font-size: 1.2rem; flex: 0 0 auto;
}

/* ---------- Hero ---------- */
.lp-hero { padding: 4rem 0 3.5rem; }
.lp-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1rem; }
.lp-hero h1 span { color: var(--lp-primary); }
.lp-hero .lp-lead { font-size: 1.15rem; margin-bottom: 1.75rem; }
.lp-hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--lp-muted); font-size: .92rem; }
.lp-hero-points i { color: var(--lp-ok); margin-right: .3rem; }
.lp-promo { display: inline-flex; align-items: center; gap: .5rem; background: #fff4e0; color: #7a4b00; border: 1px solid #ffd58a; border-radius: 2rem; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
[data-bs-theme="dark"] .lp-promo { background: #2b2111; color: #ffd58a; border-color: #5c4413; }

/* Produkt-Vorschau im Stil des Admin-Dashboards (nur Beispieldaten) */
.lp-mock { background: var(--lp-bg); border: 1px solid var(--lp-border); border-radius: 1rem; box-shadow: 0 24px 60px -24px rgba(16, 32, 64, .35); overflow: hidden; }
.lp-mock-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--lp-surface); border-bottom: 1px solid var(--lp-border); font-size: .8rem; color: var(--lp-muted); }
.lp-mock-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--lp-border); display: inline-block; }
.lp-mock-bar span { margin-left: .5rem; }
.lp-mock-body { padding: 1rem; display: grid; gap: .75rem; }
.lp-mock-title { font-weight: 650; font-size: 1.05rem; }
.lp-mock-title small { display: block; font-weight: 400; color: var(--lp-muted); font-size: .8rem; }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.lp-stat { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: .75rem; padding: .6rem .75rem; }
.lp-stat .n { font-size: 1.35rem; font-weight: 650; line-height: 1.1; }
.lp-stat .n small { font-size: .85rem; color: var(--lp-muted); font-weight: 500; }
.lp-stat .l { font-size: .75rem; color: var(--lp-muted); }
.lp-stat.danger .n { color: #b02a37; } .lp-stat.ok .n { color: var(--lp-ok); }
[data-bs-theme="dark"] .lp-stat.danger .n { color: #ff7b72; }
.lp-list { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: .75rem; overflow: hidden; }
.lp-list header { display: flex; justify-content: space-between; padding: .55rem .8rem; border-bottom: 1px solid var(--lp-border); font-size: .85rem; font-weight: 600; }
.lp-list header span { color: var(--lp-muted); font-weight: 400; }
.lp-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-bottom: 1px solid var(--lp-border); font-size: .85rem; }
.lp-row:last-child { border-bottom: 0; }
.lp-row .t { color: var(--lp-muted); width: 2.6rem; flex: 0 0 auto; }
.lp-row .m { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row .m small { color: var(--lp-muted); }
.lp-pill { font-size: .7rem; border-radius: 1rem; padding: .1rem .5rem; border: 1px solid var(--lp-border); color: var(--lp-muted); background: var(--lp-bg); white-space: nowrap; }
.lp-pill.ok { color: var(--lp-ok); border-color: color-mix(in srgb, var(--lp-ok) 35%, transparent); background: color-mix(in srgb, var(--lp-ok) 10%, transparent); }
.lp-pill.run { color: #997404; border-color: #f3d58a; background: #fff8e1; }
[data-bs-theme="dark"] .lp-pill.run { color: #e3b341; border-color: #5c4413; background: #2b2111; }
.lp-row.overdue { box-shadow: inset 3px 0 0 #dc3545; }

/* ---------- Vertrauensleiste ---------- */
.lp-trust { border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); background: var(--lp-surface); }
.lp-trust .item { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 0; }
.lp-trust strong { display: block; font-size: .95rem; }
.lp-trust small { color: var(--lp-muted); font-size: .8rem; }

/* ---------- Ablauf ---------- */
.lp-steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-step { position: relative; padding: 1.25rem; }
.lp-step::before {
    counter-increment: step; content: counter(step);
    width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--lp-primary); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: .75rem;
}
[data-bs-theme="dark"] .lp-step::before { color: #0d1117; }
.lp-step h3 { font-size: 1rem; font-weight: 650; margin-bottom: .35rem; }
.lp-step p { color: var(--lp-muted); font-size: .92rem; margin: 0; }
.lp-step:not(:last-child)::after {
    content: ''; position: absolute; top: 2.25rem; right: -.75rem; width: .5rem; height: .5rem;
    border-top: 2px solid var(--lp-border); border-right: 2px solid var(--lp-border); transform: rotate(45deg);
}
@media (max-width: 991.98px) {
    .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-step::after { display: none; }
}
@media (max-width: 575.98px) { .lp-steps { grid-template-columns: 1fr; } }

/* ---------- Funktionen ---------- */
.lp-feature { display: flex; gap: .9rem; padding: 1.25rem; }
.lp-feature h3 { font-size: 1rem; font-weight: 650; margin-bottom: .3rem; }
.lp-feature p { color: var(--lp-muted); font-size: .92rem; margin: 0; }

/* ---------- Galerie ---------- */
/* Handy-Screenshots (~384 px breit): in Originalgröße im Handyrahmen – nie vergrößern, nie zuschneiden */
.lp-gallery { display: flex; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: thin; }
.lp-shot { flex: 0 0 auto; width: min(320px, 78vw); scroll-snap-align: center; margin: 0; }
.lp-phone { background: #11151c; border-radius: 2.4rem; padding: .7rem; box-shadow: 0 0 0 1px #2b313b, 0 22px 50px -24px rgba(16, 32, 64, .55); }
.lp-phone img { width: 100%; height: auto; display: block; border-radius: 1.8rem; }
.lp-shot figcaption { font-size: .9rem; color: var(--lp-muted); margin-top: .75rem; text-align: center; }

/* ---------- RSA-Text ---------- */
.lp-prose p { color: var(--lp-muted); }
.lp-prose strong { color: var(--lp-text); }
.lp-benefit { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; }
.lp-benefit strong { display: block; font-size: .95rem; }
.lp-benefit span { color: var(--lp-muted); font-size: .88rem; }

/* ---------- Preise ---------- */
.lp-billing { display: inline-flex; padding: .25rem; border: 1px solid var(--lp-border); border-radius: .7rem; background: var(--lp-surface); gap: .25rem; }
.lp-billing button { border: 0; background: none; padding: .45rem 1rem; border-radius: .5rem; font-weight: 600; color: var(--lp-muted); font-size: .92rem; }
.lp-billing button.active { background: var(--lp-primary); color: #fff; }
[data-bs-theme="dark"] .lp-billing button.active { color: #0d1117; }
.lp-billing .save { font-size: .72rem; font-weight: 600; color: var(--lp-ok); margin-left: .35rem; }
.lp-billing button.active .save { color: inherit; opacity: .85; }

.lp-price { display: flex; flex-direction: column; padding: 1.5rem; position: relative; }
.lp-price.featured { border: 2px solid var(--lp-primary); box-shadow: 0 18px 40px -24px rgba(30, 60, 114, .55); }
.lp-price .tag { position: absolute; top: -.75rem; left: 1.5rem; background: var(--lp-primary); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 1rem; letter-spacing: .02em; }
[data-bs-theme="dark"] .lp-price .tag { color: #0d1117; }
.lp-price h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.lp-price .desc { color: var(--lp-muted); font-size: .88rem; min-height: 2.6em; }
.lp-price .amount { font-size: 2.2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; margin-top: .75rem; }
.lp-price .amount small { font-size: .95rem; font-weight: 500; color: var(--lp-muted); letter-spacing: 0; }
.lp-price .amount s { font-size: 1rem; color: var(--lp-muted); font-weight: 500; margin-right: .35rem; }
.lp-price .note { font-size: .82rem; color: var(--lp-muted); min-height: 1.3em; margin-bottom: 1rem; }
.lp-price .note.save { color: var(--lp-ok); font-weight: 600; }
.lp-price ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .45rem; font-size: .92rem; }
.lp-price li { display: flex; gap: .5rem; align-items: flex-start; }
.lp-price li i { color: var(--lp-ok); margin-top: .1rem; }
.lp-price li.base { color: var(--lp-muted); }
.lp-price li.base i { color: var(--lp-muted); }
.lp-price .btn { margin-top: auto; }
.lp-billing-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; color: var(--lp-muted); font-size: .88rem; margin-top: 1.75rem; }
.lp-billing-notes i { color: var(--lp-ok); margin-right: .35rem; }
/* Free: eigene, zurückhaltende Spalte im Vergleich */
.lp-compare .free-col { background: color-mix(in srgb, var(--lp-border) 35%, transparent); text-align: center; }
.lp-compare th.free-col .free-price { display: block; font-weight: 400; font-size: .8rem; color: var(--lp-muted); }
.lp-compare .free-col .partial { font-size: .85rem; font-weight: 600; color: var(--lp-muted); }
.lp-compare .free-col .base-list { display: block; }
/* Free: schmaler Hinweis unter den Paketkarten (nur bei offener Selbstanmeldung) */
.lp-free { border-style: dashed; }
.lp-free-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .92rem; }
.lp-free-facts i { color: var(--lp-ok); margin-right: .35rem; }
@media (max-width: 575.98px) { .lp-free .btn { width: 100%; } }
/* Hinweis „Modul dazubuchen“ unter Preisen und Modulen */
.lp-addon-note { border-color: color-mix(in srgb, var(--lp-primary) 35%, transparent); background: var(--lp-primary-soft); }
@media (max-width: 575.98px) { .lp-addon-note .btn { width: 100%; } }

/* ---------- Vergleich ---------- */
.lp-compare { background: var(--lp-surface); border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; }
.lp-compare table { margin: 0; --bs-table-bg: transparent; }
.lp-compare th, .lp-compare td { padding: .7rem 1rem; border-color: var(--lp-border); vertical-align: middle; }
.lp-compare thead th { font-size: .9rem; background: var(--lp-bg); text-align: center; }
.lp-compare thead th:first-child { text-align: left; }
.lp-compare thead th.featured { color: var(--lp-primary); }
.lp-compare td:not(:first-child) { text-align: center; width: 15%; }
.lp-compare td.featured, .lp-compare th.featured { background: color-mix(in srgb, var(--lp-primary) 5%, transparent); }
.lp-compare .yes { color: var(--lp-ok); font-size: 1.1rem; }
.lp-compare .no { color: var(--lp-border); font-size: 1.1rem; }
.lp-compare .group td { background: var(--lp-bg); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lp-muted); padding-top: .5rem; padding-bottom: .5rem; }
.lp-compare .base-list { display: block; color: var(--lp-muted); font-size: .82rem; }
.lp-compare button.lp-info { border: 0; background: none; padding: 0 0 0 .3rem; color: var(--lp-muted); }
.lp-compare button.lp-info:hover { color: var(--lp-primary); }
.lp-compare-label { min-width: 14rem; }
/* Handy: alle Pakete nebeneinander, Häkchen-Spalten schmal, Details der Grundausstattung ausgeblendet */
@media (max-width: 575.98px) {
    .lp-compare-label { min-width: 0; }
    .lp-compare th, .lp-compare td { padding: .55rem .35rem; font-size: .82rem; }
    .lp-compare th:first-child, .lp-compare td:first-child { padding-left: .75rem; }
    .lp-compare thead th { font-size: .72rem; line-height: 1.2; hyphens: auto; }
    .lp-compare td:not(:first-child) { width: 3.6rem; }
    .lp-compare .base-list { display: none; }
    .lp-compare button.lp-info { display: none; }
}

/* ---------- Module ---------- */
.lp-filter { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.75rem; }
.lp-filter button { border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-muted); border-radius: 2rem; padding: .35rem .9rem; font-size: .88rem; font-weight: 600; }
.lp-filter button.active { background: var(--lp-text); border-color: var(--lp-text); color: var(--lp-surface); }
.lp-filter button span { opacity: .7; font-weight: 500; margin-left: .25rem; }
.lp-module { display: flex; gap: .9rem; padding: 1.1rem 1.15rem; }
.lp-module h3 { font-size: .98rem; font-weight: 650; margin: 0 0 .25rem; }
.lp-module p { color: var(--lp-muted); font-size: .9rem; margin: 0; }
.lp-badge { display: inline-block; font-size: .72rem; font-weight: 600; border-radius: 1rem; padding: .12rem .55rem; margin-bottom: .45rem; border: 1px solid var(--lp-border); color: var(--lp-muted); }
.lp-badge.core { color: var(--lp-ok); border-color: color-mix(in srgb, var(--lp-ok) 35%, transparent); background: color-mix(in srgb, var(--lp-ok) 8%, transparent); }
.lp-badge.package { color: var(--lp-primary); border-color: color-mix(in srgb, var(--lp-primary) 35%, transparent); background: var(--lp-primary-soft); }
.lp-badge.addon { color: #997404; border-color: #f3d58a; background: #fff8e1; }
[data-bs-theme="dark"] .lp-badge.addon { color: #e3b341; border-color: #5c4413; background: #2b2111; }
.lp-module-item.is-hidden { display: none; }
.lp-module-item.is-flash .lp-card { outline: 2px solid var(--lp-primary); outline-offset: 2px; transition: outline-color 1.2s; }

/* ---------- FAQ ---------- */
.lp-faq .accordion { --bs-accordion-bg: var(--lp-surface); --bs-accordion-border-color: var(--lp-border); --bs-accordion-border-radius: var(--lp-radius); --bs-accordion-inner-border-radius: calc(var(--lp-radius) - 1px); --bs-accordion-active-bg: var(--lp-primary-soft); --bs-accordion-active-color: var(--lp-text); --bs-accordion-btn-focus-box-shadow: none; }
.lp-faq .accordion-button { font-weight: 600; }
.lp-faq .accordion-body { color: var(--lp-muted); }
.lp-faq .accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.lp-cta { background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-2) 100%); color: #fff; border-radius: 1.25rem; padding: 3rem 2rem; text-align: center; }
[data-bs-theme="dark"] .lp-cta { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); }
.lp-cta h2 { font-weight: 750; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lp-cta p { opacity: .85; max-width: 38rem; margin: .5rem auto 1.5rem; }
.lp-cta .btn-light { font-weight: 600; border-radius: .6rem; color: #1e3c72; }
.lp-cta .btn-outline-light { font-weight: 600; border-radius: .6rem; }

/* ---------- Weitere Bereiche + Footer ---------- */
.lp-eco { display: block; padding: 1.1rem 1.2rem; text-decoration: none; color: inherit !important; transition: border-color .15s; }
.lp-eco:hover { border-color: var(--lp-primary); }
.lp-eco small { color: var(--lp-primary); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.lp-eco strong { display: block; margin: .2rem 0 .25rem; }
.lp-eco span { color: var(--lp-muted); font-size: .88rem; }
.lp-partner { text-align: center; color: var(--lp-muted); font-size: .9rem; padding: 1.5rem 0 0; }
.lp-partner strong { color: var(--lp-text); }
.lp-footer { background: var(--lp-surface); border-top: 1px solid var(--lp-border); padding: 3rem 0 1.5rem; font-size: .92rem; }
.lp-footer h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-muted); font-weight: 700; margin-bottom: .9rem; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.lp-footer a { color: var(--lp-text); text-decoration: none; }
.lp-footer a:hover { color: var(--lp-primary); }
.lp-footer .bottom { border-top: 1px solid var(--lp-border); margin-top: 2rem; padding-top: 1.25rem; color: var(--lp-muted); font-size: .85rem; }

/* ---------- Handy ---------- */
@media (max-width: 767.98px) {
    .lp-section { padding: 3rem 0; }
    .lp-hero { padding: 2.25rem 0 2.5rem; }
    .lp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-stat .n { font-size: 1.1rem; }
    .lp-cta { padding: 2.25rem 1.25rem; border-radius: 1rem; }
    .lp-price .desc { min-height: 0; }
    .lp-hero .btn-lg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Großer Spaltenabstand (g-5) ragt auf schmalen Handys über den Rand */
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
