/* =========================================
   LANDING BASE — Reset, Nav, Footer, Buttons, Sections, Reveal
   Geladen auf: ALLEN Public-Seiten
   ========================================= */
@import url('./variables.css');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.landing-nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99,91,255,0.25);
}

.nav-logo span span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a,
.nav-links .nav-dropdown-trigger {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-stack);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover,
.nav-links .nav-dropdown-trigger:hover { color: var(--primary); }

/* ── Nav Dropdowns ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-float);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 1001;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.15s ease;
    text-decoration: none;
    color: var(--text-main);
}

.nav-dropdown-item:hover {
    background: var(--bg-app);
}

.nav-dropdown-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.nav-dropdown-label {
    font-size: 14px;
    font-weight: 600;
}

.nav-dropdown-price {
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-login:hover { color: var(--primary); }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    padding-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-mobile.open { display: flex; flex-direction: column; gap: 4px; }

.nav-mobile a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-mobile a:hover { background: var(--bg-app); }

.nav-mobile-section {
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-top: 8px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,91,255,0.3);
}

.btn-primary.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-primary.btn-lg { padding: 16px 32px; font-size: 17px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #fff;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Section Base ── */
.landing-section {
    padding: 80px 0;
}

.landing-section.alt-bg {
    background: var(--bg-app);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ── Final CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 50%, #2563eb 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section .section-title {
    color: #fff;
    margin-bottom: 12px;
}

.cta-section .section-subtitle {
    color: rgba(255,255,255,0.8);
    margin: 0 auto 32px;
}

/* ── Footer ── */
.landing-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 14px;
    line-height: 1.7;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
    color: #fff;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive: Tablet (≤768px) ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .btn-primary { display: none; }
    .nav-actions .nav-login { display: block; }
    .nav-hamburger { display: flex; }

    .section-title { font-size: 28px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── Responsive: Phone (≤480px) ── */
@media (max-width: 480px) {
    .landing-section { padding: 60px 0; }
}
