/* DealParadise Landing – modern, sleek */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --surface: #1a1a24;
    --surface-hover: #22222e;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #8b5cf6;
    --border: #2e2e3a;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.25s ease;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), padding var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.btn-nav-cta {
    padding: 0.5rem 1rem !important;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 8px !important;
}
.btn-nav-cta:hover { background: #5558e3 !important; color: white !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(99, 102, 241, 0.1), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 720px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    animation: heroFadeUp 0.7s ease both;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: heroFadeUp 0.7s ease 0.15s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: heroFadeUp 0.7s ease 0.3s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero split (entry page) ────────────────────────────────────────────── */
.hero-split .hero-inner { max-width: 900px; }
.hero-split-inner .hero-title { margin-bottom: 0.75rem; }
.hero-split-inner .hero-sub { margin-bottom: 2.5rem; }
.split-ctas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}
.split-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    animation: heroFadeUp 0.6s ease 0.2s both;
}
.split-cta:nth-child(2) { animation-delay: 0.35s; }
.split-cta:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.split-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
}
.split-cta-icon svg {
    width: 32px;
    height: 32px;
}
.split-cta-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.split-cta-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.5rem;
}
.split-cta-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}
.split-cta:hover .split-cta-link { text-decoration: underline; }
.hero-footer-cta { animation: heroFadeUp 0.6s ease 0.5s both; }

@media (max-width: 700px) {
    .split-ctas { grid-template-columns: 1fr; }
}

/* ── Sub-page nav (Kaufen / Verkaufen) ──────────────────────────────────── */
.nav-links .nav-page-active { color: var(--text); font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(99, 102, 241, 0.15); }

.btn-block { width: 100%; }

/* ── Sections common ──────────────────────────────────────────────────── */
.section-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
.section-inner-narrow { max-width: 640px; }

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 3rem;
}

/* ── Features ─────────────────────────────────────────────────────────── */
.features { background: var(--bg-elevated); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 14px;
}
.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-card-highlight {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}
.feature-card-highlight:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--primary);
}

/* ── Isochrone visual ──────────────────────────────────────────────────── */
.isochrone-visual {
    margin-top: 4rem;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.isochrone-visual-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.isochrone-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.isochrone-caption {
    padding: 1.5rem 1.75rem;
}

.isochrone-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.isochrone-caption p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Seller comparison (Kleinanzeigen-Enhanced) ─────────────────────────── */
.comparison-block {
    margin-top: 3rem;
    text-align: center;
}
.comparison-intro {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

.comparison-section {
    background: var(--bg);
}

.comparison-table {
    max-width: 720px;
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}
.comparison-table th,
.comparison-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding-bottom: 1rem;
}
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    text-align: center;
    width: 120px;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.check { color: #4ade80; font-weight: 700; }
.cross { color: var(--text-muted); opacity: 0.4; }
.comparison-table .row-exclusive td:first-child {
    color: var(--text);
    font-weight: 600;
}

.price-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pricing-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
}
.pricing-label-annual { color: var(--text); }

.badge-save {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.2rem 0.5rem;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.pricing-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.pricing-toggle-track {
    display: block;
    width: 48px;
    height: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    position: relative;
    transition: background var(--transition), border-color var(--transition);
}
.pricing-toggle[aria-checked="true"] .pricing-toggle-track {
    background: var(--primary);
    border-color: var(--primary);
}
.pricing-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.pricing-toggle[aria-checked="true"] .pricing-toggle-thumb { transform: translateX(22px); }

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.pricing-tab {
    padding: 0.6rem 1.25rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.pricing-tab:hover { color: var(--text); }
.pricing-tab.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
}

.pricing-panel { display: none; }
.pricing-panel.active { display: block; }

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.price-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.price-card-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.price-card-featured:hover { box-shadow: 0 0 24px var(--primary-glow); }

.card-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    padding: 0.25rem 0.6rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.price-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-amount {
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
}
.price-currency { font-size: 1.25rem; color: var(--text-muted); }
.price-interval { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }

.price-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}
.price-card li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.price-card .btn { margin-top: 0; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { background: var(--bg-elevated); }

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--surface-hover); }

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.faq-item a { color: var(--primary); }

/* ── CTA section ───────────────────────────────────────────────────────── */
.cta-section {
    padding: 5rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-sub {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Reveal animation (JS adds .in-view – progressive enhancement only) ── */
[data-reveal] { transition: opacity 0.6s ease, transform 0.6s ease; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--bg-elevated);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 1.5rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }

    .pricing-cards { grid-template-columns: 1fr; }

    .comparison-table th:nth-child(2),
    .comparison-table td:nth-child(2) { display: none; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-title, .hero-sub, .hero-cta, .split-cta, .hero-footer-cta { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
