/* ============================================================
   Happy Trade GmbH – Kursplattform Stylesheet
   Design: angelehnt an www.happy-trade-gmbh.de
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── Backgrounds: klares Mitternachtsblau wie Premium-Trading-Sites ── */
    --bg-deep:      #04061a;
    --bg-main:      #070a20;
    --bg-card:      #0c1130;
    --bg-card-hover:#10163c;
    --bg-sidebar:   #060919;
    --bg-elevated:  #111840;
    --border:       #1a2550;
    --border-light: #253878;

    /* ── Gold – leuchtendes Amber wie auf happy-trade-gmbh.de ── */
    --gold:         #f5a623;
    --gold-light:   #ffc044;
    --gold-dark:    #c47e00;
    --gold-glow:    rgba(245,166,35,0.22);

    /* Status */
    --green:        #00d4a0;
    --green-dark:   #00a87c;
    --red:          #ff4d6a;

    /* Text */
    --text-primary:   #f0f4ff;
    --text-secondary: #7a9bc5;
    --text-muted:     #3d5580;
    --text-on-gold:   #04061a;

    /* Radius */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Shadows */
    --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(240,165,0,0.18);
    --shadow-up:   0 -4px 24px rgba(0,0,0,0.4);

    /* Font & Transition */
    --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius);
    font-family: var(--font); font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none; white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--gold); color: var(--text-on-gold);
    box-shadow: 0 2px 12px rgba(240,165,0,0.25);
}
.btn-primary:hover {
    background: var(--gold-light); color: var(--text-on-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(240,165,0,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.06); color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.btn-ghost {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

.btn-danger {
    background: rgba(255,77,106,0.12); color: var(--red);
    border: 1px solid rgba(255,77,106,0.25);
}
.btn-danger:hover { background: var(--red); color: white; }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { font-size: 18px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.alert-error   { background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.25); color: #ff8099; }
.alert-success { background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25); color: var(--green); }
.alert-info    { background: rgba(240,165,0,0.08); border: 1px solid rgba(240,165,0,0.2); color: var(--gold); }
.alert-icon { font-size: 16px; flex-shrink: 0; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-glow:hover { box-shadow: var(--shadow-glow); border-color: rgba(240,165,0,0.3); }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-gold  { background: rgba(240,165,0,0.12); color: var(--gold);  border: 1px solid rgba(240,165,0,0.25); }
.badge-green { background: rgba(0,200,150,0.1);  color: var(--green); border: 1px solid rgba(0,200,150,0.2); }
.badge-muted { background: var(--bg-elevated);   color: var(--text-secondary); border: 1px solid var(--border); }
.badge-new   { background: rgba(130,80,255,0.12); color: #a77aff; border: 1px solid rgba(130,80,255,0.25); }

/* ════════════════════════════════════════════════════════════
   AUTH PAGES (Login)
   ════════════════════════════════════════════════════════════ */
.auth-page {
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -5%, rgba(240,165,0,0.1) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 85% 85%, rgba(0,200,150,0.05) 0%, transparent 55%);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 24px;
}

.auth-container {
    width: 100%; max-width: 440px;
    display: flex; flex-direction: column; align-items: center; gap: 28px;
}

.auth-brand { text-align: center; }

/* HT-Logo – angelehnt an Hauptwebseite */
.brand-logo {
    width: 76px; height: 76px; border-radius: 22px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 8px 32px rgba(240,165,0,0.35);
}
.brand-logo .logo-text {
    font-size: 26px; font-weight: 900; color: var(--text-on-gold);
    letter-spacing: -1px; line-height: 1;
}
.brand-name    { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 5px; }
.brand-tagline { color: var(--text-secondary); font-size: 14px; }

.auth-card {
    width: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 38px;
    box-shadow: var(--shadow-card);
}
.auth-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-secondary); margin-bottom: 26px; font-size: 14px; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    letter-spacing: 0.06em; text-transform: uppercase;
}

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute; left: 13px; font-size: 14px;
    color: var(--text-muted); pointer-events: none; z-index: 1;
}
.input-wrapper input {
    width: 100%; padding: 13px 40px 13px 40px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-primary);
    font-family: var(--font); font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.input-wrapper input:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,165,0,0.12);
}
.input-wrapper input::placeholder { color: var(--text-muted); }

.toggle-pw {
    position: absolute; right: 10px; background: none; border: none;
    cursor: pointer; font-size: 14px; padding: 4px; color: var(--text-muted);
    transition: color var(--transition);
}
.toggle-pw:hover { color: var(--text-primary); }

.auth-form .btn { margin-top: 8px; padding: 15px; font-size: 16px; }

.auth-help { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-muted); }
.auth-footer { color: var(--text-muted); font-size: 12px; }

/* ════════════════════════════════════════════════════════════
   APP LAYOUT (Dashboard, Module, Admin)
   ════════════════════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    width: 265px; flex-shrink: 0;
    background: linear-gradient(180deg, #060919 0%, #08102a 60%, #050d22 100%);
    border-right: 1px solid rgba(26,37,80,0.8);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.4);
}

.sidebar-brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
/* HT-Logo in der Sidebar */
.sidebar-logo {
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(240,165,0,0.25);
}
.sidebar-logo .logo-text {
    font-size: 14px; font-weight: 900; color: var(--text-on-gold);
    letter-spacing: -0.5px;
}
.sidebar-brand-text { min-width: 0; }
.sidebar-brand-text .name {
    font-weight: 800; font-size: 14px; line-height: 1.2;
    letter-spacing: -0.02em;
}
.sidebar-brand-text .tagline { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.sidebar-nav { padding: 14px 0; flex: 1; }
.sidebar-section-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-muted);
    padding: 14px 20px 6px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; transition: all var(--transition);
    border-left: 3px solid transparent; cursor: pointer; text-decoration: none;
}
.nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(245,166,35,0.1); }
.nav-item .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item .label { flex: 1; }
.nav-item .nav-badge {
    font-size: 11px; background: var(--gold); color: var(--text-on-gold);
    padding: 1px 7px; border-radius: 10px; font-weight: 700;
}

.nav-module {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 20px; color: var(--text-muted);
    font-size: 13px; transition: all var(--transition);
    border-left: 3px solid transparent; cursor: pointer; text-decoration: none;
    line-height: 1.35;
}
.nav-module:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.nav-module.active { color: var(--gold-light); border-left-color: var(--gold); background: rgba(240,165,0,0.06); }
.nav-module .mod-num {
    font-size: 10px; font-weight: 700; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 4px;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.nav-module.active .mod-num { background: rgba(240,165,0,0.15); border-color: var(--gold); color: var(--gold); }
.nav-module.done .mod-num { background: rgba(0,200,150,0.1); border-color: var(--green); color: var(--green); }

.sidebar-user {
    padding: 16px 20px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: var(--text-on-gold); flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info .uname  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .uemail { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-btn { color: var(--text-muted); font-size: 18px; text-decoration: none; transition: color var(--transition); }
.logout-btn:hover { color: var(--red); }

/* Sidebar Toggle (Mobile) */
.sidebar-toggle {
    display: none;
    position: fixed; top: 16px; left: 16px; z-index: 200;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px;
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.page-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(26,37,80,0.8);
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    background: rgba(7,10,32,0.95); backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 10;
    box-shadow: 0 1px 0 rgba(245,166,35,0.08);
}
.page-title    { font-size: 1.5rem; margin-bottom: 4px; letter-spacing: -0.03em; }
.page-subtitle { color: var(--text-secondary); font-size: 14px; }
.page-actions  { display: flex; align-items: center; gap: 10px; }

.page-body { padding: 28px 32px; flex: 1; }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar-wrap {
    background: var(--bg-elevated); border-radius: 20px;
    height: 8px; overflow: hidden; margin: 8px 0;
}
.progress-bar-fill {
    height: 100%; border-radius: 20px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    transition: width 0.7s ease;
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════════════ */
.welcome-banner {
    background: linear-gradient(135deg, #121f50 0%, #0d1840 50%, #090f2e 100%);
    border: 1px solid #253878;
    border-radius: var(--radius-xl); padding: 30px 34px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(245,166,35,0.1);
}
.welcome-banner::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-banner::after {
    content: ''; position: absolute; bottom: -40px; left: 30%;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,160,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-text h2 { font-size: 1.5rem; margin-bottom: 6px; letter-spacing: -0.03em; }
.welcome-text p  { color: var(--text-secondary); font-size: 14px; }
.welcome-stats { display: flex; gap: 28px; }
.stat-item  { text-align: center; }
.stat-num   { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.section-title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title .icon { font-size: 18px; }

/* Module Grid */
.modules-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; margin-bottom: 36px;
}

.module-card {
    background: linear-gradient(145deg, #0e1535 0%, #0a1028 100%);
    border: 1px solid #1a2550;
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition); display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.module-card:hover {
    border-color: rgba(245,166,35,0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(245,166,35,0.12);
    color: inherit;
}
.module-card.locked { opacity: 0.45; cursor: default; pointer-events: none; }

.module-card-header {
    padding: 20px; display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    border-bottom: 1px solid var(--border);
}
.module-icon-wrap {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.module-icon-wrap.gold   { background: rgba(240,165,0,0.14); }
.module-icon-wrap.green  { background: rgba(0,200,150,0.1); }
.module-icon-wrap.blue   { background: rgba(80,130,255,0.1); }
.module-icon-wrap.purple { background: rgba(160,80,255,0.1); }

.module-card-meta { flex: 1; min-width: 0; }
.module-num   { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.module-title { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 3px 0 5px; letter-spacing: -0.02em; }

.module-card-body  { padding: 16px 20px; flex: 1; }
.module-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }

.module-meta-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-muted);
}
.meta-item { display: flex; align-items: center; gap: 4px; }

.module-card-footer {
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.complete-check {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,200,150,0.12); border: 2px solid var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--green);
}
.complete-check.empty { background: var(--bg-elevated); border-color: var(--border); }

/* Downloads Section */
.downloads-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.download-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text-primary);
    transition: all var(--transition);
}
.download-item:hover {
    border-color: var(--gold); background: var(--bg-card-hover);
    color: var(--text-primary); transform: translateX(4px);
}
.dl-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.dl-icon.pdf  { background: rgba(255,77,77,0.1);   }
.dl-icon.xlsx { background: rgba(0,200,150,0.1);   }
.dl-icon.pptx { background: rgba(240,165,0,0.1);   }
.dl-icon.xml  { background: rgba(80,130,255,0.1);  }
.dl-icon.txt  { background: rgba(160,80,255,0.1);  }
.dl-icon.mp4  { background: rgba(255,120,40,0.1);  }

.dl-info  { flex: 1; min-width: 0; }
.dl-name  { font-size: 13px; font-weight: 600; line-height: 1.3; }
.dl-size  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dl-arrow { color: var(--text-muted); font-size: 16px; transition: transform var(--transition); }
.download-item:hover .dl-arrow { transform: translateX(4px); color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   MODULE PAGE
   ════════════════════════════════════════════════════════════ */
.module-hero {
    background: linear-gradient(135deg, #101828 0%, #0c1420 100%);
    border: 1px solid var(--border-light); border-radius: var(--radius-xl);
    padding: 30px 34px; margin-bottom: 28px;
    display: flex; gap: 24px; align-items: flex-start;
}
.module-hero-icon {
    width: 68px; height: 68px; border-radius: 18px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; background: rgba(240,165,0,0.14);
    border: 1px solid rgba(240,165,0,0.2);
}
.module-hero-info { flex: 1; }
.module-hero-info h1  { font-size: 1.65rem; margin-bottom: 8px; letter-spacing: -0.03em; }
.module-hero-info p   { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }
.module-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta-item   { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }

/* Content Tabs */
.content-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.tab-btn {
    padding: 10px 18px; font-size: 14px; font-weight: 600;
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: all var(--transition); margin-bottom: -1px;
    display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* PDF Viewer */
.pdf-viewer-wrap {
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px;
}
.pdf-viewer-toolbar {
    padding: 10px 16px; background: var(--bg-elevated);
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.pdf-viewer-toolbar span { font-size: 13px; color: var(--text-secondary); }
.pdf-frame { width: 100%; height: 660px; border: none; display: block; }

/* Video Player */
.video-wrap {
    background: #000; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px;
    position: relative; padding-top: 56.25%;
}
.video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Module Navigation */
.module-nav-footer {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.module-nav-btn {
    display: flex; align-items: center; gap: 10px; padding: 16px 22px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary);
    transition: all var(--transition); flex: 1; min-width: 200px;
}
.module-nav-btn:hover { border-color: var(--gold); color: var(--text-primary); background: var(--bg-card-hover); }
.module-nav-btn.next { justify-content: flex-end; text-align: right; }
.module-nav-btn .nav-arrow { font-size: 20px; color: var(--gold); flex-shrink: 0; }
.module-nav-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.module-nav-title { font-weight: 600; font-size: 14px; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════════════════ */
.admin-stats-row {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.admin-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px;
    display: flex; align-items: center; gap: 16px;
    transition: all var(--transition);
}
.admin-stat-card:hover { border-color: var(--border-light); }
.admin-stat-icon  { font-size: 30px; }
.admin-stat-num   { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.admin-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left; padding: 11px 16px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--text-muted);
    border-bottom: 1px solid var(--border); background: var(--bg-elevated);
}
.data-table td {
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table tr:last-child td { border-bottom: none; }

.table-wrap {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto;
}

.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-inline .form-group { margin: 0; }
.form-group input, .form-group select {
    padding: 10px 14px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text-primary); font-family: var(--font); font-size: 14px;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,0.1);
}

/* ════════════════════════════════════════════════════════════
   LANDING PAGE – angelehnt an happy-trade-gmbh.de
   ════════════════════════════════════════════════════════════ */

/* Navigation – glassmorphism wie auf der Hauptseite */
.landing-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(6,8,15,0.92); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(28,37,64,0.8);
    padding: 0 44px; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}
/* Gold-Linie unten an der Nav (wie Hauptseite) */
.landing-header::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240,165,0,0.4), transparent);
}

.landing-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px; color: var(--text-on-gold);
    letter-spacing: -0.5px;
    box-shadow: 0 4px 12px rgba(240,165,0,0.3);
}
.landing-logo-text {
    font-weight: 800; font-size: 16px; color: var(--text-primary);
    letter-spacing: -0.03em;
}
.landing-logo:hover .landing-logo-text { color: var(--text-primary); }

.landing-nav { display: flex; align-items: center; gap: 6px; }
.landing-nav > a:not(.btn) {
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius);
    transition: all var(--transition);
}
.landing-nav > a:not(.btn):hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ── Hero – angelehnt an Hauptseite ─────────────────────── */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 100px 40px 80px;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -5%, rgba(240,165,0,0.12) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 85% 90%, rgba(0,200,150,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(80,100,255,0.04) 0%, transparent 55%);
    position: relative; overflow: hidden;
}
/* Subtile Gitterlinie im Hintergrund */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(28,37,64,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28,37,64,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; opacity: 0.5;
}
.hero-inner { max-width: 800px; position: relative; z-index: 1; }

/* Eyebrow – wie auf Hauptseite */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px; border-radius: 30px;
    background: rgba(240,165,0,0.08); border: 1px solid rgba(240,165,0,0.2);
    color: var(--gold); font-size: 13px; font-weight: 600;
    margin-bottom: 28px; letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 22px; line-height: 1.1;
    font-weight: 800; letter-spacing: -0.04em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero h1 span { color: var(--gold); }

.hero p {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 580px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll-Pfeil */
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    color: var(--text-muted); font-size: 24px;
    animation: bounce 2.2s infinite; cursor: pointer;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}

/* ── Stats-Leiste – wie Hauptseite ──────────────────────── */
.stats-bar {
    padding: 36px 40px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
    max-width: 960px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px; text-align: center;
}
.stat-block-num {
    font-size: 2.4rem; font-weight: 900; color: var(--gold);
    line-height: 1; letter-spacing: -0.04em;
}
.stat-block-label {
    font-size: 13px; color: var(--text-secondary); margin-top: 6px;
}

/* ── Features ────────────────────────────────────────────── */
.features-section { padding: 90px 40px; max-width: 1200px; margin: 0 auto; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(240,165,0,0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}
.feature-icon  { font-size: 34px; margin-bottom: 18px; }
.feature-title { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-text  { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }

/* ── Section Header / Eyebrow ────────────────────────────── */
/* Wie auf der Hauptseite: goldene Linie + Text + goldene Linie */
.section-eyebrow {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.section-eyebrow span {
    height: 2px; background: var(--gold); flex: 0 0 40px;
    border-radius: 2px;
}
.section-eyebrow p {
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--gold);
}

/* ── Module Preview ──────────────────────────────────────── */
.modules-section { padding: 70px 40px; background: var(--bg-deep); }
.modules-section-inner { max-width: 1200px; margin: 0 auto; }
.modules-preview-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px; margin-top: 36px;
}
.mod-preview-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    display: flex; gap: 14px; align-items: flex-start;
    transition: all var(--transition);
}
.mod-preview-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}
.mod-preview-num {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: rgba(240,165,0,0.1); border: 1px solid rgba(240,165,0,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--gold);
}
.mod-preview-info h4 { font-size: 14px; margin-bottom: 5px; letter-spacing: -0.01em; }
.mod-preview-info p  { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ── Zoom / CTA-Card ─────────────────────────────────────── */
.zoom-section { padding: 80px 40px; max-width: 900px; margin: 0 auto; }
.zoom-card {
    background: linear-gradient(135deg, #141e3a 0%, #0e1628 50%, #0a1020 100%);
    border: 1px solid var(--border-light); border-radius: var(--radius-xl);
    padding: 56px 48px; text-align: center;
    position: relative; overflow: hidden;
}
.zoom-card::before {
    content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,165,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.zoom-icon { font-size: 56px; margin-bottom: 22px; }
.zoom-card h2 { font-size: 2rem; margin-bottom: 14px; letter-spacing: -0.03em; }
.zoom-card p  { color: var(--text-secondary); max-width: 520px; margin: 0 auto 32px; line-height: 1.75; }

/* ── CTA-Section ─────────────────────────────────────────── */
.cta-section {
    padding: 110px 40px;
    background: var(--bg-deep);
    background-image: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(240,165,0,0.08) 0%, transparent 70%);
    text-align: center; position: relative;
}
.cta-section h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 16px; letter-spacing: -0.04em; }
.cta-section p  { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; }

/* ── Footer ──────────────────────────────────────────────── */
.landing-footer {
    background: var(--bg-deep); border-top: 1px solid var(--border);
    padding: 32px 40px; text-align: center;
    color: var(--text-muted); font-size: 13px;
}
.landing-footer a { color: var(--text-muted); transition: color var(--transition); }
.landing-footer a:hover { color: var(--gold); }

/* Risiko-Hinweis Footer */
.footer-risk {
    margin-top: 20px; padding: 14px 20px;
    background: rgba(255,77,106,0.05); border: 1px solid rgba(255,77,106,0.15);
    border-radius: var(--radius); font-size: 12px; color: var(--text-muted);
    max-width: 700px; margin-left: auto; margin-right: auto;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   UTILITIES & HELPERS
   ════════════════════════════════════════════════════════════ */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 10px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed; left: -265px; top: 0; height: 100vh;
        z-index: 100; transition: left 0.3s ease;
    }
    .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.6); }
    .sidebar-toggle { display: flex; }
    .page-header { padding: 16px 20px; padding-left: 64px; }
    .page-body   { padding: 20px; }
    .welcome-stats { display: none; }
    .modules-grid  { grid-template-columns: 1fr; }

    .landing-header { padding: 0 20px; height: 60px; }
    .landing-nav > a:not(.btn) { display: none; }

    .hero { padding: 80px 20px 60px; min-height: auto; }
    .hero::before { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }

    .features-section,
    .modules-section,
    .zoom-section,
    .cta-section { padding-left: 20px; padding-right: 20px; }

    .stats-bar { padding: 28px 20px; }
    .zoom-card { padding: 36px 24px; }
    .pdf-frame { height: 420px; }
    .module-hero { flex-direction: column; }

    .landing-footer { padding: 24px 20px; }

    /* Zielgruppe-Grid einspalttig */
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 99;
}

/* ════════════════════════════════════════════════════════════
   MODUL-INHALTE (HTML-Lektionen)
   ════════════════════════════════════════════════════════════ */
.lesson-section {
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
.lesson-section:last-child { border-bottom: none; margin-bottom: 0; }
.lesson-section h2 { font-size: 1.4rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.lesson-section h3 { font-size: 1.15rem; margin-bottom: 12px; }
.lesson-section p  { color: var(--text-secondary); line-height: 1.75; margin-bottom: 12px; font-size: 15px; }
.lesson-section p:last-child { margin-bottom: 0; }

/* Highlight-Box */
.lesson-highlight {
    display: flex; gap: 14px; align-items: flex-start;
    background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.18);
    border-radius: var(--radius-lg); padding: 18px 20px;
    margin: 20px 0; font-size: 14px; color: var(--text-secondary); line-height: 1.65;
}
.lesson-highlight-gold {
    background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.25);
}
.lesson-highlight-red {
    background: rgba(255,77,106,0.08); border-color: rgba(255,77,106,0.25); color: #ff8099;
}
.lesson-highlight strong { color: var(--text-primary); }
.highlight-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* Lesson Cards (nebeneinander) */
.lesson-card-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin: 20px 0;
}
.lesson-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
}
.lesson-card-green { border-color: rgba(0,212,160,0.25); background: rgba(0,212,160,0.05); }
.lesson-card-red   { border-color: rgba(255,77,106,0.25); background: rgba(255,77,106,0.05); }
.lesson-card-icon  { font-size: 28px; margin-bottom: 10px; }
.lesson-card h4    { font-size: 15px; margin-bottom: 8px; }
.lesson-card p     { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Steps */
.lesson-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.lesson-step  { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800; color: var(--gold); margin-top: 1px;
}
.lesson-step div { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding-top: 4px; }
.lesson-step strong { color: var(--text-primary); }

/* Listen */
.lesson-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.lesson-list li { font-size: 14px; color: var(--text-secondary); line-height: 1.6; display: flex; gap: 10px; }

/* Begriffe Grid */
.term-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px; margin: 20px 0;
}
.term-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px;
}
.term-card-gold { border-color: rgba(245,166,35,0.2); background: rgba(245,166,35,0.05); }
.term-name { font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 8px; }
.term-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* Strategien */
.strategy-item { margin-bottom: 32px; }
.strategy-header { display: flex; gap: 24px; align-items: flex-start; }
.strategy-img {
    width: 160px; height: auto; border-radius: var(--radius-lg);
    border: 1px solid var(--border); flex-shrink: 0; object-fit: cover;
}
.strategy-details {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-top: 16px;
}
.strategy-detail-item {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
}
.strategy-detail-item h4 { font-size: 13px; margin-bottom: 6px; }
.strategy-detail-item p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Full-width Bild */
.lesson-full-img {
    width: 100%; max-height: 400px; object-fit: contain;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: var(--bg-elevated); margin: 16px 0;
}

/* Strategie-Badges Overview */
.strategy-overview {
    display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0;
}
.strategy-badge {
    background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25);
    color: var(--gold); border-radius: 20px; padding: 6px 16px;
    font-size: 13px; font-weight: 600;
}

/* IB Screenshots Grid */
.ib-screenshots {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px; margin: 16px 0;
}
.ib-screenshot { position: relative; }
.ib-screenshot a { display: block; }
.ib-screenshot img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.ib-screenshot img:hover { border-color: var(--gold); }
.ib-step-label {
    position: absolute; bottom: 6px; left: 6px;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 11px;
    padding: 2px 7px; border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════
   QUIZ-SYSTEM
   ════════════════════════════════════════════════════════════ */
.quiz-section {
    background: linear-gradient(145deg, #0e1535 0%, #0a1028 100%);
    border: 2px solid rgba(245,166,35,0.3);
    border-radius: var(--radius-xl); padding: 36px; margin-top: 40px;
}
.quiz-header { text-align: center; margin-bottom: 32px; }
.quiz-header h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.quiz-header p   { color: var(--text-secondary); font-size: 14px; }
.quiz-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25);
    color: var(--gold); border-radius: 20px; padding: 5px 14px;
    font-size: 12px; font-weight: 700; margin-bottom: 16px;
    letter-spacing: 0.05em; text-transform: uppercase;
}

.quiz-question {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s;
}
.quiz-question.answered { border-color: rgba(245,166,35,0.2); }
.quiz-q-text { font-size: 15px; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.quiz-q-num  { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card);
    cursor: pointer; transition: all 0.2s; user-select: none;
}
.quiz-option:hover { border-color: rgba(245,166,35,0.3); background: rgba(245,166,35,0.04); }
.quiz-option input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.quiz-option label { cursor: pointer; font-size: 14px; color: var(--text-secondary); flex: 1; line-height: 1.4; }
.quiz-option:has(input:checked) { border-color: var(--gold); background: rgba(245,166,35,0.08); }
.quiz-option:has(input:checked) label { color: var(--text-primary); }

/* Feedback nach Abgabe */
.quiz-option.correct { border-color: var(--green) !important; background: rgba(0,212,160,0.08) !important; }
.quiz-option.correct label { color: var(--green) !important; }
.quiz-option.wrong   { border-color: var(--red) !important; background: rgba(255,77,106,0.08) !important; }
.quiz-option.wrong   label { color: var(--red) !important; }

.quiz-submit-area { text-align: center; margin-top: 32px; }
.quiz-result {
    text-align: center; padding: 32px; border-radius: var(--radius-lg);
    margin-top: 24px; display: none;
}
.quiz-result.passed {
    background: rgba(0,212,160,0.08); border: 1px solid rgba(0,212,160,0.25);
}
.quiz-result.failed {
    background: rgba(255,77,106,0.08); border: 1px solid rgba(255,77,106,0.25);
}
.quiz-result-icon { font-size: 48px; margin-bottom: 12px; }
.quiz-result h3   { font-size: 1.4rem; margin-bottom: 8px; }
.quiz-result p    { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.quiz-score-display {
    font-size: 2.5rem; font-weight: 900; margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.quiz-already-passed {
    background: rgba(0,212,160,0.06); border: 1px solid rgba(0,212,160,0.2);
    border-radius: var(--radius-lg); padding: 20px 24px;
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px; font-size: 14px; color: var(--green);
}

/* Abo-Ablauf Banner */
.expiry-banner {
    background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.3);
    border-radius: var(--radius-lg); padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px; font-size: 14px; color: #ff8099;
}
.expiry-days {
    font-size: 13px; font-weight: 700;
    background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2);
    color: var(--gold); padding: 4px 12px; border-radius: 20px;
}

@media (max-width: 768px) {
    .strategy-header { flex-direction: column; }
    .strategy-img { width: 100%; }
    .term-grid, .lesson-card-row, .strategy-details { grid-template-columns: 1fr; }
    .quiz-section { padding: 24px 16px; }
}
.sidebar-overlay.show { display: block; }

/* ════════════════════════════════════════════════════════════
   WARUM STILLHALTER  (Landing-Abschnitt / Einsteiger-Erklärung)
   ════════════════════════════════════════════════════════════ */
.why-section {
    padding: 90px 40px;
    background: linear-gradient(180deg, var(--bg-deep), var(--bg-main) 40%, var(--bg-deep));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.why-inner { max-width: 1000px; margin: 0 auto; }
.why-head { text-align: center; max-width: 720px; margin: 0 auto; }
.why-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.why-lead {
    color: var(--text-secondary); font-size: 1.05rem;
    line-height: 1.75; margin-top: 16px;
}
.insure-box {
    margin: 32px auto 0; max-width: 760px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); border-radius: var(--radius-lg);
    padding: 24px 28px; color: var(--text-secondary);
    font-size: 1.05rem; line-height: 1.8;
}
.insure-box strong { color: var(--text-primary); }

.why-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px; margin-top: 34px;
}
.why-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px; transition: all var(--transition);
}
.why-card:hover {
    border-color: rgba(245,166,35,0.4); transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}
.why-card-icon {
    width: 48px; height: 48px; border-radius: 13px;
    background: rgba(245,166,35,0.12); border: 1px solid rgba(245,166,35,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 16px;
}
.why-card h4 { font-size: 1.12rem; margin-bottom: 9px; }
.why-card p  { color: var(--text-secondary); font-size: 14.5px; line-height: 1.68; margin: 0; }

.zone-box {
    margin-top: 34px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px 28px;
}
.zone-box h4 { font-size: 1.05rem; margin-bottom: 6px; }
.zone-sub   { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 20px; }
.zone-bar {
    display: flex; height: 60px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-light);
}
.zone-seg {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; text-align: center; padding: 0 10px; font-size: 13px; font-weight: 700;
}
.zone-seg.loss { background: rgba(255,77,106,0.16); color: #ff8ea3; flex: 0 0 22%; }
.zone-seg.win  { background: linear-gradient(90deg, rgba(0,212,160,0.16), rgba(0,212,160,0.28)); color: #5ff0c6; flex: 1; }
.zone-tag { font-size: 10.5px; font-weight: 600; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }

.why-example {
    margin-top: 22px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px;
}
.why-ex-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px;
}
.why-ex-tag {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--gold); display: block; margin-bottom: 12px;
}
.why-ex-box p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; margin: 0 0 10px; }
.why-ex-box strong { color: var(--text-primary); }
.why-ex-fine { color: var(--text-muted); font-size: 12px; font-style: italic; }
.why-best {
    background: linear-gradient(150deg, #161f4a, #0f1638);
    border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    padding: 26px; display: flex; flex-direction: column; justify-content: center;
}
.why-best h4 { font-size: 1.15rem; margin-bottom: 10px; }
.why-best p  { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.why-best-note {
    font-size: 12.5px; color: var(--text-muted);
    border-top: 1px dashed var(--border-light); padding-top: 12px; margin-top: auto; line-height: 1.55;
}
.why-cta { text-align: center; margin-top: 34px; }

@media (max-width: 768px) {
    .why-section { padding-left: 20px; padding-right: 20px; }
    .why-example { grid-template-columns: 1fr; }
}
