/* ============================================
   NEUROFUSION AKADEMIE – STYLESHEET
   ============================================
   Design-System: Futuristisches KI-Lab
   Farben: Tiefschwarz, Neon-Türkis (#00f0ff),
           Neon-Violett (#b026ff)
   ============================================ */

/* ---- 1. CSS-Variablen (Design-Token) ---- */
:root {
    --bg-deep: #020204;
    --bg-elevated: #0a0a12;
    --neon-cyan: #00f0ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff00aa;
    --text-primary: #e0e0e0;
    --text-secondary: #8b92b9;
    --text-muted: #4a5070;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(0, 240, 255, 0.25);
    --shadow-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.15);
    --shadow-glow-purple: 0 0 20px rgba(176, 38, 255, 0.15);
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 2. Reset & Basis ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;

    /* Tiefer, fixierter Hintergrund mit holografischen Farbverläufen */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(176, 38, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- 3. Utility-Klassen ---- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Glassmorphism-Standardkarte */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border-hover);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 30px rgba(0, 240, 255, 0.08);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
}

/* Gradient-Text für Überschriften */
.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll-Reveal-Standardausrichtung (wird per JS aktiviert) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- 4. Navigation ---- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

/* Stärkere Sichtbarkeit beim Scrollen */
.main-nav.scrolled {
    background: rgba(2, 2, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--neon-cyan);
    font-size: 1.6rem;
    text-shadow: var(--shadow-glow-cyan);
    animation: iconPulse 4s ease-in-out infinite;
}

/* Desktop-Navigation */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

/* Neon-Unterstrich bei Hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

/* Hamburger-Menü für Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
}

/* Hamburger-Animation bei Aktivierung */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- 5. Hero Section & neuronaler Hintergrund ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0 1.5rem;
}

/* Canvas für animiertes KI-Netzwerk */
#neuralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: heroFadeIn 1.2s ease-out forwards;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

/* Haupt-Call-to-Action */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(176, 38, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    padding: 1rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.cta-button:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
}

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

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Scroll-Indikator am unteren Bildrand */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    animation: fadeIn 2s ease 1s backwards;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ---- 6. Allgemeine Sektions-Stile ---- */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--neon-purple);
    margin-bottom: 1rem;
    border: 1px solid rgba(176, 38, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(176, 38, 255, 0.05);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ---- 7. Über die Akademie (About) ---- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.about .glass-card {
    text-align: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-icon.cyan {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

.card-icon.purple {
    color: var(--neon-purple);
    background: rgba(176, 38, 255, 0.06);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.08);
}

.about .glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.about .glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- 8. Programme ---- */
.programmes {
    background: linear-gradient(180deg, transparent, rgba(10, 10, 18, 0.6), transparent);
}

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

.programme-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Holografische Leuchtlinie oben an den Karten */
.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
    opacity: 0.6;
}

.card-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease;
}

.programme-card:hover .card-number {
    color: rgba(0, 240, 255, 0.08);
    -webkit-text-stroke: 1px rgba(0, 240, 255, 0.2);
}

.programme-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.feature-list {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

/* Kleiner Neon-Punkt als Listen-Icon */
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.card-link {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-link:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

/* ---- 9. AI Language Lab (Galerie) ---- */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lab-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.lab-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.lab-image {
    height: 180px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s ease;
}

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

.lab-badge {
    background: rgba(2, 2, 4, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-hover);
    color: var(--neon-cyan);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lab-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lab-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.lab-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.lab-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lab-features span {
    font-size: 0.75rem;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- 10. Kontakt & Formular ---- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Kontaktformular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding-left: 0.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Holografischer Focus-Effekt */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 14px;
    color: #020204;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3), 0 0 40px rgba(176, 38, 255, 0.2);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Neon-Glow-Schicht hinter dem Button */
.btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-cyan));
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.5;
    animation: glowShift 4s linear infinite;
}

/* Kontaktinfos mit holografischem Dekor */
.contact-info {
    position: relative;
    overflow: hidden;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-list li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.info-list a,
.info-list address {
    color: var(--text-secondary);
    font-style: normal;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.info-list a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* Hologramm-Ringe im Kontakt-Bereich */
.hologram-decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    pointer-events: none;
}

.holo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.holo-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation: pulseRing 4s ease-in-out infinite;
}
.holo-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    border-color: rgba(176, 38, 255, 0.25);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.1);
    animation: pulseRing 4s ease-in-out infinite 1.3s;
}
.holo-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    border-color: rgba(0, 240, 255, 0.35);
    animation: pulseRing 4s ease-in-out infinite 2.6s;
}

/* ---- 11. Footer ---- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0;
    background: rgba(2, 2, 4, 0.6);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer .logo-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    animation: iconPulse 4s ease-in-out infinite;
    opacity: 0.6;
}

/* ---- 12. Keyframe-Animationen ---- */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

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

@keyframes glowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

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

/* ---- 13. Responsive Design ---- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hologram-decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(2, 2, 4, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section {
        padding: 5rem 0;
    }

    .about-grid,
    .programme-grid,
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .glass-card,
    .glass-panel {
        padding: 1.5rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .programme-card::before {
        left: 5%;
        width: 90%;
    }

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