/* ═══════════════════════════════════════════════════════════════ */
/* DESIGN-SYSTEM: Professional Terminal */
/* ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1d4ed8;
    --secondary: #0f172a;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --card: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #cbd5e1;
    --chart-grid: #e2e8f0;
    --warning: #f59e0b;
    --info: #3b82f6;

    --term-bg: #0a0e27;
    --term-text: #00ff41;
    --term-red: #ff3860;
    --term-green: #00ff88;
    --term-blue: #4da6ff;
    --term-yellow: #ffd700;

    --font-headings: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-data: 'IBM Plex Mono', monospace;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ═══════════════════════════════════════════════════════════════ */
/* GLOBAL STYLES */
/* ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container.narrow {
    max-width: 800px;
}

section {
    padding: 6rem 0;
}

.light-bg {
    background-color: var(--card);
}

.centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════ */
/* TYPOGRAPHY & UTILITIES */
/* ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--secondary);
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

.font-data {
    font-family: var(--font-data);
}

.positive { color: var(--accent-green); }
.negative { color: var(--accent-red); }
.warning { color: var(--warning); }
.info { color: var(--info); }
.muted-text { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════ */
/* COMPONENTS */
/* ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
}
.btn-primary:hover {
    background-color: #1e40af;
    text-decoration: none;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn-secondary:hover {
    background-color: var(--card);
    border-color: var(--primary);
    text-decoration: none;
}

.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-view > * {
    min-width: 0;
}
.split-view.reverse {
    grid-template-columns: 1fr 1fr;
}
.split-view.reverse > :first-child {
    order: 2;
}

.card-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}
.card-grid.three-cols { grid-template-columns: repeat(3, 1fr); }

.info-card {
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.info-card i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.highlight-box {
    background-color: var(--card);
    border-left: 4px solid var(--info);
    padding: 1.5rem;
    margin-top: 3rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.highlight-box i { color: var(--info); }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-data);
}
.status-badge.live {
    background-color: #166534;
    color: #bbf7d0;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    font-family: var(--font-headings);
    font-weight: 600;
    background: var(--card);
    cursor: pointer;
}
.data-table th i {
    width: 1em; height: 1em;
    vertical-align: middle;
    color: var(--muted);
}
.data-table tbody tr:nth-child(even) {
    background-color: var(--background);
}
.data-table tbody tr:hover {
    background-color: #e0e7ff;
}
.data-table .highlighted {
    background-color: #dbeafe;
    font-weight: bold;
}

.terminal-panel {
    background-color: var(--term-bg);
    color: #e2e8f0;
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--font-data);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow-x: auto;
    max-width: 100%;
}
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════ */
/* HEADER & FOOTER */
/* ═══════════════════════════════════════════════════════════════ */
.main-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}
.logo i { color: var(--primary); }
nav ul {
    display: flex;
    gap: 2rem;
}
nav a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
}
nav a:hover {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.market-status, .market-time {
    font-family: var(--font-data);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.market-status span { font-weight: 600; }
.market-status .data-value {
    font-family: var(--font-data);
}
.main-footer {
    background-color: var(--card);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-disclaimer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}
.contact-info p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════ */
/* SECTION SPECIFIC STYLES */
/* ═══════════════════════════════════════════════════════════════ */

/* Section 1: Hero */
.hero-section {
    padding: 8rem 0;
    background-color: var(--surface);
}
.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin: 2rem 0;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
}
.live-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
    margin-bottom: 1rem;
}
.live-ticker {
    display: flex;
    white-space: nowrap;
    animation: scroll-ticker 30s linear infinite;
}
.ticker-item {
    margin: 0 1.5rem;
    font-size: 0.9rem;
}
@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.mini-chart {
    height: 150px;
    margin-bottom: 1rem;
    max-width: 100%;
}
.mini-chart svg {
    width: 100%; height: 100%;
    max-width: 100%;
}
.market-info {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

/* Section 3: Strategien */
.strategy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.strategy-card h4 { margin-bottom: 0.5rem; }
.strategy-card a {
    margin-top: auto;
    font-weight: 600;
}

/* Section 4: Technische Analyse */
.image-part img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.image-caption {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Section 5: Indikatoren */
.indicator-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.indicator-item {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.indicator-item span {
    font-weight: 600;
}

/* Section 7: KI Trading */
.code-panel { padding: 0; }
.code-panel .terminal-header {
    padding: 0.5rem 1rem;
}
.code-panel .dots { display: flex; gap: 0.5rem; }
.code-panel .dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-panel .dots .red { background: #ef4444; }
.code-panel .dots .yellow { background: #f59e0b; }
.code-panel .dots .green { background: #22c55e; }
.code-panel pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}
.code-panel code .keyword { color: var(--term-blue); }
.code-panel code .number { color: var(--term-yellow); }
.performance-box {
    background: var(--card);
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.performance-box i { color: var(--accent-green); width: 48px; height: 48px; }
.performance-box span { display: block; }
.performance-box span:first-child { color: var(--muted); }
.performance-box .font-data { font-size: 1.75rem; font-weight: 700; }

/* Section 8: Risikomanagement */
.warning-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.warning-icon i {
    color: var(--warning);
    width: 64px;
    height: 64px;
}
.checklist {
    list-style: none;
    margin-top: 1.5rem;
}
.checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.checklist i { color: var(--accent-green); }
.calculator-box {
    background-color: var(--card);
    border-left: 4px solid var(--warning);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.calculator-box i { color: var(--warning); }

/* Section 9: Anfänger */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 3rem auto;
    padding-left: 3rem;
    border-left: 2px solid var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-icon {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--background);
}
.timeline-content {
    padding-left: 1rem;
}

/* Section 12: Psychologie */
.scenario-card {
    background: var(--card);
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}
.scenario-card .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Section 13: Steuern */
.info-box-wrapper { display: flex; align-items: center; justify-content: center; }
.info-box {
    background-color: var(--surface);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}
.info-box h4 { text-align: center; }
.info-box hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}
.calculation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.calculation.bold { font-weight: 700; }
.calculation.final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section 14: FAQ */
.faq-accordion {
    border-top: 1px solid var(--border);
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-headings);
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p { padding-bottom: 1.5rem; }

/* Section 15: CTA */
.cta-section {
    background-color: var(--secondary);
    color: #e2e8f0;
}
.cta-section h2 { color: var(--surface); }
.cta-section .split-view { gap: 5rem; }
.feature-list {
    margin: 2rem 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.feature-list i { color: var(--accent-green); }
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cta-form input {
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 1rem;
}
.cta-image img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN */
/* ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .split-view, .split-view.reverse {
        grid-template-columns: 1fr;
    }
    .split-view.reverse > :first-child {
        order: -1;
    }
    .hero-section { text-align: center; }
    .hero-dashboard { margin-top: 3rem; }
    .cta-buttons { justify-content: center; }
    .main-header nav, .main-header .market-time { display: none; } /* Simplified header */
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 4rem 0; }
    
    .card-grid.three-cols {
        grid-template-columns: 1fr;
    }
    .indicator-list {
        grid-template-columns: 1fr;
    }
    .table-wrapper { overflow-x: auto; }
    .warning-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .header-right .market-status { display: none; }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}