/* Originale Premium-Schriftart für das filigrane, moderne Design */
/* Lokal eingebundene Schriftart (kein Google Fonts CDN mehr) */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #fafaf9;
    --color-bg-soft: #f3f3f1;
    --color-surface: #ffffff;
    --color-text-primary: #14161a;
    --color-text-secondary: #54565c;
    --color-text-tertiary: #8a8d93;
    --color-accent: #0a5fd6;
    --color-accent-hover: #0a52ba;
    --color-accent-soft: #e8f0fd;
    --color-gold: #d98c1f;
    --color-gold-soft: #fbeed9;
    --color-success: #1aa362;
    --color-border: rgba(20, 22, 26, 0.08);
    --color-border-strong: rgba(20, 22, 26, 0.14);
    
    --shadow-sm: 0 2px 8px rgba(20, 22, 26, 0.04);
    --shadow-md: 0 12px 32px rgba(20, 22, 26, 0.08);
    --shadow-lg: 0 24px 64px rgba(20, 22, 26, 0.12);
    --shadow-accent: 0 16px 40px rgba(10, 95, 214, 0.18);

    --nav-height: 64px;

    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Ambient Background - Weiche Performance Glows */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; contain: paint; }
.ambient-glow-wrap { position: absolute; will-change: transform; transform: translate3d(0, 0, 0); }
.ambient-glow-1 { width: 72vw; height: 72vw; max-width: 950px; max-height: 950px; background: radial-gradient(circle, rgba(10,95,214,0.22) 0%, transparent 65%); animation: ambientDrift1 14s ease-in-out infinite; }
.wrap-1 { top: -10%; left: -15%; }
.ambient-glow-2 { width: 66vw; height: 66vw; max-width: 860px; max-height: 860px; background: radial-gradient(circle, rgba(217,140,31,0.19) 0%, transparent 65%); animation: ambientDrift2 17s ease-in-out infinite; }
.wrap-2 { top: 25%; right: -18%; }
.ambient-glow-3 { width: 58vw; height: 58vw; max-width: 740px; max-height: 740px; background: radial-gradient(circle, rgba(26,163,98,0.16) 0%, transparent 65%); animation: ambientDrift3 15.5s ease-in-out infinite; }
.wrap-3 { bottom: -8%; left: 20%; }
.ambient-glow-4 { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; background: radial-gradient(circle, rgba(190,90,230,0.14) 0%, transparent 65%); animation: ambientDrift4 12s ease-in-out infinite; }
.wrap-4 { top: 48%; left: 42%; }

@keyframes ambientDrift1 { 0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } 33% { transform: translate3d(8vw, 9vh, 0) scale(1.18) rotate(8deg); } 66% { transform: translate3d(-4vw, 6vh, 0) scale(0.92) rotate(-6deg); } 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } }
@keyframes ambientDrift2 { 0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } 33% { transform: translate3d(-9vw, -7vh, 0) scale(1.2) rotate(-10deg); } 66% { transform: translate3d(5vw, -10vh, 0) scale(0.9) rotate(6deg); } 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } }
@keyframes ambientDrift3 { 0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } 33% { transform: translate3d(7vw, -11vh, 0) scale(1.15) rotate(9deg); } 66% { transform: translate3d(-6vw, -4vh, 0) scale(0.88) rotate(-7deg); } 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); } }
@keyframes ambientDrift4 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-10vw, 8vh, 0) scale(1.3); } 100% { transform: translate3d(0, 0, 0) scale(1); } }

@media (prefers-reduced-motion: reduce) { .ambient-glow { animation: none; } }
@media (max-width: 768px) { .ambient-glow { filter: blur(60px); } }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #d4d4d2; border-radius: 5px; border: 2px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: #b8b8b6; }

/* GPU-beschleunigter, rein nativer Scroll-Balken ohne JavaScript (0 Reflows) */
@keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.scroll-progress { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 3px; 
    width: 100%; 
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold)); 
    z-index: 1100; 
    transform-origin: left;
    transform: scaleX(0);
    animation: grow-progress linear forwards;
    animation-timeline: scroll();
}

/* Navigation */
nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(250, 250, 249, 0.85); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid transparent; z-index: 1000; transition: background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth); }
nav.scrolled { background: rgba(255, 255, 255, 0.95); border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.nav-container { max-width: 1080px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--color-text-primary); text-decoration: none; letter-spacing: -0.3px; white-space: nowrap; position: relative; z-index: 1002; }
.nav-logo-mark { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.4s var(--ease-bounce); overflow: hidden; }
.nav-logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) scale(1.06); }

.desktop-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.desktop-links a { color: var(--color-text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.desktop-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s var(--ease-out); }
.desktop-links a:hover { color: var(--color-text-primary); }
.desktop-links a:hover::after { width: 100%; }

.nav-cta { background: var(--color-text-primary); color: #fff !important; padding: 10px 20px; border-radius: 100px; font-weight: 600; transition: transform 0.3s var(--ease-bounce), background 0.2s, box-shadow 0.3s; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--color-accent); transform: translateY(-2px) scale(1.04); box-shadow: var(--shadow-accent); }
.nav-cta:active { transform: translateY(0) scale(0.96); transition-duration: 0.12s; }

/* Mobile Hamburger Toggle */
.mobile-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; position: relative; z-index: 1002; padding: 0 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background-color: var(--color-text-primary); border-radius: 2px; transition: transform 0.3s var(--ease-bounce), opacity 0.3s ease; transform-origin: center; }
.mobile-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay - Optimiert mit 100% statt 100svh */
.mobile-menu { position: fixed; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: rgba(250, 250, 249, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 1001; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-smooth); }
.mobile-menu.is-active { opacity: 1; pointer-events: all; }

.mobile-nav-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 36px; padding: 0; margin: 0; }
.mobile-nav-links li { transform: translateY(20px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
.mobile-menu.is-active .mobile-nav-links li { transform: translateY(0); opacity: 1; }

.mobile-menu.is-active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav-links a { font-size: 24px; font-weight: 700; color: var(--color-text-primary); text-decoration: none; letter-spacing: -0.02em; }
.mobile-nav-cta { display: inline-block; background: var(--color-accent); color: #fff !important; padding: 16px 36px; border-radius: 100px; font-size: 18px !important; margin-top: 12px; box-shadow: var(--shadow-accent); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding-top: var(--nav-height); }
.hero-bg { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.hero-floaty { position: absolute; font-size: 28px; opacity: 0.16; animation: driftFloat ease-in-out infinite; pointer-events: none; user-select: none; }
@keyframes driftFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(8deg); } }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1000px; padding: 0 24px; }

/* DSGVO-konformer Adress-Button */
.hero-eyebrow { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: var(--color-surface); 
    border: 1px solid var(--color-border); 
    padding: 8px 16px; 
    border-radius: 100px; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--color-text-secondary); 
    box-shadow: var(--shadow-sm); 
    margin-bottom: 28px; 
    opacity: 0; 
    animation: fadeInUp 0.5s var(--ease-out) 0s forwards; 
    text-decoration: none; 
    cursor: pointer; 
    transition: border-color 0.3s, color 0.3s, transform 0.3s; 
}
.hero-eyebrow:hover { 
    border-color: var(--color-accent); 
    color: var(--color-text-primary); 
    transform: translateY(-2px); 
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 3px rgba(26, 163, 98, 0.18); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 3px rgba(26, 163, 98, 0.18); } 50% { box-shadow: 0 0 0 6px rgba(26, 163, 98, 0.1); } }

.hero-title { font-size: clamp(38px, 7.5vw, 88px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; color: var(--color-text-primary); }
.hero-title .accent-word { position: relative; display: inline-block; color: var(--color-accent); }
.hero-title .accent-word svg { position: absolute; left: 0; bottom: -4px; width: 100%; height: 14px; overflow: visible; }
.hero-title .accent-word path { stroke: var(--color-gold); stroke-width: 5; fill: none; stroke-linecap:round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawUnderline 0.4s var(--ease-out) 0.1s forwards;  }
@keyframes drawUnderline { to { stroke-dashoffset: 0; } }
.hero-subtitle { font-size: clamp(17px, 2.2vw, 22px); font-weight: 400; color: var(--color-text-secondary); margin-bottom: 40px; letter-spacing: -0.01em; max-width: 640px; margin-inline: auto; opacity: 0; animation: fadeInUp 0.5s var(--ease-out) 0.1s forwards; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeInUp 0.5s var(--ease-out) 0.15s forwards; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; border-radius: 100px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-smooth), background 0.25s, border-color 0.25s; font-family: inherit; will-change: transform; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-accent); position: relative; overflow: hidden; animation: pulseGlow 3.5s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { box-shadow: var(--shadow-accent); } 50% { box-shadow: 0 16px 44px rgba(10, 95, 214, 0.32); } }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transform: translateX(-120%); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-3px) scale(1.035); box-shadow: 0 20px 48px rgba(10, 95, 214, 0.32); animation-play-state: paused; }
.btn-primary:hover::before { transform: translateX(120%); transition: transform 0.8s var(--ease-smooth); }
.btn-primary:active { transform: translateY(-1px) scale(0.97); transition-duration: 0.12s; }

.btn-secondary { background: var(--color-surface); color: var(--color-text-primary); border: 1px solid var(--color-border-strong); position: relative; }
.btn-secondary:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-md); border-color: var(--color-accent); color: var(--color-accent); }
.btn-secondary:active { transform: translateY(-1px) scale(0.97); transition-duration: 0.12s; }

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

/* Trust bar */
.trustbar { background: transparent; padding: 26px 24px; }
.trustbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--color-text-secondary); transition: transform 0.3s var(--ease-bounce), color 0.3s; }
.trust-item:hover { transform: translateY(-2px); color: var(--color-text-primary); }
.trust-item .icon { font-size: 18px; }

/* Generic section setup */
.section-pad { padding: 110px 24px; }
.about { max-width: 1080px; margin: 0 auto; position: relative; }
.about-header { text-align: center; margin-bottom: 64px; max-width: 700px; margin-inline: auto; }
.section-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 16px; padding: 6px 14px; background: var(--color-accent-soft); border-radius: 100px; }
.section-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--color-text-primary); }
.section-description { font-size: 18px; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* About Section */
.about-story { background: var(--color-surface); padding: 56px; border-radius: 28px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; transition: box-shadow 0.4s var(--ease-smooth); }

.story-portrait { 
    width: 100%; 
    aspect-ratio: 1; 
    border-radius: 20px; 
    background: #ffffff !important;           /* Weißer Hintergrund, damit der Logo-Hintergrund perfekt verschmilzt */
    border: 1px solid var(--color-border);     /* Passender feiner Rand wie bei den restlichen Karten */
    box-shadow: var(--shadow-sm);              /* Soft-Schatten für einen edlen App-Icon-Look */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    position: relative; 
    overflow: hidden; 
}
.story-portrait::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(120deg, transparent 30%, rgba(20, 22, 26, 0.04) 50%, transparent 70%); /* Dezenter Glanz auf Weiß */
    transform: translateX(-100%); 
    animation: shimmer 5s ease-in-out infinite; 
}
@keyframes shimmer { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Perfekt skaliertes Logo im Porträt-Rahmen (Ohne hässliche Kanten) */
.story-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Passt das gesamte Logo unverzerrt an */
    padding: 4% !important;         /* Nur 4% Padding, damit das Logo auf Desktop & Handy maximal groß und gut lesbar ist */
    display: block !important;
    box-sizing: border-box !important;
}

.story-text { font-size: 17px; line-height: 1.8; color: var(--color-text-secondary); margin-bottom: 20px; }
.story-text:last-child { margin-bottom: 0; }

.story-highlight { color: var(--color-accent); font-weight: 600; display: inline; }

.specialties { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.specialty-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--color-bg); border: 1px solid var(--color-border-strong); padding: 9px 16px; border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--color-text-secondary); transition: transform 0.3s var(--ease-bounce), background 0.3s, border-color 0.3s, color 0.3s; }
.specialty-tag:hover { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-3px) scale(1.04); }

/* Skills Section */
.skills { background: transparent; position: relative; overflow: hidden; }
.skills-container { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 56px; }

.skill-card { background: var(--color-surface); padding: 40px 32px; border-radius: 24px; border: 1px solid var(--color-border); transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth), border-color 0.3s; cursor: pointer; display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow-sm); }
.skill-card:hover { transform: translateY(-8px); border-color: var(--color-accent); box-shadow: var(--shadow-md); }

.skill-icon { width: 56px; height: 56px; background: var(--color-accent-soft); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 22px; transition: transform 0.4s var(--ease-bounce), background 0.3s; }
.skill-card:hover .skill-icon { transform: rotate(8deg) scale(1.08); background: var(--color-gold-soft); }

.skill-title { font-size: 19px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; color: var(--color-text-primary); }
.skill-description { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }

.skill-list { list-style: none; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-border); }
.skill-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--color-text-secondary); margin-bottom: 8px; line-height: 1.4; }
.skill-list li::before { content: '✓'; color: var(--color-accent); font-weight: 800; font-size: 13px; margin-top: 2px; }
.skill-list li:last-child { margin-bottom: 0; }

/* Process Section */
.process { background: transparent; }
.process-grid { max-width: 1080px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 36px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--color-border-strong) 0, var(--color-border-strong) 8px, transparent 8px, transparent 16px); z-index: 0; }
.process-step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; padding: 32px 24px; position: relative; z-index: 1; transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth); box-shadow: var(--shadow-sm); }
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-accent-soft); }
.process-number { font-size: 14px; font-weight: 800; color: #fff; background: var(--color-accent); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: transform 0.4s var(--ease-bounce); }
.process-step:hover .process-number { transform: scale(1.15) rotate(-8deg); background: var(--color-gold); }
.process-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--color-text-primary); }
.process-desc { font-size: 14.5px; color: var(--color-text-secondary); line-height: 1.6; }

/* ==============================================================
   NEUE OPTIMIERTE DIASHOWS (6 SEPARATE SLIDERS)
   ============================================================== */
.gallery { background: transparent; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 1080px;
    margin: 56px auto 0;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project-slider-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-soft);
}

.project-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* Scrollleisten verstecken */
.project-slider-track::-webkit-scrollbar { display: none; }
.project-slider-track { -ms-overflow-style: none; scrollbar-width: none; }

.project-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.project-slide img.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.project-slide .slide-fallback-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: linear-gradient(150deg, var(--color-accent-soft), var(--color-gold-soft));
    z-index: 0;
}

.project-slide-caption {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(20, 22, 26, 0.85), rgba(20, 22, 26, 0.4) 60%, transparent);
    color: #fff;
}

.project-slide-caption-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.project-slide-caption-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-slider-controls {
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.slider-scrollbar-container {
    position: relative;
    width: 100%;
    height: 12px;
    display: flex;
    align-items: center;
}

/* Schieberegler (Scrollregler) styling */
.slider-range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--color-border-strong);
    border-radius: 3px;
    outline: none;
    margin: 0;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-range-input:hover {
    background: rgba(20, 22, 26, 0.2);
}
.slider-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 12px;
    border-radius: 6px;
    background: var(--color-accent);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.slider-range-input::-webkit-slider-thumb:hover {
    background: var(--color-accent-hover);
    transform: scaleY(1.2);
}
.slider-range-input::-moz-range-thumb {
    width: 48px;
    height: 12px;
    border: none;
    border-radius: 6px;
    background: var(--color-accent);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.slider-range-input::-moz-range-thumb:hover {
    background: var(--color-accent-hover);
    transform: scaleY(1.2);
}

.project-slider-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: transform 0.3s var(--ease-bounce), background 0.25s, color 0.25s;
}
.project-slider-arrow:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.1);
    border-color: var(--color-accent);
}
.project-slider-arrow:active {
    transform: scale(0.95);
}

.project-slider-dots-indicator {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* Contact Section */
.contact { background: transparent; position: relative; overflow: hidden; }
.contact-container { max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.contact-layout { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; padding: 28px; display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease-smooth), border-color 0.3s; box-shadow: var(--shadow-sm); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent-soft); }
.contact-card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--color-accent-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; transition: transform 0.4s var(--ease-bounce), background 0.3s; }
.contact-card:hover .contact-card-icon { background: var(--color-gold-soft); transform: scale(1.08) rotate(6deg); }
.contact-card-label { font-size: 12.5px; color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 4px; }
.contact-card-value { font-size: 16px; font-weight: 700; color: var(--color-text-primary); }

.contact-form { background: var(--color-surface); padding: 48px; border-radius: 24px; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--color-text-secondary); margin-bottom: 10px; }
.form-group input, .form-group textarea { width: 100%; background: var(--color-bg); border: 1.5px solid var(--color-border-strong); border-radius: 12px; padding: 16px 18px; font-size: 16px; color: var(--color-text-primary); font-family: inherit; transition: border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth), background 0.25s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-tertiary); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); background: var(--color-surface); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.submit-btn { width: 100%; background: var(--color-accent); color: white; border: none; border-radius: 100px; padding: 18px 32px; font-size: 16.5px; font-weight: 700; cursor: pointer; transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s var(--ease-smooth), background 0.25s; position: relative; overflow: hidden; }
.submit-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent); transform: translateX(-100%); }
.submit-btn:hover { background: var(--color-accent-hover); transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-accent); }
.submit-btn:hover::after { transform: translateX(100%); transition: transform 0.7s var(--ease-smooth); }
.submit-btn:active { transform: translateY(-1px) scale(0.98); transition-duration: 0.12s; }
.submit-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--color-accent-soft), var(--shadow-accent); }
.form-nudge { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--color-text-tertiary); margin-top: 16px; justify-content: center; }

/* Footer */
footer { padding: 56px 24px 40px; text-align: center; border-top: 1px solid var(--color-border); background: var(--color-surface); }
.footer-social { display: flex; gap: 16px; justify-content: center; margin-bottom: 28px; }
.footer-social a { width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--color-text-secondary); text-decoration: none; transition: transform 0.35s var(--ease-bounce), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s; }
.footer-social a.tiktok:hover { background: #000; color: #fff; border-color: #000; transform: translateY(-4px) scale(1.08); box-shadow: var(--shadow-md); }
.footer-social a.instagram:hover { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; border-color: transparent; transform: translateY(-4px) scale(1.08); box-shadow: var(--shadow-md); }
footer p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 16px; }
.footer-links { display: flex; gap: 28px; justify-content: center; margin-bottom: 20px; }
.footer-links a { font-size: 14px; color: var(--color-text-secondary); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--color-accent); }

/* ==============================================================
   MODAL (PREMIUM DESIGN & MOBIL-OPTIMIERT)
   ============================================================== */

.modal { 
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; 
    background: rgba(20, 22, 26, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 32px; 
    box-sizing: border-box;
}
.modal.active { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content { 
    background: var(--color-surface); border-radius: 28px; border: 1px solid var(--color-border); 
    max-width: 800px; width: 100%; max-height: 100%; overflow-y: auto; 
    padding: 56px; margin: 0; position: relative; box-shadow: var(--shadow-lg); 
    animation: slideUp 0.4s var(--ease-out); text-align: left; 
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-close { 
    position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; 
    background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; cursor: pointer; 
    transition: all 0.25s var(--ease-bounce); font-size: 18px; color: var(--color-text-secondary); z-index: 2; 
}
.modal-close:hover { background: var(--color-accent); color: #fff; transform: rotate(90deg); border-color: var(--color-accent); }

.modal-header { text-align: center; margin-bottom: 40px; }
.modal h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-primary); }
.modal-subtitle { font-size: 16px; color: var(--color-text-tertiary); margin-top: 8px; }

.legal-section { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 16px; padding: 28px; margin-bottom: 24px; transition: border-color 0.3s, box-shadow 0.3s; }
.legal-section:hover { border-color: var(--color-accent-soft); box-shadow: var(--shadow-sm); }

.legal-section h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 16px; margin-top: 0; }
.legal-icon { width: 36px; height: 36px; background: var(--color-accent-soft); color: var(--color-accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

.legal-section p, .legal-section ul { font-size: 15.5px; line-height: 1.7; color: var(--color-text-secondary); margin-bottom: 12px; overflow-wrap: break-word; word-wrap: break-word; }
.legal-section p:last-child, .legal-section ul:last-child { margin-bottom: 0; }
.legal-section ul { margin-left: 20px; }
.legal-section li { margin-bottom: 6px; }

.legal-strong { font-weight: 700; color: var(--color-text-primary); }
.legal-highlight { color: var(--color-accent); font-weight: 600; text-decoration: none; transition: color 0.2s; word-break: break-all; }
.legal-highlight:hover { color: var(--color-accent-hover); text-decoration: underline; }

.legal-footer { text-align: center; margin-top: 32px; font-size: 13px; color: var(--color-text-tertiary); }
.legal-footer a { color: var(--color-text-secondary); text-decoration: none; border-bottom: 1px dotted var(--color-text-tertiary); transition: color 0.2s; }
.legal-footer a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-bounce); }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.reveal-text { opacity: 0; transform: translateY(18px); filter: blur(6px); letter-spacing: 0.02em; transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out), letter-spacing 0.85s var(--ease-out); }
.reveal-text.active { opacity: 1; transform: translateY(0); filter: blur(0); letter-spacing: normal; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .reveal-text { filter: none; } }

/* ===== Responsive: Mobile & Tablet ===== */
@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .about-story { grid-template-columns: 1fr; padding: 44px; }
    .story-portrait { width: 100px; height: 100px; font-size: 36px; margin: 0 auto; }
    .contact-layout { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; gap: 28px; }
    .project-slider-viewport { aspect-ratio: 4 / 3; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .desktop-links { display: none; }
    .mobile-toggle { display: flex; }
    
    .nav-container { padding: 0 16px; }
    .nav-logo { font-size: 14.5px; }
    .nav-logo-mark { width: 28px; height: 28px; }
    
    /* Optimierter Mobile-Eintrag für .hero (verhindert URL-Bar Ruckler auf Mobilgeräten) */
    .hero { min-height: 100vh; padding-top: var(--nav-height); }
    .hero-title { font-size: clamp(34px, 10vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
    .hero-subtitle { font-size: 16.5px; padding: 0 8px; margin-bottom: 32px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
    .hero-floaty { display: none; }
    
    .trustbar { padding: 20px 16px; }
    .trustbar-inner { gap: 16px 20px; flex-direction: column; align-items: flex-start; max-width: 300px; }
    .trust-item { font-size: 14px; }
    
    .section-pad { padding: 72px 16px; }
    .section-label { font-size: 11px; padding: 6px 12px; margin-bottom: 12px; }
    .section-title { font-size: 30px; letter-spacing: -0.02em; }
    .section-description { font-size: 16px; padding: 0 8px; }
    .about-header { margin-bottom: 40px; }
    
    .about-story { padding: 32px 24px; border-radius: 24px; gap: 28px; }
    .story-portrait { width: 80px; height: 80px; font-size: 28px; border-radius: 18px; margin: 0; }
    .story-text { font-size: 16px; line-height: 1.7; }
    .specialties { margin-top: 24px; gap: 8px; }
    .specialty-tag { font-size: 13px; padding: 8px 14px; }
    
    .skills-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
    .skill-card { padding: 28px 24px; border-radius: 20px; }
    .skill-icon { width: 48px; height: 48px; font-size: 24px; margin-bottom: 18px; }
    .skill-title { font-size: 18px; }
    .skill-description { font-size: 14.5px; margin-bottom: 12px; }
    .skill-list li { font-size: 13.5px; }
    
    .process-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
    .process-step { padding: 26px 22px; }
    
    /* Mobil-Anpassung der neuen 6 Slider */
    .projects-grid { margin-top: 40px; gap: 24px; }
    .project-slider-viewport { aspect-ratio: 4 / 3.4; }
    .project-slide .slide-fallback-emoji { font-size: 60px; }
    .project-slide-caption { padding: 18px; }
    .project-slide-caption-title { font-size: 15px; }
    .project-slider-arrow { width: 36px; height: 36px; font-size: 16px; }
    .project-slider-controls { padding: 12px 16px 16px; gap: 12px; }
    
    .contact-layout { gap: 24px; margin-top: 40px; }
    .contact-sidebar { gap: 12px; }
    .contact-card { padding: 20px; border-radius: 16px; }
    .contact-card-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .contact-card-value { font-size: 15px; word-break: break-word; }
    
    .contact-form { padding: 32px 24px; border-radius: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group { margin-bottom: 20px; }
    .form-group input, .form-group textarea { padding: 14px 16px; font-size: 15.5px; }
    .submit-btn { padding: 16px 24px; font-size: 16px; margin-top: 8px; }
    
    footer { padding: 48px 16px 32px; }
    .footer-social a { width: 44px; height: 44px; font-size: 18px; }
    .footer-links { gap: 20px; flex-wrap: wrap; }
    
    .modal { 
        padding: 16px; 
    }
    .modal-content { 
        padding: 56px 20px 32px; 
        max-height: 100%; 
        border-radius: 24px; 
    }
    .modal-close { 
        top: 16px; 
        right: 16px; 
        width: 36px; 
        height: 36px; 
        font-size: 15px; 
    }
    .modal h2 { font-size: 28px; margin-bottom: 24px; }
    .modal-header { margin-bottom: 32px; }
    .legal-section { padding: 22px; border-radius: 14px; margin-bottom: 16px; }
    .legal-section h3 { font-size: 16px; margin-bottom: 12px; }
    .legal-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
    .legal-section p, .legal-section ul { font-size: 14.5px; line-height: 1.6; }

    /* ==============================================================
       PERFORMANCE-OPTIMIERUNGEN (EINGEFÜGT AM 05. JULI 2026)
       ============================================================== */

    /* 1. Keine CPU-/GPU-intensiven Hintergrund-Verschiebungen auf Mobilgeräten */
    .ambient-glow-1, .ambient-glow-2, .ambient-glow-3, .ambient-glow-4 {
        animation: none !important;
    }

    /* 2. Deaktivierung von unperformanten Schatten-Animationen */
    .btn-primary {
        animation: none !important;
    }
    .hero-eyebrow .dot {
        animation: none !important;
    }

    /* 3. Entlastung der GPU durch reduzierten Navigations-Blur */
    nav {
        backdrop-filter: blur(8px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
        background: rgba(250, 250, 249, 0.92) !important;
    }

    /* 4. Vermeidung von Layout-Reflows beim Scrollen durch Text-Reveals */
    .reveal-text {
        filter: none !important;
        letter-spacing: normal !important;
        transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out) !important;
    }
    .reveal-text.active {
        filter: none !important;
        letter-spacing: normal !important;
    }
}

@media (max-width: 380px) {
    .hero-title { font-size: 30px; }
    .btn-primary, .btn-secondary { font-size: 15px; padding: 14px 20px; }
    .project-slide-caption-title { font-size: 14px; }
}