html, body {
    background-color: white;
    width: 100%;
    overflow-x: hidden;
}

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

/* Remove global white background - let sections define their own backgrounds */

:root {
    --primary: #1e3a5f;
    --secondary: #2c5f8b;
    --accent: #00a8cc;
    --light: #f5f7fa;
    --dark: #1a1a2e;
    --text: #333;
    --transition: all 0.3s ease;
}

html {
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 58, 95, 0.95);
    padding: 1rem 5%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: 0;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

/* Schöner Hover-Effekt mit Unterstreichung */
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #fff);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--accent);
}

.nav-links a:hover::before {
    width: 100%;
    box-shadow: 0 0 15px var(--accent), 0 0 25px var(--accent);
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    z-index: 1;
    animation: fadeInUp 1s ease;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 204, 0.6);
}

/* Sections */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Services */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Clients Section - Trusted Partners */
.clients {
    padding: 6rem 5%;
    background-color: var(--light);
}

/* Staggered Grid Section */
.clients-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(187.5px, 1fr));
    gap: 8rem;
    max-width: 1800px;
    margin: 0 auto;
}

.client-card-2 {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-card-2.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.client-card-2 {
    perspective: 1000px;
}

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

.client-logo-2 {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.client-logo-2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30,58,95,0.05) 0%, transparent 70%);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.client-logo-img-2 {
    max-width: 168px;
    max-height: 112px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-img-2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30,58,95,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.client-logo-img-2:hover {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 168, 204, 0.3));
}

.client-name-2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;  /* Changed to white for dark background */
    text-align: center;
    position: relative;
    z-index: 1;
    /* Blockiert alle Animationen auf dem Text */
    transition: none;
    animation: none;
}

.client-card-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.client-name-2:hover {
    color: var(--accent);
    transition: color 0.3s ease;
}

/* Team Section */
.team {
    padding: 6rem 5%;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-card.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background: var(--light);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #008ba8;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a,
.footer-email {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding-bottom: 3px;
    position: relative;
}

.footer-links a::before,
.footer-email::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s ease;
}

.footer-links a:hover::before,
.footer-email:hover::before {
    width: 100%;
}

.footer-email:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    line-height: 40px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States für Tastaturnavigation (Accessibility) */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Touch targets on mobile (min 44px) */
@media (max-width: 768px) {
    .nav-links a,
    .cta-button,
    .submit-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 6.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
        padding-right: max(3%, env(safe-area-inset-right, 0px));
        padding-bottom: 0.65rem;
        padding-left: max(3%, env(safe-area-inset-left, 0px));
    }

    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
        min-height: 3.25rem;
    }

    #hamburger {
        order: 1;
        justify-self: start;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo {
        order: 2;
        font-size: clamp(0.85rem, 3.2vw, 1.15rem);
        line-height: 1.25;
        white-space: normal;
        overflow: visible;
        text-align: center;
        justify-self: center;
        align-self: center;
        max-width: 100%;
        hyphens: none;
        -webkit-hyphens: none;
        word-break: break-word;
    }

    .lang-switch {
        order: 3;
        margin-left: 0;
        justify-self: end;
    }

    .lang-btn {
        padding: 0.2rem 0.55rem;
        font-size: 0.72rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        width: min(16.5rem, 82vw);
        max-width: 82vw;
        background: rgba(30, 58, 95, 0.98);
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0.15rem;
        display: none !important;
        z-index: 1100;
        box-shadow: 4px 12px 28px rgba(0, 0, 0, 0.22);
        border-radius: 0 0 10px 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.7rem 1rem 0.7rem 1.35rem;
    }
    
    .nav-links.mobile-open,
    .nav-links.active {
        display: flex !important;
    }
    
    .hero {
        padding-top: max(5.5rem, calc(4.5rem + env(safe-area-inset-top, 0px)));
        padding-left: max(5%, env(safe-area-inset-left, 0px));
        padding-right: max(5%, env(safe-area-inset-right, 0px));
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .section-title {
        margin-bottom: 2.25rem;
    }

    .section-title p {
        font-size: 1.05rem;
    }
}