/* Moderneres Farbschema und Design */
:root {
    --primary-color: #2b2d42;
    --secondary-color: #6c63ff;
    --accent-color: #00c9a7;
    --gradient-primary: linear-gradient(135deg, #6c63ff, #4834d4);
    --gradient-accent: linear-gradient(135deg, #00c9a7, #00b4d8);
    --light-color: #f8f9fa;
    --dark-color: #2b2d42;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --max-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    padding-top: 0;
    margin: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Header und Navigation */
header {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(43, 45, 66, 0.9), rgba(43, 45, 66, 0.7)), url('../images/analytics-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
}

header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.2), transparent 70%),
                radial-gradient(circle at bottom left, rgba(0, 201, 167, 0.2), transparent 70%);
    z-index: 0;
}

.header-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(43, 45, 66, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

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

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

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

/* Hero Section mit Kacheln */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 201, 167, 0.1));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.hero-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-card:hover:before {
    opacity: 1;
}

.hero-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.hero-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(108, 99, 255, 0.4);
}

.cta-button:hover:before {
    opacity: 1;
}

/* Services Section */
.services {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.services:before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 201, 167, 0.05));
    z-index: 0;
}

.services:after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.05), rgba(108, 99, 255, 0.05));
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 201, 167, 0.05));
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover:before {
    height: 100%;
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    transition: var(--transition);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
}

/* About Section */
.about {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about:before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-container {
    position: relative;
    z-index: 2;
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.about-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

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

.about-card:hover:before {
    height: 100%;
    opacity: 0.05;
}

.about-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.about-card-header i {
    font-size: 2rem;
    margin-right: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    position: relative;
    padding: 10px 0 10px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.expertise-list li:last-child {
    border-bottom: none;
}

.expertise-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.expertise-list li span {
    color: var(--text-light);
    font-size: 1rem;
}

.about-cta {
    text-align: center;
    margin-top: 20px;
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.contact:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.contact-card:hover:before {
    height: 100%;
    opacity: 0.05;
}

.contact-card-icon {
    background: var(--gradient-primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card-content {
    flex-grow: 1;
}

.contact-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-card-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.contact-cta {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-cta i {
    margin-left: 5px;
    transition: var(--transition);
}

.contact-card:hover .contact-cta {
    color: var(--accent-color);
}

.contact-card:hover .contact-cta i {
    transform: translateX(5px);
}

/* Footer ohne Social-Media-Icons */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.1), transparent 70%),
                radial-gradient(circle at bottom left, rgba(0, 201, 167, 0.1), transparent 70%);
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: center; /* Zentriert den Inhalt */
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-info {
    text-align: center; /* Zentriert den Text */
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer-Link Styling */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 20px;
    }

    .footer-social a {
        margin: 0 10px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        max-width: 100%;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        font-size: 1.1rem;
    }

    .header-container {
        padding-top: 80px;
    }
    
    .hero {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Füge Padding zu allen Abschnitten hinzu, um Überlappungen zu vermeiden */
#services, #about, #contact {
    padding-top: 120px;
    margin-top: -60px; /* Negative margin to compensate for the padding */
}

/* Stelle sicher, dass alle interaktiven Elemente über dem Hintergrund liegen */
.cta-button, .service-card, .contact-form, input, textarea, button {
    position: relative;
    z-index: 5;
}

/* Sprachumschalter Styling - Korrigierte Version */
.language-switch {
    display: flex;
    align-items: center;
    margin: 0 0 0 30px;
    padding: 0;
    height: auto;
}

.nav-menu .language-switch {
    display: inline-flex;
    vertical-align: middle;
    line-height: inherit;
}

.language-switch a {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px;
    opacity: 0.7;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    line-height: normal;
    margin: 0 5px !important;
}

.language-switch a:hover {
    opacity: 1;
}

.language-switch a.active {
    opacity: 1;
    color: var(--secondary-color);
}

.language-divider {
    display: none !important;
}

/* Responsive Anpassungen für den Sprachumschalter */
@media (max-width: 768px) {
    .language-switch {
        margin: 15px 0 0;
        justify-content: center;
    }
    
    .nav-menu .language-switch {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}