/* =========================================================
   VANTEX Landing-Page

   Eigenes Layout, aber nicht mehr eigene Marke: Farben, Radien und
   Bewegung kommen aus `static/tokens.css` (davor eingebunden in
   `landing.html` und `status.html`). Vorher stand die Farbliste hier
   ein zweites Mal – wer die Marke anfasste, änderte eine Datei und
   übersah die andere.
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: "Raleway", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-5); }

section { padding: var(--sp-9) 0; }

h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-align: center; }
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: var(--sp-4) auto var(--sp-7);
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Knöpfe ----------
   Dieselben Namen wie im Dashboard, aber eigene Werte: `.btn` war hier
   `padding: var(--sp-3) var(--sp-5)` bei `.95rem`, dort `var(--sp-3) var(--sp-5)` bei
   `var(--fs-sm)`; `.btn-lg` hier `15px 32px`, dort `var(--sp-4)
   var(--sp-6)`. Ein Besucher kommt von dieser Seite ins Dashboard – und
   derselbe Knopf sah dort anders aus.

   `.btn-outline` war Zeichen für Zeichen `.btn-ghost` aus dem Dashboard,
   nur unter anderem Namen. Er ist ersatzlos weg; geblieben ist
   `.btn-status`, den es drüben wirklich nicht gibt.

   Die Fläche mit dem Verlauf ist `--grad-text`, nicht `--grad`: auf dem
   hellen Verlauf kommt Weiß am blauen Ende auf 1,77:1. Derselbe Weg von
   Violett nach Blau, nur tief genug für Schrift (5,37:1 bis 5,0:1).
   `--grad` bleibt für alles Schmückende – `.grad-text` klippt ihn in die
   Buchstaben, dort ist er die Schrift und nicht ihr Grund. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--radius-md);
    /* Durchsichtige Kante statt gar keiner: sonst wäre der Umriss-Knopf
       2 px höher als der gefüllte daneben. */
    border: 1px solid transparent;
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
    transition: transform var(--motion-fast) var(--ease),
                box-shadow var(--motion-fast) var(--ease),
                background var(--motion-fast) var(--ease),
                border-color var(--motion-fast) var(--ease),
                color var(--motion-fast) var(--ease);
}
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-md); }

.btn-primary {
    background: var(--grad-text);
    box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px var(--primary-glow-strong); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--surface-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--link); }
/* Nur hier: der Weg zur Statusseite trägt einen grünen Punkt und wird
   beim Zeigen grün – das gibt es im Dashboard nicht. */
.btn-status {
    background: transparent;
    color: var(--text);
    border-color: var(--surface-2);
}
.btn-status:hover { border-color: var(--success); color: var(--success); }

/* ---------- Rundes Bild ----------
   Dasselbe Bauteil wie im Dashboard. Das VANTEX-Logo lag in drei Größen
   vor, je nachdem welche Seite man ansah: 26 px in der Topbar des
   Dashboards, 30 px hier, 28 px als `style`-Attribut auf der
   Statusseite. Die Regeln stehen zwangsläufig zweimal – die Seiten
   teilen `tokens.css`, aber kein Bauteil-Stylesheet –, die Werte kommen
   dafür aus derselben Reihe. */
.avatar {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    width: 32px; height: 32px;
}
.avatar-xs { width: 28px; height: 28px; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 13, 20, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 54, .6);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    height: 68px;
}
.logo { display: flex; align-items: center; gap: var(--sp-3); font-weight: 800; letter-spacing: .28em; font-size: var(--fs-md); }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: var(--sp-5); margin-left: auto; }
.nav-links a { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; transition: color var(--motion-fast) var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); margin-left: var(--sp-2); }
.nav-cta .btn { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }

/* Sprachumschalter (DE/EN) – dieselbe Pillenreihe wie im Dashboard.
   Er hieß hier `.lang-switch`/`.lang-pill` wie drüben, sah aber anders
   aus (2 px statt 4 px Lücke, .74rem statt der Skala) – und die aktive
   Pille lag auf `--primary`: weiße Schrift darauf kommt auf 4,36:1, also
   unter den geforderten 4,5:1. Im Dashboard war das längst
   `--primary-fill` (5,37:1). */
.pillen-eingefasst {
    display: inline-flex;
    gap: var(--sp-0);
    padding: var(--sp-1);
    border-radius: var(--radius-pill);
    background: var(--tint-2);
}
.pille {
    padding: var(--sp-1) var(--sp-3);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: nowrap;
}
.pille:hover { color: var(--link); }
.pille.active { background: var(--primary-fill); color: #fff; }
.pille-klein { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .04em;
               padding: var(--sp-1) var(--sp-2); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: var(--sp-9) 0 var(--sp-8);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 130%;
    background:
        radial-gradient(600px 420px at 78% 30%, rgba(123, 92, 255, .22), transparent 65%),
        radial-gradient(480px 340px at 12% 78%, rgba(0, 212, 255, .10), transparent 65%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--sp-8);
    align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.hero-sub { color: var(--muted); margin: var(--sp-5) 0 var(--sp-6); max-width: 480px; }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero-note { margin-top: var(--sp-5); color: var(--muted); font-size: var(--fs-sm); }

/* Live-Statistiken aus dem Bot-Heartbeat */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-6);
    margin-top: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
    background: rgba(26, 26, 36, .7);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-lg);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-size: var(--fs-md); font-weight: 800; }
.hero-stat span { color: var(--muted); font-size: var(--fs-xs); }
.live-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    margin-right: var(--sp-2);
}

/* Dashboard-Mock im Hero */
.mock {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(123, 92, 255, .15);
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
    font-size: var(--fs-2xs);
}
.mock-side {
    background: #14141d;
    border-right: 1px solid var(--surface-2);
    padding: var(--sp-4) var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.mock-side .logo { font-size: var(--fs-2xs); letter-spacing: .2em; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.mock-side .logo svg { width: 18px; height: 18px; }
.mock-side .logo .logo-img { width: 18px; height: 18px; }
.mock-nav-item { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; }
.mock-nav-item.active { background: rgba(123, 92, 255, .18); color: var(--text); }
.mock-main { padding: var(--sp-4); }
.mock-title { font-weight: 800; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.mock-stat {
    background: var(--bg);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-sm);
    padding: var(--sp-3) var(--sp-3);
}
.mock-stat b { display: block; font-size: var(--fs-md); }
.mock-stat span { color: var(--muted); }
.mock-stat i { font-style: normal; color: var(--success); font-size: var(--fs-2xs); }
.mock-chart {
    background: var(--bg);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-sm);
    padding: var(--sp-3);
}
.mock-chart span { color: var(--muted); font-weight: 600; }
/* Die Linien des Schaubilds im Hero. Ein SVG-Präsentationsattribut nimmt
   kein `var(--primary)` entgegen – eine CSS-Regel auf dieselbe Form schon.
   Vorher standen die Markenfarben hier als Hex-Wert im Markup und wären
   bei einer Änderung an `tokens.css` stehen geblieben. */
.mock-line-a { fill: none; stroke: var(--primary); stroke-width: 2.5; }
.mock-line-b { fill: none; stroke: var(--secondary); stroke-width: 2; }
.mock-fill-top { stop-color: var(--primary); stop-opacity: .35; }
.mock-fill-bottom { stop-color: var(--primary); stop-opacity: 0; }

/* ---------- USP-Leiste ---------- */
.usp {
    padding: 0;
    margin-top: -var(--sp-2);
}
.usp-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-6);
}
.usp-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.usp-item .ico { flex: none; }
.usp-item b { display: block; font-size: var(--fs-md); }
.usp-item span { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Icon-Chips ---------- */
.ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(123, 92, 255, .12);
    color: var(--primary);
}
.ico svg { width: 22px; height: 22px; }
.ico.blue { background: rgba(0, 212, 255, .10); color: var(--secondary); }
.ico.pink { background: rgba(255, 46, 158, .10); color: var(--accent); }
.ico.green { background: rgba(34, 197, 94, .10); color: var(--success); }

/* ---------- Feature-Grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(123, 92, 255, .5); }
.feature-card h3 { font-size: var(--fs-md); margin: var(--sp-4) 0 var(--sp-2); }
.feature-card p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Zielgruppen ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-4);
}
.audience-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-2);
    background: linear-gradient(180deg, rgba(123, 92, 255, .10), transparent 55%), var(--surface);
    padding: var(--sp-5) var(--sp-5);
    text-align: center;
    transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.audience-card:hover { transform: translateY(-3px); border-color: rgba(0, 212, 255, .5); }
.audience-card .ico { margin: 0 auto var(--sp-4); }
.audience-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.audience-card p { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    align-items: stretch;
}
.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 18px 48px rgba(123, 92, 255, .25);
}
.price-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--accent);
    color: #fff;
    font-size: var(--fs-2xs);
    font-weight: 800;
    letter-spacing: .06em;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill);
}
.price-card h3 { font-size: var(--fs-md); }
.price-card .plan-sub { color: var(--muted); font-size: var(--fs-sm); margin: var(--sp-2) 0 var(--sp-4); min-height: 3.2em; }
.price { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: var(--sp-4); }
.price small { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin-bottom: var(--sp-5); flex: 1; }
.price-card li {
    padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--text);
    position: relative;
}
.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 800;
}
.price-card .btn { width: 100%; justify-content: center; }
.pricing-footnote {
    text-align: center;
    color: var(--muted);
    font-size: var(--fs-sm);
    margin-top: var(--sp-6);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: var(--sp-3); }
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-sm);
    padding: var(--sp-4) var(--sp-5);
}
.faq-list details[open] { border-color: rgba(123, 92, 255, .5); }
.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--primary); font-size: var(--fs-xl); font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--sp-3); }

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    background:
        radial-gradient(520px 300px at 50% 0%, rgba(123, 92, 255, .25), transparent 70%),
        var(--surface);
    border-top: 1px solid var(--surface-2);
    border-bottom: 1px solid var(--surface-2);
}
.cta p { color: var(--muted); max-width: 560px; margin: var(--sp-4) auto var(--sp-6); }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: var(--sp-8) 0 var(--sp-6); color: var(--muted); font-size: var(--fs-sm); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-7);
}
.footer .logo { color: var(--text); margin-bottom: var(--sp-4); }
/* Die Spaltenüberschriften der Fußzeile sind <h3>: unter einem <h2>
   darf keine Stufe übersprungen werden, sonst liest ein Screenreader
   die Gliederung mit einem Loch vor. */
.footer h3 { color: var(--text); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.footer ul { list-style: none; display: grid; gap: var(--sp-2); }
.footer a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--surface-2);
    padding-top: var(--sp-5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
}
.footer-claim { color: var(--primary); font-weight: 700; letter-spacing: .12em; }

/* ---------- Demo-Formular ---------- */
.demo-form {
    max-width: 620px;
    margin: var(--sp-6) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    text-align: left;
}
.form-row { display: flex; gap: var(--sp-4); }
.form-row input { flex: 1; }
.demo-form input,
.demo-form textarea {
    width: 100%;
    padding: var(--sp-4) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--surface-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-md);
    resize: vertical;
}
.demo-form input::placeholder,
.demo-form textarea::placeholder { color: var(--muted); }
.demo-form input:focus,
.demo-form textarea:focus { outline: none; border-color: var(--primary); }
.demo-form .btn { align-self: center; margin-top: var(--sp-1); }
/* Honeypot: für Menschen unsichtbar */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-success {
    max-width: 620px;
    margin: var(--sp-6) auto 0;
    padding: var(--sp-4) var(--sp-5);
    background: rgba(34, 197, 94, .12);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 899.98px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .usp-inner { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599.98px) {
    section { padding: var(--sp-8) 0; }
    .usp-inner, .feature-grid, .audience-grid, .pricing-grid { grid-template-columns: 1fr; }
    .mock { grid-template-columns: 1fr; }
    .mock-side { display: none; }
    /* Navbar: sekundären CTA ausblenden, damit nichts überläuft
       (Demo anfragen bleibt im Hero und im Kontakt-Bereich erreichbar) */
    .nav-cta .btn-ghost { display: none; }
    .nav-cta { margin-left: 0; }
    .nav-cta .btn { padding: var(--sp-2) var(--sp-4); }
    .form-row { flex-direction: column; }
}
