/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme (Standard) */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-dark: #1e3a8a;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-section: #f8fafc;
    --border-color: #e2e8f0;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success: #10b981;
    --warning: #f59e0b;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-text: #1e293b;
    --hero-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    --hero-text: #1e293b;
    --card-bg: #ffffff;
    --card-border: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-section: #0f172a;
    --border-color: #334155;
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --navbar-text: #ffffff;
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --hero-text: #ffffff;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(59, 130, 246, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--text-dark);
    background-color: var(--bg-white);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    font-weight: 400;
    font-size: clamp(16px, 1.125vw, 18px);
}

/* Premium Typography System - Responsive & Optimized */
h1 {
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.3;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    line-height: 1.75;
    font-size: clamp(16px, 1.125vw, 18px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 64px);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    transition: background-color 0.3s ease;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navbar-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-brand-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.nav-brand h2 {
    color: var(--navbar-text);
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Buttons direkt nebeneinander */
.nav-menu li:has(.theme-toggle) {
    margin-right: -1.5rem;
}

.nav-menu li:has(.language-switcher) {
    margin-left: 0;
}

.nav-menu li:has(.theme-toggle) + li:has(.language-switcher) {
    margin-left: 0.5rem;
}

.theme-toggle {
    margin-right: 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--navbar-text);
    font-weight: 400;
    font-size: 1.5rem;
    transition: color 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0.9;
    font-family: inherit;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.linkedin-link {
    color: #60a5fa !important;
    font-weight: 400;
}

.linkedin-link:hover {
    color: #3b82f6 !important;
}

.theme-toggle,
.language-switcher {
    background: rgba(59, 130, 246, 0.1);
    border: 1.5px solid var(--primary-color);
    color: var(--navbar-text);
    padding: 0.625rem 1.125rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 40px;
    min-width: 40px;
    line-height: 1.5;
    text-decoration: none;
    position: relative;
    opacity: 1;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.language-switcher:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.theme-toggle:hover,
.language-switcher:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: var(--primary-color);
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-switcher:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

[data-theme="dark"] .theme-toggle svg {
    transform: rotate(180deg);
}

.language-switcher-wrapper {
    position: relative;
}

.language-switcher {
    gap: 0.5rem;
}

.language-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.language-switcher span {
    min-width: 30px;
    text-align: center;
    display: inline-block;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.language-switcher-wrapper.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9375rem;
    font-weight: 400;
    text-align: left;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.language-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.language-option:first-child {
    border-radius: 12px 12px 0 0;
}

.language-option:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    transform: translateX(2px);
}

.language-option:active {
    background-color: rgba(59, 130, 246, 0.15);
    transform: translateX(1px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.language-option.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1.125rem - 3px);
}

.language-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.language-code {
    min-width: 40px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.language-option:hover .language-code,
.language-option.active .language-code {
    opacity: 1;
    color: var(--primary-color);
}

.language-name {
    flex: 1;
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.language-option.active .language-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* Dark Theme for Language Dropdown */
[data-theme="dark"] .language-dropdown {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="dark"] .language-option {
    color: rgba(241, 245, 249, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .language-option:hover {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

[data-theme="dark"] .language-option:active {
    background-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .language-option.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: var(--primary-light);
    border-left-color: var(--primary-light);
}

[data-theme="dark"] .language-code {
    color: var(--primary-light);
    opacity: 0.85;
}

[data-theme="dark"] .language-option:hover .language-code,
[data-theme="dark"] .language-option.active .language-code {
    opacity: 1;
    color: var(--primary-light);
}

[data-theme="dark"] .language-option.active .language-name {
    color: rgba(241, 245, 249, 1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--navbar-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    padding: clamp(120px, 15vw, 200px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-background-svg .network-line,
.hero-background-svg .network-node,
.hero-background-svg .database-fill,
.hero-background-svg .database-stroke,
.hero-background-svg .code-stroke,
.hero-background-svg .code-text,
.hero-background-svg .gear-stroke,
.hero-background-svg .gear-fill,
.hero-background-svg .bar-fill,
.hero-background-svg .bar-top,
.hero-background-svg .wavy-line {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

[data-theme="light"] .hero-background-svg .network-line,
[data-theme="light"] .hero-background-svg .network-node,
[data-theme="light"] .hero-background-svg .database-fill,
[data-theme="light"] .hero-background-svg .database-stroke,
[data-theme="light"] .hero-background-svg .code-stroke,
[data-theme="light"] .hero-background-svg .code-text,
[data-theme="light"] .hero-background-svg .gear-stroke,
[data-theme="light"] .hero-background-svg .gear-fill,
[data-theme="light"] .hero-background-svg .bar-fill,
[data-theme="light"] .hero-background-svg .bar-top,
[data-theme="light"] .hero-background-svg .wavy-line {
    fill: #1e3a8a;
    stroke: #1e3a8a;
}

[data-theme="light"] .hero-background-svg .database-stroke,
[data-theme="light"] .hero-background-svg .code-text,
[data-theme="light"] .hero-background-svg .gear-fill,
[data-theme="light"] .hero-background-svg .bar-top,
[data-theme="light"] .hero-background-svg .wavy-line {
    fill: #3b82f6;
    stroke: #3b82f6;
}

[data-theme="dark"] .hero-background-svg .network-line,
[data-theme="dark"] .hero-background-svg .network-node,
[data-theme="dark"] .hero-background-svg .database-fill,
[data-theme="dark"] .hero-background-svg .database-stroke,
[data-theme="dark"] .hero-background-svg .code-stroke,
[data-theme="dark"] .hero-background-svg .code-text,
[data-theme="dark"] .hero-background-svg .gear-stroke,
[data-theme="dark"] .hero-background-svg .gear-fill,
[data-theme="dark"] .hero-background-svg .bar-fill,
[data-theme="dark"] .hero-background-svg .bar-top,
[data-theme="dark"] .hero-background-svg .wavy-line {
    fill: #60a5fa;
    stroke: #60a5fa;
}

[data-theme="dark"] .hero-background-svg .database-stroke,
[data-theme="dark"] .hero-background-svg .code-text,
[data-theme="dark"] .hero-background-svg .gear-fill,
[data-theme="dark"] .hero-background-svg .bar-top,
[data-theme="dark"] .hero-background-svg .wavy-line {
    fill: #3b82f6;
    stroke: #3b82f6;
}

[data-theme="light"] .hero-background-svg .bg-rect {
    fill: #f8fafc;
}

[data-theme="dark"] .hero-background-svg .bg-rect {
    fill: #0f172a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

[data-theme="light"] .hero::before {
    opacity: 0.3;
}

[data-theme="dark"] .hero::before {
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(59, 130, 246, 0.03) 2px, rgba(59, 130, 246, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(59, 130, 246, 0.03) 2px, rgba(59, 130, 246, 0.03) 4px);
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-title {
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.hero-subtitle {
    margin-bottom: 2rem;
    opacity: 0.85;
    white-space: nowrap;
    overflow-x: visible;
    overflow-wrap: break-word;
    line-height: 1.5;
    max-width: 100%;
    transition: font-size 0.3s ease;
    font-weight: 400;
    word-break: keep-all;
    letter-spacing: 0.01em;
}

.hero-description {
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: clamp(18px, 1.5vw, 22px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#submit-btn {
    box-sizing: border-box;
    min-height: 44px;
    height: auto;
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    background-color: var(--primary-color);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background-color: var(--primary-light);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
        transform: translateY(-1px);
    }
    
    [data-theme="light"] .btn-primary:hover {
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15), 0 2px 4px rgba(59, 130, 246, 0.1);
    }
    
    [data-theme="dark"] .btn-primary:hover {
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25), 0 2px 4px rgba(59, 130, 246, 0.15);
    }
    
    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .btn-secondary:hover {
        background-color: rgba(59, 130, 246, 0.1);
        border-color: var(--primary-light);
        color: var(--hero-text);
    }
    
    [data-theme="light"] .btn-secondary:hover {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
        background-color: rgba(59, 130, 246, 0.15);
    }
    
    [data-theme="dark"] .btn-secondary:hover {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
        background-color: rgba(59, 130, 246, 0.2);
    }

    .nav-menu a:hover {
        color: var(--primary-light);
        opacity: 1;
        border-color: var(--primary-color);
        background: rgba(59, 130, 246, 0.1);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .theme-toggle:hover,
    .language-switcher:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: var(--primary-light);
        opacity: 1;
        color: var(--primary-light);
    }
}

.btn-secondary {
    background-color: transparent;
    color: var(--hero-text);
    border: 1.5px solid var(--primary-color);
    box-shadow: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-secondary {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--text-white);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }
    
    [data-theme="light"] .btn-secondary:hover {
        background-color: var(--primary-color);
        color: var(--text-white);
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.15), 0 2px 4px rgba(59, 130, 246, 0.1);
    }
    
    [data-theme="dark"] .btn-secondary:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-light);
        color: var(--text-white);
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25), 0 2px 4px rgba(59, 130, 246, 0.15);
    }
    
    .btn-secondary:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

/* Section Styles */
section {
    padding: clamp(80px, 10vw, 160px) 0;
}

.section-title {
    font-weight: 300;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-light) 100%);
    position: relative;
    transition: background 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 0 0 1px var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 
            0 4px 6px rgba(0, 0, 0, 0.07),
            0 10px 20px rgba(59, 130, 246, 0.15),
            0 20px 40px rgba(59, 130, 246, 0.1);
        border-color: var(--primary-color);
        background: var(--card-bg);
    }
    
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .service-card:hover::before {
        opacity: 1;
    }
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about {
    background-color: var(--bg-white);
    position: relative;
    transition: background-color 0.3s ease;
}

/* Why Choose Me Section */
.why-choose-me {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-section) 100%);
    padding: 6rem 0;
    position: relative;
    transition: background 0.3s ease;
}

.value-proposition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .value-proposition-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.value-proposition-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 0 0 1px var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    color: var(--text-dark);
    text-align: left;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .value-proposition-card:hover {
        transform: translateY(-8px);
        box-shadow: 
            0 4px 6px rgba(0, 0, 0, 0.07),
            0 10px 20px rgba(59, 130, 246, 0.15),
            0 20px 40px rgba(59, 130, 246, 0.1);
        border-color: var(--primary-color);
    }
    
    .value-proposition-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .value-proposition-card:hover::before {
        opacity: 1;
    }
}

.value-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-proposition-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.value-proposition-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.value-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
}

.value-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.value-proposition-summary {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-align: center;
}

.value-proposition-summary p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.01em;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 300;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.linkedin-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-light) 100%);
    position: relative;
    transition: background 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--primary-color);
    background: var(--bg-light);
    /* Create gradient background that matches theme */
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-section) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.contact-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Darker contrast for light theme */
    filter: brightness(0.85) contrast(1.4) saturate(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
    /* Use mix-blend-mode to blend out black background */
    mix-blend-mode: normal;
}

/* Hover effect for profile image */
@media (hover: hover) and (pointer: fine) {
    .contact-profile-image:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
        border-color: var(--primary-light);
    }
    
    .contact-profile-image:hover img {
        filter: brightness(0.9) contrast(1.5) saturate(1.3);
    }
}

/* Adjust image for dark theme */
[data-theme="dark"] .contact-profile-image {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

[data-theme="dark"] .contact-profile-image img {
    filter: brightness(1.15) contrast(1.2) saturate(1.05);
}

/* Overlay to replace black background with theme color - reduced for light theme */
.contact-profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    mix-blend-mode: multiply;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

[data-theme="dark"] .contact-profile-image::after {
    background: var(--bg-dark);
    mix-blend-mode: darken;
    opacity: 0.3;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.01em;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 0 0 1px var(--card-border);
    border: 1px solid var(--card-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 2px 4px rgba(59, 130, 246, 0.08),
        0 0 0 1px var(--primary-color);
    transform: translateY(-1px);
}

.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
    border-color: var(--success);
}

/* Validation styles - nur nach Submit-Versuch */
.form-group input.submitted:invalid,
.form-group textarea.submitted:invalid,
.form-group input.submitted:invalid:focus,
.form-group textarea.submitted:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group-checkbox.submitted input[type="checkbox"]:not(:checked) + .checkbox-text {
    color: #ef4444;
}

.form-group-checkbox.submitted input[type="checkbox"]:not(:checked) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:active,
.form-group textarea:active {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-group-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-top: 0.25rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    flex: 1;
}

.checkbox-text a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.checkbox-text a:hover {
    color: var(--primary-dark);
}

.form-status {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-status.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transition: opacity 0.3s ease, background 0.3s ease;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}

[data-theme="light"] #submit-btn:disabled {
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6) 0%, rgba(6, 182, 212, 0.6) 100%);
}

[data-theme="dark"] #submit-btn:disabled {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(6, 182, 212, 0.5) 100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    transition: background 0.3s ease;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: #0077b5;
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow-x: hidden;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 1.3rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-brand-link {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--navbar-bg);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        gap: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }

    .theme-toggle,
    .language-switcher-wrapper {
        width: 100%;
        margin: 0.5rem 0;
        position: relative;
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
        margin: 0;
        min-height: 56px;
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.0625rem;
        font-weight: 600;
        letter-spacing: -0.015em;
        border-width: 2px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .language-switcher:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .language-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        opacity: 0.9;
    }
    
    .language-dropdown {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        min-width: auto;
        width: 100%;
        z-index: 1001;
        max-height: 320px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .language-dropdown::-webkit-scrollbar {
        width: 6px;
    }
    
    .language-dropdown::-webkit-scrollbar-track {
        background: transparent;
        margin: 8px 0;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.3);
        border-radius: 3px;
        transition: background 0.2s ease;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb:hover {
        background: rgba(59, 130, 246, 0.5);
    }
    
    [data-theme="dark"] .language-dropdown::-webkit-scrollbar-thumb {
        background: rgba(96, 165, 250, 0.3);
    }
    
    [data-theme="dark"] .language-dropdown::-webkit-scrollbar-thumb:hover {
        background: rgba(96, 165, 250, 0.5);
    }
    
    .language-option {
        min-height: 56px;
        padding: 1rem 1.25rem;
        font-size: 1.0625rem;
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.15);
        touch-action: manipulation;
        gap: 1rem;
    }
    
    .language-option:active {
        transform: scale(0.97);
        transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .language-code {
        min-width: 44px;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.03em;
    }
    
    .language-name {
        font-size: 1.0625rem;
        font-weight: 500;
        letter-spacing: -0.015em;
    }
    
    .language-option.active .language-name {
        font-weight: 600;
    }
    
    /* Mobile-specific: Better visual separation */
    .language-option {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    [data-theme="dark"] .language-option {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Enhanced active state for mobile */
    .language-option.active {
        border-left-width: 4px;
        padding-left: calc(1.25rem - 4px);
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    }
    
    [data-theme="dark"] .language-option.active {
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.18) 100%);
    }
    
    .language-option.active::before {
        width: 4px;
    }
    
    /* Ensure both buttons have the same styling in mobile */
    .nav-menu li:has(.theme-toggle),
    .nav-menu li:has(.language-switcher) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.75rem 0;
    }
    
    /* Reset desktop-specific margins for mobile */
    .nav-menu li:has(.theme-toggle) + li:has(.language-switcher) {
        margin-left: 0 !important;
    }
    
    /* Reset theme-toggle margin for mobile */
    .nav-menu .theme-toggle {
        margin-right: 0 !important;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow-x: visible;
        overflow-wrap: break-word;
        line-height: 1.4;
        padding-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .why-choose-me {
        padding: 4rem 0;
    }

    .value-proposition-grid {
        gap: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .value-proposition-card {
        padding: 2rem 1.5rem;
    }

    .value-proposition-card h3 {
        font-size: 1.3rem;
    }

    .value-proposition-card p {
        font-size: 0.95rem;
    }

    .value-proposition-summary {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .value-proposition-summary p {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
        height: auto;
        padding: 1rem 2rem;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    #submit-btn {
        width: 100%;
        min-height: 44px;
        height: auto;
        box-sizing: border-box;
        padding: 1rem 2rem;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    }
    
    #submit-btn:hover,
    #submit-btn:focus,
    #submit-btn:active {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
        transform: none !important;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .skills-list {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-brand h2 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        white-space: nowrap;
        overflow-x: visible;
        overflow-wrap: break-word;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    #submit-btn {
        width: 100% !important;
        min-height: 44px;
        height: auto;
        box-sizing: border-box;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        line-height: 1.5;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    }
    
    #submit-btn:focus,
    #submit-btn:active {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
        transform: none !important;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .why-choose-me {
        padding: 4rem 0;
    }

    .value-proposition-card {
        padding: 2rem 1.5rem;
    }

    .value-proposition-card h3 {
        font-size: 1.3rem;
    }

    .value-proposition-card p {
        font-size: 0.95rem;
    }

    .value-proposition-summary {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .value-proposition-summary p {
        font-size: 1rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .theme-toggle,
    .language-switcher,
    .nav-menu a {
        min-height: 44px;
        min-width: 44px;
    }

    .service-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    }
    
    #submit-btn:hover,
    #submit-btn:focus,
    #submit-btn:active {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    }
}

/* Device-specific styles */
html[data-device="mobile"] .hero-subtitle {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow-x: visible;
    overflow-wrap: break-word;
    word-break: break-all;
}

html[data-device="mobile"] .nav-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

html[data-device="tablet"] .container {
    padding: 0 30px;
}

html[data-device="desktop"] .hamburger {
    display: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-cyan));
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Premium Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Cookie Popup - Premium Design (Apple/BCG Style) */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-popup.show {
    display: flex;
}

.cookie-popup-content {
    background: var(--card-bg);
    border-radius: 0;
    padding: 0;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.2), 0 -4px 16px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-popup-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cookie-popup-content h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cookie-popup-intro {
    margin: 0;
    font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 300;
}

.cookie-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.cookie-section-divider {
    padding: 1.5rem 2.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.cookie-category {
    padding: 1.5rem 2.5rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.cookie-category-required {
    background: rgba(59, 130, 246, 0.02);
}

.cookie-category-toggleable {
    cursor: pointer;
}

.cookie-category-toggleable:hover {
    background-color: rgba(59, 130, 246, 0.03);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.cookie-category-title-wrapper {
    flex: 1;
    min-width: 0;
}

.cookie-category-header h4 {
    margin: 0 0 0.25rem;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.cookie-category-short-desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-light);
    font-weight: 300;
}

.cookie-category-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-toggle-icon {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.cookie-category.expanded .cookie-toggle-icon {
    transform: rotate(180deg);
}

.cookie-badge-required {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
    margin-top: 0.5rem;
}

.cookie-category-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.cookie-category.expanded .cookie-category-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.cookie-category-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 300;
}

/* Cookie Switch Toggle - Premium Style */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cookie-switch:hover .cookie-slider {
    background-color: rgba(0, 0, 0, 0.18);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

.cookie-switch input:focus + .cookie-slider {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cookie-popup-footer {
    padding: 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.cookie-popup-buttons {
    display: flex;
    gap: 1rem;
    padding: 1.75rem 2.5rem;
}

.cookie-btn-save {
    flex: 1;
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 0.375rem;
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2), 0 1px 2px rgba(59, 130, 246, 0.1);
}

.cookie-btn-save:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), 0 2px 4px rgba(59, 130, 246, 0.2);
}

.cookie-btn-save:active,
.cookie-btn-save:focus {
    background: var(--primary-light);
    color: white;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Touch-Events für mobile Geräte */
@media (hover: none) and (pointer: coarse) {
    .cookie-btn-save:active {
        background: var(--primary-hover);
        color: white;
        transform: scale(0.98);
    }
    
    .cookie-btn-reject:active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(0.98);
    }
}

.cookie-btn-reject {
    flex: 1;
    padding: 1rem 2.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: var(--text-dark);
    box-shadow: none;
}

.cookie-btn-reject:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--border-color);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cookie-btn-reject:active,
.cookie-btn-reject:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-color);
    color: var(--text-dark);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
}

@media (max-width: 768px) {
    .cookie-popup {
        padding: 0;
    }
    
    .cookie-popup-content {
        max-height: 92vh;
    }
    
    .cookie-popup-header {
        padding: 2rem 1.75rem 1.25rem;
    }
    
    .cookie-popup-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }
    
    .cookie-popup-intro {
        font-size: 0.875rem;
    }
    
    .cookie-section-divider {
        padding: 1.25rem 1.75rem 0.875rem;
    }
    
    .cookie-category {
        padding: 1.25rem 1.75rem;
    }
    
    .cookie-category-header {
        gap: 1rem;
    }
    
    .cookie-category-header h4 {
        font-size: 1rem;
    }
    
    .cookie-category-short-desc {
        font-size: 0.75rem;
    }
    
    .cookie-category-controls {
        gap: 0.75rem;
    }
    
    .cookie-popup-buttons {
        flex-direction: column;
        gap: 0.875rem;
        padding: 1.5rem 1.75rem;
    }
    
    .cookie-btn-save,
    .cookie-btn-reject {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .cookie-btn-save:active,
    .cookie-btn-reject:active {
        opacity: 0.9;
        transform: scale(0.98);
    }
    
    .cookie-switch {
        width: 52px;
        height: 32px;
    }
    
    .cookie-slider:before {
        height: 24px;
        width: 24px;
        left: 3px;
        bottom: 3px;
    }
    
    .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(20px);
    }
}

@media (max-width: 480px) {
    .cookie-popup-header {
        padding: 1.75rem 1.5rem 1rem;
    }
    
    .cookie-popup-content h3 {
        font-size: 1.375rem;
    }
    
    .cookie-popup-intro {
        font-size: 0.8125rem;
    }
    
    .cookie-section-divider {
        padding: 1rem 1.5rem 0.75rem;
    }
    
    .cookie-category {
        padding: 1rem 1.5rem;
    }
    
    .cookie-category-header h4 {
        font-size: 0.9375rem;
    }
    
    .cookie-category-short-desc {
        font-size: 0.6875rem;
    }
    
    .cookie-category-desc {
        font-size: 0.8125rem;
    }
    
    .cookie-popup-buttons {
        padding: 1.25rem 1.5rem;
    }
    
    .cookie-badge-required {
        font-size: 0.625rem;
        padding: 0.1875rem 0.625rem;
    }
}

/* ============================================
   PROJECTS PAGE - BCG STYLE
   ============================================ */

/* BCG Hero Section */
.bcg-hero {
    background: var(--bg-white);
    padding: 10rem 0 6rem;
    border-bottom: 1px solid var(--border-color);
}

.bcg-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.bcg-hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bcg-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* BCG Projects Section */
.bcg-projects-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.bcg-projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* BCG Project Card */
.bcg-project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.bcg-project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.bcg-project-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* BCG Project Header */
.bcg-project-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.bcg-project-header:hover {
    background-color: rgba(59, 130, 246, 0.02);
}

.bcg-project-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.bcg-project-toggle-icon {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: 0.5rem;
    display: inline-block;
}

.bcg-project-card.expanded .bcg-project-toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.bcg-project-period {
    color: var(--text-dark);
}

.bcg-project-location {
    color: var(--text-light);
}

.bcg-project-industry {
    color: var(--primary-color);
}

.bcg-project-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
}

/* BCG Project Body */
.bcg-project-body {
    padding: 0 3rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.bcg-project-card.expanded .bcg-project-body {
    max-height: 5000px;
    padding: 2rem 3rem 3rem;
    opacity: 1;
}

.bcg-project-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* BCG Impact Section */
.bcg-impact-section {
    margin-bottom: 2rem;
}

.bcg-impact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.bcg-impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bcg-impact-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bcg-impact-list li:last-child {
    border-bottom: none;
}

.bcg-impact-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 400;
}

/* BCG Role Section */
.bcg-role-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
}

.bcg-role-section strong {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Navigation Active State */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Responsive Design - BCG Projects */
@media (max-width: 1024px) {
    .bcg-projects-grid {
        gap: 3rem;
    }
    
    .bcg-project-header,
    .bcg-project-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .bcg-project-card.expanded .bcg-project-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .bcg-project-title-wrapper {
        gap: 1rem;
    }
    
    .bcg-project-toggle-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bcg-hero {
        padding: 7rem 0 4rem;
    }
    
    .bcg-hero-title {
        font-size: 2.5rem;
    }
    
    .bcg-hero-subtitle {
        font-size: 1rem;
    }
    
    .bcg-projects-section {
        padding: 4rem 0;
    }
    
    .bcg-projects-grid {
        gap: 2.5rem;
    }
    
    .bcg-project-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .bcg-project-body {
        padding: 0 1.5rem;
    }
    
    .bcg-project-card.expanded .bcg-project-body {
        padding: 1.5rem 1.5rem 2rem;
    }
    
    .bcg-project-title-wrapper {
        gap: 1rem;
    }
    
    .bcg-project-toggle-icon {
        font-size: 1.5rem;
        margin-top: 0;
    }
    
    .bcg-project-title {
        font-size: 1.5rem;
    }
    
    .bcg-project-description {
        font-size: 1rem;
    }
    
    .bcg-project-meta {
        gap: 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .bcg-hero-title {
        font-size: 2rem;
    }
    
    .bcg-project-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .bcg-project-body {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    
    .bcg-project-title {
        font-size: 1.25rem;
    }
    
    .bcg-impact-list li {
        font-size: 0.9375rem;
        padding-left: 1.5rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .bcg-project-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .bcg-impact-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bcg-project-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .bcg-role-section {
    border-top-color: var(--border-color);
}

/* Cookie Popup Dark Theme */
[data-theme="dark"] .cookie-popup {
    background: rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .cookie-popup-content {
    background: var(--card-bg);
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.5), 0 -4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cookie-popup-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .cookie-section-divider {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .cookie-category {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .cookie-category-required {
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="dark"] .cookie-category-toggleable:hover {
    background-color: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .cookie-badge-required {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

[data-theme="dark"] .cookie-slider {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--border-color);
}

[data-theme="dark"] .cookie-switch:hover .cookie-slider {
    background-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .cookie-popup-footer {
    background: var(--bg-white);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Cookie Management Modal - BCG/Apple Premium Design */
.footer-cookie-link {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0;
}

.footer-cookie-link:hover {
    opacity: 1;
    color: #0077b5;
}

.cookie-manage-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.cookie-manage-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.cookie-manage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-manage-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-manage-modal.show .cookie-manage-content {
    transform: scale(1) translateY(0);
}

.cookie-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-manage-header h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.cookie-manage-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cookie-manage-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.cookie-manage-close:active {
    transform: scale(0.95);
}

.cookie-manage-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-manage-intro {
    margin: 0 0 2rem;
    font-size: clamp(0.9375rem, 1.2vw, 1rem);
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 300;
}

.cookie-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cookie-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-manage-item:last-child {
    border-bottom: none;
}

.cookie-manage-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
}

.cookie-manage-item-label {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    line-height: 1.4;
    color: var(--text-dark);
}

.cookie-manage-item-desc {
    font-size: clamp(0.8125rem, 1vw, 0.875rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-light);
}

.cookie-manage-item-status {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cookie-manage-item-status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cookie-manage-item-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-manage-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-manage-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-manage-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.cookie-manage-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cookie-manage-switch:hover .cookie-manage-slider {
    background-color: rgba(0, 0, 0, 0.18);
}

.cookie-manage-switch input:checked + .cookie-manage-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-manage-switch input:checked + .cookie-manage-slider:before {
    transform: translateX(20px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

.cookie-manage-switch input:focus + .cookie-manage-slider {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cookie-manage-item-status-text {
    font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    min-width: 60px;
    text-align: right;
    color: var(--text-light);
}

.cookie-manage-item-status-text.active {
    color: #10b981;
}

.cookie-manage-footer {
    padding: 1.75rem 2.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-section);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-manage-btn {
    padding: 0.875rem 2rem;
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cookie-manage-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2), 0 1px 2px rgba(59, 130, 246, 0.1);
}

.cookie-manage-btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), 0 2px 4px rgba(59, 130, 246, 0.2);
}

.cookie-manage-btn-primary:active {
    transform: translateY(0);
}

.cookie-manage-btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.cookie-manage-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-light);
}

.cookie-manage-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark Theme */
[data-theme="dark"] .cookie-manage-content {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .cookie-manage-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-manage-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-manage-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }
    
    .cookie-manage-header {
        padding: 1.25rem 1.5rem;
        flex-shrink: 0;
    }
    
    .cookie-manage-header h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
    
    .cookie-manage-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .cookie-manage-body {
        padding: 1.25rem 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0;
    }
    
    .cookie-manage-intro {
        font-size: clamp(0.875rem, 3vw, 0.9375rem);
        margin-bottom: 1.5rem;
    }
    
    .cookie-manage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 0;
    }
    
    .cookie-manage-item-info {
        width: 100%;
    }
    
    .cookie-manage-item-label {
        font-size: clamp(0.9375rem, 3.5vw, 1rem);
    }
    
    .cookie-manage-item-desc {
        font-size: clamp(0.8125rem, 3vw, 0.875rem);
    }
    
    .cookie-manage-item-control {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .cookie-manage-switch {
        width: 52px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .cookie-manage-item-status-text {
        font-size: clamp(0.6875rem, 2.5vw, 0.75rem);
        min-width: auto;
        text-align: left;
    }
    
    .cookie-manage-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
        flex-shrink: 0;
        border-top: 1px solid var(--border-color);
    }
    
    .cookie-manage-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: clamp(0.9375rem, 3.5vw, 1rem);
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .cookie-manage-btn-primary {
        order: 1;
    }
    
    .cookie-manage-btn-secondary {
        order: 2;
    }
}

/* Footer Cookie Link Mobile */
@media (max-width: 768px) {
    .footer-cookie-link {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .footer-links a,
    .footer-links button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

