/* ==========================================================================
   Landing Page Enhancement — index.html
   Wird NACH styles.css geladen.
   ========================================================================== */

/* === SCROLL-PROGRESS-BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #8fb03d, #c0d99f, #8fb03d);
    z-index: 1100;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(143, 176, 61, 0.5);
    pointer-events: none;
}

/* === NAVBAR Schatten beim Scrollen === */
.navbar.is-scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(214, 230, 187, 0.6) !important;
}

/* === HERO Eyebrow + Pattern-Overlay === */
.hero {
    position: relative;
}

/* Highlight Text-Gradient im Hero */
.hero h1 .highlight {
    background: linear-gradient(135deg, #8fb03d 0%, #5a8a1f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(143, 176, 61, 0.10) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero-container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(143, 176, 61, 0.25);
    color: #3d6b1f;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-eyebrow .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #8fb03d;
    box-shadow: 0 0 0 0 rgba(143, 176, 61, 0.7);
    animation: landing-pulse 2s infinite;
}
@keyframes landing-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(143, 176, 61, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(143, 176, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(143, 176, 61, 0); }
}

/* Sanfte Float-Animation des Phone-Mockups */
.phone-mockup {
    animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* === Section-Tags modernisiert === */
.section-tag {
    background: rgba(143, 176, 61, 0.12) !important;
    color: #3d6b1f !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid rgba(143, 176, 61, 0.2);
}

/* === Feature-Cards aufgewertet === */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d6e6bb, #8fb03d, #c0d99f);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(143, 176, 61, 0.18) !important;
    border-color: rgba(143, 176, 61, 0.35) !important;
}
.feature-card .feature-icon {
    transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: rotate(-6deg) scale(1.08);
}

/* === Screenshot-Items Hover === */
.screenshot-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* === Privacy-Liste === */
.privacy-list li {
    transition: transform 0.2s ease, color 0.2s ease;
}
.privacy-list li:hover {
    transform: translateX(4px);
    color: #3d6b1f;
}

/* === Download CTA polish === */
.download-cta .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.download-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(143, 176, 61, 0.4);
}

/* === FADE-IN beim Scroll === */
.feature-card,
.screenshot-item,
.privacy-list li,
.section-header {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                box-shadow 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}
.feature-card.in-view,
.screenshot-item.in-view,
.privacy-list li.in-view,
.section-header.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === BACK-TO-TOP === */
.back-to-top-landing {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8fb03d, #6f8f25);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(143, 176, 61, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 90;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top-landing.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top-landing:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(143, 176, 61, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .screenshot-item,
    .privacy-list li,
    .section-header { opacity: 1; transform: none; }
    .phone-mockup, .hero-eyebrow .pulse { animation: none; }
}

/* ==========================================================================
   SCREENSHOTS — aufgewerteter Slider
   ========================================================================== */
.screenshots {
    position: relative;
    background:
        radial-gradient(900px 360px at 12% 8%, rgba(214, 230, 187, 0.4), transparent 60%),
        radial-gradient(900px 360px at 100% 90%, rgba(192, 217, 159, 0.3), transparent 60%),
        var(--bg-white) !important;
    overflow: hidden;
}
.screenshots::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(143, 176, 61, 0.10) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 70%);
    pointer-events: none;
}
.screenshots .container { position: relative; }

/* Slider Wrapper für Pfeile/Dots */
.screenshots-slider-wrapper {
    position: relative;
}

.screenshots-slider {
    padding: 50px 24px 30px !important;
    gap: 32px !important;
    /* Edge Fade */
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    cursor: grab;
}
.screenshots-slider.is-dragging { cursor: grabbing; }

/* Phone-Frame um jedes Screenshot */
.screenshot-item {
    flex: 0 0 320px !important;
    position: relative;
    padding: 18px 12px 22px !important;
    background: linear-gradient(160deg, #1f1f1f 0%, #0f0f0f 100%);
    border-radius: 38px !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(255, 255, 255, 0.04) inset,
        0 0 0 6px rgba(0, 0, 0, 0.6) inset;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.5s ease,
                opacity 0.5s ease !important;
    transform: scale(0.88);
    opacity: 0.55;
}

/* Notch / Speaker oben */
.screenshot-item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #000;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
}
.screenshot-item::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(20px);
    width: 6px;
    height: 6px;
    background: #2a3a18;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(143, 176, 61, 0.3);
    z-index: 3;
}

/* Aktives Screenshot in der Mitte */
.screenshot-item.is-active {
    transform: scale(1.02);
    opacity: 1;
    box-shadow:
        0 35px 80px rgba(143, 176, 61, 0.28),
        0 0 0 2px rgba(143, 176, 61, 0.4),
        0 0 0 6px rgba(0, 0, 0, 0.6) inset;
}

/* Bild im Frame */
.screenshot-item img {
    width: 100% !important;
    max-height: 620px !important;
    border-radius: 26px !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    display: block;
}
.screenshot-item:hover img,
.screenshot-item img:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Pfeile */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(214, 230, 187, 0.6);
    color: #3d6b1f;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 5;
    padding: 0;
    line-height: 1;
}
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }
.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 28px rgba(143, 176, 61, 0.25);
}
.slider-arrow:disabled,
.slider-arrow.is-disabled {
    opacity: 0;
    pointer-events: none;
}

/* Pagination Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(143, 176, 61, 0.25);
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}
.slider-dot:hover { background: rgba(143, 176, 61, 0.5); }
.slider-dot.is-active {
    background: linear-gradient(135deg, #8fb03d, #6f8f25);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 720px) {
    .screenshot-item { flex-basis: 260px !important; }
    .slider-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
    .slider-arrow.prev { left: 4px; }
    .slider-arrow.next { right: 4px; }
    .screenshots-slider {
        mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .screenshot-item { transition: none !important; }
}
