/* ThinkFutureX — Design-System v1.0
   Umgesetzt nach dem Markensystem (Design.pdf, v1.0 · 2026).

   Grundregel: Die ganze Marke lebt auf dunklem Grund.
   Violett ist der Anker (Flaechen, UI, ruhige Akzente),
   Gelb ist das eine Signal (genau ein CTA je Ansicht).
   Mischung: dunkel 70 · violett 22 · gelb 8. Nie beides gleichzeitig laut. */

:root {
    /* Grundtoene & Text */
    --ink: #08060D;
    --surface: #0D0A15;
    --card: #1C1526;
    --text: #F3F0F9;
    --text-2: #A79FB5;
    --text-3: #6E6780;

    /* Akzente */
    --violett: #7D5CFF;
    --violett-hell: #9B82FF;
    --violett-tief: #5B3FD6;
    --gelb: #FFC83D;
    --gelb-tief: #E0A800;

    /* Ampel (Office-Safe) */
    --gruen: #35C46B;
    --bernstein: #E5A400;
    --rot: #E5484D;

    /* Linien & Flaechen */
    --line: rgba(243, 240, 249, .10);
    --line-stark: rgba(243, 240, 249, .18);
    --violett-flaeche: rgba(125, 92, 255, .12);
    --violett-rand: rgba(125, 92, 255, .38);

    /* Schrift */
    --sans: 'Archivo', system-ui, -apple-system, Arial, sans-serif;
    --signal: 'Anton', 'Archivo', Impact, sans-serif;
    --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --radius: 12px;
    --radius-card: 16px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: var(--gelb); color: var(--ink); }
img { max-width: 100%; display: block; }

/* ---------------- Typografie ----------------
   Display 800 · Titel 700 · Text 400 · Signal Anton (immer Versalien) */
.display {
    font-size: clamp(38px, 7.4vw, 104px);
    font-weight: 800; line-height: .96; letter-spacing: -.035em;
}
.display-mid {
    font-size: clamp(28px, 4.4vw, 56px);
    font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
}
.display-sm {
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700; line-height: 1.12; letter-spacing: -.025em;
}
/* Zeilen der Anzeigenschrift stufen sich ab: erste hell, folgende ruhiger */
.display .dim { color: var(--text-2); }
.display .dimmer { color: var(--text-3); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; }

.eyebrow {
    font-family: var(--mono);
    font-size: 11px; font-weight: 400; letter-spacing: .16em;
    text-transform: uppercase; color: var(--violett-hell);
}
.eyebrow-quiet { color: var(--text-3); }

.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.62; color: var(--text-2); }
.lead strong, .lead b { color: var(--text); font-weight: 700; }

.signal {
    font-family: var(--signal); text-transform: uppercase;
    letter-spacing: .01em; color: var(--gelb); font-weight: 400;
}

/* ---------------- Wortmarke ---------------- */
.tfx-logo {
    font-family: var(--sans); font-weight: 800; font-size: 20px;
    letter-spacing: -.028em; color: var(--text); text-decoration: none;
    display: inline-flex; align-items: baseline;
}
.tfx-logo .x {
    font-family: var(--signal); color: var(--gelb);
    font-size: 1.06em; margin-left: .02em; letter-spacing: 0;
}
.light .tfx-logo { color: var(--ink); }
.light .tfx-logo .x { color: var(--violett); }

/* ---------------- Navigation ---------------- */
.tfx-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px clamp(20px, 4vw, 56px);
    background: rgba(8, 6, 13, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.tfx-navlinks { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; }
.tfx-navlinks a {
    font-size: 14px; font-weight: 500; color: var(--text-2);
    text-decoration: none; transition: color .25s var(--ease);
}
.tfx-navlinks a:hover, .tfx-navlinks a[aria-current="page"] { color: var(--text); }
@media (max-width: 900px) { .tfx-navlinks a:not(.btn-nav):not(.nav-yt) { display: none; } }

/* Knopf in der Navigation bleibt ruhig - Gelb ist dem Inhalt vorbehalten */
.btn-nav {
    display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
    border-radius: var(--radius); font-size: 14px; font-weight: 700;
    background: var(--violett-flaeche); border: 1px solid var(--violett-rand);
    color: var(--violett-hell) !important; text-decoration: none;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-nav:hover { background: var(--violett); color: #fff !important; }

.nav-yt {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px; border-radius: var(--radius);
    border: 1px solid var(--line-stark); color: var(--text-2) !important;
    font-size: 13px; font-weight: 500; text-decoration: none;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.nav-yt svg { flex-shrink: 0; }
.nav-yt:hover { background: #FF0000; border-color: #FF0000; color: #fff !important; }
@media (max-width: 1080px) { .nav-yt span { display: none; } .nav-yt { padding: 0 11px; } }

/* ---------------- Buttons ----------------
   Gelb = das eine Signal. Violett = ruhige Zweitaktion. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 26px; border-radius: var(--radius);
    font-family: var(--sans); font-size: 15px; font-weight: 700;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease),
        border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn::after { content: "→"; font-size: 15px; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-plain::after { content: none; }

/* Signal: hoechstens einmal je Ansicht */
.btn-signal { background: var(--gelb); color: var(--ink); }
.btn-signal:hover { background: #FFD463; }

/* Ruhige Zweitaktion */
.btn-violett { background: var(--violett-flaeche); border-color: var(--violett-rand); color: var(--violett-hell); }
.btn-violett:hover { background: var(--violett); color: #fff; border-color: var(--violett); }

/* Neutral */
.btn-quiet { background: var(--card); border-color: var(--line-stark); color: var(--text); }
.btn-quiet:hover { background: #241B31; }

.btn-ghost { color: var(--text-2); border-color: transparent; padding: 0 10px; }
.btn-ghost:hover { color: var(--text); }

.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }

/* Textlink in Signalfarbe, wie im Markensystem bei den Karten */
.link-signal {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 700; color: var(--gelb);
    text-decoration: none; transition: gap .25s var(--ease);
}
.link-signal::after { content: "→"; }
.link-signal:hover { gap: 11px; }

/* ---------------- Pills & Badges ---------------- */
.pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px; border-radius: 999px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--card); border: 1px solid var(--line);
    color: var(--text-2);
}
.pill::before {
    content: ""; width: 7px; height: 7px; border-radius: 2px;
    background: var(--gelb); flex-shrink: 0;
}
.pill-plain::before { content: none; }
.badge {
    display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 700; border: 1px solid transparent;
}
.badge-violett { background: rgba(125, 92, 255, .16); color: var(--violett-hell); border-color: var(--violett-rand); }
.badge-gruen { background: rgba(53, 196, 107, .14); color: var(--gruen); border-color: rgba(53, 196, 107, .35); }
.badge-rot { background: rgba(229, 72, 77, .14); color: var(--rot); border-color: rgba(229, 72, 77, .35); }
.badge-bernstein { background: rgba(229, 164, 0, .14); color: var(--bernstein); border-color: rgba(229, 164, 0, .35); }

/* ---------------- Abschnitte ---------------- */
.sec { padding: clamp(64px, 8vw, 124px) clamp(20px, 4vw, 56px); }
.sec-tight { padding: clamp(44px, 5vw, 72px) clamp(20px, 4vw, 56px); }
.dark, .light, .near { background: var(--ink); color: var(--text); }
.surface { background: var(--surface); color: var(--text); }
.wrap { max-width: 1200px; margin: 0 auto; width: 100%; }
.wrap-narrow { max-width: 800px; margin: 0 auto; width: 100%; }
main { flex: 1 0 auto; }
.page-top { padding-top: calc(var(--nav-h) + clamp(52px, 8vw, 108px)); }
.band { border-top: 1px solid var(--line); }

/* ---------------- Hero ---------------- */
.hero {
    min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--nav-h) + 48px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 88px);
    position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 62% 55% at 78% 22%, rgba(125, 92, 255, .26), transparent 64%),
        radial-gradient(ellipse 50% 45% at 8% 92%, rgba(125, 92, 255, .10), transparent 62%),
        var(--ink);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }

/* ---------------- Kennzahlenband ---------------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-card); overflow: hidden;
    margin-top: clamp(40px, 5vw, 68px);
}
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .lbl-top {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 10px;
}
.stat .num { font-size: clamp(18px, 1.9vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; }
.stat .lbl { font-size: 12.5px; color: var(--text-2); margin-top: 7px; line-height: 1.45; }
.stat-link { text-decoration: none; color: inherit; display: block; transition: background .25s var(--ease); }
.stat-link:hover { background: var(--card); }
.stat-link .num { color: var(--gelb); }
@media (max-width: 780px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ---------------- Karten ---------------- */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-card); padding: 26px;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--violett-rand); transform: translateY(-3px); }
.card h3 { font-size: 20px; font-weight: 700; margin: 12px 0 10px; line-height: 1.22; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

/* Bildkacheln */
.deck { position: relative; margin-top: 48px; }
.deck-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr);
    gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 4px;
}
.deck-track::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .deck-track { grid-auto-columns: 1fr; overflow: visible; } }

.wcard {
    position: relative; scroll-snap-align: start;
    aspect-ratio: 3 / 4; border-radius: var(--radius-card); overflow: hidden;
    background: var(--card); border: 1px solid var(--line); isolation: isolate;
    transition: transform .35s var(--ease), border-color .25s var(--ease);
}
.wcard:hover { transform: translateY(-4px); border-color: var(--violett-rand); }
.wcard-viz { position: absolute; inset: 0; }
.wcard-viz svg { position: absolute; top: 6%; left: 0; width: 100%; height: 94%; }
.wcard-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 6, 13, .70) 0%, rgba(8, 6, 13, .10) 40%, rgba(8, 6, 13, .82) 100%);
}
.wcard-link {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 26px 26px 0; text-decoration: none; color: var(--text);
}
.wcard-kicker {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-3);
}
.wcard-title {
    margin-top: 12px; display: block; color: var(--text);
    font-size: clamp(19px, 1.8vw, 23px); font-weight: 700;
    letter-spacing: -.022em; line-height: 1.22; max-width: 15ch;
}
.wcard-cue {
    margin-top: auto; margin-bottom: 28px;
    font-size: 13.5px; font-weight: 700; color: var(--gelb);
    opacity: 0; transform: translateX(-6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wcard:hover .wcard-cue { opacity: 1; transform: none; }
.wcard-plus {
    position: absolute; right: 18px; bottom: 18px; z-index: 4;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-stark);
    background: var(--card); color: var(--text); cursor: pointer;
    font-size: 20px; line-height: 1; font-family: var(--sans);
    display: flex; align-items: center; justify-content: center;
    transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.wcard-plus:hover { background: var(--gelb); color: var(--ink); border-color: var(--gelb); }
.wcard.open .wcard-plus { transform: rotate(45deg); }
.wcard-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 24px 72px 24px 26px;
    background: rgba(13, 10, 21, .96); backdrop-filter: blur(10px);
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.wcard.open .wcard-body { transform: none; }
.wcard-body p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.wcard-body .go {
    display: inline-block; margin-top: 14px;
    font-size: 13.5px; font-weight: 700; color: var(--gelb); text-decoration: none;
}
.deck-nav { display: flex; gap: 10px; margin-top: 24px; }
.deck-nav button {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--line-stark); background: transparent; color: var(--text);
    font-size: 17px; font-family: var(--sans);
    transition: background .25s var(--ease), color .25s var(--ease);
}
.deck-nav button:hover { background: var(--gelb); color: var(--ink); border-color: var(--gelb); }
@media (min-width: 1000px) { .deck-nav { display: none; } }

/* Kachel-Visualisierungen */
.viz-a { background: radial-gradient(120% 90% at 30% 20%, #2A1F4D 0%, #150F26 52%, var(--card) 100%); }
.viz-b { background: radial-gradient(120% 90% at 72% 24%, #241C46 0%, #14102340 54%, var(--card) 100%); }
.viz-c { background: radial-gradient(120% 90% at 50% 80%, #16301F 0%, #121A1B 50%, var(--card) 100%); }
@keyframes dash { to { stroke-dashoffset: 0; } }
.arc-fill { stroke-dasharray: 384; stroke-dashoffset: 384; animation: dash 1.6s var(--ease) forwards .3s; }
@keyframes rise { from { transform: scaleY(.15); opacity: .3; } to { transform: none; opacity: 1; } }
.bar { transform-origin: bottom; animation: rise .9s var(--ease) backwards; }
@keyframes sweep { 0% { transform: translateY(-6%); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateY(106%); opacity: 0; } }
.scan { animation: sweep 3.4s linear infinite; }

/* ---------------- Zweispalter & Zeilen ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; } }
.visual {
    aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius-card);
    background: linear-gradient(150deg, rgba(125, 92, 255, .16), var(--card) 58%);
    display: flex; align-items: center; justify-content: center; padding: 8%;
}

.rows { border-top: 1px solid var(--line); margin-top: 40px; }
.row {
    display: grid; grid-template-columns: 148px 1fr auto;
    gap: clamp(16px, 3vw, 40px); align-items: center;
    padding: 26px 0; border-bottom: 1px solid var(--line);
    text-decoration: none; color: inherit;
    transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.row:hover { background: var(--surface); padding-left: 14px; }
.row h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; margin-bottom: 6px; }
.row p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.row .arw { font-size: 18px; color: var(--text-3); transition: transform .25s var(--ease), color .25s var(--ease); }
.row:hover .arw { transform: translateX(5px); color: var(--gelb); }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 8px; } .row .arw { display: none; } }

/* ---------------- Formular ---------------- */
.field {
    height: 52px; padding: 0 18px; border-radius: var(--radius);
    border: 1px solid var(--line-stark); background: var(--surface);
    color: var(--text); font-family: var(--sans); font-size: 15px; width: 100%;
}
.field::placeholder { color: var(--text-3); }
.field:focus { outline: none; border-color: var(--violett); }
.form-note { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 14px; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; text-align: left; }
.consent input { margin-top: 3px; accent-color: var(--violett); width: 16px; height: 16px; flex-shrink: 0; }
.consent label { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.consent a { color: var(--violett-hell); }

/* ---------------- Fliesstext ---------------- */
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; margin: 46px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.68; margin-bottom: 14px; color: var(--text-2); }
.prose a { color: var(--violett-hell); }
.prose ul { margin: 0 0 16px 20px; font-size: 16px; line-height: 1.68; color: var(--text-2); }
.prose .box {
    border-left: 2px solid var(--violett); padding: 16px 20px; margin: 20px 0;
    background: var(--violett-flaeche); border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------------- Footer ---------------- */
.tfx-footer {
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 48px clamp(20px, 4vw, 56px); flex-shrink: 0;
}
.tfx-footer .inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.tfx-footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
.tfx-footer a { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .25s var(--ease); }
.tfx-footer a:hover { color: var(--text); }
.tfx-footer .social { display: flex; gap: 10px; }
.tfx-footer .social a {
    width: 40px; height: 40px; border-radius: var(--radius); background: var(--card);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
}
.tfx-footer .social a:hover { background: #FF0000; color: #fff; border-color: #FF0000; }
.tfx-footer .copy { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--text-3); width: 100%; margin-top: 6px; }

/* ---------------- Bewegung ---------------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rv { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------------- Inline-Anmeldung & Freischaltung ---------------- */
.tfx-signup-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tfx-signup-row .field { flex: 1 1 240px; }
.tfx-signup-row .btn { flex: 0 0 auto; }
.tfx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tfx-signup-error { color: var(--rot); font-size: 13px; line-height: 1.5; margin-top: 10px; text-align: left; }
/* Kontrollkaestchen bleibt nativ, auch wenn eine Seite alle Felder einfaerbt */
.consent input[type="checkbox"] { background: transparent !important; border-radius: 3px !important; }

/* Bereich, der erst nach dem Eintrag sichtbar wird */
.tfx-lock {
    border: 1px solid var(--violett-rand); background: var(--violett-flaeche);
    border-radius: var(--radius-card); padding: clamp(22px, 3vw, 34px); text-align: left;
}
.tfx-lock h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.tfx-lock p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.tfx-lock .tfx-signup { margin-top: 22px; }
.tfx-lock-list { list-style: none; margin: 18px 0 0; padding: 0; }
.tfx-lock-list li {
    font-size: 14.5px; line-height: 1.55; color: var(--text-2);
    padding: 0 0 0 26px; margin-bottom: 9px; position: relative;
}
.tfx-lock-list li::before {
    content: ""; position: absolute; left: 6px; top: 9px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--violett);
}

/* Bestaetigung nach dem Eintrag */
.tfx-unlocked {
    border: 1px solid rgba(53, 196, 107, .34); background: rgba(53, 196, 107, .09);
    border-radius: var(--radius-card); padding: clamp(22px, 3vw, 34px); text-align: left;
}
.tfx-unlocked h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.tfx-unlocked p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.tfx-unlocked .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

@media print {
    .tfx-nav, .deck-nav, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .dark, .light, .near, .surface { background: #fff !important; color: #000 !important; }
}
