/* ==========================================================================
   Vocabu Landing Page – modern theme
   Loaded AFTER styles.css, only on landing pages (index.html + {lang}/index.html).
   Guides/blog keep using styles.css alone.
   ========================================================================== */

:root {
    --brand: #354B41;
    --brand-dark: #2A3C34;
    --brand-deep: #22312B;
    --accent: #F38310;
    --accent-dark: #D97207;
    --accent-soft: #FDF0E0;
    --mint: #EEF5F1;
    --mint-2: #E4EFE8;
    --ink: #22312B;
    --muted: #5B6B63;
    --surface: #ffffff;
    --bg: #FBFAF7;
    --border: rgba(53, 75, 65, 0.10);
    --radius-lg: 32px;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow-sm: 0 2px 8px rgba(34, 49, 43, 0.06);
    --shadow-md: 0 10px 30px rgba(34, 49, 43, 0.10);
    --shadow-lg: 0 24px 60px rgba(34, 49, 43, 0.14);
}

body {
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
}

::selection {
    background: var(--accent-soft);
    color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   Header – glass effect
   -------------------------------------------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: none;
    border-bottom: 1px solid var(--border);
}

.nav-menu li a {
    position: relative;
    padding: 0.35rem 0.15rem;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: right 0.25s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    right: 0;
}

/* Download-Link als Pill-Button */
.nav-menu li:last-child a {
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(243, 131, 16, 0.35);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-menu li:last-child a:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(243, 131, 16, 0.42);
}

.nav-menu li:last-child a::after {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .nav-menu li:last-child a {
        display: inline-block;
    }
}

/* --------------------------------------------------------------------------
   Sections – rhythm & headings
   -------------------------------------------------------------------------- */
main {
    overflow-x: clip;
}

section {
    border-radius: 0;
}

main > section {
    padding: clamp(3rem, 7vw, 5.5rem) 2rem;
}

main section > h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

main section > h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 3px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, var(--accent), #F7A54A);
}

/* Getönte Sektionen als weiche, runde Panels */
.features,
.ai-collections,
.scanner-feature,
.app-preview {
    background: var(--mint);
    border-radius: var(--radius-lg);
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.languages,
.writing-feature,
.sync-feature {
    background: transparent;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    max-width: none;
    justify-content: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding: clamp(3.5rem, 8vw, 6.5rem) 2rem;
    padding-bottom: clamp(5rem, 9vw, 7.5rem);
    background:
        radial-gradient(640px 420px at 88% 12%, rgba(243, 131, 16, 0.14), transparent 62%),
        radial-gradient(720px 520px at 4% 92%, rgba(53, 75, 65, 0.12), transparent 60%),
        linear-gradient(180deg, #FDFCFA 0%, #F3F8F4 100%);
    border-radius: 0;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 1.4rem;
}

.hero-content h1 .grad {
    background: linear-gradient(92deg, var(--accent) 10%, #F7A54A 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-content p {
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    max-width: 540px;
}

.hero-content p strong {
    color: var(--brand);
}

.hero .download-buttons {
    justify-content: flex-start;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.75rem;
    margin-bottom: 0 !important;
}

/* Blob hinter der Eule */
.hero-image {
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 6% -4% -2% -4%;
    background: radial-gradient(closest-side, rgba(243, 131, 16, 0.16), rgba(243, 131, 16, 0) 72%);
    border-radius: 50%;
    z-index: -1;
}

/* Sanfter Einstieg beim Laden */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeUp 0.7s ease both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-content > *:nth-child(5) { animation-delay: 0.32s; }
.hero-content > *:nth-child(6) { animation-delay: 0.4s; }

.hero-image img {
    animation: fadeUp 0.8s ease 0.15s both;
}

/* --------------------------------------------------------------------------
   Store-Badges (klassische App-Store-/Google-Play-Buttons)
   -------------------------------------------------------------------------- */
.download-buttons {
    flex-wrap: wrap;
    align-items: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    border: 1px solid #a6a6a6;
    border-radius: 10px;
    padding: 0.5rem 1.15rem;
    min-height: 58px;
    min-width: 185px;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.store-badge:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.badge-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Roboto, 'Segoe UI', sans-serif;
}

.badge-text small {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.badge-text strong {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Google Play – Bald verfügbar (nicht klickbar) */
.store-badge--soon {
    cursor: default;
    user-select: none;
    opacity: 0.62;
    filter: grayscale(30%);
}

/* --------------------------------------------------------------------------
   Stats-Leiste
   -------------------------------------------------------------------------- */
main > section.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1040px;
    margin: -2.5rem auto 0;
    padding: 1.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: bold;
    color: var(--brand);
    line-height: 1.15;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.15rem;
}

@media (max-width: 700px) {
    main > section.stats-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 1rem;
        margin-right: 1rem;
        gap: 1.25rem 0.5rem;
        padding: 1.25rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   Feature-Karten
   -------------------------------------------------------------------------- */
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem 1.75rem;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(243, 131, 16, 0.35);
}

.feature img {
    height: 120px;
    margin-bottom: 1.25rem;
}

.feature h3 {
    font-size: 1.15rem;
}

.feature p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Zigzag-Sektionen (Sprachen, KI, Schreiben, Scanner, Sync)
   -------------------------------------------------------------------------- */
.ai-text,
.scanner-text {
    text-align: left;
}

.language-text h3,
.ai-text h3,
.writing-text h3,
.scanner-text h3 {
    position: relative;
    padding-left: 1.15rem;
    margin-top: 1.1rem;
    font-size: 1.12rem;
}

.language-text h3::before,
.ai-text h3::before,
.writing-text h3::before,
.scanner-text h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.language-text p,
.ai-text p,
.writing-text p,
.scanner-text p,
.sync-text p {
    color: var(--muted);
}

@media (max-width: 768px) {
    .language-text h3,
    .ai-text h3,
    .writing-text h3,
    .scanner-text h3 {
        padding-left: 0;
    }

    .language-text h3::before,
    .ai-text h3::before,
    .writing-text h3::before,
    .scanner-text h3::before {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   App-Vorschau / Filmstrip (Scroll-Snap statt Karussell)
   -------------------------------------------------------------------------- */
.preview-strip-wrap {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.preview-strip {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 2rem;
    padding: 1rem 2rem 1.5rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.preview-strip::-webkit-scrollbar {
    display: none;
}

.preview-item {
    flex: 0 0 225px;
    scroll-snap-align: center;
    filter: none;
}

.preview-item img {
    display: block;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: translateY(-6px) scale(1.015);
}

.preview-strip-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--brand);
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.preview-strip-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.preview-strip-btn.prev {
    left: -10px;
}

.preview-strip-btn.next {
    right: -10px;
}

@media (max-width: 768px) {
    .preview-item {
        flex-basis: 200px;
    }

    .preview-strip-btn {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Feature-Grid (Alle Features auf einen Blick)
   -------------------------------------------------------------------------- */
.features-overview > p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1040px;
    margin: 2rem auto 0;
    text-align: left;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.25rem 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(243, 131, 16, 0.35);
}

.feature-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-soft);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.feature-card h3 a {
    color: inherit;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* Einzelne Karte in der letzten Reihe mittig ausrichten */
@media (min-width: 901px) {
    .feature-grid > .feature-card:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Download-Sektion als dunkles Panel
   -------------------------------------------------------------------------- */
.download {
    background:
        radial-gradient(520px 320px at 88% 0%, rgba(243, 131, 16, 0.28), transparent 60%),
        linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.download h2 {
    color: #fff;
}

.download h2::after {
    background: linear-gradient(90deg, var(--accent), #F7A54A);
}

.download p {
    color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--brand-deep);
}

footer h3,
footer h4 {
    color: #fff;
}

.footer-links ul li a,
.footer-contact a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.78);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Scroll-Reveal (Klassen werden von js/landing.js gesetzt)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-image img {
        animation: none;
    }

    .hero-image,
    .language-image img,
    .ai-image img,
    .writing-image img,
    .scanner-image img,
    .sync-image img {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Mobile Feinschliff
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero {
        padding-bottom: 4.5rem;
    }

    .hero .download-buttons {
        justify-content: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .download {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .features,
    .ai-collections,
    .scanner-feature,
    .app-preview {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        border-radius: var(--radius);
    }
}
