/* Varnsoft — Richtung "Kommandozentrale" (Papier und Tinte, live gelesen).
   Kennzahlenreihe, ein stilles Dashboard-Panel, alternierende Funktionszeilen,
   ein nüchterner Vorteilsvergleich. Keine Tab-Karte, keine schwarze Vollbreite-Spur. */

@font-face { font-family: "Inter"; src: url("fonts/inter-variable.woff2") format("woff2-variations"), url("fonts/inter-variable.woff2") format("woff2"); font-weight: 380 560; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #faf9f5;
  --surface: #f0efe7;
  --surface-2: #e2e0d3;
  --ink: #17160f;
  --muted: #6e6a5a;
  --accent: #0d6b4f;
  --accent-ink: #ffffff;
  --field-dark: #17160f;
  --field-dark-ink: #ffffff;
  --ui-ok: #1d7a4b;
  --ui-warn: #a8690a;
  --ui-bad: #b23a2a;
  --ui-line: #ddd9c9;

  --font-head: "Poppins", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Fünf Größen, der Rest ist Gewicht und Abstand */
  --size-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --size-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --size-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --size-h2: clamp(1.875rem, 1.3rem + 2.6vw, 3.125rem);
  --size-display: clamp(2.5rem, 1.3rem + 5.6vw, 5.25rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gutter: clamp(12px, 1.7vw, 24px);
  --section: clamp(96px, 11vw, 160px);
  --radius: 7px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 150ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap {
  padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Schaltflächen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0 1.2em; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: #0a5540; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--lg { min-height: 52px; padding: 0 1.6em; font-size: 16px; }
.btn--ghost { background: none; color: var(--ink); border: 1px solid var(--ui-line); }
.btn--ghost:hover { background: var(--surface); }
.btn--on-dark { background: var(--bg); color: var(--ink); }
.btn--on-dark:hover { background: var(--surface); }

/* Kopfleiste */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; }
.bar__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.wordmark { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.bar__links { display: flex; gap: 24px; margin-left: auto; }
.bar__links a, .lang {
  font-size: 15px; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer;
  transition: color var(--t-hover) ease;
}
.bar__links a:hover, .lang:hover { color: var(--accent); }
.lang { color: var(--muted); }
.bar .btn { min-height: 38px; }
@media (max-width: 860px) {
  .bar__links { display: none; }
  .lang { margin-left: auto; }
}

/* Abschnitte */
section[id] { scroll-margin-top: 80px; }
.sec { padding-block: var(--section) 0; }
.sec__kicker { font-size: var(--size-small); color: var(--muted); margin: 0 0 10px; }
.sec__lead { font-size: var(--size-body); color: var(--muted); max-width: 56ch; margin-top: 14px; }
.reveal > * { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal:not(.is-in) > * { transform: translateY(22px); }
.reveal.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal.is-in > *:nth-child(4) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.is-in) > * { opacity: 1; transform: none; } .reveal > * { transition: none; } }

/* ---------- Mockup-Fragmente (klein, statisch, innerhalb der Funktionszeilen und des Dashboards) ---------- */
.mock {
  background: var(--bg); border: 1px solid var(--ui-line); border-radius: var(--radius);
  font-size: 14px; line-height: 1.35; overflow: hidden; width: 100%;
}
.mock__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); }
.mock__head b { font-weight: 600; font-family: var(--font-head); font-size: 14.5px; }
.mock__head span { color: var(--muted); font-size: 12.5px; }
.mock__body { padding: 12px 14px; }
.mock__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--surface-2); }
.mock__row:last-child { border-bottom: 0; }
.mock__row span:last-child { text-align: right; font-weight: 500; }
.mock__row.is-sum { font-weight: 600; border-bottom: 0; padding-top: 8px; }
.mock__row.is-sum .is-bad { color: var(--ui-bad); }
.mock__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); }
.mock__pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--surface-2); }
.mock__pill.ok { background: #dcefe2; color: var(--ui-ok); }
.mock__pill.warn { background: #f6e8d2; color: var(--ui-warn); }
.mock__pill.bad { background: #f7ddd6; color: var(--ui-bad); }
.mock__check { list-style: none; margin: 2px 0 0; padding: 12px 14px; display: grid; gap: 7px; }
.mock__check li { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; }
.mock__check li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--ui-ok); transform: translateY(1px); }
.mock__files { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 2px; }
.mock__files li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--surface-2); font-size: 13.5px; }
.mock__files li:last-child { border-bottom: 0; }
.mock__files .is-muted { color: var(--muted); font-size: 12.5px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 112px) 0; }
.hero__in { max-width: 920px; margin-inline: auto; text-align: center; display: grid; gap: 22px; justify-items: center; }
.hero h1 { font-size: var(--size-display); }
.hero h1 span { display: block; }
.hero__sub { font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem); color: var(--muted); max-width: 46ch; letter-spacing: -0.01em; }

.kpi-row {
  margin: clamp(28px, 5vw, 52px) 0 0; padding: 0; width: 100%;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.kpi { padding: 0 clamp(16px, 2.6vw, 34px); border-left: 1px solid var(--ui-line); display: grid; gap: 4px; text-align: center; }
.kpi:first-child { border-left: 0; }
.kpi__num { font-family: var(--font-head); font-size: var(--size-h2); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.kpi__label { font-size: var(--size-small); color: var(--muted); }
@media (max-width: 760px) {
  .kpi-row { justify-content: flex-start; overflow-x: auto; gap: 0; padding-bottom: 4px; }
  .kpi { flex: none; }
}

/* ---------- Netzwerkübersicht (statisches Dashboard-Panel) ---------- */
.dash-head { max-width: 62ch; }
.dash-head h2 { font-size: var(--size-h2); }
.dash {
  margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--ui-line); border-radius: calc(var(--radius) + 3px);
  background: var(--surface); overflow: hidden;
}
.dash__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--ui-line); }
.dash__top b { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.dash__top span { font-size: var(--size-small); color: var(--muted); }
.dash__body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 0; }
.dash__table-wrap { overflow-x: auto; background: var(--bg); }
.dash table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.dash th { text-align: left; font-weight: 500; color: var(--muted); font-size: var(--size-small); padding: 12px 16px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.dash td { padding: 13px 16px; border-bottom: 1px solid var(--surface-2); white-space: nowrap; }
.dash tbody tr.is-focus td { background: var(--surface); }
.dash tfoot td { border-bottom: 0; border-top: 1px solid var(--ui-line); font-weight: 600; }
.dash td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.dash td:last-child { text-align: left; }
.dash .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.dash .dot.ok { background: var(--ui-ok); }
.dash .dot.warn { background: var(--ui-warn); }
.dash__chart { padding: 20px 20px 16px; display: flex; align-items: flex-end; justify-content: space-evenly; gap: 10px; height: 100%; border-left: 1px solid var(--ui-line); background: var(--bg); }
.dash__bar { display: grid; justify-items: center; gap: 8px; align-content: end; height: 100%; }
.dash__bar b { order: 1; width: 30px; border-radius: 4px 4px 0 0; background: var(--accent); height: calc(var(--v, 50) * 1.4px); display: block; }
.dash__bar span { order: 2; font-size: 11.5px; color: var(--muted); }
@media (max-width: 820px) {
  .dash__body { grid-template-columns: minmax(0, 1fr); }
  .dash__chart { border-left: 0; border-top: 1px solid var(--ui-line); height: 140px; }
}

/* ---------- Funktionen: alternierende Zeilen ---------- */
.feat-head { max-width: 62ch; margin-bottom: clamp(8px, 2vw, 16px); }
.feat-head h2 { font-size: var(--size-h2); }
.feat-rows { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: clamp(56px, 8vw, 104px); }
.feat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feat-row--rev .feat-row__media { order: -1; }
.feat-row__text { max-width: 46ch; }
.feat-row__text h3 { font-size: var(--size-h3); margin-bottom: 14px; }
.feat-row__text p { color: var(--muted); font-size: var(--size-body); }
.feat-row__media { display: flex; justify-content: center; }
.feat-row__media .mock { max-width: 360px; }
@media (max-width: 860px) {
  .feat-row, .feat-row--rev { grid-template-columns: minmax(0, 1fr); }
  .feat-row--rev .feat-row__media { order: 0; }
  .feat-row__text { max-width: none; }
}

/* ---------- Ohne / Mit Varnsoft ---------- */
.comp-head { max-width: 62ch; }
.comp-head h2 { font-size: var(--size-h2); }
.comp { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; }
.comp__col { padding: clamp(20px, 3vw, 36px) clamp(0px, 3vw, 40px); }
.comp__col--without { border-right: 1px solid var(--ui-line); }
.comp__col h3 { font-family: var(--font-head); font-size: var(--size-h3); font-weight: 600; margin-bottom: 20px; }
.comp__col--without h3 { color: var(--muted); }
.comp__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.comp__col li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--size-body); line-height: 1.5; }
.comp__col--without li { color: var(--muted); }
.comp__mark { flex: none; width: 1.3em; text-align: center; font-weight: 600; line-height: 1.5; }
.comp__col--without .comp__mark { color: var(--ui-bad); }
.comp__col--with .comp__mark { color: var(--ui-ok); }
@media (max-width: 760px) {
  .comp { grid-template-columns: 1fr; }
  .comp__col--without { border-right: 0; border-bottom: 1px solid var(--ui-line); padding-bottom: 28px; }
  .comp__col--with { padding-top: 28px; }
}

/* ---------- Häufige Fragen ---------- */
.faq { max-width: 860px; }
.faq h2 { font-size: var(--size-h2); margin-bottom: 36px; max-width: 16ch; }
.faq__list { list-style: none; margin: 0; padding: 0; display: grid; }
.faq__list li { border-top: 1px solid var(--ui-line); }
.faq__list li:last-child { border-bottom: 1px solid var(--ui-line); }
.faq__q {
  display: flex; gap: 16px; align-items: baseline; justify-content: space-between; width: 100%; text-align: left;
  border: 0; background: none; padding: 20px 0; font-size: var(--size-h3); font-family: var(--font-head); color: var(--ink); cursor: pointer; font-weight: 600;
}
.faq__q::after { content: "+"; flex: none; font-family: var(--font-body); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform var(--t-hover) ease; }
.faq__q[aria-expanded="true"]::after { content: "–"; color: var(--accent); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease-out); }
.faq__a p { padding: 0 0 22px; max-width: 64ch; font-size: var(--size-body); color: var(--muted); line-height: 1.55; }

/* ---------- Kontakt ---------- */
.contact { padding-block: 140px 120px; display: grid; justify-content: start; }
.contact__col { width: min(100%, 560px); }
.contact h2 { font-size: var(--size-h2); line-height: 1.1; }
.contact h2 span { display: block; }
.contact h2 span:first-child { color: var(--muted); }
.contact form { margin-top: 32px; display: grid; gap: 12px; }
.contact__field, .contact__select, .contact__area {
  width: 100%; border: 1px solid var(--ui-line); border-radius: var(--radius); background: var(--surface);
  padding: 0 18px; font-size: 16px; height: 56px;
}
.contact__area { height: auto; padding: 14px 18px; resize: vertical; min-height: 92px; }
.contact__field:focus, .contact__select:focus, .contact__area:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--bg); }
.contact__send { margin-top: 4px; justify-self: start; }
.contact__note { font-size: var(--size-small); color: var(--muted); min-height: 1.4em; }
.contact__note.is-err { color: var(--ui-bad); }
.contact__note.is-ok { color: var(--ui-ok); }
.contact__rows { margin-top: 48px; display: grid; gap: 10px; font-size: 15px; }
.contact__rows div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 12px; }
.contact__rows dt { color: var(--muted); }
.contact__rows dd { margin: 0; }
@media (max-width: 700px) {
  .contact { padding-block: 100px 88px; }
  .contact__rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 10px; }
}

/* ---------- Fußzeile ---------- */
.foot { margin-top: var(--section); border-top: 1px solid var(--ui-line); }
.foot__top { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.foot__brand .wordmark { font-size: 19px; }
.foot__brand p { margin-top: 12px; color: var(--muted); font-size: var(--size-small); max-width: 32ch; }
.foot__col h4 { font-family: var(--font-head); font-size: 14px; font-weight: 600; margin: 0 0 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__col a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot__col a:hover { color: var(--accent); }
.foot__contact p { margin: 0 0 9px; font-size: 15px; }
.foot__contact a { color: var(--ink); text-decoration: none; }
.foot__contact a:hover { color: var(--accent); }
.foot__cta { background: var(--field-dark); color: var(--field-dark-ink); }
.foot__cta-in { padding-block: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot__cta-in p { font-family: var(--font-head); font-size: var(--size-h3); font-weight: 600; letter-spacing: -0.015em; max-width: 24ch; }
.foot__legal { padding-block: 18px; font-size: var(--size-small); color: var(--muted); }
@media (max-width: 860px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__cta-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cookie-Hinweis ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--field-dark); color: var(--field-dark-ink);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.consent__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.consent__txt { flex: 1 1 420px; font-size: var(--size-small); color: #cbc8bb; max-width: 60ch; }
.consent__txt a { color: var(--field-dark-ink); }
.consent__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__essential {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.1em; border: 1px solid #4a4a42; border-radius: var(--radius);
  background: transparent; color: var(--field-dark-ink); font-size: 15px; cursor: pointer;
  transition: border-color var(--t-hover) ease;
}
.consent__essential:hover { border-color: #7a7a6c; }
@media (max-width: 640px) {
  .consent__in { flex-direction: column; align-items: stretch; }
  .consent__btns { justify-content: stretch; }
  .consent__btns > * { flex: 1; }
}

/* ---------- Werbeblocker-Sperre ---------- */
html.is-adblock * { pointer-events: none !important; }
