/* email-archivierung.it – Stylesheet (ohne externe Schriften/Tracker, DSGVO-freundlich) */
:root {
  --ink: #0f1d2b;
  --ink-soft: #44546a;
  --muted: #6b7a8f;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --line: #dde4ec;
  --brand: #0b5cad;
  --brand-dark: #08447f;
  --accent: #0f8f86;
  --accent-soft: #e3f4f2;
  --warn: #c2410c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 29, 43, .08);
  --gutter: clamp(16px, 2.5vw, 40px);
  --w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.logo span b { color: var(--brand); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.nav .btn { padding: 9px 16px; color: #fff; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { background: linear-gradient(160deg, #eef5fc 0%, #ffffff 55%, var(--accent-soft) 100%); padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: .95rem; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.hero-card .search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.mail-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mail-row:last-child { border-bottom: 0; }
.mail-row .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.mail-row small { display: block; color: var(--muted); }
.tag { font-size: .75rem; padding: 3px 8px; border-radius: 6px; background: #eef5fc; color: var(--brand); white-space: nowrap; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Sections */
section { scroll-margin-top: 68px; padding: clamp(56px, 8vw, 96px) 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .g2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); }

/* Kurzantwort-Box (für Leser und KI-Suchsysteme) */
.tldr { border-left: 4px solid var(--accent); background: #fff; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.tldr strong { color: var(--accent); }
.tldr ul { margin: .4em 0 0; padding-left: 1.2em; }

/* Tabelle Fristen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* Ablauf */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* Preise */
.prices { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.price.featured::before { content: "Grundpreis"; position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.price .amount { font-size: 2.3rem; font-weight: 800; line-height: 1.1; margin: 8px 0 2px; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price .per { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); border-bottom: 1px dashed var(--line); font-size: .96rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 18px; color: var(--ink-soft); }

/* Kontakt */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c4cfdb; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(11, 92, 173, .15); }
textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: var(--accent-soft); color: #0b6b64; }
.form-msg.err { display: block; background: #fdecea; color: #9e2424; }
.contact-box { background: var(--ink); color: #dfe7f0; border-radius: var(--radius); padding: 30px; }
.contact-box h3 { color: #fff; }
.contact-box a { color: #fff; }
.contact-box ul { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-box li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }

/* Footer */
.site-footer { background: #0b1622; color: #9fb0c3; padding: 44px 0 30px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer a { color: #dfe7f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: .82rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Unterseiten */
.page { padding: clamp(40px, 6vw, 72px) 0; }
.page .wrap { max-width: 860px; }
.todo { background: #fff4e5; border: 1px dashed var(--warn); color: #7a2e07; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 520px) {
  .logo { font-size: .95rem; white-space: nowrap; }
  .logo svg, .logo img { width: 28px; height: 28px; }
  .nav .btn { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
  .hide-sm { display: none; }
}

/* Rechenzentrum */
.dc { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .dc { grid-template-columns: 1fr; } }
.certs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .certs { grid-template-columns: 1fr; } }
.certs li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; }
.certs b { display: block; font-size: 1.02rem; }
.certs span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: 4px; }

/* Hinweis gewerbliche Kunden */
.b2b { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 16px; font-size: .97rem; color: var(--ink-soft); }
.b2b b { color: var(--ink); }

/* Preise: Einrichtung, Rechenbeispiel, Staffel */
.price-head { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 14px; }
.price-extra { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 22px; }
table.mini { font-size: .95rem; margin-bottom: 10px; }
table.mini td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
table.mini td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
table.mini small { display: block; color: var(--muted); font-size: .8rem; }
table.staffel th { background: none; padding: 6px 0; font-size: .78rem; color: var(--muted); font-weight: 600; text-align: right; border-bottom: 1px solid var(--line); }
table.staffel td { text-align: right; }
table.staffel td:first-child { text-align: left; white-space: nowrap; }

/* Preisrechner */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 22px; overflow: hidden; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: 28px; background: linear-gradient(160deg, #eef5fc, #fff); }
.calc-out, .calc-big { padding: 28px; }
.calc-big { display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: flex-start; }
.calc-big[hidden], .calc-out[hidden] { display: none; }
.calc-sub { color: var(--ink-soft); margin-bottom: 8px; }
.calc-n { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 10px; }
.calc-n output { font-size: 2.6rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; margin-right: 4px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; padding: 0; border: 0; border-radius: 999px; outline-offset: 6px;
  background: linear-gradient(to right, var(--brand) 0 var(--fill, 18%), #d5e2ef var(--fill, 18%) 100%); cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 8px rgba(11,92,173,.35); transition: transform .15s; }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 8px rgba(11,92,173,.35); }
.calc-scale { position: relative; height: 1.3em; font-size: .8rem; color: var(--muted); margin: 8px 14px 0; }
.calc-scale span { position: absolute; transform: translateX(-50%); }
.calc-tier { min-height: 30px; margin: 14px 0 18px; }
.calc-tier .tag { font-size: .85rem; padding: 5px 10px; background: var(--accent-soft); color: #0b6b64; font-weight: 600; animation: pop .35s ease-out; display: inline-block; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.calc-extra { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--line); padding-top: 16px; font-size: .95rem; }
.calc-extra small { display: block; color: var(--muted); font-size: .8rem; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.3rem; color: var(--brand); cursor: pointer; border-radius: 10px; }
.stepper button:disabled { color: #c4cfdb; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-table td:last-child { font-variant-numeric: tabular-nums; }
.calc-table tr.sep td { border-top: 2px solid var(--line); }
.calc-table tr[hidden] { display: none; }
.bump { animation: bump .35s ease-out; }
@keyframes bump { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .bump, .calc-tier .tag { animation: none; } }

/* Preisrechner: Ergebnis im Rechnungsstil */
.bill { font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.bill-group + .bill-group { margin-top: 22px; }
.bill-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.bill-row, .bill-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bill-row { padding: 7px 0; color: var(--ink-soft); font-size: .95rem; border-bottom: 1px solid var(--line); }
.bill-row[hidden] { display: none; }
.bill-row span:last-child { color: var(--ink); white-space: nowrap; }
.bill-free span:last-child { color: var(--accent); font-weight: 600; }
.bill-sum { padding: 10px 0 0; border-top: 2px solid var(--ink); margin-top: -1px; font-weight: 600; }
.bill-sum b { display: inline-block; font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.bill-main b { font-size: 1.9rem; color: var(--brand); }
.calc-tier .hint { font-size: .85rem; color: var(--muted); border: 1px dashed #c4cfdb; border-radius: 6px; padding: 4px 10px; display: inline-block; }

/* Logo Rechenzentrumspartner */
.partner { display: block; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.partner:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.partner span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.partner img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
