:root {
    --primary: #00e5ff;
    --primary-dark: #00b8d4;
    --bg-light: #f8fafc;
    --text-light: #1e293b;
    --bg-dark: #0f172a;
    --text-dark: #f1f5f9;
    --accent: var(--primary);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--bg-dark);
        --text: var(--text-dark);
        --glass: rgba(15, 23, 42, 0.6);
        --glass-border: rgba(255, 255, 255, 0.1);
        --card-bg: rgba(30, 41, 59, 0.5);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: var(--bg-light);
        --text: var(--text-light);
        --glass: rgba(255, 255, 255, 0.8);
        --glass-border: rgba(0, 0, 0, 0.1);
        --card-bg: #ffffff;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

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

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.5;
}

.blob {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: var(--primary);
    opacity: 0.4;
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: #7000ff;
    opacity: 0.3;
    animation-duration: 25s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 20%;
    background: #00ffaa;
    opacity: 0.2;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

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

nav a:hover {
    color: var(--primary);
}

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

.social-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text);
    opacity: 0.5;
    transition: var(--transition);
}

.lang-switch a.active {
    opacity: 1;
    color: var(--primary);
}

.lang-switch span {
    opacity: 0.3;
}

.social-top .social-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    width: 44px; /* Slightly larger touch target */
    height: 44px;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

header.scrolled .mobile-nav-toggle {
    /* Removed background, backdrop-filter, and border */
    /* Retained z-index and transition */
}

.mobile-nav-toggle .burger-icon {
    width: 24px;
    height: 18px;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 8px; }
.mobile-nav-toggle span:nth-child(3) { top: 16px; }

header.nav-active .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

header.nav-active .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

header.nav-active .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sections */
section {
    padding: 8rem 0;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 5.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    hyphens: auto;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
}

#hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

#hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

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

.btn-block {
    width: 100%;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card-modern {
    background: var(--card-bg);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.event-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.5;
}

.event-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.event-card-modern.highlight {
    background: linear-gradient(145deg, var(--card-bg), rgba(0, 229, 255, 0.05));
}

.event-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

.event-details h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 1rem;
}

.event-details p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.event-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.event-link:hover {
    gap: 15px;
}

.event-tag {
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 8vw, 5rem);
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.about-image-placeholder {
    height: 400px;
    background: linear-gradient(45deg, #0f172a, #1e293b);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.about-image-placeholder::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 20s infinite linear;
}

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

.glass-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    width: 90%;
}

.glass-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.glass-box a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    display: block;
    margin-top: 0.5rem;
    word-break: break-all;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card.featured {
    border: 2px solid var(--primary);
    padding: 4rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.1);
}

.service-header h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    background: var(--card-bg);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

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

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

@media (prefers-color-scheme: dark) {
    .contact-form input, 
    .contact-form textarea {
        background: rgba(255,255,255,0.05);
    }
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.02);
}

/* Impressum */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
}

footer p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* No scroll when nav is open */
body.no-scroll {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    #hero {
        text-align: center;
        justify-content: center;
        padding-top: 8rem;
        min-height: auto;
    }
    
    #hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }

    .about-image-placeholder {
        height: 300px;
        order: -1; /* Keep images/visuals above text on mobile */
    }

    .about-grid[style*="grid-template-columns: 0.8fr 1.2fr;"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    header.scrolled {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg); /* Fallback */
        background: color-mix(in srgb, var(--bg), transparent 10%);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
    }
    
    header.nav-active nav {
        right: 0;
    }

    .social-top {
        display: none;
    }

    header.nav-active .social-top {
        display: flex;
        position: fixed;
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2100;
        gap: 2rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .social-top .social-icon {
        display: block;
    }
    
    .mobile-nav-toggle {
        display: flex; /* Ensure it stays flex */
        z-index: 2100; /* Maintain high z-index */
    }
    
    section {
        padding: 5rem 0;
    }
    }
    
    .contact-wrapper {
        padding: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .background-blobs {
        filter: blur(40px);
        opacity: 0.3;
    }

