/* =========================================================================
   SB-Stadtrat – Produktsite (Startseite + Rechtstexte)
   SBDruck-Branding · responsiv · ohne externe Abhängigkeiten
   ========================================================================= */

:root {
    --brand:        #1565c0;   /* SBDruck Blau */
    --brand-dark:   #0d47a1;
    --brand-light:  #e8f1fb;
    --accent:       #ff7a18;   /* warmer Akzent (Druck/Werbung) */
    --ink:          #1f2733;
    --muted:        #5b6675;
    --line:         #e3e8ef;
    --bg:           #ffffff;
    --bg-soft:      #f6f8fb;
    --ok:           #1f9d55;
    --warn-bg:      #fff8e6;
    --warn-line:    #f5d98a;
    --warn-ink:     #8a5d00;
    --radius:       12px;
    --shadow:       0 6px 24px rgba(20, 40, 80, .08);
    --maxw:         1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: var(--shadow);
}
.brand-text { font-size: 18px; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.site-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e96a05; color: #fff; }

/* ── Main ───────────────────────────────────────────────────────────── */
.site-main { padding-block: 36px 56px; }
.site-main.landing { padding-block: 0; }

/* ── Rechtstexte ────────────────────────────────────────────────────── */
.legal {
    max-width: 820px;
}
.legal h1 {
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
    margin: 4px 0 18px;
}
.legal h2 {
    font-size: 20px;
    margin: 30px 0 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal ul, .legal ol { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 600; }

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 14.5px;
    display: block;
    overflow-x: auto;
}
.legal th, .legal td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.legal th { background: var(--bg-soft); font-weight: 700; }

.lead { color: var(--muted); font-size: 15px; }

.hint {
    border: 1px solid var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14.5px;
    margin: 0 0 20px;
}
.box {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 0 0 16px;
}
.box-form {
    border: 1px dashed var(--muted);
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 14.5px;
}
.muted-xs { color: var(--muted); font-size: 12.5px; }

/* Rechts-Navigation (Sidebar als Chips oben) */
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
}
.legal-nav a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 13px;
}
.legal-nav a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.legal-nav a.active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 40px;
    background: #0f1b2d;
    color: #c6d2e2;
}
.site-footer a { color: #c6d2e2; }
.site-footer a:hover { color: #fff; }
.site-footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-block: 40px 24px;
}
.footer-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-head { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #8ba0bd; margin-bottom: 6px; }
.footer-muted { color: #97a8c2; font-size: 14px; margin: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-block: 16px;
    font-size: 13px;
    color: #8ba0bd;
}

/* =========================================================================
   STARTSEITE (Landing)
   ========================================================================= */

/* Volle Breite für die Startseite (Container der Rechtstexte bleibt schmal) */
.site-main > .container:not(.legal) { max-width: var(--maxw); }

.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.18;
    margin: 0 0 12px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(21,101,192,.14), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(255,122,24,.10), transparent 55%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding-block: 64px 60px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.08;
    letter-spacing: -.5px;
    margin: 0 0 18px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead { font-size: 18.5px; color: var(--muted); margin: 0 0 26px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
}
.hero-points li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}
.hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0; top: -1px;
    width: 18px; height: 18px;
    display: grid; place-items: center;
    font-size: 12px;
    color: #fff;
    background: var(--ok);
    border-radius: 50%;
}

/* ── Geräte-Rahmen für Screenshots ──────────────────────────────────── */
.device {
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    background: #0f1b2d;
    border-radius: 30px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(15,27,45,.30);
}
.device-screen {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}
.device-screen img { width: 100%; display: block; }
.device-notch {
    width: 110px; height: 6px;
    background: #2a3a52;
    border-radius: 99px;
    margin: 2px auto 10px;
}
.hero-visual { display: grid; place-items: center; }

/* Browser-Frame (für breitere Screens auf der Seite) */
.browser {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
}
.browser-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.browser-bar .b-dot { width: 11px; height: 11px; border-radius: 50%; background: #d3dae4; }
.browser-bar .b-dot:nth-child(1){ background:#ff5f57; }
.browser-bar .b-dot:nth-child(2){ background:#febc2e; }
.browser-bar .b-dot:nth-child(3){ background:#28c840; }
.browser-bar .b-url {
    margin-left: 8px; flex: 1;
    font-size: 12.5px; color: var(--muted);
    background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 4px 12px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; display: block; }

/* ── Trust-/Logo-Leiste ─────────────────────────────────────────────── */
.trustbar {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 14px 30px;
    padding: 18px 0 4px;
}
.trustbar span {
    font-size: 14px; font-weight: 600; color: var(--muted);
    display: inline-flex; align-items: center; gap: 8px;
}
.trustbar span::before { content: "●"; color: var(--brand); font-size: 9px; }

/* ── Feature-Grid ───────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.feature-ico {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
    margin-bottom: 14px;
}
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Abwechselnde Detail-Reihen (Screenshot + Text) ─────────────────── */
.showcase { display: flex; flex-direction: column; gap: 56px; }
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}
.row.reverse .row-media { order: 2; }
.row-media { display: grid; place-items: center; }
.row-body h3 { font-size: 23px; margin: 0 0 6px; }
.row-body .kicker {
    font-size: 13px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.row-body p { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 28px; font-size: 15.5px; }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; display: grid; place-items: center;
    font-size: 12px; color: var(--brand-dark); background: var(--brand-light);
    border-radius: 50%; font-weight: 800;
}

/* ── Sicherheit-Streifen ────────────────────────────────────────────── */
.secure { background: var(--bg-soft); }
.secure-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.secure-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px 18px;
}
.secure-card .s-ico {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: #e9f6ee; color: var(--ok); margin-bottom: 12px;
}
.secure-card h4 { margin: 0 0 6px; font-size: 16px; }
.secure-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Preise ─────────────────────────────────────────────────────────── */
.price-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    align-items: stretch;
}
.price-card {
    position: relative;
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 30px 26px;
    display: flex; flex-direction: column;
}
.price-card.featured {
    border-color: var(--brand);
    box-shadow: 0 12px 40px rgba(21,101,192,.16);
    transform: translateY(-6px);
}
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
    padding: 5px 14px; border-radius: 999px;
}
.price-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.price-amount { font-size: 40px; font-weight: 800; margin: 10px 0 2px; color: var(--ink); }
.price-amount small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-note { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.price-card li { position: relative; padding-left: 26px; font-size: 15px; }
.price-card li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--ok); font-weight: 800;
}
.price-card li.off { color: var(--muted); }
.price-card li.off::before { content: "–"; color: var(--muted); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0 18px;
}
.faq details[open] { border-color: #cfe0f5; box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 30px 16px 0;
    font-weight: 700;
    font-size: 16px;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    font-size: 22px; font-weight: 400; color: var(--brand);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; }

/* ── CTA-Band ───────────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    color: #fff;
    border-radius: 20px;
    padding: 46px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 10px; color: #fff; }
.cta-band p { margin: 0 0 24px; color: rgba(255,255,255,.88); font-size: 17px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { order: -1; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .secure-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .price-card.featured { transform: none; }
    .row { grid-template-columns: 1fr; gap: 24px; }
    .row.reverse .row-media { order: 0; }
}

@media (max-width: 720px) {
    body { font-size: 15.5px; }
    .site-header-inner { min-height: 56px; }
    .brand-text { font-size: 16px; }
    .site-nav { gap: 12px; }
    .site-nav a:not(.btn) { display: none; }   /* nur CTA sichtbar lassen */
    .site-footer-inner { grid-template-columns: 1fr; gap: 22px; }
    .legal h1 { font-size: 25px; }
    .section { padding-block: 44px; }
    .feature-grid { grid-template-columns: 1fr; }
    .secure-grid { grid-template-columns: 1fr; }
    .hero-points { grid-template-columns: 1fr; }
    .cta-band { padding: 36px 22px; }
}
