/* Findit6 Website - Zentrale Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1E2832;
    color: #E8E8E8;
    line-height: 1.6;
}

/* Colors */
:root {
    --primary-bg: #1E2832;
    --secondary-bg: #242D38;
    --card-bg: #2D3E50;
    --card-hover: #3A4F64;
    --accent-blue: #4A9EFF;
    --accent-green: #5CB85C;
    --text-primary: #E8E8E8;
    --text-secondary: #B8C5D6;
}

/* Sticky Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-blue);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: var(--card-hover);
    color: var(--accent-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-bg) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--accent-green);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
}

.cta-button.secondary {
    background: var(--accent-blue);
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.cta-button.secondary:hover {
    background: #3A8EEF;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

/* Cards */
.feature-card,
.step-card,
.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

/* Compact Stats */
.stat-card.compact {
    padding: 1rem 1.5rem;
}

.stat-card.compact .stat-number {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.stat-card.compact .stat-label {
    font-size: 0.95rem;
}

.feature-card:hover,
.step-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
}

.feature-card h3,
.step-card h3 {
    color: var(--accent-blue);
}

.feature-card p,
.step-card p {
    color: var(--text-secondary);
}


.feature-screenshot {
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.feature-screenshot:hover img {
    transform: scale(1.05);
}

/* Grids */
.features-grid,
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 200px));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

/* Stats */
.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Reward Box */
.reward-box {
    background: linear-gradient(135deg, var(--accent-green) 0%, #4CAF50 100%);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(92, 184, 92, 0.3);
}

/* Comparison Box */
.comparison-box {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.comparison-box:hover {
    transform: scale(1.02);
}

.comparison-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Theme Slideshow */
.theme-slideshow {
    position: relative;
    margin-top: 1rem;
    border-radius: 4px;
    overflow: hidden;
    height: 250px;
}

.theme-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.theme-slide.active {
    opacity: 1;
}

/// ===== ACCORDION WITH SLIDESHOW =====
let exampleSlideIndex = 0;
let exampleAutoTimer = null;
let isAccordionOpen = false;

function toggleExampleAccordion() {
    const accordion = document.getElementById('example-accordion');
    const icon = accordion.querySelector('.accordion-icon');
    
    accordion.classList.toggle('active');
    isAccordionOpen = accordion.classList.contains('active');
    
    if (isAccordionOpen) {
        startExampleAutoAdvance();
    } else {
        stopExampleAutoAdvance();
    }
}

/* Accordion Content Animation */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
}

.accordion-item {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;  /* Diese Zeile hinzufügen */
}

function changeExampleSlide(direction) {
    const slides = document.querySelectorAll('.example-slide');
    slides[exampleSlideIndex].classList.remove('active');
    
    exampleSlideIndex = (exampleSlideIndex + direction + slides.length) % slides.length;
    slides[exampleSlideIndex].classList.add('active');
    
    updateExampleIndicator();
    resetExampleAutoAdvance();
}

function autoAdvanceExample() {
    changeExampleSlide(1);
}

function startExampleAutoAdvance() {
    exampleAutoTimer = setInterval(autoAdvanceExample, 8000);
}

function stopExampleAutoAdvance() {
    clearInterval(exampleAutoTimer);
}

function resetExampleAutoAdvance() {
    stopExampleAutoAdvance();
    if (isAccordionOpen) {
        startExampleAutoAdvance();
    }
}

function updateExampleIndicator() {
    const indicator = document.querySelector('.slide-indicator');
    if (indicator) {
        const slides = document.querySelectorAll('.example-slide');
        indicator.textContent = `Schritt ${exampleSlideIndex + 1} von ${slides.length}`;
    }
}

// Pause on hover
document.addEventListener('DOMContentLoaded', function() {
    const accordion = document.getElementById('example-accordion');
    if (accordion) {
        const content = accordion.querySelector('.accordion-content');
        content.addEventListener('mouseenter', stopExampleAutoAdvance);
        content.addEventListener('mouseleave', function() {
            if (isAccordionOpen) startExampleAutoAdvance();
        });
    }
});


/* Example Slideshow inside Accordion */
.example-slideshow {
    position: relative;
    min-height: 400px;
}

.example-slide {
    display: none;
    animation: fadeIn 0.5s;
}

.example-slide.active {
    display: block;
}


/* Download Box */
.download-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 8px;
}

.version-info {
    margin: 2rem 0;
    color: var(--text-secondary);
}

.version-info p {
    margin: 0.5rem 0;
}

.requirements {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--primary-bg);
    border-radius: 6px;
}

.requirements h4 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.requirements ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.requirements ul li {
    margin: 0.5rem 0;
}

.beta-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    border-radius: 4px;
    color: #FFD54F;
    text-align: left;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-blue);
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 968px) {
    .performance .container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .stat-number {
        font-size: 2rem;
    }

    .features-grid,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header h3 {
        font-size: 1.2rem;
    }
}
