/* ==========================================
   VAFRUM 3D SCROLL WEBSITE
   ========================================== */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #ff5722;
    --accent-light: #ff7043;
    --accent-dark: #e64a19;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-accent { color: var(--accent); }
.text-center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary); line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

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

/* ==========================================
   NAVIGATION
   ========================================== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
    padding: 1rem 0;
}

#main-nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0;
}

/* Nav bleibt transparent solange Video-Section aktiv ist */
#main-nav.in-hero {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    font-family: var(--font-display);
}

.nav-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: var(--gray-300);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

.nav-cta {
    display: none;
    background: var(--accent);
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}
.nav-cta:hover { background: var(--accent-dark); }

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    color: #fff;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-cta {
    background: var(--accent) !important;
    text-align: center;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.875rem !important;
    border: none !important;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-block; }
    .mobile-menu-btn { display: none; }
}

/* ==========================================
   HERO SCROLL VIDEO
   ========================================== */
.hero-scroll {
    position: relative;
    height: 500vh;
}

.hero-scroll__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0f172a;
}

.hero-scroll__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero-scroll {
        height: 300vh;
    }
}

/* Overlay-Texte */
.hero-scroll__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
    pointer-events: auto;
}

.hero-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-text--start {
    bottom: 5%;
    left: 3%;
    max-width: 380px;
}

.hero-text--mid {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    max-width: 400px;
}
.hero-text--mid.visible {
    transform: translateX(-50%) translateY(0);
}

.hero-text--end {
    bottom: 5%;
    right: 3%;
    text-align: right;
    max-width: 350px;
}

.hero-text h1 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.hero-text h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    color: #fff;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.3);
    color: var(--accent-light);
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* Scroll-Indikator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.5s;
}

.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-indicator__mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator__wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

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

/* Progress Bar */
.hero-scroll__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.hero-scroll__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.1s linear;
}

/* ==========================================
   TRANSITION SECTION
   ========================================== */
.transition-section {
    background: var(--primary);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.transition-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--accent);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.stat-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.services-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

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

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card--blue { border-top: 4px solid var(--blue); }
.service-card--orange { border-top: 4px solid var(--accent); }
.service-card--dark {
    background: var(--primary);
    border-color: var(--gray-700);
    border-top: 4px solid var(--accent);
}
.service-card--dark h3 { color: #fff; }
.service-card--dark p { color: var(--gray-400); }
.service-card--dark .service-card__link { color: var(--gray-400); }
.service-card--dark:hover .service-card__link { color: #fff; }

.service-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card--blue .service-card__icon { background: #eff6ff; color: var(--blue); }
.service-card--orange .service-card__icon { background: #fff7ed; color: var(--accent); }
.service-card--dark .service-card__icon { background: rgba(255, 255, 255, 0.1); color: #fff; }

.service-card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1.5rem; flex-grow: 1; }

.service-card__link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
    transition: color 0.2s;
}
.service-card--blue:hover .service-card__link { color: var(--blue); }
.service-card--orange:hover .service-card__link { color: var(--accent); }

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    padding: 5rem 0;
}

.content-section--light { background: var(--gray-50); }

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 2rem;
}
.section-badge--blue { background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe; }
.section-badge--orange { background: #fff7ed; color: var(--accent); border: 1px solid #fed7aa; }
.section-badge--dark { background: var(--gray-200); color: var(--gray-600); border: 1px solid var(--gray-300); }

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .content-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .content-grid--reverse .content-text { order: 2; }
    .content-grid--reverse .content-visual { order: 1; }
}

.content-text p { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 2rem; }

/* Feature List */
.feature-list { display: flex; flex-direction: column; gap: 1rem; }

.feature-item {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-number {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #bfdbfe;
}

.feature-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0; }

/* Check List */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s, background 0.2s;
}

.check-list li:hover {
    border-color: var(--accent);
    background: #fff7ed;
}

.check-list li span { font-size: 0.95rem; }

/* Visual Boxes */
.visual-box {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.visual-box--blue {
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    color: var(--blue);
}

.visual-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--gray-300);
    margin-top: 1.5rem;
}

.visual-box--tech {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.tech-item {
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tech-item span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-700);
}

/* Kontakt */
.kontakt-wrap { max-width: 640px; margin: 0 auto; text-align: center; }

.kontakt-placeholder {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.kontakt-placeholder p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); }
.btn--primary:hover { background: var(--gray-800); }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--gray-400); font-size: 0.875rem; max-width: 320px; line-height: 1.7; }

.site-footer h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.75rem; }
.site-footer li a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.site-footer li a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p { color: var(--gray-500); font-size: 0.75rem; }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--gray-500); font-size: 0.75rem; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ==========================================
   SCROLL ANIMATIONS (reveal on scroll)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767px) {
    .hero-text--start { left: 1rem; right: 1rem; bottom: 8%; }
    .hero-text--mid { max-width: 90%; }
    .hero-text--end { right: 1rem; left: 1rem; text-align: left; }
    .hero-text h1 { font-size: 1.1rem; }
    .hero-text h2 { font-size: 1rem; }
    .hero-tag { font-size: 0.6rem; }
    .stat-grid { gap: 1.5rem; }
    .stat-number { font-size: 2.25rem; }
}
