/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* Hauptfarben - Elegantes Dunkelblau Schema */
    --primary-dark: #140a29;
    --primary-medium: #3c0f66;
    --primary-light: #453566;
    
    /* Akzentfarben */
    --accent-blue: #732e93;
    --accent-light: #7a48a1;
    --accent-subtle: rgba(119, 74, 255, 0.15);

    
    /* Textfarben */
    --text-primary: #ffffff;
    --text-secondary: #c2c9d2;
    --text-muted: #8a9fb5;

    --text-hero-primary: #140a29;
    --text-hero-secondary: #453566;
    
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Glow-Effekte (subtiler) */
    --glow-subtle: 0 0 20px rgba(63, 15, 185, 0.1);
    --glow-medium: 0 0 30px rgba(125, 74, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url(/images/main-background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a0921;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
}

.splash-screen.fade-out {
    animation: splashFadeOut 1s ease-in-out forwards;
}

.splash-logo {
    max-width: 50%;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: logoAppear 1s ease-in-out;
}

.splash-screen.fade-out .splash-logo {
    animation: logoMoveToCorner 1s ease-in-out forwards;
}

/* Logo erscheint in der Mitte */
@keyframes logoAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo bewegt sich in die obere linke Ecke und wird kleiner */
@keyframes logoMoveToCorner {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(calc(-50vw + 100px), calc(-50vh + 80px)) scale(0.3);
    }
}

/* Splash Screen faded aus */
@keyframes splashFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Animated Background Particles 
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--accent-subtle) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--accent-subtle) 0%, transparent 50%);
    opacity: 0.6;
}
*/

/* Top Navigation */
.top-nav {
    margin: 0 10px 0 10px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: linear-gradient(135deg, #2d1565 0%, #41277f 25%, #6232aa 50%, #41277f 75%, #2f1666 100%);
    backdrop-filter: blur(80px);
    opacity: 0.98;

    border-left: 1px solid rgba(74, 158, 255, 0.2);
    border-right: 1px solid rgba(74, 158, 255, 0.2);
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);

    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-left, .nav-right {
    display: flex;
    gap: 15px;
    z-index: 1;
    position: relative;
}

/* Wenn alle Buttons rechts sind */
.nav-right {
    margin-left: auto;
}

.nav-btn {
    position: relative;
    padding: 12px 28px;
    background: var(--primary-light);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-light);
    box-shadow: var(--glow-subtle);
    transform: translateY(-2px);
}

/* Logo */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    order: -1; /* Logo kommt als erstes */
    z-index: 1;
}

.logo-image {
    height: 120px;
    width: auto;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover .logo-text::after {
    transform: scaleX(1);
}

.logo-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
    filter: blur(25px);
    opacity: 0.5;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-hero-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-hero-secondary);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Content Blocks */
.content-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 100px 0;
    padding: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    backdrop-filter: blur(80px);
    border: 1px solid var(--accent-subtle);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.content-block.animate {
    opacity: 1;
    transform: translateY(0);
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.05), transparent);
    transition: left 0.8s ease;
}

/* Box Animation (Licht)
.content-block:hover::before {
    left: 100%;
}
*/

.content-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-subtle);
    border-color: var(--accent-subtle);
}


.content-block.reverse {
    flex-direction: row-reverse;
}

/* Text Content */
.text-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.text-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.text-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 70%;
    height: 3px;
    background: var(--accent-blue);
}

.text-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* CTA Button */
.cta-button {
    padding: 14px 36px;
    background: var(--accent-blue);
    border: 1px solid var(--accent-light);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--accent-light);
    box-shadow: var(--glow-subtle);
    transform: translateY(-2px);
}

/* Image Content */
.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-subtle);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-placeholder:hover .image-overlay {
    opacity: 1;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-subtle);
    border-color: var(--accent-subtle);
}

.image-placeholder span {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: var(--primary-medium);
    padding: 30px 10px 30px 10px;
    margin-top: 50px;
    border-top: 1px solid rgba(74, 158, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

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

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-btn {
    position: relative;
    padding: 6px 10px;
    min-width: 120px;
    max-width: 120px;
    display: flex;
    justify-content: center;
    background: var(--primary-light);
    border: 1px solid var(--accent-subtle);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 90%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 151, 215, 0.4), transparent);
    transition: left 0.5s ease;
}

/*
.footer-btn:hover .btn-glow {
    left: 100%;
}
*/

.footer-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-light);
    box-shadow: var(--glow-subtle);
    transform: translateY(-2px);
}

.footer-btn span {
    position: relative;
    z-index: 1;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(143, 173, 207, 0.5);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .content-block {
        padding: 40px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .content-block,
    .content-block.reverse {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .text-content h2 {
        font-size: 32px;
    }

    .text-content p {
        font-size: 16px;
    }

    .image-placeholder {
        height: 300px;
    }

    .main-content {
        padding: 30px 20px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-buttons {
        gap: 15px;
    }

    .footer-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 28px;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 28px;
    }

    .content-block {
        margin: 50px 0;
    }
}