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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #e0eaf4;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ============ HEADER & NAVIGATION ============ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(30, 58, 138, 0.98);
}

header.scrolled .logo,
header.scrolled nav a {
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
}

img {
    height: 80px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ============ HERO SECTION ============ */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

/* Deko-Elemente (Lichtkreise) */
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* Inhalt */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
    animation: slideInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== HERO GLASS BUBBLES ===== */

.hero-feature {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    color: white;
    transition: all 0.5s ease;
    gap: 20px;
}

/* Einblenden ohne transform */
.hero-feature.visible {
    opacity: 1;
}

.hero-features {
    display: flex;
    justify-content: space-evenly;
    margin-top: 100px;
}

/* Schwebe-Animation */
@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Jede Bubble animieren */
.hero-feature:nth-child(1) { animation: floatBubble 5s ease-in-out infinite; }
.hero-feature:nth-child(2) { animation: floatBubble 6s ease-in-out infinite 0.3s; }
.hero-feature:nth-child(3) { animation: floatBubble 7s ease-in-out infinite 0.6s; }

/* Hover-Effekt */
.hero-feature:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.2);
}

/* ============ SERVICES SECTION ============ */
.services {
    padding: 6rem 2rem;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.service-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.service-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-10px) scale(1.02);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.2);
}

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

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

/* ============ 3D EFFECT SECTION ============ */
.features {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.features-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ============ CONTACT SECTION ============ */
.contact {
    padding: 6rem 2rem;
    background: white;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info {
    display: grid;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.info-box {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    width: 300px;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

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

.info-box p {
    color: var(--text-dark);
}

/* ============ FOOTER ============ */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ============ SCROLL ANIMATIONS ============ */
.scroll-animate {
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: smaller;
    }

    .hero p {
        font-size: x-small;
    }

    .section-title {
        font-size: 2rem;
    }

    nav {
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        font-size: 12px;
    }

    header {
        padding: 0.2rem 0.5rem;
    }

    .header-content {
        padding: 0.2rem 0.5rem;
    }

    img {
        height: 55px;
    }

    .hero-content {
        max-width: 100vh;
    }

    .hero-feature {
        width: 90px;
        height: 90px;
        gap: 6px;
        padding: 0px;
    }
}

/* ============ PARALLAX EFFECT ============ */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============ LOADING ANIMATION ============ */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    animation: loading 2s ease-in-out infinite;
    z-index: 2000;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Ripple effect styles */
button, .btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* INTRO SPINNER STYLES */
#intro-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f172a 40%, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-spinner.hide {
    opacity: 0;
    visibility: hidden;
}

.spinner-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.2s ease forwards;
}

.spinner-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    animation: pulse 2s infinite ease-in-out;
}

.gear {
    width: 60px;
    height: 60px;
    border: 6px solid #facc15;
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1.4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ============ BURGER MENU ============ */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: black;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation zum X */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* NAVIGATION MOBILE */
@media (max-width: 768px) {
    nav#nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #111;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    nav#nav-menu.active {
        right: 0;
    }

    nav#nav-menu a,
    nav#nav-menu .nav-button {
        font-size: 1.2rem;
        color: white;
    }

    .burger {
        display: flex;
    }

    .burger.active span {
        background: white;
    }

    /* Optional: Logo links, Burger rechts */
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
}