/* 
 * MAINDLABS - Professional Website with Cool Design Elements
 * New Brand Color: #3D86D9
 */

/* ===== FONTS - LOKAL GEHOSTET (DSGVO-KONFORM) ===== */

/* Sora - 300 */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300;
  src: url('../assets/fonts/sora/sora-v12-latin-300.woff2') format('woff2');
}

/* Sora - 400 (regular) */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/sora/sora-v12-latin-400.woff2') format('woff2');
}

/* Sora - 500 */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/sora/sora-v12-latin-500.woff2') format('woff2');
}

/* Sora - 600 */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/sora/sora-v12-latin-600.woff2') format('woff2');
}

/* Sora - 700 */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/sora/sora-v12-latin-700.woff2') format('woff2');
}

/* Sora - 800 */
@font-face {
  font-display: swap;
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  src: url('../assets/fonts/sora/sora-v12-latin-800.woff2') format('woff2');
}

/* JetBrains Mono - 400 */
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/jetbrains-mono/jetbrains-mono-v18-latin-400.woff2') format('woff2');
}

/* JetBrains Mono - 500 */
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/jetbrains-mono/jetbrains-mono-v18-latin-500.woff2') format('woff2');
}

/* JetBrains Mono - 600 */
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/jetbrains-mono/jetbrains-mono-v18-latin-600.woff2') format('woff2');
}

/* JetBrains Mono - 700 */
@font-face {
  font-display: swap;
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/jetbrains-mono/jetbrains-mono-v18-latin-700.woff2') format('woff2');
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors - Centered around #3D86D9 */
    --color-brand-primary: #3D86D9;
    --color-brand-light: #5A9FE5;
    --color-brand-dark: #2B6BB8;
    --color-brand-darker: #1E4D8B;
    
    /* Base Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #fafbfc;
    --color-surface: #f5f7fa;
    --color-surface-elevated: #ffffff;
    
    /* Text Colors */
    --color-text-primary: #0a0e27;
    --color-text-secondary: #4a5568;
    --color-text-tertiary: #718096;
    --color-text-muted: #a0aec0;
    
    /* Border & Divider */
    --color-border: #e2e8f0;
    --color-border-light: #f0f4f8;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3D86D9 0%, #2B6BB8 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(61, 134, 217, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(43, 107, 184, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(90, 159, 229, 0.08) 0px, transparent 50%);
    
    /* Typography */
    --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1280px;
    --container-narrow: 800px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-primary);
    cursor: pointer;
}

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

/* ===== ANIMATED BACKGROUND ===== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: var(--gradient-mesh);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(61, 134, 217, 0.4) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 159, 229, 0.3) 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(43, 107, 184, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
    position: relative;
    z-index: 1;
}

.container.narrow {
    max-width: var(--container-narrow);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(61, 134, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 134, 217, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-surface-elevated);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.0);
    /*backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);*/
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo {
    height: 28px;
}

.logo:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-fast);
    position: relative;
}

header.scrolled nav a {
    font-size: 14px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand-primary);
    transition: width var(--transition-base);
}

nav a:hover {
    color: var(--color-brand-primary);
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(61, 134, 217, 0.25);
    cursor: pointer;
}

header.scrolled .nav-cta {
    padding: 9px 20px;
    font-size: 13px;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 134, 217, 0.35);
}

/* ===== HERO ===== */
.hero {
    padding-top: calc(var(--header-height) + var(--space-5xl));
    padding-bottom: var(--space-5xl);
    background-image: 
        linear-gradient(135deg, rgba(240, 246, 255, 0.2) 0%, rgba(245, 249, 255, 0.2) 100%),
        url('assets/images/hero.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 880px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 18px;
    background: rgba(61, 134, 217, 0.08);
    border: 1px solid rgba(61, 134, 217, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(61, 134, 217, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(61, 134, 217, 0);
    }
}

.hero h1 {
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 720px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: var(--space-2xl) 0;
    background: var(--color-text-primary);
    position: relative;
    z-index: 1;
}

.trust-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto var(--space-4xl);
}

.section-header h2 {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--space-5xl) 0;
    background-color: #ffffff;
    
    /* Das Tech-Grid (wie bei About) */
    background-image: 
        linear-gradient(#f0f4f8 1px, transparent 1px),
        linear-gradient(90deg, #f0f4f8 1px, transparent 1px);
    background-size: 40px 40px; /* Größe der Kästchen */
    background-position: center top;
    
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Wir blenden die alten Farb-Orbs aus, damit das Grid sauber wirkt */
.services-section::before,
.services-section::after {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    padding: var(--space-2xl);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-color: rgba(61, 134, 217, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61, 134, 217, 0.15);
    border-color: var(--color-brand-primary);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-brand-primary);
    font-weight: 700;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.service-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.service-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.service-features {
    margin-bottom: var(--space-lg);
}

.service-features li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    font-size: 15px;
    position: relative;
    padding-left: 28px;
    line-height: 1.7;
}

.service-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-brand-primary);
    font-weight: 700;
}

.service-example {
    padding: var(--space-md);
    background: rgba(61, 134, 217, 0.05);
    border-left: 3px solid var(--color-brand-primary);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
}

.service-example strong {
    color: var(--color-brand-primary);
    font-weight: 600;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: var(--space-5xl) 0;
    /* Hintergrund: Ein tiefes, edles Nachtblau mit Spotlight von oben */
    background-color: #0f172a; /* Fallback */
    background-image: 
        /* Das Grid (ganz zartes Weiß) */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        /* Der Farbverlauf: Leuchtendes Blau oben mittig, dunkles Navy unten */
        radial-gradient(circle at 50% 0%, #1e4d8b 0%, #0f172a 80%);
    
    background-size: 40px 40px, 40px 40px, 100% 100%; /* Grid-Größe + Verlauf */
    background-position: center top;
    
    position: relative;
    z-index: 1;
    color: white;
}

/* Weiße Überschriften */
.projects-section .section-header h2 {
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Standard: 3 Spalten */
    gap: var(--space-xl);
}

.project-card {
    padding: var(--space-2xl);
    /* Glass Effect: Edler und weniger "matschig" */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Feine weiße Kante für Definition */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Oben heller für Licht-Effekt */
    
    border-radius: 24px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow: hidden;
    height: 100%; /* Alle Karten gleich hoch */
}

/* Pfeil oben rechts */
.project-card::after {
    content: '→';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.6;
    transition: all var(--transition-base);
    font-weight: 400;
}

/* Hover Effekte */
.project-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    /* Blauer Glow hinter der Karte */
    box-shadow: 0 20px 40px -10px rgba(61, 134, 217, 0.3);
}

.project-card:hover::after {
    opacity: 1;
    background: white;
    color: var(--color-brand-primary);
    transform: rotate(-45deg); /* Kleiner Dreheffekt */
}

/* Labels & Text */
.project-label {
    align-self: flex-start;
    padding: 6px 12px;
    background: rgba(61, 134, 217, 0.2);
    border: 1px solid rgba(61, 134, 217, 0.3);
    color: #60a5fa; /* Helles Blau für Lesbarkeit */
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.project-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: white;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: var(--space-xl);
    flex-grow: 1; /* Schiebt den Rest nach unten */
}

/* Stats Bereich */
.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tech Tags */
.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablet */
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* 1 Spalte auf Mobile */
    }
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, #f5f7fa 0%, #eef1f5 100%);
    position: relative;
    z-index: 1;
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-brand-primary) 0%, var(--color-border) 100%);
}

.process-step {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
}

.step-number {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-mono);
    box-shadow: 0 8px 24px rgba(61, 134, 217, 0.3);
    position: relative;
    z-index: 2;
    transition: all var(--transition-base);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(61, 134, 217, 0.4);
}

.step-content {
    background: var(--color-surface-elevated);
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.process-step:hover .step-content {
    border-color: var(--color-brand-primary);
    box-shadow: var(--shadow-xl);
    transform: translateX(8px);
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.step-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.step-duration {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(61, 134, 217, 0.1);
    color: var(--color-brand-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.step-visual {
    width: 80px;
    height: 80px;
}

.visual-icon {
    width: 100%;
    height: 100%;
    background: rgba(61, 134, 217, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.process-step:hover .visual-icon {
    background: rgba(61, 134, 217, 0.15);
    transform: rotate(5deg);
}

.visual-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-brand-primary);
}

/* ===== TECH SECTION ===== */
.tech-section {
    padding: var(--space-5xl) 0;
    background: var(--color-text-primary);
    position: relative;
    z-index: 1;
    color: white;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(43, 107, 184, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* White text für Tech Section */
.tech-section .section-header h2,
.tech-section .section-header p,
.tech-section .tech-category h3 {
    color: white;
}

.tech-section .section-header h2 {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-section .tech-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-section .tech-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.tech-section .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tech-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.tech-category {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-base);
}

.tech-category:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.tech-category h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: white;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
    cursor: default;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(6px);
}

.tech-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tech-item span {
    color: white;
    font-weight: 500;
    font-size: 15px;
}
}

.tech-cta {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--color-surface-elevated);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.tech-cta p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* ===== APPROACH SECTION ===== */
.approach-section {
    padding: var(--space-5xl) 0;
    /* Falls du das Bild hast, nimm das, sonst erstmal diesen Verlauf: */
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(245,249,255,0.2) 100%),
        url('assets/images/approach.jpg'); /* Dein neues Bild */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.approach-text h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.approach-text .large-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

/* --- Linke Seite: Timeline Look statt Boxen --- */
.approach-points {
    display: flex;
    flex-direction: column;
    gap: 0; /* Gap wird über Padding geregelt für die Linie */
    position: relative;
    padding-left: 20px; /* Platz für die Linie links */
}

/* Die durchgehende Linie */
.approach-points::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-brand-primary) 0%, rgba(61, 134, 217, 0.1) 100%);
    border-radius: 2px;
}

.point {
    padding: 0 0 var(--space-xl) var(--space-lg); /* Platz nach unten und links */
    position: relative;
    border: none; /* Keine Box mehr */
    background: transparent;
    transition: transform var(--transition-base);
}

/* Der "Punkt" auf der Linie */
.point::before {
    content: '';
    position: absolute;
    left: -26px; /* Ausrichten auf die Linie */
    top: 6px;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid var(--color-brand-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition-fast);
    box-shadow: 0 0 0 4px rgba(255,255,255,1); /* Weißer Rand um den Punkt */
}

.point:hover::before {
    background: var(--color-brand-primary);
    box-shadow: 0 0 0 6px rgba(61, 134, 217, 0.2);
}

.point:hover {
    background: transparent;
    transform: translateX(0px);
}

.point h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary); /* Dunkler Text statt Blau für bessere Lesbarkeit */
    display: flex;
    align-items: center;
    gap: 10px;
}

.point p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

/* --- Rechte Seite: Glass Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.stat-box {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.6); /* Mehr Transparenz */
    backdrop-filter: blur(12px); /* Glass Effekt */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid white;
    border-radius: 20px;
    text-align: left; /* Linksbündig wirkt moderner bei Stats */
    transition: all var(--transition-base);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 10px 15px -3px rgba(61, 134, 217, 0.05); /* Leichter blauer Glow */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box:first-child {
    grid-column: span 2; /* Die große Box oben */
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(240,246,255,0.8) 100%);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(61, 134, 217, 0.3);
    box-shadow: 0 20px 40px -5px rgba(61, 134, 217, 0.15);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-brand-primary);
    font-family: var(--font-mono);
    margin-bottom: var(--space-xs);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-text {
    color: var(--color-text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Responsive Anpassung */
@media (max-width: 1024px) {
    .approach-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        margin-top: var(--space-xl);
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--space-5xl) 0;
    background-color: #ffffff;
    /* Ein sehr subtiles technisches Raster im Hintergrund */
    background-image: 
        linear-gradient(#f0f4f8 1px, transparent 1px),
        linear-gradient(90deg, #f0f4f8 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

/* Den alten Blob entfernen wir komplett */
.about-section::before {
    display: none;
}

/* Ein kleiner Badge oben drüber */
.about-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand-primary);
    background: rgba(61, 134, 217, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(61, 134, 217, 0.2);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Das große Statement */
.about-statement {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin-bottom: var(--space-lg);
}

/* Der Highlight-Teil im Text */
.about-statement .highlight {
    background: linear-gradient(120deg, rgba(61, 134, 217, 0.15) 0%, rgba(61, 134, 217, 0.05) 100%);
    color: var(--color-brand-dark);
    padding: 0 8px;
    border-radius: 4px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Der Fließtext */
.about-details {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    font-weight: 400;
}

/* Der untere Abschluss */
.about-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.separator-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.company-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-5xl) 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: white;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

.cta-content .btn-primary {
    background: white;
    color: var(--color-brand-primary);
}

.cta-content .btn-primary:hover {
    background: var(--color-surface);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--color-text-primary);
    color: white;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-main {
    /* Logo Section */
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-logo {
    height: 36px;
    margin-bottom: var(--space-md);
    /*filter: brightness(0) invert(1);*/
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--color-surface-elevated);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-3xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 24px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: var(--space-2xl);
}

.modal-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: var(--color-text-secondary);
    font-size: 16px;
}

/* ===== FORMS ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 4px rgba(61, 134, 217, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.form-success.hidden {
    display: none;
}

.form-success svg {
    width: 72px;
    height: 72px;
    color: var(--color-success);
    margin-bottom: var(--space-lg);
}

.form-success h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.form-success p {
    color: var(--color-text-secondary);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface-elevated);
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    backdrop-filter: blur(20px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.cookie-banner p {
    color: var(--color-text-secondary);
    font-size: 14px;
    flex: 1;
}

.cookie-banner a {
    color: var(--color-brand-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-md);
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cookie-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.cookie-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 134, 217, 0.3);
}

.cookie-btn.secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border);
}

.cookie-btn.secondary:hover {
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid,
    .projects-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-step {
        grid-template-columns: 100px 1fr;
    }
    
    .step-visual {
        display: none;
    }
    
    .process-timeline::before {
        left: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --space-5xl: 4rem;
        --space-4xl: 3rem;
    }
    
    header.scrolled {
        height: 60px;
    }
    
    header.scrolled .logo {
        height: 24px;
    }
    
    nav a {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + var(--space-3xl));
    }
    
    .hero-cta,
    .cookie-banner-content {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box:first-child {
        grid-column: span 1;
    }
}