/* DigitalMDMA Forms – Verkaufsseite. Helles Layout, Akzent aus dem Admin. */

:root {
    --bg: #ffffff;
    --ink: #0f172a;
    --muted: #526075;
    --line: rgba(15, 23, 42, 0.1);
    --soft: #f4f7fb;
    --accent: #2563eb;
    --accent-dim: rgba(37, 99, 235, 0.14);
    --hot: #f97316;
    --yes: #15803d;
    --no: #b91c1c;
    --max: 1120px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.fm-lp {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

.fm-skip {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 80;
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.fm-skip:focus { top: 12px; }

.wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.6rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.7rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.fm-lead, .fm-head p, .fm-plan p, .fm-notes p, .fm-footer p {
    color: var(--muted);
}

.fm-kicker, .fm-eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fm-product-logo {
    display: block;
    width: 7.5rem;
    height: auto;
    margin: 0 0 1.15rem;
}

.fm-kicker-light { color: #bfdbfe; }

.fm-head { max-width: 40rem; margin-bottom: 2rem; }

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.logo-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo { text-decoration: none; }

.logo-mark {
    display: block;
    height: 28px;
    width: auto;
}

.logo-mark.is-mark { filter: brightness(0); }

.logo-text {
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links > a:not(.btn) {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links > a:not(.btn):hover { color: var(--ink); }

.fm-lp .lp-lang-toggle {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-hot { background: var(--hot); color: #fff; }
.nav-cta, .nav-login { min-height: 40px; padding: 0.45rem 0.95rem; }

.fm-hero { padding: 4.5rem 0 3.5rem; }

.fm-hero-grid, .fm-split-grid, .fm-built-grid, .fm-story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.fm-ticks {
    list-style: none;
    margin: 1.3rem 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.fm-ticks li, .fm-plan li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fm-ticks svg, .fm-plan svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
    color: var(--accent);
}

.fm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.4rem 0 0.8rem;
}

.fm-trust { font-size: 0.92rem; }

.fm-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.fm-specs li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.fm-stage { position: relative; min-height: 420px; }

.fm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}

.fm-orb-a {
    width: 240px;
    height: 240px;
    right: 8%;
    top: 8%;
    background: radial-gradient(circle, #c4b5fd, #fb7185 70%);
    opacity: 0.85;
}

.fm-orb-b {
    width: 180px;
    height: 180px;
    left: 8%;
    bottom: 10%;
    background: radial-gradient(circle, #fdba74, #f97316 70%);
    opacity: 0.8;
}

.fm-phone {
    position: relative;
    z-index: 1;
    width: min(340px, 100%);
    margin: 24px auto;
    padding: 22px 18px 18px;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
}

.fm-phone-bar {
    width: 72px;
    height: 8px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #e2e8f0;
}

.fm-phone-title { font-weight: 800; margin-bottom: 12px; }

.fm-field {
    display: block;
    height: 38px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.fm-field i {
    display: block;
    padding: 8px 12px;
    color: #94a3b8;
    font-style: normal;
    font-size: 0.85rem;
}

.fm-field-tall { height: 84px; }

.fm-voice {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.fm-voice-head {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fm-voice-start {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.fm-voice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    flex: 0 0 8px;
}

.fm-voice-hint {
    margin: 8px 0;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.45;
}

.fm-voice-write {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fm-phone-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1.5px dashed #94a3b8;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.fm-phone-send {
    display: block;
    margin-top: 6px;
    padding: 10px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.fm-band, .fm-section { padding: 4.5rem 0; }
.fm-section-soft { background: var(--soft); }

.fm-connect, .fm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.fm-connect { grid-template-columns: repeat(4, 1fr); }

.fm-connect article, .fm-grid article, .fm-plan {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.fm-ico {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
}

.fm-ico svg { width: 22px; height: 22px; }

.fm-ico-img {
    display: block;
    width: 76px;
    height: 76px;
    margin-bottom: 0.85rem;
    object-fit: contain;
}

.fm-split { padding: 1rem 0 4rem; }

.fm-shield {
    display: grid;
    place-items: center;
    min-height: 280px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 20%, #fff 0, transparent 42%),
        linear-gradient(160deg, #ffedd5, #fed7aa 40%, #fdba74);
    color: #9a3412;
}

.fm-shield svg { width: 120px; height: 120px; }

.fm-built {
    padding: 4.5rem 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.55), transparent 28%),
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.45), transparent 30%),
        linear-gradient(120deg, #1e1b4b, #312e81 45%, #7c3aed);
}

.fm-built p { color: rgba(255, 255, 255, 0.82); }
.fm-stage-compact { min-height: 0; }
.fm-phone-small { width: min(240px, 100%); }

.fm-story { padding: 1rem 0 4rem; }

.fm-story-grid.is-text { grid-template-columns: 1fr; }

.fm-shot { margin: 0; }

.fm-shot-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    cursor: zoom-in;
    aspect-ratio: var(--fm-shot-ratio, 1024 / 552);
}

.fm-shot-open img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

/* Gleicher Foto-Lazyloader wie auf den anderen Landingpages (erp.js). */
img.lp-img-lazy:not(.lp-img-ready) {
    opacity: 0.35;
    filter: saturate(0.85);
    transition: opacity 0.35s ease, filter 0.35s ease;
}

img.lp-img-lazy.lp-img-ready {
    opacity: 1;
    filter: none;
}

.fm-shot-controls {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.fm-shot-controls button,
.fm-lightbox-nav,
.fm-lightbox-close {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.fm-shot figcaption {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.fm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
}

.fm-lightbox[hidden] { display: none; }

.fm-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.94);
    cursor: zoom-out;
}

.fm-lightbox-stage {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: calc(100vw - 7.5rem);
    max-height: calc(100vh - 4rem);
}

.fm-lightbox-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 7.5rem);
    max-height: calc(100vh - 5.5rem);
    margin: 0 auto;
    image-rendering: auto;
    border-radius: 12px;
    background: #fff;
}

.fm-lightbox-stage figcaption {
    margin: 0.7rem 0 0;
    color: #fff;
    text-align: center;
}

.fm-lightbox-nav,
.fm-lightbox-close {
    position: absolute;
    z-index: 2;
}

.fm-lightbox-nav.is-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.fm-lightbox-nav.is-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.fm-lightbox-close { top: 1rem; right: 1rem; }

body.fm-lightbox-open { overflow: hidden; }

.fm-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 0.7rem;
    align-items: stretch;
}

.fm-plan {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 8;
    align-items: start;
}

.fm-plan > * { margin: 0; }

.fm-plan-buy {
    border-color: var(--accent);
    box-shadow: 0 16px 40px var(--accent-dim);
}

.fm-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.fm-plan .btn { width: 100%; }
.fm-plan .fm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    margin: 0;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}
.fm-plan .fm-badge-off {
    background: #ea580c;
    color: #fff;
}
.fm-plan .fm-badge-slot {
    visibility: hidden;
}
.fm-plan-for { margin: 0; min-height: 2.6em; }
.fm-plan .fm-price-was {
    min-height: 1.35rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}
.fm-plan .fm-price-was s { text-decoration: line-through; }
.fm-plan .fm-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: var(--ink);
}
.fm-price span { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; }
.fm-price small { color: var(--muted); font-size: 1rem; }
.fm-fine { margin: 0; font-size: 0.88rem; }
.fm-notes { max-width: 46rem; margin-top: 1.4rem; display: grid; gap: 0.35rem; }
.fm-notes p { margin: 0; font-size: 0.92rem; }

.fm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.fm-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.fm-table th, .fm-table td { padding: 0.95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.fm-table thead th { font-size: 0.85rem; color: var(--muted); background: #f8fafc; }
.fm-table td { width: 28%; text-align: center; }
.fm-table td svg { width: 22px; height: 22px; }
.fm-table td.is-yes { color: var(--yes); }
.fm-table td.is-no { color: var(--no); }
.fm-changelog th,
.fm-changelog td { text-align: left; width: auto; }
.fm-changelog td:first-child,
.fm-changelog th:first-child { width: 7.5rem; white-space: nowrap; }

.fm-faq-wrap { max-width: 820px; }
.fm-faq details {
    border-bottom: 1px solid var(--line);
}
.fm-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    flex: 0 0 9px;
}
.fm-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.fm-faq details p { margin: 0 0 1rem; color: var(--muted); }

.fm-footer {
    padding: 3rem 0 1.5rem;
    background: #0f172a;
    color: #e2e8f0;
}
.fm-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 28px;
}
.fm-footer a { display: block; margin: 0.35rem 0; color: #cbd5e1; text-decoration: none; }
.fm-footer a:hover { color: #fff; }
.fm-footer-brand, .fm-footer-label { margin: 0 0 0.6rem; font-weight: 800; color: #fff; }
.fm-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fm-footer-bar p { margin: 0; }

.fm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fm-lp a:focus-visible,
.fm-lp summary:focus-visible,
.fm-lp button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 1180px) and (min-width: 961px) {
    .nav-links { gap: 14px; }
    .logo-text { font-size: 0.95rem; }
}

@media (max-width: 980px) {
    .fm-hero-grid, .fm-split-grid, .fm-built-grid, .fm-story-grid, .fm-plans, .fm-footer-grid {
        grid-template-columns: 1fr;
    }
    .fm-connect { grid-template-columns: 1fr 1fr; }
    .fm-grid { grid-template-columns: 1fr 1fr; }
    .fm-plans { grid-template-columns: 1fr; row-gap: 18px; }
    .fm-plan {
        grid-template-rows: none;
        grid-row: auto;
        row-gap: 0.7rem;
    }
    .fm-stage { min-height: 0; }
    .fm-story-grid .fm-shot { order: 2; }
}

@media (max-width: 640px) {
    .fm-connect, .fm-grid { grid-template-columns: 1fr; }
    .fm-actions .btn, .fm-built .btn, .fm-footer-bar .btn { width: 100%; }
    .fm-footer-bar { flex-direction: column; align-items: stretch; }
    .logo-mark { display: none; }
    .fm-hero { padding-top: 2.4rem; }
    .fm-band, .fm-section, .fm-built { padding: 3rem 0; }
    .fm-lightbox-stage,
    .fm-lightbox-stage img { max-width: calc(100vw - 6.5rem); }
    .fm-lightbox-nav.is-prev { left: 0.4rem; }
    .fm-lightbox-nav.is-next { right: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    img.lp-img-lazy:not(.lp-img-ready),
    img.lp-img-lazy.lp-img-ready {
        transition: none;
        opacity: 1;
        filter: none;
    }
}
