:root {
    --bg-base: #111113;
    --bg-surface: rgba(30, 30, 36, 0.7);
    --border-light: #3f3f46;
    --border-accent: #be1835;
    --text-main: #e4e4e7;
    --text-muted: #a1a1aa;

    /* Colors */
    --accent-red: #be1835;
    --accent-red-hover: #9e142c;
    --accent-red-glow: rgba(190, 24, 53, 0.4);

    --accent-blue: #008DFF;
    --accent-blue-hover: #006bb3;
    --accent-blue-glow: rgba(0, 141, 255, 0.4);

    /* Tags */
    --tag-blue-bg: rgba(59, 130, 246, 0.15);
    --tag-blue-text: #60a5fa;
    --tag-green-bg: rgba(34, 197, 94, 0.15);
    --tag-green-text: #4ade80;
    --tag-purple-bg: rgba(168, 85, 247, 0.15);
    --tag-purple-text: #c084fc;
    --tag-gray-bg: rgba(161, 161, 170, 0.15);
    --tag-gray-text: #a1a1aa;

    --sidebar-width: 280px;
    --radius-md: 4px;
    --radius-btn: 2px;
    --transition: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: center top;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    display: block;
    min-height: 100vh;
}

/* Erlaubt der Anchor-Nav, am oberen Rand des Bildschirms zu kleben, auch wenn sie per JS geladen wird */
#sidebar-container {
    display: contents;
}

/* --- MOBILE PRE-SETUP (Versteckt auf Desktop) --- */
.mobile-header {
    display: none;
}

.sidebar-overlay {
    display: none;
}


/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(17, 17, 19, 0.98) 0%, rgba(20, 20, 24, 0.98) 100%);
    backdrop-filter: blur(12px);
    border-right: 2px solid var(--border-light);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 30px 0;
}

.sidebar-brand {
    font-family: 'VT323', monospace;
    font-size: 2.8rem;
    color: var(--accent-red);
    text-decoration: none;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-red-glow);
    margin-bottom: 40px;
    display: block;
    text-align: center;
    padding: 0 20px;
    transition: var(--transition);
    letter-spacing: 2px;
}

.sidebar-brand:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-red-glow);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 35px;
    flex-grow: 1;
    padding: 0 15px;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-heading {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding: 0 12px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    letter-spacing: 0.5px;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-light);
    transform: translateX(3px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, var(--accent-red-glow) 0%, rgba(190, 24, 53, 0.2) 100%);
    border-color: var(--accent-red);
    border-left-width: 4px;
    color: #fff;
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.sidebar-link-external {
    justify-content: space-between;
}

.sidebar-mc-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.6));
    transition: var(--transition);
}

.sidebar-link:hover .sidebar-mc-icon {
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.6)) brightness(1.2);
    transform: scale(1.1);
}

.sidebar-link.active .sidebar-mc-icon {
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.8)) brightness(1.3);
}

.external-icon {
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-link-external:hover .external-icon {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
}

/* --- DROPDOWN MODULE (DESKTOP) --- */
.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px;
    transition: var(--transition);
}

.dropdown-toggle:hover {
    color: var(--text-main);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.has-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    margin-left: 14px;
    border-left: 2px dashed var(--border-light);
    padding-left: 10px;
}

.has-dropdown.open .dropdown-content {
    display: flex;
}


/* --- ANCHOR NAVIGATION (DESKTOP) --- */
.anchor-nav {
    display: none; /* JS setzt dies auf 'flex' wenn aktiv */
    width: calc(100% - var(--sidebar-width)); /* Verhindert Überlappen/Quetschen */
    margin-left: var(--sidebar-width);
    gap: 15px;
    padding: 15px 20px;
    background: rgba(17, 17, 19, 0.95);
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 990;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    justify-content: center;
}

.anchor-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: var(--transition);
    letter-spacing: 1px;
    white-space: nowrap;
}

.anchor-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
}

.anchor-link.active {
    color: #fff;
    background: var(--accent-red-glow);
    border-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
}

/* --- HERO --- */
.hero {
    text-align: center;
    padding: 40px 20px 60px 20px;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'VT323', monospace;
    font-size: 5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero.red h1 {
    text-shadow: 4px 4px 0px var(--accent-red), 8px 8px 0px rgba(0, 0, 0, 0.5);
}

.hero.blue h1 {
    text-shadow: 4px 4px 0px var(--accent-blue), 8px 8px 0px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 189, 46, 0.15);
    color: #ffbd2e;
    border: 1px solid rgba(255, 189, 46, 0.4);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- LARGE BUTTONS --- */
.btn-large {
    display: inline-flex;
    align-items: center;
    color: #fff;
    padding: 14px 40px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
}

.btn-large:hover {
    filter: brightness(1.1);
}

.btn-large:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.btn-red {
    background-color: var(--accent-red);
    border: 2px solid #ff4d6d;
    border-bottom: 6px solid #7a0f21;
}

.btn-red:active {
    border-bottom: 2px solid #7a0f21;
}

.btn-blue {
    background-color: var(--accent-blue);
    border: 2px solid #33a1ff;
    border-bottom: 6px solid #006bb3;
}

.btn-blue:active {
    border-bottom: 2px solid #006bb3;
}

.btn-secondary {
    background-color: #27272a;
    color: var(--text-main);
    border: 2px solid #52525b;
    border-bottom: 6px solid #18181b;
}

.btn-secondary:hover {
    background-color: #3f3f46;
}

.btn-secondary:active {
    border-bottom: 2px solid #18181b;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-main-text {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.btn-sub-text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 3px;
    font-family: 'Fira Code', monospace;
}

/* --- DOWNLOAD COUNTER --- */
.download-stats {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stats-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.split-flap-container {
    display: flex;
    gap: 4px;
    background: #000;
    padding: 8px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.flap-unit {
    position: relative;
    background: #1a1a1e;
    width: 45px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 2px;
    font-family: 'VT323', monospace;
    font-size: 3.5rem;
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
    border: 1px solid #333;
    transform-style: preserve-3d;
}

.flap-unit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 5;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
        background: #222;
    }
    100% {
        transform: rotateX(0deg);
    }
}

.flipping {
    animation: flip 0.4s ease-in-out;
}

/* --- SECTIONS & HEADINGS --- */
h2.section-title {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    width: 100%;
    margin: 60px 0 20px 0;
    text-align: center;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
}

h3.group-title {
    font-size: 1.8rem;
    margin: 50px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--border-light);
    width: 100%;
    font-weight: 700;
    font-family: 'VT323', monospace;
    color: #fff;
}

/* --- FLOW SECTION --- */
.flow-section {
    width: 100%;
    margin: 20px 0 80px 0;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.flow-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.flow-box {
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-bottom: 4px solid #18181b;
    border-radius: var(--radius-md);
    padding: 20px;
    min-width: 180px;
    text-align: center;
}

.flow-box h4 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.flow-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
    height: 100px;
}

/* --- MOCKUP WINDOWS --- */
.mockup-window {
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    margin-top: 15px;
}

.mockup-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.mockup-title {
    color: #888;
    font-family: monospace;
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
    background: #000;
}

.zoomable {
    cursor: zoom-in;
}

/* --- GRIDS & CARDS --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

.card {
    background: var(--bg-surface);
    backdrop-filter: blur(4px);
    border: 2px solid var(--border-light);
    border-bottom: 6px solid #18181b;
    border-radius: var(--radius-md);
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.card:hover {
    background: rgba(40, 40, 45, 0.9);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.card.hover-red:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow), 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.card.hover-blue:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue-glow), 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: var(--radius-btn);
    border: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
}

.card-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-list {
    margin-top: 12px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-list li {
    margin-bottom: 6px;
}

/* --- TAGS --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-btn);
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    border: 1px solid transparent;
    text-transform: uppercase;
}

.tag-icon {
    width: 6px;
    height: 6px;
    border-radius: 0;
}

.tag-blue {
    background: var(--tag-blue-bg);
    color: var(--tag-blue-text);
    border-color: rgba(59, 130, 246, 0.3);
}

.tag-blue .tag-icon {
    background: var(--tag-blue-text);
}

.tag-green {
    background: var(--tag-green-bg);
    color: var(--tag-green-text);
    border-color: rgba(34, 197, 94, 0.3);
}

.tag-green .tag-icon {
    background: var(--tag-green-text);
}

.tag-purple {
    background: var(--tag-purple-bg);
    color: var(--tag-purple-text);
    border-color: rgba(168, 85, 247, 0.3);
}

.tag-purple .tag-icon {
    background: var(--tag-purple-text);
}

.tag-gray {
    background: var(--tag-gray-bg);
    color: var(--text-main);
    border-color: rgba(161, 161, 170, 0.3);
}

.tag-gray .tag-icon {
    background: var(--text-main);
}

.tag-red {
    background: rgba(190, 24, 53, 0.15);
    color: #ff4d6d;
    border-color: rgba(190, 24, 53, 0.3);
}

.tag-red .tag-icon {
    background: #ff4d6d;
}

/* --- COMPARISON & JSON --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
    width: 100%;
}

.comp-box {
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.comp-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-light);
    text-align: center;
}

#old-json {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 5px;
    line-height: 1.5;
}

.json-key {
    color: #aaffaa;
    font-weight: bold;
}

.json-string {
    color: #ffaaaa;
}

.json-number {
    color: #ffaaaa
}

.json-boolean {
    color: #ffaaaa;
}

.json-null {
    color: #ff6666;
}

.gui-way {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(190, 24, 53, 0.05);
    border: 1px dashed var(--accent-red);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

/* --- HG FEATURE ROW --- */
.hg-feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hg-feature-row:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow), 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.hg-feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.hg-feature-text {
    flex: 1;
}

.hg-feature-text h3 {
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.hg-feature-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hg-feature-image {
    flex: 1.2;
}

/* --- CONTROLS BAR --- */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: #18181b;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    width: 100%;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.modern-select {
    background: #000;
    color: var(--text-main);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-family: 'Fira Code', monospace;
    cursor: pointer;
    outline: none;
    min-width: 250px;
    transition: var(--transition);
}

.modern-select:hover {
    border-color: var(--text-muted);
}

/* --- CTA BOTTOM --- */
.cta-bottom {
    width: 100%;
    margin-top: 80px;
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid;
    border-bottom: 6px solid;
}

.cta-bottom.red {
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.7) 0%, rgba(190, 24, 53, 0.1) 100%);
    border-color: var(--accent-red);
    border-bottom-color: #7a0f21;
}

.cta-bottom.blue {
    background: linear-gradient(180deg, rgba(30, 30, 36, 0.7) 0%, rgba(0, 141, 255, 0.1) 100%);
    border-color: var(--accent-blue);
    border-bottom-color: #006bb3;
}

.cta-bottom h2 {
    font-family: 'VT323', monospace;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 0;
    color: var(--text-muted);
    border-top: 2px dashed var(--border-light);
    width: 100%;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: var(--radius-btn);
    font-family: 'Fira Code', monospace;
}


/* =========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================= */
@media (max-width: 1024px) {
    /* Zeige den Mobile Header an */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: linear-gradient(180deg, rgba(17, 17, 19, 0.98) 0%, rgba(20, 20, 24, 0.98) 100%);
        backdrop-filter: blur(12px);
        border-bottom: 2px solid var(--border-light);
        z-index: 990;
        padding: 0 20px;
    }

    .mobile-brand {
        font-family: 'VT323', monospace;
        font-size: 2.5rem;
        color: var(--accent-red);
        text-decoration: none;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
        margin: 0;
        letter-spacing: 2px;
    }

    .hamburger-btn {
        background: none;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    /* Sidebar als Off-Canvas Menü */
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px; /* Versteckt links außerhalb */
        width: 280px;
        height: 100vh;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001; /* Über dem Overlay */
        border-right: 2px solid var(--border-light);
        padding-top: 30px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .sidebar.active {
        left: 0; /* Ins Bild sliden */
    }

    /* Das große Desktop Logo in der Sidebar auf Mobile ausblenden */
    .desktop-brand {
        display: none !important;
    }

    /* Overlay für den Hintergrund */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Content Bereich anpassen */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        padding-top: 130px; /* Platz für fixierten Mobile Header + fixierte Anchor Nav */
    }

    /* Anchor Nav unter den Mobile Header fixieren */
    .anchor-nav {
        margin-left: 0;
        position: fixed;
        top: 70px; /* Direkt unter dem Mobile Header */
        width: 100%;
        max-width: 100vw;
        border-bottom: 2px solid var(--border-light);
        background: rgba(17, 17, 19, 0.95);
        backdrop-filter: blur(12px);
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px 15px;
        -webkit-overflow-scrolling: touch; /* Flüssiges Scrollen auf iPhones */
        z-index: 989;

        /* Scrollbalken verstecken */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .anchor-nav::-webkit-scrollbar {
        display: none;
    }

    /* Anchor Links für Mobile */
    .anchor-link {
        font-size: 0.95rem;
        padding: 8px 16px;
        flex-shrink: 0; /* GANZ WICHTIG: Verhindert das Quetschen der Buttons */
        margin: 0;
    }

    /* Grid Layouts für Mobile anpassen */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .hg-feature-row, .hg-feature-row:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }

    .hg-feature-text, .hg-feature-image {
        flex: auto;
        width: 100%;
    }

    /* Hero Section anpassen */
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .modern-select {
        min-width: auto;
        width: 100%;
    }
}