/* KmPilot Landingpage – helles Theme, Farben angelehnt an AppTheme.swift */

:root {
    --bg-top: #f8f9fa;
    --bg-bottom: #f3f4f6;
    --section-alt: #ffffff;
    --card: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-muted: #94a3b8;
    --accent: #24b656;
    --accent-dark: #1a9a47;
    --accent-soft: rgba(36, 182, 86, 0.12);
    --good: #24b656;
    --over: #e05a42;
    --phone-bezel: #1a1a1a;
    --radius: 16px;
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.brand:hover {
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text-primary);
    text-decoration: none;
}

/* Hero */

.hero {
    padding: 80px 0 56px;
    text-align: center;
}

.hero .app-icon {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero .tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 34px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--card);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: #f8f9fb;
}

/* Sections */

section {
    padding: 56px 0;
}

#tabs {
    background: var(--section-alt);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 32px 0 80px;
}

.section-intro {
    padding: 64px 0 24px;
    text-align: center;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-eyebrow--center {
    text-align: center;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* Feature-Showcases (alternierend) */

.feature-showcases {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.feature-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.feature-showcase--reverse .feature-showcase__content {
    order: 2;
}

.feature-showcase--reverse .feature-showcase__media {
    order: 1;
}

.showcase-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.showcase-headline {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

.showcase-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 440px;
}

.showcase-list {
    list-style: none;
    margin-top: 24px;
    padding: 0;
}

.showcase-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
}

.showcase-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.showcase-list li:last-child {
    margin-bottom: 0;
}

.feature-showcase__media {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone mockups */

.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 480px;
}

.phone-stage--dual {
    min-height: 520px;
    max-width: 520px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    display: inline-block;
    background: var(--phone-bezel);
    border-radius: 44px;
    padding: 11px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.16);
    max-width: 250px;
    width: 100%;
    flex-shrink: 0;
}

.phone-frame__screen {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #000;
    line-height: 0;
}

.phone-frame__screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 22px;
    background: var(--phone-bezel);
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
}

.phone-stage--dual .phone-frame--back {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: scale(0.94);
    z-index: 1;
    opacity: 0.92;
}

.phone-stage--dual .phone-frame--front {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.screenshot-placeholder,
.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

/* Feature-Grid (kompakte Karten ohne Screenshot) */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card .icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Privacy-Teaser */

.privacy-banner {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px;
}

.privacy-banner h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.privacy-banner p {
    color: var(--text-secondary);
    max-width: 640px;
}

/* Inhaltsseiten (Support, Datenschutz, Impressum) */

.page-content {
    padding: 56px 0 72px;
    max-width: 760px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-content .page-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 40px 0 12px;
}

.page-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 8px;
}

.page-content p,
.page-content li {
    color: var(--text-secondary);
}

.page-content p {
    margin-bottom: 14px;
}

.page-content ul {
    margin: 0 0 14px 22px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content strong {
    color: var(--text-primary);
}

.meta-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

/* FAQ */

.faq-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item .faq-answer {
    padding: 0 22px 18px;
    color: var(--text-secondary);
}

.faq-item .faq-answer p {
    margin-bottom: 10px;
}

.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

/* Kontakt-Karte */

.contact-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-card h2 {
    margin-top: 0;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 32px 0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.6);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .feature-showcase,
    .feature-showcase--reverse {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .feature-showcase--reverse .feature-showcase__content,
    .feature-showcase--reverse .feature-showcase__media {
        order: unset;
    }

    .feature-showcases {
        gap: 72px;
    }

    .showcase-text {
        max-width: none;
    }

    .phone-stage {
        min-height: auto;
        padding: 12px 0;
    }

    .phone-stage--dual {
        min-height: auto;
        flex-direction: column;
        gap: 24px;
        max-width: none;
    }

    .phone-stage--dual .phone-frame--back,
    .phone-stage--dual .phone-frame--front {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 56px 0 40px;
    }

    section {
        padding: 40px 0;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}
