/* --- Base Variables & Reset --- */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #ffffff;
    
    /* Neon Colors */
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-purple: #be00ff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

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

/* --- Custom Cursor --- */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear, width 0.2s, height 0.2s, border-color 0.2s;
}

.hover-effect ~ .cursor {
    width: 15px;
    height: 15px;
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.hover-effect ~ .cursor-follower {
    width: 60px;
    height: 60px;
    border-color: var(--neon-pink);
}

/* --- Typography & Utilities --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.text-center { text-align: center; }

/* Neon Text Helpers */
.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px #000, 0 0 10px #000; /* Black "glow" for legibility */
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 5px #000, 0 0 10px #000; /* Black "glow" for legibility */
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    padding: 0.75rem 2rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 1.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255,0,255,0.3));
    transition: filter 0.3s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 14px rgba(255,0,255,0.6));
}

.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-geschaeftsbereiche {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    white-space: nowrap;
}

.navbar-geschaeftsbereiche:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0,255,255,0.05);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    transition: color 0.3s, background 0.3s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-link-cta {
    background: var(--neon-pink);
    color: #000 !important;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255,0,255,0.4);
    transition: box-shadow 0.3s, transform 0.2s;
}

.nav-link-cta:hover {
    background: var(--neon-pink) !important;
    box-shadow: 0 0 20px rgba(255,0,255,0.7);
    transform: scale(1.05);
}

.lang-switch {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.lang-switch button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    transition: color 0.3s;
}

.lang-switch button:hover {
    color: #fff;
}

.lang-switch button.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navbar.nav-active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.navbar.nav-active .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar.nav-active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* --- Loading Overlay --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- Hero Section & Scrollytelling --- */
.hero {
    height: 400vh; /* Scroll space for 240 frames */
    position: relative;
}

#hero-canvas {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through if needed, but headlines are focus */
}

/* Re-enable pointer events for specific hero content if needed */
.hero-content h1, .hero-content p, .hero-content .scroll-indicator {
    pointer-events: auto;
}


.glitch-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Removed hero-bg-shapes as we use canvas now */


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}


/* --- Responsive Section (Floating) --- */
.responsive {
    padding: 4rem 0 8rem 0; /* Reduced top padding as it floats */
    position: relative;
    z-index: 20; /* Float over the fixed canvas */
}

.floating-card-wrapper {
    background: rgba(5, 5, 5, 0.85); /* Slightly transparent dark */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s;
}

.floating-card-wrapper:hover {
    border-color: rgba(0, 255, 255, 0.4);
}

.responsive-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}



.responsive .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.rs-text {
    flex: 1;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.rs-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.responsive-img:hover {
    transform: scale(1.02);
}



/* --- KMU Section --- */
.kmu {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-color), rgba(20,0,20,0.5) 50%, var(--bg-color));
    position: relative;
    z-index: 20;
}

.seo-block {
    margin-bottom: 4rem;
}

.seo-block h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.seo-block h2 {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    color: #fff;
    opacity: 0.9;
}

.seo-block h3 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 900px;
    margin: 1.5rem auto 0;
    line-height: 1.4;
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.neon-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.neon-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,0,255,0.3);
    box-shadow: 0 10px 30px rgba(255,0,255,0.1);
}

.neon-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.neon-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.neon-card p {
    color: var(--text-muted);
}


/* --- References Slider Section --- */
.references {
    padding: 8rem 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
    background: var(--bg-color);
}


/* Ensure container-fluid takes the whole width but container keeps text centered */
.container-fluid {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.slider-wrapper {
    margin-top: 4rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    cursor: grab;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-wrapper:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    gap: 2rem;
    padding: 0 2rem; /* Initial offset so it aligns inside */
    width: max-content;
    padding-left: calc(50vw - 600px + 2rem); /* roughly align with container max-width 1200 */
    padding-right: calc(50vw - 600px + 2rem);
}

/* 3 to 4 items visible -> roughly 25vw to 30vw width */
.slider-item {
    width: clamp(280px, 28vw, 400px);
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.slider-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.slide-image {
    width: 100%;
    height: 220px;
    background: #111;
    overflow: hidden;
    position: relative;
}

.mock-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.img-1 { background-image: linear-gradient(45deg, #1f1c2c, #928dab); }
.img-2 { background-image: linear-gradient(45deg, #8A2387, #E94057, #F27121); }
.img-3 { background-image: linear-gradient(45deg, #0f0c29, #302b63, #24243e); }
.img-4 { background-image: linear-gradient(45deg, #11998e, #38ef7d); }

.slider-item:hover .mock-img {
    transform: scale(1.1);
}

.slide-content {
    padding: 2rem;
}

.slide-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.slide-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.ref-link {
    display: inline-block;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.3s;
}

.ref-link:hover {
    color: #fff;
    transform: translateX(5px);
}


/* --- CTA Section --- */
.cta-section {
    padding: 8rem 0;
    position: relative;
    z-index: 20;
    background: var(--bg-color);
}


.neon-button {
    display: inline-block;
    text-decoration: none;
    margin-top: 2.5rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #000;
    background: var(--neon-cyan);
    border: none;
    border-radius: 30px;
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neon-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--neon-cyan), inset 0 0 10px rgba(255,255,255,0.5);
}

footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 20;
    background: var(--bg-color);
}

.footer-seo {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.footer-seo strong {
    color: #ffffff;
    font-weight: 600;
}

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

.footer-logo-img {
    height: 56px;
    width: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(255,0,255,0.2));
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-info {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}



/* --- Media Queries --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    .slider-track {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 992px) {
    .responsive-flex {
        flex-direction: column;
        text-align: center;
    }
    .rs-visual {
        width: 100%;
        margin-top: 3rem;
    }
    .floating-card-wrapper {
        padding: 2.5rem;
    }
    .responsive-img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }
    .navbar-center {
        display: none;
    }
    .lang-switch {
        justify-content: center;
    }
    .navbar-right {
        gap: 0.75rem;
        justify-content: flex-end;
    }
    .navbar-right .nav-links {
        display: none;
    }
    .logo-img {
        height: 36px;
    }
    .hamburger {
        display: flex;
    }

    /* Mobile Menu Overlay */
    .navbar.nav-active .nav-links {
        display: flex;
    }

    .navbar.nav-active .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        animation: fadeIn 0.3s forwards;
    }

    .navbar.nav-active .lang-switch {
        position: fixed;
        bottom: 3rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        margin: 0;
        animation: fadeInNoMove 0.3s forwards 0.2s;
        opacity: 0;
        background: rgba(255, 255, 255, 0.05);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        backdrop-filter: blur(5px);
    }

    .navbar.nav-active .nav-link {
        font-size: 2rem;
        font-family: var(--font-heading);
        text-transform: uppercase;
        letter-spacing: 2px;
    }

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

    @keyframes fadeInNoMove {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .navbar.nav-active .lang-switch {
        animation: fadeInNoMove 0.3s forwards 0.2s;
    }
    .glitch-title {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    /* Show exactly 2 cards on tablet/phone */
    .slider-item {
        width: calc(50vw - 2rem);
        min-width: 220px;
    }
    .slider-track {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
    }
    .cta-section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .glitch-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .floating-card-wrapper {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .neon-button {
        margin-top: 1.5rem;
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 1rem;
    }
    .lang-switch {
        margin-top: 0;
    }
    .hero {
        height: 300vh;
    }
    /* 2 cards always visible on small phones */
    .slider-item {
        width: calc(50vw - 1.5rem);
        min-width: 160px;
    }
    .slide-image {
        height: 140px;
    }
    .slide-content {
        padding: 1rem;
    }
    .slide-content h3 {
        font-size: 0.95rem;
    }
    .slide-content p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    .ref-link {
        font-size: 0.8rem;
    }
    .slider-track {
        gap: 0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}


/* ── Music Control ── */
.music-control {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 0;
}

.music-control:hover {
    transform: scale(1.1);
    border-color: #00f3ff;
    box-shadow: 0 0 15px #00f3ff;
}

.music-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .music-control {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }
}
