:root {
    /* Colors - Matte Engineering Aesthetic */
    --accent-1: hsl(180, 100%, 55%); /* Bright Cyber Cyan */
    --accent-2: hsl(190, 100%, 50%); /* Electric Blue/Cyan */
    --bg-deep: #0d0d0d; /* Matte Dark Grey */
    --bg-surface: #121212;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-white: #ffffff;
    --text-dim: #b0b0b0;
    --text-muted: #555555;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(255, 255, 255, 0.06); /* Prominent Grey Grid */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-dialog {
    color: #fff;
    display: inline-block;
}

.gradient-spectrum, .gradient-plan, .gradient-exec {
    color: #fff;
    display: inline-block;
}

/* Language Toggle Logic */
body:not(.lang-en) [lang="en"] { display: none !important; }
body.lang-en [lang="en"] { display: inline-block !important; }
body.lang-en [lang="en"] { display: inline-block !important; }
body.lang-en [lang="de"] { display: none !important; }

/* Investor Page Theme Overrides */
.investor-page {
    --accent-1: hsl(260, 85%, 75%);
    --accent-2: hsl(280, 70%, 70%);
}

.investor-page .gradient-text {
    background: linear-gradient(135deg, hsl(260, 85%, 75%), hsl(290, 70%, 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.investor-page .mesh-gradient {
    background: 
        radial-gradient(circle at 20% 20%, hsla(260, 85%, 75%, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, hsla(280, 70%, 70%, 0.05) 0%, transparent 40%);
}

.investor-page .btn-primary:hover {
    box-shadow: 0 20px 40px hsla(260, 85%, 75%, 0.2);
}

.investor-page .drag-item.active {
    background: hsla(260, 85%, 75%, 0.15);
    border-color: hsl(260, 85%, 75%);
    color: white;
}

/* Verbund Page Theme Overrides */
.verbund-page {
    --accent-1: hsl(220, 90%, 65%); /* Verbund Blue */
    --accent-2: hsl(200, 100%, 60%);
}

.verbund-page .mesh-gradient {
    background: 
        radial-gradient(circle at 20% 80%, hsla(220, 90%, 65%, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, hsla(200, 100%, 60%, 0.05) 0%, transparent 40%);
}

.verbund-page .card {
    border: 1px solid hsla(220, 90%, 65%, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px hsla(220, 90%, 65%, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.verbund-page .card:hover {
    border-color: var(--accent-1) !important;
    background: hsla(220, 90%, 65%, 0.08) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px hsla(220, 90%, 65%, 0.1) !important;
    transform: translateY(-5px);
}

.verbund-page .drag-item.active {
    background: hsla(220, 90%, 65%, 0.15);
    border-color: hsl(220, 90%, 65%);
    color: white;
    box-shadow: 0 0 15px hsla(220, 90%, 65%, 0.3);
}

.verbund-page .text-plan, 
.verbund-page .heading-plan span {
    color: var(--accent-1) !important;
    text-shadow: 0 0 15px hsla(220, 90%, 65%, 0.4);
}

.verbund-page input:focus, 
.verbund-page textarea:focus {
    border-color: var(--accent-1) !important;
    box-shadow: 0 0 15px hsla(220, 90%, 65%, 0.2) !important;
    outline: none;
}

.btn-outline-blue {
    border: 1px solid hsl(220, 90%, 65%);
    color: hsl(220, 90%, 65%);
    background: transparent;
}

.btn-outline-blue:hover {
    background: hsl(220, 90%, 65%) !important;
    color: var(--bg-deep) !important;
    box-shadow: 0 0 25px hsla(220, 90%, 65%, 0.5) !important;
}

.verbund-page .heading-plan {
    color: #fff !important;
}

.verbund-page .heading-plan::first-letter {
    color: var(--accent-1) !important;
    text-shadow: 0 0 12px hsla(220, 90%, 65%, 0.5) !important;
}

/* Prevent jump in elements with multiple languages */
h1[lang], h2[lang], h3[lang], p[lang], span[lang] {
    transition: opacity 0.3s ease;
}

/* Ensure block elements stay block */
body.lang-en div[lang="en"], 
body.lang-en p[lang="en"], 
body.lang-en h1[lang="en"], 
body.lang-en h2[lang="en"], 
body.lang-en h3[lang="en"],
body.lang-en span.mono[lang="en"] { display: block !important; }

body:not(.lang-en) div[lang="de"], 
body:not(.lang-en) p[lang="de"], 
body:not(.lang-en) h1[lang="de"], 
body:not(.lang-en) h2[lang="de"], 
body:not(.lang-en) h3[lang="de"],
body:not(.lang-en) span.mono[lang="de"] { display: block !important; }

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

html {
    scroll-behavior: smooth;
    font-size: 110%; /* Ultra-wide screens */
    scroll-snap-type: y proximity;
}

@media (max-width: 1600px) {
    html {
        font-size: 100%; /* Standard Desktop/Laptop */
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 95%; /* Small Laptops */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%; /* Tablets/Mobile */
    }
}

section {
    min-height: 100vh;
    scroll-snap-align: start;
    padding: 100px 5% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    section {
        min-height: auto;
        padding: 80px 6% 4rem;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === GRID BACKGROUND === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-deep);
}

.text-plan {
    color: hsl(260, 85%, 75%);
}

.text-exec {
    color: var(--accent-1);
    text-shadow: 0 0 20px hsla(180, 100%, 55%, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, hsl(260, 85%, 75%), hsl(180, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent-1);
    margin-bottom: 1rem;
    display: block;
}

.haupt-wirkwerk .mono {
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 500;
    opacity: 1;
    background: linear-gradient(90deg, hsl(260, 85%, 75%), hsl(180, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    scroll-snap-align: start;
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    section {
        padding: 5rem 6%;
    }
}

/* === NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000; /* Higher than menu overlay */
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 1200px) {
    header {
        padding: 1.2rem 5%;
    }
    .logo {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 6%;
    }
    .logo {
        font-size: 1.8rem;
    }
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, hsl(260, 85%, 75%), hsl(180, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::after {
    content: '⬢';
    font-size: 1rem;
    background: var(--accent-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--accent-1));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Reduced from 2rem */
}

@media (max-width: 1500px) {
    .header-actions {
        gap: 0.8rem;
    }
}

.btn-cta {
    text-decoration: none;
    color: hsl(260, 85%, 75%);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.5rem;
    border: 1px solid hsla(260, 85%, 75%, 0.3);
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-cta:hover {
    background: hsla(260, 85%, 75%, 0.1);
    border-color: hsl(260, 85%, 75%);
    box-shadow: 0 0 20px hsla(260, 85%, 75%, 0.2);
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

@media (max-width: 1100px) {
    .menu-toggle {
        display: block !important;
    }
    .nav-items {
        display: none !important; /* Force hide */
    }
    .nav-items.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: none;
    z-index: 2000; /* Below header */
    gap: 2.5rem;
}
    .nav-items.active a {
        font-size: 1.5rem;
    }
}

.menu-toggle:hover {
    border-color: var(--accent-1);
    color: var(--text-white);
}

.nav-items {
    display: flex;
    gap: 2rem;
    transition: var(--transition);
    margin: 0 1rem; /* Added margin to prevent hitting sides */
}

@media (max-width: 1550px) {
    .nav-items {
        gap: 0.6rem; /* Very tight gap for laptops */
    }
    .nav-items a {
        font-size: 0.8rem; /* Smaller font for safety */
        padding: 0.4rem 0.3rem;
    }
}

.nav-items a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-align: center;
    position: relative;
    padding: 0.5rem 0.8rem;
}

.nav-items a::after {
    content: '';
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.4em;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: var(--transition);
    opacity: 0.6;
}

/* Specific Nav Coloring & Dots */
/* G - Grundsätze (Lila/Lila) */
.nav-items a:nth-child(1)::first-letter { color: hsl(260, 85%, 75%); }
.nav-items a:nth-child(1)::after { background: hsl(260, 85%, 75%); }

/* K - Kernkompetenzen (Cyan/Cyan) */
.nav-items a:nth-child(2)::first-letter { color: hsl(180, 100%, 55%); }
.nav-items a:nth-child(2)::after { background: hsl(180, 100%, 55%); }

/* L - Leistungsspektrum (Cyan/Cyan) */
.nav-items a:nth-child(3)::first-letter { color: hsl(180, 100%, 55%); }
.nav-items a:nth-child(3)::after { background: hsl(180, 100%, 55%); }

/* F - Fahrplan (Cyan/Lila) */
.nav-items a:nth-child(4)::first-letter { color: hsl(180, 100%, 55%); }
.nav-items a:nth-child(4)::after { background: hsl(260, 85%, 75%); }

/* D - Dialog (Hybrid) */
.nav-items a:nth-child(5)::first-letter { color: hsl(180, 100%, 55%); }
.nav-items a:nth-child(5)::after { background: hsl(260, 85%, 75%); }

.nav-items a:hover::after { opacity: 1; filter: brightness(1.2); }
.nav-items a:hover { color: #fff; }

/* Remove old hover logic */

.lang-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
    white-space: nowrap; /* Prevent vertical stack */
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 1px;
    background: var(--text-muted);
    transform: translate(50%, -50%) rotate(45deg);
    transform-origin: center;
    transition: var(--transition);
    z-index: 10;
}

.lang-toggle:hover {
    border-color: var(--accent-1);
    color: var(--text-white);
}

.lang-toggle:hover::before {
    background: var(--accent-1);
    box-shadow: 0 0 8px var(--accent-1);
}

.lang-toggle span.active {
    color: var(--accent-1);
}

/* === HAUPT-WIRKWERK === */
.haupt-wirkwerk {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 140px; /* Increased from 6rem to clear header safely */
}

@media (max-width: 1200px) {
    .haupt-wirkwerk {
        padding-top: 160px; /* Even more space for laptop aspect ratios */
    }
}

@media (max-width: 768px) {
    .haupt-wirkwerk {
        padding-top: 120px;
        min-height: auto;
    }
}

.haupt-wirkwerk h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(135deg, hsl(260, 85%, 75%), hsl(180, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-blue {
    background: linear-gradient(135deg, hsl(220, 90%, 65%), hsl(180, 100%, 55%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.haupt-wirkwerk p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 5rem auto;
    font-weight: 400;
    line-height: 1.8;
    min-height: auto;
}

/* === BUTTONS === */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 4.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    line-height: 1.2;
}

.btn-primary {
    background: hsl(260, 85%, 75%); /* Lavender */
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 20px 40px hsla(250, 65%, 85%, 0.2);
}

.btn-cyan {
    background: var(--accent-2);
    color: #000;
    font-weight: 700;
}

.btn-lavender {
    background: hsl(260, 85%, 75%);
    color: #000;
    font-weight: 700;
}

.btn-cyan:hover, .btn-lavender:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-outline, .btn-lavender-outline {
    position: relative;
    border: none;
    background: transparent;
    transition: var(--transition);
}

.btn-outline {
    background: hsla(180, 100%, 55%, 0.1);
    color: #fff;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--accent-1);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-lavender-outline {
    background: hsla(260, 85%, 75%, 0.1);
    color: #fff;
}

.btn-lavender-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: hsl(260, 85%, 75%);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* SPECTRUM BUTTONS */
.btn-outline-lila { border: 1px solid hsl(260, 85%, 75%); background: hsla(260, 85%, 75%, 0.05); color: #fff; }
.btn-outline-lila:hover { background: hsla(260, 85%, 75%, 0.2); box-shadow: 0 0 20px hsla(260, 85%, 75%, 0.3); }

.btn-outline-blue { border: 1px solid hsl(220, 90%, 65%); background: hsla(220, 90%, 65%, 0.05); color: #fff; }
.btn-outline-blue:hover { background: hsla(220, 90%, 65%, 0.2); box-shadow: 0 0 20px hsla(220, 90%, 65%, 0.3); }

.btn-outline-cyan { border: 1px solid var(--accent-1); background: hsla(180, 100%, 55%, 0.05); color: #fff; }
.btn-outline-cyan:hover { background: hsla(180, 100%, 55%, 0.2); box-shadow: 0 0 20px hsla(180, 100%, 55%, 0.3); }

.btn-outline:hover, .btn-lavender-outline:hover {
    transform: translateY(-3px);
}
.btn-lavender-outline:hover::after { background: #fff; }

.btn-outline { filter: drop-shadow(0 0 10px hsla(180, 100%, 55%, 0.3)); }
.btn-lavender-outline { filter: drop-shadow(0 0 10px hsla(260, 85%, 75%, 0.3)); }

.btn-outline:hover { filter: drop-shadow(0 0 15px hsla(180, 100%, 55%, 0.5)); }
.btn-lavender-outline:hover { filter: drop-shadow(0 0 15px hsla(260, 85%, 75%, 0.5)); }

.btn::before {
    content: '';
    position: absolute;
    top: 7.5px;
    right: 7.5px;
    width: 32px;
    height: 1px;
    background: var(--text-muted);
    transform: translate(50%, -50%) rotate(45deg);
    transform-origin: center;
    opacity: 0.6;
    transition: var(--transition);
    z-index: 10;
}

.btn-outline::before { opacity: 1; }
.btn-outline:hover::before { background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); }
.btn-primary::before { opacity: 0.6; }
.btn-primary:hover::before { opacity: 1; background: #fff; box-shadow: 0 0 10px #fff; }

/* === GRID & CARDS === */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
    align-items: stretch; /* Ensure equal height */
}

@media (max-width: 1200px) {
    .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--3 > .card:last-child {
        grid-column: 1 / -1; /* Center the 3rd card on 2-col layout */
    }
}

@media (max-width: 900px) {
    .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }
    .grid--3 > .card:last-child {
        grid-column: auto;
    }
}

.card {
    background: var(--bg-card);
    padding: 2.2rem 2rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
    box-shadow: inset 0 0 0 1px transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Fill the grid cell */
    gap: 1.5rem;
}

.card h3, .card p {
    margin: 0;
}

.card .btn {
    margin-top: auto !important;
}

.card:hover {
    border-color: var(--accent-1);
    background: rgba(0, 255, 255, 0.05); /* Cyan Veil on hover */
    transform: translateY(-5px);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.card-investor:hover {
    border-color: hsl(260, 85%, 75%) !important;
    background: hsla(260, 85%, 75%, 0.05) !important; /* Lavender Veil on hover */
    box-shadow: inset 0 0 20px hsla(260, 85%, 75%, 0.05) !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -14px;
    width: 72px;
    height: 1px;
    background: var(--accent-1);
    transform-origin: center;
    transform: rotate(45deg);
    opacity: 0.4;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-1);
}

/* Category Markers */
.card:has(.heading-exec):hover { 
    border-color: hsl(180, 100%, 55%); 
    box-shadow: 0 0 15px hsla(180, 100%, 55%, 0.1), inset 0 0 30px hsla(180, 100%, 55%, 0.05);
}
.card:has(.heading-exec)::before { background: hsl(180, 100%, 55%); }
.card:has(.heading-exec):hover::before { 
    box-shadow: 0 0 15px hsl(180, 100%, 55%); 
}

.card:has(.heading-plan):hover,
.card:has(.philosophy-word):hover { 
    border-color: hsl(260, 85%, 75%); 
    background: hsla(260, 85%, 75%, 0.02);
    box-shadow: 0 0 15px hsla(260, 85%, 75%, 0.1), inset 0 0 30px hsla(260, 85%, 75%, 0.05);
}

.card:has(.heading-plan)::before,
.card:has(.philosophy-word)::before { background: hsl(260, 85%, 75%); }

.card:has(.heading-plan):hover::before,
.card:has(.philosophy-word):hover::before { 
    box-shadow: 0 0 15px hsl(260, 85%, 75%); 
}

.card-icon svg {
    color: var(--accent-1);
    opacity: 0.8;
}

.card:has(.heading-plan) .card-icon svg,
.card:has(.philosophy-word) .card-icon svg {
    color: hsl(260, 85%, 75%);
    opacity: 1;
}

.card:has(.heading-exec) .card-icon svg {
    color: hsl(180, 100%, 55%);
}

.card:hover .card-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px currentColor);
    opacity: 1;
}

.card-icon svg {
    transition: var(--transition);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.card h3 {
    font-size: clamp(0.9rem, 1.8vw, 1.25rem);
    margin: 0 !important;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-height: 1.5em;
}

.heading-exec::first-letter, .heading-roadmap::first-letter { color: hsl(180, 100%, 55%); text-shadow: 0 0 12px hsla(180, 100%, 55%, 0.5); }
.heading-plan::first-letter { color: hsl(260, 85%, 75%); text-shadow: 0 0 12px hsla(260, 85%, 75%, 0.5); }

/* Hexagon marker at end */
/* CSS-generated hexagons disabled in favor of manual HTML placement */
.heading-exec::after,
.heading-plan::after,
.heading-roadmap::after,
.gradient-dialog::after,
.gradient-spectrum::after {
    display: none !important;
}

.text-cyan {
    color: hsl(180, 100%, 55%);
}

.hero-hex {
    display: inline-block;
    width: 0.28em;
    height: 0.28em;
    margin-left: 0.15em;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, hsl(260, 85%, 75%), hsl(180, 100%, 55%));
    filter: drop-shadow(0 0 6px hsla(180, 100%, 55%, 0.7));
    animation: hex-pulse 4s infinite ease-in-out;
}

@keyframes hex-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 10px hsla(180, 100%, 55%, 0.9)); }
}

/* === 3-COLUMN GRID === */
.grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

/* === PHILOSOPHY PILLARS === */
.philosophy-word {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: #fff;
}

.philosophy-word::first-letter {
    color: hsl(260, 85%, 75%);
    text-shadow: 0 0 12px hsla(260, 85%, 75%, 0.5);
}

/* === FOOTER === */
footer {
    padding: 2rem 5%;
    background: rgba(8, 8, 8, 0.5);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    position: relative;
    z-index: 10;
    scroll-snap-align: end;
}

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

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.footer-links ul li a:hover { color: var(--accent-1); }

.footer-social { display: flex; gap: 1.5rem; }
.social-icon { color: var(--text-dim); transition: var(--transition); }
.social-icon:hover { color: var(--accent-1); }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-items {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 999;
        transform: none;
    }

    .nav-items.active {
        display: flex;
    }

    .nav-items a {
        width: auto;
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .header-actions {
        gap: 1rem;
    }

    .hero h1 { font-size: 3rem; }
    
    .grid, .grid--3, .grid--4 { 
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    section { padding: 6rem 5%; }
}

@media (max-width: 768px) {
    .grid, .grid--3, .grid--4 { 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid > .card, .grid--3 > .card {
        min-width: 0;
        padding: 1.8rem 1.5rem;
    }

    .haupt-wirkwerk h1 {
        font-size: 2.8rem;
    }

    .haupt-wirkwerk p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 3rem;
    }

    .card h3 {
        font-size: 1.1rem;
        white-space: normal;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dialog Type Selector */
.dialog-type-selector {
    margin-bottom: 2rem;
}
.type-btn {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}
.type-btn:hover {
    border-color: var(--accent-1);
    background: rgba(255,255,255,0.06);
}
.type-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-1);
    color: var(--accent-1);
    box-shadow: 0 0 20px hsla(250, 65%, 85%, 0.1);
}

/* Forms & Interactive Items */
.drag-item {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.drag-item:hover { border-color: var(--item-color, var(--accent-1)); background: rgba(255,255,255,0.1); }
.drag-item.active { background: var(--item-color, var(--accent-1)); color: black; border-color: var(--item-color, var(--accent-1)); box-shadow: 0 0 15px var(--item-color, var(--accent-1)); }

input, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

input:focus { border-color: var(--accent-1); }
.investor-page input:focus { border-color: hsl(260, 85%, 75%); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.card-investor:hover {
    background: rgba(255,255,255,0.06);
}
.card-investor .card-icon svg { color: hsl(260, 85%, 75%) !important; opacity: 1 !important; }
.card-investor:hover { border-color: hsl(260, 85%, 75%) !important; background: hsla(260, 85%, 75%, 0.05) !important; box-shadow: inset 0 0 20px hsla(260, 85%, 75%, 0.05) !important; }
.card-investor::before { background: hsl(260, 85%, 75%) !important; }
.card-investor:hover::before { box-shadow: 0 0 15px hsl(260, 85%, 75%) !important; }
.card-investor .mono { color: hsl(260, 85%, 75%) !important; }
.card-investor .heading-plan::first-letter,
.card-investor .heading-exec::first-letter { color: hsl(260, 85%, 75%) !important; text-shadow: 0 0 12px hsla(260, 85%, 75%, 0.5) !important; }
.card-investor .heading-plan::after,
.card-investor .heading-exec::after { background: hsl(260, 85%, 75%) !important; filter: drop-shadow(0 0 4px hsla(260, 85%, 75%, 0.7)) !important; }
.card-investor:hover .heading-plan::after,
.card-investor:hover .heading-exec::after { filter: drop-shadow(0 0 8px hsla(260, 85%, 75%, 0.95)) !important; }
.card-investor .btn-lavender-outline { border-color: hsl(260, 85%, 75%) !important; }

.card-blue .card-icon svg { color: hsl(220, 90%, 65%) !important; opacity: 1 !important; }
.card-blue:hover { border-color: hsl(220, 90%, 65%) !important; background: hsla(220, 90%, 65%, 0.05) !important; box-shadow: inset 0 0 20px hsla(220, 90%, 65%, 0.05) !important; }
.card-blue::before { background: hsl(220, 90%, 65%) !important; }
.card-blue:hover::before { box-shadow: 0 0 15px hsl(220, 90%, 65%) !important; }
.card-blue .heading-exec::first-letter,
.card-blue .heading-plan::first-letter,
.card-blue .heading-roadmap::first-letter { color: hsl(220, 90%, 65%) !important; text-shadow: 0 0 12px hsla(220, 90%, 65%, 0.5) !important; }
.card-blue .heading-exec::after,
.card-blue .heading-plan::after,
.card-blue .heading-roadmap::after { background: hsl(220, 90%, 65%) !important; filter: drop-shadow(0 0 4px hsla(220, 90%, 65%, 0.7)) !important; }
.card-blue:hover .heading-exec::after,
.card-blue:hover .heading-plan::after,
.card-blue:hover .heading-roadmap::after { filter: drop-shadow(0 0 8px hsla(220, 90%, 65%, 0.95)) !important; }
.card-blue .mono { color: hsl(220, 90%, 65%) !important; }
.card-blue h3 span { color: hsl(220, 90%, 65%) !important; }
.card-investor h3 span { color: hsl(260, 85%, 75%) !important; }
h1 span, h2 span, h3 span { color: var(--accent-1); }

#infra h2::after { display: none !important; }
