/* Custom Properties */
:root {
    --bg-dark: #090a0f;
    --surface-card: rgba(255, 255, 255, 0.03);
    --surface-card-hover: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 255, 255, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-indigo: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Lights */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    top: 400px;
    right: -150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(0,0,0,0) 70%);
}

/* Container Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Floating Glassmorphism Navbar */
.navbar-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 1rem;
}

.navbar {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-indigo);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-indigo);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border-subtle);
    padding-left: 1.25rem;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* Hero Section */
.hero-section {
    padding-top: 11rem;
    padding-bottom: 5rem;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--accent-indigo);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.italic-accent {
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 620px;
    font-weight: 300;
}

/* Control & Filter Bar */
.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover, .filter-chip.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    color: var(--text-muted);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 160px;
}

/* Editorial Grid */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 8rem;
}

.grid-item {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 340px;
}

.grid-item:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.item-hero {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(99,102,241,0.06) 100%);
    border-color: var(--border-accent);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.meta-tag {
    color: var(--accent-indigo);
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.item-hero .item-title {
    font-size: 2.25rem;
}

.item-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 680px;
    margin-bottom: 2rem;
}

.item-action {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.action-btn:hover {
    gap: 1.1rem;
    color: var(--accent-indigo);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: var(--text-secondary);
}

.footer-email {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--accent-indigo);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .editorial-grid { grid-template-columns: 1fr; }
    .item-hero { grid-column: span 1; }
    .nav-status { display: none; }
}

@media (max-width: 600px) {
    .navbar { width: 100%; justify-content: space-between; }
    .hero-headline { font-size: 2.5rem; }
}

/* ==========================================================================
   ARTICLE PAGE STYLES
   ========================================================================== */

/* Layout & Spaltenbreite für Lesbarkeit */
.article-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

/* Header & Meta */
.article-header {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 2.5rem;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.meta-tag {
    color: var(--accent-indigo);
    font-weight: 600;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Autor Bar */
.author-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #a855f7 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Artikel Body & Typografie */
.article-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.75rem;
}

.article-body strong {
    color: var(--text-primary);
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* Callout Box (Glassmorphism) */
.callout-box {
    background: var(--surface-card);
    border: 1px solid var(--border-accent);
    border-left: 4px solid var(--accent-indigo);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.callout-text {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Code Block Component */
.code-block {
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.code-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}

.code-copy:hover {
    color: var(--text-primary);
}

.code-block pre {
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6edf3;
}

/* Basic Syntax Highlighting */
.code-block .keyword { color: #ff7b72; }
.code-block .class-name { color: #ffa657; }
.code-block .function { color: #d2a8ff; }
.code-block .string { color: #a5d6ff; }

/* Article Footer */
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
}

.tag-chip {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--surface-card);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

/* --- Article Detail View Typography --- */
.article-content {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2, 
.article-content h3, 
.article-content h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.35rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-indigo);
    padding-left: 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content code {
    font-family: 'Space Grotesk', monospace;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.article-content pre {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: transparent;
    padding: 0;
}

/* Dynamic Footer Text Animation */
.footer-headline {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    min-height: 2.5rem; /* Verhindert Layout-Shift beim Textwechsel */
}

.dynamic-accent {
    display: inline-block;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

/* --- About Page Bento Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-large {
        grid-column: span 2;
    }
    .card-wide {
        grid-column: span 2;
    }
    .card-full {
        grid-column: span 2;
    }
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.about-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    color: var(--accent-indigo, #818cf8);
    background: rgba(129, 140, 248, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.about-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-card p strong {
    color: #fff;
}

/* Tech List */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.tech-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-indigo, #818cf8);
    border-radius: 50%;
}

/* Base Location */
.location-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff !important;
}

/* Ecosystem Links */
.ecosystem-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.eco-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.eco-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.eco-item strong {
    color: #fff;
    font-size: 1rem;
}

.eco-item span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Hobbies / Off-screen */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.hobby-item h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.hobby-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   HIGH-IMPACT INTERACTIVE & TERMINAL STYLES
   ========================================================================== */

.section-label {
    font-family: 'Space Grotesk', monospace;
    color: var(--accent-indigo, #818cf8);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2.5rem;
}

/* --- Terminal Component --- */
.terminal-section {
    margin: 3rem 0 5rem 0;
}

.terminal-window {
    background: #0a0e17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(129, 140, 248, 0.05);
}

.terminal-header {
    background: #111622;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.terminal-badge {
    font-size: 0.65rem;
    font-family: 'Space Grotesk', monospace;
    background: rgba(39, 201, 63, 0.15);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.terminal-body {
    padding: 1.5rem;
}

.terminal-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-btn:hover, .term-btn.active {
    background: rgba(129, 140, 248, 0.15);
    border-color: #818cf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.2);
}

.terminal-output {
    font-family: 'Space Grotesk', monospace;
    min-height: 140px;
    transition: opacity 0.15s ease;
}

.terminal-output .prompt {
    color: #34d399;
}

.terminal-output .cmd {
    color: #fff;
    font-weight: 600;
}

.output-text {
    margin-top: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.output-text p {
    margin-bottom: 0.5rem;
}

/* --- Mouse-Follow Glow Card Base --- */
.glow-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -100px);
    left: var(--mouse-x, -100px);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.glow-card:hover {
    border-color: rgba(129, 140, 248, 0.4);
    transform: translateY(-3px);
}

/* --- Blueprint Timeline --- */
.blueprint-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.blueprint-step {
    display: flex;
    flex-direction: column;
}

.step-num {
    font-family: 'Space Grotesk', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.5rem;
}

.blueprint-step.active-phase .step-num {
    color: #818cf8;
    text-shadow: 0 0 15px rgba(129, 140, 248, 0.4);
}

.step-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.1em;
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.blueprint-step h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.blueprint-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Dual Core Matrix --- */
.dual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.core-card {
    display: flex;
    flex-direction: column;
}

.core-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.core-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: #34d399;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.core-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.core-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.metric span {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.metric .bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.metric .fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #34d399);
    border-radius: 3px;
}

/* ==========================================================================
   ULTIMATE CYBER-BLUEPRINT & HUD STYLES
   ========================================================================== */

/* --- System HUD Bar --- */
.sys-hud-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.825rem;
}

.hud-label {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
}

.hud-val {
    color: #fff;
    font-weight: 600;
}

.text-accent { color: #818cf8 !important; }
.text-green { color: #34d399 !important; }

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* --- Terminal Console Output --- */
.terminal-console {
    background: #060911;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.out-block {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.925rem;
    line-height: 1.7;
}

/* --- Blueprint Matrix --- */
.blueprint-section, .tech-spec-section {
    margin-top: 5rem;
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.matrix-card {
    display: flex;
    flex-direction: column;
}

.card-icon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.matrix-num {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
}

.matrix-badge {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    color: #818cf8;
    background: rgba(129, 140, 248, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

.matrix-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.matrix-compare {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.compare-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.compare-row:last-child { margin-bottom: 0; }

.comp-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-family: 'Space Grotesk', monospace;
}

.comp-val {
    color: #e2e8f0;
    font-weight: 500;
}

.matrix-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Tech Spec Section --- */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.spec-header {
    margin-bottom: 1.5rem;
}

.spec-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: #34d399;
    letter-spacing: 0.1em;
}

.spec-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-top: 0.3rem;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
}

.spec-info strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.spec-info span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.spec-level {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    color: #818cf8;
    background: rgba(129, 140, 248, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

/* ==========================================================================
   FLOATING GLASS CAPSULE NAVIGATION (Tikhomirova Style)
   ========================================================================== */

.floating-header {
    position: fixed;
    top: 1.25rem;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none; /* Klicks gehen durch leere Bereiche hindurch */
}

.nav-capsule {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    height: 58px;
    padding: 0 0.75rem 0 1.25rem;
    background: rgba(10, 14, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px; /* Abgerundete Pill-Form */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 140, 248, 0.08);
    transition: all 0.3s ease;
}

/* Brand Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-badge {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.brand-name {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

/* Desktop Navigation Links */
.nav-links-desktop {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 999px;
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #fff;
    background: rgba(129, 140, 248, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.eco-link {
    color: #818cf8;
}

/* Action CTA & Mobile Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn-cta {
    display: none;
    background: #fff;
    color: #090d16;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 520px) {
    .nav-btn-cta {
        display: inline-block;
    }
}

.nav-btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* Hamburger Toggle Button */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle .bar {
    width: 16px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

/* Mobile Glass Overlay Card */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 9, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 21, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-card {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mobile-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: #818cf8;
    letter-spacing: 0.12em;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-link.highlight {
    background: rgba(129, 140, 248, 0.15);
    border-color: rgba(129, 140, 248, 0.3);
}

.link-num {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.link-text {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-menu-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- LAYOUT & NAVIGATION OFFSET FIX --- */

/* Haupt-Container mit festem Abstand zur fixierten Navigation und zum Footer */
main.container,
.site-main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    /* 100px oben fängt die fixierte Nav ab; 5rem unten verhindert das Kleben am Footer */
    padding: 100px 1.5rem 5rem 1.5rem; 
    min-height: calc(100vh - 200px); /* Garantiert, dass der Footer immer unten bleibt */
}

/* Falls der Beitrags-Header noch extra Abstand zur Nav benötigt */
.article-content {
    scroll-margin-top: 120px;
}