/* ==========================================
   GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --accent: #d4ff1a; /* Neongelb/Limetten-Akzent von Nexus */
    --accent-hover: #bdff00;
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #27272a; /* Subtile, feine Borders */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

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

/* Default-Cursor auf Desktop-Geräten ausblenden, um Platz für den Custom Cursor zu schaffen */
@media (hover: hover) and (pointer: fine) {
    body, a, button, input, textarea, select, .service-card, .portfolio-card {
        cursor: none;
    }
}

span.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* ==========================================
   CUSTOM MOUSE CURSOR
   ========================================== */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Hover-Status für interaktive Elemente */
.custom-cursor-dot.hovered {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

.custom-cursor-ring.hovered {
    width: 56px;
    height: 56px;
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Verbergen auf mobilen Touchscreens */
@media (hover: none) {
    .custom-cursor-dot, .custom-cursor-ring {
        display: none;
    }
    body, a, button, input, textarea, select, .service-card, .portfolio-card {
        cursor: auto;
    }
}

/* ==========================================
   PRIVACY CONSENT BANNER (HUD-Style Left)
   ========================================== */
.custom-consent-card {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 320px;
    max-width: calc(100vw - 4rem);
    background-color: #0c0c0e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    z-index: 10001; /* Liegt über dem Inhalt */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.custom-consent-card.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.consent-body p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.consent-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: var(--text-primary);
}

.btn-consent-accept {
    background-color: var(--accent);
    color: #000000;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-consent-accept:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

@media (max-width: 580px) {
    .custom-consent-card {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        max-width: none;
    }
}

/* ==========================================
   PRELOADER SCREEN (High-End Entrance)
   ========================================== */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #09090b; /* Nahtloses Verschmelzen mit dem Hintergrund */
    z-index: 100005; /* Steht über allen anderen Elementen */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Weiches Ausblenden */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Große pulsierende Logo-Animation */
.preloader-logo {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    animation: logoPulse 2.5s ease-in-out infinite;
}

.preloader-logo span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(212, 255, 26, 0.4);
}

/* Feiner High-Tech-Ladebalken */
.preloader-bar-wrapper {
    width: 140px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar {
    width: 0;
    height: 100%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    border-radius: 10px;
    animation: fillBar 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Logo-Glühen */
@keyframes logoPulse {
    0%, 100% { transform: scale(0.97); opacity: 0.85; }
    50% { transform: scale(1.03); opacity: 1; filter: drop-shadow(0 0 15px rgba(212, 255, 26, 0.2)); }
}

/* Füllvorgang */
@keyframes fillBar {
    to { width: 100%; }
}

/* ==========================================
   LANGUAGE SWITCHER BUTTON
   ========================================== */
.btn-lang {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.btn-lang:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   SCROLL-DRIVEN REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

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

.stagger-1 { transition-delay: 150ms; }
.stagger-2 { transition-delay: 300ms; }
.stagger-3 { transition-delay: 450ms; }

/* ==========================================
   NAVIGATION & ACTIVE STATES (ScrollSpy)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
    transform: scale(1.02);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: relative;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover-Strich */
.nav-menu a:not(.btn-primary-sm):not(.active)::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -6px;
    left: 0;
    background-color: rgba(212, 255, 26, 0.4);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:not(.btn-primary-sm):not(.active):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

.nav-menu a.active {
    color: var(--text-primary) !important;
}

.nav-indicator {
    position: absolute;
    bottom: -6px;
    height: 1px;
    background-color: var(--accent);
    pointer-events: none;
    opacity: 0;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    will-change: left, width;
}

/* BUTTONS */
.btn-primary-sm {
    background-color: var(--accent);
    color: #000000;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary-sm:hover {
    background-color: var(--accent-hover);
    color: #000000 !important;
    transform: translateY(-2px);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #000000;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 255, 26, 0.15);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding-top: 110px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.sub-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3.5rem, 5.5vw, 5rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Spline Container Styling */
.spline-wrapper {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background-color: #0c0c0e;
    position: relative;
    transition: border-color 0.5s ease;
}

.spline-wrapper:hover {
    border-color: rgba(212, 255, 26, 0.4);
}

/* Spline Canvas Element */
spline-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.logo {
    display: flex !important;
    align-items: center !important;
}

.header-logo-icon {
    width: 22px;         /* Zwingt das große Bild auf exakt diese Breite */
    height: 22px;        /* Zwingt das große Bild auf exakt diese Höhe */
    object-fit: contain; /* Verhindert jegliche Verzerrung beim Skalieren */
    display: block;
    margin-right: 10px;   /* Abstand zwischen Logo und Text */
}


/* ==========================================
   STATS SECTION
   ========================================== */
.stats-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================
   INFINITE MARQUEE (RUNNING TEXT)
   ========================================== */
.marquee-ribbon {
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    background: #09090b;
}

.marquee-track {
    display: inline-block;
    animation: runningText 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    margin-right: 3.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes runningText {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================
   SHARED SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
}

/* ==========================================
   SERVICES (KI-AUTOMATISIERUNG)
   ========================================== */
.services {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.2rem 1.75rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-top {
    margin-bottom: 1.25rem;
}

.card-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    width: 100%;
}

.badge {
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    position: relative;
    transition: transform 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.service-card:hover .badge-action {
    transform: translateX(4px);
}

/* ==========================================
   INTERACTIVE CHAT INTERFACE
   ========================================== */
.chat-demo-section {
    padding-bottom: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.chat-container {
    background-color: #0c0c0e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.chat-header {
    background-color: var(--bg-card);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
    50% { opacity: 1; box-shadow: 0 0 12px var(--accent); }
}

.chat-header span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chat-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 250px;
}

.chat-msg {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(15px);
    animation: slideMessageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.chat-msg.bot {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.chat-msg.user {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    align-self: flex-end;
    border-top-right-radius: 2px;
}

/* ==========================================
   AI AVATAR SHOWCASE (HeyGen)
   ========================================== */
.avatar-showcase {
    padding: 120px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid var(--border-color);
}

.avatar-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.avatar-video-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #0c0c0e;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease;
}

.avatar-video-card:hover {
    border-color: var(--accent);
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.avatar-bullets {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bullet-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bullet-icon {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.4;
}

.bullet-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.bullet-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .avatar-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   ROI CALCULATOR SECTION (High-End / Studio Layout)
   ========================================== */
.roi-section {
    padding: 120px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid var(--border-color);
}

.roi-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.roi-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 3.5rem;
}

/* Komplett schwarzer Kasten */
.roi-calculator-card {
    background-color: #050507; /* Tiefschwarz */
    border: 1px solid var(--border-color); /* Standard-Dunkelgrauer Rand */
    border-radius: 16px;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* Left Column: Sliders */
.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.roi-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roi-label-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.roi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Harmonisch herabgesetzte Typografie (Ausgewogene Proportionen) */
.roi-value {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.55rem; /* Zierlich und edel */
    font-weight: 400;
    color: #00f5ff; /* Cyan */
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.35);
    line-height: 1;
}

/* Hauchdünner Regler-Track */
.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px; /* Superfeine Linie */
    background: #1f1f23;
    border-radius: 2px;
    outline: none;
    margin: 1rem 0;
}

/* Zierliche, leuchtende Slider-Punkte */
.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px; /* Von 18px auf filigrane 14px verkleinert */
    height: 14px;
    border-radius: 50%;
    background: #ffffff; /* Weißer Kern */
    box-shadow: 0 0 12px #00f5ff, 0 0 4px #00f5ff; /* Konzentrierter Glow */
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.roi-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px #00f5ff, 0 0 4px #00f5ff;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}

/* Right Column: Display */
/* NUR die Box mit dem Endpreis hat jetzt den dezenten, cyanfarbenen Leuchtrand */
.roi-display {
    background-color: #08080a; /* Kontrastierendes Dunkelgrau */
    border: 1px solid rgba(0, 245, 255, 0.25); /* Dezenter, feiner Cyan-Leuchtrand */
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    /* Kombinierter Schatten für räumliche Tiefe und feines Glimmen */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 255, 0.05); 
}

.roi-display-tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
}

/* Harmonisch verkleinerte Hauptsumme */
.roi-savings-amount {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.6rem; /* Von gigantischen 4rem auf harmonische 2.6rem reduziert */
    font-weight: 400;
    color: #00f5ff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.4), 0 0 8px rgba(0, 245, 255, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.roi-savings-sub {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.roi-breakdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.roi-arrow {
    color: var(--accent);
}

.roi-progress-wrapper {
    width: 100%;
    height: 6px;
    background-color: #15151c;
    border-radius: 10px;
    overflow: hidden;
}

.roi-progress-bar {
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, var(--accent));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 968px) {
    .roi-calculator-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem 1.75rem;
    }
}

/* ==========================================
   PORTFOLIO (INTERAKTIVE REFFERENZEN)
   ========================================== */
.portfolio {
    padding: 120px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 969px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
        row-gap: 8rem;
        align-items: start;
    }

    .portfolio-card:nth-child(even) {
        margin-top: 6rem;
    }
}

@media (max-width: 968px) {
    .portfolio-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-decoration: none; /* Entfernt Unterstreichung bei Link-Kapselung */
    display: block;
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
}

.portfolio-image-placeholder {
    height: 480px;
    background-color: #101012;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

/* Neue Bildreferenzen für Branchenlösungen */
.project-hotel-bg {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.95)), url('img/hotel.jpg');
    background-size: cover;
    background-position: center;
}

.project-restaurant-bg {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.95)), url('img/restaurant.jpg');
    background-size: cover;
    background-position: center;
}

.project-shop-bg {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.95)), url('img/shop.jpg');
    background-size: cover;
    background-position: center;
}

.project-business-bg {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.95)), url('img/business.jpg');
    background-size: cover;
    background-position: center;
}

.project-saas-bg {
    background-image: linear-gradient(to bottom, rgba(9, 9, 11, 0.2), rgba(9, 9, 11, 0.85)), url('./images/saas-preview.png');
    background-size: cover;
    background-position: center;
}

.portfolio-card:hover .portfolio-image-placeholder {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

/* Blueprint Grid Overlay */
.project-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(212, 255, 26, 0.04) 1px, transparent 1px), 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover .project-grid-overlay {
    opacity: 1;
}

/* Scannerlinie */
.project-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.portfolio-card:hover .project-scanline {
    animation: laserScan 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes laserScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.project-meta-top {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    letter-spacing: 0.5px;
    z-index: 4;
    transition: color 0.3s ease;
}

.portfolio-card:hover .project-meta-top {
    color: var(--accent);
}

.image-overlay {
    padding: 3rem 2.5rem;
    width: 100%;
    z-index: 4;
}

.portfolio-tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.75rem;
}

.portfolio-name {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.project-details-expanded {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.portfolio-card:hover .project-details-expanded {
    max-height: 40px;
    opacity: 1;
    margin-top: 1rem;
}

.project-tech {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* ==========================================
   EXPERTISE (ZERTIFIKATE)
   ========================================== */
.expertise {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    border-top: 1px solid var(--border-color);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.expert-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.expert-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.expert-badge {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.expert-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.expert-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: 120px 0;
    background-color: #0c0c0e;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
}

.contact-details p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.contact-details strong {
    color: var(--accent);
}

/* FORM ELEMENTS */
.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 12px;
    transition: border-color 0.4s ease;
}

.contact-form-wrapper:focus-within {
    border-color: rgba(212, 255, 26, 0.3);
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #09090b;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #0c0c0e;
}

.btn-primary-form {
    width: 100%;
    background-color: var(--accent);
    color: #000000;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-form:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================
   FOOTER (NEXUS STUDIO STYLING)
   ========================================== */
.footer {
    background-color: #050507; /* Tiefschwarz analog zur ROI-Ergebnisbox */
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

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

.footer-grid {
    display: grid;
    /* Optimierte asymmetrische Spaltenverteilung analog Nexus */
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Brand Column */
.footer-logo {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: var(--accent);
}

/* Perfekte Ausrichtung für dein Markenlogo im Footer */
.footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important; /* Verhindert ungewollte Abstände */
    text-decoration: none !important;
}

.footer-logo-icon {
    width: 22px;  /* Gleiche dezente Größe wie oben im Header */
    height: 22px;
    object-fit: contain;
    display: block;
    margin-right: 10px; /* Haargenau 10px Abstand nur nach rechts */
}


.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 250px;
}

/* Headings */
.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Link Lists */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Newsletter Column */
.newsletter-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
}

.newsletter-input {
    flex-grow: 1;
    background-color: #121215;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

/* Neon-Limetten Absende-Button mit Arrow */
.newsletter-btn {
    background-color: var(--accent);
    color: #000000;
    border: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, box-shadow 0.3s ease;
}

.newsletter-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.03);
}

/* Bottom Copyright and Legal links Row */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-legal a:hover {
    color: var(--accent);
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   FLOATING CHATBOT WIDGET (HUD-Style)
   ========================================== */
.widget-chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: var(--font-sans);
}

/* Der schwebende Trigger-Button */
.widget-chat-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0c0c0e;
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(212, 255, 26, 0.3), 0 0 5px rgba(212, 255, 26, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.widget-chat-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #121215;
}

.widget-chat-icon {
    font-size: 1.5rem;
}

/* Das Chat-Fenster */
.widget-chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    height: 500px;
    max-height: 80vh;
    background-color: #070709; /* Tiefschwarz */
    border: 1px solid rgba(0, 245, 255, 0.18); /* Cyanfarbener Leuchtrand */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 255, 0.05);
}

.widget-chat-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.widget-chat-header {
    background-color: var(--bg-card);
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-header-text {
    flex-grow: 1;
}

.widget-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-header-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.widget-chat-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.widget-chat-close:hover {
    color: var(--text-primary);
}

/* Body (Nachrichtenverlauf) */
.widget-chat-body {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #050507;
}

.widget-chat-body::-webkit-scrollbar {
    width: 4px;
}
.widget-chat-body::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

/* Footer (Eingabebereich) */
.widget-chat-footer {
    padding: 1rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#widget-chat-input {
    flex-grow: 1;
    background-color: #09090b;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#widget-chat-input:focus {
    border-color: #00f5ff; /* Cyanfarbener Fokus-Rand */
}

#widget-chat-send {
    background-color: #00f5ff; /* Cyan Button */
    color: #000000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#widget-chat-send:hover {
    background-color: #00d4dd;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .widget-chat-window {
        width: 320px;
        right: -10px;
    }
}

/* Styling für das Widerrufs-Pop-up */
.cancel-modal {
  display: none; /* Standardmäßig unsichtbar */
  position: fixed;
  z-index: 10000; /* Immer ganz oben */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 9, 11, 0.85); /* Halbtransparenter dunkler Hintergrund */
  backdrop-filter: blur(8px); /* Eleganter Unschärfe-Effekt */
  justify-content: center;
  align-items: center;
}

/* Wenn das Modal aktiv ist, wird es per JS auf flex gesetzt */
.cancel-modal.active {
  display: flex;
}

.cancel-modal-content {
  background-color: #16161a;
  border: 1px solid #27272a;
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: #d4ff1a;
}

.modal-title {
  color: #fafafa;
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-desc {
  color: #a1a1aa;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.modal-input-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.modal-input-group label {
  color: #fafafa;
  font-size: 0.85rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-input-group input, 
.modal-input-group textarea {
  background-color: #09090b;
  border: 1px solid #27272a;
  color: #fafafa;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.modal-input-group input:focus, 
.modal-input-group textarea:focus {
  border-color: #d4ff1a;
  outline: none;
}

.modal-submit-btn {
  background-color: #d4ff1a;
  color: #09090b;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s, opacity 0.2s;
}

.modal-submit-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Perfektes Alignment für das Logo im Preloader Screen */
.preloader-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.preloader-logo-icon {
    width: 40px;  /* Ein Hauch größer für den Ladebildschirm, passend zur dortigen Schrift */
    height: 40px;
    object-fit: contain;
    display: block;
    margin-right: 10px; /* Exakt 10px Platz nach rechts zum Text */
}

/* ==========================================
   RESPONSIVE DESIGN — HAMBURGER & MOBILE NAV
   ========================================== */

/* Hamburger Button (sichtbar nur auf Mobile) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 6px 4px;
    z-index: 1100;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
}

/* X-Animation wenn geöffnet */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay-Abdunkelung hinter dem Menü */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.nav-overlay.show {
    display: block;
    opacity: 1;
}

/* ==========================================
   BREAKPOINT 1024px — Tablets Querformat
   ========================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .nav-menu {
        gap: 1.25rem;
    }
    .hero-container {
        gap: 2.5rem;
    }
    .spline-wrapper {
        height: 420px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   BREAKPOINT 768px — Tablets & Smartphones
   ========================================== */
@media (max-width: 768px) {

    /* --- NAVIGATION: Hamburger aktivieren --- */
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100dvh;
        background-color: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5.5rem 2rem 2rem;
        gap: 0;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    /* Nav-Links im Drawer */
    .nav-menu a {
        font-size: 1.05rem;
        width: 100%;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-muted);
    }
    .nav-menu a::after {
        display: none !important;
    }
    .nav-menu .btn-primary-sm {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
    }
    .nav-menu .btn-lang {
        margin-top: 0.5rem;
    }

    /* ScrollSpy-Indikator auf Mobile ausblenden */
    .nav-indicator {
        display: none;
    }

    /* --- HERO SECTION --- */
    .hero {
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: auto;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }
    .hero-title {
        font-size: clamp(2.6rem, 8vw, 3.8rem);
        letter-spacing: -1px;
    }
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero-buttons {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 1 1 140px;
        text-align: center;
    }
    .spline-wrapper {
        height: 280px;
    }

    /* --- STATS --- */
    .stats-container {
        justify-content: center;
        padding: 0 1.25rem;
        gap: 1.5rem;
    }
    .stat-item {
        flex: 1 1 calc(50% - 1.5rem);
        min-width: 120px;
        align-items: center;
        text-align: center;
    }

    /* --- SECTION ALLGEMEIN --- */
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.2rem);
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .services,
    .chat-demo-section,
    .avatar-showcase,
    .roi-section,
    .portfolio,
    .expertise {
        padding-top: 64px;
        padding-bottom: 64px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .contact {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    /* --- SERVICES GRID --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .service-card {
        min-height: auto;
    }

    /* --- AVATAR --- */
    .avatar-showcase {
        border-top: 1px solid var(--border-color);
    }
    .avatar-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* --- ROI CALCULATOR --- */
    .roi-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .roi-calculator-card {
        padding: 2rem 1.25rem;
        gap: 2.5rem;
    }
    .roi-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    /* --- PORTFOLIO --- */
    .portfolio-image-placeholder {
        height: 320px;
    }
    .portfolio-name {
        font-size: 1.5rem;
    }

    /* --- EXPERTISE GRID --- */
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    /* --- CONTACT --- */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }
    .contact-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }
    .contact-form-wrapper {
        padding: 1.75rem 1.25rem;
    }
    .contact-text {
        max-width: 100%;
    }

    /* --- FOOTER --- */
    .footer-container {
        padding: 0 1.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
    .newsletter-col {
        grid-column: 1 / -1;
    }
    .newsletter-form {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .footer-legal {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* --- CHAT WIDGET --- */
    .widget-chat-container {
        bottom: 1rem;
        right: 1rem;
    }
    .widget-chat-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        height: 460px;
    }

    /* --- CANCEL MODAL --- */
    .cancel-modal-content {
        padding: 2rem 1.25rem;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    /* --- CONSENT BANNER --- */
    .custom-consent-card {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        max-width: none;
    }
}

/* ==========================================
   BREAKPOINT 480px — Kleine Smartphones
   ========================================== */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }

    .hero {
        padding-top: 80px;
    }
    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.75rem);
        text-align: center;
        align-items: center;
    }
    .stat-number {
        font-size: 2rem;
    }

    .spline-wrapper {
        height: 240px;
    }

    .portfolio-image-placeholder {
        height: 260px;
    }

    .services,
    .chat-demo-section,
    .avatar-showcase,
    .roi-section,
    .portfolio,
    .expertise {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .contact-container,
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .roi-calculator-card {
        padding: 1.5rem 1rem;
    }
    .roi-display {
        padding: 2rem 1.25rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .widget-chat-window {
        width: calc(100vw - 1.5rem);
        right: -0.25rem;
        height: 420px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .newsletter-col {
        grid-column: 1;
    }

    /* Service cards Badges umbrechen bei sehr kleinen Screens */
    .card-badges {
        flex-wrap: wrap;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   BUGFIX: Spline-Viewer überlappt Hero-Content
   Der <spline-viewer> Web-Component rendert sein
   Canvas-Element außerhalb des Overflow-Containers.
   Fix: z-index-Stacking + Viewer auf Mobile ausblenden.
   ========================================== */

/* Desktop: Stacking-Kontext sicherstellen */
.hero-container {
    position: relative;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-visual {
    position: relative;
    z-index: 1;
}

/* Spline-Viewer Canvas sicher einschließen */
.spline-wrapper {
    isolation: isolate;
    overflow: hidden;
    contain: strict;
}

/* Mobile: Spline-Viewer komplett ausblenden.
   Er ist performance-intensiv, bricht das mobile
   Layout und Spline bietet keine mobile-optimierte
   Variante. Das Bild/3D-Element entfällt auf Mobile. */
@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
}
