/* certmon.de – Farben wie im HTML-Report des ADCS Health Check. Keine externen Schriften. */
:root {
  --bg: #f6f7f9; --bg-alt: #eef1f5; --card: #fff; --text: #1d2433; --muted: #535c6d; --line: #dde1e8;
  --ok: #1f7a45; --warn: #9a5c00; --crit: #b42323; --info: #3552c8;
  --accent: #0b5cad; --accent-hover: #084a8c; --on-accent: #fff; --focus: #f0a73a;
  --code-bg: #1b2029; --code-text: #e6e9ef;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --bg-alt: #171b22; --card: #1b2029; --text: #e6e9ef; --muted: #a3acba; --line: #2c333f;
    --ok: #4cc38a; --warn: #f0a73a; --crit: #ff7b7b; --info: #8ea6ff;
    --accent: #6aa9ff; --accent-hover: #8fbeff; --on-accent: #0b1220; --focus: #f0a73a;
    --code-bg: #0d1016; --code-text: #e6e9ef;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: .92em; }
:not(pre) > code { background: var(--bg-alt); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--card); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand .tld { color: var(--muted); font-weight: 500; }
.logo-icon { width: 26px; height: 26px; color: var(--accent); }
.logo-check { stroke: var(--on-accent); }
.nav { display: flex; gap: 4px 18px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; padding: 6px 0; display: inline-block; }
.nav a:hover { color: var(--accent); }
.lang-switch { font-weight: 600; font-size: .9rem; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--text); min-width: 44px; text-align: center; }
.lang-switch:hover { border-color: var(--accent); }
@media (max-width: 860px) {
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* Abschnitte */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); margin-top: -.3em; }
.message { min-height: 50vh; }

/* Hero */
.hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-shot { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .6em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--card); }
.btn[disabled] { opacity: .6; cursor: progress; }
.meta-line { font-size: .9rem; margin: 0; }
.meta-line a { color: var(--muted); }

/* Karten und Raster */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards .card p { margin: 0; color: var(--muted); }
.trust { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.trust li { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 44px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 12px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.3L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.trust span { color: var(--muted); }
.impact { padding-left: 1.2em; }
.impact li { margin: .3em 0; }
.impact li::marker { color: var(--crit); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6em; position: relative; margin: .45em 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Schritte und Code */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.step { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 28px; }
.step::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.code { position: relative; }
.code pre { background: var(--code-bg); color: var(--code-text); border-radius: 8px; padding: 14px 16px; padding-right: 92px; margin: 0; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.code pre code { background: none; border: 0; padding: 0; white-space: pre; }
.copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: 6px; border: 1px solid #4a5364; background: #2a313d; color: #e6e9ef; cursor: pointer; min-height: 30px; }
.copy:hover { background: #343c4a; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p { color: var(--muted); }

/* Warteliste und Formular */
.waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .waitlist { grid-template-columns: 1fr; } }
.price { font-size: 1.3rem; font-weight: 700; margin: 1em 0 .2em; }
.form h3 { font-size: 1.25rem; }
.field { margin: 0 0 16px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field input[type="email"], .field input[type="text"], .field select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #8a93a3; border-radius: 8px; padding: 10px 12px; min-height: 46px; }
.field input[aria-invalid="true"] { border-color: var(--crit); }
.radios { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radio { font-weight: 400 !important; display: inline-flex !important; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.radio input, .check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 3px; }
.check label { font-weight: 400; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 0 0 16px; min-height: 0; }
.note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.form-status:empty { display: none; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--bg-alt); border-left: 4px solid var(--info); }
.form-status.is-error, .form-error { border-left-color: var(--crit); color: var(--crit); }
.form-status.is-success { border-left-color: var(--ok); color: var(--text); font-weight: 600; }
.inline-form { margin-top: 1.5em; }

/* Download */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; margin: 24px 0; }
.facts div { min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts .code pre { font-size: .82rem; }
.changelog h3 { margin-top: 1.4em; font-size: 1.05rem; }
.changelog ul { padding-left: 1.2em; }
.changelog li { margin: .25em 0; }
.section h2 { margin-top: 1.4em; }
.section .wrap > h2:first-child { margin-top: 0; }

/* Rechtstexte */
.prose h1 { margin-bottom: .8em; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .9rem; }
.site-footer p { margin: .3em 0; }
.site-footer a { color: var(--text); }

@media print { .site-header, .copy, .site-footer { display: none; } body { background: #fff; } }
