/* WP Planer – Website-Stylesheet
   Design-Tokens folgen dem iOS-Design der App (System-Farben, SF-Schrift,
   randlose Karten auf gruppiertem Hintergrund, Capsule-Buttons). */

:root {
    color-scheme: light dark;

    --blue: #007AFF;
    --blue-dark: #0066D6;
    --green: #34C759;
    --orange: #FF9500;
    --red: #FF3B30;
    --purple: #AF52DE;
    --teal: #30B0C7;
    --indigo: #5856D6;
    --yellow: #FFCC00;

    --label: #000000;
    --label-secondary: #6D6D72;
    --label-tertiary: #AEAEB2;

    --bg: #FFFFFF;
    --bg-grouped: #F2F2F7;
    --bg-card: #FFFFFF;
    --bg-card-on-white: #F2F2F7;
    --fill: #E5E5EA;
    --separator: rgba(60, 60, 67, 0.12);

    --tint-blue: rgba(0, 122, 255, 0.12);
    --tint-green: rgba(52, 199, 89, 0.15);
    --tint-orange: rgba(255, 149, 0, 0.15);
    --tint-red: rgba(255, 59, 48, 0.12);
    --tint-purple: rgba(175, 82, 222, 0.14);
    --tint-teal: rgba(48, 176, 199, 0.15);
    --tint-indigo: rgba(88, 86, 214, 0.14);

    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 2px 8px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.10);
    --shadow-phone: 0 40px 80px rgba(0, 0, 0, 0.22), 0 12px 24px rgba(0, 0, 0, 0.10);

    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 100px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
    --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --blue: #0A84FF;
        --blue-dark: #409CFF;
        --green: #30D158;
        --orange: #FF9F0A;
        --red: #FF453A;
        --purple: #BF5AF2;
        --teal: #40C8E0;
        --indigo: #5E5CE6;
        --yellow: #FFD60A;

        --label: #FFFFFF;
        --label-secondary: #98989F;
        --label-tertiary: #636366;

        --bg: #000000;
        --bg-grouped: #000000;
        --bg-card: #1C1C1E;
        --bg-card-on-white: #1C1C1E;
        --fill: #2C2C2E;
        --separator: rgba(84, 84, 88, 0.6);

        --tint-blue: rgba(10, 132, 255, 0.2);
        --tint-green: rgba(48, 209, 88, 0.2);
        --tint-orange: rgba(255, 159, 10, 0.2);
        --tint-red: rgba(255, 69, 58, 0.2);
        --tint-purple: rgba(191, 90, 242, 0.2);
        --tint-teal: rgba(64, 200, 224, 0.2);
        --tint-indigo: rgba(94, 92, 230, 0.2);

        --glass: rgba(28, 28, 30, 0.72);
        --glass-border: rgba(255, 255, 255, 0.08);
        --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-float: 0 2px 8px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
        --shadow-phone: 0 40px 80px rgba(0, 0, 0, 0.6);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--label);
    background: var(--bg-grouped);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }

/* ---------- Navigation: schwebende Glas-Kapsel wie die iOS-Tab-Bar ---------- */
nav {
    position: fixed;
    top: 14px; left: 0; right: 0;
    z-index: 100;
    padding: 0 1rem;
    pointer-events: none;
}
.nav-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 8px 8px 8px 12px;
    border-radius: var(--r-pill);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    box-shadow: var(--shadow-float);
    pointer-events: auto;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--label); }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo-text { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
    color: var(--label);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--tint-blue); color: var(--blue); }
.lang-switch {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 14px;
    border-radius: var(--r-pill);
    background: var(--tint-blue);
    color: var(--blue);
    font-size: 15px; font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.lang-switch:hover { background: var(--blue); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 24px;
    border-radius: var(--r-pill);
    font-size: 17px; font-weight: 600;
    transition: transform 0.15s, background 0.2s, opacity 0.2s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-tinted { background: var(--tint-blue); color: var(--blue); }
.btn-tinted:hover { background: var(--blue); color: #fff; }
.app-store-badge { display: inline-flex; transition: transform 0.15s, opacity 0.2s; }
.app-store-badge:hover { transform: scale(1.02); opacity: 0.92; }
.app-store-badge img { height: 50px; }

/* ---------- Capsule-Badges (wie "Abgeschlossen", "Raumweise" in der App) ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600;
    background: var(--tint-blue); color: var(--blue);
}
.badge svg { width: 16px; height: 16px; stroke-width: 2.2; }
.badge.green { background: var(--tint-green); color: var(--green); }
.badge.orange { background: var(--tint-orange); color: var(--orange); }
.badge.purple { background: var(--tint-purple); color: var(--purple); }
.badge.teal { background: var(--tint-teal); color: var(--teal); }
.badge.indigo { background: var(--tint-indigo); color: var(--indigo); }

/* ---------- Typografie ---------- */
h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
h1 span { color: var(--blue); }
h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 0.75rem;
}
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: 19px; color: var(--label-secondary); line-height: 1.55; }
.num {
    font-family: var(--font-rounded);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }
section.white { background: var(--bg); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header p { color: var(--label-secondary); font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
    padding: 8.5rem 0 5rem;
    background: var(--bg-grouped);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 85% 20%, rgba(0, 122, 255, 0.14) 0%, transparent 70%),
        radial-gradient(40% 50% at 15% 90%, rgba(52, 199, 89, 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}
.hero-text .badge { margin-bottom: 1.25rem; }
.hero-text .lead { margin-bottom: 2rem; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
    margin-top: 2.5rem; padding-top: 1.75rem;
    border-top: 1px solid var(--separator);
}
.meta-value { font-size: 30px; color: var(--label); }
.meta-label { font-size: 14px; color: var(--label-secondary); margin-top: 2px; }

/* Die Store-Bilder enthalten bereits den vollständigen Geräte-Rahmen. */
.store-art {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 22px;
    box-shadow: var(--shadow-float);
    overflow: hidden;
}
.store-art img { width: 100%; height: auto; }
/* Transparente Geräte stehen frei auf dem Seitenhintergrund. */
.store-art.transparent {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.transparent-device { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.16)); }
.phone-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    min-height: 560px;
}
.phone-stack .store-art { max-width: 260px; }
.phone-stack .store-art.back {
    position: absolute;
    right: 0; top: 0;
    max-width: 240px;
    transform: rotate(6deg);
    opacity: 0.96;
    z-index: 0;
}
.phone-stack .store-art.front {
    position: relative;
    z-index: 1;
    transform: translateX(-22%);
    margin-top: 60px;
}

/* ---------- Karten ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
section.white .card { background: var(--bg-card-on-white); box-shadow: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.card p { color: var(--label-secondary); font-size: 16px; line-height: 1.55; }
.card h3 { margin-bottom: 0.5rem; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.card-num {
    font-family: var(--font-rounded);
    font-weight: 700; font-size: 15px;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

/* getönter Icon-Kreis wie in der App */
.icon-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--tint-blue); color: var(--blue);
    margin-bottom: 1rem;
}
.icon-circle svg { width: 24px; height: 24px; stroke-width: 2; }
.icon-circle.green { background: var(--tint-green); color: var(--green); }
.icon-circle.orange { background: var(--tint-orange); color: var(--orange); }
.icon-circle.purple { background: var(--tint-purple); color: var(--purple); }
.icon-circle.teal { background: var(--tint-teal); color: var(--teal); }
.icon-circle.indigo { background: var(--tint-indigo); color: var(--indigo); }
.icon-circle.red { background: var(--tint-red); color: var(--red); }

.pro-tag {
    display: inline-block; vertical-align: middle;
    margin-left: 8px; padding: 2px 8px;
    border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    background: var(--tint-orange); color: var(--orange);
}

/* ---------- Showcase (Ablauf) ---------- */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-visual { order: 2; }
.showcase-visual { display: flex; justify-content: center; }
.showcase-visual .store-art { max-width: 240px; }
.showcase-text .badge { margin-bottom: 1rem; }
.showcase-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.showcase-text p { color: var(--label-secondary); font-size: 17px; margin-bottom: 1rem; }
.check-list { list-style: none; margin-top: 1rem; }
.check-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 6px 0;
    color: var(--label);
    font-size: 16px;
}
.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px; height: 22px; margin-top: 1px;
    border-radius: 50%;
    background: var(--green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L9 11.6l6.3-6.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* ---------- Zielgruppen ---------- */
.usecase { text-align: center; }
.usecase .icon-circle { margin: 0 auto 1rem; width: 60px; height: 60px; }
.usecase .icon-circle svg { width: 30px; height: 30px; }

/* ---------- Preise ---------- */
.pricing-grid {
    max-width: 840px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch;
}
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { box-shadow: 0 0 0 2px var(--blue), var(--shadow-card); }
section.white .pricing-card.featured { box-shadow: 0 0 0 2px var(--blue); }
.pricing-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff;
    padding: 6px 14px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tier-desc { color: var(--label-secondary); font-size: 15px; margin-bottom: 1.25rem; }
.price { margin-bottom: 1rem; }
.price-amount { font-size: 40px; line-height: 1; }
.price-unit { font-size: 20px; color: var(--label-secondary); font-weight: 500; margin-left: 4px; }
.price-period { display: block; margin-top: 6px; color: var(--label-secondary); font-size: 14px; }
.pricing-features { list-style: none; margin: 1rem 0 1.5rem; flex: 1; }
.pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--separator);
    font-size: 15px; color: var(--label);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .dot {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.pricing-features li .dot svg { width: 13px; height: 13px; stroke-width: 3; color: #fff; }
.pricing-features li.yes .dot { background: var(--green); }
.pricing-features li.no { color: var(--label-tertiary); }
.pricing-features li.no .dot { background: var(--fill); }
.pricing-features li.no .dot svg { color: var(--label-tertiary); }
.pricing-note { text-align: center; color: var(--label-secondary); font-size: 14px; margin-top: 1.75rem; }
.disclaimer-note {
    max-width: 760px; margin: 2rem auto 0;
    background: var(--tint-orange);
    border-radius: var(--r-md);
    padding: 1.1rem 1.4rem;
    font-size: 15px; color: var(--label);
    display: flex; gap: 12px; align-items: flex-start;
}
.disclaimer-note svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--orange); stroke-width: 2; margin-top: 1px; }
.disclaimer-note strong { font-weight: 600; }

/* ---------- CTA ---------- */
.cta-card {
    background: linear-gradient(135deg, var(--blue) 0%, #0A5BD9 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 122, 255, 0.28);
}
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255, 255, 255, 0.82); font-size: 18px; margin-bottom: 1.75rem; }
.cta-card .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
footer {
    padding: 3rem 0 2.5rem;
    background: var(--bg-grouped);
    border-top: 1px solid var(--separator);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--label-secondary); font-size: 15px; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { color: var(--label-tertiary); font-size: 14px; }

/* ---------- Cookie-Hinweis: schwebende Glas-Karte ---------- */
.cookie-banner {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(120%);
    width: min(720px, calc(100% - 2rem));
    z-index: 9999;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
    padding: 1.25rem 1.5rem;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-content { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong { display: block; margin-bottom: 4px; font-size: 16px; }
.cookie-text p { color: var(--label-secondary); font-size: 14px; line-height: 1.45; }
.cookie-links { margin-top: 4px; font-size: 13px; }
.cookie-links a { color: var(--blue); }
.cookie-btn {
    height: 44px; padding: 0 22px;
    border: none; border-radius: var(--r-pill);
    background: var(--blue); color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
}
.cookie-btn:hover { background: var(--blue-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-text .lead { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-meta { justify-content: center; }
    .phone-stack { min-height: 0; order: -1; }
    .phone-stack .store-art.back { display: none; }
    .phone-stack .store-art.front { transform: none; margin-top: 0; max-width: 240px; }
    .nav-links { display: none; }
    .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .showcase-row.reverse .showcase-visual { order: 0; }
    .showcase-text { text-align: center; }
    .showcase-text .check-list { display: inline-block; text-align: left; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    section { padding: 4rem 0; }
    .hero { padding: 6.5rem 0 3.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-meta { gap: 1.5rem; justify-content: center; }
    .footer-content { flex-direction: column; text-align: center; }
    .cta-card { padding: 3rem 1.5rem; }
    .cookie-content { flex-direction: column; align-items: stretch; }
    .cookie-btn { width: 100%; }
    .store-art { border-radius: 18px; }
    .phone-stack .store-art.front, .showcase-visual .store-art { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .btn, .cookie-banner { transition: none; }
}
