/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111927;
    --bg-card: #141b2b;
    --bg-card-hover: #1a2438;
    --text-primary: #e0e6ed;
    --text-secondary: #a0aab8;
    --text-muted: #6a7a8a;
    --gold: #d4af37;
    --gold-light: #f5d76e;
    --gold-dark: #b8941f;
    --cyan: #4a90e2;
    --cyan-dark: #2a6fb0;
    --border: #2a3448;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --radius: 12px;
    --transition: 0.3s ease;
    
    /* ========================================
       SICHERE SYSTEM-FONTS – KEINE DOWNLOADS!
       ======================================== */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}
.nav-logo img {
    height: 32px;
}
.nav-logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}
.nav-menu li a {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-menu li a:hover {
    color: var(--text-primary);
    background: rgba(212, 175, 55, 0.08);
}
.nav-menu li a.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    background: radial-gradient(ellipse at 70% 30%, #141b2b, #0a0e17 70%);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03), transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .gold {
    color: var(--gold);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 40px;
    font-family: var(--font-serif);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-number sub {
    font-size: 0.9rem;
}
.stat-number sup {
    font-size: 0.9rem;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
}
.hero-graphic img {
    width: 400px;
    max-width: 60vw;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.btn-cyan {
    background: var(--cyan);
    color: white;
}
.btn-cyan:hover {
    background: var(--cyan-dark);
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}
.section-title .gold {
    color: var(--gold);
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 48px;
    font-family: var(--font-serif);
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    box-shadow: var(--shadow);
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--gold);
}
.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.card-formula {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--gold-light);
    text-align: center;
    border-left: 3px solid var(--gold);
    overflow-x: auto;
}

/* ========================================
   TEASER BOX (Hubble)
   ======================================== */
.teaser-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.teaser-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.teaser-number {
    display: flex;
    flex-direction: column;
}
.teaser-number .big {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
}
.teaser-number .small {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.teaser-vs {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-muted);
}

.teaser-formula {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    color: var(--gold-light);
    margin-bottom: 28px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

/* ========================================
   CONTENT PAGES
   ======================================== */
.page-header {
    padding: 120px 0 48px;
    background: radial-gradient(ellipse at 50% 0%, #141b2b, #0a0e17 80%);
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
}
.page-header h1 .gold {
    color: var(--gold);
}
.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px;
    margin-top: 8px;
}

.content-body {
    padding: 48px 0 80px;
}
.content-body h2 {
    font-size: 1.8rem;
    margin: 48px 0 16px;
    color: var(--gold);
}
.content-body h2:first-of-type {
    margin-top: 0;
}
.content-body h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
    color: var(--text-primary);
}
.content-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    line-height: 1.9;
}
.content-body ul, .content-body ol {
    margin: 16px 0 24px 24px;
    color: var(--text-secondary);
}
.content-body li {
    margin-bottom: 8px;
}
.content-body .formula-block {
    display: block;
    text-align: center;
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    font-size: 1.15rem;
    font-family: var(--font-serif);
    color: var(--gold-light);
    overflow-x: auto;
}
.content-body .highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 24px 0;
}
.content-body .highlight-box strong {
    color: var(--gold);
}
.content-body .highlight-box .big-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    text-align: center;
}

/* ========================================
   DOWNLOADS TABLE
   ======================================== */
.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.download-table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--gold-dark);
    color: var(--gold);
    font-weight: 600;
}
.download-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.download-table tr:hover td {
    background: var(--bg-card);
}
.download-table .file-icon {
    font-size: 1.2rem;
}
.download-table .download-link {
    color: var(--cyan);
    font-weight: 500;
}
.download-table .download-link:hover {
    color: var(--gold-light);
}

/* ========================================
   INTERACTIVE PLOT
   ======================================== */
.plot-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 32px 0;
}
.plot-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
}
.plot-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.plot-controls label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.plot-controls input[type="range"] {
    width: 100%;
    max-width: 500px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}
.plot-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
}
.plot-controls input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
}
.plot-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-serif);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--gold);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero-graphic {
        display: none;
    }
    .hero {
        min-height: auto;
        padding: 120px 24px 60px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 16px 24px 32px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform var(--transition);
        opacity: 0;
        pointer-events: none;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-menu li a {
        padding: 12px 16px;
        display: block;
        font-size: 1rem;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .teaser-numbers {
        gap: 12px;
    }
    .teaser-number .big {
        font-size: 2rem;
    }
    .teaser-vs {
        font-size: 1.2rem;
    }

    .section {
        padding: 48px 0;
    }
    .download-table {
        font-size: 0.85rem;
    }
    .download-table th, .download-table td {
        padding: 8px 10px;
    }

    .plot-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .teaser-box {
        padding: 24px 16px;
    }
}