/* ============================================================================
   Corporate landing template for the kardos.cloud app pages.
   ONE shared stylesheet for Pulslab, Pendlerblick, PictureSweep, TripWeather …
   Each page only sets its accent colours via :root variables — the whole hero,
   bands and final CTA tint themselves automatically (color-mix from --accent).

   Per-page variables (set in an inline <style> :root):
     --accent     main accent (buttons, eyebrows, icons)         REQUIRED
     --accent-2   lighter accent (gradients)                     REQUIRED
     --tint-deep  deepest dark tint for hero/band bg             optional
   ============================================================================ */

:root { --accent: #F8481C; --accent-2: #ff7a3d; --tint-deep: #1d0a13; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary, #1a1a2e);
    background-color: var(--bg-primary, #f0f0f4);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
section { position: relative; }

/* ---------- HERO ---------- */
.hero {
    background:
        radial-gradient(120% 90% at 80% -10%, color-mix(in srgb, var(--accent) 52%, transparent), transparent 60%),
        radial-gradient(100% 80% at 0% 110%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 55%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, #0e0a10) 0%, color-mix(in srgb, var(--tint-deep) 70%, #0c0810) 55%, #0d0a11 100%);
    color: #fff;
    padding: 120px 0 90px;
    text-align: center;
    overflow: hidden;
}
.hero-icon {
    width: 104px; height: 104px; border-radius: 24px;
    box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 45%, transparent);
    margin-bottom: 26px;
}
.hero picture { display: block; }
.hero picture .hero-icon, .hero .hero-icon { display: block; margin-left: auto; margin-right: auto; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero .tag { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: rgba(255,255,255,.82); margin-top: 16px; font-weight: 500; }
.hero .lede { max-width: 600px; margin: 18px auto 0; color: rgba(255,255,255,.66); font-size: 1.02rem; }
.cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-appstore { display: inline-flex; line-height: 0; transition: transform .18s ease; }
.btn-appstore:hover { transform: translateY(-2px); }
.btn-appstore img { height: 52px; width: auto; display: block; }
#appstore-rating .stars { color: var(--accent); letter-spacing: 1.5px; }
/* Official App Store badge image link */
.btn-appstore { display: inline-flex; line-height: 0; transition: transform .18s ease; }
.btn-appstore:hover { transform: translateY(-2px); }
.btn-appstore img { height: 52px; width: auto; display: block; }
.btn-ghost {
    display: inline-flex; align-items: center;
    color: #fff; text-decoration: none; padding: 14px 22px;
    border: 1px solid rgba(255,255,255,.28); border-radius: 15px; font-weight: 600;
    transition: background .18s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
/* App Store badge (live apps) */
.btn-store {
    display: inline-flex; align-items: center; gap: 11px;
    background: #fff; color: #111; text-decoration: none;
    padding: 14px 24px; border-radius: 15px; font-weight: 700; font-size: 1.02rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .18s ease, box-shadow .18s ease;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,0,0,.4); }
.btn-store.soon { cursor: default; opacity: .92; }
.btn-store svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-store small { display: block; font-size: .68rem; font-weight: 600; opacity: .6; line-height: 1; }
.btn-store b { display: block; font-size: 1.05rem; line-height: 1.15; margin-top: 2px; }
.hero-meta { margin-top: 30px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: rgba(255,255,255,.55); font-size: .82rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: #fff; font-weight: 700; }

/* ===== Light theme (apple under light system, or explicit light) ===== */
[data-theme="apple"] .hero, [data-theme="light"] .hero {
    background:
        radial-gradient(120% 90% at 80% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
        radial-gradient(100% 80% at 0% 110%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 55%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, #ffffff) 0%, #f5f5f7 55%, #ffffff 100%);
    color: var(--text-primary);
}
[data-theme="apple"] .hero .tag, [data-theme="light"] .hero .tag,
[data-theme="apple"] .hero .lede, [data-theme="light"] .hero .lede { color: var(--text-secondary); }
[data-theme="apple"] .btn-ghost, [data-theme="light"] .btn-ghost { color: var(--text-primary); border-color: var(--border-color); }
[data-theme="apple"] .btn-ghost:hover, [data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,.04); }
[data-theme="apple"] .btn-store, [data-theme="light"] .btn-store { background: #1d1d1f; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
[data-theme="apple"] .hero-meta, [data-theme="light"] .hero-meta { color: var(--text-muted); }
[data-theme="apple"] .hero-meta b, [data-theme="light"] .hero-meta b { color: var(--text-primary); }
[data-theme="apple"] .band, [data-theme="light"] .band,
[data-theme="apple"] .final, [data-theme="light"] .final {
    background: radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%), linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, #f7f5f6), #f5f5f7);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
[data-theme="apple"] .band p, [data-theme="light"] .band p,
[data-theme="apple"] .final p, [data-theme="light"] .final p { color: var(--text-secondary); }

/* System-Dark under the Apple theme: restore the rich dark hero/band/final */
@media (prefers-color-scheme: dark) {
    [data-theme="apple"] .hero {
        background:
            radial-gradient(120% 90% at 80% -10%, color-mix(in srgb, var(--accent) 52%, transparent), transparent 60%),
            radial-gradient(100% 80% at 0% 110%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 55%),
            linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, #0e0a10) 0%, color-mix(in srgb, var(--tint-deep) 70%, #0c0810) 55%, #0d0a11 100%);
        color: #fff;
    }
    [data-theme="apple"] .hero .tag { color: rgba(255,255,255,.82); }
    [data-theme="apple"] .hero .lede { color: rgba(255,255,255,.66); }
    [data-theme="apple"] .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
    [data-theme="apple"] .btn-ghost:hover { background: rgba(255,255,255,.1); }
    [data-theme="apple"] .hero-meta { color: rgba(255,255,255,.55); }
    [data-theme="apple"] .hero-meta b { color: #fff; }
    [data-theme="apple"] .btn-store { background: #fff; color: #111; }
    [data-theme="apple"] .band, [data-theme="apple"] .final {
        background: linear-gradient(135deg, color-mix(in srgb, var(--tint-deep) 80%, #0c0810), color-mix(in srgb, var(--accent) 22%, #0e0a10));
        color: #fff; border-color: rgba(255,255,255,.07);
    }
    [data-theme="apple"] .final { background: radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%), linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #0e0a10), #0d0a11); }
    [data-theme="apple"] .band p, [data-theme="apple"] .final p { color: rgba(255,255,255,.72); }
}

/* ---------- SECTION HEADERS ---------- */
.sec { padding: 84px 0; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.sec h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; }
.sec h2 + p { color: var(--text-secondary, #555); max-width: 620px; margin-top: 14px; font-size: 1.05rem; }
.center { text-align: center; }
.center h2 + p { margin-left: auto; margin-right: auto; }

/* ---------- FEATURE GRID ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feat {
    background: var(--bg-card, rgba(255,255,255,.85));
    border: 1px solid var(--border-color, rgba(0,0,0,.08));
    border-radius: 20px; padding: 26px; backdrop-filter: blur(8px);
    transition: transform .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-4px); border-color: var(--accent); }
.feat .ic {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 16px;
}
.feat .ic svg { width: 24px; height: 24px; stroke: #fff; }
.feat h3 { font-size: 1.12rem; font-weight: 700; }
.feat p { color: var(--text-secondary, #555); font-size: .96rem; margin-top: 7px; }
.grid.left .feat, .modes .mode, .steps .step { text-align: left; }

/* ---------- SCAN MODES (optional) ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; text-align: left; }
.mode {
    position: relative;
    background: var(--bg-card, rgba(255,255,255,.85));
    border: 1px solid var(--border-color, rgba(0,0,0,.08));
    border-radius: 20px; padding: 28px 26px;
}
.mode .tagn { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.mode h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.mode p { color: var(--text-secondary, #555); font-size: .96rem; margin-top: 8px; }
.mode.hl { border-color: var(--accent); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 14%, transparent); }
.mode.hl::after { content: "Empfohlen"; position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 999px; }

/* ---------- STEPS (optional) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; text-align: left; }
.step {
    background: var(--bg-card, rgba(255,255,255,.85));
    border: 1px solid var(--border-color, rgba(0,0,0,.08));
    border-radius: 20px; padding: 28px 26px;
}
.step .num {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; }
.step p { color: var(--text-secondary, #555); font-size: .96rem; margin-top: 7px; }

/* ---------- GALLERY ---------- */
.gallery {
    display: flex; gap: 18px; overflow-x: auto; padding: 48px 22px 14px;
    justify-content: safe center;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border-hover, rgba(0,0,0,.2)); border-radius: 4px; }
.gallery img {
    flex: 0 0 auto; width: 248px; border-radius: 26px; scroll-snap-align: center;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

/* ---------- SPOTLIGHT ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; }
.spot.rev .spot-txt { order: 2; }
.spot-img { display: flex; justify-content: center; }
.spot-img img { width: 270px; border-radius: 30px; box-shadow: 0 20px 55px rgba(0,0,0,.25); }
.spot-txt h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.spot-txt p { color: var(--text-secondary, #555); margin-top: 14px; font-size: 1.05rem; }
.ticks { margin-top: 20px; display: grid; gap: 11px; }
.ticks li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.ticks svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: var(--accent); margin-top: 2px; }

/* ---------- BAND ---------- */
.band {
    background: linear-gradient(135deg, color-mix(in srgb, var(--tint-deep) 80%, #0c0810), color-mix(in srgb, var(--accent) 22%, #0e0a10));
    color: #fff; border-radius: 28px; padding: 52px 44px; text-align: center;
    border: 1px solid rgba(255,255,255,.07);
}
.band h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }
.band p { color: rgba(255,255,255,.7); max-width: 560px; margin: 14px auto 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 740px; margin: 44px auto 0; }
details {
    border: 1px solid var(--border-color, rgba(0,0,0,.08)); border-radius: 16px;
    padding: 4px 22px; margin-bottom: 12px; background: var(--bg-card, rgba(255,255,255,.7));
}
details[open] { border-color: var(--accent); }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-secondary, #555); padding-bottom: 18px; font-size: .98rem; }

/* ---------- FINAL CTA ---------- */
.final {
    text-align: center;
    background:
        radial-gradient(100% 100% at 50% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 65%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #0e0a10), #0d0a11);
    color: #fff; border-radius: 30px; padding: 70px 30px; margin-bottom: 30px;
}
.final h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
.final p { color: rgba(255,255,255,.72); margin: 14px auto 30px; }
.subnav { text-align: center; padding: 6px 0 70px; }
.subnav a { color: var(--text-secondary, #666); text-decoration: none; margin: 0 12px; font-size: .92rem; }
.subnav a:hover { color: var(--accent); }

@media (max-width: 760px) {
    .grid, .modes, .steps { grid-template-columns: 1fr; }
    .spot { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
    .spot.rev .spot-txt { order: 0; }
    .sec { padding: 60px 0; }
}
