/* ============================================================
   LUMEXI – COMPONENTS
   Nav, Buttons, AI-Bubble, Phone-/Editor-/Chat-Mockups, Steps
   ============================================================ */

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding-block: 1rem;
    transition: background 0.35s, border-color 0.35s, padding 0.35s;
    border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
    background: rgba(6, 7, 11, 0.78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--color-border);
    padding-block: 0.7rem;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.nav-logo .logo-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 157, 255, 0.2), rgba(110, 231, 244, 0.12));
    border: 1px solid rgba(139, 157, 255, 0.35);
    color: var(--color-accent);
    box-shadow: 0 0 18px -4px rgba(139, 157, 255, 0.5);
}
.nav-logo .logo-mark svg { width: 15px; height: 15px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-links a {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-surface-hover); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 600;
    color: #0b0d16;
    background: linear-gradient(120deg, #aebaff, #8b9dff 55%, #7ecfe8);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
    box-shadow: 0 0 0 1px rgba(139, 157, 255, 0.4), 0 8px 24px -8px rgba(139, 157, 255, 0.55);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(139, 157, 255, 0.55), 0 12px 30px -8px rgba(139, 157, 255, 0.7); }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    cursor: pointer;
}
.nav-burger span {
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(6, 7, 11, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--color-text); }
.mobile-menu .nav-cta { margin-top: 1rem; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
    will-change: transform;
}
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
    color: #0b0d16;
    background: linear-gradient(120deg, #b3bdff, #8b9dff 55%, #7ecfe8);
    box-shadow: 0 0 0 1px rgba(139, 157, 255, 0.4), 0 12px 34px -10px rgba(139, 157, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(139, 157, 255, 0.55), 0 18px 44px -10px rgba(139, 157, 255, 0.75); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    color: var(--color-text);
    background: var(--color-surface);
    border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-surface-hover); border-color: var(--color-border-strong); transform: translateY(-2px); }

/* ---------- AI-Bubble (Markenelement) ---------- */
.ai-bubble {
    --bubble-size: clamp(140px, 22vw, 190px);
    position: relative;
    width: var(--bubble-size);
    height: var(--bubble-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), transparent 42%),
        radial-gradient(circle at 68% 75%, rgba(110, 231, 244, 0.18), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 157, 255, 0.16), rgba(11, 13, 20, 0.6) 72%);
    border: 1px solid rgba(139, 157, 255, 0.4);
    box-shadow:
        0 0 44px -6px rgba(139, 157, 255, 0.45),
        inset 0 0 30px -8px rgba(139, 157, 255, 0.3);
    isolation: isolate;
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s;
}
.ai-bubble::before {
    /* langsam rotierender Konik-Ring */
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(139, 157, 255, 0.65) 70deg, transparent 140deg, transparent 200deg, rgba(110, 231, 244, 0.4) 260deg, transparent 330deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
    animation: bubbleSpin 9s linear infinite;
    z-index: -1;
}
.ai-bubble::after {
    /* weicher Glow-Außenhof */
    content: "";
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 157, 255, 0.16), transparent 68%);
    z-index: -2;
    animation: bubbleBreath 5.5s ease-in-out infinite;
}

.ai-bubble .bubble-core {
    width: 58%;
    height: 58%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(139, 157, 255, 0.3), rgba(110, 231, 244, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
}
.ai-bubble .bubble-core::before {
    /* Glanzkante oben */
    content: "";
    position: absolute;
    top: 0; left: 12%;
    width: 76%; height: 42%;
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}
.ai-bubble .bubble-core svg { width: 38%; height: 38%; color: #eef1ff; position: relative; }

/* Wellen (Listening/Speaking) */
.ai-bubble .bubble-waves {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.ai-bubble .bubble-waves span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(139, 157, 255, 0.5);
    opacity: 0;
    animation: bubbleWave 2.6s ease-out infinite;
}
.ai-bubble .bubble-waves span:nth-child(2) { animation-delay: 0.85s; }
.ai-bubble .bubble-waves span:nth-child(3) { animation-delay: 1.7s; }

/* Thinking-Partikel */
.ai-bubble .bubble-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.ai-bubble .bubble-particles span {
    position: absolute;
    top: 50%; left: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-accent-2);
    box-shadow: 0 0 8px 1px rgba(110, 231, 244, 0.8);
    opacity: 0;
    transform: rotate(var(--p-angle)) translateY(calc(var(--bubble-size) * 0.34)) scale(0.4);
}
.ai-bubble.is-thinking .bubble-particles span {
    animation: bubbleOrbit 1.9s ease-in-out infinite;
    animation-delay: var(--p-delay);
}

/* Zustände */
.ai-bubble.is-listening .bubble-waves span,
.ai-bubble.is-speaking .bubble-waves span { opacity: 1; }
.ai-bubble.is-speaking .bubble-waves span { animation-duration: 1.6s; border-color: rgba(110, 231, 244, 0.55); }
.ai-bubble.is-thinking { box-shadow: 0 0 56px -4px rgba(139, 157, 255, 0.65), inset 0 0 30px -8px rgba(139, 157, 255, 0.35); }
.ai-bubble.is-thinking .bubble-core svg { animation: bubblePulseCore 1.2s ease-in-out infinite; }
.ai-bubble.is-idle .bubble-core svg { animation: bubblePulseCore 4.2s ease-in-out infinite; }

/* Bubble-Status-Label */
.ai-bubble-status {
    margin-top: 1.25rem;
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ai-bubble-status .status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(139, 157, 255, 0.9);
    animation: statusBlink 2.4s ease-in-out infinite;
}

/* Bubble-Demo (Tutor-Sektion): klickbar, reagiert auf Interaktion */
.bubble-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
    border-radius: var(--radius-large);
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(139, 157, 255, 0.09), transparent),
        var(--color-surface);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}
.bubble-stage .stage-hint {
    margin-top: 0.9rem;
    font-size: var(--fs-small);
    color: var(--color-text-faint);
}
.ai-bubble.is-interactive { cursor: pointer; }
.ai-bubble.is-interactive:hover { transform: scale(1.04); box-shadow: 0 0 64px -4px rgba(139, 157, 255, 0.6), inset 0 0 30px -8px rgba(139, 157, 255, 0.35); }

/* ---------- Phone-Mockup (App-Screens) ---------- */
.phone {
    width: min(300px, 82vw);
    aspect-ratio: 9 / 19;
    border-radius: 38px;
    background: #07080d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 5px #10121c,
        0 0 0 6px rgba(255, 255, 255, 0.07),
        0 40px 90px -30px rgba(0, 0, 0, 0.85),
        0 0 70px -18px rgba(139, 157, 255, 0.28);
    padding: 12px;
    position: relative;
    flex-shrink: 0;
}
.phone::before {
    content: "";
    position: absolute;
    top: 22px; left: 50%;
    transform: translateX(-50%);
    width: 78px; height: 20px;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 5;
}
.phone-screen {
    width: 100%; height: 100%;
    border-radius: 27px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0c14, #06070b);
    display: flex;
    flex-direction: column;
    font-size: 10px;
    position: relative;
}
.phone-screen::before {
    content: "";
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 62px; height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 6;
}

/* App-UI-Elemente im Screen */
.app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.4em 1.4em 1em;
    font-weight: 700;
    font-size: 1.35em;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.app-bar .streak {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border: 1px solid rgba(139, 157, 255, 0.3);
    padding: 0.35em 0.8em;
    border-radius: 99px;
}

.app-card {
    margin: 0.6em 1.2em;
    padding: 1.3em;
    border-radius: 1.6em;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.app-card .card-title { font-weight: 700; font-size: 1.05em; color: var(--color-text); }
.app-card .card-sub { color: var(--color-text-faint); font-size: 0.85em; margin-top: 0.2em; }

.app-progress {
    margin: 0.8em 1.2em 0;
    padding: 1.3em;
    border-radius: 1.6em;
    background: linear-gradient(120deg, rgba(139, 157, 255, 0.13), rgba(110, 231, 244, 0.07));
    border: 1px solid rgba(139, 157, 255, 0.28);
}
.app-progress .p-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.7em;
}
.app-progress .p-label { color: var(--color-text-muted); font-size: 0.85em; }
.app-progress .p-value { color: var(--color-text); font-weight: 800; font-size: 1.15em; }
.app-progress .p-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.app-progress .p-bar i {
    display: block;
    height: 100%;
    width: var(--pct, 64%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    box-shadow: 0 0 10px rgba(139, 157, 255, 0.6);
}

.app-lesson-row {
    display: flex;
    align-items: center;
    gap: 0.9em;
    padding: 0.95em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.app-lesson-row:last-child { border-bottom: 0; }
.app-lesson-row .l-icon {
    width: 2.8em; height: 2.8em;
    border-radius: 0.9em;
    display: grid;
    place-items: center;
    font-family: var(--font-code);
    font-size: 0.9em;
    font-weight: 700;
    background: rgba(139, 157, 255, 0.12);
    border: 1px solid rgba(139, 157, 255, 0.25);
    color: #b9c2ff;
    flex-shrink: 0;
}
.app-lesson-row .l-icon.alt { background: rgba(110, 231, 244, 0.09); border-color: rgba(110, 231, 244, 0.25); color: #9fe4ee; }
.app-lesson-row .l-meta { flex: 1; min-width: 0; }
.app-lesson-row .l-name { font-weight: 600; color: var(--color-text); font-size: 1em; }
.app-lesson-row .l-sub { color: var(--color-text-faint); font-size: 0.8em; }
.app-lesson-row .l-check {
    width: 1.7em; height: 1.7em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85em;
    background: rgba(139, 157, 255, 0.15);
    color: var(--color-accent);
    flex-shrink: 0;
}
.app-lesson-row .l-check.done { background: rgba(126, 216, 158, 0.15); color: #7ed89e; }

.app-tabbar {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    padding: 1.1em 1em 1.6em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-faint);
}
.app-tabbar span { display: grid; place-items: center; gap: 0.3em; font-size: 0.72em; }
.app-tabbar span.active { color: var(--color-accent); }
.app-tabbar svg { width: 1.8em; height: 1.8em; }

/* Mini-AI-Button im Phone-Home */
.app-fab {
    position: absolute;
    right: 1.4em;
    bottom: 5.4em;
    width: 4.4em; height: 4.4em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 157, 255, 0.85), rgba(110, 231, 244, 0.7));
    box-shadow: 0 6px 20px -4px rgba(139, 157, 255, 0.7);
    z-index: 4;
    animation: fabPulse 3.2s ease-in-out infinite;
}
.app-fab svg { width: 46%; height: 46%; color: #0b0d16; }

/* ---------- Editor-Mockup ---------- */
.editor {
    border-radius: var(--radius-large);
    background: var(--code-bg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-large), 0 0 80px -30px rgba(139, 157, 255, 0.3);
    overflow: hidden;
    font-family: var(--font-code);
    font-size: clamp(0.72rem, 1.4vw, 0.85rem);
    line-height: 1.75;
}
.editor-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-faint);
    font-size: 0.78rem;
}
.editor-bar .dots { display: flex; gap: 6px; }
.editor-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.editor-bar .file {
    margin-left: 0.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 7px;
    background: rgba(139, 157, 255, 0.1);
    border: 1px solid rgba(139, 157, 255, 0.25);
    color: #b9c2ff;
}
.editor-bar .editor-run {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7ed89e;
    background: rgba(126, 216, 158, 0.1);
    border: 1px solid rgba(126, 216, 158, 0.3);
    padding: 0.28rem 0.75rem;
    border-radius: 99px;
}
.editor-body {
    padding: 1.2rem 1.3rem;
    overflow-x: auto;
    -webkit-user-select: text;
    user-select: text;
}
.editor-body pre { margin: 0; font-family: inherit; }
.editor-body .ln { display: block; white-space: pre; }
.editor-body .n { display: inline-block; width: 2ch; margin-right: 1.4em; color: var(--code-comment); text-align: right; user-select: none; -webkit-user-select: none; }
.k { color: var(--code-key); }
.f { color: var(--code-fn); }
.s { color: var(--code-string); }
.c { color: var(--code-comment); font-style: italic; }
.nu { color: var(--code-num); }
.pt { color: var(--code-punct); }
.v { color: #d6d9e8; }

.editor-output {
    border-top: 1px solid var(--color-border);
    padding: 0.9rem 1.3rem 1.1rem;
    background: rgba(255, 255, 255, 0.015);
}
.editor-output .out-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-bottom: 0.4rem;
}
.editor-output .out-line {
    font-size: 0.8rem;
    color: #7ed89e;
    white-space: pre-wrap;
}
.editor-output .out-line.err { color: #e89a9a; }

/* Cursor im Editor */
.type-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--color-accent-2);
    vertical-align: text-bottom;
    box-shadow: 0 0 6px rgba(110, 231, 244, 0.8);
    animation: caretBlink 1.1s steps(1) infinite;
}

/* ---------- Chat-Mockup (KI-Tutor) ---------- */
.chat {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-large);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-large);
    font-size: clamp(0.82rem, 1.5vw, 0.92rem);
    position: relative;
    overflow: hidden;
}
.chat-msg {
    max-width: 86%;
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    line-height: 1.55;
    border: 1px solid var(--color-border);
}
.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(120deg, rgba(139, 157, 255, 0.24), rgba(110, 231, 244, 0.16));
    border-color: rgba(139, 157, 255, 0.35);
    border-bottom-right-radius: 6px;
}
.chat-msg.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border-bottom-left-radius: 6px;
    color: var(--color-text-muted);
}
.chat-msg.ai strong { color: var(--color-text); font-weight: 600; }
.chat-msg.ai code {
    font-family: var(--font-code);
    font-size: 0.82em;
    background: rgba(139, 157, 255, 0.12);
    border-radius: 5px;
    padding: 0.08em 0.4em;
    color: #b9c2ff;
}
.chat-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 4px;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
}
.chat-typing i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: typingDot 1.3s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-typing i:nth-child(3) { animation-delay: 0.36s; }

/* Tutor-Flow: 4 Kontext-Schips über dem Chat */
.tutor-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.tutor-flow .flow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.tutor-flow .flow-chip .chip-n {
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: var(--color-accent);
}
.tutor-flow .flow-chip.is-active {
    color: var(--color-text);
    border-color: rgba(139, 157, 255, 0.45);
    background: rgba(139, 157, 255, 0.1);
    box-shadow: 0 0 18px -6px rgba(139, 157, 255, 0.5);
}

/* ---------- Feature-Listen ---------- */
.feature-list { display: grid; gap: 0.8rem; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.feature-list .f-check {
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(139, 157, 255, 0.14);
    border: 1px solid rgba(139, 157, 255, 0.35);
}
.feature-list .f-check svg { width: 10px; height: 10px; color: var(--color-accent); }

/* ---------- Steps (So funktioniert's) ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-gap);
    counter-reset: step;
}
.step {
    position: relative;
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out);
}
.step:hover { border-color: rgba(139, 157, 255, 0.35); background: var(--color-surface-hover); transform: translateY(-4px); }
.step .step-num {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--color-text-muted); font-size: 0.88rem; }
.step::after {
    content: "→";
    position: absolute;
    right: -0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-faint);
    font-size: 1rem;
    z-index: 1;
}
.step:last-child::after { display: none; }

/* ---------- Sprach-Karten ---------- */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-gap);
}
.lang-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.lang-card:hover { border-color: rgba(139, 157, 255, 0.35); transform: translateY(-3px); box-shadow: 0 14px 34px -16px rgba(139, 157, 255, 0.35); }
.lang-card .lang-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-family: var(--font-code);
    font-weight: 800;
    font-size: 1.05rem;
}
.lang-card.java .lang-icon { background: rgba(232, 165, 96, 0.12); border: 1px solid rgba(232, 165, 96, 0.35); color: #e8a560; }
.lang-card.python .lang-icon { background: rgba(110, 231, 244, 0.1); border: 1px solid rgba(110, 231, 244, 0.3); color: #6ee7f4; }
.lang-card .lang-meta h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.lang-card .lang-meta p { font-size: 0.84rem; color: var(--color-text-muted); }
.lang-card .lang-status {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    background: rgba(126, 216, 158, 0.1);
    border: 1px solid rgba(126, 216, 158, 0.3);
    color: #7ed89e;
    white-space: nowrap;
}
.lang-more {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-faint);
    font-size: 0.88rem;
    padding: 0.5rem;
}
.lang-more strong { color: var(--color-text-muted); font-weight: 600; }

/* ---------- Audience-Karten ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-gap);
}
.audience-card {
    padding: 1.7rem 1.5rem;
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.audience-card:hover { border-color: rgba(139, 157, 255, 0.3); transform: translateY(-3px); }
.audience-card .aud-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 1.1rem;
    background: var(--color-accent-soft);
    border: 1px solid rgba(139, 157, 255, 0.3);
    color: var(--color-accent);
}
.audience-card .aud-icon svg { width: 18px; height: 18px; }
.audience-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.audience-card p { font-size: 0.86rem; color: var(--color-text-muted); }

/* ---------- Exercise-Komponente ---------- */
.exercise {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    border-radius: var(--radius-large);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-large);
}
.exercise-question {
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.exercise-question .q-tag {
    align-self: flex-start;
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border: 1px solid rgba(139, 157, 255, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: 99px;
}
.exercise-question h3 { font-size: 1.25rem; line-height: 1.35; }
.exercise-answers { display: grid; gap: 0.7rem; margin-top: auto; }
.exercise-answer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
    text-align: left;
    width: 100%;
}
.exercise-answer:hover { border-color: var(--color-border-strong); background: rgba(255, 255, 255, 0.05); }
.exercise-answer .a-letter {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-faint);
}
.exercise-answer.is-correct {
    border-color: rgba(126, 216, 158, 0.55);
    background: rgba(126, 216, 158, 0.09);
    color: #a9e5bf;
    animation: answerPop 0.45s var(--ease-spring);
}
.exercise-answer.is-correct .a-letter { background: rgba(126, 216, 158, 0.2); color: #7ed89e; }
.exercise-answer.is-correct .a-badge { margin-left: auto; color: #7ed89e; }
.exercise-answer.is-wrong {
    border-color: rgba(232, 154, 154, 0.4);
    opacity: 0.6;
    animation: answerShake 0.4s;
}
.exercise-answer .a-badge { margin-left: auto; font-size: 0.9rem; opacity: 0; }
.exercise-answer.is-correct .a-badge, .exercise-answer.is-wrong .a-badge { opacity: 1; }
.exercise-feedback {
    min-height: 1.4em;
    font-size: 0.82rem;
    color: var(--color-text-faint);
    transition: color 0.3s;
}
.exercise-feedback.is-good { color: #7ed89e; }

/* ---------- Stats (Lernfortschritt) ---------- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-gap);
    margin-top: clamp(2.5rem, 6vw, 4rem);
}
.stat-tile {
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-align: left;
    transition: border-color 0.3s;
}
.stat-tile:hover { border-color: rgba(139, 157, 255, 0.3); }
.stat-tile .s-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border: 1px solid rgba(139, 157, 255, 0.3);
}
.stat-tile .s-icon svg { width: 16px; height: 16px; }
.stat-tile h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.stat-tile p { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Showcase (App-Galerie) ---------- */
.showcase-track {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.showcase-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.showcase-item .shot-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}
.showcase-item:nth-child(odd) { transform: translateY(26px); }
.showcase-item:nth-child(3) { transform: translateY(-14px); }

/* ---------- CTA ---------- */
.cta-section { padding-block: var(--spacing-section) calc(var(--spacing-section) * 0.8); }
.cta-box {
    position: relative;
    text-align: center;
    padding: clamp(3.5rem, 8vw, 6rem) var(--container-pad);
    border-radius: var(--radius-large);
    border: 1px solid rgba(139, 157, 255, 0.25);
    background:
        radial-gradient(ellipse 80% 90% at 50% 115%, rgba(139, 157, 255, 0.16), transparent 65%),
        radial-gradient(ellipse 50% 45% at 50% -10%, rgba(110, 231, 244, 0.08), transparent 60%),
        var(--color-surface-solid);
    overflow: hidden;
}
.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(139, 157, 255, 0.12), transparent 55%);
    pointer-events: none;
}
.cta-box h2 {
    font-size: var(--fs-h1);
    max-width: 720px;
    margin: 0 auto 1rem;
    position: relative;
}
.cta-box p {
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto 2.2rem;
    position: relative;
}
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2.5rem;
    font-size: var(--fs-small);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p { color: var(--color-text-muted); max-width: 300px; margin-top: 1rem; }
.footer-col h3 {
    font-family: var(--font-body);
    font-size: var(--fs-tiny);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--color-text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-faint);
    font-size: var(--fs-tiny);
}
