/* ============================================================================
   Wegvio MVP - Design System
   ----------------------------------------------------------------------------
   Markenfarben aus dem Logo (Orange -> Korall-Verlauf).
   Inter / System UI Fonts. Mobile-First. Soft Shadows.
   ============================================================================ */

/* -------------------- Root Tokens -------------------- */
:root {
    /* === WEGVIO Brand - Electric Purple (#511EEA) ===
       "Mut zur Farbe": Electric Purple ist kein Zufall. Der Cursor "|"
       steht für Bewegung & den nächsten Schritt. (Corporate Identity) */
    --wv-purple:        #511EEA;   /* Primary  */
    --wv-purple-deep:   #3318CC;   /* Deep Purple (CI) */
    --wv-purple-press:  #2a0fa6;   /* pressed / darkest */
    --wv-purple-bright: #6B46FF;   /* glow / gradient highlight */
    --wv-lavender:      #CCBBFF;   /* Accent (CI) */
    --wv-lav-bg:        #F3F0FE;   /* light lavender surface */
    --wv-lav-line:      #E4DDFB;   /* lavender hairline */
    --wv-ink:           #191334;   /* deep ink text */
    --wv-bezel:         #140D2E;   /* darkest */
    --wv-brand:         #511EEA;   /* generic brand alias */

    /* Legacy token names repointed to the purple system, so every existing
       var(--wv-orange* / --wv-coral*) reference flips to brand automatically. */
    --wv-orange:        #511EEA;
    --wv-orange-soft:   #8B6CFF;
    --wv-orange-deep:   #3318CC;
    --wv-coral:         #511EEA;
    --wv-coral-deep:    #4516D0;   /* readable purple for links/text on white */
    --wv-red:           #E63946;   /* danger stays red */
    --wv-gradient:      linear-gradient(135deg, #6B46FF 0%, #511EEA 58%, #4012CF 100%);
    --wv-gradient-soft: linear-gradient(135deg, #F3F0FE 0%, #E4DDFB 100%);

    /* Neutrals */
    --wv-bg:            #FAFAF7;
    --wv-bg-alt:        #FFFFFF;
    --wv-surface:       #FFFFFF;
    --wv-surface-soft:  #F5F4F0;
    /* Aliase fuer erhoehte Flaechen (Modals/Popups). Verweisen auf die Surface-
       Tokens, damit sie automatisch in den Dark Mode mitwechseln. */
    --wv-bg-elevated:   var(--wv-surface);
    --wv-bg-soft:       var(--wv-surface-soft);
    --wv-border:        #E8E6E0;
    --wv-border-soft:   #F0EEEA;

    /* Text */
    --wv-text:          #1A1A1F;
    --wv-text-soft:     #4B4B53;
    --wv-text-muted:    #8A8A95;
    --wv-text-inverse:  #FFFFFF;

    /* Semantic */
    --wv-success:       #2BB673;
    --wv-warning:       #F5A623;
    --wv-danger:        #E63946;
    --wv-info:          #2E7CF6;

    /* Sizing - sharper / editorial (die Marke ist rechteckig) */
    --wv-radius-xs:     4px;
    --wv-radius-sm:     6px;
    --wv-radius:        10px;
    --wv-radius-lg:     14px;
    --wv-radius-pill:   999px;
    --wv-radius-btn:    4px;     /* rechteckige Brand-Buttons */

    /* Shadows */
    --wv-shadow-xs:     0 1px 2px rgba(20, 20, 30, 0.04);
    --wv-shadow-sm:     0 2px 6px rgba(20, 20, 30, 0.06);
    --wv-shadow:        0 8px 24px rgba(20, 20, 30, 0.08);
    --wv-shadow-lg:     0 20px 50px rgba(20, 20, 30, 0.12);
    --wv-shadow-brand:  0 14px 34px rgba(81, 30, 234, 0.28);

    /* Typography */
    --wv-font-sans:    'Hanken Grotesk', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wv-font-display: 'Hanken Grotesk', Arial, 'Segoe UI', system-ui, sans-serif;
    --wv-font-mono:    'Courier New', 'Courier', ui-monospace, 'SF Mono', Menlo, monospace; /* CI: Courier New - Subtext & UI */

    --wv-fs-xs:    12px;
    --wv-fs-sm:    14px;
    --wv-fs-base:  16px;
    --wv-fs-lg:    18px;
    --wv-fs-xl:    22px;
    --wv-fs-2xl:   28px;
    --wv-fs-3xl:   36px;
    --wv-fs-4xl:   48px;
    --wv-fs-5xl:   64px;

    /* Layout */
    --wv-container: 1200px;
    --wv-sidebar:   280px;
    --wv-header-h:  88px;

    /* Breakpoints (nur fuer JS lesbar, CSS nutzt direkte Media-Queries) */
    --wv-bp-sm:  480px;
    --wv-bp-md:  768px;
    --wv-bp-lg:  1024px;
    --wv-bp-xl:  1280px;

    /* Transitions */
    --wv-trans:     200ms cubic-bezier(0.4, 0, 0.2, 1);
    --wv-trans-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --wv-bg:           #0E0A1F;
    --wv-bg-alt:       #15102B;
    --wv-surface:      #1A1338;
    --wv-surface-soft: #221945;
    --wv-border:       #2D2356;
    --wv-border-soft:  #1F1740;
    --wv-text:         #F2F0FB;
    --wv-text-soft:    #C9C3E6;
    --wv-text-muted:   #948CB8;
    --wv-text-inverse: #0E0A1F;

    /* Lavendel-Flächen werden im Dark-Mode zu tiefen Lila-Tönen */
    --wv-lav-bg:        #1A1338;
    --wv-lav-line:      #2D2356;
    --wv-coral-deep:    #B7A4FF;   /* lesbares Lila auf Dunkel */
    --wv-orange-deep:   #B7A4FF;

    --wv-gradient-soft: linear-gradient(135deg, #1D1442 0%, #271A54 100%);

    --wv-shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.4);
    --wv-shadow-sm:    0 2px 6px rgba(0, 0, 0, 0.3);
    --wv-shadow:       0 8px 24px rgba(0, 0, 0, 0.45);
    --wv-shadow-lg:    0 20px 50px rgba(0, 0, 0, 0.55);
    --wv-shadow-brand: 0 14px 34px rgba(81, 30, 234, 0.45);
}

/* Dark-Mode spezifische Anpassungen */
[data-theme="dark"] .marketing-nav { background: rgba(15, 17, 21, 0.85); }
[data-theme="dark"] .app-header { background: rgba(21, 24, 30, 0.9); }
[data-theme="dark"] .brand-logo--invert { filter: brightness(0) invert(1); }
[data-theme="dark"] .section--soft { background: var(--wv-bg-alt); }
[data-theme="dark"] .compare tbody td:nth-child(2) { background: rgba(107, 70, 255, 0.08); }
[data-theme="dark"] .auth-pane--brand .feature { border-color: rgba(255,255,255,0.16); }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus { background: var(--wv-surface); }
[data-theme="dark"] .icon { color: var(--wv-icon, var(--wv-orange-soft)); }
[data-theme="dark"] .icon-tile { background: rgba(107, 70, 255, 0.16); color: var(--wv-orange-soft); }
[data-theme="dark"] .compare__brand { background: rgba(107, 70, 255, 0.16); color: var(--wv-orange-soft); }

/* -------------------- Reset / Base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

/* -------------------- Icons -------------------- */
/* Symbolfarbe laeuft ueber die Variable --wv-icon, nicht ueber Vererbung.
   Grund: ".icon" setzt hier eine eigene Farbe, und eine eigene Deklaration
   schlaegt IMMER die Vererbung. Ein "color:#fff" auf einem farbigen Knopf kam
   beim SVG deshalb nie an - auf dem Mikrofon-Knopf ergab das 1,2:1 Kontrast,
   das Symbol war praktisch unsichtbar (WCAG 1.4.11 verlangt 3:1).
   Variablen vererben sich dagegen sehr wohl: jede Flaeche mit eigener
   Symbolfarbe setzt einfach "--wv-icon" und alle Symbole darin folgen,
   beliebig tief verschachtelt und in beiden Themes. */
.icon { color: var(--wv-icon, var(--wv-coral-deep)); }
.icon svg { display: block; }
/* Die Modifier setzen --wv-icon MIT, nicht nur color. Sonst greifen sie im
   Dunkelmodus nicht: "[data-theme='dark'] .icon" hat die Spezifitaet (0,2,0)
   und schlaegt jeden Modifier (0,1,0). Ein .icon--inverse auf dunklem Grund
   war damit wirkungslos - genau der Fehler auf der Anmeldeseite. */
.icon--muted   { --wv-icon: var(--wv-text-muted); color: var(--wv-text-muted); }
.icon--soft    { --wv-icon: var(--wv-text-soft);  color: var(--wv-text-soft); }
.icon--inverse { --wv-icon: #fff;                 color: #fff; }
.icon--success { --wv-icon: var(--wv-success);    color: var(--wv-success); }
.icon--danger  { --wv-icon: var(--wv-danger);     color: var(--wv-danger); }
.icon--brand   { --wv-icon: var(--wv-coral-deep); color: var(--wv-coral-deep); }
.icon-tile {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.icon-tile--lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-tile--brand {
    background: var(--wv-gradient);
    color: #fff;
    box-shadow: var(--wv-shadow-brand);
}
.icon-tile--outline {
    background: transparent;
    border: 1.5px solid var(--wv-border);
    color: var(--wv-coral-deep);
}
body {
    margin: 0;
    font-family: var(--wv-font-sans);
    font-size: var(--wv-fs-base);
    line-height: 1.55;
    color: var(--wv-text);
    background: var(--wv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--wv-coral-deep); text-decoration: none; transition: color var(--wv-trans); }
a:hover { color: var(--wv-orange-deep); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wv-font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--wv-text);
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(28px, 5vw, var(--wv-fs-4xl)); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 4vw, var(--wv-fs-3xl)); letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2.6vw, var(--wv-fs-2xl)); }
h4 { font-size: var(--wv-fs-xl); }
p  { margin: 0 0 1em; color: var(--wv-text-soft); }

/* Sehr lange Wörter sicher umbrechen (gerade auf Mobile wichtig) */
body { overflow-wrap: break-word; word-wrap: break-word; }

::selection { background: rgba(81, 30, 234, 0.25); color: var(--wv-text); }

/* -------------------- Utility -------------------- */
.container { max-width: var(--wv-container); margin: 0 auto; padding: 0 14px; }
@media (min-width: 640px) { .container { padding: 0 20px; } }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.text-gradient {
    background: var(--wv-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.text-muted   { color: var(--wv-text-muted); }
.text-soft    { color: var(--wv-text-soft); }
.text-center  { text-align: center; }
.font-display { font-family: var(--wv-font-display); font-weight: 700; }

.divider { height: 1px; background: var(--wv-border); margin: 24px 0; border: 0; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--wv-surface-soft);
    color: var(--wv-text-soft);
    border-radius: var(--wv-radius-pill);
    font-size: var(--wv-fs-xs);
    font-weight: 500;
}
.tag--brand { background: var(--wv-gradient-soft); color: var(--wv-coral-deep); }

/* -------------------- Logo / Brand -------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--wv-font-display);
    font-weight: 800;
    font-size: 22px;
    color: var(--wv-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.brand:hover { color: var(--wv-text); }
.brand img { height: 64px; width: auto; }
.brand-logo {
    height: 60px;
    width: auto;
    display: block;
    max-width: 100%;
}
@media (min-width: 768px)  { .brand-logo { height: 80px; } }
@media (min-width: 1024px) { .brand-logo { height: 96px; } }
.brand-logo--lg {
    height: 140px;
}
@media (min-width: 768px)  { .brand-logo--lg { height: 200px; } }
@media (min-width: 1024px) { .brand-logo--lg { height: 220px; } }
.brand-logo--xl {
    height: 180px;
}
@media (min-width: 768px)  { .brand-logo--xl { height: 260px; } }
@media (min-width: 1024px) { .brand-logo--xl { height: 320px; } }
.brand-logo--sm { height: 44px; }
@media (min-width: 768px) { .brand-logo--sm { height: 56px; } }
.brand-logo--invert { filter: brightness(0) invert(1); }
.brand-mark {
    width: 36px; height: 36px;
    border-radius: var(--wv-radius-xs);
    background: var(--wv-gradient);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800;
    box-shadow: var(--wv-shadow-brand);
}

/* ====================================================================
   Cursor-Motiv "|"  -  Bewegung, Potenzial, Richtung (Corporate Identity)
   Jedes Asset endet mit "|". Blinkt im Editor-Takt.
   ==================================================================== */
@keyframes wv-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.wv-cur {
    display: inline-block;
    width: 0.1em;
    min-width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 0.08em;
    vertical-align: -0.1em;
    border-radius: 1px;
    animation: wv-blink 1.05s step-end infinite;
}
.wv-cur--tall  { height: 1.05em; vertical-align: -0.14em; }
.wv-cur--thick { width: 0.14em; min-width: 3px; }
@media (prefers-reduced-motion: reduce) {
    .wv-cur, .wv-logo__cur { animation: none; }
}

/* ====================================================================
   WEGVIO Wordmark  -  "WEG" + fettes "VIO" + blinkender Cursor
   ==================================================================== */
.wv-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--wv-font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--wv-purple);
    text-decoration: none;
    white-space: nowrap;
}
.wv-logo__mark   { font-weight: 700; }
.wv-logo__mark b { font-weight: 800; letter-spacing: 0.02em; }
.wv-logo__cur {
    display: inline-block;
    width: 0.16em;
    min-width: 2px;
    height: 1.04em;
    background: currentColor;
    margin-left: 0.22em;
    border-radius: 1px;
    animation: wv-blink 1.05s step-end infinite;
}
/* Auf Primärfarbe: weißer Kasten, lila Schrift (CI: Wordmark auf Primärfarbe) */
.wv-logo--box {
    background: #fff;
    color: var(--wv-purple);
    padding: 0.32em 0.5em 0.32em 0.58em;
    border-radius: var(--wv-radius-xs);
}
/* Weiß auf Lila (ohne Kasten) */
.wv-logo--invert { color: #fff; }
/* Größen */
.wv-logo--sm { font-size: 16px; }
.wv-logo--lg { font-size: 30px; }
.wv-logo--xl { font-size: clamp(38px, 8vw, 88px); }
.wv-logo--xl .wv-logo__cur { margin-left: 0.14em; }

/* -------------------- Buttons -------------------- */
/* Jede Knopf-Variante bringt ihre EIGENE Flaeche mit. Deshalb setzt jede auch
   ihre eigene Symbolfarbe (--wv-icon) passend zur Schriftfarbe. Ohne das erbt
   ein Knopf die Symbolfarbe der Flaeche, auf der er liegt - ein weisser Knopf
   auf einer lila Karte bekaeme weisse Symbole auf weissem Grund. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--wv-radius-btn);
    border: 1px solid transparent;
    background: var(--wv-surface);
    color: var(--wv-text);
    --wv-icon: var(--wv-text);
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: var(--wv-fs-base);
    text-decoration: none;
    transition: all var(--wv-trans);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(81, 30, 234, 0.3); outline-offset: 2px; }
.btn--primary {
    background: var(--wv-purple);
    color: #fff;
    --wv-icon: #fff;
    box-shadow: var(--wv-shadow-brand);
}
.btn--primary:hover { color: #fff; background: var(--wv-purple-deep); box-shadow: 0 16px 40px rgba(81, 30, 234, 0.35); }
.btn--primary:active { background: var(--wv-purple-press); }
/* Weißer Brand-Button (weiße Fläche, lila Schrift) - CI Button-System */
.btn--white {
    background: #fff;
    color: var(--wv-purple);
    --wv-icon: var(--wv-purple);
    box-shadow: var(--wv-shadow-sm);
}
.btn--white:hover { color: var(--wv-purple-deep); box-shadow: var(--wv-shadow); }
/* Erfolgs-Button (grün) - z. B. „Vergleich ansehen“ für einen gespeicherten Vergleich */
.btn--success {
    background: var(--wv-success);
    color: #fff;
    --wv-icon: #fff;
    box-shadow: 0 10px 30px rgba(43, 182, 115, 0.28);
}
.btn--success:hover { color: #fff; background: #249d63; box-shadow: 0 16px 40px rgba(43, 182, 115, 0.34); }
.btn--success:active { background: #1f8a57; }
.btn--ghost {
    background: transparent;
    border-color: var(--wv-border);
    color: var(--wv-text);
    --wv-icon: var(--wv-text);
}
.btn--ghost:hover { background: var(--wv-surface-soft); border-color: var(--wv-purple); color: var(--wv-purple); }
.btn--soft {
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    --wv-icon: var(--wv-coral-deep);
}
.btn--link {
    background: transparent;
    color: var(--wv-coral-deep);
    --wv-icon: var(--wv-coral-deep);
    padding: 8px 4px;
}
.btn--link:hover { color: var(--wv-orange-deep); transform: none; }
.btn--lg { padding: 16px 30px; font-size: var(--wv-fs-lg); border-radius: var(--wv-radius-sm); }
.btn--sm { padding: 9px 16px; font-size: var(--wv-fs-sm); border-radius: var(--wv-radius-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.5; pointer-events: none; }

/* Profil bearbeiten: Speichern/Abbrechen. Desktop bleibt nebeneinander;
   auf schmalen Handys untereinander & volle Breite, damit "Abbrechen"
   nicht rechts aus dem Bild abgeschnitten wird (.btn hat white-space:nowrap). */
.profile-edit__actions { flex-wrap: wrap; }
@media (max-width: 480px) {
    .profile-edit__actions { flex-direction: column; }
    .profile-edit__actions .btn { width: 100%; }
}

/* Teilen-Link-Zeile (Empfehlungen + Profil teilen): das schreibgeschützte
   Link-Feld schrumpfbar machen, sonst wird der "Kopieren"-Button auf schmalen
   Handys rechts abgeschnitten (.form-control hat width:100% ohne min-width:0). */
#shareUrl { flex: 1 1 auto; min-width: 0; }

/* -------------------- Forms -------------------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) {
    .form-row--2 { grid-template-columns: 1fr 1fr; }
    .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--wv-fs-sm);
    margin-bottom: 6px;
    color: var(--wv-text);
}
.form-hint { font-size: var(--wv-fs-xs); color: var(--wv-text-muted); margin-top: 6px; }

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--wv-surface);
    border: 1.5px solid var(--wv-border);
    border-radius: var(--wv-radius);
    font: inherit;
    color: var(--wv-text);
    transition: border-color var(--wv-trans), box-shadow var(--wv-trans), background var(--wv-trans);
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--wv-orange);
    box-shadow: 0 0 0 4px rgba(107, 70, 255, 0.15);
    background: var(--wv-bg-alt);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-control::placeholder { color: var(--wv-text-muted); }
.form-control--lg { padding: 16px 18px; font-size: var(--wv-fs-lg); }

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: var(--wv-fs-sm);
    color: var(--wv-text-soft);
}
.form-checkbox input { width: 18px; height: 18px; accent-color: var(--wv-coral); }

/* -------------------- Cards -------------------- */
.card {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg);
    padding: 18px;
    transition: box-shadow var(--wv-trans), transform var(--wv-trans);
}
@media (min-width: 640px) { .card { padding: 24px; } }
.card--hover:hover {
    box-shadow: var(--wv-shadow);
    transform: translateY(-2px);
}
.card--brand {
    background: var(--wv-gradient);
    color: #fff;
    border: 0;
    box-shadow: var(--wv-shadow-brand);
}
.card--brand h1, .card--brand h2, .card--brand h3, .card--brand p { color: #fff; }
.card--soft { background: var(--wv-surface-soft); border-color: transparent; }
.card__title { margin: 0 0 6px; font-size: var(--wv-fs-xl); }
.card__subtitle { color: var(--wv-text-muted); font-size: var(--wv-fs-sm); margin-bottom: 16px; }

/* -------------------- Alerts -------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--wv-radius);
    margin-bottom: 16px;
    font-size: var(--wv-fs-sm);
    border: 1px solid;
}
.alert--success { background: #E9F8F0; color: #186943; border-color: #BDE9D2; }
.alert--error   { background: #FDEAE9; color: #9B1F1A; border-color: #F5BFBC; }
.alert--info    { background: #E8F1FD; color: #1B4E96; border-color: #BFDBF7; }
.alert--warn    { background: #FEF6E5; color: #8A5A0F; border-color: #F8D896; }

/* Dark-Mode-Anpassungen fuer Alerts */
[data-theme="dark"] .alert--success {
    background: rgba(43, 182, 115, 0.12);
    color: #6EE3A8;
    border-color: rgba(43, 182, 115, 0.4);
}
[data-theme="dark"] .alert--error {
    background: rgba(230, 57, 70, 0.12);
    color: #FF8A88;
    border-color: rgba(230, 57, 70, 0.4);
}
[data-theme="dark"] .alert--info {
    background: rgba(46, 124, 246, 0.12);
    color: #8DB7F9;
    border-color: rgba(46, 124, 246, 0.4);
}
[data-theme="dark"] .alert--warn {
    background: rgba(245, 166, 35, 0.12);
    color: #F8C56C;
    border-color: rgba(245, 166, 35, 0.4);
}

/* Icons innerhalb der Alerts auf inherit umstellen */
.alert .icon { color: inherit; flex-shrink: 0; }
.alert > span { flex: 1; }

/* -------------------- Auth Layout -------------------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--wv-bg);
}
@media (min-width: 980px) {
    .auth-shell { grid-template-columns: 1fr 1fr; }
}
.auth-pane {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 20px;
}
@media (min-width: 768px)  { .auth-pane { padding: 48px 32px; } }
@media (min-width: 1024px) { .auth-pane { padding: 64px 48px; } }

/* Brand-Pane (links): auf Mobile als kompakter Header oberhalb */
@media (max-width: 979px) {
    .auth-pane--brand {
        padding: 24px 20px;
        min-height: auto;
    }
    .auth-pane--brand .brand { margin-bottom: 16px !important; }
    .auth-pane--brand .brand-logo { height: 56px !important; }
    .auth-pane--brand h2 { font-size: var(--wv-fs-2xl); margin-bottom: 8px; }
    .auth-pane--brand .lead { font-size: var(--wv-fs-base); margin-bottom: 16px; }
    .auth-pane--brand .feature { padding: 10px 0; }
    .auth-pane--brand .feature__icon { width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 640px) {
    /* Auf sehr schmalen Screens: nur Logo + kurzer Claim, Features ausblenden */
    .auth-pane--brand .feature { display: none; }
    .auth-pane--brand .auth-brand-footer { display: none !important; }
}
.auth-pane--brand {
    background: var(--wv-gradient);
    color: #fff;
    --wv-icon: #fff;
    position: relative;
    overflow: hidden;
}
.auth-pane--brand::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 10% 10%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(40% 40% at 100% 100%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.auth-pane--brand > * { position: relative; z-index: 1; }
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}
.auth-card h1 { font-size: var(--wv-fs-3xl); margin-bottom: 8px; }
.auth-card .lead { color: var(--wv-text-muted); margin-bottom: 32px; }
.auth-pane--brand h2 { font-size: clamp(26px, 6vw, 44px); line-height: 1.08; margin-bottom: 12px; color: #fff; }
.auth-pane--brand .lead { color: rgba(255,255,255,0.92); font-size: var(--wv-fs-lg); }
.auth-pane--brand .feature {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.18);
}
.auth-pane--brand .feature:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.auth-pane--brand .feature__icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    display: grid; place-items: center;
    font-size: 22px;
}

/* -------------------- App Shell -------------------- */
.app-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    background: var(--wv-bg);
}
@media (min-width: 1024px) {
    .app-shell { grid-template-columns: var(--wv-sidebar) 1fr; }
}
.app-sidebar {
    background: var(--wv-surface);
    border-right: 1px solid var(--wv-border);
    padding: 20px 14px;
    position: fixed;
    top: 0; left: -100%;
    width: 86vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 110;
    display: flex;
    flex-direction: column;
    transition: left var(--wv-trans-slow);
    box-shadow: var(--wv-shadow-lg);
}
.app-sidebar.is-open { left: 0; }
@media (min-width: 1024px) {
    .app-sidebar {
        /* Sticky am Viewport: bleibt beim Scrollen oben kleben.
           height: 100vh (dvh fuer mobile-Browser-UI) + overflow-y: auto stellt sicher,
           dass der gesamte Sidebar-Bereich immer sichtbar ist und intern scrollt,
           wenn der Inhalt mehr als 100vh hoch ist. */
        position: sticky;
        left: auto;
        top: 0;
        width: auto;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 24px 16px;
        box-shadow: none;
        transition: none;
        /* WICHTIG: align-self stretch verhindert dass das Grid-Item die Hoehe
           des kleineren Container annimmt - die Sidebar bleibt voll hoch. */
        align-self: start;
    }
}
.app-sidebar .brand { padding: 0 8px 16px; justify-content: center; flex-shrink: 0; }
@media (min-width: 1024px) {
    .app-sidebar .brand { padding: 0 8px 24px; }
}
/* Nav-Container darf wachsen, damit XP-Meter unten landet */
.app-sidebar nav { display: flex; flex-direction: column; flex: 0 0 auto; }

/* Overlay hinter der Sidebar (Mobile) */
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 17, 21, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--wv-trans);
    z-index: 105;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 1024px) {
    .sidebar-overlay { display: none !important; }
}

/* Burger-Button (in Header sichtbar bis 1024px) */
.nav-burger {
    width: 40px; height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--wv-radius-sm);
    background: transparent;
    border: 1px solid var(--wv-border);
    color: var(--wv-text);
    cursor: pointer;
    transition: all var(--wv-trans);
    padding: 0;
    flex-shrink: 0;
}
.nav-burger:hover { background: var(--wv-surface-soft); }
.nav-burger:focus-visible { outline: 3px solid rgba(81, 30, 234, 0.3); outline-offset: 2px; }
.nav-burger__bars { position: relative; width: 18px; height: 14px; }
.nav-burger__bars span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform var(--wv-trans), opacity var(--wv-trans), top var(--wv-trans);
}
.nav-burger__bars span:nth-child(1) { top: 0; }
.nav-burger__bars span:nth-child(2) { top: 6px; }
.nav-burger__bars span:nth-child(3) { top: 12px; }
.nav-burger.is-open .nav-burger__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger.is-open .nav-burger__bars span:nth-child(2) { opacity: 0; }
.nav-burger.is-open .nav-burger__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
    .nav-burger { display: none; }
}

/* Innerhalb der Sidebar: Close-Button (nur Mobile) */
.app-sidebar__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: var(--wv-radius-sm);
    background: transparent;
    border: 1px solid var(--wv-border);
    color: var(--wv-text-soft);
    cursor: pointer;
    display: inline-grid; place-items: center;
}
.app-sidebar__close:hover { background: var(--wv-surface-soft); color: var(--wv-text); }
@media (min-width: 1024px) {
    .app-sidebar__close { display: none; }
}

.nav-section { padding: 16px 8px 6px; font-size: var(--wv-fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--wv-text-muted); }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; margin: 2px 0;
    border-radius: var(--wv-radius);
    color: var(--wv-text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--wv-trans);
}
.nav-link:hover { background: var(--wv-surface-soft); color: var(--wv-text); }
.nav-link.is-active {
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    font-weight: 600;
}
.nav-link .nav-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--wv-text-muted); transition: color var(--wv-trans); }
.nav-link:hover .nav-icon { color: var(--wv-coral-deep); }
.nav-link.is-active .nav-icon { color: var(--wv-coral-deep); }
.nav-link .nav-badge {
    margin-left: auto;
    background: var(--wv-gradient);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--wv-radius-pill);
}

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.app-header {
    min-height: 60px;
    background: var(--wv-bg-alt);
    border-bottom: 1px solid var(--wv-border);
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: blur(10px);
}
@media (min-width: 768px)  { .app-header { padding: 10px 20px; min-height: 64px; } }
@media (min-width: 1024px) { .app-header { padding: 0 24px; height: 64px; } }
.app-header__left {
    display: flex; align-items: center; gap: 12px;
    min-width: 0; flex: 1;
}
.app-header__title {
    font-size: var(--wv-fs-base); font-weight: 700; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
}
@media (min-width: 768px) { .app-header__title { font-size: var(--wv-fs-lg); } }
.app-header__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (min-width: 768px) { .app-header__right { gap: 16px; } }

/* Account-Block im Header: auf Mobile nur Avatar */
.app-header__user { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.app-header__user-meta { display: none; line-height: 1.3; }
@media (min-width: 1024px) { .app-header__user-meta { display: block; } }

.app-content { padding: 16px; flex: 1; }
@media (min-width: 768px)  { .app-content { padding: 24px; } }
@media (min-width: 1024px) { .app-content { padding: 32px; } }
.app-content__inner { max-width: 1200px; margin: 0 auto; }

/* XP Bar - immer am unteren Ende der Sidebar */
.xp-meter {
    margin-top: auto;
    padding: 16px 12px;
    background: var(--wv-surface-soft);
    border-radius: var(--wv-radius);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}
.xp-meter__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: var(--wv-fs-sm); font-weight: 600; }
.xp-meter__bar  { height: 8px; background: var(--wv-border-soft); border-radius: 999px; overflow: hidden; }
.xp-meter__fill { height: 100%; background: var(--wv-gradient); border-radius: 999px; transition: width 400ms ease; }
.xp-meter__meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--wv-fs-xs); color: var(--wv-text-muted); }

/* -------------------- Avatar -------------------- */
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--wv-gradient);
    display: inline-grid; place-items: center;
    color: #fff;
    font-size: 20px;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--wv-shadow-sm);
}
.avatar--lg { width: 96px; height: 96px; font-size: 44px; box-shadow: var(--wv-shadow); }
.avatar--xl { width: 140px; height: 140px; font-size: 64px; box-shadow: var(--wv-shadow-lg); }
.avatar--sm { width: 32px; height: 32px; font-size: 16px; }
.avatar__accent {
    position: absolute;
    right: -4px; bottom: -4px;
    background: #fff;
    border-radius: 50%;
    width: 38%; height: 38%;
    display: grid; place-items: center;
    font-size: 50%;
    box-shadow: var(--wv-shadow-xs);
    line-height: 1;
}
.avatar--peach { background: linear-gradient(135deg, #FFD3B0 0%, #FFAA7F 100%); }
.avatar--ocean { background: linear-gradient(135deg, #74C7EC 0%, #2E7CF6 100%); }
.avatar--mint  { background: linear-gradient(135deg, #9BE7C4 0%, #2BB673 100%); }
.avatar--lilac { background: linear-gradient(135deg, #C7B0FF 0%, #7B5CFF 100%); }
.avatar--sun   { background: linear-gradient(135deg, #FFE08A 0%, #FFB347 100%); }
.avatar--night { background: linear-gradient(135deg, #4A4E69 0%, #22223B 100%); }

/* Charakter-Avatar (Multiavatar-SVG sitzt auf dem Verlauf) */
.avatar--figure { overflow: hidden; }
.avatar--figure svg { width: 82%; height: 82%; display: block; }

/* -------------------- Avatar-Builder (Figur + Emoji) -------------------- */
.av-tabs {
    display: inline-flex; gap: 4px;
    background: var(--wv-surface-soft);
    padding: 4px; border-radius: var(--wv-radius);
    margin-bottom: 16px;
}
.av-tab {
    border: 0; background: transparent;
    padding: 8px 16px; border-radius: var(--wv-radius-sm);
    font-size: 14px; font-weight: 600; color: var(--wv-text-muted);
    cursor: pointer; transition: background var(--wv-trans), color var(--wv-trans);
}
.av-tab.is-active { background: var(--wv-surface); color: var(--wv-text); box-shadow: var(--wv-shadow-xs); }
.av-mode[hidden] { display: none; }
.av-figrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.av-figgrid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 10px; margin-top: 4px;
}
.av-fig {
    aspect-ratio: 1; border: 2px solid transparent; border-radius: 14px;
    padding: 4px; background: var(--wv-surface-soft); cursor: pointer;
    display: grid; place-items: center; transition: border-color var(--wv-trans);
}
.av-fig:hover { border-color: var(--wv-border); }
.av-fig.is-selected { border-color: var(--wv-purple); background: var(--wv-gradient-soft); }
.av-fig .avatar { width: 100%; height: 100%; box-shadow: none; }
.av-morewrap { margin-top: 12px; display: flex; justify-content: center; }
.av-morewrap .btn[hidden] { display: none; }

/* Charakter-Avatar in Chat-Blasen */
.msg__avatar--figure { overflow: hidden; background: var(--wv-gradient); }
.msg__avatar--figure svg { width: 100%; height: 100%; display: block; }

/* -------------------- Welcome Card (Dashboard) -------------------- */
.welcome-card {
    background: var(--wv-gradient);
    color: #fff;
    /* Symbole mitziehen: sonst faerbt [data-theme="dark"] .icon sie auf
       #8B6CFF ein - 1,44:1 auf dem Lila der Karte. */
    --wv-icon: #fff;
    border-radius: var(--wv-radius);
    padding: 16px;
    box-shadow: var(--wv-shadow-brand);
    display: grid; gap: 14px;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
}
@media (min-width: 640px) { .welcome-card { padding: 22px; gap: 20px; margin-bottom: 20px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 1024px) { .welcome-card { padding: 32px; gap: 24px; margin-bottom: 24px; } }
@media (min-width: 880px) {
    .welcome-card { grid-template-columns: 1fr 280px; align-items: center; }
}
.welcome-card__eyebrow {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}
.welcome-card__title {
    color: #fff;
    font-size: clamp(20px, 3vw, 36px);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
@media (min-width: 640px) { .welcome-card__title { margin: 0 0 10px; } }
.welcome-card__sub {
    color: rgba(255,255,255,0.95);
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 540px;
}
@media (min-width: 640px) { .welcome-card__sub { font-size: 15px; line-height: 1.55; margin: 0 0 20px; } }
@media (min-width: 880px) { .welcome-card__sub { font-size: 16px; } }
.welcome-card__stat {
    background: rgba(255,255,255,0.12);
    border-radius: var(--wv-radius-sm);
    padding: 12px;
    backdrop-filter: blur(6px);
}
@media (min-width: 640px) { .welcome-card__stat { border-radius: var(--wv-radius); padding: 16px; } }
@media (min-width: 880px) { .welcome-card__stat { padding: 20px; } }
.welcome-card__stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
@media (min-width: 640px) { .welcome-card__stat-label { font-size: 12px; letter-spacing: 0.1em; } }
.welcome-card__stat-value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 8px; line-height: 1.1; }
@media (min-width: 640px) { .welcome-card__stat-value { font-size: 30px; margin: 4px 0 10px; } }
@media (min-width: 880px) { .welcome-card__stat-value { font-size: 36px; margin: 4px 0 12px; } }
.welcome-card__stat-value small { font-size: 14px; font-weight: 600; opacity: 0.85; }
.welcome-card__progress { height: 6px; background: rgba(255,255,255,0.22); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.welcome-card__progress-fill { height: 100%; background: #fff; border-radius: 999px; transition: width 400ms ease; }
.welcome-card__stat-meta { font-size: 13px; display: flex; align-items: center; gap: 6px; opacity: 0.9; }

/* Badge Grid - 2 Spalten ab Mobile, mehr ab Desktop */
.badge-grid {
    display: grid; gap: 8px;
    /* Handy: EINE Spalte - lange Badge-Namen (z. B. "Empfehlungs-Detektiv")
       bleiben lesbar statt in enger 2-Spalten-Ansicht mitten im Wort zu brechen
       oder seitlich aus dem Bild zu laufen. */
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .badge-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
.badge-item {
    display: flex; gap: 8px; align-items: flex-start;
    padding: 10px 10px;
    background: var(--wv-surface-soft);
    border: 1px solid transparent;
    border-radius: var(--wv-radius-sm);
    transition: transform var(--wv-trans), box-shadow var(--wv-trans);
}
@media (min-width: 640px) {
    .badge-item { gap: 14px; padding: 14px 16px; border-radius: var(--wv-radius); }
}
.badge-item--earned {
    background: var(--wv-surface);
    border-color: var(--wv-border);
    box-shadow: 0 2px 8px rgba(81, 30, 234, 0.06);
}
.badge-item--earned:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(81, 30, 234, 0.12);
}
.badge-item--locked {
    opacity: 0.62;
    filter: grayscale(0.3);
}
.badge-item--locked:hover { opacity: 0.85; }

.badge-item__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.badge-item__emoji {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--wv-gradient-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1;
    flex-shrink: 0;
}
.badge-item__emoji--locked {
    background: var(--wv-surface-soft);
    color: var(--wv-text-muted);
    font-size: 20px;
}
.badge-item__body { min-width: 0; }
.badge-item__name { font-weight: 700; font-size: 14px; color: var(--wv-text); line-height: 1.25; overflow-wrap: break-word; }
.badge-item__desc { font-size: 12px; color: var(--wv-text-muted); line-height: 1.45; margin-top: 4px; overflow-wrap: break-word; }
.badge-item__meta {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    margin-top: 8px;
    font-size: 11px; line-height: 1;
}
.badge-item__xp {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    border-radius: var(--wv-radius-pill);
    font-weight: 700;
}
.badge-item__date,
.badge-item__locked-label {
    color: var(--wv-text-muted);
    font-weight: 500;
}
.section-title__count {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wv-text-muted);
    background: var(--wv-surface-soft);
    border-radius: var(--wv-radius-pill);
    vertical-align: middle;
}

/* Badge-Toast (Auszeichnung freigeschaltet) */
.badge-toast-host {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 12px;
    pointer-events: none;
    max-width: 360px;
}
.badge-toast {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: var(--wv-gradient);
    color: #fff;
    border-radius: var(--wv-radius);
    box-shadow: 0 16px 40px rgba(81, 30, 234, 0.32);
    transform: translateX(120%);
    transition: transform 360ms cubic-bezier(.21,1.02,.31,1);
    pointer-events: auto;
}
.badge-toast--in { transform: translateX(0); }
.badge-toast__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.badge-toast__title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    opacity: 0.88;
}
.badge-toast__name {
    font-size: 16px; font-weight: 700; line-height: 1.2; margin-top: 2px;
}

/* -------------------- Module Cards (Dashboard) -------------------- */
/* Mobile: 2 nebeneinander (3. darunter), ab 880px 3 nebeneinander */
.modules-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .modules-grid { gap: 14px; } }
@media (min-width: 880px) {
    .modules-grid {
        gap: 20px;
        grid-template-columns: repeat(3, 1fr);
    }
}
.module-card {
    position: relative;
    padding: 14px;
    border-radius: var(--wv-radius);
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    transition: all var(--wv-trans);
    overflow: hidden;
    display: flex; flex-direction: column; gap: 8px;
    min-height: auto;
}
@media (min-width: 640px) {
    .module-card { padding: 20px; border-radius: var(--wv-radius-lg); gap: 12px; }
}
@media (min-width: 880px) {
    .module-card { padding: 28px; gap: 14px; min-height: 220px; }
}
.module-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--wv-shadow);
    border-color: transparent;
}
.module-card__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    display: inline-flex; align-items: center; justify-content: center;
}
.module-card__icon svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
    .module-card__icon { width: 48px; height: 48px; border-radius: 14px; }
    .module-card__icon svg { width: 24px; height: 24px; }
}
@media (min-width: 880px) {
    .module-card__icon { width: 56px; height: 56px; border-radius: 16px; }
    .module-card__icon svg { width: 28px; height: 28px; }
}
.module-card__icon--inverse {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.module-card__title { font-size: 14px; margin: 0; line-height: 1.25; }
@media (min-width: 640px) { .module-card__title { font-size: 18px; } }
@media (min-width: 880px) { .module-card__title { font-size: var(--wv-fs-xl); } }
.module-card__desc { color: var(--wv-text-soft); font-size: 12px; line-height: 1.4; margin: 0; flex: 1; }
@media (min-width: 640px) { .module-card__desc { font-size: 13px; line-height: 1.5; } }
@media (min-width: 880px) { .module-card__desc { font-size: var(--wv-fs-sm); } }
.module-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--wv-coral-deep);
    font-weight: 600;
    font-size: 12px;
}
@media (min-width: 640px) { .module-card__cta { gap: 6px; font-size: var(--wv-fs-sm); } }
.module-card--accent { background: var(--wv-gradient); color: #fff; border-color: transparent; }
.module-card--accent .module-card__icon { background: rgba(255,255,255,0.2); }
.module-card--accent .module-card__title,
.module-card--accent .module-card__desc,
.module-card--accent .module-card__cta { color: #fff; }
.module-card__lock {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 10px;
    border-radius: var(--wv-radius-pill);
    background: var(--wv-surface-soft);
    color: var(--wv-text-muted);
    font-size: var(--wv-fs-xs);
    font-weight: 600;
}

/* -------------------- Sections (Landing-Page) -------------------- */
.section { padding: 36px 0; }
@media (min-width: 640px)  { .section { padding: 48px 0; } }
@media (min-width: 768px)  { .section { padding: 64px 0; } }
@media (min-width: 1024px) { .section { padding: 88px 0; } }
.section--soft { background: var(--wv-surface-soft); }
.section__head { max-width: 780px; margin: 0 auto 20px; text-align: center; }
@media (min-width: 640px) { .section__head { margin-bottom: 28px; } }
@media (min-width: 768px) { .section__head { margin-bottom: 48px; } }
.section__head h2 { font-size: clamp(20px, 4vw, 40px); margin-bottom: 8px; line-height: 1.2; }
@media (min-width: 640px) { .section__head h2 { margin-bottom: 12px; } }
.section__head .lead { font-size: clamp(13px, 1.8vw, 17px); color: var(--wv-text-soft); line-height: 1.45; }
.section__head .eyebrow { font-size: 10px; margin-bottom: 6px; }
@media (min-width: 640px) { .section__head .eyebrow { font-size: 12px; margin-bottom: 12px; } }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wv-coral-deep);
    margin-bottom: 12px;
}

.grid-2 {
    display: grid; gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { gap: 36px; } }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }

/* USPs - 2 Spalten ab 360px, 3 Spalten ab 880px */
.usp-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .usp-grid { gap: 14px; }
}
@media (min-width: 880px) {
    .usp-grid {
        gap: 20px;
        grid-template-columns: repeat(3, 1fr);
    }
}
.usp {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius);
    padding: 14px;
    transition: all var(--wv-trans);
}
@media (min-width: 640px) { .usp { padding: 18px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 880px) { .usp { padding: 28px; } }
.usp:hover { border-color: var(--wv-coral); transform: translateY(-2px); box-shadow: var(--wv-shadow); }
.usp h3 { font-size: 14px; margin: 10px 0 6px; line-height: 1.25; }
@media (min-width: 640px) { .usp h3 { font-size: 17px; margin: 14px 0 8px; } }
@media (min-width: 880px) { .usp h3 { font-size: 20px; margin: 16px 0 8px; } }
.usp p { color: var(--wv-text-soft); margin: 0; font-size: 12.5px; line-height: 1.45; }
@media (min-width: 640px) { .usp p { font-size: 14px; line-height: 1.55; } }
@media (min-width: 880px) { .usp p { font-size: 15px; line-height: 1.6; } }
/* Kleinere Icon-Kacheln innerhalb der USPs auf Mobile */
.usp .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.usp .icon-tile svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
    .usp .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
    .usp .icon-tile svg { width: 22px; height: 22px; }
}
@media (min-width: 880px) {
    .usp .icon-tile { width: 48px; height: 48px; }
    .usp .icon-tile svg { width: 26px; height: 26px; }
}

/* Check-Liste */
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--wv-text-soft); }
.check-list li .icon { margin-top: 2px; color: var(--wv-success); flex-shrink: 0; }
.check-list li strong { color: var(--wv-text); }

/* Growth Visual: 2 Karten nebeneinander auf Mobile, untereinander erst ab Desktop */
.growth-visual {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}
@media (min-width: 880px) {
    .growth-visual {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}
.growth-card {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius);
    padding: 12px;
    box-shadow: var(--wv-shadow-xs);
    transition: transform var(--wv-trans);
}
@media (min-width: 640px) { .growth-card { padding: 18px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 880px) { .growth-card { padding: 24px; } }
.growth-card:hover { transform: translateY(-1px); }
.growth-card--active {
    border-color: var(--wv-coral);
    box-shadow: var(--wv-shadow);
    transform: translateY(-4px);
}
.growth-card__label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wv-text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
@media (min-width: 640px) { .growth-card__label { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 8px; } }
.growth-card--active .growth-card__label { color: var(--wv-coral-deep); }
.growth-card__title { font-size: 13px; font-weight: 700; color: var(--wv-text); margin-bottom: 10px; line-height: 1.3; }
@media (min-width: 640px) { .growth-card__title { font-size: 15px; margin-bottom: 14px; } }
@media (min-width: 880px) { .growth-card__title { font-size: 18px; margin-bottom: 16px; } }
.growth-bars { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 640px) { .growth-bars { gap: 10px; } }
.growth-bar {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 6px; align-items: center;
}
@media (min-width: 640px) { .growth-bar { grid-template-columns: 100px 1fr; gap: 12px; } }
.growth-bar span { font-size: 11px; font-weight: 600; color: var(--wv-text-soft); }
@media (min-width: 640px) { .growth-bar span { font-size: 13px; } }
.growth-bar__track { height: 6px; background: var(--wv-border-soft); border-radius: 999px; overflow: hidden; }
@media (min-width: 640px) { .growth-bar__track { height: 8px; } }
.growth-bar__fill { height: 100%; background: var(--wv-gradient); border-radius: 999px; }

/* Vergleichstabelle */
.compare-wrap {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg);
    overflow: hidden;
    box-shadow: var(--wv-shadow-xs);
}
.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.compare th, .compare td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--wv-border-soft);
}
.compare thead th {
    background: var(--wv-surface-soft);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wv-text-soft);
}
.compare thead th.compare__brand {
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
}
.compare tbody td:first-child {
    width: 28%;
    font-weight: 600;
    color: var(--wv-text);
}
.compare tbody td:nth-child(2) {
    width: 36%;
    background: rgba(107, 70, 255, 0.04);
    color: var(--wv-text);
}
.compare tbody td:nth-child(3) {
    color: var(--wv-text-muted);
}
.compare tbody td .icon { vertical-align: middle; margin-right: 8px; }
.compare tbody tr:last-child td { border-bottom: 0; }
/* Mobile-Compare: kompakte 3-Spalten-Tabelle statt Block-Stack */
@media (max-width: 720px) {
    .compare-wrap { border-radius: var(--wv-radius); }
    .compare { font-size: 12px; table-layout: fixed; }
    .compare th, .compare td { padding: 8px 8px; line-height: 1.35; }
    .compare thead th {
        font-size: 9.5px;
        padding: 8px 6px;
        letter-spacing: 0.04em;
    }
    .compare thead th.compare__brand img { height: 22px !important; }
    .compare tbody td:first-child {
        width: 28%;
        font-size: 11px;
        font-weight: 700;
    }
    .compare tbody td:nth-child(2),
    .compare tbody td:nth-child(3) {
        width: 36%;
        font-size: 11.5px;
    }
    .compare tbody td .icon {
        display: block;
        margin: 0 0 4px 0;
        width: 14px; height: 14px;
    }
    .compare tbody td .icon svg { width: 14px; height: 14px; }
}
@media (max-width: 420px) {
    .compare { font-size: 11px; }
    .compare th, .compare td { padding: 6px 5px; }
    .compare thead th { font-size: 9px; }
    .compare thead th.compare__brand img { height: 18px !important; }
    .compare tbody td:first-child { font-size: 10.5px; }
    .compare tbody td:nth-child(2),
    .compare tbody td:nth-child(3) { font-size: 10.5px; }
}

/* Step Cards (3 Module): immer mindestens 2 nebeneinander auf Mobile (Modul 3 darunter) */
.step-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .step-grid { gap: 14px; } }
@media (min-width: 880px) {
    .step-grid {
        gap: 20px;
        grid-template-columns: repeat(3, 1fr);
    }
}
.step-card {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius);
    padding: 14px;
    position: relative;
    transition: all var(--wv-trans);
}
@media (min-width: 640px) { .step-card { padding: 20px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 880px) { .step-card { padding: 32px; } }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--wv-shadow); }
.step-card__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
@media (min-width: 640px) { .step-card__head { margin-bottom: 16px; gap: 12px; } }
.step-card__num {
    font-size: 22px;
    font-weight: 800;
    color: var(--wv-border);
    letter-spacing: -0.02em;
    font-family: var(--wv-font-display);
}
@media (min-width: 640px) { .step-card__num { font-size: 28px; } }
@media (min-width: 880px) { .step-card__num { font-size: 36px; } }
/* Icon-Tile in Step-Card kleiner auf Mobile */
.step-card .icon-tile { width: 32px; height: 32px; border-radius: 9px; }
.step-card .icon-tile svg { width: 16px; height: 16px; }
@media (min-width: 640px) {
    .step-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
    .step-card .icon-tile svg { width: 20px; height: 20px; }
}
@media (min-width: 880px) {
    .step-card .icon-tile { width: 48px; height: 48px; }
    .step-card .icon-tile svg { width: 24px; height: 24px; }
}
.step-card__link {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
    font-size: 14px; font-weight: 700; color: var(--wv-purple);
}
.step-card__link .icon { transition: transform var(--wv-trans); }
.step-card:hover .step-card__link .icon { transform: translateX(3px); }
.step-card h3 { font-size: 14px; margin: 0 0 6px; line-height: 1.25; }
@media (min-width: 640px) { .step-card h3 { font-size: 18px; margin: 0 0 8px; } }
@media (min-width: 880px) { .step-card h3 { font-size: 22px; margin: 0 0 10px; } }
.step-card p { font-size: 12.5px; line-height: 1.45; color: var(--wv-text-soft); margin: 0; }
@media (min-width: 640px) { .step-card p { font-size: 14px; line-height: 1.55; } }
@media (min-width: 880px) { .step-card p { font-size: 15px; line-height: 1.6; } }
.step-card p { color: var(--wv-text-soft); margin: 0; font-size: 15px; line-height: 1.6; }

/* CTA */
.cta-card {
    background: var(--wv-gradient);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--wv-radius-lg);
    box-shadow: var(--wv-shadow-brand);
}
@media (min-width: 768px) { .cta-card { padding: 56px 28px; } }
@media (min-width: 1024px) { .cta-card { padding: 64px 32px; } }
.cta-card h2 { color: #fff; font-size: clamp(22px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,0.95); font-size: clamp(15px, 1.8vw, 18px); margin-bottom: 22px; }

/* Hero-Trust */
.hero__trust {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-top: 20px;
    font-size: 11px; color: var(--wv-text-muted);
}
@media (min-width: 640px) {
    .hero__trust { gap: 16px; margin-top: 28px; font-size: 12px; }
}
@media (min-width: 880px) {
    .hero__trust { gap: 24px; margin-top: 32px; font-size: 13px; }
}
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--wv-text-muted); }

/* -------------------- Hero -------------------- */
.hero {
    text-align: center;
    padding: 32px 0 28px;
    position: relative;
    overflow: hidden;
}
@media (min-width: 640px)  { .hero { padding: 56px 0 44px; } }
@media (min-width: 768px)  { .hero { padding: 80px 0 60px; } }
@media (min-width: 1024px) { .hero { padding: 96px 0 72px; } }
.hero h1 { font-size: clamp(24px, 6.4vw, 68px); margin-bottom: 12px; line-height: 1.1; letter-spacing: -0.03em; }
@media (min-width: 640px) { .hero h1 { margin-bottom: 16px; } }
.hero .lead { font-size: clamp(13px, 2vw, 19px); color: var(--wv-text-soft); max-width: 680px; margin: 0 auto 20px; line-height: 1.5; }
@media (min-width: 640px) { .hero .lead { margin: 0 auto 28px; line-height: 1.55; } }
.hero__cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
@media (min-width: 480px) { .hero__cta { gap: 12px; } }
@media (max-width: 380px) {
    .hero__cta .btn { width: 100%; }
}
.hero .tag--brand { margin-bottom: 10px; }
@media (min-width: 640px) { .hero .tag--brand { margin-bottom: 16px; } }
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(40% 40% at 80% 20%, rgba(107, 70, 255,0.15), transparent 70%),
        radial-gradient(50% 50% at 10% 80%, rgba(81, 30, 234,0.12), transparent 70%);
}

/* ====================================================================
   WEGVIO Code-Editor-Hero - Signatur ("finde deinen Weg|")
   Zeilennummern-Gutter · blinkender Cursor · Code-Zeile am Fuß.
   Mobile-first.
   ==================================================================== */
.wv-hero {
    position: relative;
    background: var(--wv-purple);
    background-image: radial-gradient(125% 85% at 88% -12%, var(--wv-purple-bright), transparent 56%);
    color: #fff;
    overflow: hidden;
    display: flex;
    min-height: clamp(500px, 82vh, 760px);
    padding: 16px 18px 0;
}
.wv-hero__inner {
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    text-align: left;
    padding: 24px 2px;
    max-width: 1040px; margin: 0 auto; width: 100%;
}
.wv-hero__title {
    font-family: var(--wv-font-display);
    font-weight: 700;
    font-size: clamp(38px, 12.5vw, 96px);
    line-height: 1.0; letter-spacing: -0.03em;
    color: #fff; margin: 0 0 18px;
}
.wv-hero__lead {
    font-size: clamp(14px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.5; max-width: 560px; margin: 0 0 24px;
}
.wv-hero__lead b { color: #fff; font-weight: 700; }
.wv-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
@media (max-width: 400px) { .wv-hero__cta .btn { width: 100%; } }
.wv-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.wv-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.wv-hero__trust {
    display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 24px;
    font-family: var(--wv-font-mono); font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}
.wv-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.wv-hero__trust .icon { color: rgba(255, 255, 255, 0.72); }
@media (min-width: 768px) {
    .wv-hero { padding: 26px 34px 0; }
    .wv-hero__inner { padding: 24px 14px; }
}

/* -------------------- Module Header (innerhalb von Modul-Seiten) -------------------- */
.module-header {
    display: flex; align-items: center; gap: 16px;
}
.module-header h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; letter-spacing: -0.02em; }

/* -------------------- Stat -------------------- */
/* Mobile: 2 Spalten, ab 640px 4 Spalten */
.stat-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .stat-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}
@media (min-width: 880px) { .stat-grid { gap: 16px; } }
.stat {
    padding: 12px;
    border-radius: var(--wv-radius);
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
}
@media (min-width: 640px) { .stat { padding: 16px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 880px) { .stat { padding: 20px; } }
.stat__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wv-text-muted); font-weight: 600; line-height: 1.2; }
@media (min-width: 640px) { .stat__label { font-size: var(--wv-fs-xs); letter-spacing: 0.08em; } }
.stat__value { font-size: 22px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.02em; line-height: 1.1; }
@media (min-width: 640px) { .stat__value { font-size: 26px; margin: 6px 0 2px; } }
@media (min-width: 880px) { .stat__value { font-size: var(--wv-fs-3xl); margin: 8px 0 2px; } }
.stat__hint  { font-size: 11px; color: var(--wv-text-muted); line-height: 1.3; }
@media (min-width: 640px) { .stat__hint { font-size: var(--wv-fs-sm); } }
.stat__value--brand { background: var(--wv-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -------------------- Footer -------------------- */
.app-footer {
    border-top: 1px solid var(--wv-border);
    padding: 20px 16px;
    color: var(--wv-text-muted);
    font-size: var(--wv-fs-sm);
    /* Mobil-first: eine Spalte, alles zentriert gestapelt (Copyright, Icons, Recht). */
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    gap: 14px;
    line-height: 1.55;
}
/* Ab Desktop drei Spalten: 1fr | auto | 1fr. Die gleich breiten Randspalten
   sorgen dafuer, dass die Social-Icons in der Mitte EXAKT zentriert sitzen -
   unabhaengig davon, wie breit Copyright links und Rechtslinks rechts sind. */
@media (min-width: 860px) {
    .app-footer {
        grid-template-columns: 1fr auto 1fr;
        justify-items: stretch;
        text-align: left;
        padding: 24px 32px;
        gap: 16px 24px;
    }
    .app-footer > :first-child { justify-self: start; }
    .app-footer > .wv-social   { justify-self: center; }
    .app-footer > :last-child  { justify-self: end; text-align: right; }
}

/* -------------------- Social-Media-Links (Instagram + TikTok) -------------------- */
/* Eltern-Weiche im Onboarding (unter 16, Art. 8 DSGVO). Liegt bewusst als
   eigene Ebene im .ob-Overlay und nicht als Trichter-Schritt, damit sie die
   Schrittlogik nicht beruehrt. */
.ob-gate {
    flex: 1 1 auto; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 18px;
    overflow-y: auto;
}
.ob-gate[hidden] { display: none; }
.ob-gate__inner { width: 100%; max-width: 460px; }
.ob-gate__link {
    margin: 16px 0 8px; text-align: center;
    font-size: 12.5px; line-height: 1.5; color: var(--wv-text-muted);
}
.ob-gate__link code {
    display: inline-block; margin-top: 4px; padding: 4px 8px;
    background: var(--wv-lav-bg); border-radius: 7px;
    font-size: 12.5px; color: var(--wv-purple);
    word-break: break-all;
}

/* KI-Kennzeichnung im Footer (Art. 50 KI-VO). Eine Zeile unter dem Copyright,
   in allen Layouts und in beiden Trichter-Fuessen. */
.app-footer__ai { font-weight: 600; color: var(--wv-text-soft); }
.ob__foot-ai    { font-size: 11px; color: var(--wv-text-muted); letter-spacing: .02em; }
.ob.is-dark .ob__foot-ai { color: rgba(255,255,255,.7); }

.wv-social { display: inline-flex; align-items: center; gap: 14px; }
.wv-social__link {
    display: inline-flex; align-items: center; justify-content: center;
    color: inherit; opacity: 0.7;
    transition: opacity var(--wv-trans), color var(--wv-trans), transform var(--wv-trans);
}
.wv-social__link:hover { opacity: 1; color: var(--wv-purple); transform: translateY(-1px); }
.wv-social__svg { width: 20px; height: 20px; display: block; }
/* Hero-Variante ("Folgt uns ...") auf dunklem Verlauf -> weiss */
.wv-social-follow {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 12px; margin-top: 24px;
    font-size: var(--wv-fs-sm); color: rgba(255, 255, 255, 0.85);
}
.wv-social-follow .wv-social__link { color: #fff; opacity: 0.85; }
.wv-social-follow .wv-social__link:hover { color: #fff; opacity: 1; }
.wv-social-follow .wv-social__svg { width: 26px; height: 26px; }

/* Footer-Variante: groessere runde Klickflaechen mit dezentem Lavendel-Hover,
   damit die zentrierten Icons als eigene Einheit wirken. */
.app-footer .wv-social { gap: 6px; }
.app-footer .wv-social__link {
    width: 36px; height: 36px; border-radius: 50%;
    opacity: 1; color: var(--wv-text-muted);
}
.app-footer .wv-social__link:hover {
    color: var(--wv-purple);
    background: var(--wv-lav-bg);
    transform: translateY(-1px);
}

/* -------------------- Profile Page -------------------- */
.profile-header {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px;
    background: var(--wv-gradient);
    color: #fff;
    border-radius: var(--wv-radius);
    box-shadow: var(--wv-shadow-brand);
    margin-bottom: 14px;
}
@media (min-width: 640px) { .profile-header { padding: 22px; gap: 18px; margin-bottom: 22px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 880px) { .profile-header { padding: 28px; gap: 24px; margin-bottom: 24px; } }
.profile-header h2 { color: #fff; margin: 0 0 4px; font-size: 18px; }
/* Text auf dem lila Verlauf weiss halten (sonst greift die globale p-Farbe).
   Buttons NICHT erfassen - die haben ihre eigene Textfarbe (z.B. btn--white). */
.profile-header,
.profile-header p { color: #fff; }
@media (min-width: 640px) { .profile-header h2 { font-size: 22px; } }
@media (min-width: 880px) { .profile-header h2 { font-size: var(--wv-fs-2xl); } }
.profile-header .role-pill {
    display: inline-block; padding: 3px 10px;
    background: rgba(255,255,255,0.22);
    border-radius: var(--wv-radius-pill);
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
}
@media (min-width: 640px) { .profile-header .role-pill { padding: 4px 12px; font-size: var(--wv-fs-xs); letter-spacing: 0.08em; } }

.section-title {
    font-size: 16px; font-weight: 700;
    margin: 18px 0 10px;
}
@media (min-width: 640px) { .section-title { font-size: var(--wv-fs-xl); margin: 32px 0 16px; } }

/* Mein-Konto: AI-Profil-Übersicht */
.ai-summary-card {
    background: var(--wv-gradient);
    color: #fff;
    border-radius: var(--wv-radius);
    padding: 14px;
    box-shadow: var(--wv-shadow-brand);
}
@media (min-width: 640px) { .ai-summary-card { padding: 20px; border-radius: var(--wv-radius-lg); } }
@media (min-width: 880px) { .ai-summary-card { padding: 28px; } }
.ai-summary-card__head {
    display: grid; gap: 12px;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 640px) { .ai-summary-card__head { gap: 16px; } }
@media (min-width: 880px) {
    .ai-summary-card__head { grid-template-columns: 1fr auto; gap: 20px; }
}
.ai-summary-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
@media (min-width: 640px) { .ai-summary-card__meta { gap: 8px; margin-bottom: 12px; } }
.ai-summary-card__meta .tag {
    background: rgba(255,255,255,0.22); color: #fff; --wv-icon: #fff; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.ai-summary-card__meta .tag--ok { background: rgba(43,182,115,0.85); }
.ai-summary-card__meta .tag--warn { background: rgba(245,166,35,0.85); }
.ai-summary-card__headline { font-size: clamp(16px, 2.4vw, 30px); color: #fff; margin: 0 0 6px; letter-spacing: -0.02em; line-height: 1.2; }
@media (min-width: 640px) { .ai-summary-card__headline { margin: 0 0 10px; } }
.ai-summary-card__summary { color: rgba(255,255,255,0.95); margin: 0; font-size: 13px; line-height: 1.45; max-width: 720px; }
@media (min-width: 640px) { .ai-summary-card__summary { font-size: 15px; line-height: 1.55; } }

.ai-mini-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 880px) {
    .ai-mini-grid { grid-template-columns: 1.4fr 1fr; }
}

/* RIASEC Bars im Profil-Kontext */
.profile-riasec { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.profile-riasec__row {
    display: grid; grid-template-columns: 180px 1fr 32px;
    gap: 10px; align-items: center;
}
@media (max-width: 540px) {
    .profile-riasec__row { grid-template-columns: 130px 1fr 28px; gap: 8px; }
}
.profile-riasec__label { font-size: 12px; font-weight: 600; color: var(--wv-text-soft); }
.profile-riasec__track { height: 8px; background: var(--wv-border-soft); border-radius: 999px; overflow: hidden; }
.profile-riasec__fill  { height: 100%; background: var(--wv-gradient); border-radius: 999px; transition: width 600ms ease; }
.profile-riasec__val   { font-size: 12px; font-weight: 700; text-align: right; color: var(--wv-text-soft); }

/* Cluster-Chips & Insights */
.cluster-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cluster-chip {
    padding: 6px 12px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
}
.insight-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.insight-list li {
    padding: 8px 12px;
    background: var(--wv-surface-soft);
    border-left: 3px solid var(--wv-coral);
    border-radius: 8px;
    font-size: 13px; color: var(--wv-text-soft); line-height: 1.45;
}

/* Sektionen-Mini-Vorschau: 2 Spalten ab Mobile, mehr ab Tablet */
.ai-sections-mini {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .ai-sections-mini {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
.ai-mini-section {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-sm);
    padding: 10px 12px;
}
@media (min-width: 640px) { .ai-mini-section { padding: 14px 16px; border-radius: var(--wv-radius); } }
.ai-mini-section__title {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--wv-text-muted); font-weight: 700; margin-bottom: 6px;
}
@media (min-width: 640px) { .ai-mini-section__title { font-size: 12px; letter-spacing: 0.08em; margin-bottom: 10px; } }
.ai-mini-section__items { display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 640px) { .ai-mini-section__items { gap: 6px; } }
.mini-chip {
    background: var(--wv-surface-soft); color: var(--wv-text);
    padding: 3px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 500;
    overflow-wrap: anywhere;
}
@media (min-width: 640px) { .mini-chip { padding: 4px 10px; font-size: 12px; } }

/* Matching-Teaser im Profil: 2 Spalten Mobile */
.match-teaser-grid {
    display: grid;
    gap: 8px;
    /* minmax(0,..) verhindert, dass lange Berufsnamen (z. B. "Wirtschaftsingenieurwesen")
       die Spalten aufblähen und die rechte Kachel seitlich abschneiden. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .match-teaser-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
.match-teaser {
    background: var(--wv-surface-soft);
    border-radius: var(--wv-radius-sm);
    padding: 10px 12px;
    border-left: 3px solid var(--wv-orange);
}
@media (min-width: 640px) { .match-teaser { padding: 14px 16px; border-radius: var(--wv-radius); } }
.match-teaser__type {
    font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--wv-coral-deep); font-weight: 700; display: block; margin-bottom: 3px;
}
@media (min-width: 640px) { .match-teaser__type { font-size: 11px; letter-spacing: 0.06em; margin-bottom: 4px; } }
.match-teaser strong { display: block; font-size: 13px; color: var(--wv-text); line-height: 1.25; overflow-wrap: anywhere; }
@media (min-width: 640px) { .match-teaser strong { font-size: 15px; } }
.match-teaser__headline { display: block; font-size: 11px; color: var(--wv-text-muted); margin-top: 4px; line-height: 1.3; }
@media (min-width: 640px) { .match-teaser__headline { font-size: 12px; } }

/* -------------------- Emoji Picker -------------------- */
.emoji-builder {
    display: grid;
    gap: 24px;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
}
@media (max-width: 720px) { .emoji-builder { grid-template-columns: 1fr; } }
.emoji-builder__preview {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 24px; border-radius: var(--wv-radius-lg);
    background: var(--wv-surface-soft);
}
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    background: var(--wv-surface-soft);
    border-radius: var(--wv-radius);
}
.emoji-btn {
    aspect-ratio: 1;
    border: 1.5px solid transparent;
    border-radius: var(--wv-radius-sm);
    background: var(--wv-surface);
    font-size: 22px;
    cursor: pointer;
    transition: all 150ms ease;
    display: grid; place-items: center;
}
.emoji-btn:hover { transform: scale(1.1); background: var(--wv-bg-alt); }
.emoji-btn.is-selected { border-color: var(--wv-orange); background: var(--wv-gradient-soft); }

.color-swatches {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.color-swatch {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 150ms ease;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.is-selected { border-color: var(--wv-text); }
.color-swatch[data-color="gradient-orange"] { background: linear-gradient(135deg, #6B46FF 0%, #511EEA 100%); }
.color-swatch[data-color="peach"] { background: linear-gradient(135deg, #FFD3B0 0%, #FFAA7F 100%); }
.color-swatch[data-color="ocean"] { background: linear-gradient(135deg, #74C7EC 0%, #2E7CF6 100%); }
.color-swatch[data-color="mint"]  { background: linear-gradient(135deg, #9BE7C4 0%, #2BB673 100%); }
.color-swatch[data-color="lilac"] { background: linear-gradient(135deg, #C7B0FF 0%, #7B5CFF 100%); }
.color-swatch[data-color="sun"]   { background: linear-gradient(135deg, #FFE08A 0%, #FFB347 100%); }
.color-swatch[data-color="night"] { background: linear-gradient(135deg, #4A4E69 0%, #22223B 100%); }

.emoji-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.emoji-tab {
    padding: 6px 12px;
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-pill);
    font-size: var(--wv-fs-xs);
    font-weight: 600;
    color: var(--wv-text-soft);
    cursor: pointer;
    transition: all var(--wv-trans);
}
.emoji-tab.is-active { background: var(--wv-text); color: #fff; border-color: var(--wv-text); }

/* -------------------- Marketing / Home -------------------- */
.marketing-shell {
    min-height: 100vh;
    background: var(--wv-bg);
    display: flex; flex-direction: column;
}
.marketing-nav {
    min-height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wv-border);
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}
@media (min-width: 768px) { .marketing-nav { padding: 14px 24px; min-height: 76px; } }
@media (min-width: 1024px) { .marketing-nav { padding: 16px 32px; min-height: var(--wv-header-h); } }

/* Desktop-Inline-Links (ab 880px sichtbar) */
.marketing-nav__links {
    display: none;
    gap: 6px; align-items: center;
}
@media (min-width: 880px) {
    .marketing-nav__links { display: flex; }
}
/* Nur echte Text-Links einfärben - Buttons (.btn) behalten ihre eigene Farbe */
.marketing-nav__links a:not(.btn) {
    padding: 8px 14px;
    color: var(--wv-text-soft);
    font-weight: 500;
    border-radius: var(--wv-radius);
    transition: all var(--wv-trans);
}
.marketing-nav__links a:not(.btn):hover { background: var(--wv-surface-soft); color: var(--wv-text); }
.marketing-nav__links a[aria-current="page"] { color: var(--wv-purple); background: rgba(81, 30, 234, 0.07); }

/* "Mehr"-Dropdown (Desktop) - weitere/rechtliche Infos */
.nav-more { position: relative; }
.nav-more__btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px 8px 14px;
    font: inherit; font-weight: 500;
    color: var(--wv-text-soft);
    background: transparent;
    border: 0;
    border-radius: var(--wv-radius);
    cursor: pointer;
    transition: all var(--wv-trans);
}
.nav-more__btn:hover { background: var(--wv-surface-soft); color: var(--wv-text); }
.nav-more__btn:focus-visible { outline: 3px solid rgba(81, 30, 234, 0.3); outline-offset: 2px; }
.nav-more__chev { transition: transform var(--wv-trans); }
.nav-more.is-open .nav-more__chev { transform: rotate(180deg); }
.nav-more.is-open .nav-more__btn { background: var(--wv-surface-soft); color: var(--wv-text); }

.nav-more__menu {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    min-width: 196px;
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg);
    box-shadow: var(--wv-shadow-lg);
    padding: 6px;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--wv-trans), transform var(--wv-trans), visibility var(--wv-trans);
    z-index: 60;
}
.nav-more.is-open .nav-more__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-more__menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    color: var(--wv-text) !important;
    font-weight: 500;
    border-radius: var(--wv-radius-sm);
    white-space: nowrap;
}
.nav-more__menu a:hover { background: var(--wv-surface-soft) !important; }
.nav-more__menu a .icon { color: var(--wv-coral-deep); }

/* "Blog"-Nav mit Hover-Flyout der Artikel (Desktop) */
.nav-blog { position: relative; }
.nav-blog__link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px 8px 14px;
    color: var(--wv-text-soft) !important; font-weight: 500;
    border-radius: var(--wv-radius); transition: all var(--wv-trans);
}
.nav-blog__link:hover, .nav-blog:hover .nav-blog__link,
.nav-blog:focus-within .nav-blog__link { background: var(--wv-surface-soft); color: var(--wv-text) !important; }
.nav-blog__link[aria-current="page"] { color: var(--wv-purple) !important; background: rgba(81, 30, 234, 0.07); }
.nav-blog__chev { transition: transform var(--wv-trans); }
.nav-blog:hover .nav-blog__chev, .nav-blog:focus-within .nav-blog__chev { transform: rotate(180deg); }

.nav-blog__menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
    margin-top: 8px; width: 360px; max-width: calc(100vw - 32px);
    background: var(--wv-surface); border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg); box-shadow: var(--wv-shadow-lg);
    padding: 8px; display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transition: opacity var(--wv-trans), transform var(--wv-trans), visibility var(--wv-trans);
    z-index: 60;
    /* Zu viele Artikel -> Menue kann hoeher als der Bildschirm werden: scrollbar machen. */
    max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain;
}
/* Hover-Bruecke am Trigger (nicht am scrollbaren Menue, sonst wuerde sie vom overflow abgeschnitten). */
.nav-blog::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.nav-blog:hover .nav-blog__menu, .nav-blog:focus-within .nav-blog__menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-blog__item {
    display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px;
    border-radius: var(--wv-radius); transition: background var(--wv-trans);
}
.nav-blog__item:hover { background: var(--wv-surface-soft); }
.nav-blog__ico {
    display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
    border-radius: var(--wv-radius-sm); color: var(--accent, var(--wv-purple));
    background: color-mix(in srgb, var(--accent, var(--wv-purple)) 13%, transparent);
}
.nav-blog__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-blog__t { font-size: 13.5px; font-weight: 700; color: var(--wv-text); line-height: 1.25; }
.nav-blog__d { font-size: 11.5px; color: var(--wv-text-muted); line-height: 1.35; }

/* Mobile-Burger und Slide-Panel (bis 879px sichtbar) */
.marketing-nav__mobile-toggle {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--wv-radius-sm);
    background: transparent;
    border: 1px solid var(--wv-border);
    color: var(--wv-text);
    cursor: pointer;
    padding: 0;
    transition: all var(--wv-trans);
}
.marketing-nav__mobile-toggle:hover { background: var(--wv-surface-soft); }
.marketing-nav__mobile-toggle:focus-visible { outline: 3px solid rgba(81, 30, 234, 0.3); outline-offset: 2px; }
@media (min-width: 880px) {
    .marketing-nav__mobile-toggle { display: none; }
}

.marketing-mobile-panel {
    position: fixed;
    top: 0; right: -100%;
    width: 86vw;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: var(--wv-surface);
    z-index: 110;
    padding: 24px 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: right var(--wv-trans-slow);
    box-shadow: var(--wv-shadow-lg);
}
.marketing-mobile-panel.is-open { right: 0; }
@media (min-width: 880px) {
    .marketing-mobile-panel { display: none !important; }
}
.marketing-mobile-panel__head {
    display: flex; align-items: center; justify-content: space-between;
    flex: 0 0 auto;
    margin-bottom: 2px;
}
.marketing-mobile-panel__head .brand-logo { height: 44px; }
.marketing-mobile-panel__close {
    width: 36px; height: 36px;
    border-radius: var(--wv-radius-sm);
    background: transparent;
    border: 1px solid var(--wv-border);
    color: var(--wv-text-soft);
    cursor: pointer;
    display: inline-grid; place-items: center;
}
.marketing-mobile-panel__close:hover { background: var(--wv-surface-soft); color: var(--wv-text); }
.marketing-mobile-panel nav {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Platz für die Scrollbar, damit sie nicht die Links überlappt */
    margin-right: -8px; padding-right: 8px;
}
.marketing-mobile-panel nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 12px;
    color: var(--wv-text);
    font-weight: 600;
    border-radius: var(--wv-radius);
    transition: background var(--wv-trans);
    text-decoration: none;
}
.marketing-mobile-panel nav a:hover { background: var(--wv-surface-soft); }
/* Blog-Artikel als eingerückte Unterliste im Mobile-Menü */
.marketing-mobile-panel__sub { display: flex; flex-direction: column; gap: 0; margin: -2px 0 4px; padding-left: 14px; border-left: 2px solid var(--wv-border); }
.marketing-mobile-panel__sub a { padding: 9px 12px; font-weight: 500; font-size: 14px; color: var(--wv-text-soft); }
/* --wv-purple ist die feste Markenfarbe und bleibt im Dunkelmodus #511EEA -
   auf dem dunklen Panel waren das 2,28:1. --wv-coral-deep ist derselbe Ton,
   aber theme-abhaengig definiert (#4516D0 hell / #B7A4FF dunkel). */
.marketing-mobile-panel__sub a .icon { color: var(--wv-coral-deep); }
.marketing-mobile-panel__divider {
    height: 1px;
    background: var(--wv-border);
    margin: 6px 0;
}
/* Fixierter Footer im Mobile-Menü: Hell/Dunkel · DE/EN · Anmelden · Kostenlos starten */
.marketing-mobile-panel__foot {
    flex: 0 0 auto;
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--wv-border);
    background: var(--wv-surface);
}
.marketing-mobile-panel__prefs {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.marketing-mobile-panel__cta {
    display: flex; flex-direction: column; gap: 10px;
}
.marketing-mobile-panel__cta .btn { width: 100%; }

/* -------------------- Checker-Warnung (Modul 2 + 3) -------------------- */
.checker-warning {
    background: #FEF6E5;
    border: 1px solid #F5A623;
    border-left: 4px solid #F5A623;
    margin-bottom: 24px;
}
[data-theme="dark"] .checker-warning { background: rgba(245, 166, 35, 0.08); }
.checker-warning__head {
    display: grid; gap: 14px; align-items: center;
    grid-template-columns: auto 1fr auto;
    margin-bottom: 14px;
}
@media (max-width: 720px) {
    .checker-warning__head { grid-template-columns: 1fr; }
}
.checker-warning__icon { color: #B47100; flex-shrink: 0; }
[data-theme="dark"] .checker-warning__icon { color: #F5A623; }
.checker-warning__title strong { font-size: 16px; color: var(--wv-text); }
.checker-warning__issues { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cw-issue {
    background: var(--wv-surface);
    border-radius: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--wv-border);
}
.cw-issue--critical { border-left-color: var(--wv-danger); }
.cw-issue--high     { border-left-color: var(--wv-warning); }
.cw-issue--medium   { border-left-color: var(--wv-info); }
.cw-issue--low      { border-left-color: var(--wv-text-muted); }
.cw-issue__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.cw-issue__sev {
    font-weight: 800; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 6px;
    background: var(--wv-surface-soft); color: var(--wv-text);
}
.cw-issue__sev--critical { background: var(--wv-danger); color: #fff; }
.cw-issue__sev--high     { background: var(--wv-warning); color: #fff; }
.cw-issue__sev--medium   { background: var(--wv-info); color: #fff; }
.cw-issue__cat   { font-weight: 700; color: var(--wv-text-soft); text-transform: capitalize; }
.cw-issue__where { color: var(--wv-text-muted); font-family: monospace; font-size: 11px; }
.cw-issue__desc  { font-size: 14px; color: var(--wv-text); line-height: 1.5; }
.cw-issue__fix   { font-size: 13px; color: var(--wv-text-soft); margin-top: 6px; }

/* -------------------- Share-Liste -------------------- */
.share-list { display: flex; flex-direction: column; gap: 6px; }
.share-list__item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: var(--wv-surface-soft);
    border-radius: var(--wv-radius);
    font-size: 14px;
}

/* -------------------- Prefs Toggle (Theme/Lang) -------------------- */
.prefs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-pill);
    color: var(--wv-text-soft);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--wv-trans);
}
.prefs-btn:hover { background: var(--wv-surface-soft); color: var(--wv-text); border-color: var(--wv-coral); }
.prefs-btn .icon { color: currentColor; }
[data-theme="dark"] .prefs-btn:hover { background: var(--wv-surface-soft); }

/* -------------------- Wegvio Modal (modulueberg.) -------------------- */
.wv-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    padding: 16px;
}
.wv-modal[hidden] { display: none; }
.wv-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 17, 21, 0.48);
    backdrop-filter: blur(2px);
}
.wv-modal__panel {
    position: relative;
    background: var(--wv-surface);
    border-radius: var(--wv-radius-lg);
    padding: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: var(--wv-shadow-lg);
}
.wv-modal__close {
    position: absolute; top: 12px; right: 14px;
    background: transparent; border: 0;
    font-size: 28px; line-height: 1;
    color: var(--wv-text-muted);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
}
.wv-modal__close:hover { background: var(--wv-surface-soft); color: var(--wv-text); }

/* Profil-Generierung: Session-Auswahl */
.gen-sessions-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 320px; overflow-y: auto;
    padding: 4px;
}
.gen-session-row {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 14px;
    background: var(--wv-surface-soft);
    border: 1.5px solid transparent;
    border-radius: var(--wv-radius);
    cursor: pointer;
    transition: all var(--wv-trans);
}
.gen-session-row:hover { border-color: var(--wv-border); }
.gen-session-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--wv-coral); }
.gen-session-row input[type="checkbox"]:checked + .gen-session__main { font-weight: 600; }
.gen-session__main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.gen-session__title { font-size: var(--wv-fs-sm); font-weight: 600; color: var(--wv-text); }
.gen-session__desc  { font-size: var(--wv-fs-xs); color: var(--wv-text-soft); }
.gen-session__meta  { font-size: var(--wv-fs-xs); color: var(--wv-text-muted); }
.gen-session__archived {
    display: inline-block;
    font-size: 10px; padding: 1px 6px;
    background: var(--wv-text-muted); color: #fff;
    border-radius: 999px; margin-left: 6px;
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.gen-sessions-actions { display: flex; gap: 12px; margin-top: 6px; }

/* Profil-Versionen: source_sessions-Anzeige */
.version-sources {
    display: flex; gap: 4px; flex-wrap: wrap;
    margin-top: 4px;
    font-size: var(--wv-fs-xs);
    color: var(--wv-text-muted);
}
.version-sources strong { color: var(--wv-text-soft); }

/* -------------------- Helpers -------------------- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Sichtbarkeits-Helfer mit klaren Breakpoints */
@media (max-width: 720px) { .hide-sm { display: none !important; } }
@media (max-width: 480px) { .hide-xs { display: none !important; } }
.show-sm { display: none; }
@media (max-width: 720px) { .show-sm { display: inline-flex; } }

/* Body-Lock wenn ein Drawer offen ist */
body.no-scroll { overflow: hidden; }

/* Horizontales Scrollen verhindern (clip statt hidden, damit position:sticky in Children
   nicht bricht; clip wirkt wie hidden, ohne einen scroll-Container zu erzeugen). */
html, body { max-width: 100%; overflow-x: clip; }
/* Fallback fuer aeltere Browser, die overflow-x: clip nicht koennen:
   nur die App-/Marketing-Wrapper clippen, NICHT html/body. */
@supports not (overflow-x: clip) {
    html, body { overflow-x: visible; }
    .marketing-shell, .app-main { overflow-x: hidden; }
}

/* Tabellen-Wrapper fuer horizontales Scrollen */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =========================================================================
   Paywall-Modal (globaler Singleton, ueber wvPaywall.open() steuerbar)
   ========================================================================= */
.wv-paywall {
    position: fixed; inset: 0;
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.wv-paywall[hidden] { display: none; }
body.wv-paywall-open { overflow: hidden; }
.wv-paywall__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.wv-paywall__panel {
    position: relative;
    background: var(--wv-bg-elevated, #fff);
    color: var(--wv-text, #0f172a);
    width: 100%;
    max-width: 760px; /* zwei Tarif-Karten nebeneinander (jede muss den Stripe-Button fassen) */
    max-height: 95vh;
    overflow-x: hidden; /* Stripe-Buttons duerfen nie horizontal ueberlaufen */
    overflow-y: auto;
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    text-align: center;
    animation: wvPaywallIn 0.18s ease-out;
}
@keyframes wvPaywallIn {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.wv-paywall__close {
    position: absolute; top: 12px; right: 14px;
    width: 36px; height: 36px;
    border: 0; background: transparent;
    font-size: 28px; line-height: 1; color: var(--wv-text-muted);
    cursor: pointer; border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.wv-paywall__close:hover { background: var(--wv-bg-soft, #f1f5f9); color: var(--wv-text); }
.wv-paywall__hero {
    margin: 0 auto 14px;
    box-shadow: var(--wv-shadow-brand, 0 12px 30px -8px rgba(107, 70, 255, 0.5));
}
.wv-paywall__title { font-size: 22px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.wv-paywall__price {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--wv-text-muted);
}
.wv-paywall__price strong {
    color: var(--wv-brand, #511EEA);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.wv-paywall__lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wv-text-soft);
}
.wv-paywall__benefits {
    display: flex; flex-direction: column; gap: 10px;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: var(--wv-bg-soft, #f8fafc);
    border: 1px solid var(--wv-border, #e2e8f0);
    border-radius: 12px;
    text-align: left;
}
.wv-paywall__benefit {
    display: flex; align-items: center; gap: 12px;
    font-size: 13.5px; line-height: 1.45;
    color: var(--wv-text, #0f172a);
}
.wv-paywall__benefit-icon {
    flex: 0 0 32px;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    display: inline-flex; align-items: center; justify-content: center;
}
.wv-paywall__benefit-icon .icon { color: var(--wv-coral-deep); }
.wv-paywall__buy {
    margin: 0 auto 12px;
    display: flex; justify-content: center;
    min-height: 50px;
}

/* ---- Tarif-Karten: Einmal-Freischaltung vs. Jahres-Abo ---- */
.wv-paywall__plans {
    display: grid; grid-template-columns: 1fr; gap: 12px;
    margin: 0 0 12px; text-align: left;
}
/* Zwei Spalten erst, wenn der Dialog (760px) zwei Stripe-Buttons (je ~322px)
   sicher fasst - sonst gestapelt, damit rechts nichts abgeschnitten wird. */
@media (min-width: 820px) { .wv-paywall__plans { grid-template-columns: 1fr 1fr; } }
.wv-paywall__plan {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    padding: 18px 16px 14px;
    background: var(--wv-surface); border: 1px solid var(--wv-border);
    border-radius: 14px;
    min-width: 0; /* Grid-Item darf schrumpfen, kein Ueberlauf durch Stripe-Button */
}
.wv-paywall__plan--best {
    border-color: var(--wv-purple);
    background: var(--wv-gradient-soft);
    box-shadow: 0 10px 28px -14px rgba(81, 30, 234, 0.45);
}
.wv-paywall__plan-badge {
    position: absolute; top: -10px; right: 12px;
    padding: 3px 10px; border-radius: var(--wv-radius-pill);
    background: var(--wv-gradient); color: #fff;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    box-shadow: var(--wv-shadow-brand);
}
.wv-paywall__plan-name { font-weight: 800; font-size: 14px; }
.wv-paywall__plan-price strong {
    color: var(--wv-purple); font-size: 24px; font-weight: 800; letter-spacing: -0.01em;
}
.wv-paywall__plan-price span { color: var(--wv-text-muted); font-size: 12.5px; margin-left: 4px; }
.wv-paywall__plan-feats {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
    font-size: 12.5px; line-height: 1.45; color: var(--wv-text-soft);
}
.wv-paywall__plan-feats li { display: flex; align-items: flex-start; gap: 7px; }
.wv-paywall__plan-feats .icon { color: var(--wv-coral-deep); flex: 0 0 auto; margin-top: 2px; }
.wv-paywall__plan-buy { margin-top: 14px; display: flex; justify-content: center; min-height: 44px; padding-top: 6px; }
.wv-paywall__plan-buy stripe-buy-button { max-width: 100%; }
/* Zustimmung beim Nachkauf fuer ein Kind (Modul "Mein Kind"). */
.kid-ack {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 16px 0 0; padding: 11px 13px;
    background: var(--wv-surface-soft);
    border: 1px solid var(--wv-lav-line); border-radius: 12px;
    font-size: 12.5px; line-height: 1.45; color: var(--wv-text-soft);
    cursor: pointer;
}
.kid-ack input { flex: 0 0 auto; margin-top: 1px; width: 17px; height: 17px; cursor: pointer; }
.kid-ack.is-missing { border-color: #E11D48; background: rgba(225, 29, 72, .06); }

/* Zustimmung zum Leistungsbeginn (Pflichtfeld vor dem Checkout). Bewusst
   ruhig gestaltet, aber mit sichtbarer Markierung, wenn sie fehlt. */
.wv-paywall__ack {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 0 0 12px; padding: 11px 13px;
    background: var(--wv-surface-soft);
    border: 1px solid var(--wv-lav-line); border-radius: 12px;
    font-size: 12.5px; line-height: 1.45; color: var(--wv-text-soft);
    text-align: left;   /* das Modal ist zentriert, ein Pflichttext liest sich zentriert schlecht */
    cursor: pointer;
}
.wv-paywall__ack input { flex: 0 0 auto; margin-top: 1px; width: 17px; height: 17px; cursor: pointer; }
.wv-paywall__ack.is-missing {
    border-color: #E11D48; background: rgba(225, 29, 72, .06);
}

.wv-paywall__note { margin: 0 0 10px; font-size: 12.5px; color: var(--wv-text-muted); }
.wv-paywall__warn {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
    line-height: 1.4;
}
.wv-paywall__warn .icon { color: #b45309; flex-shrink: 0; margin-top: 1px; }
.wv-paywall__secure {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--wv-text-muted);
    line-height: 1.3;
}
.wv-paywall__secure .icon { color: var(--wv-text-muted); }
.wv-paywall__pin {
    border-top: 1px solid var(--wv-border, #e2e8f0);
    padding-top: 14px;
    text-align: center;
}
.wv-paywall__pin-toggle {
    background: none; border: 0;
    font-size: 12.5px;
    color: var(--wv-text-muted);
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}
.wv-paywall__pin-toggle:hover { color: var(--wv-text); }
.wv-paywall__pin-form { margin-top: 10px; }
.wv-paywall__pin-row {
    display: flex; gap: 8px; align-items: stretch;
}
.wv-paywall__pin-row .form-control {
    flex: 1; min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
}
.wv-paywall__pin-msg {
    margin-top: 8px;
    font-size: 12.5px;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: left;
}
.wv-paywall__pin-msg.is-error { background: #fee2e2; color: #991b1b; }
.wv-paywall__pin-msg.is-ok    { background: #dcfce7; color: #166534; }

/* Dark-Mode: hartkodierte helle Status-/Hinweisflaechen abdunkeln, damit das
   Popup als Ganzes zum dunklen Panel passt (statt heller Inseln). */
[data-theme="dark"] .wv-paywall__warn {
    background: rgba(245, 166, 35, 0.10);
    border-color: rgba(245, 166, 35, 0.35);
    color: #F3D9A6;
}
[data-theme="dark"] .wv-paywall__warn .icon { color: var(--wv-warning); }
[data-theme="dark"] .wv-paywall__pin-msg.is-error { background: rgba(230, 57, 70, 0.16); color: #FCA5A5; }
[data-theme="dark"] .wv-paywall__pin-msg.is-ok    { background: rgba(43, 182, 115, 0.16); color: #86EFAC; }
[data-theme="dark"] .wv-paywall__pin-row .form-control { background: var(--wv-surface); }

.wv-paywall__success {
    padding: 16px 0 8px;
    text-align: center;
}
.wv-paywall__success-icon {
    margin: 0 auto 14px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.wv-paywall__success-icon .icon { color: #16a34a; }
.wv-paywall__success h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.wv-paywall__success p { margin: 0 0 18px; color: var(--wv-text-soft); font-size: 14px; }

/* Hinweis-Badge im Analyse-Chat, wenn Paywall noch nicht gekauft */
.analyse-progress__hint.is-paywall {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(107, 70, 255, 0.10), rgba(107, 70, 255, 0.04));
    border: 1px solid rgba(107, 70, 255, 0.30);
    color: var(--wv-text);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.analyse-progress__hint.is-paywall button {
    background: var(--wv-brand, #511EEA);
    color: #fff;
    border: 0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    cursor: pointer;
}

/* Credit-Badge im Header / in Modul-Header */
.wv-credit-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    background: rgba(107, 70, 255, 0.12);
    color: var(--wv-brand, #511EEA);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.wv-credit-pill--ok { background: rgba(34, 197, 94, 0.12); color: #166534; }

@media (max-width: 480px) {
    .wv-paywall__panel { padding: 24px 20px 18px; border-radius: 16px; }
    .wv-paywall__title { font-size: 19px; }
    .wv-paywall__price strong { font-size: 22px; }
}

/* =========================================================================
   Cookie-Einwilligungs-Banner (klein, unten) - nutzt Surface-Tokens,
   damit es automatisch in den Dark Mode mitwechselt.
   ========================================================================= */
/* WICHTIG: bottom MUSS den Sicherheitsbereich beruecksichtigen.
   _head.php setzt "viewport-fit=cover" - die Seite zeichnet damit bis unter den
   Home-Indikator und die Safari-Leiste. Ein festes "bottom: 12px" legt den
   untersten Knopf genau dorthin: sichtbar, aber iOS gibt Tipper in diesem
   Streifen nicht mehr an die Seite weiter. Gemessen am 13.08.2026 auf 375x812:
   "Alle akzeptieren" lag zu 31 % im toten Bereich - der Banner liess sich am
   Telefon nicht wegklicken und blockierte damit die Aktivierung des Kindkontos.
   Alle anderen bodennahen Elemente im Projekt machen es bereits so
   (.ob__actions, .ob__foot, #zpResult). */
.wv-cookie {
    position: fixed;
    left: 12px; right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 9500;
    background: var(--wv-surface);
    color: var(--wv-text);
    border: 1px solid var(--wv-border);
    border-radius: 14px;
    box-shadow: var(--wv-shadow-lg);
    animation: wvCookieIn .35s ease-out;
}
@keyframes wvCookieIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.wv-cookie.is-hidden {
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.wv-cookie__inner {
    max-width: 1100px; margin: 0 auto;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wv-cookie__text {
    margin: 0; flex: 1 1 320px; min-width: 0;
    font-size: 13px; line-height: 1.5; color: var(--wv-text-soft);
}
.wv-cookie__text a { color: var(--wv-coral-deep); font-weight: 600; }
.wv-cookie__actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
@media (max-width: 560px) {
    .wv-cookie { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); }
    .wv-cookie__inner { padding: 12px; gap: 10px; }
    /* Drei Knöpfe passen nebeneinander nicht mehr aufs Handy:
       oben „Nur notwendige" + „Nur Statistik", darunter „Alle akzeptieren" über
       die volle Breite. min-width:0 erlaubt das Schrumpfen unter die Textbreite. */
    .wv-cookie__actions { width: 100%; }
    .wv-cookie__actions .btn {
        flex: 1 1 calc(50% - 4px); min-width: 0; padding-left: 8px; padding-right: 8px;
    }
}

/* =========================================================================
   Wallet-Sektion in Einstellungen (Brand-Design: icon-tile + stat-Pattern)
   ========================================================================= */
.wallet-card .module-header { align-items: center; }

.wallet-note {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 16px;
    border: 1px solid var(--wv-border);
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
}
.wallet-note .icon { color: var(--wv-coral-deep); flex-shrink: 0; }
.wallet-note--info {
    background: var(--wv-gradient-soft);
    border-color: rgba(107, 70, 255, 0.30);
    color: var(--wv-coral-deep);
}
.wallet-note--ok {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.30);
    color: #166534;
}
.wallet-note--ok .icon { color: #166534; }

/* ---- Aktives Jahres-Abo (Settings) ---- */
.wallet-sub {
    position: relative;
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 16px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--wv-purple);
    border-radius: 14px;
    background: var(--wv-gradient-soft);
}
.wallet-sub--ending { border-color: var(--wv-border); opacity: 0.92; }
.wallet-sub__badge {
    position: absolute; top: -11px; left: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: var(--wv-radius-pill);
    background: var(--wv-gradient); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
    box-shadow: var(--wv-shadow-brand);
}
.wallet-sub__badge .icon { color: #fff; }
.wallet-sub__body { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.wallet-sub__body strong { font-size: 14.5px; }
.wallet-sub__line { font-size: 13px; color: var(--wv-text-soft); line-height: 1.45; }
.wallet-sub__hint { font-size: 12px; color: var(--wv-text-muted); margin-top: 4px; line-height: 1.45; }

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.wallet-stat {
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    transition: border-color var(--wv-trans), transform var(--wv-trans);
}
.wallet-stat--active {
    border-color: rgba(107, 70, 255, 0.45);
    background: linear-gradient(180deg, var(--wv-gradient-soft) 0%, var(--wv-surface) 70%);
}
.wallet-stat__head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.wallet-stat__icon {
    width: 34px; height: 34px;
    border-radius: 9px;
}
.wallet-stat__icon svg { width: 18px; height: 18px; }
.wallet-stat .stat__label { margin: 0; }
.wallet-stat .stat__value { margin: 6px 0 2px; font-size: 28px; }
.wallet-stat__divisor {
    font-size: 16px;
    color: var(--wv-text-muted);
    font-weight: 500;
    margin-left: 2px;
}
.wallet-stat--active .wallet-stat__icon {
    background: var(--wv-gradient);
    color: #fff;
}
.wallet-stat--active .wallet-stat__icon .icon { color: #fff; }

.wallet-meta {
    display: flex; flex-wrap: wrap; gap: 0;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--wv-gradient-soft);
    border: 1px solid rgba(107, 70, 255, 0.25);
    border-radius: 12px;
}
.wallet-meta__item {
    flex: 1 1 200px;
    padding: 4px 12px 4px 0;
}
.wallet-meta__item + .wallet-meta__item {
    border-left: 1px solid rgba(107, 70, 255, 0.25);
    padding-left: 16px;
}
.wallet-meta__label {
    display: block;
    color: var(--wv-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 2px;
}
.wallet-meta__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--wv-text);
    letter-spacing: -0.01em;
}

.wallet-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--wv-border);
}
.wallet-section__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wv-text-muted);
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.wallet-table thead th {
    text-align: left;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wv-text-muted);
    border-bottom: 1px solid var(--wv-border);
}
.wallet-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--wv-border-soft, var(--wv-border));
    vertical-align: middle;
}
.wallet-table tbody tr:last-child td { border-bottom: 0; }
.wallet-table__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.wallet-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.wallet-status::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.wallet-status--paid     { background: rgba(34, 197, 94, 0.12);  color: #166534; }
.wallet-status--pending  { background: rgba(245, 158, 11, 0.14); color: #92400e; }
.wallet-status--failed   { background: rgba(220, 38, 38, 0.12);  color: #991b1b; }
.wallet-status--expired  { background: rgba(100, 116, 139, 0.14); color: #475569; }
.wallet-status--refunded { background: rgba(124, 58, 237, 0.12); color: #5b21b6; }

.wallet-granted {
    display: inline-flex; align-items: center; gap: 6px;
    color: #166534;
    font-weight: 600;
    font-size: 13px;
}
.wallet-granted .icon { color: #16a34a; }

.wallet-invoice-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--wv-gradient-soft);
    color: var(--wv-coral-deep);
    font-size: 12.5px;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background var(--wv-trans), transform var(--wv-trans);
    border: 1px solid rgba(107, 70, 255, 0.25);
}
.wallet-invoice-link:hover {
    background: var(--wv-gradient);
    color: #fff;
    transform: translateY(-1px);
}
.wallet-invoice-link:hover .icon { color: #fff; }
.wallet-invoice-link .icon { color: var(--wv-coral-deep); }

@media (max-width: 640px) {
    .wallet-grid { grid-template-columns: 1fr; }
    .wallet-stat .stat__value { font-size: 26px; }
    .wallet-meta__item + .wallet-meta__item {
        border-left: 0;
        border-top: 1px solid rgba(107, 70, 255, 0.25);
        padding-left: 0;
        padding-top: 10px;
        margin-top: 6px;
    }
    /* Aktions-Buttons ("Weitere Freischaltung kaufen · ab 7,99 €", "Test-PIN einlösen"):
       auf schmalen Handys volle Breite + Text darf umbrechen, damit die langen
       Labels nicht rechts aus der Karte laufen (.btn hat sonst white-space:nowrap). */
    .wallet-actions { flex-direction: column; }
    .wallet-actions .btn { width: 100%; white-space: normal; }
    /* "Abo & Zahlungsdaten verwalten (Stripe)"-Button: nicht breiter als die Karte,
       Text umbrechen statt abschneiden. */
    .wallet-sub__body .btn { max-width: 100%; white-space: normal; }
}

/* =========================================================================
   ONBOARDING - Mobile-first Journey ("den Weg zeigen, nicht das Ziel")
   Ein Schritt pro Screen. Cursor-Motiv, Lila/Weiß-Wechsel, Fortschritt = XP.
   ========================================================================= */
.ob {
    /* Onboarding ist eine eigene Fläche mit fester Hell-Palette -
       unabhängig vom globalen [data-theme] (sonst dunkle Kacheln auf Weiß).
       WICHTIG: Hier müssen ALLE Tokens festgenagelt werden, die [data-theme=
       "dark"] umdefiniert. Sonst erbt eine Karte im Funnel die dunkle Fläche,
       während die Textfarbe hell bleibt: dunkler Text auf dunklem Grund. */
    --wv-lav-bg: #F3F0FE;
    --wv-lav-line: #E4DDFB;
    --wv-ink: #191334;
    --wv-text-muted: #8D85A8;
    --wv-surface: #FFFFFF;
    --wv-surface-soft: #F5F4F0;
    --wv-bg: #FAFAF7;
    --wv-bg-alt: #FFFFFF;
    --wv-border: #E4DDFB;
    --wv-border-soft: #EFEBFC;
    --wv-text: #191334;
    --wv-text-soft: #4B4560;
    --wv-gradient-soft: linear-gradient(135deg, #F3F0FE 0%, #E4DDFB 100%);
    /* Gehoert zu genau derselben Falle wie die Tokens darueber: ohne diese
       Zeile faerbt [data-theme="dark"] die Symbole im hellen Trichter hell
       ein (#8B6CFF auf Weiss). */
    --wv-icon: #4516D0;
    --ob-fg: var(--wv-ink);
    position: fixed; inset: 0; z-index: 4000;
    display: flex; flex-direction: column;
    background: #fff;
    color: var(--ob-fg);
    transition: background .35s ease, color .35s ease;
    overflow: hidden;
}
.ob.is-dark {
    --ob-fg: #fff;
    /* Dunkle Trichter-Flaeche: Symbole weiss, sonst 2,1:1 auf dem Lila. */
    --wv-icon: #fff;
    background: var(--wv-purple);
    background-image: radial-gradient(120% 72% at 90% -10%, var(--wv-purple-bright), transparent 55%);
    color: #fff;
}
/* Kopf: zurück + Fortschrittsbalken */
.ob__top {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 18px 6px;
}
.ob__back {
    border: 0; background: none; cursor: pointer;
    width: 30px; height: 30px; flex: 0 0 auto;
    font-size: 22px; line-height: 1; color: var(--ob-fg);
    opacity: .7; border-radius: var(--wv-radius-xs);
}
.ob__back:hover { opacity: 1; }
.ob__back[hidden] { visibility: hidden; }
.ob__bar {
    flex: 1 1 auto; height: 4px; border-radius: 4px;
    background: var(--wv-lav-line);
    overflow: hidden;
}
.ob.is-dark .ob__bar { background: rgba(255,255,255,.25); }
.ob__fill {
    height: 100%; width: 0%;
    background: var(--wv-purple);
    border-radius: 4px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
}
.ob.is-dark .ob__fill { background: #fff; }
.ob__logo { flex: 0 0 auto; }

/* Schritt-Container */
.ob__form { flex: 1 1 auto; display: flex; min-height: 0; }
.ob-step {
    display: none; flex: 1 1 auto;
    flex-direction: column;
    width: 100%; max-width: 460px; margin: 0 auto;
    padding: 16px 22px max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
}
.ob-step.is-active { display: flex; animation: obIn .34s ease both; }
@keyframes obIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ob-spacer { flex: 1 1 auto; min-height: 12px; }

/* Persistenter Fuß - auf jedem Schritt sichtbar, „Wie funktioniert Wegvio?“ */
.ob__foot {
    flex: 0 0 auto;
    /* Spalte, damit die KI-Zeile UNTER dem Link steht und nicht daneben.
       align-items:center verhindert, dass die Link-Pille auf volle Breite geht. */
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    justify-content: center;
    padding: 10px 18px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--wv-lav-line);
}
.ob.is-dark .ob__foot { border-top-color: rgba(255,255,255,.18); }
.ob__foot-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; line-height: 1;
    color: var(--wv-text-muted); text-decoration: none;
    padding: 6px 10px; border-radius: 999px;
    transition: color var(--wv-trans), background var(--wv-trans);
}
.ob__foot-link:hover { color: var(--wv-purple); background: var(--wv-lav-bg); }
.ob__foot-link .icon { width: 14px; height: 14px; }
.ob.is-dark .ob__foot-link { color: rgba(255,255,255,.78); }
.ob.is-dark .ob__foot-link:hover { color: #fff; background: rgba(255,255,255,.12); }

.ob-eb {
    font-family: var(--wv-font-mono);
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--wv-purple);
    margin-bottom: 10px;
}
.ob.is-dark .ob-eb { color: rgba(255,255,255,.8); }
.ob-q {
    font-family: var(--wv-font-display);
    font-weight: 700; font-size: clamp(24px, 7vw, 32px);
    line-height: 1.06; letter-spacing: -.02em; margin-bottom: 8px;
    color: var(--ob-fg); /* folgt hell/dunkel je Screen (überschreibt globale h1/h2-Farbe) */
}
.ob-sub { color: var(--wv-text-muted); font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.ob.is-dark .ob-sub { color: rgba(255,255,255,.78); }
.ob-emoji { font-size: 48px; text-align: center; margin: 18px 0; }
.ob-center { text-align: center; }

/* Auswahl-Kacheln (Interessen, Mehrfach) */
.ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ob-tile {
    position: relative;
    border: 1.5px solid var(--wv-lav-line); background: var(--wv-lav-bg);
    border-radius: var(--wv-radius); padding: 14px 12px; text-align: left;
    cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.ob-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ob-tile .emo { font-size: 22px; display: block; margin-bottom: 6px; }
/* Professionelle SVG-Icons statt Emojis: Wegvio-Akzentfarbe in Kacheln/Optionen,
   Trust-Chips mit buendigem Mini-Icon; grosse Screen-Icons erben die Textfarbe. */
.ob-tile .emo .icon, .ob-opt .ic .icon { color: var(--wv-purple); }
.ob-trust span .icon { vertical-align: -2px; margin-right: 2px; }
.ob-trust span { display: inline-flex; align-items: center; gap: 4px; }
.ob-tile .lab { font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--wv-ink); overflow-wrap: anywhere; }
.ob-tile:has(input:checked) {
    border-color: var(--wv-purple); background: #fff;
    box-shadow: 0 0 0 1.5px var(--wv-purple), var(--wv-shadow-sm);
}
.ob-tile:has(input:checked)::after {
    content: "✓"; position: absolute; top: 8px; right: 9px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--wv-purple); color: #fff; font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* Einzelauswahl-Optionen (Arbeitsstil) */
.ob-options { display: flex; flex-direction: column; gap: 9px; }
.ob-opt {
    position: relative;
    border: 1.5px solid var(--wv-lav-line); background: var(--wv-lav-bg);
    border-radius: var(--wv-radius); padding: 14px 15px;
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ob-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ob-opt .ic { font-size: 20px; }
.ob-opt .ol { font-weight: 600; font-size: 14px; color: var(--wv-ink); }
.ob-opt:has(input:checked) {
    border-color: var(--wv-purple); background: #fff;
    box-shadow: 0 0 0 1.5px var(--wv-purple), var(--wv-shadow-sm);
}

/* "Eigentlich alles": markiert dieselbe Optik wie eine echte Auswahl, damit
   sichtbar ist, dass wirklich alles gewaehlt ist. Die Klasse setzt das JS,
   weil eine Radiogruppe technisch nur EINEN Haken haben kann. */
.ob-opt.is-mitgewaehlt {
    border-color: var(--wv-purple); background: #fff;
    box-shadow: 0 0 0 1.5px var(--wv-purple), var(--wv-shadow-sm);
}

/* Der Knopf selbst hebt sich leicht ab: er ist eine Zusammenfassung,
   keine fuenfte gleichrangige Antwort. */
.zp-wish-all {
    margin-top: 4px;
    border-style: dashed;
    background: transparent;
    justify-content: center;
}
.zp-wish-all .ol { font-weight: 650; }
.zp-wish-all:has(input:checked) { border-style: solid; }

/* Pille / Punkt */
.ob-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--wv-lav-bg); color: var(--wv-purple);
    font-weight: 700; font-size: 11px; padding: 6px 12px;
    border-radius: var(--wv-radius-pill); width: fit-content; margin-bottom: 14px;
    font-family: var(--wv-font-mono);
}
.ob.is-dark .ob-pill { background: rgba(255,255,255,.16); color: #fff; }
.ob-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Audio-Moment */
.ob-mic {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--wv-purple); color: #fff; border: 0; cursor: pointer;
    margin: 10px auto; display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 0 8px rgba(81,30,234,.14), 0 0 0 16px rgba(81,30,234,.06);
    transition: transform .15s, background .2s, box-shadow .2s;
    /* Weisses Symbol auf dem farbigen Knopf - siehe Kommentar bei ".icon". */
    --wv-icon: #fff;
}
/* Kraeftigerer Strich: 1,6 ist die Staerke fuer Symbole in Fliesstextgroesse.
   Auf einem 76px-Knopf wirkt das duenn und zerfaellt auf Handy-Displays. */
.ob-mic .icon svg { stroke-width: 1.9; }
.ob-mic:disabled { opacity: .55; cursor: default; }
.ob-mic.is-recording {
    background: var(--wv-red);
    box-shadow: 0 0 0 8px rgba(230,57,70,.16), 0 0 0 16px rgba(230,57,70,.07);
    animation: obPulse 1.1s ease-in-out infinite;
}
@keyframes obPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ob-rec-status { text-align: center; font-size: 12.5px; color: var(--wv-text-muted); min-height: 16px; margin: 2px 0 10px; }
.ob-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; margin: 12px 0; }
.ob-wave span { width: 4px; background: var(--wv-purple); border-radius: 4px; animation: obWave 1s ease-in-out infinite; }
@keyframes obWave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.ob-textarea {
    width: 100%; min-height: 92px; resize: vertical;
    border: 1.5px solid var(--wv-lav-line); background: var(--wv-lav-bg);
    border-radius: var(--wv-radius); padding: 12px 13px;
    font: inherit; font-size: 14px; color: var(--wv-ink);
}
.ob-textarea:focus { outline: none; border-color: var(--wv-purple); box-shadow: 0 0 0 4px rgba(81,30,234,.15); background: #fff; }

/* Spiegel */
.ob-quote {
    background: var(--wv-lav-bg); border-left: 3px solid var(--wv-purple);
    border-radius: var(--wv-radius-sm); padding: 13px 14px;
    font-size: 14px; line-height: 1.5; margin-bottom: 16px; color: var(--wv-ink);
}
.ob-axis { margin-bottom: 13px; }
.ob-axislab { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; margin-bottom: 5px; color: var(--wv-ink); }
.ob-axisbar { height: 8px; background: var(--wv-lav-bg); border-radius: 8px; overflow: hidden; }
.ob-axisfill { height: 100%; border-radius: 8px; width: 0; transition: width .8s cubic-bezier(.4,0,.2,1); }

/* Dein Weg (Pfad) */
.ob-path { display: flex; flex-direction: column; margin-top: 6px; }
.ob-node { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 16px; }
.ob-node:not(:last-child)::before { content: ""; position: absolute; left: 12.5px; top: 26px; bottom: -2px; width: 2px; background: var(--wv-lav-line); }
.ob-node.done:not(:last-child)::before { background: var(--wv-purple); }
.ob-ndot { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; z-index: 1; }
/* Die Punkte enthalten mal eine Ziffer, mal ein Symbol. Das "color" gilt nur
   fuer die Ziffer - Symbole brauchen zusaetzlich --wv-icon, sonst blieb der
   Haken im erledigten Punkt bei 1,2:1 auf dem Lila stehen. */
.ob-node.done .ob-ndot { background: var(--wv-purple); color: #fff; --wv-icon: #fff; }
.ob-node.now  .ob-ndot { background: var(--wv-ink); color: #fff; --wv-icon: #fff; box-shadow: 0 0 0 4px var(--wv-lav-bg); }
.ob-node.lock .ob-ndot { background: #fff; border: 1.5px solid var(--wv-lav-line); color: var(--wv-text-muted); --wv-icon: var(--wv-text-muted); }
.ob-nt { font-weight: 700; font-size: 14px; line-height: 1.15; color: var(--wv-ink); }
.ob-nd { font-size: 12px; color: var(--wv-text-muted); margin-top: 2px; line-height: 1.3; }
.ob-node.lock .ob-nt { color: var(--wv-text-muted); }

/* Stammdaten-Felder */
.ob-field { margin-bottom: 14px; }
.ob-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.ob-field input, .ob-field select {
    width: 100%; padding: 13px 14px;
    border: 1.5px solid var(--wv-lav-line); background: var(--wv-lav-bg);
    border-radius: var(--wv-radius); font: inherit; font-size: 15px; color: var(--wv-ink);
}
.ob-field input:focus, .ob-field select:focus { outline: none; border-color: var(--wv-purple); box-shadow: 0 0 0 4px rgba(81,30,234,.15); background: #fff; }
.ob-opt-tag { font-weight: 400; font-size: 11px; color: var(--wv-text-muted); }
/* Label-Icon (z. B. Standort-Pin) inline zur Beschriftung */
.ob-field label .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--wv-purple); margin-right: 2px; }
/* Kleiner Hinweis mit „i“ unter dem Label - erklärt z. B. den Nutzen der PLZ. */
.ob-field__hint {
    display: flex; align-items: flex-start; gap: 6px;
    margin: 0 0 8px;
    font-size: 12px; line-height: 1.45; font-weight: 400;
    color: var(--wv-text-muted);
}
.ob-field__hint .icon { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; color: var(--wv-purple); }
.ob-field__hint strong { color: var(--wv-ink); font-weight: 700; }
.ob.is-dark .ob-field__hint { color: rgba(255,255,255,.72); }
.ob.is-dark .ob-field__hint strong { color: #fff; }
.ob.is-dark .ob-field label .icon, .ob.is-dark .ob-field__hint .icon { color: #fff; }

/* AGB-Zustimmung im Anmelde-Schritt */
.ob-check {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12.5px; line-height: 1.4; color: var(--wv-text-muted);
    margin: 2px 0 4px; cursor: pointer;
}
.ob-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--wv-purple); }
.ob-check a { color: var(--wv-purple); font-weight: 600; }

/* Level-Karte (Willkommen) */
.ob-lvlcard { background: #fff; color: var(--wv-purple); border-radius: var(--wv-radius-lg); padding: 18px; text-align: center; margin-bottom: 14px; }
.ob-lvlcard .lv { font-family: var(--wv-font-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; }
.ob-lvlcard .ti { font-weight: 800; font-size: 22px; margin: 6px 0; color: var(--wv-purple); }
.ob-lvlcard .de { font-size: 13px; color: #5a4e86; line-height: 1.45; }

/* Trust-Badges */
.ob-trust { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.ob-trust span { font-family: var(--wv-font-mono); font-size: 11px; color: var(--wv-text-muted); background: var(--wv-lav-bg); border-radius: var(--wv-radius-pill); padding: 4px 10px; }
.ob.is-dark .ob-trust span { color: rgba(255,255,255,.8); background: rgba(255,255,255,.14); }

/* Footer-Buttons */
.ob-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ob-ghost { background: none; border: 0; color: var(--wv-text-muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px; }
.ob.is-dark .ob-ghost { color: rgba(255,255,255,.7); }
.ob .btn { width: 100%; }

@media (min-width: 768px) {
    .ob-step { padding-top: 28px; }
    .ob-q { font-size: 34px; }
}

/* =========================================================================
   ELTERN-FUNNEL (/zukunftsplan) - Auswertung & Angebot
   Nutzt die .ob-Mechanik des Onboardings (feste Hell-Palette, kein Dark Mode)
   und ergaenzt Karten im Wegvio-Look: Marken-Gradient, Lavendel-Flaechen,
   18px-Radien, weiche Purpur-Schatten.
   ========================================================================= */

/* Textfeld fuer den Vornamen */
.ob .ob-input {
    width: 100%; padding: 15px 16px; font: inherit; font-size: 16px;
    color: var(--wv-ink); background: #FBFAFF;
    border: 1.5px solid var(--wv-lav-line); border-radius: 14px;
    -webkit-appearance: none; appearance: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ob .ob-input:focus {
    outline: none; border-color: var(--wv-purple); background: #fff;
    box-shadow: 0 0 0 4px rgba(81, 30, 234, .14);
}
.ob.is-dark .ob-input {
    background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); color: #fff;
}

/* ---- Erfolgs-Kopf: der gefeierte Moment ------------------------------- */
.zp-hero {
    /* flex-shrink verhindern: die Schritte sind Flex-Spalten, in denen Karten
       sonst gestaucht werden und ihr Inhalt (hier die Ueberschrift) unter dem
       Rand abgeschnitten wird. Im Simulator reproduziert. */
    flex: 0 0 auto;
    position: relative; margin: 4px 0 16px; padding: 22px 20px 20px;
    background: var(--wv-gradient);
    border-radius: 20px; color: #fff;
    box-shadow: 0 10px 26px -8px rgba(81, 30, 234, .45);
    overflow: hidden;
}
.zp-hero::after {
    content: ''; position: absolute; inset: -40% -30% auto auto;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.20), transparent 68%);
    pointer-events: none;
}
.zp-hero__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 12px;
    background: rgba(255,255,255,.18); border-radius: 14px;
    backdrop-filter: blur(2px);
}
.zp-hero__icon svg { color: #fff; stroke: #fff; }
.zp-hero__title {
    margin: 0; font-size: 25px; line-height: 1.2; font-weight: 800;
    letter-spacing: -.4px; color: #fff; position: relative;
}
@media (min-width: 420px) { .zp-hero__title { font-size: 28px; } }

/* ---- Karten (gemeinsame Basis) ---------------------------------------- */
.zp-card {
    flex: 0 0 auto;   /* nicht stauchen (siehe .zp-hero) */
    position: relative; margin: 0 0 14px; padding: 18px;
    background: var(--wv-surface);
    border: 1px solid var(--wv-lav-line); border-radius: 18px;
    box-shadow: 0 2px 10px -4px rgba(25, 19, 52, .10);
}
.zp-card__head {
    margin: 0 0 12px; font-size: 15px; font-weight: 800;
    color: var(--wv-ink); letter-spacing: -.1px;
}

/* Kopfzeile mit Symbol */
.zp-card__head {
    display: flex; align-items: center; gap: 9px;
}
.zp-card__ic {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 9px;
    background: var(--wv-lav-bg);
}
.zp-card__ic svg { color: var(--wv-purple); }

/* Stichpunkt-Listen der Zwischenbilanz */
.zp-points { list-style: none; margin: 0; padding: 0; }
.zp-points__item {
    position: relative; margin: 0 0 9px; padding-left: 20px;
    font-size: 15px; line-height: 1.45; color: var(--wv-ink);
}
.zp-points__item:last-child { margin-bottom: 0; }
/* Marke vor dem Punkt: gefuellt bei Erkanntem, offen bei Vermutungen,
   Fragezeichen-Punkt bei den offenen Fragen. */
.zp-points__item::before {
    content: ''; position: absolute; left: 2px; top: 8px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--wv-purple);
}
.zp-points--maybe .zp-points__item::before {
    background: transparent; border: 2px solid var(--wv-purple);
    width: 8px; height: 8px; left: 1px; top: 7px;
}
.zp-points--open .zp-points__item::before {
    background: #fff; border: 2px solid rgba(255,255,255,.75);
    width: 8px; height: 8px; left: 1px; top: 7px;
}

/* Block 1: das Erkannte */
.zp-card--erk { background: linear-gradient(168deg, var(--wv-lav-bg) 0%, #fff 78%); }

/* Block 2: Vermutungen, bewusst zurueckhaltender */
.zp-card--ric { background: var(--wv-surface); }
.zp-card__note {
    margin: 12px 0 0; padding-top: 11px;
    border-top: 1px dashed var(--wv-lav-line);
    font-size: 12.5px; line-height: 1.45; color: var(--wv-text-muted);
}

/* Block 3: die Luecke, die Wegvio schliesst - im Marken-Lila, damit sie traegt */
.zp-card--offen {
    background: var(--wv-gradient); border-color: transparent;
    box-shadow: 0 10px 26px -10px rgba(81, 30, 234, .5);
}
.zp-card--offen .zp-card__head { color: #fff; }
.zp-card--offen .zp-card__ic { background: rgba(255,255,255,.18); }
.zp-card--offen .zp-card__ic svg { color: #fff; stroke: #fff; }
.zp-card--offen .zp-points__item { color: #fff; }
.zp-card__lead {
    margin: 14px 0 0; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.22);
    font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.94);
}

/* Weiter-Knopf der Auswahl-Schritte: erscheint erst nach einer Wahl,
   damit der Schritt vorher aufgeraeumt bleibt. */
#zp .zp-actions[hidden] { display: none; }
#zp .zp-actions { animation: zpFadeUp .22s ease both; }
@keyframes zpFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Kopierbarer Einladungslink */
.zp-copyrow { display: flex; gap: 8px; align-items: stretch; }
.zp-copyrow input {
    flex: 1 1 auto; min-width: 0; padding: 12px 13px;
    font: inherit; font-size: 13px; color: var(--wv-text-soft);
    background: var(--wv-lav-bg); border: 1px solid var(--wv-lav-line);
    border-radius: 12px; -webkit-appearance: none; appearance: none;
}
/* "width: auto" ist hier Pflicht, nicht Kosmetik: ".ob .btn" setzt weiter oben
   width:100% (richtig fuer die gestapelten Weiter-Knoepfe). In einer Flex-Zeile
   liest die Flex-Basis "auto" aber genau diese Breite aus - der Knopf belegte
   die ganze Zeile und quetschte das Feld mit dem Einladungslink auf 0 Pixel.
   "flex: 0 0 auto" allein reicht dagegen nicht. */
.zp-copyrow .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
@media (max-width: 420px) {
    .zp-copyrow { flex-direction: column; }
    .zp-copyrow .btn { width: 100%; }
}

/* KI-Kennzeichnung ueber der Auswertung (Art. 50 KI-VO). Bewusst deutlich
   sichtbar, nicht als Kleingedrucktes: der Hinweis muss vor dem Lesen der
   Ausgabe wahrgenommen werden. */
.zp-ai-hint {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 0 0 14px; padding: 11px 14px;
    background: var(--wv-surface-soft);
    border: 1px solid var(--wv-lav-line); border-radius: 13px;
    font-size: 12.5px; line-height: 1.45; color: var(--wv-text-soft);
}
.zp-ai-hint svg { flex: 0 0 auto; margin-top: 1px; color: var(--wv-text-muted); }

/* KI-Hinweis in der App (Art. 50 Abs. 1 KI-VO). Bewusst leise: er muss
   sichtbar sein, aber nicht das Gespraech dominieren. Anders als .zp-ai-hint
   ohne Rahmen, weil er direkt unter einer Einleitung sitzt. */
.ai-notice {
    display: flex; align-items: flex-start; gap: 7px;
    margin: 7px 0 0;
    font-size: 12px; line-height: 1.45; color: var(--wv-text-muted);
}
.ai-notice svg { flex: 0 0 auto; margin-top: 2px; color: var(--wv-text-muted); }

/* Zustimmung zum Leistungsbeginn im Bezahl-Schritt des Eltern-Trichters. */
.zp-pay-ack {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 14px 0; padding: 11px 13px;
    background: var(--wv-surface-soft);
    border: 1px solid var(--wv-lav-line); border-radius: 12px;
    font-size: 12.5px; line-height: 1.45; color: var(--wv-text-soft);
    text-align: left; cursor: pointer;
}
.zp-pay-ack input { flex: 0 0 auto; margin-top: 1px; width: 17px; height: 17px; cursor: pointer; }
.zp-pay-ack.is-missing { border-color: #E11D48; background: rgba(225, 29, 72, .06); }

/* Pflichtangaben am Angebot */
.zp-offer__legal {
    margin: 10px 0 0; font-size: 11.5px; line-height: 1.45;
    color: var(--wv-text-muted);
}

/* Datenschutz-Hinweis am Freitextfeld */
.zp-hint--warn {
    display: flex; align-items: flex-start; gap: 7px;
    margin-top: 7px; color: var(--wv-text-muted);
}
.zp-hint--warn svg { flex: 0 0 auto; margin-top: 2px; }

/* Hinweis unter dem Erzaehl-Feld */
.zp-hint {
    margin: 9px 0 0; font-size: 12.5px; line-height: 1.4;
    color: var(--wv-text-muted);
}
.zp-hint.is-ok { color: #1F8A4C; }
#zp .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---- Leistungen mit Haekchen-Kreisen ---------------------------------- */
.zp-benefits { list-style: none; margin: 0; padding: 0; }
.zp-benefits__item {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 9px 0; font-size: 15px; line-height: 1.45;
    color: var(--wv-ink);
    border-top: 1px solid var(--wv-lav-line);
}
.zp-benefits__item:first-child { border-top: 0; padding-top: 2px; }
.zp-benefits__check {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-top: 1px;
    background: var(--wv-gradient); border-radius: 50%;
    box-shadow: 0 2px 6px -2px rgba(81, 30, 234, .55);
}
.zp-benefits__check svg { color: #fff; stroke: #fff; stroke-width: 3; }

/* ---- Abschnitts-Label ------------------------------------------------- */
.zp-section-label {
    margin: 22px 0 10px; font-size: 12px; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--wv-purple);
}

/* ---- Bewertungen ------------------------------------------------------ */
.zp-reviews { flex: 0 0 auto; margin: 0 0 4px; }
.zp-review {
    flex: 0 0 auto;
    margin: 0 0 12px; padding: 16px 17px;
    background: var(--wv-surface);
    border: 1px solid var(--wv-lav-line); border-radius: 18px;
    box-shadow: 0 2px 10px -4px rgba(25, 19, 52, .10);
}
.zp-review__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.zp-review__avatar {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--wv-gradient); color: #fff;
    font-weight: 800; font-size: 17px; line-height: 1;
    box-shadow: 0 3px 9px -3px rgba(81, 30, 234, .5);
}
.zp-review__meta { min-width: 0; }
/* Sterne: der icon()-Helfer wickelt jedes SVG in <span class="icon"> mit
   eigener Farbe. Deshalb muss die Goldfarbe auf dem SVG selbst stehen,
   sonst erbt es das Lila des Wrappers. */
.zp-review__stars { display: flex; gap: 1px; margin-bottom: 3px; }
.zp-review__stars svg { color: #F5A623; fill: #F5A623; stroke: #F5A623; }
.zp-review__by { font-size: 13px; color: var(--wv-text-muted); }
.zp-review__text {
    margin: 0; font-size: 15px; line-height: 1.5; color: var(--wv-ink);
    font-style: italic;
}

/* ---- Angebotskarte ---------------------------------------------------- */
.zp-offer {
    flex: 0 0 auto;
    position: relative; margin: 22px 0 8px; padding: 26px 18px 20px;
    background: linear-gradient(172deg, var(--wv-lav-bg) 0%, #fff 58%);
    border: 2px solid var(--wv-purple); border-radius: 22px;
    text-align: center;
    box-shadow: 0 12px 30px -12px rgba(81, 30, 234, .40);
}
.zp-offer__badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: #E8125F; color: #fff; font-weight: 800; font-size: 13px;
    padding: 6px 15px; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 4px 12px -2px rgba(232, 18, 95, .45);
}
.zp-offer__head {
    margin: 4px 0 16px; font-size: 20px; line-height: 1.28;
    font-weight: 800; letter-spacing: -.3px; color: var(--wv-ink);
}
.zp-offer__pricebox {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    margin: 0 0 18px; padding: 14px 12px;
    background: #fff; border: 1px solid var(--wv-lav-line); border-radius: 16px;
}
.zp-offer__old { font-size: 15px; color: var(--wv-text-muted); }
.zp-offer__new {
    font-size: 40px; font-weight: 800; line-height: 1.05;
    letter-spacing: -1.5px; color: var(--wv-purple);
}
.zp-offer__once { font-size: 13px; color: var(--wv-text-muted); }
.zp-offer__cta { width: 100%; }
.zp-offer__hint {
    display: flex; align-items: flex-start; gap: 8px; text-align: left;
    margin: 14px 0 0; padding: 11px 13px;
    background: var(--wv-lav-bg); border-radius: 13px;
    font-size: 13px; line-height: 1.45; color: #3C3557;
}
.zp-offer__hint svg { flex: 0 0 auto; margin-top: 1px; color: var(--wv-purple); }
.zp-offer__secure {
    margin: 11px 0 0; font-size: 12px; color: var(--wv-text-muted);
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.zp-offer__secure svg { flex: 0 0 auto; }

/* ---- Antwort-Optionen: aufgewertet, NUR im Eltern-Funnel --------------
   Bewusst auf #zp begrenzt: der Schueler-Trichter (/kostenlos-starten) laeuft
   live und soll sein bewaehrtes Aussehen behalten. */
#zp .ob-opt {
    background: var(--wv-surface);
    border: 1.5px solid var(--wv-lav-line);
    border-radius: 16px; padding: 16px 17px;
    box-shadow: 0 2px 8px -4px rgba(25, 19, 52, .10);
}
#zp .ob-opt .ol { font-size: 15px; line-height: 1.35; }
#zp .ob-opt .ic {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; width: 36px; height: 36px;
    background: var(--wv-lav-bg); border-radius: 11px;
    transition: background .15s ease;
}
#zp .ob-opt .ic svg { color: var(--wv-purple); }
/* Auswahl-Zustand: klare Marken-Kante plus gefuelltes Icon-Feld */
#zp .ob-opt:has(input:checked) {
    border-color: var(--wv-purple);
    background: linear-gradient(160deg, var(--wv-lav-bg) 0%, #fff 70%);
    box-shadow: 0 0 0 1.5px var(--wv-purple), 0 6px 16px -6px rgba(81, 30, 234, .40);
}
#zp .ob-opt:has(input:checked) .ic { background: var(--wv-gradient); }
#zp .ob-opt:has(input:checked) .ic svg { color: #fff; stroke: #fff; }

/* "Eigentlich alles" markiert die vier Karten mit. Eine Radiogruppe kann
   technisch nur EINEN Haken tragen, deshalb setzt das JS diese Klasse - die
   Optik muss aber dieselbe sein wie bei einer echten Auswahl, sonst sieht man
   nicht, dass wirklich alles gewaehlt ist. */
#zp .ob-opt.is-mitgewaehlt {
    border-color: var(--wv-purple);
    background: linear-gradient(160deg, var(--wv-lav-bg) 0%, #fff 70%);
    box-shadow: 0 0 0 1.5px var(--wv-purple), 0 6px 16px -6px rgba(81, 30, 234, .40);
}
#zp .ob-opt.is-mitgewaehlt .ic { background: var(--wv-gradient); }
#zp .ob-opt.is-mitgewaehlt .ic svg { color: #fff; stroke: #fff; }
/* Auswahl-Haken rechts, damit ohne Farbwahrnehmung erkennbar bleibt, was gewaehlt ist */
#zp .ob-opt:has(input:checked)::after,
#zp .ob-opt.is-mitgewaehlt::after {
    content: ''; position: absolute; top: 50%; right: 15px;
    width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
    background: var(--wv-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
#zp .ob-opt .ol { padding-right: 22px; }

/* ---- Kacheln (Mehrfachauswahl Staerken) ------------------------------- */
#zp .ob-tile {
    background: var(--wv-surface);
    border: 1.5px solid var(--wv-lav-line); border-radius: 16px;
    box-shadow: 0 2px 8px -4px rgba(25, 19, 52, .10);
}
/* Icon als eigene Zeile ueber dem Text (wie in der Basis-Kachel). Mit
   inline-flex wuerde der Text daneben fliessen und beim Umbruch unter das
   Icon rutschen. */
#zp .ob-tile .emo {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 9px;
    background: var(--wv-lav-bg);
    border-radius: 11px; transition: background .15s ease;
}
#zp .ob-tile { padding: 14px 14px 15px; }
#zp .ob-tile .lab { font-size: 14px; line-height: 1.3; }
#zp .ob-tile .emo svg { color: var(--wv-purple); }
#zp .ob-tile:has(input:checked) {
    border-color: var(--wv-purple);
    background: linear-gradient(160deg, var(--wv-lav-bg) 0%, #fff 72%);
    box-shadow: 0 0 0 1.5px var(--wv-purple), 0 6px 16px -6px rgba(81, 30, 234, .40);
}
#zp .ob-tile:has(input:checked) .emo { background: var(--wv-gradient); }
#zp .ob-tile:has(input:checked) .emo svg { color: #fff; stroke: #fff; }

/* ---- Erzaehl-Schritt: Textfeld als Karte ------------------------------ */
#zp .ob-textarea {
    border-radius: 16px; border: 1.5px solid var(--wv-lav-line);
    background: var(--wv-surface); min-height: 116px;
    box-shadow: 0 2px 8px -4px rgba(25, 19, 52, .10);
    /* MUSS mindestens 16px sein: iOS/Safari zoomt sonst beim Fokus automatisch
       in das Feld und verschiebt die ganze Seite seitlich (Titel wird
       abgeschnitten). Im Simulator reproduziert und damit behoben. */
    font-size: 16px; line-height: 1.5;
}

/* Der Ergebnis-Schritt ist hoeher als das Fenster: .ob-step scrollt bereits,
   hier nur weiches Scrollen auf iOS und Luft unter der Angebotskarte. */
#zpResult {
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(34px, env(safe-area-inset-bottom));
}

/* =========================================================================
   MODUL "MEIN KIND" (Eltern sehen den Fortschritt ihres Kindes)
   Folgt dem Dark-Mode mit (anders als der Trichter, denn das ist die App).
   ========================================================================= */
.kid-head { display: flex; align-items: center; gap: 14px; }
.kid-avatar {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--wv-gradient); color: #fff;
    font-weight: 800; font-size: 20px; line-height: 1;
    box-shadow: 0 3px 10px -3px rgba(81, 30, 234, .5);
}
.kid-head__text { min-width: 0; }
.kid-head__name { margin: 0 0 3px; font-size: 19px; font-weight: 800; color: var(--wv-text); }
.kid-head__status { margin: 0; font-size: 13px; color: var(--wv-text-muted); }
.kid-head__status.is-active { color: #1F8A4C; }
.kid-lead { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }

.kid-invite {
    margin: 14px 0 0; padding: 14px 15px;
    background: var(--wv-lav-bg); border: 1px solid var(--wv-lav-line);
    border-radius: 14px;
}
.kid-invite p { margin: 0 0 10px; font-size: 14px; color: var(--wv-text-soft); }

/* Kennzahlen */
.kid-stats {
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .kid-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kid-stat {
    padding: 15px 14px; text-align: center;
    background: var(--wv-surface-soft); border: 1px solid var(--wv-border-soft);
    border-radius: 14px;
}
.kid-stat__num {
    display: block; font-size: 27px; font-weight: 800; line-height: 1.1;
    letter-spacing: -.6px; color: var(--wv-purple);
}
.kid-stat__lab {
    display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.35;
    color: var(--wv-text-muted);
}
.kid-stat__lab em { display: block; font-style: normal; opacity: .75; }

/* Der Datenschutz-Hinweis ist bewusst prominent */
.kid-privacy {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 16px 0 0; padding: 13px 15px;
    background: var(--wv-lav-bg); border-radius: 13px;
    font-size: 13px; line-height: 1.5; color: var(--wv-text-soft);
}
.kid-privacy svg { flex: 0 0 auto; margin-top: 2px; color: var(--wv-purple); }

/* Guthaben */
.kid-wallet { display: flex; gap: 12px; flex-wrap: wrap; }
.kid-wallet__item {
    flex: 1 1 140px; padding: 14px 15px;
    background: var(--wv-surface-soft); border: 1px solid var(--wv-border-soft);
    border-radius: 14px;
}
.kid-wallet__num { display: block; font-size: 24px; font-weight: 800; color: var(--wv-text); }
.kid-wallet__lab { display: block; margin-top: 3px; font-size: 12.5px; color: var(--wv-text-muted); }

/* Nachlegen */
.kid-plans { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kid-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kid-plan {
    display: flex; flex-direction: column; gap: 4px;
    padding: 17px 16px;
    background: var(--wv-surface); border: 1.5px solid var(--wv-border);
    border-radius: 16px;
}
.kid-plan__name  { font-size: 14px; font-weight: 700; color: var(--wv-text); }
.kid-plan__price { font-size: 25px; font-weight: 800; color: var(--wv-purple); line-height: 1.1; }
.kid-plan__desc  { font-size: 12.5px; line-height: 1.4; color: var(--wv-text-muted); }
.kid-plan__btn   { margin-top: 12px; width: 100%; }

/* =========================================================================
   TOAST-BENACHRICHTIGUNGEN - fix rechts oben, gestapelt (assets/js/toast.js)
   Ersetzt die alten Inline-Flash-Boxen.
   ========================================================================= */
.wv-toasts {
    position: fixed; top: 16px; right: 16px; z-index: 11000;
    display: flex; flex-direction: column; gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.wv-toast {
    pointer-events: auto;
    display: flex; align-items: flex-start; gap: 11px;
    background: var(--wv-surface); color: var(--wv-text);
    border: 1px solid var(--wv-border);
    border-left: 4px solid var(--wv-purple);
    border-radius: var(--wv-radius);
    padding: 13px 14px;
    box-shadow: var(--wv-shadow-lg);
    font-size: 14px; line-height: 1.45;
    animation: wvToastIn .3s cubic-bezier(.2,.8,.2,1);
}
.wv-toast.is-leaving { animation: wvToastOut .22s ease forwards; }
@keyframes wvToastIn  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes wvToastOut { to   { opacity: 0; transform: translateX(24px); } }
.wv-toast__icon { flex: 0 0 auto; margin-top: 1px; color: var(--wv-purple); }
.wv-toast__icon svg { display: block; }
.wv-toast__msg  { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wv-toast__close {
    flex: 0 0 auto; border: 0; background: none; cursor: pointer;
    color: var(--wv-text-muted); font-size: 19px; line-height: 1; padding: 0 2px;
}
.wv-toast__close:hover { color: var(--wv-text); }
.wv-toast--success { border-left-color: var(--wv-success); }
.wv-toast--success .wv-toast__icon { color: var(--wv-success); }
.wv-toast--error   { border-left-color: var(--wv-danger); }
.wv-toast--error   .wv-toast__icon { color: var(--wv-danger); }
.wv-toast--info    { border-left-color: var(--wv-info); }
.wv-toast--info    .wv-toast__icon { color: var(--wv-info); }
.wv-toast--warn    { border-left-color: var(--wv-warning); }
.wv-toast--warn    .wv-toast__icon { color: var(--wv-warning); }
@media (prefers-reduced-motion: reduce) {
    .wv-toast, .wv-toast.is-leaving { animation: none; }
}
@media (max-width: 480px) {
    .wv-toasts { top: 10px; right: 10px; left: 10px; width: auto; }
}

/* ===========================================================================
   Vorschau-Leerzustand ("So wird dein Ergebnis aussehen") - Profil + Empfehlungen
   =========================================================================== */
.preview-teaser__bar {
    display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between;
    background: var(--wv-gradient-soft); border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg); padding: 18px 20px; margin-bottom: 16px;
}
.preview-teaser__eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--wv-coral-deep);
}
.preview-teaser__title { margin: 5px 0 5px; font-size: var(--wv-fs-xl); line-height: 1.2; }
.preview-teaser__sub   { margin: 0; font-size: 14px; color: var(--wv-text-soft); max-width: 64ch; line-height: 1.5; }
.preview-teaser__cta   { flex: 0 0 auto; }

/* Der Beispiel-Block: voll lesbar, aber klar als Vorschau markiert + nicht interaktiv. */
.preview-teaser__sample {
    position: relative; opacity: 0.82; pointer-events: none; user-select: none;
    border: 1.5px dashed var(--wv-border); border-radius: var(--wv-radius-lg); padding: 14px;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}
/* Eigenständiges Label am Kopf des Beispiel-Blocks (kein Überlappen / kein Abschneiden). */
.preview-teaser__chip {
    display: inline-block; margin: 0;
    background: var(--wv-text); color: var(--wv-surface, #fff);
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    padding: 3px 12px; border-radius: 999px;
}
.preview-teaser__sample > * + * { margin-top: 12px; }
@media (max-width: 560px) {
    .preview-teaser__bar { flex-direction: column; align-items: stretch; }
    .preview-teaser__cta, .preview-teaser__cta .btn { width: 100%; }
}

/* ============================================================================
   Über-uns-Seite (about) - Hero · VM-Switcher · Stats · Team · FM-Band · CTA
   ============================================================================ */
.about-hero { position: relative; overflow: hidden; padding-bottom: 14px; }
.about-hero__glow {
    position: absolute; top: -40%; right: -12%; width: 60%; height: 150%;
    background: radial-gradient(closest-side, rgba(81,30,234,.16), transparent 70%);
    pointer-events: none; z-index: 0;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero__title { font-size: clamp(30px, 5.5vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.about-hero__lead { max-width: 720px; }

/* --- Vision / Mission / Fundament · 3D-Rotor (scroll-gesteuert) --- */
.vm3d { position: relative; }
.vm3d__track { position: relative; height: var(--vm-track, 300vh); }
.vm3d__sticky {
    position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
    display: grid; align-content: center; justify-items: center;
    padding: clamp(40px, 8vh, 96px) 0;
}
.vm3d__sticky > .container { width: 100%; }
.vm3d__head { text-align: center; margin-bottom: clamp(22px, 4vh, 44px); }
.vm3d__head .eyebrow { display: block; }
.vm3d__hint {
    display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0;
    font-family: var(--wv-font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--wv-text-muted);
}
.vm3d__hint .icon { color: var(--wv-coral-deep); }

.vm3d__stage { position: relative; perspective: 1200px; perspective-origin: 50% 44%; }
.vm3d__rotor {
    --pw: clamp(258px, 74vw, 380px);
    --ph: clamp(240px, 52vw, 268px);
    --pr: calc(var(--pw) * .62);
    position: relative; width: var(--pw); height: var(--ph); margin: 0 auto;
    transform-style: preserve-3d;
    transform: rotateX(-5deg) rotateY(var(--rot, 0deg));
    will-change: transform;
}
.vm3d__face {
    position: absolute; inset: 0; backface-visibility: hidden;
    transform: rotateY(calc(var(--f) * 120deg)) translateZ(var(--pr));
    display: flex; flex-direction: column; gap: 12px;
    padding: clamp(20px, 3.4vw, 28px);
    background: var(--wv-surface);
    border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg);
    box-shadow: var(--wv-shadow-sm);
}
.vm3d__face::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
    background: var(--wv-gradient-soft); transition: opacity .5s ease; pointer-events: none;
}
.vm3d__face.is-on::before { opacity: 1; }
.vm3d__face.is-on { border-color: var(--wv-purple); box-shadow: 0 24px 60px -24px rgba(81, 30, 234, .55); }
.vm3d__facetop { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.vm3d__badge {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--wv-gradient); box-shadow: var(--wv-shadow-brand);
}
.vm3d__badge .icon { color: #fff; }
.vm3d__num { font-family: var(--wv-font-mono); font-size: 13px; letter-spacing: .12em; color: var(--wv-purple); font-weight: 700; }
.vm3d__title { margin: 0; font-size: clamp(23px, 3.6vw, 31px); letter-spacing: -.02em; position: relative; z-index: 1; }
.vm3d__text { margin: 0; font-size: clamp(15px, 1.9vw, 18px); line-height: 1.55; color: var(--wv-text-soft); position: relative; z-index: 1; }
.vm3d__floor {
    position: absolute; left: 50%; bottom: 4px; width: min(70%, 300px); height: 34px; transform: translateX(-50%);
    background: radial-gradient(60% 100% at 50% 0, rgba(107, 70, 255, .40), transparent 70%); filter: blur(10px); opacity: .5;
}

.vm3d__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(40px, 6.5vh, 64px); position: relative; z-index: 2; }
.vm3d__dot {
    font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 999px; border: 1px solid var(--wv-border);
    background: var(--wv-surface); color: var(--wv-text-muted); font-weight: 700; font-size: 13.5px;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.vm3d__dot > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.vm3d__dot:hover { color: var(--wv-text); border-color: var(--wv-purple); }
.vm3d__dot.is-active { color: #fff; border-color: transparent; background: var(--wv-gradient); box-shadow: var(--wv-shadow-brand); }
.vm3d__dot.is-active > span { opacity: 1; background: #fff; }
.vm3d__dot:focus-visible { outline: 2px solid var(--wv-purple); outline-offset: 2px; }

@media (max-width: 560px) { .vm3d__track { --vm-track: 240vh; } }
@media (prefers-reduced-motion: reduce) { .vm3d__face::before { transition: none; } }

/* --- Kennzahlen --- */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-stat { text-align: center; padding: 22px 16px; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); }
.about-stat__value {
    display:block; font-family: var(--wv-font-display); font-weight: 800;
    font-size: clamp(28px, 5vw, 40px); line-height: 1;
    background: var(--wv-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-stat__label { display:block; margin-top:8px; font-size: 13px; color: var(--wv-text-muted); line-height:1.4; }
@media (max-width: 620px) {
    .about-stats { grid-template-columns: 1fr; }
    .about-stat { display:flex; align-items:center; gap:14px; text-align:left; padding:16px 18px; }
    .about-stat__value { font-size: 30px; flex:0 0 auto; }
    .about-stat__label { margin-top:0; }
}

/* --- Team --- */
.team__head { text-align:center; max-width:640px; margin: 0 auto 32px; }
.team__head .lead { color: var(--wv-text-muted); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
    display: flex; gap: 18px; align-items: flex-start; min-width: 0;
    padding: 20px; background: var(--wv-surface);
    border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg);
    transition: border-color var(--wv-trans), transform var(--wv-trans), box-shadow var(--wv-trans);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--wv-purple)); box-shadow: var(--wv-shadow); }
.team-card__avatar {
    position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 20px;
    overflow: hidden; background: var(--wv-surface-soft);
    box-shadow: 0 0 0 3px var(--accent-ring, rgba(81,30,234,.18));
}
.team-card__photo { width:100%; height:100%; object-fit: cover; display:block; }
.team-card__initials, .team-card__icon {
    width:100%; height:100%; display:flex; align-items:center; justify-content:center;
    font-family: var(--wv-font-display); font-weight: 800; font-size: 26px; color:#fff;
    background: linear-gradient(135deg, var(--accent, var(--wv-purple)), var(--accent-deep, #2f12a0));
}
.team-card__icon .icon { width:40px; height:40px; color:#fff; }
.team-card__founder {
    position:absolute; bottom:5px; right:5px;
    width: 28px; height: 28px; padding: 4px;
    display: grid; place-items: center;
    background: #fff; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.team-card__founder img { width:100%; height:100%; object-fit: contain; display:block; }
.team-card__body { min-width: 0; }
.team-card__name { margin:0 0 6px; font-size: 18px; }
.team-card__role {
    display:inline-flex; align-items:center; gap:6px;
    font-size: 12px; font-weight:700; color: var(--accent, var(--wv-purple));
    background: var(--accent-soft, rgba(81,30,234,.12));
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.team-card__role .icon { width:14px; height:14px; }
.team-card__bio { margin:0; font-size: 14px; line-height: 1.55; color: var(--wv-text-soft); overflow-wrap:anywhere; }
/* Linke Spalte der Team-Karte: Foto oben, Social-Links direkt darunter */
.team-card__side { display:flex; flex-direction:column; align-items:center; flex:0 0 auto; min-width:0; }
/* Social-Links unter dem Team-Foto (max. 2 nebeneinander, Icon-Stil wie Footer) */
.team-card__socials {
    display:flex; justify-content:center; gap:10px; margin: 12px 0 0;
}
.team-card__social {
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:50%;
    border:1px solid var(--wv-border); color: var(--wv-text-soft);
    background: var(--wv-surface);
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.team-card__social svg { width:17px; height:17px; }
.team-card__social:hover,
.team-card__social:focus-visible {
    color: var(--accent, var(--wv-purple));
    border-color: var(--accent, var(--wv-purple));
    transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) { .team-card__social { transition:none; } .team-card__social:hover { transform:none; } }
.team-card__soon {
    display:inline-block; margin-top:10px; font-size:11px; font-weight:700;
    color: var(--wv-text-muted); background: var(--wv-surface-soft);
    border:1px dashed var(--wv-border); padding: 3px 9px; border-radius:999px;
}

/* --- FM-Squared Band --- */
.fm-band {
    display:grid; grid-template-columns: auto 1fr; gap: 26px; align-items:center;
    padding: 30px; border-radius: var(--wv-radius-lg);
    background: var(--wv-gradient); color:#fff; --wv-icon: #fff; box-shadow: var(--wv-shadow-brand);
}
.fm-band__mark {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 104px; height: 104px;
    background: #fff; border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.fm-band__mark img { width: 78px; height: 78px; object-fit: contain; display: block; }
.fm-band__body .eyebrow { color: rgba(255,255,255,.82); }
.fm-band__body h2 { color:#fff; margin: 4px 0 8px; }
.fm-band__body p { color: rgba(255,255,255,.92); margin: 0 0 14px; }
.fm-band__link { display:inline-flex; align-items:center; gap:6px; color:#fff; font-weight:700; text-decoration:none; }
.fm-band__link:hover { color:#fff; gap:9px; }
@media (max-width: 620px) {
    .fm-band { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align:center; justify-items:center; }
    .fm-band__mark { width: 88px; height: 88px; }
    .fm-band__mark img { width: 64px; height: 64px; }
    .fm-band__link { justify-content:center; }
}

/* --- Kontakt + CTA --- */
.about-foot { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items:stretch; }
.about-foot__contact, .about-cta {
    padding: 26px; border-radius: var(--wv-radius-lg);
    background: var(--wv-surface); border:1px solid var(--wv-border);
}
.about-cta { background: var(--wv-gradient-soft); border-color: transparent; display:flex; flex-direction:column; }
.about-cta p { color: var(--wv-text-soft); margin-bottom: 18px; }
.about-cta .btn { margin-top:auto; align-self:flex-start; }
.about-foot__lines { line-height: 2; }
.about-foot__lines a { display:inline-flex; align-items:center; gap:7px; }
.about-foot__lines a .icon { color: var(--wv-coral-deep); }
@media (max-width: 620px) {
    .about-foot { grid-template-columns: 1fr; }
    .about-cta .btn { align-self: stretch; justify-content:center; }
}

/* ============================================================================
   Rechtsseiten (Impressum / AGB) - ruhige, gut lesbare Typografie
   ============================================================================ */
.legal-page .eyebrow { display:block; margin-bottom: 6px; }
.legal-page > h1 { margin-bottom: 8px; }
.legal-page > .lead { color: var(--wv-text-muted); max-width: 640px; }
.legal-card h2 { font-size: 18px; margin: 0 0 8px; }
.legal-card h3 { font-size: 15px; margin: 14px 0 4px; color: var(--wv-text); }
.legal-card p  { color: var(--wv-text-soft); line-height: 1.65; margin: 0 0 6px; overflow-wrap: anywhere; }
.legal-card a  { font-weight: 600; }
.legal-seealso { background: var(--wv-surface-soft); border-color: transparent; }
.legal-links { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }
.legal-links .btn { text-decoration: none; }

/* ============================================================================
   Level-System - "Reise zum Horizont": tappbares XP-Widget, Roadmap-Popup,
   Level-Leiter (level-track) und die "Dein Weg"-Seite (journey)
   ============================================================================ */

/* --- XP-Widget als Button (Sidebar, unten) --- */
.xp-meter {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, background 0.15s, transform 0.06s;
}
.xp-meter:hover { border-color: var(--wv-lav-line); background: var(--wv-lav-bg); }
.xp-meter:active { transform: translateY(1px); }
.xp-meter:focus-visible { outline: 2px solid var(--wv-purple); outline-offset: 2px; }
.xp-meter__id { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.xp-meter__icon { line-height: 1; flex-shrink: 0; color: var(--wv-purple); display: inline-flex; }
.xp-meter__id-text { display: flex; flex-direction: column; min-width: 0; }
.xp-meter__level { font-size: var(--wv-fs-sm); font-weight: 700; line-height: 1.15; }
.xp-meter__title {
    font-size: 11px; font-weight: 600; color: var(--wv-purple);
    line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xp-meter__badges { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.xp-meter__cta {
    display: inline-flex; align-items: center; gap: 2px;
    font-weight: 700; color: var(--wv-purple);
}
[data-theme="dark"] .xp-meter__title,
[data-theme="dark"] .xp-meter__cta { color: var(--wv-orange-soft); }

/* --- Roadmap-Popup --- */
.wv-journey {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.wv-journey[hidden] { display: none; }
/* Dialog-Ebene (.wai-modal). Steht bewusst HIER und nicht in
   wegvio_ai.css: die Matching-Seite laedt nur wegvio.css und
   matching.css, dort waren Teilen-, Versions- und Ortsdialog sonst
   unformatiert und erschienen mitten im Seiteninhalt. */
.wai-modal[hidden] { display: none !important; }
.wai-modal {
    position: fixed; inset: 0;
    background: rgba(20, 20, 30, 0.55);
    display: grid; place-items: center;
    z-index: 200;
    padding: 16px;
}
.wai-modal__inner {
    background: var(--wv-surface);
    border-radius: var(--wv-radius-lg);
    padding: 28px;
    max-width: 720px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    position: relative;
    box-shadow: var(--wv-shadow-lg);
}
.wai-modal__close {
    position: absolute; right: 12px; top: 12px;
    background: var(--wv-surface-soft);
    border: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

body.wv-modal-open { overflow: hidden; }
.wv-journey__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.wv-journey__panel {
    position: relative;
    background: var(--wv-bg-elevated, #fff);
    color: var(--wv-text);
    width: 100%; max-width: 460px; max-height: 92vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 26px 22px 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: wvPaywallIn 0.18s ease-out;
}
.wv-journey__close {
    position: absolute; top: 10px; right: 12px;
    width: 36px; height: 36px; border: 0; background: transparent;
    font-size: 28px; line-height: 1; color: var(--wv-text-muted);
    cursor: pointer; border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.wv-journey__close:hover { background: var(--wv-bg-soft); color: var(--wv-text); }
.wv-journey__head { display: flex; align-items: center; gap: 14px; padding-right: 28px; }
.wv-journey__emoji {
    line-height: 1; flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--wv-lav-bg);
    color: var(--wv-purple);
}
.wv-journey__head-text { min-width: 0; }
.wv-journey__eyebrow {
    margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--wv-purple);
}
.wv-journey__title { margin: 2px 0 2px; font-size: 20px; line-height: 1.15; }
.wv-journey__sub { margin: 0; font-size: 13px; color: var(--wv-text-muted); }
.wv-journey__bar {
    height: 8px; background: var(--wv-border-soft); border-radius: 999px;
    overflow: hidden; margin: 16px 0 6px;
}
.wv-journey__bar-fill { height: 100%; background: var(--wv-gradient); border-radius: 999px; }
.wv-journey__xp { margin: 0 0 14px; font-size: 13px; color: var(--wv-text-soft); }
.wv-journey__intro { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.wv-journey .level-track { margin-bottom: 18px; }

/* --- Level-Leiter (Popup + Seite) --- */
.level-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.level-track__row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px; border-radius: var(--wv-radius);
    background: var(--wv-surface-soft);
    border: 1px solid transparent;
}
.level-track__row.is-current {
    background: var(--wv-lav-bg);
    border-color: var(--wv-purple);
    box-shadow: var(--wv-shadow-sm);
}
.level-track__row.is-next { border-color: var(--wv-lav-line); }
.level-track__row.is-done { opacity: 0.72; }
.level-track__emoji {
    line-height: 1; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    color: var(--wv-purple);
}
.level-track__row.is-done .level-track__emoji {
    color: var(--wv-success);
    background: color-mix(in srgb, var(--wv-success) 14%, var(--wv-surface));
    border-color: transparent;
}
/* Erledigt-Häkchen bleibt grün - auch im Dark Mode (übersteuert die globale .icon-Regel). */
.level-track__row.is-done .level-track__emoji .icon { color: var(--wv-success); }
.level-track__body { flex: 1; min-width: 0; }
.level-track__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.level-track__name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.level-track__pill {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.level-track__pill--here { background: var(--wv-gradient); color: #fff; }
.level-track__pill--next { background: var(--wv-lav-line); color: var(--wv-purple-deep); }
.level-track__pill--done { background: color-mix(in srgb, var(--wv-success) 16%, transparent); color: var(--wv-success); }
.level-track__sub { display: block; font-size: 12.5px; color: var(--wv-text-soft); line-height: 1.45; margin-top: 2px; }
.level-track__milestone {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 6px; font-size: 11.5px; font-weight: 600;
    color: var(--wv-purple);
}
.level-track__milestone .icon { flex-shrink: 0; }
[data-theme="dark"] .level-track__milestone,
[data-theme="dark"] .level-track__pill--next { color: var(--wv-orange-soft); }
.level-track__xp {
    flex-shrink: 0; align-self: center;
    font-size: 11px; font-weight: 700; color: var(--wv-text-muted);
    white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* --- "Dein Weg"-Seite: Hero + Meilensteine --- */
.journey-hero {
    display: flex; align-items: center; gap: 18px;
    padding: 22px; margin-bottom: 20px;
    border-radius: var(--wv-radius-lg);
    background: var(--wv-gradient);
    color: #fff;
    box-shadow: var(--wv-shadow-brand);
}
.journey-hero__badge {
    line-height: 1; flex-shrink: 0;
    width: 76px; height: 76px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
/* Hero-Icon bleibt in beiden Themes weiß (übersteuert die globale Dark-.icon-Regel). */
.journey-hero__badge .icon { color: #fff; }
.journey-hero__main { flex: 1; min-width: 0; }
.journey-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.journey-hero__title { margin: 2px 0 4px; font-size: 26px; line-height: 1.1; color: #fff; }
.journey-hero__sub { margin: 0; font-size: 14px; color: #fff; opacity: 0.95; }
.journey-hero__bar {
    height: 9px; background: rgba(255, 255, 255, 0.25); border-radius: 999px;
    overflow: hidden; margin: 14px 0 6px; max-width: 460px;
}
.journey-hero__bar-fill { height: 100%; background: #fff; border-radius: 999px; }
.journey-hero__xp { margin: 0; font-size: 13px; color: #fff; opacity: 0.95; }
@media (max-width: 560px) {
    .journey-hero { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
    .journey-hero__title { font-size: 22px; }
}
.journey-milestones { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .journey-milestones { grid-template-columns: 1fr 1fr; } }
.journey-milestone {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px; border-radius: var(--wv-radius);
    background: var(--wv-lav-bg); border: 1px solid var(--wv-lav-line);
}
.journey-milestone__emoji { line-height: 1; flex-shrink: 0; color: var(--wv-purple); display: inline-flex; align-items: center; }
.journey-milestone strong { display: block; font-size: 14px; }
.journey-milestone span { display: block; font-size: 12.5px; color: var(--wv-text-soft); line-height: 1.45; margin-top: 2px; }

/* --- Klickbare Level-Statkachel + Auszeichnungs-Link in "Mein Konto" --- */
.stat--link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.06s; }
.stat--link:hover { border-color: var(--wv-purple); box-shadow: var(--wv-shadow-sm); }
.stat--link:active { transform: translateY(1px); }
.section-title:has(.section-title__link) { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title__link {
    margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
    font-size: 13px; font-weight: 700; color: var(--wv-purple); text-decoration: none;
}
.section-title__link:hover { text-decoration: underline; }
[data-theme="dark"] .section-title__link { color: var(--wv-orange-soft); }

/* ============================================================================
   BLOG / WISSENSSEITE - "RIASEC erklärt" (views/public/blog.php)
   Ruhiger Scroll-Lehrpfad. Nutzt durchgehend Tokens (dark-safe) + Mindmap-Lila.
   ========================================================================== */
.blog-wrap { max-width: 1000px; }

/* ---- Index: Hero-Variante + Artikel-Kacheln ---- */
.blog-hero--index { padding-bottom: 28px; }
.blog-tiles { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .blog-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .blog-tiles { grid-template-columns: repeat(3, 1fr); } }
.blog-tile {
    position: relative; display: flex; flex-direction: column;
    padding: 24px 22px; background: var(--wv-surface);
    border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg);
    border-top: 3px solid var(--accent);
    transition: transform var(--wv-trans), box-shadow var(--wv-trans), border-color var(--wv-trans);
    overflow: hidden;
}
.blog-tile:hover { transform: translateY(-4px); box-shadow: var(--wv-shadow); }
.blog-tile__num {
    position: absolute; top: 16px; right: 18px;
    font-family: 'Courier New', monospace; font-weight: 700; font-size: 15px;
    color: var(--accent); opacity: 0.45;
}
.blog-tile__icon {
    display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px;
    border-radius: var(--wv-radius); color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.blog-tile__title { font-size: 18px; line-height: 1.25; margin: 0 0 8px; color: var(--wv-text); }
.blog-tile__teaser { font-size: 14px; line-height: 1.55; color: var(--wv-text-soft); margin: 0 0 16px; flex: 1; }
.blog-tile__more {
    display: inline-flex; align-items: center; gap: 5px; margin-top: auto;
    font-size: 13.5px; font-weight: 700; color: var(--accent);
}
.blog-tile__more .icon { transition: transform var(--wv-trans); }
.blog-tile:hover .blog-tile__more .icon { transform: translateX(3px); }

/* ---- "Zurück zum Blog"-Leiste über jedem Artikel ---- */
.blog-backbar { border-bottom: 1px solid var(--wv-border); background: var(--wv-surface); }
.blog-back {
    display: inline-flex; align-items: center; gap: 7px; padding: 12px 0;
    font-size: 14px; font-weight: 600; color: var(--wv-text-soft);
}
.blog-back:hover { color: var(--wv-purple); }
.blog-back .icon { transition: transform var(--wv-trans); }
.blog-back:hover .icon { transform: translateX(-3px); }

/* ---- Hero ---- */
.blog-hero {
    position: relative; overflow: hidden;
    padding: 64px 0 40px;
    background: var(--wv-surface);
}
@media (min-width: 768px) { .blog-hero { padding: 96px 0 64px; } }
.blog-hero__inner { position: relative; z-index: 2; max-width: 860px; }
.blog-hero__glow {
    position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
    width: 720px; height: 480px; pointer-events: none; z-index: 0;
    background: radial-gradient(closest-side, rgba(81,30,234,0.10), transparent 70%);
}
.blog-hero__hex {
    position: absolute; right: -90px; top: 40px; width: 360px; height: 360px;
    z-index: 1; opacity: 0.10; pointer-events: none;
}
.blog-hero__hex svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .blog-hero__hex { right: -140px; opacity: 0.06; } }
.blog-hero__code {
    display: inline-block; margin-bottom: 12px;
    font-family: 'Courier New', monospace; font-size: 13px;
    color: var(--wv-text-muted);
}
.blog-hero__title {
    font-size: clamp(30px, 6vw, 56px); line-height: 1.08; margin: 4px 0 18px;
    letter-spacing: -0.02em;
}
.blog-hero__lead {
    font-size: clamp(15px, 2vw, 19px); line-height: 1.55; color: var(--wv-text-soft);
    max-width: 760px; margin: 0 0 12px;
}
.blog-hero__lead--sub { color: var(--wv-text-muted); }
.blog-trust {
    display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px;
}
.blog-trust span {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 600; color: var(--wv-text-soft);
}
.blog-trust .icon { color: var(--wv-coral-deep); }
.blog-scrollcue {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
    font-size: 14px; font-weight: 700; color: var(--wv-purple);
}
.blog-scrollcue .icon { animation: blogBob 1.8s ease-in-out infinite; }
@keyframes blogBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- Layout grids ---- */
.blog-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) {
    .blog-grid--origin { grid-template-columns: 1.6fr 1fr; gap: 40px; }
    .blog-grid--hex    { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
    .blog-grid--radar  { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
}

/* ---- Prose blocks ---- */
.blog-prose { max-width: 640px; }
.blog-prose p { font-size: 16px; line-height: 1.65; color: var(--wv-text-soft); margin: 0 0 16px; }
.blog-prose p strong { color: var(--wv-text); font-weight: 700; }
.blog-prose__last { margin-bottom: 0 !important; }
.blog-prose__tight { margin-bottom: 8px !important; }
.blog-marker {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px;
    border-radius: var(--wv-radius); background: rgba(81,30,234,0.10); color: var(--wv-purple);
}
.blog-h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 4px 0 16px; line-height: 1.2; }
.blog-center-p {
    max-width: 680px; margin: 0 auto 22px; text-align: center;
    font-size: 17px; line-height: 1.6; color: var(--wv-text-soft);
}
.blog-center-p strong { color: var(--wv-text); }
.blog-bullets { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.blog-bullets li {
    position: relative; padding-left: 20px;
    font-size: 15.5px; line-height: 1.6; color: var(--wv-text-soft);
}
.blog-bullets li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
    border-radius: 2px; background: var(--wv-purple);
}
.blog-bullets li strong { color: var(--wv-text); }

/* ---- Forscher-Dossier ---- */
.blog-dossier {
    text-align: center; padding: 24px 20px;
    border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg);
    background: var(--wv-surface);
}
.blog-dossier__avatar {
    display: inline-grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px;
    border-radius: 50%; background: var(--wv-gradient); color: #fff; --wv-icon: #fff;
    box-shadow: var(--wv-shadow-brand);
}
.blog-dossier__name { font-weight: 800; font-size: 17px; }
.blog-dossier__years { font-family: 'Courier New', monospace; font-size: 13px; color: var(--wv-text-muted); margin-bottom: 14px; }
.blog-dossier__rows { margin: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.blog-dossier__rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--wv-border-soft); }
.blog-dossier__rows dt { font-size: 13px; color: var(--wv-text-muted); margin: 0; }
.blog-dossier__rows dd { font-size: 13px; font-weight: 700; color: var(--wv-text); margin: 0; font-family: 'Courier New', monospace; }

/* ---- Zeitleiste ---- */
.blog-timeline {
    list-style: none; padding: 0; margin: 34px 0 0;
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    position: relative;
}
.blog-timeline li {
    flex: 1 1 160px; max-width: 240px; text-align: center;
    background: var(--wv-surface); border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius); padding: 14px 12px;
}
.blog-timeline__year { display: block; font-family: 'Courier New', monospace; font-weight: 700; font-size: 18px; color: var(--wv-purple); }
.blog-timeline__label { display: block; font-size: 13px; color: var(--wv-text-soft); margin-top: 3px; }

/* ---- Akronym-Karte ---- */
.blog-acro { max-width: 760px; margin: 0 auto 22px; padding: 22px 20px; border-radius: var(--wv-radius-lg); }
.blog-acro__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.blog-acro__item { font-size: clamp(14px, 2vw, 18px); color: rgba(255,255,255,0.78); white-space: nowrap; }
.blog-acro__item b { font-family: 'Courier New', monospace; font-size: 1.55em; font-weight: 700; color: #fff; }

/* ---- Code-Beispielkarte ---- */
.blog-codecard {
    max-width: 360px; margin: 0 auto 22px; padding: 14px 18px;
    display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
    background: var(--wv-surface-soft); border: 1px solid var(--wv-border); border-radius: var(--wv-radius);
}
.blog-codecard__label { font-weight: 700; color: var(--wv-text); }
.blog-codecard__eg { font-size: 13px; color: var(--wv-text-muted); }
.blog-codecard__chip {
    font-family: 'Courier New', monospace; font-weight: 700; font-size: 18px; letter-spacing: 2px;
    color: #fff; background: var(--wv-purple); padding: 4px 14px; border-radius: var(--wv-radius-pill);
}

/* ---- Callout ---- */
.blog-callout {
    max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 18px; background: rgba(81,30,234,0.06);
    border-left: 4px solid var(--wv-purple); border-radius: 0 var(--wv-radius) var(--wv-radius) 0;
}
.blog-callout .icon { color: var(--wv-coral-deep); flex-shrink: 0; margin-top: 1px; }
.blog-callout p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wv-text-soft); }
.blog-callout p strong { color: var(--wv-text); }

/* ---- Typ-Hinweis ---- */
.blog-hint {
    display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 22px; padding: 0 4px;
    width: 100%; justify-content: center; text-align: center;
    font-size: 13.5px; color: var(--wv-text-muted);
}
.blog-hint .icon { color: var(--wv-coral-deep); }

/* ---- Die 6 Typen ---- */
.blog-types { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .blog-types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .blog-types { grid-template-columns: repeat(3, 1fr); } }
.blog-type {
    position: relative; padding: 20px; border-top: 3px solid var(--accent);
    display: flex; flex-direction: column;
}
.blog-type__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.blog-type__tile {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--wv-radius);
    color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.blog-type__letter { font-family: 'Courier New', monospace; font-weight: 700; font-size: 30px; color: var(--accent); opacity: 0.55; line-height: 1; }
.blog-type__name { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: var(--wv-text); }
.blog-type__blurb { font-size: 14px; line-height: 1.55; color: var(--wv-text-soft); margin: 0 0 14px; flex: 1; }
.blog-type__jobs { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--wv-text-muted); margin: 0; }
.blog-type__jobs .icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ---- Hexagon ---- */
.blog-hexwrap { text-align: center; }
.blog-hexagon { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; font-family: inherit; }
.blog-hexlegend { display: flex; gap: 20px; justify-content: center; margin-top: 8px; }
.blog-hexlegend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wv-text-soft); }
.blog-hexlegend__solid { width: 22px; height: 0; border-top: 2.5px solid var(--wv-purple); opacity: 0.6; }
.blog-hexlegend__dash { width: 22px; height: 0; border-top: 2px dashed var(--wv-purple); opacity: 0.5; }

/* ---- Radar / Spinnennetz ---- */
.blog-radarcard { padding: 18px; }
.blog-radarcard .riasec-radar { margin: 0; }
.blog-readguide { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.blog-readguide span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wv-text-soft); }
.blog-readguide .icon { color: var(--wv-coral-deep); }
.blog-ministats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.blog-ministats > div { flex: 1 1 120px; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius); padding: 10px 12px; }
.blog-ministats__v { display: block; font-weight: 800; font-size: 15px; color: var(--wv-purple); }
.blog-ministats__v--code { font-family: 'Courier New', monospace; letter-spacing: 2px; }
.blog-ministats__l { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--wv-text-muted); margin-top: 2px; }

/* ---- Zitat ---- */
.blog-quote { max-width: 780px; text-align: center; position: relative; padding-top: 8px; }
.blog-quote__mark { display: inline-flex; color: var(--wv-purple); opacity: 0.16; margin-bottom: -22px; }
.blog-quote__text {
    font-size: clamp(22px, 3.6vw, 34px); line-height: 1.3; font-weight: 700;
    color: var(--wv-text); margin: 0 auto 16px; max-width: 720px; border: 0; padding: 0;
}
.blog-quote__src { display: block; font-family: 'Courier New', monospace; font-size: 13.5px; color: var(--wv-text-muted); font-style: normal; }
.blog-quote__context { max-width: 580px; margin: 18px auto 0; padding-top: 18px; border-top: 1px solid var(--wv-border); font-size: 15px; line-height: 1.6; color: var(--wv-text-soft); }

/* ---- Warum-Wegvio Stats ---- */
.blog-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 28px; }
.blog-stat { flex: 1 1 150px; max-width: 220px; text-align: center; padding: 18px 14px; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); }
.blog-stat__v { display: block; font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--wv-purple); line-height: 1; }
.blog-stat__l { display: block; font-size: 13px; color: var(--wv-text-soft); margin-top: 8px; }
.blog-reasons { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
@media (min-width: 760px) { .blog-reasons { grid-template-columns: repeat(3, 1fr); } }
.blog-reason { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius); }
.blog-reason__tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--wv-radius); background: rgba(81,30,234,0.10); color: var(--wv-purple); }
.blog-reason strong { display: block; font-size: 15px; color: var(--wv-text); margin-bottom: 2px; }
.blog-reason span { font-size: 13.5px; line-height: 1.5; color: var(--wv-text-soft); }
.blog-aicard { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--wv-radius-lg); }
.blog-aicard__tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--wv-radius); background: var(--wv-gradient); color: #fff; --wv-icon: #fff; }
.blog-aicard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--wv-text-soft); }

/* ---- 3 Schritte ---- */
.blog-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .blog-steps { grid-template-columns: repeat(3, 1fr); } }
.blog-step { position: relative; padding: 22px 18px; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); display: flex; flex-direction: column; }
.blog-step__num { position: absolute; top: 14px; right: 16px; font-family: 'Courier New', monospace; font-weight: 700; font-size: 15px; color: var(--wv-purple); opacity: 0.5; }
.blog-step__tile { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: var(--wv-radius); background: rgba(81,30,234,0.10); color: var(--wv-purple); }
.blog-step strong { font-size: 16px; color: var(--wv-text); margin-bottom: 6px; }
.blog-step__text { font-size: 14px; line-height: 1.55; color: var(--wv-text-soft); }

/* ---- CTA ---- */
.blog-cta { position: relative; overflow: hidden; text-align: center; padding: 40px 28px; border-radius: var(--wv-radius-lg); }
.blog-cta__glow { position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 0%, rgba(255,255,255,0.18), transparent 70%); pointer-events: none; }
.blog-cta__title { position: relative; font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.blog-cta__text { position: relative; max-width: 540px; margin: 0 auto 22px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.92) !important; }
.blog-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.blog-cta__trust { position: relative; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 22px; }
.blog-cta__trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.82); --wv-icon: #fff; }
.btn--on-brand { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn--on-brand:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Dark-Theme-Feinschliff: weiche Flächen in den Sektionen */
[data-theme="dark"] .blog-callout { background: rgba(139,108,255,0.10); }
[data-theme="dark"] .blog-codecard__chip { color: #fff; }
[data-theme="dark"] .blog-acro__item { color: rgba(255,255,255,0.82); }

/* ============================================================================
   BLOG-ARTIKEL (Wegvio-Name, Cursor, Analyse, Profil, Empfehlungen)
   ========================================================================== */
.blog-hero--article { padding: 56px 0 36px; }
@media (min-width: 768px) { .blog-hero--article { padding: 76px 0 48px; } }
.blog-inlinelink { text-align: center; margin: 22px 0 0; }
.blog-inlinelink a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--wv-purple); }
.blog-inlinelink a:hover { text-decoration: underline; }

/* ---- WEG / VIO Split (Name-Artikel) ---- */
.blog-split { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
@media (min-width: 760px) { .blog-split { flex-direction: row; align-items: stretch; gap: 0; } }
.blog-split__half {
    flex: 1; padding: 28px 24px; background: var(--wv-surface);
    border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg);
}
.blog-split__half--vio { background: var(--wv-surface-soft); }
.blog-split__plus {
    display: grid; place-items: center; font-size: 34px; font-weight: 300; color: var(--wv-text-muted);
    padding: 6px 18px; flex-shrink: 0;
}
.blog-split__label {
    display: inline-flex; align-items: baseline;
    font-family: 'Courier New', monospace; font-weight: 700; font-size: clamp(36px, 7vw, 56px);
    line-height: 1; color: var(--wv-purple); letter-spacing: 1px;
}
.blog-split__sub { display: block; margin: 8px 0 14px; font-size: 14px; font-weight: 600; color: var(--wv-text-muted); }
.blog-split__half p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--wv-text-soft); }
.blog-split__half p strong { color: var(--wv-text); }
.blog-midnote {
    max-width: 640px; margin: 24px auto 0; text-align: center;
    font-size: 17px; font-weight: 700; color: var(--wv-purple);
}

/* ---- Cursor-Showcase ---- */
.blog-cursorshow {
    position: relative; text-align: center; padding: 56px 24px; border-radius: var(--wv-radius-lg);
    background: var(--wv-surface-soft); border: 1px solid var(--wv-border);
    overflow: hidden;
}
.blog-cursorshow__text {
    font-size: clamp(28px, 6vw, 52px); font-weight: 800; letter-spacing: -0.02em; color: var(--wv-text);
}
/* Cursor erbt die grosse Textgroesse, damit er (wie im Hero) zum Text passt statt winzig zu sein */
.blog-cursorshow__cur { font-size: clamp(28px, 6vw, 52px); vertical-align: -0.08em; margin-left: 0.02em; }

/* ---- Markenprinzipien ---- */
.blog-principles { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .blog-principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .blog-principles { grid-template-columns: repeat(4, 1fr); } }
.blog-principle {
    position: relative; padding: 24px 20px; background: var(--wv-surface);
    border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg);
    border-top: 3px solid var(--wv-purple); overflow: hidden;
}
.blog-principle__num {
    display: block; font-family: 'Courier New', monospace; font-weight: 700;
    font-size: 30px; color: var(--wv-purple); opacity: 0.35; line-height: 1; margin-bottom: 10px;
}
.blog-principle__t { font-size: 17px; margin: 0 0 6px; color: var(--wv-text); }
.blog-principle__p { font-size: 14px; line-height: 1.55; color: var(--wv-text-soft); margin: 0; }

/* ---- Profil-Bausteine ---- */
.blog-parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .blog-parts { grid-template-columns: repeat(4, 1fr); } }
.blog-part {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    padding: 18px 12px; background: var(--wv-surface); border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius); font-weight: 700; font-size: 14px; color: var(--wv-text);
}
.blog-part .icon { color: var(--wv-coral-deep); }

/* ---- 4-Schritte-Variante ---- */
@media (min-width: 560px) { .blog-steps--four { grid-template-columns: repeat(2, 1fr); } }

/* ---- Beispiel-Empfehlung (echtes match-card-Layout) ---- */
.blog-reco-wrap { max-width: 640px; margin: 0 auto; }
.blog-reco-wrap .match-block__title .icon { color: var(--wv-coral-deep); }

/* ---- Beispiel-Profil (echtes wai-Layout) ---- */
.blog-profile-demo { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.blog-profile-demo .wai-hero { margin: 0; }
.blog-profile-demo .wai-sections { display: flex; flex-direction: column; gap: 14px; }
.blog-demo-chip {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--wv-radius-pill);
    background: rgba(81,30,234,0.10); color: var(--wv-purple);
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.blog-demo-chip .icon { color: var(--wv-coral-deep); }

/* ---- Beispiel-Analyse-Chat (echtes analyse-Layout, als Standbild) ---- */
.blog-chat-demo { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.blog-chatframe {
    display: flex; flex-direction: column;
    border: 1px solid var(--wv-border); border-radius: 20px; overflow: hidden;
    background: var(--wv-surface); box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}
.blog-chatframe__cats {
    padding: 14px 14px 16px; border-bottom: 1px solid var(--wv-border);
    background: var(--wv-bg-alt); pointer-events: none;   /* Kategorien wechseln nur per Skript */
}
/* Chat-Verlauf: feste Höhe → immer scrollbar (Standbild) */
.blog-chatframe .chat-stream { min-height: 300px; max-height: 340px; border-radius: 0; }
@media (min-width: 880px) { .blog-chatframe .chat-stream { min-height: 340px; max-height: 420px; } }
/* Eingabe + Mikro: nur zur Ansicht, nicht bedienbar */
.blog-chatframe__input { pointer-events: none; flex-shrink: 0; }
.blog-chatframe__input .chat-textarea { background: var(--wv-surface); }
.blog-chat-demo__note {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 12.5px; color: var(--wv-text-muted); text-align: center; margin: 0; line-height: 1.5;
}
.blog-chat-demo__note .icon { color: var(--wv-text-muted); flex-shrink: 0; }

/* ---- Reise-Ablauf (Journey-Timeline) ---- */
.blog-journey { list-style: none; padding: 0; margin: 26px auto 0; max-width: 720px; }
.blog-journey__step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.blog-journey__rail { display: flex; flex-direction: column; align-items: center; }
.blog-journey__tile {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--wv-gradient); color: #fff; flex: 0 0 auto; box-shadow: var(--wv-shadow-brand);
}
.blog-journey__tile .icon { color: #fff; }
.blog-journey__line { flex: 1 1 auto; width: 2px; min-height: 22px; background: linear-gradient(var(--wv-purple), var(--wv-border)); margin-top: 6px; }
.blog-journey__step:last-child .blog-journey__line { display: none; }
.blog-journey__body { padding: 2px 0 26px; }
.blog-journey__step:last-child .blog-journey__body { padding-bottom: 0; }
.blog-journey__num { font-family: var(--wv-font-mono); font-size: 12px; color: var(--wv-purple); font-weight: 700; }
.blog-journey__body h3 { margin: 2px 0 6px; font-size: 17px; }
.blog-journey__body p { margin: 0; color: var(--wv-text-soft); font-size: 14.5px; line-height: 1.55; }

/* ---- UI-Mockups (nicht bedienbar) ---- */
.blog-uimock { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 0; pointer-events: none; }

/* How-to-Liste (nummerierte Schritte) */
.blog-howto { max-width: 640px; margin: 22px auto 0; list-style: none; counter-reset: howto; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.blog-howto li {
    counter-increment: howto; position: relative; padding: 12px 14px 12px 52px;
    background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius);
    color: var(--wv-text-soft); font-size: 14.5px; line-height: 1.5;
}
.blog-howto li::before {
    content: counter(howto); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%; background: var(--wv-gradient); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.blog-howto li strong { color: var(--wv-text); }

/* "Wo tippst du"-Mockup (Vergleichs-Picker) */
.blog-tapdemo {
    max-width: 560px; margin: 24px auto 0; border: 1px solid var(--wv-border); border-radius: 16px;
    background: var(--wv-surface); box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; pointer-events: none;
}
.blog-tapdemo__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--wv-border); background: var(--wv-bg-alt); font-weight: 700; font-size: 14px; }
.blog-tapdemo__bar .icon { color: var(--wv-coral-deep); }
.blog-tapdemo__body { padding: 16px; }
.blog-tapdemo__body .cmp-picker { margin: 0; }
.blog-tapdemo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.blog-tap-target { box-shadow: 0 0 0 3px rgba(81,30,234,0.30), var(--wv-shadow-brand); }
.blog-tap-annot { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--wv-purple); }

/* Beispiel-Vergleich (echtes cmp-Layout wiederverwendet) */
.blog-cmp-demo { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.blog-cmp-result { display: flex; flex-direction: column; gap: 16px; }
.blog-cmp-result .cmp-clusters { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================================
   XP live-update + Auszeichnungs-Feier (gamify.js)
   ========================================================================== */
/* Sanfte Animation des XP-Balkens beim Live-Update */
.xp-meter__fill { transition: width 700ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes wvXpBump { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); } }
.xp-meter--bumped { animation: wvXpBump 620ms ease; }
.xp-meter--bumped .xp-meter__icon .icon { animation: wvXpBump 620ms ease; }

/* ---- Vollbild-Feier ---- */
.wv-celebrate {
    position: fixed; inset: 0; z-index: 300;
    display: grid; place-items: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 260ms ease;
}
.wv-celebrate--in { opacity: 1; visibility: visible; }
.wv-celebrate__backdrop {
    position: absolute; inset: 0; cursor: pointer;
    background: rgba(16, 10, 40, 0.62); backdrop-filter: blur(6px);
}
.wv-celebrate__card {
    position: relative; z-index: 2; width: 100%; max-width: 420px; text-align: center;
    background: var(--wv-surface); border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg); padding: 34px 26px 28px;
    box-shadow: var(--wv-shadow-lg); overflow: hidden;
    transform: translateY(18px) scale(0.94); opacity: 0;
    transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
}
.wv-celebrate--in .wv-celebrate__card { transform: translateY(0) scale(1); opacity: 1; }
.wv-celebrate__glow {
    position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
    width: 320px; height: 220px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(81,30,234,0.20), transparent 70%);
}
.wv-celebrate__badge {
    position: relative; width: 104px; height: 104px; margin: 0 auto 18px;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--wv-gradient);
    box-shadow: var(--wv-shadow-brand);
    animation: wvBadgePop 620ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes wvBadgePop { 0% { transform: scale(0.2) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.wv-celebrate__emoji { font-size: 52px; line-height: 1; -webkit-print-color-adjust: exact; }
.wv-celebrate__ring {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 3px solid rgba(81,30,234,0.35);
    animation: wvRing 1.6s ease-out infinite;
}
@keyframes wvRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
.wv-celebrate__eyebrow {
    font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--wv-purple); margin-bottom: 8px;
}
.wv-celebrate__title { font-size: clamp(20px, 4.5vw, 26px); line-height: 1.25; margin: 0 0 6px; color: var(--wv-text); }
.wv-celebrate__desc { font-size: 14px; line-height: 1.5; color: var(--wv-text-soft); margin: 0 0 14px; }
.wv-celebrate__xp {
    display: inline-block; margin: 6px 0 4px;
    font-family: 'Courier New', monospace; font-weight: 800; font-size: 22px;
    color: #fff; background: var(--wv-gradient); padding: 6px 18px; border-radius: var(--wv-radius-pill);
    box-shadow: var(--wv-shadow-brand);
}
.wv-celebrate__encourage { font-size: 15px; font-weight: 600; color: var(--wv-text-soft); margin: 14px 0 20px; }
.wv-celebrate__btn { width: 100%; }

/* Konfetti */
.wv-celebrate__confetti { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.wv-celebrate__conf {
    position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px;
    background: var(--wv-purple); opacity: 0.9;
    animation-name: wvConfFall; animation-timing-function: cubic-bezier(0.3, 0.6, 0.5, 1); animation-iteration-count: infinite;
}
.wv-celebrate__conf:nth-child(4n)   { background: var(--wv-purple-bright); }
.wv-celebrate__conf:nth-child(4n+1) { background: #FFC94D; }
.wv-celebrate__conf:nth-child(4n+2) { background: var(--wv-success); }
.wv-celebrate__conf:nth-child(4n+3) { background: #FF6B4A; }
@keyframes wvConfFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(96vh) rotate(540deg); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
    .wv-celebrate__conf, .wv-celebrate__ring, .wv-celebrate__badge { animation: none !important; }
    .wv-celebrate__card { transition: opacity 200ms ease; transform: none; }
}

/* Level-Aufstieg-Variante der Feier: Level-Icon (weiß) + Level-Name-Chip */
.wv-celebrate__levelicon { display: inline-flex; align-items: center; justify-content: center; }
.wv-celebrate__levelicon .icon { color: #fff; }
.wv-celebrate__xp--name { font-family: inherit; letter-spacing: 0; font-size: 18px; text-transform: none; }

/* =============================================================================
   Blog-Artikel „Datenbank" (dbk-): Quellen, interaktive Verteilung, Hierarchie
   ============================================================================= */
.dbk-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dbk-field { background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: 18px; }
.dbk-field__tile { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(81, 30, 234, 0.10); color: var(--wv-purple); margin-bottom: 10px; }
.dbk-field strong { display: block; margin-bottom: 4px; color: var(--wv-text); }
.dbk-field p { margin: 0; font-size: 14px; color: var(--wv-text-soft); line-height: 1.55; }

.dbk-sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dbk-src { background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dbk-src__head { display: flex; align-items: center; gap: 12px; }
.dbk-src__badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--wv-gradient); color: #fff; --wv-icon: #fff; flex-shrink: 0; }
.dbk-src__title { margin: 0; font-size: 17px; }
.dbk-src__org { font-size: 12.5px; color: var(--wv-text-muted); }
.dbk-src__num { font-size: 26px; font-weight: 800; color: var(--wv-purple); letter-spacing: -0.02em; }
.dbk-src__num small { font-size: 13px; font-weight: 600; color: var(--wv-text-muted); margin-left: 6px; letter-spacing: 0; }
.dbk-src__p { margin: 0; font-size: 14px; color: var(--wv-text-soft); line-height: 1.6; }

.dbk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dbk-tab { border: 1px solid var(--wv-border); background: var(--wv-surface); color: var(--wv-text-soft); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--wv-trans); }
.dbk-tab:hover { border-color: var(--wv-purple); color: var(--wv-purple); }
.dbk-tab.is-active { background: var(--wv-purple); border-color: var(--wv-purple); color: #fff; }
.dbk-panel { display: none; }
.dbk-panel.is-active { display: block; }
.dbk-table { width: 100%; border-collapse: collapse; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); overflow: hidden; }
.dbk-table thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wv-text-muted); padding: 12px 14px; border-bottom: 1px solid var(--wv-border); }
.dbk-table tbody th { text-align: left; font-weight: 600; font-size: 14px; color: var(--wv-text); padding: 11px 14px; }
.dbk-table tbody td { padding: 11px 14px; font-size: 14px; }
.dbk-table tbody tr + tr th, .dbk-table tbody tr + tr td { border-top: 1px solid var(--wv-border); }
.dbk-table__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--wv-text); font-weight: 600; }
.dbk-table__pct { color: var(--wv-text-muted); font-weight: 500; }
.dbk-table__barcol { width: 42%; }
.dbk-bar { display: block; height: 10px; border-radius: 999px; background: var(--wv-surface-soft); overflow: hidden; }
.dbk-bar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--wv-gradient); }
.dbk-note { margin-top: 14px; font-size: 13.5px; }

.dbk-trees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dbk-tree { background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: 20px; }
.dbk-tree__label { display: inline-block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wv-text-muted); margin-bottom: 12px; }
.dbk-tree__parent { display: inline-flex; align-items: center; gap: 8px; background: var(--wv-purple); color: #fff; --wv-icon: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.dbk-tree__branch { width: 2px; height: 18px; background: var(--wv-border); margin: 6px 0 6px 22px; }
.dbk-tree__kids { background: var(--wv-surface-soft); border: 1px dashed var(--wv-border); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--wv-text-soft); line-height: 1.7; }

.dbk-phases { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; }
.dbk-phase { display: flex; align-items: center; gap: 12px; background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: 12px 16px; }
.dbk-phase__chip { background: rgba(81, 30, 234, 0.10); color: var(--wv-purple); font-weight: 700; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.dbk-phase__arrow { color: var(--wv-text-muted); }
.dbk-phase__gets { font-size: 14px; color: var(--wv-text-soft); }

.dbk-scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dbk-scale { background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: var(--wv-radius-lg); padding: 22px; text-align: center; }
.dbk-scale__v { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; background: var(--wv-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.dbk-scale p { margin: 0; font-size: 14px; color: var(--wv-text-soft); line-height: 1.6; }

@media (max-width: 860px) {
    .dbk-fields, .dbk-scales { grid-template-columns: repeat(2, 1fr); }
    .dbk-sources, .dbk-trees { grid-template-columns: 1fr; }
    .dbk-table__barcol { width: 30%; }
}
@media (max-width: 560px) {
    .dbk-fields, .dbk-scales { grid-template-columns: 1fr; }
    .dbk-table thead .dbk-table__barcol, .dbk-table tbody .dbk-table__barcol { display: none; }
    .dbk-table tbody th, .dbk-table tbody td { padding: 10px 12px; }
    .dbk-phase { flex-wrap: wrap; }
}

/* =============================================================================
   Live-Demo (Landingpage + Demo-Modus in der App)
   ============================================================================= */
/* Schwebende Demo-Pill in der App */
/* bottom mit Sicherheitsbereich - siehe .wv-cookie: viewport-fit=cover laesst
   die Seite bis unter den Home-Indikator zeichnen. */
.demo-banner { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1200;
    display: flex; align-items: center; gap: 10px; max-width: min(94vw, 720px);
    background: var(--wv-purple); color: #fff; padding: 9px 14px; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(51, 24, 204, 0.35); font-size: 13.5px; }
.demo-banner__label { font-weight: 800; white-space: nowrap; }
.demo-banner__text { opacity: 0.92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-banner__cta { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.demo-banner__cta:hover { opacity: 0.85; }
@media (max-width: 720px) { .demo-banner__text { display: none; } }

/* CTA-Popup im Demo-Modus */
.demo-pop { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 18px; }
.demo-pop__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 30, 0.55); backdrop-filter: blur(3px); }
.demo-pop__card { position: relative; background: var(--wv-gradient); color: #fff; border-radius: 18px;
    max-width: 440px; width: 100%; padding: 30px 26px; text-align: center;
    box-shadow: 0 24px 60px rgba(20, 10, 70, 0.45); opacity: 0; transform: translateY(14px) scale(0.97);
    transition: opacity .25s ease, transform .25s ease; }
.demo-pop.is-open .demo-pop__card { opacity: 1; transform: none; }
.demo-pop__icon { font-size: 34px; margin-bottom: 8px; }
.demo-pop__title { margin: 0 0 8px; font-size: 22px; color: #fff; }
.demo-pop__text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.92); }
.demo-pop__actions { display: flex; flex-direction: column; gap: 10px; }
.demo-pop__stay { color: #fff; border-color: rgba(255,255,255,0.45); }
.demo-pop__stay:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
@media (prefers-reduced-motion: reduce) { .demo-pop__card { transition: none; } }

/* Landing: Demo-Sektion */
.demo-stage { max-width: 1080px; margin: 0 auto; }
.demo-frame { position: relative; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--wv-border); background: var(--wv-surface);
    box-shadow: 0 24px 70px rgba(30, 15, 90, 0.16); }
.demo-frame__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: var(--wv-surface-soft); border-bottom: 1px solid var(--wv-border); }
.demo-frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wv-border); }
.demo-frame__dot:nth-child(1) { background: #f87171; } .demo-frame__dot:nth-child(2) { background: #fbbf24; } .demo-frame__dot:nth-child(3) { background: #34d399; }
.demo-frame__url { margin-left: 8px; font-family: var(--wv-mono, monospace); font-size: 12px; color: var(--wv-text-muted);
    background: var(--wv-surface); border: 1px solid var(--wv-border); border-radius: 8px; padding: 3px 10px; }
.demo-frame__body { position: relative; height: clamp(480px, 72vh, 720px); }
.demo-frame__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Poster (vor dem Start) */
.demo-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; text-align: center; padding: 24px; background:
    radial-gradient(120% 90% at 50% 0%, rgba(107, 70, 255, 0.16), transparent 60%), var(--wv-surface); }
.demo-poster__play { width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--wv-gradient); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 40px rgba(51, 24, 204, 0.35); transition: transform .2s ease; }
.demo-poster__play:hover { transform: scale(1.06); }
.demo-poster__play svg { width: 30px; height: 30px; margin-left: 4px; }
.demo-poster__t { font-size: 20px; font-weight: 800; color: var(--wv-text); }
.demo-poster__p { font-size: 13.5px; color: var(--wv-text-muted); }
.demo-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 12px; font-size: 13px; color: var(--wv-text-muted); }
.demo-hint a { color: var(--wv-purple); font-weight: 600; }

/* Landing: Zwischen-CTA-Reihe */
.inline-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 8px 0; }
.inline-cta__t { font-size: 17px; font-weight: 700; color: var(--wv-text); }

/* =============================================================================
   Pipeline-Transparenz ("So ist das entstanden") - gemeinsam von Empfehlungen
   (.match-meta) UND Profil (.wai-meta) genutzt. Global in wegvio.css, damit
   beide Views (die je nur ihre eigene Modul-CSS laden) dasselbe Design haben.
   ============================================================================= */
.match-meta details summary,
.wai-meta details summary {
    cursor: pointer; font-weight: 600; color: var(--wv-text-soft);
    display: flex; align-items: center; gap: 6px;
    list-style: none;
}
.match-meta details summary::-webkit-details-marker,
.wai-meta details summary::-webkit-details-marker { display: none; }
.match-meta details[open] summary,
.wai-meta details[open] summary { margin-bottom: 12px; }

.meta-overview {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 4px;
}
.meta-overview__item { background: var(--wv-surface-soft); padding: 10px 14px; border-radius: var(--wv-radius); }
.meta-overview__label {
    display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--wv-text-muted); font-weight: 700; margin-bottom: 4px;
}
.meta-overview__value { font-size: 14px; font-weight: 600; color: var(--wv-text); }
.meta-overview__value.is-good { color: var(--wv-success); }
.meta-overview__value.is-warn { color: var(--wv-warning); }

.meta-pipeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.meta-pipeline__step {
    display: flex; gap: 12px; padding: 10px 12px;
    background: var(--wv-surface-soft); border-radius: var(--wv-radius);
    border-left: 3px solid var(--wv-success);
}
.meta-pipeline__step.is-skipped { border-left-color: var(--wv-border); opacity: 0.6; }
.meta-pipeline__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wv-success); margin-top: 6px; flex-shrink: 0; }
.meta-pipeline__step.is-skipped .meta-pipeline__dot { background: var(--wv-border); }
.meta-pipeline__body { flex: 1; min-width: 0; }
.meta-pipeline__title { font-weight: 700; font-size: 13px; color: var(--wv-text); }
.meta-pipeline__desc  { font-size: 12px; color: var(--wv-text-muted); }
.meta-pipeline__meta { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; font-size: 11px; color: var(--wv-text-soft); }

.meta-checker-notes {
    margin-top: 14px; padding: 12px 14px;
    background: var(--wv-gradient-soft); border-radius: var(--wv-radius);
    font-size: 13px; line-height: 1.5; color: var(--wv-coral-deep);
}
.meta-run-uuid { margin-top: 14px; font-size: 11px; color: var(--wv-text-muted); font-family: monospace; word-break: break-all; }

/* ============================================================================
   Chat-Widget (global) - geteilt von Profil-Chat (wegvio_ai) UND
   Empfehlungs-Chat (matching). Self-contained inkl. eigener Keyframes, damit es
   auf jeder Seite ohne Modul-CSS funktioniert. IDs pro Seite verschieden
   (waiChat* bzw. matchChat*), Klassen identisch (.wai-chat*).
   ========================================================================== */
.wai-chat {
    position: fixed;
    /* bottom mit Sicherheitsbereich - siehe .wv-cookie. Der Chat-Knopf lag auf
       dem iPhone mit rund 10 px im nicht bedienbaren Streifen. */
    right: 24px; bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 150;
    font-family: var(--wv-font-sans);
}
.wai-chat__fab {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--wv-gradient);
    color: #fff;
    border: 0;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--wv-shadow-brand);
    display: grid; place-items: center;
    position: relative;
    transition: transform var(--wv-trans);
}
.wai-chat__fab:hover { transform: scale(1.07); }
.wai-chat__fab-dot {
    position: absolute; top: 8px; right: 8px;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--wv-coral);
    animation: pulseFab 2s infinite;
}
@keyframes pulseFab {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(0.85); }
}
.wai-chat__panel {
    position: absolute;
    right: 0; bottom: 76px;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, 70vh);
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius-lg);
    box-shadow: var(--wv-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlide 250ms cubic-bezier(0.18, 0.89, 0.32, 1.18);
}
.wai-chat__panel[hidden] { display: none; }
@keyframes chatSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}
.wai-chat__header {
    padding: 14px 16px;
    background: var(--wv-gradient);
    color: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.wai-chat__close {
    background: rgba(255,255,255,0.22);
    border: 0;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}
.wai-chat__stream {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--wv-bg);
}
.wai-chat__msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: msgIn 220ms ease-out;
    white-space: normal;
    word-break: break-word;
}
.wai-chat__msg--assistant {
    align-self: flex-start;
    background: var(--wv-surface-soft);
    color: var(--wv-text);
    border-bottom-left-radius: 4px;
}
.wai-chat__msg--user {
    align-self: flex-end;
    background: var(--wv-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
}
/* Stichpunkt-Listen im Chat lesbar (der Chat darf jetzt Bullets schreiben) */
.wai-chat__msg ul, .wai-chat__msg ol { margin: 6px 0 2px; padding-left: 20px; }
.wai-chat__msg li { margin: 2px 0; }
.wai-chat__msg .wai-chat__cites { margin-top: 8px; font-size: 12px; }
.wai-chat__msg .wai-chat__cites a { color: var(--wv-purple); word-break: break-all; }
.wai-chat__form {
    display: flex; gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--wv-border);
    background: var(--wv-bg-alt);
}
.wai-chat__form input { flex: 1; }
.wai-chat__typing {
    align-self: flex-start;
    padding: 8px 14px;
    background: var(--wv-surface-soft);
    border-radius: 16px;
    display: inline-flex; gap: 4px;
}
.wai-chat__typing span {
    width: 6px; height: 6px;
    background: var(--wv-text-muted);
    border-radius: 50%;
    animation: typing 1.2s infinite;
}
.wai-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.wai-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-3px); }
}
@media (max-width: 720px) {
    .wai-chat { right: 12px; bottom: 12px; }
    .wai-chat__panel { bottom: 70px; }
}
