/* Modern Clean Website Styles - 2024 Best Practices */
:root {
    /* Colors - Modern Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Spacing - Consistent Scale */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    
    /* 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);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --container-max-width: 1400px;
    --header-height: 80px;
}

/* Reset & Base */
/* Base Styles - Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Focus Management */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #f3f6ff; /* sehr dezenter, klarer Hintergrund */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* DEAKTIVIERT für Mobile Performance */
body::before,
body::after {
    display: none !important;
}

@keyframes winterTwinkle {
    0% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.02); }
    100% { opacity: 0.45; transform: scale(0.98); }
}

/* Leichter Schneefall-Effekt */
@keyframes snowFall {
    0% {
        transform: translate3d(0, -10%, 0);
    }
    100% {
        transform: translate3d(0, 10%, 0);
    }
}

/* Flackern / Glitzern einzelner Schneeflocken */
@keyframes snowTwinkle {
    0%   { opacity: 0.4; }
    50%  { opacity: 0.75; }
    100% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
    
    .services::after {
        animation: none;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
}

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

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

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: var(--spacing-lg);
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: transparent;
    border: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* Mobile Hamburger Button - Nur auf Mobile sichtbar */
.mobile-hamburger {
    display: none;
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    /* Kein Backdrop-Filter für bessere Performance auf Mobile */
    z-index: 10000 !important; /* Über allem */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Safari tap highlight entfernen */
    touch-action: manipulation; /* Bessere Touch-Reaktion */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.mobile-hamburger:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.mobile-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation - Verstecken auf Mobile */
.desktop-nav {
    pointer-events: auto;
}

/* Mobile Fullscreen Menu */
.mobile-menu-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.98) 0%, rgba(55, 48, 163, 0.98) 50%, rgba(124, 58, 237, 0.98) 100%);
    /* Reduzierter Blur für bessere Performance und weniger verschwommen */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    pointer-events: none;
}

.mobile-menu-fullscreen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-3xl) var(--spacing-xl);
    gap: var(--spacing-xl);
}

.mobile-menu-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: var(--text-2xl);
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-language-switcher {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-language-switcher .lang-link-compact {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-language-switcher .lang-link-compact:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Desktop/Mobile Toggle Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.nav-container {
    max-width: 1100px; /* Breiter für bessere Lesbarkeit */
    margin: 0 auto;
    padding: 0.6rem 2rem; /* Mehr Padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.85); /* Etwas weniger transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 999px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: none;
    pointer-events: auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.nav-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.nav-profile-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1/1;
    margin-left: var(--spacing-sm);
    border: 2px solid var(--primary-500);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-name {
    font-size: 1rem;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.nav-menu > .auth-section {
    margin-left: auto;
}

.nav-user {
    display: flex;
    align-items: center;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0.35rem 0.9rem;
        max-width: calc(100% - 2rem);
    }
}

.auth-section {
    display: none;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(118, 75, 162, 0.45);
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.25), rgba(99, 102, 241, 0.25));
    color: #4f46e5;
    font-weight: 600;
    box-shadow:
        0 15px 35px rgba(79, 70, 229, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--transition-fast);
}

.nav-login-btn i {
    font-size: 0.95rem;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    box-shadow:
        0 20px 45px rgba(79, 70, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
        row-gap: var(--spacing-md);
    }

    .nav-brand {
        margin-right: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    /* Verstecke Desktop Navigation auf Mobile - NICHT für navbar-modern */
    .nav-menu:not(.navbar-modern .nav-menu) {
        display: none !important;
    }
    
    /* Verstecke Desktop Auth Section auf Mobile - NICHT für navbar-modern */
    .auth-section:not(.mobile-auth-section):not(.navbar-modern .auth-section) {
        display: none !important;
    }
    
    /* Zeige Mobile Menu Toggle nur links im nav-brand */
    .nav-brand .nav-toggle {
        display: flex !important;
        position: relative;
        margin-right: var(--spacing-md);
        order: -1; /* Zeige Toggle vor Logo */
    }
    
    /* Verstecke alle anderen Toggle-Buttons */
    .mobile-menu-toggle,
    .nav-toggle:not(.nav-brand .nav-toggle) {
        display: none !important;
    }
    
    /* Nav Brand Layout für Mobile */
    .nav-brand {
        display: flex !important;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    /* Nav Container Layout für Mobile */
    .nav-container {
        position: relative;
    }
}

/* Instagram/FB In-App Browser Fixes */
.is-inapp body,
.is-inapp html {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
}

.is-inapp .hero {
    min-height: auto !important;
}

.is-inapp .hero-container {
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 640px) {
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .nav-brand {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        right: var(--spacing-md);
    }
}

.nav-link {
    font-weight: 600;
    color: var(--primary-dark);
    transition: all var(--transition-fast);
    position: relative;
    padding: 0 var(--spacing-sm);
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(99, 102, 241, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* Instagram / In-App Browser Fixes */
.inapp-browser .navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: none;
    pointer-events: auto;
}

.inapp-browser .nav-link {
    color: #f8fafc;
    text-shadow: none;
}

.inapp-browser .nav-link:hover,
.inapp-browser .nav-link.active {
    color: #ffffff;
}

.inapp-browser .nav-link.active::after {
    background: #ffffff;
}

/* Navbar auf dunklem Hintergrund (starry-theme Seiten) */
.starry-theme .navbar,
.dark-page .navbar {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
}

.starry-theme .nav-link,
.dark-page .nav-link {
    color: #8b5cf6 !important;
    text-shadow: none;
}

.starry-theme .nav-link:hover,
.starry-theme .nav-link.active,
.dark-page .nav-link:hover,
.dark-page .nav-link.active {
    color: #a78bfa !important;
}

.starry-theme .nav-link.active::after,
.dark-page .nav-link.active::after {
    background: #a78bfa;
}

.starry-theme .nav-name,
.dark-page .nav-name {
    color: #8b5cf6 !important;
}

/* Anmelden Button bleibt immer gleich */
.btn-login {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.admin-link:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    z-index: 1001;
    position: relative;
}

/* Auf Mobile: Zeige Toggle wenn es in nav-brand ist */
@media (max-width: 768px) {
    .nav-brand .nav-toggle {
        display: flex !important;
    }
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-600);
    transition: all var(--transition-fast);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
    color: white;
    overflow: hidden;
    /* Immer den gleichen Hintergrund wie Services - auch wenn Video vorhanden ist */
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%);
    /* Stacking Context isolieren, damit z-index richtig funktioniert */
    isolation: isolate;
}

/* Sternen-Funkeln für Hero - scharfe Punkte wie Sterne */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.85) 0.4px, transparent 1.2px),
        radial-gradient(circle, rgba(255,255,255,0.5) 0.8px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.25) 1.2px, transparent 2.8px);
    background-size: 180px 220px, 280px 320px, 380px 440px;
    opacity: 0.6;
    animation: servicesSnowFall 28s linear infinite, starsTwinkle 12s ease-in-out infinite;
    z-index: 3; /* Unter Video, aber über Hintergrund */
    pointer-events: none;
}

.hero-with-video {
    padding-top: calc(var(--header-height) + var(--spacing-xl));
}

.hero-video-wrapper {
    display: block; /* Explizit sichtbar */
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 50; /* Video-Wrapper VOR Content, hinter Navigation */
}

.hero-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Etwas dunkler für besseren Kontrast */
    z-index: 2; /* Video über Overlay innerhalb des Wrappers */
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    /* Leichteres Overlay, das das Video mit dem Hintergrund-Farbschema verbindet */
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(55, 48, 163, 0.6) 50%, rgba(124, 58, 237, 0.6) 100%);
    z-index: 1; /* Overlay unter Video innerhalb des Wrappers */
    pointer-events: none;
    /* Kein Blur, um verschwommenes Scrollen zu vermeiden */
}

.hero-container {
    position: relative;
    z-index: 5; /* Content HINTER Video (z-index 50), aber über Hintergrund */
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start; /* Start statt center, damit alles sichtbar ist */
    overflow: visible;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh; /* Mindesthöhe für vollständige Sichtbarkeit */
    /* Stacking Context isolieren für Mobile */
    isolation: isolate;
}

/* Hero Content HINTER dem Video */
.hero-content {
    position: relative;
    z-index: 5; /* Content hinter Video */
}

.hero-visual {
    position: relative;
    z-index: 5; /* Bild hinter Video */
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: heroTitleFade 1s ease-out;
}


@keyframes heroTitleFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.gradient-text {
    /* Gradient wird später definiert - hier nur Basis-Styles */
    display: inline-block;
    font-weight: inherit;
}

/* Herz-Animation */
.heart-animation {
    display: inline-block;
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.2);
    }
    20%, 40% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: white;
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    animation: heroActionsFade 1s ease-out 0.3s both;
}

@keyframes heroActionsFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-actions .btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 255, 0.8);
    color: #4c1d95; /* dunkles Lila für gute Lesbarkeit */
    backdrop-filter: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: normal;
    min-width: fit-content;
    padding: var(--spacing-md) var(--spacing-xl);
}

.hero-actions .btn::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;
}

.hero-actions .btn:hover::before {
    left: 100%;
}

.hero-actions .btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #4c1d95;
    color: #4c1d95; /* Text bleibt gut sichtbar */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-xl);
    animation: heroVisualFade 1s ease-out 0.6s both;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    min-width: 0;
}

.hero-about-visual {
    align-items: flex-start; /* Start statt center für bessere Sichtbarkeit */
    gap: var(--spacing-xl);
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hero-about-image {
    /* Klarere, weniger „milchige“ Karte um das Profilbild */
    background: rgba(15, 23, 42, 0.88);
    border-radius: 1.75rem;
    padding: var(--spacing-md);
    box-shadow: 0 30px 55px rgba(15, 23, 42, 0.25);
    /* Kein Blur mehr, damit das Gesamtbild klarer wirkt */
    backdrop-filter: none;
    position: relative;
    z-index: 1;
}

.hero-about-image .profile-image {
    width: 320px;
    height: 320px;
    border-radius: 1.5rem;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

.hero-about-stats {
    width: 100%;
    max-width: 520px;
    margin-top: var(--spacing-lg); /* Abstand zum Profilbild */
    overflow: visible;
}

.hero-about-stats .stat-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.25);
}

.hero-about-stats .stat-card .stat-number {
    color: white !important;
    text-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.hero-about-stats .stat-card .stat-label {
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes heroVisualFade {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-image {
    position: relative;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: var(--radius-2xl);
    /* Klarer, kontrastreicher Rahmen ohne „Milchglas“-Effekt */
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.55);
    object-fit: cover !important;
    object-position: center top !important;
    aspect-ratio: 1/1;
    max-width: 300px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 300px;
    border: 2px solid rgba(15, 23, 42, 0.9);
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    padding: 1.5rem;
    box-sizing: border-box;
    margin: var(--spacing-lg) auto 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    min-height: 160px;
}

.stat-item:not(:last-child)::after {
    display: none;
}

.stat-number {
    display: block;
    font-size: calc(var(--font-size-3xl) * 0.9);
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 5px 12px rgba(102, 126, 234, 0.3);
}

.stat-label {
    font-size: 0.95rem;
    color: #667eea;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    padding: 0 0.5rem;
    text-transform: uppercase;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
}

/* Bessere Lesbarkeit: keine Silbentrennung im Hero-Subtext */
.hero-subtitle {
    hyphens: none;
    word-break: normal;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    white-space: normal;
    min-width: fit-content;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Spezifische Anpassung für Hero-Actions Buttons - bereits oben in .hero-actions .btn integriert */

/* Service Card Button Optimizations */
.service-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 48px !important; /* Feste Höhe für alle Buttons */
    min-height: 48px !important;
    max-height: 48px !important; /* Verhindert, dass Buttons größer werden */
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center; /* Text vertikal zentrieren */
    box-sizing: border-box; /* Padding und Border in der Höhe berücksichtigen */
    margin-top: auto; /* Button immer am unteren Rand */
    flex-shrink: 0;
}

.service-card .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 2px solid var(--primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.service-card .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3730a3 100%);
    color: var(--white);
    border-color: var(--primary-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.service-card .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Additional Button Variants with Better Contrast */
.btn-secondary {
    background: var(--gray-600);
    color: var(--white);
    border: 2px solid var(--gray-600);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--gray-700);
    color: var(--white);
    border-color: var(--gray-700);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border: 2px solid var(--success);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-success:hover {
    background: #059669;
    color: var(--white);
    border-color: #059669;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
    border: 2px solid var(--warning);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-warning:hover {
    background: #d97706;
    color: var(--white);
    border-color: #d97706;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border: 2px solid var(--error);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
    border-color: #dc2626;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Button Text */
@media (max-width: 480px) {
    .service-card .btn {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        min-height: 44px;
    }
}

/* LANGUAGE SWITCH STYLES */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--gray-200);
}

.btn-lang {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.btn-lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.btn-lang i {
    font-size: var(--text-sm);
}

/* PROFILE DOWNLOAD SECTION STYLES */
.profile-download-section {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--gray-200);
}

.btn-profile {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-profile i {
    font-size: var(--text-sm);
}

/* Dashboard Button Styles */
.profile-dashboard-section {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--gray-200);
}

.btn-dashboard {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

.btn-dashboard i {
    font-size: var(--text-sm);
}

/* Auth Button Styles */
.auth-section {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--gray-200);
}

.btn-auth {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-auth i {
    font-size: var(--text-sm);
}

/* User Menu Styles - Gleiche wie Bewerbungsmanagement */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.user-menu .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.user-menu .user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-menu .user-info span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: var(--text-sm);
}

.user-menu-link:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.user-menu-link i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.user-menu-link:hover i {
    color: var(--primary);
}


@media (max-width: 360px) {
    .service-card .btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        min-height: 40px;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section Text Colors */
.services .section-title {
    color: white;
    position: relative;
    z-index: 12; /* Über Container */
}

.services .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 12; /* Über Container */
}

/* Services Section */
.services {
    padding: var(--spacing-3xl) 0 calc(var(--spacing-3xl) + 40px) 0; /* Mehr Platz unten */
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%);
    position: relative;
    overflow: visible; /* Kacheln nicht abschneiden */
    color: white;
    z-index: 10; /* Über Hero-Video (z-index: 8) */
}

/* Mobile: Reduziertes Padding für schnelleres Erreichen */
@media (max-width: 768px) {
    .services {
        padding: var(--spacing-xl) 0; /* Reduziertes Padding auf Mobile */
        margin-top: 0; /* Kein zusätzlicher Abstand zur Hero-Section */
    }
}

/* Sternen-Funkeln für Services Section - scharfe Punkte wie Sterne */
.services::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.85) 0.4px, transparent 1.2px),
        radial-gradient(circle, rgba(255,255,255,0.5) 0.8px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.25) 1.2px, transparent 2.8px);
    background-size: 180px 220px, 280px 320px, 380px 440px;
    opacity: 0.6;
    animation: servicesSnowFall 28s linear infinite, starsTwinkle 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes servicesSnowFall {
    0% {
        transform: translate3d(0, -10%, 0);
    }
    50% {
        transform: translate3d(-2%, 5%, 0);
    }
    100% {
        transform: translate3d(2%, 15%, 0);
    }
}

@keyframes snowflakeGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes starsTwinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.75;
    }
}

/* Services Categories */
.services-category {
    margin-bottom: 5rem;
}

.services-category:last-child {
    margin-bottom: 0;
}

.services-category-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 12; /* Über Container */
}

.services-category-title i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
}

.services-grid {
    display: flex !important;
    display: -webkit-flex !important; /* Safari */
    flex-direction: row !important; /* Explizit horizontal */
    -webkit-flex-direction: row !important; /* Safari */
    flex-wrap: wrap !important; /* Umbruch erlauben für bessere Lesbarkeit */
    -webkit-flex-wrap: wrap !important; /* Safari */
    justify-content: center !important; /* Zentriert */
    gap: var(--spacing-xl);
    max-width: 1400px;
    width: 100%; /* Explizit 100% Breite */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 50; /* Über den Schneeflocken (z-index: 9) */
    z-index: 12; /* Über Container (z-index 11) */
    align-items: stretch;
    -webkit-align-items: stretch; /* Safari */
    justify-content: flex-start; /* Kacheln links ausrichten */
    -webkit-justify-content: flex-start; /* Safari */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-md) var(--spacing-sm);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

/* Safari-spezifischer Fix - zusätzliche Regeln für bessere Kompatibilität */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    @media (min-width: 769px) {
        .services-grid {
            display: -webkit-flex !important;
            display: flex !important;
            flex-wrap: nowrap !important;
            -webkit-flex-wrap: nowrap !important;
            -webkit-justify-content: flex-start !important;
            justify-content: flex-start !important;
        }
        
        .services-grid .service-card {
            flex: 0 0 380px !important;
            -webkit-flex: 0 0 380px !important;
            width: 380px !important;
            min-width: 340px !important;
            max-width: 420px !important;
            box-sizing: border-box !important;
        }
    }
    
    @media (max-width: 1200px) and (min-width: 769px) {
        .services-grid .service-card {
            flex: 0 0 360px !important;
            -webkit-flex: 0 0 360px !important;
            width: 360px !important;
            min-width: 320px !important;
            max-width: 400px !important;
            box-sizing: border-box !important;
        }
    }
}

.services-grid::-webkit-scrollbar {
    height: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Scroll Container mit Pfeilen */
.services-scroll-container {
    position: relative;
    display: block; /* Block statt Flex, damit services-grid nicht als Flex-Child behandelt wird */
    width: 100%;
    overflow: visible; /* Pfeile sollen sichtbar sein */
}

/* Scroll Pfeile */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.scroll-arrow-left {
    left: -24px;
}

.scroll-arrow-right {
    right: -24px;
}

.scroll-arrow:disabled,
.scroll-arrow.hidden {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Desktop: Genau 3 Kacheln nebeneinander sichtbar - NUR für Desktop */
@media (min-width: 769px) {
    .services-grid {
        /* Sicherstellen, dass Grid horizontal ist */
        display: flex !important;
        display: -webkit-flex !important; /* Safari */
        flex-direction: row !important;
        -webkit-flex-direction: row !important; /* Safari */
        flex-wrap: nowrap !important;
        -webkit-flex-wrap: nowrap !important; /* Safari */
    }
    
    .services-grid .service-card {
        /* Safari-kompatible Lösung */
        flex: 0 0 380px !important;
        -webkit-flex: 0 0 380px !important; /* Safari */
        width: 380px !important;
        min-width: 340px !important;
        max-width: 420px !important;
        scroll-snap-align: start;
        box-sizing: border-box !important; /* Padding in Breite einrechnen */
    }
}

/* Tablet: 2 Kacheln sichtbar */
@media (max-width: 1200px) {
    .services-grid .service-card {
        /* Auf Tablet: breitere Kacheln */
        flex: 0 0 360px !important;
        -webkit-flex: 0 0 360px !important; /* Safari */
        width: 360px !important;
        min-width: 320px !important;
        max-width: 400px !important;
        box-sizing: border-box !important;
    }
    
    .scroll-arrow-left {
        left: 0;
    }
    
    .scroll-arrow-right {
        right: 0;
    }
}

/* Kleine Tablets: 2 Kacheln */
@media (max-width: 900px) and (min-width: 769px) {
    .services-grid .service-card {
        flex: 0 0 340px !important;
        -webkit-flex: 0 0 340px !important; /* Safari */
        width: 340px !important;
        min-width: 300px !important;
        max-width: 380px !important;
        box-sizing: border-box !important;
    }
}

/* Mobile: Volle Breite, vertikal gestapelt */
@media (max-width: 768px) {
    .services-grid {
        display: flex !important;
        display: -webkit-flex !important; /* Safari */
        flex-direction: column !important; /* Vertikal auf Mobile */
        -webkit-flex-direction: column !important; /* Safari */
        flex-wrap: nowrap !important;
        -webkit-flex-wrap: nowrap !important; /* Safari */
        align-items: center !important;
        gap: var(--spacing-lg) !important;
        padding: var(--spacing-md) !important;
        overflow-x: visible !important;
    }
    
    .services-grid .service-card {
        /* Volle Breite auf Mobile für bessere Lesbarkeit */
        flex: 0 0 auto !important;
        -webkit-flex: 0 0 auto !important; /* Safari */
        width: calc(100vw - 2rem) !important;
        min-width: 280px !important;
        max-width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
    }
    
    .scroll-arrow {
        display: none !important; /* Keine Pfeile auf Mobile nötig */
    }
}

/* Sehr kleine Mobile-Geräte: volle Breite */
@media (max-width: 480px) {
    .services-grid .service-card {
        flex: 0 0 auto !important;
        -webkit-flex: 0 0 auto !important; /* Safari */
        width: calc(100vw - 1.5rem) !important;
        min-width: 260px !important;
        max-width: 100% !important;
        padding: var(--spacing-lg) !important;
        box-sizing: border-box !important;
    }
    
    .service-card h3 {
        font-size: 1.25rem !important;
    }
    
    .service-card p {
        font-size: 0.9rem !important;
    }
}

.service-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all var(--transition-base);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 480px; /* Mehr Höhe für alle Bulletpoints */
    height: auto; /* Automatische Höhe basierend auf Inhalt */
    width: 380px; /* Feste Breite für Desktop */
    min-width: 340px;
    max-width: 420px;
    flex: 0 0 380px; /* Nicht schrumpfen, feste Basis */
    position: relative;
    z-index: 200 !important; /* Über den Schneeflocken (z-index: 100) */
    cursor: pointer;
    overflow: visible; /* Inhalt nicht abschneiden */
}

/* Icon bei Hover für Kacheln mit Badge (NEU) - bleibt lila statt weiß */
.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-card:hover .service-icon i {
    color: white;
}

/* Service-Bild-Container */
.service-image-container {
    width: 100%;
    height: 200px;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    order: 1; /* Zeige Bild nach Icon, vor Titel */
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-image-container:hover .service-image {
    transform: scale(1.05);
}

/* Service-Icon bleibt sichtbar */
.service-icon {
    order: 0;
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE CARD HOVER - FLÜSSIGGLAS-EFFEKT MIT SCHIMMER
   ═══════════════════════════════════════════════════════════════════════════ */

/* Schimmer-Animation für Glaseffekt */
@keyframes liquidGlassShine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
        opacity: 0;
    }
}

/* Pseudo-Element für Schimmer vorbereiten */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: translateX(-100%) skewX(-15deg);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
}

.service-card:hover {
    /* NUR KIPPEN - KEINE Farbänderung */
    transform: translateY(-8px) rotateX(2deg) rotateY(-1deg) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(99, 102, 241, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    /* KEINE Hintergrund-Änderung - bleibt transparent */
}

/* Schimmer-Animation beim Hover */
.service-card:hover::after {
    animation: liquidGlassShine 0.8s ease-out forwards;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
}

/* KEINE Text-Farbänderungen beim Hover - alles bleibt wie es ist */
.service-card:hover .btn-primary {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.service-cta {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Standard-Zustand: Text in „Mehr erfahren" auf lilafarbenem Umfeld klar weiß */
    color: #ffffff;
    font-weight: 600;
    transition: all var(--transition-base);
}

/* Sicherstellen, dass auch Links/Spans im CTA weiß sind */
.service-cta a,
.service-cta span {
    color: inherit;
}

.service-card:hover .service-cta {
    /* Nur leichte Bewegung, KEINE Farbänderung */
    transform: translateX(4px);
}

.service-cta i {
    transition: transform var(--transition-base);
}

.service-card:hover .service-cta i {
    transform: translateX(4px);
}

/* Persönlichkeitsentwicklung Kachel: Beschreibung in weiss */
.service-card.modern-highlight p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* AI-Digitalisierung - Workflow CTA Text in weiß für bessere Lesbarkeit auf Gradient */
.workflow-cta p,
.workflow-cta h2 {
    color: #ffffff !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem; /* Mehr Platz für Häkchen */
    color: var(--gray-700);
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
    z-index: 1;
}

/* Services Section Features */
.services .service-features li {
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    padding-left: 1.5rem; /* Platz für Häkchen */
}

.services .service-features li::before {
    color: #34d399; /* Helleres Grün für bessere Sichtbarkeit */
    z-index: 5;
}

/* Custom Inputs */
.custom-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-input-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.custom-input-item input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.custom-input-item input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.custom-input-item .btn-small {
    padding: 0.5rem;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    transition: all 0.3s ease;
}

.custom-input-item .btn-small:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

/* Rating System */
.rating-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.rating-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-item label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    cursor: pointer;
}

.star {
    font-size: 1.5rem;
    color: #d1d5db;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.star-rating:hover .star {
    color: #fbbf24;
}

.star-rating .star:hover ~ .star {
    color: #d1d5db;
}

/* Service Card Content Layout */
.service-card .service-icon {
    flex-shrink: 0;
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    flex-shrink: 0;
    margin-bottom: var(--spacing-md);
}

.service-card p {
    flex-shrink: 0;
    margin-bottom: var(--spacing-md);
}

.service-features {
    flex: 1; /* Nimmt den verfügbaren Platz ein */
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card .btn {
    margin-top: auto;
    flex-shrink: 0;
    height: 48px !important; /* Feste Höhe für alle Buttons, damit sie auf einer Linie sind */
    min-height: 48px !important;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success);
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
    z-index: 5; /* Häkchen VOR dem Text */
}

/* About Section */
.about {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

/* Schneeflocken-Hintergrund für About Section */
.about::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background-image:
        radial-gradient(rgba(255,255,255,0.55) 1px, transparent 45%),
        radial-gradient(rgba(255,255,255,0.35) 1.6px, transparent 40%),
        radial-gradient(rgba(255,255,255,0.2) 2.2px, transparent 30%);
    background-size: 260px 360px, 360px 420px, 520px 620px;
    opacity: 0.55;
    animation: servicesSnowFall 28s linear infinite, snowflakeGlow 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.expertise-areas h3 {
    margin-bottom: var(--spacing-lg);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.expertise-item i {
    color: var(--primary);
    font-size: var(--font-size-lg);
}

.experience-timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.timeline-marker {
    position: absolute;
    left: -var(--spacing-xl);
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

/* Activities Section */
.activities {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.activity-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.activity-image {
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.activity-img {
    position: relative;
    z-index: 1;
}

/* Animierte Icons für Aktivitäten */
.activity-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    opacity: 1; /* Immer sichtbar wie beim Highscore */
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-card:hover .activity-icon {
    opacity: 1; /* Bleibt sichtbar */
}

.activity-card:hover .activity-img {
    opacity: 0.5; /* Etwas transparenter beim Hover, aber nicht komplett unsichtbar */
    transform: scale(1.05);
}

/* Spezifische Animationen für Icons */
.activity-icon.animated-icon {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px) rotate(5deg);
    }
}

/* Spezifische Animationen für verschiedene Icons */
.activity-card:nth-child(1) .activity-icon {
    animation: motorhomeDrive 4s ease-in-out infinite;
}

@keyframes motorhomeDrive {
    0%, 100% {
        transform: translate(-50%, -50%) translateX(0) rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) translateX(-5px) rotate(-2deg);
    }
    75% {
        transform: translate(-50%, -50%) translateX(5px) rotate(2deg);
    }
}

.activity-card:nth-child(2) .activity-icon {
    animation: cameraFlash 2s ease-in-out infinite;
}

@keyframes cameraFlash {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: brightness(1.5);
    }
}

.activity-card:nth-child(3) .activity-icon {
    animation: bikeRide 3s ease-in-out infinite;
}

@keyframes bikeRide {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) rotate(10deg) translateY(-5px);
    }
}

.activity-card:nth-child(4) .activity-icon {
    animation: supWave 3s ease-in-out infinite;
}

@keyframes supWave {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(0);
    }
    25% {
        transform: translate(-50%, -50%) rotate(-5deg) translateY(-3px);
    }
    75% {
        transform: translate(-50%, -50%) rotate(5deg) translateY(-3px);
    }
}

.activity-content {
    padding: var(--spacing-xl);
}

.activity-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.activity-content p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.activity-link {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.activity-link i {
    transition: transform var(--transition-fast);
}

.activity-card:hover .activity-link i {
    transform: translateX(4px);
}

/* About Section - Überschreibt die vorherige Definition */
.about {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%) !important;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-image {
    position: relative;
}

.about-image .profile-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.about-image .profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.about-stats {
    display: grid;
    /* Wie weiter unten bei den Service-Kacheln:
       flexible, automatisch umbrechende Spalten */
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Leichte „Schneeschicht“ auf Karten-Elementen */
.stat-card,
.highlight-item,
.activity-card {
    position: relative;
    overflow: hidden;
}

/* Service-Card: overflow visible für vollständige Inhalte */
.service-card {
    position: relative;
    overflow: visible !important;
}

.stat-card::before,
.service-card::before,
.highlight-item::before,
.activity-card::before {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    top: -10px;
    height: 28px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.85),
        rgba(255,255,255,0.65),
        transparent
    );
    opacity: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(1px);
    animation: snowSettling 40s ease-in-out infinite alternate;
}

@keyframes snowSettling {
    0%   { opacity: 0; transform: translateY(-8px); }
    40%  { opacity: 0.4; transform: translateY(0); }
    100% { opacity: 0.7; transform: translateY(1px); }
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-width: 180px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text .section-title {
        font-size: 2rem;
    }
    
    .about-description {
        font-size: 1.1rem;
    }
    
    .about-image .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        align-self: center;
    }
}

/* Contact Section */
.contact {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.contact-description {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: var(--gray-200);
    color: var(--gray-900);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid var(--gray-300);
}

.contact-item h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
    font-weight: 600;
}

.contact-item a {
    color: var(--gray-900);
    font-weight: 500;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-item p {
    color: var(--gray-900);
    margin: 0;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-700);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-container {
        max-width: 100%;
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-about-image {
        padding: var(--spacing-sm);
    }
    
    .hero-about-image .profile-image {
        width: 260px;
        height: 260px;
    }
    
    .hero-about-stats {
        max-width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .nav-profile-mini {
        width: 28px;
        height: 28px;
        margin-left: var(--spacing-xs);
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl);
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        margin: var(--spacing-lg) 0 0;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-item {
        min-width: 180px;
        min-height: 150px;
        padding: 1.25rem 0.75rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    @media (max-width: 768px) {
        .hero-stats {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .stat-item {
            min-width: 100%;
            min-height: 120px;
        }
    }
    
    /* Services Grid wird bereits oben für Mobile definiert */
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    /* Service Cards werden bereits oben für 480px definiert */
    
    .service-card .btn {
        min-height: 44px;
        font-size: var(--font-size-sm);
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
        object-fit: cover !important;
        object-position: center top !important;
        aspect-ratio: 1/1;
        max-width: 250px;
        max-height: 250px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

/* Projects Section Styles */
.projects-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.projects-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.project-type {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-content p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Text Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.text-animated {
    animation: textPulse 2s ease-in-out infinite alternate;
}

@keyframes textPulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

/* Kompakter Language Switcher - nur Flaggen */
.language-switcher-compact {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    align-items: center;
}

.lang-link-compact {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-dark);
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 32px;
}

.lang-link-compact:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.lang-link-compact.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.lang-link {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px; /* Touch-friendly */
    min-width: 44px;
}

.lang-link:hover {
    color: #6366f1;
    background: #f3f4f6;
}

.lang-link.active {
    color: #6366f1;
    background: #eef2ff;
    border-color: #6366f1;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-language-switcher .lang-link-compact {
    flex: 0 0 auto;
    min-width: 44px; /* Touch-friendly */
    min-height: 44px;
    justify-content: center;
    font-size: 1.2rem; /* Größere Flaggen auf Mobile */
}

@media (max-width: 768px) {
    .language-switcher-compact {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-top: 1rem;
        margin-top: 1rem;
        justify-content: center;
    }
}

/* 🚀 Modern Application Management Service Card Enhancements */
.service-card.modern-highlight {
    position: relative;
    background: rgba(255, 255, 255, 0.1) !important; /* Durchsichtig wie andere Kacheln */
    backdrop-filter: blur(10px); /* Gleicher Blur wie andere Kacheln */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    overflow: visible !important; /* Inhalt nicht abschneiden */
}

.service-card.modern-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Modern-highlight Kacheln: Glaseffekt Hover */
.service-card.modern-highlight:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 50px rgba(99, 102, 241, 0.25), inset 0 0 80px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(25px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(25px) saturate(1.2) !important;
}

.service-card.modern-highlight:hover h3 {
    color: #c7d2fe !important;
    text-shadow: 0 0 30px rgba(199, 210, 254, 0.4) !important;
    animation: none !important;
}

@keyframes titleGlowPulse {
    0% { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 
                     0 0 30px rgba(255, 255, 255, 0.6), 
                     0 0 40px rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 25px rgba(255, 255, 255, 1), 
                     0 0 35px rgba(255, 255, 255, 0.8), 
                     0 0 45px rgba(255, 255, 255, 0.6);
        transform: scale(1.02);
    }
}

.service-card.modern-highlight .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    animation: pulseGlow 2s infinite;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(251, 191, 36, 0.6);
        transform: scale(1.05);
    }
}

.modern-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    gap: 0.5rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    height: 48px !important; /* Gleiche Höhe wie alle anderen Service-Buttons */
    min-height: 48px !important;
}

.modern-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-card.modern-highlight h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.service-card.modern-highlight p {
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.service-card.modern-highlight .service-features {
    position: relative;
    z-index: 2;
}

.service-card.modern-highlight .service-features li {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.service-card.modern-highlight:hover p {
    /* Glaseffekt: Text bleibt hell lesbar */
    color: rgba(255, 255, 255, 0.95) !important;
}

.service-card.modern-highlight:hover .service-features li {
    /* Glaseffekt: Features bleiben hell */
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: none !important;
}

.service-card.modern-highlight:hover .service-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5) !important;
}

.service-card.modern-highlight:hover .btn-primary,
.service-card.modern-highlight:hover .modern-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%) !important;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6) !important;
    color: var(--white) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

/* ============================================
   📱 MOBILE OPTIMIERUNG - UMFASSEND
   ============================================ */

/* Mobile Navigation - Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--gray-800);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto !important; /* Stelle sicher dass es nur rechts ist */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.mobile-menu.active {
    right: 0;
    left: auto !important; /* Stelle sicher dass es nur rechts ist */
}

.mobile-menu .nav-link {
    display: block;
    padding: var(--spacing-md) 0;
    color: white;
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding-left: var(--spacing-md);
    border-radius: 8px;
}

.mobile-menu .auth-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Touch-freundliche Buttons (min. 44x44px) */
.btn,
.nav-link,
.service-card .btn,
.modern-btn {
    min-height: 44px;
    min-width: 44px;
    padding: var(--spacing-sm) var(--spacing-md);
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
}

/* Mobile-optimierte Schriftgrößen */
@media (max-width: 768px) {
    :root {
        --text-xs: 0.7rem;
        --text-sm: 0.8rem;
        --text-base: 0.9rem;
        --text-lg: 1rem;
        --text-xl: 1.1rem;
        --text-2xl: 1.3rem;
        --text-3xl: 1.6rem;
        --text-4xl: 1.9rem;
        --text-5xl: 2.2rem;
    }
    
    /* Mobile Scroll Fixes - KRITISCH */
    html {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        height: auto !important;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        overflow-x: hidden !important;
        overflow-y: auto !important; /* Auto statt scroll für bessere Performance */
        position: relative !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y !important; /* Erlaubt vertikales Scrollen */
        overscroll-behavior-y: auto !important; /* Erlaubt normales Scroll-Verhalten */
    }
    
    /* Nur wenn mobile-menu aktiv ist, blockiere Scrollen */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Fix für iOS Safari Viewport */
    @supports (-webkit-touch-callout: none) {
        body {
            min-height: -webkit-fill-available;
            position: relative !important;
            height: auto !important;
        }
    }
    
    /* Schneeflocken auf Mobile KOMPLETT deaktivieren für Performance */
    body::before,
    body::after {
        display: none !important;
    }
    
    /* Alle Sections müssen scrollbar sein */
    section {
        position: relative;
        overflow: visible;
        min-height: auto;
    }
    
    /* Hero Section Scroll Fix */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--spacing-lg)) 0 var(--spacing-xl) 0 !important;
        padding-top: calc(var(--header-height) + var(--spacing-lg)) !important;
        position: relative;
        overflow: visible;
    }
    
    .hero-container {
        min-height: 100vh;
        max-height: 100vh; /* Begrenze Höhe auf Mobile */
        position: relative;
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Verhindere Overflow */
    }
    
    .hero-title {
        font-size: var(--text-4xl);
        line-height: 1.3;
        margin-bottom: var(--spacing-lg);
        text-align: center;
        text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
        color: white;
        position: relative;
        z-index: 102; /* Explizit ganz oben */
        /* Sicherstellen dass Text nicht verschwommen ist */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    
    .hero-visual {
        display: none; /* Verstecke Visual auf Mobile */
    }
    
    .hero-about-image {
        padding: var(--spacing-sm);
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-about-image .profile-image {
        width: 260px;
        height: 260px;
        max-width: 100%;
    }
    
    .hero-about-stats {
        max-width: 100%;
        width: 100%;
        padding: 0 var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
    
    .hero-about-visual {
        width: 100%;
        align-items: center;
    }
    
    /* Navigation Mobile */
    /* Toggle nur links im nav-brand */
    .nav-brand .nav-toggle {
        display: flex !important;
        position: relative;
        margin-right: var(--spacing-md);
        order: -1;
    }
    
    /* Verstecke alle anderen Toggle-Buttons */
    .mobile-menu-toggle,
    .nav-toggle:not(.nav-brand .nav-toggle) {
        display: none !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .auth-section:not(.mobile-auth-section) {
        display: none !important;
    }
    
    /* Verhindere dass nav-menu als mobiles Menü erscheint */
    .nav-menu.mobile-active {
        display: none !important;
    }
    
    /* Stelle sicher dass nur mobile-menu sichtbar ist */
    .mobile-menu {
        display: block !important;
    }
    
    .nav-container {
        padding: var(--spacing-md) var(--spacing-lg);
        /* Sicherstellen, dass Navigation über Video liegt */
        position: relative;
        z-index: 1001;
    }
    
    .nav-brand {
        font-size: var(--text-lg);
    }
    
    /* Navigation auf Mobile: Sicherstellen, dass sie über Video liegt */
    .navbar {
        z-index: 1000;
        position: fixed;
        top: var(--spacing-md);
    }
    
    .nav-logo {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
    
    /* Mobile Navigation */
    .mobile-hamburger {
        display: flex !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Sicherstellen dass Navigation auf Mobile komplett versteckt ist */
    .navbar .desktop-nav,
    .navbar .nav-container,
    .navbar .nav-brand,
    .navbar .nav-menu,
    .navbar .nav-link {
        display: none !important;
        visibility: hidden !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 70vh;
        max-height: 80vh;
        padding: calc(var(--header-height) + var(--spacing-md)) 0 var(--spacing-md) 0;
        position: relative;
        overflow: hidden;
        isolation: auto !important; /* WICHTIG: Deaktiviere isolation für Mobile */
    }
    
    /* DEAKTIVIERE alle Pseudo-Element-Animationen auf Mobile für Performance */
    .hero::after,
    .hero::before,
    .services::after,
    .services::before,
    .about::after,
    .about::before {
        display: none !important;
        animation: none !important;
    }
    
    .hero-video-wrapper {
        /* Video-Wrapper für Mobile VOR Content */
        position: absolute;
        inset: 0;
        z-index: 50 !important; /* Video VOR Content */
        pointer-events: none;
        transform: translateZ(0);
    }
    
    .hero-video {
        /* Video auf Mobile STARK abdunkeln für klaren weißen Text */
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        filter: brightness(0.75) !important; /* Heller */
    }
    
    .hero-video-overlay {
        /* Leichtes Overlay */
        background: rgba(0, 0, 0, 0.2) !important;
        z-index: 2; /* Über dem Video */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md); /* Reduziertes Gap für kompakteres Layout */
        padding: var(--spacing-md) var(--spacing-lg); /* Reduziertes Padding */
        text-align: center;
        min-height: auto;
        max-height: 70vh; /* Begrenze Container-Höhe */
        position: relative;
        z-index: 5 !important; /* Content HINTER Video */
        isolation: auto !important; /* WICHTIG: Deaktiviere isolation für Mobile */
        /* KEIN transform: translateZ(0) - verursacht verschwommenen Text */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        order: 2;
        position: relative;
        z-index: 5 !important; /* Content HINTER Video */
        /* Bessere Lesbarkeit auf Mobile */
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        /* Nur Text anzeigen, keine Buttons */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* KEIN transform: translateZ(0) - verursacht verschwommenen Text */
    }
    
    .hero-title {
        position: relative;
        z-index: 102 !important;
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0;
        /* EINFACH: Weißer Text, KEIN Glühen */
        color: #fff !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
        text-align: center;
        font-weight: 700 !important;
    }
    
    
    .hero-visual {
        order: 1;
        max-width: 100%;
        position: relative;
        z-index: 51;
    }
    
    
    .hero-subtitle {
        display: none !important; /* Verstecke Subtitle auf Mobile */
    }
    
    .hero-actions {
        display: none !important; /* Verstecke Buttons auf Mobile */
    }
    
    .hero-actions .btn {
        display: none !important; /* Verstecke Buttons auf Mobile */
    }
    
    .hero-image {
        max-width: 200px;
        max-height: 200px;
        margin: 0 auto;
    }
    
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-card {
        min-width: 100%;
        padding: var(--spacing-lg);
    }
    
    /* Services Section Mobile - Vertikal gestapelt für bessere Lesbarkeit */
    .services-grid {
        display: flex !important;
        display: -webkit-flex !important; /* Safari */
        flex-direction: column !important;
        -webkit-flex-direction: column !important; /* Safari */
        align-items: center !important;
        gap: var(--spacing-lg) !important;
        padding: var(--spacing-md) !important;
    }
    
    .services-grid .service-card {
        flex: 0 0 auto !important;
        -webkit-flex: 0 0 auto !important; /* Safari */
        width: calc(100vw - 2rem) !important;
        min-width: 280px !important;
        max-width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .service-card .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Highlights Section Mobile */
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .highlight-item {
        padding: var(--spacing-lg);
    }
    
    /* Activities Section Mobile */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .activity-card {
        padding: var(--spacing-lg);
    }
    
    /* Contact Section Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: var(--text-base);
        padding: var(--spacing-md);
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Section Titles Mobile */
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .section-description {
        font-size: var(--text-base);
    }
}

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.2rem;
        --spacing-sm: 0.4rem;
        --spacing-md: 0.8rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.6rem;
        --spacing-2xl: 2rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: calc(var(--header-height) + var(--spacing-md)) 0 var(--spacing-lg) 0;
    }
    
    .hero-video {
        /* Video heller */
        filter: brightness(0.75) !important;
    }
    
    .hero-video-overlay {
        /* Leichtes Overlay */
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .hero-container {
        padding: var(--spacing-lg) var(--spacing-md);
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: var(--spacing-sm);
        line-height: 1.3 !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    
    .hero-subtitle {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-md);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    
    .hero-actions {
        gap: var(--spacing-sm);
    }
    
    .hero-actions .btn {
        min-height: 44px;
        font-size: var(--text-base);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .service-card,
    .highlight-item,
    .activity-card {
        padding: var(--spacing-md);
    }
    
    .btn {
        font-size: var(--text-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .mobile-menu {
        width: 90%;
        max-width: 100%;
    }
}

/* Landscape Mobile (max-height: 600px) */
@media (max-width: 768px) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: calc(var(--header-height) + var(--spacing-sm)) 0 var(--spacing-md) 0;
    }
    
    .hero-container {
        padding: var(--spacing-md) var(--spacing-lg);
        min-height: auto;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--spacing-sm);
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-actions {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .hero-actions .btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
    }
    
    /* Video auf Landscape Mobile - weniger Overlay für mehr Video-Sichtbarkeit */
    .hero-video-overlay {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(55, 48, 163, 0.8) 50%, rgba(124, 58, 237, 0.8) 100%);
    }
}

/* Tablet Optimierung (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
    
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-lg);
    }
    
    .services-grid .service-card {
        flex: 0 0 340px;
        min-width: 320px;
        max-width: 380px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets */
    .btn,
    .nav-link,
    .service-card,
    .activity-card {
        min-height: 48px;
    }
    
    /* Keine Hover-Effekte auf Touch-Geräten */
    .service-card:hover {
        transform: none;
    }
    
    /* Aktive States statt Hover */
    .btn:active {
        transform: scale(0.98);
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    /* Touch Scroll Optimierung */
    html,
    body {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y !important; /* Erlaubt vertikales Scrollen */
        overscroll-behavior-y: auto !important; /* Erlaubt normales Scroll-Verhalten */
    }
    
    /* Erlaube normales Scroll-Verhalten auf iOS - Pull-to-Refresh ist OK */
    body {
        overscroll-behavior-y: auto !important;
    }
    
    /* Fix für iOS Safari - KEIN position: fixed mehr, das blockiert Scrollen */
    @supports (-webkit-touch-callout: none) {
        body {
            position: relative !important;
            width: 100%;
            height: auto !important;
            min-height: 100vh;
            min-height: -webkit-fill-available;
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }
        
        html {
            height: auto !important;
            overflow-y: auto !important;
        }
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .nav-logo,
    .activity-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion für Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   🌐 CROSS-BROWSER KOMPATIBILITÄT
   ============================================ */

/* Firefox-spezifische Fixes */
@-moz-document url-prefix() {
    /* Firefox: backdrop-filter Fallback */
    .admin-content,
    .service-card.modern-highlight {
        background: rgba(255, 255, 255, 0.1) !important; /* Durchsichtig wie andere Kacheln */
    }
    
    .stat-card,
    .magic-container {
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    /* Firefox: Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Firefox: Flexbox Gap Fallback */
    .services-grid,
    .highlights-grid,
    .activities-grid {
        gap: 1.5rem;
        margin: -0.75rem;
    }
    
    .services-grid > *,
    .highlights-grid > *,
    .activities-grid > * {
        margin: 0.75rem;
    }
    
    /* Firefox: Grid Auto-fit Fix - Horizontal Scroll */
    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Chrome/Edge-spezifische Optimierungen */
@supports (-webkit-appearance: none) {
    /* Webkit: backdrop-filter Support */
    .admin-content,
    .service-card.modern-highlight,
    .stat-card {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    
    /* Webkit: Smooth Scrolling */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Webkit: Text Rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Safari-spezifische Fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Safari: backdrop-filter */
    .admin-content,
    .service-card.modern-highlight,
    .stat-card {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    
    /* Safari: Flexbox Gap Fallback */
    .hero-actions {
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
    }
    
    /* Safari: Flex Scroll Support - nur Desktop */
    @media (min-width: 769px) {
    .services-grid {
            display: -webkit-flex;
            display: flex;
            flex-wrap: nowrap !important; /* Safari-Fix: Verhindert Umbruch */
            -webkit-flex-wrap: nowrap !important;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Allgemeine Cross-Browser Fixes */
* {
    /* Box-sizing für alle Browser */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Flexbox Fallbacks */
.flex,
.d-flex,
.hero-actions,
.nav-container,
.content-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

/* Grid Fallbacks */
.grid,
.services-grid,
.highlights-grid,
.activities-grid,
.about-stats {
    display: -webkit-grid;
    display: -moz-grid;
    display: -ms-grid;
    display: grid;
}

/* Transform mit Vendor-Prefixes */
.transform,
.service-card:hover,
.btn:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Transition mit Vendor-Prefixes */
.transition,
.btn,
.service-card,
.nav-link {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Border-radius mit Vendor-Prefixes */
.rounded,
.btn,
.service-card,
.stat-card {
    -webkit-border-radius: var(--radius-lg);
    -moz-border-radius: var(--radius-lg);
    border-radius: var(--radius-lg);
}

/* Box-shadow mit Vendor-Prefixes */
.shadow,
.service-card,
.stat-card,
.btn {
    -webkit-box-shadow: var(--shadow-md);
    -moz-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

/* Backdrop-filter mit Fallbacks */
.backdrop-blur,
.admin-content,
.service-card.modern-highlight {
    background: rgba(255, 255, 255, 0.1) !important; /* Durchsichtig wie andere Kacheln */
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Firefox: backdrop-filter Fallback */
@supports not (backdrop-filter: blur(12px)) {
    .admin-content,
    .stat-card,
    .magic-container {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .service-card.modern-highlight {
        background: rgba(255, 255, 255, 0.15) !important; /* Etwas mehr Deckkraft als Fallback, aber immer noch durchsichtig */
    }
}

/* CSS-Variablen Fallback für ältere Browser */
@supports not (--css: variables) {
    :root {
        --primary: #6366f1;
        --primary-dark: #4f46e5;
        --white: #ffffff;
        --gray-800: #1e293b;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --radius-lg: 0.75rem;
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

/* Gradient Text - Hauptdefinition */
.hero .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff; /* Fallback für Browser ohne background-clip Support */
    text-shadow: none; /* Kein Text-Shadow bei Gradient */
    display: inline-block;
    font-weight: 700;
}


/* Fallback für Browser ohne background-clip Support */
@supports not (-webkit-background-clip: text) {
    .hero .gradient-text {
        color: #ffffff;
        background: none;
        -webkit-text-fill-color: unset;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
}

/* Firefox: -webkit-text-fill-color Fallback */
@-moz-document url-prefix() {
    .hero .gradient-text {
        color: #ffffff;
        background: none;
        -webkit-text-fill-color: unset;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
}

/* Firefox: Grid Auto-fit Alternative */
@supports not (grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card {
        flex: 0 0 380px;
        min-width: 340px;
        max-width: 420px;
    }
}

/* Firefox: Flexbox Gap Fallback */
@supports not (gap: 1.5rem) {
    .services-grid,
    .highlights-grid,
    .activities-grid {
        margin: -0.75rem;
    }
    
    .services-grid > *,
    .highlights-grid > *,
    .activities-grid > * {
        margin: 0.75rem;
    }
}

/* Firefox: aspect-ratio Fallback */
@supports not (aspect-ratio: 16/9) {
    .hero-image,
    .activity-image img {
        height: auto;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    }
}

/* Firefox: :has() Selector Fallback */
@supports not selector(:has(*)) {
    .service-card:has(.service-features) {
        padding-bottom: 2rem;
    }
}

/* Firefox: Container Queries Fallback */
@supports not (container-type: inline-size) {
    .service-card {
        width: 380px;
        max-width: 420px;
    }
}

/* Firefox: Scrollbar Styling */
@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--gray-400) var(--gray-100);
    }
}

/* Webkit: Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Firefox: Input Styling */
@-moz-document url-prefix() {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        -moz-appearance: none;
        appearance: none;
    }
    
    input[type="number"] {
        -moz-appearance: textfield;
    }
    
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

/* Firefox: Button Focus Styling */
@-moz-document url-prefix() {
    .btn:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
}

/* Firefox: Animation Performance */
@-moz-document url-prefix() {
    .service-card,
    .stat-card,
    .btn {
        will-change: transform;
    }
}

/* Firefox: Text Selection */
@-moz-document url-prefix() {
    ::selection {
        background: var(--primary);
        color: var(--white);
    }
    
    ::-moz-selection {
        background: var(--primary);
        color: var(--white);
    }
}

/* Webkit: Text Selection */
::-webkit-selection {
    background: var(--primary);
    color: var(--white);
}

/* Firefox: Placeholder Styling */
@-moz-document url-prefix() {
    input::placeholder,
    textarea::placeholder {
        opacity: 0.6;
    }
}

/* Webkit: Placeholder Styling */
::-webkit-input-placeholder {
    opacity: 0.6;
}

/* Firefox: Image Rendering */
@-moz-document url-prefix() {
    img {
        image-rendering: -moz-crisp-edges;
        image-rendering: crisp-edges;
    }
}

/* Webkit: Image Rendering */
img {
    -webkit-image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-optimize-contrast;
}

/* Firefox: Filter Fallback */
@supports not (filter: blur(10px)) {
    .sparkle {
        opacity: 0.8;
    }
}

/* Firefox: Clip-path Fallback */
@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)) {
    .service-card.modern-highlight::before {
        display: none;
    }
}

/* =============================================== */
/* SCHNEEFLOCKEN - EINFACHER, SAUBERER ANSATZ     */
/* =============================================== */

.snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100; /* Schneeflocken über allen Inhalten, auch über Services */
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: white;
    font-size: 1.5rem;
    user-select: none;
    pointer-events: none;
    opacity: 1;
    display: block;
    visibility: visible;
    z-index: 100; /* Schneeflocken über Services-Kacheln */
    /* WICHTIG: Keine animation hier setzen - wird von JavaScript gesetzt */
}

.snowflake::before {
    content: "❄";
}

.snowflake.small {
    font-size: 1rem !important; /* Größer für einfacheres Treffen */
    opacity: 0.75 !important;
}

.snowflake.medium {
    font-size: 2rem !important; /* Größer für einfacheres Treffen */
    opacity: 0.9 !important;
}

.snowflake.large {
    font-size: 3.5rem !important; /* VIEL größer - super leicht zu treffen! */
    opacity: 1 !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9) !important;
}

.snowflake.clickable {
    pointer-events: auto;
    cursor: pointer;
    z-index: 15; /* Hinter den Service-Kacheln (z-index: 50), aber klickbar wo keine Kacheln sind */
}

/* Fallback für alte Referenzen */
@keyframes snowflakeFall {
    0% { transform: translate(0, -50px) rotate(0deg); }
    25% { transform: translate(35px, 500px) rotate(90deg); }
    50% { transform: translate(-25px, 1000px) rotate(180deg); }
    75% { transform: translate(45px, 1500px) rotate(270deg); }
    100% { transform: translate(0, 2000px) rotate(360deg); }
}

/* ===== BLATT-SEGELN ANIMATIONEN MIT SCHWUNG ===== */
/* Elegantes Segeln wie ein Blatt - fließend nach unten mit schwungvollem Pendeln */

/* Variante 1: Elegantes Segeln mit Schwung */
@keyframes snowflakeFall1 {
    0% { transform: translate(0, -50px) rotate(0deg); opacity: 0.8; }
    4% { transform: translate(15px, 30px) rotate(12deg); opacity: 1; }
    8% { transform: translate(25px, 110px) rotate(25deg); }
    12% { transform: translate(18px, 190px) rotate(15deg); }
    16% { transform: translate(-5px, 270px) rotate(-8deg); }
    20% { transform: translate(-20px, 350px) rotate(-22deg); }
    24% { transform: translate(-25px, 430px) rotate(-18deg); }
    28% { transform: translate(-12px, 510px) rotate(-5deg); }
    32% { transform: translate(8px, 590px) rotate(10deg); }
    36% { transform: translate(22px, 670px) rotate(20deg); }
    40% { transform: translate(28px, 750px) rotate(25deg); }
    44% { transform: translate(18px, 830px) rotate(15deg); }
    48% { transform: translate(-2px, 910px) rotate(-5deg); }
    52% { transform: translate(-18px, 990px) rotate(-18deg); }
    56% { transform: translate(-25px, 1070px) rotate(-22deg); }
    60% { transform: translate(-15px, 1150px) rotate(-12deg); }
    64% { transform: translate(5px, 1230px) rotate(8deg); }
    68% { transform: translate(20px, 1310px) rotate(18deg); }
    72% { transform: translate(25px, 1390px) rotate(22deg); }
    76% { transform: translate(15px, 1470px) rotate(12deg); }
    80% { transform: translate(-5px, 1550px) rotate(-6deg); }
    84% { transform: translate(-18px, 1630px) rotate(-15deg); }
    88% { transform: translate(-22px, 1710px) rotate(-18deg); }
    92% { transform: translate(-12px, 1790px) rotate(-10deg); }
    96% { transform: translate(5px, 1870px) rotate(5deg); opacity: 0.9; }
    100% { transform: translate(0, 2000px) rotate(0deg); opacity: 0.8; }
}

/* Variante 2: Weites Schwingen mit Drehung */
@keyframes snowflakeFall2 {
    0% { transform: translate(0, -50px) rotate(0deg); opacity: 0.8; }
    5% { transform: translate(-12px, 50px) rotate(-15deg); opacity: 1; }
    10% { transform: translate(-28px, 150px) rotate(-30deg); }
    15% { transform: translate(-35px, 250px) rotate(-25deg); }
    20% { transform: translate(-25px, 350px) rotate(-10deg); }
    25% { transform: translate(-5px, 450px) rotate(8deg); }
    30% { transform: translate(18px, 550px) rotate(22deg); }
    35% { transform: translate(32px, 650px) rotate(30deg); }
    40% { transform: translate(35px, 750px) rotate(25deg); }
    45% { transform: translate(22px, 850px) rotate(12deg); }
    50% { transform: translate(2px, 950px) rotate(-5deg); }
    55% { transform: translate(-18px, 1050px) rotate(-20deg); }
    60% { transform: translate(-30px, 1150px) rotate(-28deg); }
    65% { transform: translate(-32px, 1250px) rotate(-22deg); }
    70% { transform: translate(-18px, 1350px) rotate(-8deg); }
    75% { transform: translate(5px, 1450px) rotate(10deg); }
    80% { transform: translate(22px, 1550px) rotate(22deg); }
    85% { transform: translate(28px, 1650px) rotate(25deg); }
    90% { transform: translate(18px, 1750px) rotate(15deg); }
    95% { transform: translate(5px, 1850px) rotate(5deg); opacity: 0.9; }
    100% { transform: translate(0, 2000px) rotate(0deg); opacity: 0.8; }
}

/* Variante 3: Sanftes Gleiten mit eleganten Kurven */
@keyframes snowflakeFall3 {
    0% { transform: translate(0, -50px) rotate(0deg); opacity: 0.75; }
    8% { transform: translate(20px, 110px) rotate(18deg); opacity: 1; }
    16% { transform: translate(30px, 270px) rotate(28deg); }
    24% { transform: translate(15px, 430px) rotate(12deg); }
    32% { transform: translate(-10px, 590px) rotate(-10deg); }
    40% { transform: translate(-28px, 750px) rotate(-25deg); }
    48% { transform: translate(-30px, 910px) rotate(-20deg); }
    56% { transform: translate(-12px, 1070px) rotate(-5deg); }
    64% { transform: translate(15px, 1230px) rotate(15deg); }
    72% { transform: translate(28px, 1390px) rotate(24deg); }
    80% { transform: translate(25px, 1550px) rotate(18deg); }
    88% { transform: translate(8px, 1710px) rotate(6deg); }
    96% { transform: translate(-5px, 1870px) rotate(-3deg); opacity: 0.9; }
    100% { transform: translate(0, 2000px) rotate(0deg); opacity: 0.75; }
}

/* Variante 4: Wirbelndes Segeln */
@keyframes snowflakeFall4 {
    0% { transform: translate(0, -50px) rotate(0deg); opacity: 0.8; }
    8% { transform: translate(18px, 110px) rotate(50deg); opacity: 1; }
    16% { transform: translate(28px, 270px) rotate(100deg); }
    24% { transform: translate(12px, 430px) rotate(150deg); }
    32% { transform: translate(-15px, 590px) rotate(200deg); }
    40% { transform: translate(-30px, 750px) rotate(250deg); }
    48% { transform: translate(-25px, 910px) rotate(300deg); }
    56% { transform: translate(-5px, 1070px) rotate(350deg); }
    64% { transform: translate(20px, 1230px) rotate(400deg); }
    72% { transform: translate(30px, 1390px) rotate(450deg); }
    80% { transform: translate(20px, 1550px) rotate(500deg); }
    88% { transform: translate(-5px, 1710px) rotate(550deg); }
    96% { transform: translate(-15px, 1870px) rotate(600deg); opacity: 0.9; }
    100% { transform: translate(0, 2000px) rotate(630deg); opacity: 0.8; }
}

/* Variante 5: Schwungvolles Schaukeln */
@keyframes snowflakeFall5 {
    0% { transform: translate(0, -50px) rotate(-5deg); opacity: 0.75; }
    7% { transform: translate(22px, 90px) rotate(20deg); opacity: 1; }
    14% { transform: translate(35px, 230px) rotate(32deg); }
    21% { transform: translate(25px, 370px) rotate(18deg); }
    28% { transform: translate(0px, 510px) rotate(-5deg); }
    35% { transform: translate(-25px, 650px) rotate(-25deg); }
    42% { transform: translate(-35px, 790px) rotate(-32deg); }
    49% { transform: translate(-22px, 930px) rotate(-18deg); }
    56% { transform: translate(5px, 1070px) rotate(8deg); }
    63% { transform: translate(28px, 1210px) rotate(25deg); }
    70% { transform: translate(32px, 1350px) rotate(28deg); }
    77% { transform: translate(18px, 1490px) rotate(15deg); }
    84% { transform: translate(-8px, 1630px) rotate(-8deg); }
    91% { transform: translate(-20px, 1770px) rotate(-18deg); }
    98% { transform: translate(-8px, 1910px) rotate(-8deg); opacity: 0.9; }
    100% { transform: translate(0, 2000px) rotate(0deg); opacity: 0.75; }
}

/* ===== SCHWIERIGERE ANIMATIONEN (Level 3+) ===== */

/* Variante 6: Schnelleres Blatt-Pendeln */
@keyframes snowflakeFall6 {
    0% { transform: translate(0, -50px) rotate(0deg); }
    6% { transform: translate(10px, 70px) rotate(25deg); }
    12% { transform: translate(-8px, 190px) rotate(-20deg); }
    18% { transform: translate(12px, 310px) rotate(30deg); }
    24% { transform: translate(-10px, 430px) rotate(-25deg); }
    30% { transform: translate(8px, 550px) rotate(28deg); }
    36% { transform: translate(-12px, 670px) rotate(-22deg); }
    42% { transform: translate(10px, 790px) rotate(26deg); }
    48% { transform: translate(-8px, 910px) rotate(-24deg); }
    54% { transform: translate(12px, 1030px) rotate(22deg); }
    60% { transform: translate(-10px, 1150px) rotate(-20deg); }
    66% { transform: translate(8px, 1270px) rotate(24deg); }
    72% { transform: translate(-12px, 1390px) rotate(-18deg); }
    78% { transform: translate(10px, 1510px) rotate(20deg); }
    84% { transform: translate(-8px, 1630px) rotate(-16deg); }
    90% { transform: translate(6px, 1750px) rotate(14deg); }
    96% { transform: translate(-4px, 1870px) rotate(-10deg); }
    100% { transform: translate(0, 2000px) rotate(0deg); }
}

/* Variante 7: Wirbelndes Blatt */
@keyframes snowflakeFall7 {
    0% { transform: translate(0, -50px) rotate(0deg); }
    10% { transform: translate(10px, 150px) rotate(60deg); }
    20% { transform: translate(-8px, 350px) rotate(120deg); }
    30% { transform: translate(12px, 550px) rotate(180deg); }
    40% { transform: translate(-10px, 750px) rotate(240deg); }
    50% { transform: translate(8px, 950px) rotate(300deg); }
    60% { transform: translate(-12px, 1150px) rotate(360deg); }
    70% { transform: translate(10px, 1350px) rotate(420deg); }
    80% { transform: translate(-8px, 1550px) rotate(480deg); }
    90% { transform: translate(6px, 1750px) rotate(540deg); }
    100% { transform: translate(0, 2000px) rotate(600deg); }
}

/* Variante 8: Dynamisches Schaukeln */
@keyframes snowflakeFall8 {
    0% { transform: translate(0, -50px) rotate(0deg); }
    8% { transform: translate(12px, 110px) rotate(30deg); }
    16% { transform: translate(-10px, 270px) rotate(-25deg); }
    24% { transform: translate(14px, 430px) rotate(35deg); }
    32% { transform: translate(-12px, 590px) rotate(-30deg); }
    40% { transform: translate(10px, 750px) rotate(28deg); }
    48% { transform: translate(-14px, 910px) rotate(-32deg); }
    56% { transform: translate(12px, 1070px) rotate(26deg); }
    64% { transform: translate(-10px, 1230px) rotate(-28deg); }
    72% { transform: translate(14px, 1390px) rotate(24deg); }
    80% { transform: translate(-12px, 1550px) rotate(-22deg); }
    88% { transform: translate(8px, 1710px) rotate(18deg); }
    96% { transform: translate(-4px, 1870px) rotate(-10deg); }
    100% { transform: translate(0, 2000px) rotate(0deg); }
}

/* Variante 9: Lebhaftes Blatt */
@keyframes snowflakeFall9 {
    0% { transform: translate(0, -50px) rotate(0deg); }
    5% { transform: translate(8px, 50px) rotate(20deg); }
    10% { transform: translate(-10px, 150px) rotate(-25deg); }
    15% { transform: translate(12px, 250px) rotate(30deg); }
    20% { transform: translate(-8px, 350px) rotate(-20deg); }
    25% { transform: translate(10px, 450px) rotate(25deg); }
    30% { transform: translate(-12px, 550px) rotate(-28deg); }
    35% { transform: translate(8px, 650px) rotate(22deg); }
    40% { transform: translate(-10px, 750px) rotate(-24deg); }
    45% { transform: translate(12px, 850px) rotate(26deg); }
    50% { transform: translate(-8px, 950px) rotate(-22deg); }
    55% { transform: translate(10px, 1050px) rotate(24deg); }
    60% { transform: translate(-12px, 1150px) rotate(-26deg); }
    65% { transform: translate(8px, 1250px) rotate(20deg); }
    70% { transform: translate(-10px, 1350px) rotate(-22deg); }
    75% { transform: translate(12px, 1450px) rotate(18deg); }
    80% { transform: translate(-8px, 1550px) rotate(-16deg); }
    85% { transform: translate(10px, 1650px) rotate(14deg); }
    90% { transform: translate(-6px, 1750px) rotate(-12deg); }
    95% { transform: translate(4px, 1850px) rotate(8deg); }
    100% { transform: translate(0, 2000px) rotate(0deg); }
}

/* Variante 10: Meister - intensives Wirbeln */
@keyframes snowflakeFall10 {
    0% { transform: translate(0, -50px) rotate(0deg); }
    5% { transform: translate(14px, 50px) rotate(35deg); }
    10% { transform: translate(-12px, 150px) rotate(70deg); }
    15% { transform: translate(16px, 250px) rotate(105deg); }
    20% { transform: translate(-14px, 350px) rotate(140deg); }
    25% { transform: translate(12px, 450px) rotate(175deg); }
    30% { transform: translate(-16px, 550px) rotate(210deg); }
    35% { transform: translate(14px, 650px) rotate(245deg); }
    40% { transform: translate(-12px, 750px) rotate(280deg); }
    45% { transform: translate(16px, 850px) rotate(315deg); }
    50% { transform: translate(-14px, 950px) rotate(350deg); }
    55% { transform: translate(12px, 1050px) rotate(385deg); }
    60% { transform: translate(-16px, 1150px) rotate(420deg); }
    65% { transform: translate(14px, 1250px) rotate(455deg); }
    70% { transform: translate(-12px, 1350px) rotate(490deg); }
    75% { transform: translate(16px, 1450px) rotate(525deg); }
    80% { transform: translate(-14px, 1550px) rotate(560deg); }
    85% { transform: translate(12px, 1650px) rotate(595deg); }
    90% { transform: translate(-10px, 1750px) rotate(630deg); }
    95% { transform: translate(6px, 1850px) rotate(665deg); }
    100% { transform: translate(0, 2000px) rotate(700deg); }
}

/* ===== WIND-EFFEKT ===== */
/* Existierende Flocken werden bei Wind diagonal geweht */
.snowflakes-container.wind-right .snowflake:not(.wind-flake) {
    animation-timing-function: ease-out !important;
    transform: translate(200px, 100px) rotate(45deg) !important;
    transition: transform 1s ease-out;
}

.snowflakes-container.wind-left .snowflake:not(.wind-flake) {
    animation-timing-function: ease-out !important;
    transform: translate(-200px, 100px) rotate(-45deg) !important;
    transition: transform 1s ease-out;
}

/* Diagonale Wind-Animationen für neue Flocken */
@keyframes windBlowRight {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 1;
    }
    100% { 
        transform: translate(calc(100vw + 100px), calc(100vh + 100px)) rotate(180deg); 
        opacity: 0.5;
    }
}

@keyframes windBlowLeft {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 1;
    }
    100% { 
        transform: translate(calc(-100vw - 100px), calc(100vh + 100px)) rotate(-180deg); 
        opacity: 0.5;
    }
}

/* Wind-Flocken Styling */
.snowflake.wind-flake {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Wind-Anzeige */
.wind-indicator {
    position: fixed;
    top: 50%;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
    z-index: 500;
    animation: windShow 3s ease-out forwards;
    pointer-events: none;
}

.wind-indicator.left {
    left: 30px;
}

.wind-indicator.right {
    right: 30px;
}

@keyframes windShow {
    0% { opacity: 0; transform: translateY(-50%) scale(0.5); }
    15% { opacity: 1; transform: translateY(-50%) scale(1.3); }
    30% { opacity: 1; transform: translateY(-50%) scale(1); }
    80% { opacity: 0.8; transform: translateY(-50%) scale(1); }
    100% { opacity: 0; transform: translateY(-50%) scale(0.8); }
}

/* ===== FRAGMENT-ANIMATION ===== */
.snowflake.fragment {
    font-size: 0.6rem !important;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    transform-origin: center center;
}

/* Zweiphasige Animation: Erst Explosion in alle Richtungen, dann Fallen nach unten */
@keyframes fragmentExplodeAndFall {
    /* Phase 1: Explosion (0-15%) - Schnell in alle Richtungen */
    0% { 
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    15% {
        opacity: 1;
        transform: translate(var(--explode-x), var(--explode-y)) rotate(90deg) scale(0.9);
    }
    /* Phase 2: Übergang zum Fallen (15-25%) */
    25% {
        opacity: 0.95;
        transform: translate(
            calc(var(--explode-x) + var(--drift-x) * 0.1), 
            calc(var(--explode-y) + 30px)
        ) rotate(120deg) scale(0.85);
    }
    /* Phase 3: Natürliches Fallen nach unten (25-100%) */
    40% {
        opacity: 0.9;
        transform: translate(
            calc(var(--drift-x) * 0.4), 
            calc(var(--explode-y) + var(--fall-distance) * 0.2)
        ) rotate(180deg) scale(0.8);
    }
    55% {
        opacity: 0.8;
        transform: translate(
            calc(var(--drift-x) * 0.6), 
            calc(var(--explode-y) + var(--fall-distance) * 0.4)
        ) rotate(220deg) scale(0.75);
    }
    70% {
        opacity: 0.6;
        transform: translate(
            calc(var(--drift-x) * 0.8), 
            calc(var(--explode-y) + var(--fall-distance) * 0.6)
        ) rotate(280deg) scale(0.7);
    }
    85% {
        opacity: 0.4;
        transform: translate(
            var(--drift-x), 
            calc(var(--explode-y) + var(--fall-distance) * 0.85)
        ) rotate(var(--rotation)) scale(0.6);
    }
    100% { 
        opacity: 0;
        transform: translate(
            var(--drift-x), 
            calc(var(--explode-y) + var(--fall-distance))
        ) rotate(var(--rotation)) scale(0.5);
    }
}

/* ===== ZERBRECH-ANIMATION ===== */
.snowflake.shatter {
    animation: shatterEffect 0.3s ease-out forwards !important;
}

@keyframes shatterEffect {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(45deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        transform: scale(0) rotate(90deg);
        opacity: 0;
        filter: blur(5px);
    }
}

/* Mobile: Schneeflocken-Größen anpassen */
@media (max-width: 768px) {
    /* WICHTIG: Schneeflocken VOR dem Video auf iOS Safari */
    .snowflakes-container {
        z-index: 100 !important; /* Höher als Video-Wrapper (z-index: 50) */
    }
    
    .snowflake {
        z-index: 100 !important; /* Schneeflocken VOR dem Video */
    }
    
    .snowflake.clickable {
        z-index: 100 !important; /* Klickbare Schneeflocken auch VOR dem Video */
    }
    
    .snowflake.small {
        font-size: 0.8rem; /* Größer auf Mobile */
    }
    
    .snowflake.medium {
        font-size: 1.5rem; /* Größer auf Mobile */
    }
    
    .snowflake.large {
        font-size: 2.5rem; /* Größer auf Mobile - leicht zu treffen! */
    }
}

/* ==========================================
   SCHNEEFLOCKEN-SPIEL STYLES
   ========================================== */

/* Klickbare Schneeflocken - Duplikat entfernt, wird oben bei .snowflake definiert */

.snowflake.clickable:hover {
    filter: drop-shadow(0 0 10px white) !important;
}

.snowflake.caught {
    transform: scale(2) !important;
    opacity: 0 !important;
    transition: all 0.3s ease;
    /* Animation stoppen wenn gefangen */
    animation: none !important;
}

/* Score Display */
.snowflake-game-ui {
    position: fixed;
    top: 80px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    font-family: var(--font-family-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.score-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.score-value {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

/* Level Display */
.level-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.level-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.level-value {
    color: #FFD700;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

/* Level Up Popup */
.level-up-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(59, 130, 246, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 50px;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    z-index: 100000;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.3);
    animation: levelUpAppear 2.5s ease-out forwards;
}

.level-up-popup span {
    display: block;
    font-size: 1.5rem;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    margin-top: 10px;
}

@keyframes levelUpAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-30px);
    }
}

/* Save Highscore Button */
.save-highscore-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.save-highscore-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Points Popup */
.points-popup {
    position: fixed;
    pointer-events: none;
    color: #FFD700;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 
        0 0 10px #FFD700,
        0 0 20px #FFA500,
        0 2px 10px rgba(0, 0, 0, 0.8);
    animation: pointsFloat 1.5s ease-out forwards;
    z-index: 999999; /* Über allem */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Mobile: Noch größer und auffälliger */
@media (max-width: 768px) {
    .points-popup {
        font-size: 2.5rem;
        font-weight: 900;
        text-shadow: 
            0 0 15px #FFD700,
            0 0 30px #FFA500,
            0 0 45px #FF6600,
            0 3px 15px rgba(0, 0, 0, 0.9);
        animation: pointsFloatMobile 2s ease-out forwards;
    }
}

@keyframes pointsFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.5);
    }
}

@keyframes pointsFloatMobile {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    30% {
        opacity: 1;
        transform: translateY(-20px) scale(1.5);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-40px) scale(1.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-70px) scale(2);
    }
}

/* Highscore Modal */
.highscore-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.highscore-modal-content {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(124, 58, 237, 0.95));
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.highscore-modal-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.highscore-modal-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.highscore-modal-content #finalScore {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFD700;
}

.highscore-modal-content input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

.highscore-modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.highscore-modal-content input:focus {
    border-color: rgba(255, 255, 255, 0.6);
}

.highscore-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.highscore-modal-buttons button {
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.highscore-modal-buttons .submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.highscore-modal-buttons .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.highscore-modal-buttons .cancel-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.highscore-modal-buttons .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Highscore Card in Aktivitäten */
.highscore-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(124, 58, 237, 0.9)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Weiße Schrift für Highscore-Karte */
.highscore-card .activity-content h3,
.highscore-card .activity-content p,
.highscore-card .no-highscores {
    color: #ffffff !important;
}

.highscore-card .activity-content h3 {
    color: #ffffff !important;
}

.highscore-card .activity-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.highscore-bg {
    background: linear-gradient(135deg, #1e3a8a, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.highscore-icon {
    font-size: 4rem;
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.highscores-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.highscore-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.highscore-entry.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.highscore-entry.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(169, 169, 169, 0.2));
    border: 1px solid rgba(192, 192, 192, 0.5);
}

.highscore-entry.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(184, 115, 51, 0.2));
    border: 1px solid rgba(205, 127, 50, 0.5);
}

.highscore-entry .rank {
    font-size: 1.1rem;
    min-width: 30px;
}

.highscore-entry .name {
    flex: 1;
    font-weight: 500;
    color: #ffffff !important;
}

.highscore-entry .score {
    font-weight: 700;
    color: #FFD700;
}

.highscore-entry .rank {
    color: #ffffff !important;
}

.no-highscores {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 15px;
}

/* Mobile Anpassungen für Spiel-UI */
@media (max-width: 768px) {
    .snowflake-game-ui {
        top: 70px;
        left: 10px;
        padding: 8px 15px;
    }
    
    .score-label {
        font-size: 0.8rem;
    }
    
    .score-value {
        font-size: 1rem;
    }
    
    .level-display {
        padding-left: 8px;
    }
    
    .level-label {
        font-size: 0.75rem;
    }
    
    .level-value {
        font-size: 0.85rem;
    }
    
    .level-up-popup {
        padding: 20px 30px;
        font-size: 1.5rem;
    }
    
    .level-up-popup span {
        font-size: 1.2rem;
    }
    
    .save-highscore-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .highscore-modal-content {
        padding: 20px;
    }
    
    .highscores-list {
        max-height: 150px;
    }
}
