/* Google Font Import - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;900&display=swap');

:root {
    /* Joyn / WOW Palette */
    --joyn-dark: #001219; /* Tiefes Petrol-Schwarz */
    --joyn-blue: #002533; /* Dunkelblau für Karten */
    --accent-cyan: #00f2fe;
    --accent-green: #00ff88;
    --wow-gradient: linear-gradient(135deg, #00f2fe 0%, #00ff88 100%);
    --glow-effect: 0 0 30px rgba(0, 242, 254, 0.2);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--joyn-dark);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0, 255, 136, 0.08) 0%, transparent 40%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: rgba(0, 18, 25, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
    background: var(--wow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05rem;
    transition: 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--wow-gradient);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hamburger Animation zu X */
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
    padding: 150px 0 100px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 900;
    margin: 0;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 2rem 0;
    max-width: 650px;
}

.btn-primary {
    background: var(--wow-gradient);
    color: var(--joyn-dark);
    padding: 1.2rem 2.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

/* --- GRID & CARDS --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 40px 0;
}

.card {
    background: var(--joyn-blue);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    background: rgba(0, 37, 51, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    margin: 0;
}

/* --- IMAGE BOXES --- */
.image-box {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: 0.6s ease;
    background-size: cover;
    background-position: center;
}

.image-box:hover {
    transform: scale(1.02);
}

/* --- TESTIMONIALS --- */
.testimonial-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 37, 51, 0.3) 100%);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.15rem;
    line-height: 1.8;
    backdrop-filter: blur(10px);
}

/* --- FOOTER --- */
footer .logo {
    font-size: 1.5rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-image-overlay {
        display: none;
    }
    .hero {
        text-align: center;
        padding-top: 130px;
    }
    .hero h1, .hero p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .split-cta {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    /* FIX: Verhindert das Rutschen unter den Header */
    main {
        padding-top: 85px; 
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 85px; 
        left: 0; 
        width: 100%;
        background: var(--joyn-dark);
        flex-direction: column;
        padding: 40px;
        border-bottom: 1px solid var(--accent-cyan);
        text-align: center;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 20px !important; /* FIX: Seitlicher Abstand für Mobile */
    }

    h2 {
        font-size: 2rem !important;
    }
    
    .image-box {
        height: 280px !important;
    }
}