/* =====================================================================
   pixaro.ch — Shared Design-System
   Source: /Users/theo/Desktop/pixaro-ch.pen (Pencil-Design)
   Renderer: Caddy static file server (deploy target: /var/www/pixaro-ch-marketing)
   ===================================================================== */

:root {
    /* Colors — Emerald + Stone Palette (konsistent mit editor-v2 + Invoice-V3) */
    --accent:      #059669;   /* Emerald 600 — primary accent */
    --accent-600:  #059669;
    --accent-700:  #047857;   /* hover / darker text on light bg */
    --accent-500:  #10B981;   /* status dots */
    --accent-50:   #ECFDF5;   /* icon-box / chip backgrounds */

    --ink:         #1C1917;   /* Stone 900 — primary text */
    --ink-2:       #292524;   /* Stone 800 */
    --ink-3:       #44403C;   /* Stone 700 — nav links */
    --muted:       #57534E;   /* Stone 600 — body */
    --muted-2:     #78716C;   /* Stone 500 — meta */
    --muted-3:     #A8A29E;   /* Stone 400 — dark-bg text */
    --muted-4:     #D6D3D1;   /* Stone 300 — dark-bg labels */
    --line:        #E7E5E4;   /* Stone 200 — dividers, borders */
    --paper:       #FFFFFF;
    --paper-off:   #FAFAF9;   /* off-white top banner */
    --paper-soft:  #F5F5F4;   /* section backgrounds */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

/* --- Container ----------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* --- Top Banner --------------------------------------------------- */
.top-banner {
    background: var(--paper-off);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.top-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.top-banner__status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    transition: color 0.15s;
}
.top-banner__status:hover { color: var(--accent); }
.top-banner__dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--accent-500);
    transition: background 0.2s;
}
/* Status-Widget-Zustände (status-widget.js setzt die Classes bei Störung/Wartung) */
.top-banner__dot--warn { background: #F59E0B; }  /* Amber 500 — Wartung läuft */
.top-banner__dot--down { background: #DC2626; }  /* Red 600 — Störung aktiv */
.top-banner__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-banner__link-cta { color: var(--accent); font-weight: 600; }
@media (max-width: 768px) { .top-banner { display: none; } }

/* --- Main Nav ----------------------------------------------------- */
.nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
}
.nav__logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color 0.15s; }
.nav__link:hover { color: var(--accent); }
.nav__link--active { color: var(--accent); }

/* Hamburger-Toggle (Pure-CSS, no JS) — nur mobile sichtbar via @media unten */
.nav__toggle { display: none; }
.nav__burger { display: none; }

@media (max-width: 900px) {
    .nav__inner { padding: 16px 20px; }

    /* Hamburger-Icon (3 Stäbchen) */
    .nav__burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.15s;
    }
    .nav__burger:hover { background: var(--paper-soft); }
    .nav__burger span {
        display: block;
        height: 2px;
        background: var(--ink-2);
        border-radius: 1px;
        transition: transform 0.2s, opacity 0.2s;
    }

    /* Nav-Links als Dropdown-Panel unter Nav (geschlossen = hidden) */
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    }

    /* Geöffnet: Checkbox checked → Panel sichtbar */
    .nav__toggle:checked ~ .nav__links { display: flex; }

    /* Hamburger → X-Icon Morph wenn offen */
    .nav__toggle:checked ~ .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
    .nav__toggle:checked ~ .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Mobile-Links: Block-Layout, volle Tap-Fläche, getrennt durch Divider */
    .nav__links .nav__link {
        display: block;
        padding: 14px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--line);
    }
    .nav__links .nav__link:last-of-type { border-bottom: none; }

    /* CTA-Button auf Mobile: volle Breite, Abstand nach oben */
    .nav__links .btn {
        margin-top: 12px;
        justify-content: center;
    }
}

/* --- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: all 0.15s;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost { padding: 10px 16px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.btn--ghost:hover { color: var(--accent); }
.btn--large { padding: 18px 36px; font-size: 16px; }

/* --- Badge/Pill --------------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
}
.pill__dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--accent-500);
}
.pill--accent {
    background: var(--accent-50);
    border-color: transparent;
    color: var(--accent-700);
}
/* Coming-Soon-Badge — Amber, signalisiert "kommt, ist aber nicht live" */
.pill--soon {
    background: #FEF3C7;   /* Amber 100 */
    border-color: transparent;
    color: #92400E;        /* Amber 800 */
    font-weight: 600;
}
.pill--inline {
    font-size: 11px;
    padding: 3px 8px;
    vertical-align: middle;
    margin-left: 6px;
}

/* --- Cards -------------------------------------------------------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.card__title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card__body { font-size: 14px; color: var(--muted); line-height: 1.55; }

.card--feature { padding: 28px; }
.card--feature .iconbox {
    width: 48px; height: 48px;
    background: var(--accent-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 24px;
}
.iconbox svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card--feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card--feature p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* --- Hero --------------------------------------------------------- */
.hero {
    padding: 80px 0 64px;
    text-align: center;
}
.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    max-width: 780px;
    margin: 0 auto 20px;
}
.hero .sub {
    font-size: 19px;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.5;
}
.hero .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .pill { margin-bottom: 24px; }
@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 34px; }
    .hero .sub { font-size: 17px; }
}

/* --- Sections ----------------------------------------------------- */
.section { padding: 64px 0; }
.section--soft { background: var(--paper-soft); }
.section--dark { background: var(--ink); color: var(--muted-3); }
.section--dark h2 { color: var(--paper); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-700);
    margin-bottom: 12px;
}
.section__title {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section__sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

/* --- Grid --------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

/* --- Steps (numbered how-it-works) ------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--accent-50);
    color: var(--accent-700);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* --- Pricing Card ------------------------------------------------- */
.pricing-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}
.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 10px 40px -10px rgba(5, 150, 105, 0.15);
}
.pricing-card__name { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-card__price {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 8px;
    margin-bottom: 4px;
}
.pricing-card__price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pricing-card__meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pricing-card__link { font-size: 13px; color: var(--accent-700); font-weight: 600; }

/* --- FAQ ---------------------------------------------------------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 24px;
    color: var(--muted-2);
    transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body {
    margin-top: 12px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* --- CTA-Section -------------------------------------------------- */
.cta-dark {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 72px 32px;
    border-radius: 16px;
    margin: 48px 0;
}
.cta-dark h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.cta-dark p { color: rgba(255,255,255,0.88); font-size: 17px; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-dark .btn--primary { background: #fff; color: var(--accent-700); }
.cta-dark .btn--primary:hover { background: rgba(255,255,255,0.92); color: var(--accent-700); }

/* --- Footer 4-Column --------------------------------------------- */
.footer {
    background: var(--ink);
    color: var(--muted-3);
    padding-top: 56px;
}
.footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.footer h4 {
    color: var(--muted-4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer a { font-size: 13px; color: var(--muted-3); }
.footer a:hover { color: var(--paper); }
.footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    border-top: 1px solid var(--ink-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted-2);
    flex-wrap: wrap;
}
.footer__socials { display: flex; gap: 14px; }
.footer__socials a { font-size: 16px; color: var(--muted-2); }
.footer__socials a:hover { color: var(--paper); }
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Legal / Prose pages (AGB, Datenschutz, Impressum) ----------- */
.prose {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 32px 96px;
}
.prose h1 {
    font-size: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.prose .meta {
    font-size: 13px;
    color: var(--muted-2);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.prose h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.prose h3 {
    font-size: 17px;
    margin-top: 24px;
    margin-bottom: 8px;
}
.prose p { margin-bottom: 14px; color: var(--muted); line-height: 1.7; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul.prose-list { margin-bottom: 14px; padding-left: 22px; list-style: disc; color: var(--muted); line-height: 1.7; }
.prose ul.prose-list li { margin-bottom: 4px; }
.prose .draft-banner {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 32px;
}
.prose .draft-banner strong { color: #78350F; }

/* --- Misc utilities ---------------------------------------------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
