/*
Theme Name: Pixerio SaaS
Description: Modernes Tech/AI-Startup Design mit Glassmorphism & Animations.
Version: 5.0
*/

:root {
    --bg-main: #F8FAFC; /* Sehr helles Slate-Beige */
    --bg-card: #FFFFFF;
    --text-main: #0F172A; /* Tiefes Slate-Grau */
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    
    /* Der "AI Tech" Farbverlauf */
    --ai-gradient: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
    --ai-glow: rgba(99, 102, 241, 0.25);
}

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

/* FIX FÜR DEN WEISSEN BLOCK GANZ UNTEN */
html, body {
    background-color: #0F172A !important; /* Farbe des dunklen Footers, für Over-Scrolling */
    margin: 0; padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Die eigentliche Seite ist dieser Wrapper */
.page-wrapper {
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* Typografie */
h1, h2, h3 { font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

.ai-text {
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Tech Background Pattern */
.tech-grid {
    background-size: 40px 40px;
    background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
    position: relative;
    overflow: hidden;
}
.tech-grid::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(248,250,252,0) 0%, #F8FAFC 100%);
    pointer-events: none; z-index: 1;
}

.hero-bg-blur {
    position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 100vw; max-width: 1400px; height: 800px;
    background-image: url('https://images.unsplash.com/photo-1600607686527-6fb886090705?w=1200&auto=format&fit=crop');
    background-size: cover; background-position: center;
    filter: blur(120px); opacity: 0.45; z-index: 0; pointer-events: none; border-radius: 50%;
}

/* Layout */
.section-pad { padding: 6rem 0; position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* Buttons & Badges */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--text-main); color: #fff;
    padding: 1.2rem 3rem; border-radius: 12px; font-weight: 600; font-size: 1.1rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 10px 20px rgba(15,23,42,0.15);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(15,23,42,0.25); }
.btn-primary.ai-btn { background: var(--ai-gradient); box-shadow: 0 10px 30px var(--ai-glow); }
.btn-primary.ai-btn:hover:not(:disabled) { box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4); }
.btn-primary:disabled { background: #CBD5E1; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-secondary { background: #fff; color: var(--text-main); border: 2px solid var(--border-light); padding: 1rem 2rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-secondary:hover { border-color: #6366F1; color: #6366F1; }

.tech-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99, 102, 241, 0.1); color: #6366F1;
    padding: 0.5rem 1.2rem; border-radius: 100px; font-weight: 700; font-size: 0.85rem;
    margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* NAVBAR & ADMIN-BAR FIX */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); width: 100%; }
body.admin-bar .navbar { top: 32px; } /* Verhindert das Verstecken unter der WP Leiste */
@media screen and (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }

.nav-content { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.nav-left, .nav-right { flex: 1; display: flex; }
.nav-right { justify-content: flex-end; }
.nav-center { flex: 2; display: flex; justify-content: center; gap: 2.5rem; }
.nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.3s; }
.nav-center a:hover { color: #6366F1; }
.nav-logo { font-size: 1.6rem; font-weight: 800; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 8px; }

/* Responsive Anpassung für Mobile */
@media (max-width: 900px) {
    .nav-center { display: none; }
}

/* Hero Section */
.hero { display: flex; align-items: center; gap: 4rem; padding: 6rem 0 4rem; text-align: left; }
.hero-text { flex: 1.2; }
.hero-text h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.hero-text p { font-size: 1.15rem; color: var(--text-muted); max-width: 550px; margin-bottom: 2.5rem; }
.hero-visual { flex: 1; position: relative; }
.hero-visual img { width: 100%; border-radius: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); display: block; }
.hero-visual-badge {
    position: absolute; bottom: 20px; left: -30px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    padding: 1rem 1.5rem; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; gap: 15px; animation: float 6s ease-in-out infinite; z-index: 10;
}

/* Stats */
.stats-banner { display: flex; justify-content: center; gap: 4rem; padding: 2rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: rgba(255,255,255,0.6); backdrop-filter: blur(10px); flex-wrap: wrap; position: relative; z-index: 5;}
.stat-item { text-align: center; }
.stat-item h4 { font-size: 2rem; color: var(--text-main); margin-bottom: 0.2rem; }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* 3-STEP ANIMATION */
.steps-wrapper { position: relative; margin-top: 4rem; }
.steps-line { position: absolute; top: 40px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--border-light) 50%, #6366F1 50%); background-size: 200% 100%; background-position: 100% 0; z-index: 0; transition: background-position 1s ease; }
.steps-grid:hover + .steps-line { background-position: 0 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; z-index: 1; }
.step-card { background: var(--bg-card); padding: 2.5rem 2rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-light); text-align: center; transition: all 0.4s ease; }
.step-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px var(--ai-glow); border-color: #6366F1; }
.step-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 20px; background: rgba(99, 102, 241, 0.1); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #6366F1; }
.step-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* THE APP WORKSPACE (Dark Mode) */
.app-section { background: radial-gradient(circle at top, #1E293B 0%, #0F172A 100%); color: #fff; padding-bottom: 2rem; }
.app-container {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    border-radius: 24px; padding: 3rem; margin: 0 auto; max-width: 900px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main); text-align: left;
}
.app-header { display: flex; gap: 8px; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.app-dot { width: 12px; height: 12px; border-radius: 50%; }
.app-dot.r { background: #EF4444; } .app-dot.y { background: #F59E0B; } .app-dot.g { background: #10B981; }

.pixerio-dropzone { border: 2px dashed #94A3B8; border-radius: 16px; padding: 4rem 2rem; text-align: center; cursor: pointer; transition: all 0.3s; background: rgba(248, 250, 252, 0.5); }
.pixerio-dropzone:hover, .pixerio-dropzone.dragover { border-color: #6366F1; background: rgba(99, 102, 241, 0.05); }

/* Style Grid */
.style-section { margin-top: 2rem; margin-bottom: 3.5rem; }
.pixerio-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.pixerio-style-card { border: 2px solid var(--border-light); border-radius: 12px; overflow: hidden; cursor: pointer; transition: 0.3s; background: #fff; position: relative; z-index: 5; }
.pixerio-style-card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); z-index: 10; border-color: #CBD5E1; }
.pixerio-style-card.active { border-color: #6366F1; box-shadow: 0 0 0 3px var(--ai-glow); z-index: 10; }
.pixerio-style-img { width: 100%; height: 90px; object-fit: cover; display: block; }
.pixerio-style-name { display: block; padding: 8px; text-align: center; font-weight: 600; font-size: 0.85rem; border-top: 1px solid var(--border-light); }
.pixerio-style-card.active .pixerio-style-name { background: #6366F1; color: #fff; }

.loading-state { text-align: center; padding: 4rem 0; }
.loader-spinner { width: 60px; height: 60px; margin: 0 auto 2rem; border: 4px solid var(--border-light); border-top-color: #6366F1; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360px); } }

.pixerio-slider-container { position: relative; width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); cursor: ew-resize; line-height: 0; }
.pixerio-img-after { width: 100%; height: auto; display: block; }
.pixerio-img-before-wrapper { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.pixerio-img-before { height: 100%; width: 100vw; max-width: none; object-fit: cover; object-position: left; display: block; }
.pixerio-slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: #fff; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pixerio-slider-handle::after { content: "↔"; color: #6366F1; font-weight: bold; }

/* DARK MODE FEATURES (Fix für den weißen Block) */
.features-dark {
    background-color: #0F172A; /* Nahtloser Übergang aus der App */
    color: #F8FAFC;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.features-dark h2 { color: #fff; }
.features-dark .tech-badge { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); }

.feature-split { display: flex; align-items: center; gap: 4rem; }
.feature-text { flex: 1; }
.feature-image { flex: 1; position: relative; }
.feature-image img { width: 100%; border-radius: 20px; box-shadow: 0 25px 50px rgba(0,0,0,0.4); }

.floating-badge { position: absolute; bottom: -20px; left: -20px; background: rgba(15,23,42,0.85); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; gap: 15px; animation: float 6s ease-in-out infinite; color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.check-list { list-style: none; margin-top: 2rem; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; font-weight: 500; font-size: 1.1rem; }
.check-list li svg { width: 24px; height: 24px; fill: none; stroke: #10B981; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* PROFESSIONAL MEGA FOOTER (Fix für den weißen Block) */
.site-footer {
    background: #0B1120; /* Extrem dunkles Blau-Grau */
    color: #94A3B8;
    padding: 5rem 0 2rem;
    border-top: 1px solid #1E293B;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-logo {
    font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none;
    display: flex; align-items: center; gap: 8px; margin-bottom: 1rem;
}
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-col a { color: #94A3B8; text-decoration: none; display: block; margin-bottom: 0.8rem; transition: color 0.3s; }
.footer-col a:hover { color: #6366F1; }
.footer-bottom {
    border-top: 1px solid #1E293B; padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

/* Animations */
.anim { transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); opacity: 0; }
.fade-up { transform: translateY(40px); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { transform: scale(0.95); }
.fade-in.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .navbar { position: sticky; top: 0; background: #fff; }
    body.admin-bar .navbar { top: 0; } /* Reset Sticky Fix für Mobile */
    .hero { flex-direction: column; text-align: center; padding: 4rem 0; }
    .hero-visual-badge { display: none; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-line { display: none; }
    .feature-split { flex-direction: column-reverse; text-align: center; }
    .floating-badge { display: none; }
    .app-container { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-logo { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

.demo-slider-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    cursor: ew-resize;
    line-height: 0;
    /* Damit das Bild nicht über den Rand ragt */
    transform: translateZ(0); 
}
.demo-img-after { width: 100%; height: auto; display: block; }
.demo-wrapper { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.demo-img-before { height: 100%; max-width: none; object-fit: cover; object-position: left; display: block; }
.demo-slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: #fff; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 10; }
.demo-slider-handle::after { content: "↔"; color: #6366F1; font-weight: bold; }