/* Startseite im Lavendel-Design der App (1.1.0).
   Farben 1:1 aus ChatStudio ui/theme/Theme.kt. Die Themenseiten und die
   Rechtstexte nutzen weiter /assets/style.css. */
:root {
    --bg: #F6F2FD;
    --surface: #FFFFFF;
    --surface-2: #F3EEFB;
    --ink: #1E1630;
    --ink-2: #5B5373;
    --line: #E6DCF6;
    --primary: #6D28D9;
    --on-primary: #FFFFFF;
    --chip: #EDE4FF;
    --wash-a: #E6D9FF;
    --wash-b: #F0E4FF;
    --streak: #7C3AED;
    --gold: #FBBF24;
    --ok: #15803D;
    --pro-a: #4C1D95;
    --pro-b: #6D28D9;
    --pro-c: #9333EA;
    --head-a: #6D28D9;
    --head-b: #9333EA;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14101E;
        --surface: #1E1830;
        --surface-2: #28213C;
        --ink: #EEE8FA;
        --ink-2: #ABA2C4;
        --line: #2F2745;
        --primary: #C4B5FD;
        --on-primary: #2A1260;
        --chip: #2E2450;
        --wash-a: #3A2670;
        --wash-b: #33205A;
        --streak: #A78BFA;
        --ok: #4ADE80;
        --pro-a: #3B0F7A;
        --pro-b: #5B21B6;
        --pro-c: #7E22CE;
        --head-a: #C4B5FD;
        --head-b: #E9D5FF;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font: 16px/1.6 var(--sans);
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}
body::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1000px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(45% 55% at 0% 0%, var(--wash-a), transparent 70%),
        radial-gradient(40% 45% at 100% 30%, var(--wash-b), transparent 70%);
}
[dir="rtl"] body::before {
    background:
        radial-gradient(45% 55% at 100% 0%, var(--wash-a), transparent 70%),
        radial-gradient(40% 45% at 0% 30%, var(--wash-b), transparent 70%);
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Die Lavendel-Ebene: fest im Fenster, hinter allem */
#lavender {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* ---------- Menueleiste ----------
   Alles darin waechst und schrumpft stufenlos mit dem Fenster (clamp),
   der Inhalt bleibt auf breiten Bildschirmen bei 1360 px. Reicht der Platz
   nicht fuer alle Links, klappen sie in ein Menue (Klasse .compact, gesetzt
   von der Messung im Template). Ohne JavaScript brechen sie um und bleiben
   in der ersten Zeile, soweit sie passen. */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.3vw, 20px);
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(8px, 1vw, 12px) clamp(14px, 2.6vw, 40px);
}
.logo {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: clamp(8px, .8vw, 12px);
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.logo img { width: clamp(28px, 2.4vw, 34px); height: auto; aspect-ratio: 1; border-radius: 8px; flex: none; }
.logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topnav {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    column-gap: clamp(12px, 1.5vw, 26px);
    row-gap: 40px;
    height: 26px;
    overflow: hidden;
}
.topnav a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: clamp(13px, 1.02vw, 15px);
    font-weight: 500;
    line-height: 26px;
    white-space: nowrap;
}
.topnav a:hover { color: var(--primary); }
.lang, .motion, .menu, .bar .btn { flex: none; }
.lang select {
    font: 500 clamp(12px, .95vw, 14px) var(--sans);
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(5px, .5vw, 7px) clamp(6px, .6vw, 10px);
    width: clamp(92px, 10vw, 150px);
    cursor: pointer;
}
/* Der Schalter traegt seinen Zustand als Text: "Animation: an" */
.motion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: clamp(32px, 2.8vw, 40px);
    padding: 0 clamp(10px, 1vw, 14px) 0 clamp(8px, .8vw, 11px);
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: 500 clamp(12px, .95vw, 14px) var(--sans);
    white-space: nowrap;
    cursor: pointer;
}
.motion svg { width: 18px; height: 18px; flex: none; color: var(--primary); }
.motion b { font-weight: 700; color: var(--primary); }
.motion .is-off { display: none; }
.motion[aria-pressed="false"] svg { color: var(--ink-2); }
.motion[aria-pressed="false"] b { color: var(--ink-2); }
.motion[aria-pressed="false"] .is-on { display: none; }
.motion[aria-pressed="false"] .is-off { display: inline; }
.motion:hover { border-color: var(--primary); }
.menu {
    place-items: center;
    width: clamp(32px, 2.8vw, 40px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
}
.menu svg { width: 55%; height: 55%; }.menu { display: none; color: var(--ink); }

/* Eingeklappt: die Links als Menue unter der Leiste */
.topbar.compact .menu { display: grid; }
.topbar.compact .topnav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: clamp(14px, 2.6vw, 40px);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    height: auto;
    min-width: 200px;
    padding: 8px;
    row-gap: 2px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 20px 40px -20px rgba(59, 15, 122, .45);
}
.topbar.compact.open .topnav { display: flex; }
.topbar.compact .topnav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.topbar.compact .topnav a:hover { background: var(--chip); }
.topbar.compact .logo { flex: 1 1 auto; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(100deg, var(--pro-a), var(--pro-b) 55%, var(--pro-c));
    box-shadow: 0 10px 24px -12px var(--pro-b);
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--pro-b); }
.btn-sm { padding: clamp(7px, .7vw, 10px) clamp(11px, 1.1vw, 16px); font-size: clamp(12px, .95vw, 14px); white-space: nowrap; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ---------- Abschnitte ---------- */
.wrap { max-width: 1160px; margin: 0 auto; }
section { padding: 72px 56px; }
.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.title {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin-bottom: 12px;
}
.desc { color: var(--ink-2); max-width: 58ch; font-size: 17px; }

/* Hero: vorne Platz, damit die Bluetenkoepfe am Rand frei stehen */
.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
    padding-block: 56px;
    padding-inline-start: 176px;
}
.kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 18px 0 20px;
}
.hero h1 .grad {
    display: block;
    padding-bottom: .06em;
    background: linear-gradient(100deg, var(--head-a), var(--head-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero h1 .rest { display: block; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.more { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.more:hover { color: var(--primary); }

.device { position: relative; perspective: 1200px; justify-self: center; }
.device::before {
    content: "";
    position: absolute;
    inset: 8% -18% -4%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--pro-c) 30%, transparent), transparent);
    filter: blur(10px);
}
.phone {
    width: 290px;
    max-width: 100%;
    aspect-ratio: 640 / 1351;
    padding: 10px;
    border-radius: 44px;
    background: #0f0b17;
    box-shadow: 0 50px 80px -40px rgba(59, 15, 122, .7), 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent), inset 0 0 0 2px #2a2238;
    transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 3deg));
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .phone { transform: rotateY(var(--ry, 8deg)) rotateX(var(--rx, 3deg)); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; }
.device figcaption { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-2); }

/* Faktenleiste */
.facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 44px;
    padding: 22px 32px;
    border-block: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.fact { display: flex; align-items: baseline; gap: 8px; }
.fact b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); font-variant-numeric: tabular-nums; }
.fact span { font-size: 14px; color: var(--ink-2); }

/* Trailer */
.trailer { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.trailer .note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.trailer .yt { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; }
.trailer .yt:hover { text-decoration: underline; }
.video {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    overflow: hidden;
    background: #1b1230;
    box-shadow: 0 40px 70px -40px rgba(59, 15, 122, .7), 0 0 0 1px var(--line);
}
.video video { width: 100%; height: 100%; object-fit: cover; }

/* Offene Listen statt Kartenpanels */
.list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; margin-top: 32px; }
.list-2 { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
.item {
    display: grid;
    grid-template-columns: 26px 1fr;
    column-gap: 16px;
    align-content: start;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.item .ico { grid-row: span 2; color: var(--primary); padding-top: 2px; }
.item .ico svg { width: 24px; height: 24px; display: block; }
.item h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.item p { font-size: 15px; color: var(--ink-2); }
a.item { color: inherit; text-decoration: none; }
a.item:hover h3 { color: var(--primary); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 32px; }
.step .n {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

.shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 16px;
    margin-top: 32px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.shots img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    scroll-snap-align: start;
    box-shadow: 0 12px 30px -18px rgba(59, 15, 122, .5);
}

.audience { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; }
.aud h3 { font-size: 17px; font-weight: 700; }
.aud p { font-size: 14px; color: var(--ink-2); }

/* Preise */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 800px; margin-top: 32px; }
.price {
    padding: 28px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.price h3 { font-size: 16px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.price .amt { font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 4px; }
.price .amt small { font-size: 14px; font-weight: 500; opacity: .85; }
.price .period { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.price ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.price li { display: flex; gap: 10px; }
.price li::before { content: "\2713"; color: var(--ok); font-weight: 700; flex: none; }
.price li.no { color: var(--ink-2); }
.price li.no::before { content: "\2715"; color: var(--ink-2); font-weight: 400; }
.price.pro {
    color: #fff;
    border: 0;
    background: linear-gradient(125deg, var(--pro-a), var(--pro-b) 55%, var(--pro-c));
    box-shadow: 0 24px 50px -28px var(--pro-b);
}
.price.pro h3, .price.pro .period { color: #EDE4FF; }
.price.pro .star { color: var(--gold); }
.price.pro li::before { color: var(--gold); }

/* FAQ */
.faq { max-width: 800px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; max-width: 70ch; }

.download { text-align: center; }
.download .desc { margin: 0 auto 28px; }
.download .fine { max-width: 70ch; margin: 36px auto 0; font-size: 12.5px; color: var(--ink-2); }

/* Fusszeile */
.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 28px 56px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.made { display: flex; align-items: center; gap: 12px; }
.made .dmr {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}
.made .dmr img { width: 42px; height: 42px; }
.made small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.made b { font-size: 14px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.foot .links a { color: var(--ink-2); text-decoration: none; }
.foot .links a:hover { color: var(--primary); }
.foot .copy { width: 100%; font-size: 12.5px; color: var(--ink-2); }

@media (max-width: 980px) {
    section { padding: 48px 24px; }
    .hero { grid-template-columns: 1fr; gap: 40px; padding-inline-start: 24px; padding-top: 150px; }
    .trailer { grid-template-columns: 1fr; gap: 32px; }
    .video { justify-self: center; }
    .list, .list-2, .steps { grid-template-columns: 1fr; }
    .prices { grid-template-columns: 1fr; }
    .foot { padding: 24px; }
}
@media (max-width: 420px) {
    .bar .btn-sm { display: none; }
}
@media (max-width: 560px) {
    .logo span { display: none; }
    .hero { padding-top: 120px; }
    .phone { width: 250px; }
    .facts { gap: 10px 22px; padding: 18px 16px; }
    .cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .phone, .btn { transition: none; }
}
