/* 
   ==========================================================================
   ANTIGRAVITY DESIGN SYSTEM - DEVELOPER GUIDE
   ==========================================================================
   This file defines the "Liquid Glass" design system for Lopez GmbH.
   Theme: High-End Enterprise / clinical / Pure Red, Black & White
   
   CRITICAL COMPONENTS:
   1. BACKGROUND BLOBS: Dynamic quantum-moving blurs (z-index: -2)
   2. TECHNICAL GRID: Fixed radial-dot pattern (z-index: -3)
   3. RACK SCHEMATIC: SVG-based server rack background links. 
      DO NOT REMOVE OR TRUNCATE the BASE64/SVG strings.
   4. LIQUID GLASS: Backdrop-blur panels with high-refraction borders.
   ==========================================================================
*/

/* --- CSS Reset & Variables --- */

:root {
    /* Typografie */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --container-width: 1400px;
    --border-radius: 32px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK MODE (DEFAULT) - RED BACKGROUND / BLACK BLOBS */
body.dark-mode {
    --clr-bg: #3e0307;
    /* Subtle red-black void, further lightened */
    --clr-text-primary: #ffffff;
    --clr-text-secondary: #e4e4e7;
    --clr-accent: #E20613;

    --glass-bg: rgba(0, 0, 0, 0.2);
    /* Lighter smoke */
    --glass-border-top: rgba(255, 255, 255, 0.1);
    --glass-border-bottom: rgba(0, 0, 0, 0.8);

    --glass-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);

    --glass-blur: blur(60px);
    --overlay-bg: rgba(0, 0, 0, 0.3);

    /* SUBTLE LAVA: Deep, low-contrast maroon & black (lightened further) */
    --blob-1: #91000c;
    --blob-2: #210000;
    --blob-3: #b50017;
    --blob-4: #050000;
    --blob-5: #050000;
}

/* LIGHT MODE */
body.light-mode {
    --clr-bg: #ffffff;
    /* Brilliant High-End White */
    --clr-text-primary: #09090b;
    --clr-text-secondary: #52525b;
    --clr-accent: #E20613;

    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border-top: rgba(255, 255, 255, 0.9);
    --glass-border-bottom: rgba(0, 0, 0, 0.08);

    --glass-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 1px 1px rgba(255, 255, 255, 1) inset,
        0 -1px 1px rgba(0, 0, 0, 0.03) inset;

    /* LIGHT GREY BLOBS */
    --blob-1: #d1d5db;
    --blob-2: #e5e7eb;
    --blob-3: #9ca3af;
    --blob-4: #f3f4f6;
    --blob-5: #cbd5e1;
    --blob-particle: #e2e8f0;
    --overlay-bg: rgba(255, 255, 255, 0); /* No darkening in light mode */
    --glass-blur: blur(80px);
}



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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-gutter: stable; /* Back to standard */
}

@media (max-width: 1750px) {
    html {
        font-size: 14.2px; /* Stable 80% look via rem-scaling instead of zoom */
    }
}

@media (max-width: 992px) {
    html {
        font-size: 16px; /* High legibility for mobile */
    }
}

@media (max-width: 992px) {
    body {
        zoom: 1; /* Reset zoom for mobile/tablet to use the native responsive layout */
        -moz-transform: none;
    }
}

html,
body {
    width: 100%;
    height: auto;
    min-height: 100%;
    background-color: var(--clr-bg);
    position: relative;
    /* Prevent layout-shift when modal opens (scrollbar disappearance) */
    scrollbar-gutter: stable;
    /* Clip horizontal overflow so the slide-in nav panel (translateX(100%))
       doesn't create a horizontal scrollbar / black bar on the right.
       'clip' (unlike 'hidden') does NOT suppress scrollbar-gutter. */
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-primary);
    line-height: 1.6;
    position: relative;
    display: flow-root;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

/* 
   BACKGROUND ARCHITECTURE (ORDER: Grid -> Blobs -> Rack -> Content)
   --------------------------------------------------------------------------
*/

/* 1. TECHNICAL GRID LAYER: High-dense clinical dot pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    /* Behind Blobs */
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 1;
}

body.light-mode::before {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* 
   2. SCHEMATIC SERVER RACK: These pseudo-elements create the 3D-depth 
      visualization of server racks on the outer edges. 
      Uses pure SVG Data URIs for razor-sharp rendering.
*/

.rack-schematic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Strictly limited to viewport to prevent ghost scrolling */
    pointer-events: none;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    overflow: hidden; /* Ensure no internal labels stretch the container */
}

/* ----------------------------------
   LIQUID BACKGROUND BLOBS
----------------------------------- */
.blob-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(0); /* Hardware acceleration hint */
}
/*
   ====================================================================
   CRITICAL: DO NOT DELETE OR MODIFY
   The following block defines the Dynamic Lava-Lamp Background Blobs.
   These elements are essential for the Liquid Glass refraction effect in
   both Light and Dark modes. Removing them destroys the "hyper-transparent" 
   aesthetic of the portal.
   ====================================================================
*/
.blob {
    position: absolute;
    border-radius: 50%;
    /* Default animation (overwritten individually below for organic flow) */
    animation: floatTurbulent 40s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transition: background-color 0.8s ease;
    will-change: transform;
    backface-visibility: hidden;
}

/* OPTIMIZED DYNAMIC MASSES */
/* OPTIMIZED DYNAMIC MASSES (Reduced count and blur for GPU fill-rate) */
/*
   CRITICAL: Individual Animations for the Lava Lamp Effect
   Do not change the absolute positioning, as it could misalign the light refraction!
*/
.blob-1 {
    width: 28vw;
    height: 28vw;
    background: var(--blob-1);
    top: 5%;
    left: 5%;
    opacity: 0.3;
    filter: blur(50px);
    animation: 
        floatThrough1 35s infinite alternate cubic-bezier(0.4, 0, 0.2, 1),
        blobMorph 18s infinite alternate ease-in-out;
}

.blob-2 {
    width: 22vw;
    height: 22vw;
    background: var(--blob-2);
    bottom: 5%;
    right: 5%;
    opacity: 0.3;
    filter: blur(50px);
    animation: 
        floatThrough2 42s infinite alternate-reverse ease-in-out,
        blobMorph 24s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    width: 32vw;
    height: 32vw;
    background: var(--blob-3);
    top: 40%;
    left: 35%;
    opacity: 0.25;
    filter: blur(50px);
    animation: 
        floatThrough3 38s infinite alternate ease-in-out,
        blobMorph 20s infinite alternate ease-in-out;
}

.blob-4 {
    width: 26vw;
    height: 26vw;
    background: var(--blob-4, #050508);
    top: 60%;
    left: 10%;
    opacity: 0.35;
    filter: blur(50px);
    animation: 
        floatThrough4 40s infinite alternate cubic-bezier(0.4, 0, 0.2, 1),
        blobMorph 22s infinite alternate ease-in-out;
}

.blob-5 {
    width: 30vw;
    height: 30vw;
    background: var(--blob-5, #111);
    top: 15%;
    right: 25%;
    opacity: 0.3;
    filter: blur(50px);
    animation: 
        floatThrough5 35s infinite alternate-reverse ease-in-out,
        blobMorph 19s infinite alternate-reverse ease-in-out;
}

/* Hide extra blobs in dark mode for subtler layout */
body.dark-mode .blob-4,
body.dark-mode .blob-5 {
    display: none;
}
/* ==================== END OF CRITICAL BLOB CSS ===================== */

@keyframes floatThrough1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40vw, 20vh) scale(1.2); }
    66% { transform: translate(70vw, 55vh) scale(0.8); }
    100% { transform: translate(60vw, 85vh) scale(1.1); }
}

@keyframes floatThrough2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-35vw, -45vh) scale(1.1); }
    66% { transform: translate(-65vw, -10vh) scale(0.9); }
    100% { transform: translate(-80vw, -65vh) scale(1.1); }
}

@keyframes floatThrough3 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(45vw, -35vh) scale(1.15); }
    66% { transform: translate(-25vw, -25vh) scale(0.85); }
    100% { transform: translate(-35vw, 45vh) scale(1.05); }
}

@keyframes floatThrough4 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50vw, -20vh) scale(1.1); }
    66% { transform: translate(80vw, 30vh) scale(0.9); }
    100% { transform: translate(40vw, 40vh) scale(1.05); }
}

@keyframes floatThrough5 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40vw, 40vh) scale(1.15); }
    66% { transform: translate(-20vw, 70vh) scale(0.85); }
    100% { transform: translate(-60vw, 20vh) scale(1.1); }
}

@keyframes blobMorph {
    0% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }

    33% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }

    66% {
        border-radius: 60% 40% 40% 60% / 40% 70% 30% 60%;
    }

    100% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}


/* ----------------------------------
   TRUE GLASSMORPHISM
----------------------------------- */
/* Base Glass Panel - Common properties */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid transparent;
    border-top: 1.5px solid var(--glass-border-top);
    border-left: 1.5px solid var(--glass-border-top);
    border-bottom: 2px solid var(--glass-border-bottom);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform, backdrop-filter;
}

body.light-mode .glass-panel,
body.light-mode .glass-sm {
    box-shadow:
        1px 1px 0px rgba(255, 255, 255, 1),
        2px 2px 0px rgba(0, 0, 0, 0.02),
        4px 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- SMALL GLASS MODIFIER (PURE REFRACTION) --- */
.glass-sm,
.pill,
.badge,
.icon-box,
.job-tag {
    background-image: none !important;
}

.glass-sm::after,
.pill::after,
.badge::after,
.icon-box::after,
.job-tag::after {
    display: none !important;
}

/* --- LIGHT VARIATION A (DYNAMIC) --- */
.glass-panel:nth-child(3n+1) {
    background-image:
        /* The Moving Specular (JS Driven) - Softened */
        linear-gradient(115deg, transparent calc(var(--ref-x, 48%) - 15%), rgba(255, 255, 255, 0.015) var(--ref-x, 48%), transparent calc(var(--ref-x, 48%) + 15%)),
        /* Top-Left Bevel Edge */
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 25%);
    background-attachment: scroll;
}

/* --- LIGHT VARIATION B (DYNAMIC) --- */
.glass-panel:nth-child(3n+2) {
    background-image:
        /* Broad Moving Light Beam (JS Driven) - Softened */
        linear-gradient(125deg, transparent calc(var(--ref-x, 50%) - 20%), rgba(255, 255, 255, 0.01) var(--ref-x, 50%), transparent calc(var(--ref-x, 50%) + 20%)),
        /* Large Highlight */
        linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    background-attachment: scroll;
}

/* --- LIGHT VARIATION C (DYNAMIC) --- */
.glass-panel:nth-child(3n) {
    background-image:
        /* Dual Fixed Beams (JS Driven) - Softened */
        linear-gradient(110deg, transparent calc(var(--ref-x, 42%) - 8%), rgba(255, 255, 255, 0.015) calc(var(--ref-x, 42%) - 2%), transparent var(--ref-x, 42%), rgba(255, 255, 255, 0.01) calc(var(--ref-x, 42%) + 8%), transparent calc(var(--ref-x, 42%) + 12%)),
        /* Soft Rim */
        linear-gradient(125deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    background-attachment: scroll;
}

/* --- LIGHT MODE SPECIFIC ENHANCEMENTS --- */
body.light-mode .glass-panel:nth-child(3n+1) {
    background-image:
        linear-gradient(115deg, transparent calc(var(--ref-x, 48%) - 15%), rgba(255, 255, 255, 0.4) var(--ref-x, 48%), transparent calc(var(--ref-x, 48%) + 15%)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 25%);
}

body.light-mode .glass-panel:nth-child(3n+2) {
    background-image:
        linear-gradient(125deg, transparent calc(var(--ref-x, 50%) - 20%), rgba(255, 255, 255, 0.3) var(--ref-x, 50%), transparent calc(var(--ref-x, 50%) + 20%)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
}

body.light-mode .glass-panel:nth-child(3n) {
    background-image:
        linear-gradient(110deg, transparent calc(var(--ref-x, 42%) - 8%), rgba(255, 255, 255, 0.4) calc(var(--ref-x, 42%) - 2%), transparent var(--ref-x, 42%), rgba(255, 255, 255, 0.3) calc(var(--ref-x, 42%) + 8%), transparent calc(var(--ref-x, 42%) + 12%)),
        linear-gradient(125deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
}

/* --- Hero Trust Badges --- */
.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-badge svg {
    color: var(--clr-accent);
    opacity: 0.8;
}

/* --- Floating Hardware Hero --- */
/* REVERTED AS REQUESTED */

/* Layout Cleanup - Spacing restored as requested */

/* --- Global Section Padding --- */
section.offset-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* --- SIZE-DEPENDENT SCALE (Overridden for Large Sections) --- */
section.glass-panel,
.hero.glass-panel {
    background-image:
        linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 90%);
    background-attachment: fixed;
}



/* --- FALLING LIGHT (Refined) --- */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- PERPETUAL SHINE (Randomized) --- */
.glass-panel::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0) 55%,
            transparent 100%);
    transform: rotate(25deg);
    animation: perpetualShine 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 2;
}

/* Individual Timing Variation */
.glass-panel:nth-child(2n)::after {
    animation-duration: 12s;
    animation-delay: -3s;
}

.glass-panel:nth-child(3n)::after {
    animation-duration: 18s;
    animation-delay: -9s;
}

.glass-panel:nth-child(4n)::after {
    animation-duration: 10s;
    animation-delay: -1s;
}

@keyframes perpetualShine {
    0% {
        transform: rotate(25deg) translateY(-100%);
    }

    15%,
    100% {
        transform: rotate(25deg) translateY(100%);
    }
}



/* True Glassmorphism effects handled in .glass-panel */

/* The Glare / Light Reflection Effect inside the glass */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.glass-panel:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 40px 80px -15px rgba(0, 0, 0, 0.9),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.light-mode .glass-panel:hover {
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 1);
}

.glass-panel:hover::before {
    left: 200%;
    transition: left 0.8s ease-in-out;
}

/* SMART CONNECTIVITY BEAMS */
.beam-pulse {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
    position: relative;
    overflow: hidden;
}

.beam-pulse::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    animation: beamFlow 3s infinite linear;
}

@keyframes beamFlow {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}

.beam-pulse:nth-child(2)::after {
    animation-delay: 0.4s;
}

.beam-pulse:nth-child(3)::after {
    animation-delay: 1.2s;
}

.beam-pulse:nth-child(4)::after {
    animation-delay: 0.8s;
}

/* ----------------------------------
   TYPOGRAPHY & LAYOUT
----------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--clr-text-primary);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 2;
}

a {
    text-decoration: none;
    color: var(--clr-text-primary);
    transition: var(--transition);
}

.subline,
.sub-text {
    font-size: 1.25rem;
    color: var(--clr-text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.text-accent {
    color: var(--clr-accent) !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    /* Responsive sizing to stay between the server rack rails */
    width: min(var(--container-width), calc(100vw - 360px));
}

.offset-section {
    margin-top: 3rem; /* Reduced from 5rem globally */
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 3rem;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .section-header {
        text-align: center;
    }
}

.section-header h2 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

/* Elite Tech Tags */
.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(226, 6, 19, 0.1);
    border: 1px solid rgba(226, 6, 19, 0.2);
    border-radius: 4px;
    color: var(--clr-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-tag:last-child {
    margin-right: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    border: none;
}

.btn-glass {
    color: var(--clr-text-primary);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-top);
    box-shadow: var(--glass-shadow);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* High contrast Red Button for CI - Crisp & Sharp */
.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent) 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(226, 6, 19, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f01d2a 0%, var(--clr-accent) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(226, 6, 19, 0.5);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* ----------------------------------
   HEADER NAVIGATION (FORCE GLASS)
----------------------------------- */
.glass-header {
    background: rgba(3, 3, 3, 0.01) !important;
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: var(--container-width);
    /* Sync header width with container for rack-alignment */
    width: min(var(--container-width), calc(100vw - 360px));
    background: var(--glass-bg);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid var(--glass-border-bottom);
    border-top-color: var(--glass-border-top);
    border-radius: 24px;
    z-index: 1000;
    height: 88px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 76px;
    width: auto;
    object-fit: contain;
}

body.dark-mode .brand-logo {
    filter: none;
    /* Removed glow from logo */
}

.company-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-controls nav {
    display: flex;
    gap: 2rem;
}

.nav-controls nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-secondary);
}

.nav-controls nav a:hover {
    color: var(--clr-text-primary);
}

.settings-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

#mobile-menu-btn.mobile-only {
    display: none;
}

/* The mobile nav footer is injected by JS into the nav element.
   On desktop the nav is a horizontal flex row — hide the footer there. */
.mobile-nav-footer {
    display: none;
}

@media (max-width: 992px) {
    #mobile-menu-btn.mobile-only {
        display: flex;
    }
}

/* MOBILE NAV OVERLAY — gilt nur zwischen 769px und 992px */
/* Auf ≤768px übernimmt der dedizierte Mobile-Block weiter unten */
@media (min-width: 769px) and (max-width: 992px) {
    .nav-controls nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(80px);
        -webkit-backdrop-filter: blur(80px);
        display: none; /* Controlled by toggle */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        z-index: 2000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-controls nav.mobile-open {
        display: flex;
        opacity: 1;
    }

    .nav-controls nav a {
        font-size: 2rem;
        color: var(--clr-text-primary);
    }
}

body.light-mode .settings-group {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--clr-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.icon-btn:hover {
    color: var(--clr-text-primary);
    background: rgba(150, 150, 150, 0.1);
}

.sun-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}

body.light-mode .sun-icon {
    display: none;
}

body.light-mode .moon-icon {
    display: block;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border-bottom);
    position: relative;
    gap: 0.2rem;
}

.lang-switcher button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--clr-text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    z-index: 2;
}

.lang-switcher button.active {
    color: #fff;
    background: var(--clr-accent);
    box-shadow: 0 2px 10px rgba(226, 6, 19, 0.3);
}

.lang-switcher button:hover:not(.active) {
    color: var(--clr-text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Legal pages (Impressum, Datenschutz) responsive top padding */
.legal-main {
    padding-top: 180px;
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .legal-main {
        padding-top: 90px;
        padding-bottom: 3rem;
    }

    /* Legal content glass panel: less inner padding on mobile */
    .legal-main .glass-panel {
        padding: 2rem 1.25rem !important;
    }

    .legal-main h1 {
        font-size: 2rem !important;
        padding-left: 1rem !important;
    }
}

/* ----------------------------------
   HERO SECTION
----------------------------------- */
.hero {
    padding-top: 8rem;
    margin-top: 0;
}

.hero-glass {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 3.5rem 5rem;
    gap: 4rem;
    min-height: 500px;
}

.hero-text {
    flex: 1.2;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-text .subline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    flex: 0.8;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* ----------------------------------
   PORTFOLIO GRID
----------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    perspective: 1200px;
    /* Add base perspective */
}

/* Featured Card (Top Level) */
.main-feature-card {
    padding: 4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    justify-content: center;
    text-align: left;
    border-bottom: 4px solid var(--clr-accent);
}

.main-feature-card .card-icon {
    flex: 0 0 auto;
}

.main-feature-card .card-text {
    max-width: 800px;
}

.main-feature-card .card-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.main-feature-card .card-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    color: var(--clr-text-secondary);
}

@media (max-width: 768px) {
    .main-feature-card {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding: 3rem 2rem;
    }
    
    .main-feature-card .card-text {
        max-width: 100%;
    }
    
    .main-feature-card .card-text p {
        margin: 0 auto;
    }
}


.card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    /* transition is managed via JS for the 3D tilt */
}

.card:hover {
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 1), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

body.light-mode .card:hover {
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.15), inset 0 2px 3px rgba(255, 255, 255, 1);
}



.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--clr-text-secondary);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* ----------------------------------
   PARTNERS SECTION
----------------------------------- */
.partner-glass {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-meta {
    max-width: 800px;
    margin-bottom: 4rem;
    padding: 0 5rem;
}

.partner-meta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    padding-left: 2rem;
    animation: marquee 25s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.chip {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text-primary);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.light-mode .chip {
    background: rgba(0, 0, 0, 0.02);
}

/* ----------------------------------
   OPERATIONS DASHBOARD
 ----------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

.stat-card {
    padding: clamp(1.5rem, 4vw, 3rem) 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum";
}

.stat-label {
    font-size: 1.1rem;
    color: var(--clr-text-secondary);
    font-weight: 600;
}

/* ----------------------------------
   TIMELINE OF TRUST
----------------------------------- */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 5rem auto 2rem; /* Reduced bottom margin from 5rem to 2rem */
    padding: 5rem 0 2rem;   /* Reduced bottom padding from 5rem to 2rem */
    display: flex;
    flex-direction: column;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

body.light-mode .timeline-line {
    background: rgba(0, 0, 0, 0.1);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    background: linear-gradient(to bottom,
            rgba(226, 6, 19, 0.8),
            #ff3d3d,
            rgba(226, 6, 19, 1));
    transform: translateX(-50%);
    height: 0%;
    /* Intense Glow Effect */
    box-shadow:
        0 0 15px rgba(226, 6, 19, 0.6),
        0 0 5px rgba(255, 255, 255, 0.4);
    z-index: 1;
}

/* Pulsating "Laser" Tip */
.timeline-progress::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 20px #ff3d3d,
        0 0 10px #fff;
    animation: tipPulse 1.5s ease-in-out infinite;
}

@keyframes tipPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0.8;
    }
}

.timeline-event {
    position: relative;
    width: 100%;
    height: 400px; /* Reduced vertical step for a more compact layout */
    display: flex;
    align-items: center;
}

.left-event {
    justify-content: flex-start;
}

.right-event {
    justify-content: flex-end;
}

.tl-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--clr-bg);
    border: 4px solid var(--clr-accent);
    border-radius: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
}

.tl-content {
    width: 45%; /* Slightly narrowed for a more refined look */
    padding: 2rem 2.5rem; /* Reduced padding for compact feel */
    position: relative;
    z-index: 2;
    /* We don't use absolute here so the card's height is respected,
       but the event container's HEIGHT ensures the dot spacing. 
       If cards are very tall, they will naturally overflow/overlap 
       because the container is only 320px high. */
}

.left-event .tl-content {
    margin-right: calc(50% + 4rem); /* Push away from center line */
    text-align: right;
}

.right-event .tl-content {
    margin-left: calc(50% + 4rem); /* Push away from center line */
    text-align: left;
}

/* Specific image styling for timeline */
.tl-image-wrapper {
    width: 100%;
    height: 180px; /* Reduced for better balance */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.timeline-event:hover .tl-img {
    transform: scale(1.1);
}

.tl-content h3 {
    color: var(--clr-accent);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ----------------------------------
   ZERO-TRUST SECURITY
----------------------------------- */
.security-stage {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.sec-hologram {
    flex: 1;
    position: relative;
    height: 400px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-core {
    width: 60px;
    height: 60px;
    color: var(--clr-text-primary);
    position: relative;
    z-index: 10;
    animation: floatCore 4s ease-in-out infinite;
}

@keyframes floatCore {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sec-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

body.light-mode .sec-ring {
    border-color: rgba(0, 0, 0, 0.2);
}

.sec-ring span {
    background: var(--clr-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: translateY(-50%) rotateX(-70deg);
    color: var(--clr-text-secondary);
    border: 1px solid var(--glass-border-bottom);
}

.ring-outer {
    width: 350px;
    height: 350px;
    animation: spinRing 20s linear infinite;
    transform: rotateX(70deg);
}

.ring-middle {
    width: 250px;
    height: 250px;
    animation: spinRing 15s linear infinite reverse;
    transform: rotateX(70deg);
}

.ring-inner {
    width: 150px;
    height: 150px;
    animation: spinRing 10s linear infinite;
    transform: rotateX(70deg);
}

.sec-ring:hover {
    border-color: var(--clr-accent);
    border-style: solid;
    /* Removed glow shadow */
    animation-play-state: paused;
}

.sec-ring:hover span {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

@keyframes spinRing {
    100% {
        transform: rotateX(70deg) rotateZ(360deg);
    }
}

.sec-info {
    flex: 1;
    padding: 3rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sec-info p {
    font-size: 1.2rem;
    color: var(--clr-text-secondary);
    margin-top: 1rem;
}

/* ----------------------------------
   TECH STACK HEXAGONS
----------------------------------- */
/* ----------------------------------
   TECH STACK HEXAGONS (Permanent Geometric Fix)
----------------------------------- */
.hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -20px;
    margin-top: 2rem;
}

.hex-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: -30px;
}

.hex-row:first-child {
    margin-top: 0;
}

/* Unified Hexagonal Geometric Alignment */
#tech-stack .hex,
#tech-stack .hex::before,
#tech-stack .hex::after {
    width: 140px;
    height: 160px;
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    overflow: hidden !important;
    transition: transform 0.4s, background 0.4s, clip-path 0s, border-radius 0s;
}

#tech-stack .hex {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* Decoupled Glass properties */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none !important;
    box-shadow: none !important;
    z-index: 1;
}

/* Specific Hex Glass Reflections (Manual Override) */
#tech-stack .hex::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

body.light-mode #tech-stack .hex {
    background: rgba(0, 0, 0, 0.08);
    /* Stronger definition against white */
}

body.light-mode #tech-stack .hex::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
}

#tech-stack .hex:hover {
    transform: scale(1.1);
    background: rgba(226, 6, 19, 0.1);
    color: var(--clr-accent);
}

/* ----------------------------------
   EDGE NETWORK MAP
----------------------------------- */
.map-container {
    height: 450px;
    position: relative;
    padding: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

body.light-mode .map-container {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

.world-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.laser-link {
    animation: pulseLaser 3s infinite alternate;
}

@keyframes pulseLaser {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

.map-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.node-label {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid var(--glass-border-top);
}

/* ----------------------------------
   PREMIUM TESTIMONIALS CAROUSEL
----------------------------------- */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    perspective: 1200px;
    height: 350px;
}

.carousel-track {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.testi-card {
    position: absolute;
    width: 450px;
    padding: 3rem;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.testi-card .stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.testi-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Multi-state carousel positioning */
.testi-card[data-pos="0"] {
    transform: translateX(0) translateZ(100px) scale(1);
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    border-color: var(--glass-border-top);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.testi-card[data-pos="-1"] {
    transform: translateX(-300px) translateZ(-100px) scale(0.85) rotateY(15deg);
    opacity: 0.4;
    z-index: 2;
}

.testi-card[data-pos="1"] {
    transform: translateX(300px) translateZ(-100px) scale(0.85) rotateY(-15deg);
    opacity: 0.4;
    z-index: 2;
}

.testi-card[data-pos="left-hidden"] {
    transform: translateX(-500px) translateZ(-200px) scale(0.6);
    opacity: 0;
}

.testi-card[data-pos="right-hidden"] {
    transform: translateX(500px) translateZ(-200px) scale(0.6);
    opacity: 0;
}

.carousel-btn {
    border-radius: 50%;
    width: 54px;
    height: 54px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-bottom);
    color: var(--clr-text-primary);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(226, 6, 19, 0.2);
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

/* Responsive adjustments for new features */
@media (max-width: 992px) {
    .security-stage {
        flex-direction: column;
    }

    .carousel-container {
        height: 450px;
    }

    .testi-card[data-pos="-1"],
    .testi-card[data-pos="1"] {
        opacity: 0;
        pointer-events: none;
    }
}

/* ----------------------------------
   SUPPORT & FOOTER
----------------------------------- */
.footer-glass {
    padding: 0;
    overflow: hidden;
}

.support-banner {
    padding: 5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(0, 0, 0, 0) 100%);
    border-bottom: 1px solid var(--glass-border-bottom);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.support-info {
    flex: 1;
}

.support-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.support-info p {
    font-size: 1.25rem;
    color: var(--clr-text-secondary);
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 5;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulseStatus 2s infinite;
}

.status-text {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.95rem;
}

body.light-mode .live-status {
    background: rgba(22, 163, 74, 0.1);
}

body.light-mode .status-text {
    color: #16a34a;
}

@keyframes pulseStatus {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.support-action {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4rem 5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border-bottom);
    border-top: 1.5px solid var(--glass-border-top);
}

.brand-logo-large {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h4 {
    color: var(--clr-text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-link {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    border-top: 1px solid var(--glass-border-bottom);
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--clr-text-secondary);
    margin-left: 2rem;
}

.footer-legal a:hover {
    color: var(--clr-text-primary);
}

/* ----------------------------------
   ANIMATIONS (Fade-Up Reveals)
----------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    /* Reduced from 40px for faster feel */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

[style*="--delay"] {
    transition-delay: calc(var(--delay) * 0.15s);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-glass {
        flex-direction: column-reverse;
        padding: 3rem;
        padding-top: 5rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .support-banner {
        flex-direction: column;
        text-align: center;
    }

    .support-action {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 992px) {
    /* Hide Server Rack Railing on mobile to save space */
    .rack-schematic, .rail-glass {
        display: none !important;
    }

    .nav-controls {
        gap: 1rem;
    }

    .settings-group {
        border-left: none;
        padding-left: 0;
        gap: 0.8rem;
    }

    .glass-header {
        height: 72px; /* Smaller header for mobile */
        width: calc(100% - 2rem);
        top: 1rem;
    }

    .brand-logo {
        height: 52px;
    }

    .company-name {
        display: none; /* Hide long name on mobile */
    }

    .container {
        padding: 0 2rem;
    }

    /* SCALE UP BLOBS FOR MOBILE */
    .blob-1 { width: 80vw; height: 80vw; left: -10%; top: -10%; }
    .blob-2 { width: 70vw; height: 70vw; right: -10%; bottom: -10%; }
    .blob-3 { width: 90vw; height: 90vw; left: 5%; top: 20%; }
    .blob-4 { width: 60vw; height: 60vw; left: 10%; bottom: 15%; }
    .blob-5 { width: 50vw; height: 50vw; right: 20%; top: 40%; }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hex-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hex-row, .hex-row.odd {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-left: 0;
    }

    .hex {
        clip-path: none;
        width: 100%;
        max-width: 280px;
        height: auto;
        padding: 1.5rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border-bottom);
        border-radius: 12px;
    }

    .hex span {
        font-size: 1.2rem;
    }
}

/* 3D Flip Card System for Portfolio/Competencies */
.flip-card {
    background-color: transparent;
    perspective: 1200px;
    /* Enhanced depth */
    min-height: 280px;
    z-index: 1;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.flip-card:hover {
    z-index: 20;
    /* Ensure it stays on top of neighbors while rotating */
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    padding: 2.5rem;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.03);
    /* Near-Total Transparency */
    backdrop-filter: blur(45px);
    /* Strong blur to maintain definition */
    -webkit-backdrop-filter: blur(45px);
}

body.light-mode .flip-card-front,
body.light-mode .flip-card-back {
    background: rgba(255, 255, 255, 0.1);
}

/* Reflexions-Effekt (Shine) */
.flip-card-front::after,
.flip-card-back::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 60%,
            transparent 100%);
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 5;
}

.flip-card:hover .flip-card-front::after,
.flip-card:hover .flip-card-back::after {
    transform: rotate(25deg) translateX(100%);
}

.flip-card-front {
    /* Front Side inherits standard glass panel styles */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    border: 1.5px solid transparent;
    border-top-color: var(--glass-border-top);
    border-left-color: var(--glass-border-top);
    border-bottom-color: var(--glass-border-bottom);
    border-right-color: var(--glass-border-bottom);

    box-shadow: var(--glass-shadow);
}

.flip-card-back {
    /* Back Side - Hyper-Transparent Glass */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);

    background-image:
        linear-gradient(115deg, transparent calc(var(--ref-x, 48%) - 15%), rgba(255, 255, 255, 0.05) var(--ref-x, 48%), transparent calc(var(--ref-x, 48%) + 15%)),
        radial-gradient(circle at center, rgba(226, 6, 19, 0.08) 0%, transparent 80%);

    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--glass-border-top);
    border-left-color: var(--glass-border-top);

    color: var(--clr-text-primary);
    transform: rotateY(180deg);
    text-align: left;
    align-items: flex-start;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

body.light-mode .flip-card-back {
    background: rgba(255, 255, 255, 0.15);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    color: var(--clr-text-primary);
    border-color: rgba(0, 0, 0, 0.05);
}

/* ----------------------------------
   SCHEMATIC SERVER RACK (CORRECTED LAYOUT ORDER)
----------------------------------- */
:root {
    --rack-offset: 0;
}

.rack-schematic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    /* Prevents overflow of generated labels */
}

.rack-schematic::before,
.rack-schematic::after {
    content: '';
    width: 165px;
    height: 100%;
    position: absolute;
    top: 0;
    opacity: 0.25;
    z-index: 1;

    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='165'%20height='120'%3E%3C!--%20BOLD%20START%20Marker%20at%20y=0%20--%3E%3Cline%20x1='80'%20y1='0'%20x2='110'%20y2='0'%20stroke='white'%20stroke-opacity='0.9'%20stroke-width='3'/%3E%3Cline%20x1='80'%20y1='40'%20x2='100'%20y2='40'%20stroke='white'%20stroke-opacity='0.3'/%3E%3Cline%20x1='80'%20y1='80'%20x2='100'%20y2='80'%20stroke='white'%20stroke-opacity='0.3'/%3E%3Crect%20width='50'%20height='120'%20fill='white'%20fill-opacity='0.15'/%3E%3Crect%20x='48'%20width='2'%20height='120'%20fill='white'%20fill-opacity='0.3'/%3E%3Cline%20x1='55'%20y1='0'%20x2='55'%20y2='120'%20stroke='white'%20stroke-opacity='0.15'/%3E%3Cline%20x1='65'%20y1='0'%20x2='65'%20y2='120'%20stroke='white'%20stroke-opacity='0.15'/%3E%3Cline%20x1='75'%20y1='0'%20x2='75'%20y2='120'%20stroke='white'%20stroke-opacity='0.15'/%3E%3Ccircle%20cx='65'%20cy='60'%20r='2.5'%20fill='white'%20fill-opacity='0.3'/%3E%3Cline%20x1='80'%20y1='0'%20x2='80'%20y2='120'%20stroke='white'%20stroke-opacity='0.1'/%3E%3C!--%20Hole%201%20with%20Inner%20Shadow%20--%3E%3Crect%20x='120'%20y='2'%20width='28'%20height='28'%20rx='1'%20fill='black'%20fill-opacity='0.6'/%3E%3Cpath%20d='M120%202h28v28h-28z'%20fill='none'%20stroke='white'%20stroke-opacity='0.2'%20stroke-width='1'/%3E%3C!--%20Hole%202%20--%3E%3Crect%20x='120'%20y='42'%20width='28'%20height='28'%20rx='1'%20fill='black'%20fill-opacity='0.6'/%3E%3Cpath%20d='M120%2042h28v28h-28z'%20fill='none'%20stroke='white'%20stroke-opacity='0.2'%20stroke-width='1'/%3E%3C!--%20Hole%203%20--%3E%3Crect%20x='120'%20y='82'%20width='28'%20height='28'%20rx='1'%20fill='black'%20fill-opacity='0.6'/%3E%3Cpath%20d='M120%2082h28v28h-28z'%20fill='none'%20stroke='white'%20stroke-opacity='0.2'%20stroke-width='1'/%3E%3Crect%20x='164'%20width='1'%20height='120'%20fill='white'%20fill-opacity='0.6'/%3E%3C/svg%3E");
    background-size: 165px 120px;
    background-repeat: repeat-y;
}

@media (max-width: 1750px) {
    /* Manual overrides removed - handled by global zoom */
}

.rack-schematic::before {
    left: 0;
    box-shadow: 25px 0 45px -15px rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.rack-schematic::after {
    right: 0;
    transform: scaleX(-1);
    box-shadow: 25px 0 45px -15px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.u-labels {
    position: absolute;
    top: 0;
    color: var(--clr-text-secondary);
    font-size: 0.73rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.65;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* LIQUID GLASS RACK RAILS */
.rail-glass {
    position: absolute;
    top: 0;
    width: 165px;
    height: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 0;
}

@media (max-width: 1750px) {
    /* Manual overrides removed - handled by global zoom */
}

.rail-glass.left-rail {
    left: 0;
}

.rail-glass.right-rail {
    right: 0;
}

.u-labels.left {
    left: 82px;
    text-align: left;
}

@media (max-width: 1750px) {
    .u-labels.left {
        left: 65px;
    }
}

.u-labels.right {
    right: 82px;
    text-align: right;
}

@media (max-width: 1750px) {
    .u-labels.right {
        right: 65px;
    }
}

.u-label {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    margin-top: 0;
    transform: translateY(-8px);
    /* Visueller Lift ohne den Layout-Fluss (120px Raster) zu stören */
    line-height: 1;
}

.u-label span.dash {
    margin-top: 35px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* LIGHT MODE SUPPORT - Corrected Order & Hard Edge */
body.light-mode .rack-schematic::before,
body.light-mode .rack-schematic::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='165'%20height='120'%3E%3Cline%20x1='80'%20y1='0'%20x2='110'%20y2='0'%20stroke='black'%20stroke-opacity='0.5'%20stroke-width='3'/%3E%3Cline%20x1='80'%20y1='40'%20x2='100'%20y2='40'%20stroke='black'%20stroke-opacity='0.2'/%3E%3Cline%20x1='80'%20y1='80'%20x2='100'%20y2='80'%20stroke='black'%20stroke-opacity='0.2'/%3E%3Crect%20width='50'%20height='120'%20fill='black'%20fill-opacity='0.05'/%3E%3Crect%20x='48'%20width='2'%20height='120'%20fill='black'%20fill-opacity='0.1'/%3E%3Cline%20x1='55'%20y1='0'%20x2='55'%20y2='120'%20stroke='black'%20stroke-opacity='0.1'/%3E%3Cline%20x1='65'%20y1='0'%20x2='65'%20y2='120'%20stroke='black'%20stroke-opacity='0.1'/%3E%3Cline%20x1='75'%20y1='0'%20x2='75'%20y2='120'%20stroke='black'%20stroke-opacity='0.1'/%3E%3Ccircle%20cx='65'%20cy='60'%20r='2.5'%20fill='black'%20fill-opacity='0.1'/%3E%3Cline%20x1='80'%20y1='0'%20x2='80'%20y2='120'%20stroke='black'%20stroke-opacity='0.08'/%3E%3Crect%20x='120'%20y='2'%20width='28'%20height='28'%20rx='1'%20fill='black'%20fill-opacity='0.1'/%3E%3Cpath%20d='M120%202h28v28h-28z'%20fill='none'%20stroke='black'%20stroke-opacity='0.2'%20stroke-width='1'/%3E%3Crect%20x='120'%20y='42'%20width='28'%20height='28'%20rx='1'%20fill='black'%20fill-opacity='0.1'/%3E%3Cpath%20d='M120%2042h28v28h-28z'%20fill='none'%20stroke='black'%20stroke-opacity='0.2'%20stroke-width='1'/%3E%3Crect%20x='120'%20y='82'%20width='28'%20height='28'%20rx='1'%20fill='black'%20fill-opacity='0.1'/%3E%3Cpath%20d='M120%2082h28v28h-28z'%20fill='none'%20stroke='black'%20stroke-opacity='0.2'%20stroke-width='1'/%3E%3Cline%20x1='163'%20y1='0'%20x2='163'%20y2='120'%20stroke='black'%20stroke-opacity='0.25'/%3E%3C/svg%3E");
    background-position-y: calc(var(--rack-offset) * -1px);
}

/* ----------------------------------
   IMAGE PLACEHOLDERS
----------------------------------- */
.tl-image-wrapper {
    width: 100%;
    height: 280px; /* Reduced slightly for better balance */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.tl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-event:hover .tl-img {
    transform: scale(1.08);
}

body.light-mode .tl-image-wrapper {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ----------------------------------
   PARTNER MARQUEE (Ticker)
----------------------------------- */
.partner-marquee-panel {
    padding: 3rem 0;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.partner-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1rem 0;
    /* Soft fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partner-marquee-track {
    display: flex;
    width: max-content;
    gap: 6rem;
    padding-left: 3rem;
    animation: partner-scroll 45s linear infinite;
}

.partner-marquee-track:hover {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 140px; /* Increased height for square-ish logos */
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-badge-img {
    max-height: 85px; /* Increased height to favor square-ish logos */
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-scality {
    max-height: 105px !important; /* Scality should be significantly larger */
    max-width: 210px !important;
}

body.light-mode .partner-badge-img {
    opacity: 1;
}

.partner-item:hover .partner-badge-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(226, 6, 19, 0.2));
}

body.light-mode .partner-item:hover .partner-badge-img {
    opacity: 1;
}

.partner-badge-placeholder {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: none;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.partner-item:hover .partner-badge-placeholder {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px currentColor);
}

.partner-name {
    margin-top: 1rem;
    font-size: 0.95rem;
    /* Von 0.8rem vergrößert */
    font-weight: 700;
    color: var(--clr-text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    /* Von 0.6 verringert */
}

@keyframes partner-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partner-marquee-track {
        gap: 3rem;
        animation-duration: 30s;
    }
}

/* ----------------------------------
   GLOBAL SCROLLBAR REFINEMENT
----------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(226, 6, 19, 0.5);
    border-radius: 10px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(226, 6, 19, 0.6);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 6, 19, 0.4) transparent;
}

/* ----------------------------------
   LIGHT MODE RACK TWEAKS
----------------------------------- */
body.light-mode .u-labels {
    opacity: 0.45;
}

body.light-mode .u-label div {
    color: #444;
    font-weight: 700;
}

body.light-mode .rack-schematic::before,
body.light-mode .rack-schematic::after {
    border-color: rgba(255, 255, 255, 0.05);
}

.flip-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 85% auto;
    background-repeat: no-repeat;
    background-position: center bottom 10%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-back::before {
    transform: scale(1.1);
}

.flip-card-back * {
    position: relative;
    z-index: 1;
}

.schematic-virt::before {
    background-image: url('images/schematic_virtualization.png');
}

.schematic-storage::before {
    background-image: url('images/schematic_storage.png');
}

.schematic-network::before {
    background-image: url('images/schematic_networking.png');
}

.schematic-firewall::before {
    background-image: url('images/schematic_firewall.png');
}

.schematic-hardware::before {
    background-image: url('images/schematic_hardware.png');
}

.schematic-software::before {
    background-image: url('images/schematic_software.png');
}

.schematic-cloud::before {
    background-image: url('images/schematic_cloud.png');
}

.schematic-consulting::before {
    background-image: url('images/schematic_consulting.png');
}

/* 
   3. UNIFIED CONTACT & SUPPORT SYSTEM
   --------------------------------------------------------------------------
   This section defines the two high-impact, information-dense tiles 
   at the bottom of the page. They are designed to be the primary 
   conversion points for Sales and Technical Support.
*/

.meta-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.contact-info-hub {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem; /* Reduced from 2rem */
    margin: 1.2rem 0; /* Reduced from 2rem */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

body.light-mode .contact-info-hub {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.contact-info-hub:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(226, 6, 19, 0.2);
}

.contact-links-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ----------------------------------
   UNIFIED CONTACT GRID
----------------------------------- */
.unified-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .unified-contact-grid {
        grid-template-columns: 1fr !important;
    }
}

#contact.offset-section {
    padding-top: 2rem; /* Reduced from 4rem */
    padding-bottom: 2rem; /* Reduced from 4rem */
}

.contact-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 5vw, 3rem);
    min-height: auto;
    height: 100%;
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-bottom);
}

.contact-tile:hover {
    transform: translateY(-10px) scale(1.01);
    background: rgba(255, 255, 255, 0.05);
}

.tile-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.tile-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem; /* Reduced from 2rem */
}

body.light-mode .tile-footer {
    border-top-color: rgba(0, 0, 0, 0.05);
}

.hotline-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--clr-text-primary);
}

.hotline-display.text-accent {
    color: var(--clr-accent) !important;
}

/* ----------------------------------
   1U SERVER CHASSIS HEADER (HIGH-FIDELITY RACK SYNC)
   ----------------------------------- */
.chassis-1u-header {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 100px;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

@media (max-width: 1750px) {
    .chassis-1u-header {
        width: 100vw; /* Standard full width in the non-zoomed system */
    }
}

/* Montage-Ohren (Bolted to rails) */
.chassis-ear {
    position: absolute;
    width: 110px; /* Spans across the background rail holes */
    height: 70px;
    background: linear-gradient(to bottom, #1a1a1e, #0a0a0c);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.chassis-ear.left {
    left: 120px; /* Align with background SVG rect x=120 */
    border-radius: 4px 2px 2px 4px;
    border-right: 3px solid #222;
}

.chassis-ear.right {
    right: 120px;
    border-radius: 2px 4px 4px 2px;
    border-left: 3px solid #222;
}

.bolt-hole {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 5px rgba(0,0,0,0.9),
        0 1px 1px rgba(255,255,255,0.1);
    position: relative;
}

.bolt-hole::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #000;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); /* Hex Bolt */
}

/* Chassis Main Body (The Blade) */
.chassis-body {
    position: absolute;
    left: calc(120px + 110px);
    right: calc(120px + 110px);
    height: 70px;
    background: #0d0d0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

/* Hex Mesh Ventilation Grid */
.chassis-mesh {
    position: absolute;
    inset: 4px;
    background-image: 
        radial-gradient(circle, #1a1a1e 40%, transparent 45%),
        radial-gradient(circle, #1a1a1e 40%, transparent 45%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    opacity: 0.6;
    z-index: 1;
}

/* Control Panel & LCD Display */
.chassis-display {
    position: relative;
    z-index: 10;
    background: #000;
    border: 2px solid #222;
    padding: 0.6rem 3rem;
    border-radius: 2px;
    box-shadow: 
        0 0 20px rgba(0,0,0,1),
        inset 0 0 15px rgba(226, 6, 19, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LCD Scanline Effect */
.chassis-display::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 11;
}

.chassis-display h2 {
    font-size: 1.6rem !important;
    margin: 0 !important;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
}

/* Hardware Handles */
.chassis-handle {
    width: 6px;
    height: 40px;
    background: linear-gradient(135deg, #333, #111);
    border: 1px solid #444;
    border-radius: 99px;
    margin: 0 20px;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Port Graphics */
.chassis-ports {
    position: absolute;
    right: 40px;
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.port-usb {
    width: 24px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    background: rgba(0,0,0,0.4);
}

.port-usb::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    bottom: 2px;
    background: #000;
    border: 0.5px solid rgba(255,255,255,0.1);
}

.chassis-status {
    position: absolute;
    left: 40px;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

/* Light Mode Adaptations */
body.light-mode .chassis-body { background: #f1f1f5; border-color: #ccc; }
body.light-mode .chassis-ear { background: #e1e1e5; border-color: #bbb; }
body.light-mode .chassis-mesh { background-image: radial-gradient(circle, #ccc 40%, transparent 45%), radial-gradient(circle, #ccc 40%, transparent 45%); }
body.light-mode .chassis-display { background: #000; } /* Keep LCD black for contrast */

@media (max-width: 1024px) {
    .unified-contact-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-tile {
        min-height: auto;
        padding: 3rem;
    }
}

/* --------------------------------------------------------------------------
   LEGAL & DOCUMENT STYLES (Strict Content Control)
   -------------------------------------------------------------------------- */
.legal-content-area {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-primary);
    max-width: 1000px;
}

.legal-content-area h2 {
    font-size: 2rem;
    margin: 3.5rem 0 1.5rem 0;
    color: var(--clr-accent);
    border-left: 4px solid var(--clr-accent);
    padding-left: 1.5rem;
    letter-spacing: -0.02em;
}

.legal-content-area h3 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem 0;
    font-weight: 700;
    color: var(--clr-text-primary);
}

.legal-content-area p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.legal-content-area ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style: none;
}

.legal-content-area li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-content-area li::before {
    content: "•";
    color: var(--clr-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-content-area strong {
    color: var(--clr-text-primary);
    font-weight: 700;
}

/* Light mode overrides for better contrast on legal text */
body.light-mode .legal-content-area p {
    color: #27272a;
    opacity: 1;
}

/* 
   ==========================================================================
   INTERACTIVE CAREER MODAL & FLIP SYSTEM
   ==========================================================================
*/

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Force side-by-side even on smaller screens */
    gap: 4rem;
    margin-top: 5rem;
    align-items: stretch;
}

.clickable-card {
    transition: var(--transition);
    height: 320px; /* Absolutely uniform height as requested */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clickable-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-top-color: var(--clr-accent);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(10px);
    
    /* Layout structure is always present, but hidden and non-interactive */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Fast close transition */
    transition: opacity 0.2s ease, visibility 0.2s;
    
    /* High-end 3D perspective placed on the parent for stable rendering */
    perspective: 3000px; 
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    
    /* Slow open transition synced perfectly with the 1.5s card expansion */
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

.modal-container {
    position: fixed;
    transform-style: preserve-3d;
    z-index: 2001;
    pointer-events: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* GPU Compositor hints */
    will-change: transform, opacity; 
    /* Primary geometric transition */
    transition: 
        transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 1.5s ease;
}

.modal-card-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
}

.modal-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    z-index: 2;
    transition: opacity 0.4s ease; /* Smooth fade out */
}

.modal-back {
    /* Rotated so it faces the user when the container reaches 180deg */
    transform: rotateY(180deg);
    padding: 4rem;
    overflow-y: auto;
    /* Integrated into the Liquid Glass system - uses standard glass background */
    background: var(--glass-bg); 
    color: var(--clr-text-primary);
    
    /* Premium smooth fade-in */
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.8s ease; 
    z-index: 1;
}

/* Visibility Crossfade at exactly the optical halfway point (350ms) */
.modal-container.is-showing-back .modal-front {
    opacity: 0 !important;
}

.modal-container.is-showing-back .modal-back {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 100;
}

.modal-back::-webkit-scrollbar {
    width: 32px; /* Increased overall width to create internal margin */
}

.modal-back::-webkit-scrollbar-track {
    background: transparent;
}

/* Use invisible buttons as spacers to limit vertical travel */
.modal-back::-webkit-scrollbar-button:start:decrement {
    display: block;
    height: 120px;
    background: transparent;
}

.modal-back::-webkit-scrollbar-button:end:increment {
    display: block;
    height: 80px;
    background: transparent;
}

.modal-back::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    /* Create an invisible physical border on the right to offset the scrollbar from the edge */
    border: solid transparent;
    border-width: 0 24px 0 0;
    background-clip: padding-box;
}

.modal-back::-webkit-scrollbar-thumb:hover {
    background-color: var(--clr-accent);
}

/* Logic handled exclusively via JS FLIP Engine for performance */
.modal-container.flipped {
    pointer-events: auto;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border-top);
    color: var(--clr-text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    background: var(--clr-accent);
    color: white;
    transform: rotate(90deg);
}

/* Ensure no target state conflicts with the JS FLIP transform */
.modal-container.flipped {
    pointer-events: auto; /* Allow interaction with back-face content */
}

.modal-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Job Detail Grid */
.job-detail-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.job-meta-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.job-tag {
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border-top);
    font-size: 0.9rem;
    font-weight: 500;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
}

.job-main-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.job-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Ensure deep visibility for all injected blocks */
.info-block {
    opacity: 1 !important;
    visibility: visible !important;
}

.info-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border-top);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.04);
}

.info-block h4 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-block li {
    padding: 0.75rem 0; /* Compact benefits */
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border-bottom);
    border-radius: 0;
    font-size: 1rem; /* Slightly smaller for compactness */
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
}

.info-block li::before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-block li:hover {
    background: transparent;
    transform: translateX(10px);
    border-bottom-color: var(--clr-accent);
}

.benefit-label {
    font-weight: 700;
    color: var(--clr-text-primary);
    min-width: 120px;
}

/* Sidebar Specifics */
.apply-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(226, 6, 19, 0.1) 0%, transparent 100%);
    border-radius: 24px;
    border: 1px solid var(--clr-accent);
}

.apply-card h4 {
    margin-bottom: 1rem;
}

/* Responsive Modal */
@media (max-width: 992px) {
    .job-content-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .modal-container {
        padding: 1.5rem;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}


/* ==========================================================================
   MOBILE RESPONSIVE — PUBLIC SITE
   Breakpoint: ≤ 768px (Smartphones)
   ==========================================================================
   Strategy:
   - Container fills full viewport width (no rack-rail offset)
   - Header becomes a compact bar (logo + burger icon only)
   - Burger menu opens a full-screen glass overlay
   - Hero stacks vertically, image hidden to save space
   - Rack schematic hidden (irrelevant at small sizes)
   - Section paddings tightened
   ========================================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------------------------------
       1. HIDE DECORATIVE ELEMENTS THAT DON'T MAKE SENSE ON MOBILE
    ------------------------------------------------------------------ */
    .rack-schematic {
        display: none;
    }

    /* ------------------------------------------------------------------
       2. CONTAINER — FULL WIDTH (no rack-rail gap)
    ------------------------------------------------------------------ */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1.25rem;
    }

    /* ------------------------------------------------------------------
       3. GLASS HEADER — COMPACT MOBILE BAR
    ------------------------------------------------------------------ */
    .glass-header {
        /* Remove the rack-relative width calculation */
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        top: 0.75rem;
        height: 64px;
        border-radius: 16px;
        left: 1rem;
        right: 1rem;
        margin: 0;
    }

    .nav-content {
        padding: 0 1rem;
    }

    /* Logo area: smaller on mobile */
    .brand-logo {
        height: 48px;
    }

    .company-name {
        display: none; /* Too long for mobile header */
    }

    /* ------------------------------------------------------------------
       4. BURGER MENÜ — VOLLBILD OVERLAY
       Ansatz: display:none (geschlossen) → display:flex + @keyframes (offen).
       Kein transform auf dem Nav selbst → kein schwarzer Balken, kein
       Off-Screen-Element, kein Positionierungsfehler.
    ------------------------------------------------------------------ */
    .nav-controls {
        gap: 0;
    }

    /* GESCHLOSSEN: komplett aus dem Layout entfernt */
    .nav-controls nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 2000;
        background: rgba(4, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 6rem 2.5rem 4rem;
        gap: 0;
        overflow: hidden;
    }

    /* GEÖFFNET: einblenden mit Keyframe-Animation */
    .nav-controls nav.mobile-open {
        display: flex;
        animation: mobileNavFadeIn 0.25s ease forwards;
    }

    @keyframes mobileNavFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Roter Lichtkegel-Akzent oben links */
    .nav-controls nav::before {
        content: '';
        position: absolute;
        top: -30%;
        left: -30%;
        width: 80%;
        height: 80%;
        background: radial-gradient(circle, rgba(226, 6, 19, 0.1) 0%, transparent 65%);
        pointer-events: none;
    }

    /* LINKS — Basis (immer sichtbar wenn Nav offen) */
    .nav-controls nav a {
        position: relative;
        z-index: 1;
        font-size: 1.9rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        color: rgba(255, 255, 255, 0.6);
        width: 100%;
        padding: 0.8rem 0;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        /* Keyframe-gesteuerte Einblendung */
        opacity: 0;
        animation: none;
    }

    /* Links animieren wenn Menü offen */
    .nav-controls nav.mobile-open a {
        animation: mobileNavLinkIn 0.35s ease forwards;
    }

    /* Gestaffelte Delays */
    .nav-controls nav.mobile-open a:nth-child(1) { animation-delay: 0.05s; }
    .nav-controls nav.mobile-open a:nth-child(2) { animation-delay: 0.10s; }
    .nav-controls nav.mobile-open a:nth-child(3) { animation-delay: 0.15s; }
    .nav-controls nav.mobile-open a:nth-child(4) { animation-delay: 0.20s; }
    .nav-controls nav.mobile-open a:nth-child(5) { animation-delay: 0.25s; }

    @keyframes mobileNavLinkIn {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: translateY(0);    }
    }

    /* Hover */
    .nav-controls nav a:hover {
        color: #ffffff;
    }

    /* Aktiv-Link */
    .nav-controls nav a.text-accent {
        color: var(--clr-accent) !important;
    }

    /* Roter Bullet */
    .nav-controls nav a::before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--clr-accent);
        opacity: 0.4;
        flex-shrink: 0;
        transition: opacity 0.2s ease;
    }

    .nav-controls nav a:hover::before,
    .nav-controls nav a.text-accent::before {
        opacity: 1;
    }

    /* Settings: kompakt */
    .settings-group {
        border-left: none;
        padding-left: 0;
        gap: 0.75rem;
    }

    /* Burger-Button sichtbar und deutlich hervorgehoben */
    #mobile-menu-btn.mobile-only {
        display: flex;
        color: #ffffff !important;   /* Immer weiß auf Mobile */
        width: 40px !important;
        height: 40px !important;
        z-index: 3000;              /* Über dem Nav-Overlay (2000) */
        position: relative;
    }

    #mobile-menu-btn.mobile-only svg {
        width: 28px;
        height: 28px;
        stroke: #ffffff !important;
    }

    body.light-mode #mobile-menu-btn.mobile-only {
        color: #000000 !important;
    }

    body.light-mode #mobile-menu-btn.mobile-only svg {
        stroke: #000000 !important;
    }

    /* Backdrop ausblenden (nav ist selbst das Overlay) */
    #nav-backdrop {
        display: none !important;
    }

    /* NAV-FOOTER im Panel */
    .mobile-nav-footer {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.25rem 2.5rem 2rem;
        z-index: 1;
        animation: mobileNavLinkIn 0.35s ease 0.28s forwards;
        opacity: 0;
    }

    .mobile-nav-footer-line {
        width: 28px;
        height: 2px;
        background: var(--clr-accent);
        opacity: 0.35;
        border-radius: 2px;
        margin-bottom: 0.6rem;
    }

    .mobile-nav-footer-content {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .mobile-nav-footer-label {
        font-size: 0.58rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: rgba(255, 255, 255, 0.28);
    }

    .mobile-nav-footer-phone {
        font-size: 0.9rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-nav-footer-phone:hover {
        color: var(--clr-accent);
    }

    .mobile-nav-footer-addr {
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.22);
    }


    /* ------------------------------------------------------------------
       5. HERO SECTION — STACKED, NO IMAGE
    ------------------------------------------------------------------ */
    .hero {
        padding-top: 6rem;
    }

    .hero-glass {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
        min-height: unset;
    }

    /* Hide hero server image on small screens — saves space */
    .hero-image-wrapper {
        display: none;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-text .subline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Trust badges: wrap to 2 columns on mobile */
    .hero-trust-badges {
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        justify-content: flex-start;
    }

    .trust-badge {
        font-size: 0.78rem;
        flex: 0 0 calc(50% - 0.5rem);
    }

    /* ------------------------------------------------------------------
       6. SECTION SPACING — TIGHTER ON MOBILE
    ------------------------------------------------------------------ */
    section.offset-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .offset-section {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* ------------------------------------------------------------------
       7. PORTFOLIO — SINGLE COLUMN FLIP CARDS
    ------------------------------------------------------------------ */

    /* Beams (connecting lines) don't work well on 1-column mobile */
    div[style*="beam-pulse"] {
        display: none;
    }

    /* Flip cards: full-width single column */
    section#portfolio > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Main feature card */
    .main-feature-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    /* Server image in portfolio card: scale down */
    .main-feature-card img[style] {
        height: 100px !important;
    }

    /* ------------------------------------------------------------------
       8. STATS / DASHBOARD — 2×2 GRID
    ------------------------------------------------------------------ */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* ------------------------------------------------------------------
       9. TIMELINE — LEFT LINE, ALL CARDS RIGHT
       Strategy: Line stays at left edge (2.5rem from container edge).
       All cards (left-event AND right-event) render to the right of it.
       The .timeline-event height is reduced; card width fills the space.
    ------------------------------------------------------------------ */
    .timeline-container {
        margin: 1.5rem auto 1rem;
        padding: 1rem 0 1rem;
        /* Shift the whole container so the line can be at left edge */
        padding-left: 2.5rem;
    }

    /* Move both line and progress bar to the left edge of the container */
    .timeline-line {
        left: 2.5rem;
        transform: none;
    }

    .timeline-progress {
        left: 2.5rem;
        transform: none;
    }

    /* Dot: centered on the left line */
    .tl-dot {
        left: 2.5rem;
        right: auto;
        top: 1.5rem; /* Move to top of the event row instead of center */
        transform: translate(-50%, 0);
    }

    /* All timeline events: uniform left-aligned column layout */
    .timeline-event,
    .timeline-event.left-event,
    .timeline-event.right-event {
        height: auto !important;         /* Let card height dictate row height */
        min-height: 0 !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* All cards: same position, full width to the right of the line */
    .tl-content,
    .left-event .tl-content,
    .right-event .tl-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 2rem !important;   /* Gap between line and card */
        margin-right: 0 !important;
        text-align: left !important;
        padding: 1.25rem !important;
    }

    /* Smaller timeline images on mobile */
    .tl-image-wrapper {
        height: 180px;
    }

    .tl-content h3 {
        font-size: 1.5rem;
    }

    /* ------------------------------------------------------------------
       10. CONTACT SECTION — STACKED TILES
    ------------------------------------------------------------------ */
    .unified-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .contact-tile {
        padding: 1.5rem !important;
    }

    .hotline-display {
        font-size: 1.4rem !important;
    }

    /* ------------------------------------------------------------------
       11. FOOTER — STACKED
    ------------------------------------------------------------------ */
    .footer-glass {
        border-radius: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* ------------------------------------------------------------------
       12. GLASS PANEL — LESS AGGRESSIVE HOVER ON TOUCH
    ------------------------------------------------------------------ */
    .glass-panel:hover {
        transform: none; /* Disable translateY on touch devices */
    }

    /* ------------------------------------------------------------------
       13. PARTNER MARQUEE — SMALLER ITEMS
    ------------------------------------------------------------------ */
    .partner-item {
        min-width: 100px !important;
        padding: 0.75rem !important;
    }

    .partner-badge-img {
        max-height: 36px !important;
    }

    /* ------------------------------------------------------------------
       14. KARRIERE SEITE — JOB CARDS UNTEREINANDER
    ------------------------------------------------------------------ */

    /* Hero der Jobs-Seite kompakter */
    section.hero[style*="min-height: 350px"] {
        margin-top: 5rem !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }

    section.hero[style*="min-height: 350px"] h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
        margin-bottom: 1rem !important;
    }

    section.hero[style*="min-height: 350px"] .subline {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Job-Karten: immer einspaltig untereinander */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Job-Karte: kompaktes Layout, weniger Padding */
    .portfolio-grid .card {
        padding: 1.5rem !important;
    }

    /* Jobtitel: etwas kleiner */
    .portfolio-grid .card h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Beschreibungstext: normale Größe */
    .portfolio-grid .card p {
        font-size: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
}

/* ==========================================================================
   KARRIERE MODAL — MOBILE VOLLBILD
   Separate media query (außerhalb des 768px-Blocks) für Modals
   ========================================================================== */
@media (max-width: 768px) {

    /* Modal Overlay: volle Höhe, kein Rand */
    .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important; /* Sheet von unten */
    }

    /* Modal Container: Vollbild, kein 3D-Flip auf Mobile */
    .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 95vh !important;
        border-radius: 24px 24px 0 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        /* Deactivate 3D-Flip — zeige nur den Back direkt */
        transform-style: flat !important;
        perspective: none !important;
    }

    /* Modal-Front (Flip-Preview): auf Mobile überspringen */
    .modal-front {
        display: none !important;
    }

    /* Modal-Back: immer sichtbar, keine Rotation */
    .modal-back {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        padding: 1.5rem 1.25rem 2rem !important;
        height: 100% !important;
        overflow-y: auto !important;
        border-radius: 24px 24px 0 0 !important;
    }

    /* Close Button: gut erreichbar oben rechts */
    .close-modal {
        position: sticky !important;
        top: 0;
        left: 100%;
        margin-left: auto;
        display: block;
        margin-bottom: 1rem;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        z-index: 100;
    }

    /* Modal Inhalt: einspaltig */
    #modal-content .job-content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Job-Titel im Modal kleiner */
    #modal-content .job-detail-header h2 {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        line-height: 1.2 !important;
    }

    /* Info-Blöcke: weniger Padding */
    #modal-content .info-block {
        padding: 1.25rem !important;
        border-radius: 14px !important;
    }

    #modal-content .info-block h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Apply-Card: volle Breite */
    #modal-content .apply-card {
        padding: 1.5rem !important;
    }

    #modal-content .apply-card .btn {
        padding: 1rem !important;
        font-size: 1rem !important;
    }

    /* Job Tags kompakter */
    #modal-content .job-meta-tags {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    #modal-content .job-tag {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.8rem !important;
    }
}