/* Schriften liegen im Projekt (public/fonts), es wird nichts von Google oder anderen Servern geladen. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #10253f;          /* Blaumann-Blau */
  --ink-soft: #46586d;
  --paper: #eef1f4;
  --white: #ffffff;
  --yellow: #f4c20d;       /* Zollstock-Gelb */
  --slip: #fbe27a;         /* Telefonnotiz */
  --red: #c4372c;
  --green: #1c7547;
  --line: #cbd3dc;
  --radius: 6px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--body); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1; }
h1 { font-weight: 800; font-size: clamp(2.9rem, 7vw, 4.8rem); line-height: .95; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3rem); }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band :focus-visible, .app-head :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2rem, 40rem); }
.narrow-head > * { max-width: 46rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 32em; margin-top: 1.5rem; }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin: .5rem 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.25rem;
  border: 2px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--yellow); }
.btn-primary:hover { background: var(--ink); color: var(--yellow); }
.btn-sm { min-height: 2.5rem; padding: 0 .9rem; font-size: .95rem; }

/* Landingpage */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.logo { font: 800 1.9rem/1 var(--display); color: var(--ink); text-decoration: none; }

.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: start; }
.hero-copy h1 { max-width: 13em; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.5rem 0 0; padding: 0; font-size: .95rem; color: var(--ink-soft); }
.ticks li::before { content: "✓"; margin-right: .45rem; font-weight: 700; color: var(--ink); }
.calc { margin: 0 0 1rem; }
.calc > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.calc dt { font-weight: 400; }
.calc dd { margin: 0; font-weight: 700; white-space: nowrap; }
.calc .calc-sum { border-top: 3px solid var(--ink); font-size: 1.15rem; }
.calc .calc-sum dt { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-visual { max-width: 26rem; }
.caption { margin: 1.25rem 0 .35rem; font-size: .95rem; color: var(--ink-soft); }
.caption:first-child { margin-top: 0; }
.bubble {
  background: var(--white); border: 1px solid var(--line); border-radius: 1.1rem 1.1rem 1.1rem .25rem;
  padding: .9rem 1.1rem; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere;
}

/* Die Telefonnotiz: das eine auffällige Element der Seite */
.slip {
  background: var(--slip); padding: 1rem 1.25rem 1.15rem; border-radius: 2px;
  box-shadow: 0 18px 30px -18px rgba(16, 37, 63, .55); transform: rotate(-1.2deg);
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: .3rem; font-size: .95rem; }
.slip-title { font: 800 1.8rem/1 var(--display); }
.slip-rows { margin: 0; }
.slip-rows > div { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid rgba(16, 37, 63, .3); }
.slip-rows dt { color: var(--ink-soft); font-size: .95rem; }
.slip-rows dd { margin: 0; font-weight: 700; }
.slip-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .9rem; font-size: .95rem; }
.chk { display: inline-flex; align-items: center; gap: .5rem; }
.chk::before { content: ""; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); flex: none; }
.chk.on::before {
  background:
    linear-gradient(45deg, transparent 42%, var(--ink) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--ink) 42% 58%, transparent 58%);
}
@media (prefers-reduced-motion: no-preference) {
  .slip { animation: slip-in .6s cubic-bezier(.2, .7, .2, 1) .25s both; }
}
@keyframes slip-in {
  from { opacity: 0; transform: translateY(-14px) rotate(-3.5deg); }
  to { opacity: 1; transform: rotate(-1.2deg); }
}

/* Zollstock als Trennlinie */
.ruler {
  height: 24px; background-color: var(--yellow); background-repeat: no-repeat; background-position: left bottom;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 50px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 14px, 100% 8px;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint { background: var(--white); }
.section h2 { margin-bottom: 1.5rem; }

.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; max-width: 46rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem; padding: 1.4rem 0; border-top: 2px solid var(--ink); }
.steps li:last-child { border-bottom: 2px solid var(--ink); }
.steps li::before { content: counter(step); grid-row: span 2; font: 800 3.4rem/.9 var(--display); }
.steps h3, .steps p { grid-column: 2; }
.steps p { margin: .35rem 0 0; max-width: 36em; }

.rows { margin: 2rem 0 0; }
.rows > div { display: grid; gap: .3rem 2rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; }
.rows dd { margin: 0; max-width: 40em; }
@media (min-width: 48em) { .rows > div { grid-template-columns: 17rem 1fr; } }

.two-col { display: grid; gap: 3rem; align-items: start; }
.two-col p { max-width: 34em; }

.price-tag { border: 3px solid var(--ink); background: var(--white); padding: 1.5rem 1.75rem 1.75rem; border-radius: 2px; }
.price { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 1rem; font-size: 1.2rem; }
.amount { font: 800 4.4rem/.9 var(--display); }
.price-tag ul { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.price-tag li { margin-bottom: .3rem; }

.faq { max-width: 46rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.7rem/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .75rem 0 0; max-width: 38em; }

.band { background: var(--ink); color: var(--white); }
.band h2 { color: var(--white); }
.form-on-dark { background: var(--white); color: var(--ink); padding: 1.75rem; border-radius: 2px; }

.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--ink-soft); font-size: .95rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: inherit; }

@media (min-width: 62em) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* Formulare */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.form-wide { max-width: 44rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 2px solid var(--ink-soft);
  border-radius: var(--radius); background: var(--white); color: inherit; font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0; }
.has-error input:not([type="checkbox"]), .has-error select, .has-error textarea { border-color: var(--red); }
.hint { margin: .35rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.error { margin: .35rem 0 0; font-size: .95rem; font-weight: 700; color: var(--red); }
.field .check, .check { display: flex; align-items: flex-start; gap: .7rem; margin: 0; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 1.4rem; height: 1.4rem; margin: .15rem 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.flash { margin: 1.25rem 0; padding: .8rem 1rem; border-left: 6px solid var(--ink); background: var(--white); font-weight: 700; }
.flash-ok { border-color: var(--green); }
.flash-error { border-color: var(--red); }
.flash-warn { border-color: var(--yellow); }

/* Kundenseiten, Rechtstexte */
body.customer::before { content: ""; display: block; height: 14px; background: var(--yellow); }
body.customer main, body.plain main { padding-block: clamp(2rem, 6vw, 4rem); }
.firm { margin: 0 0 1.5rem; font: 800 1.5rem/1 var(--display); }
.h-page { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.prose h2 { margin: 2rem 0 .5rem; font-size: 1.8rem; }
.prose p { max-width: 38em; }

/* Dashboard und Admin */
.app-head { background: var(--ink); color: var(--white); }
.app-head-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.app-brand { margin: 0; font-size: .9rem; color: #b8c4d2; }
.app-title { font: 800 2rem/1 var(--display); }
.app-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.app-nav a { padding: .5rem .9rem; border-bottom: 3px solid transparent; color: var(--white); font-weight: 700; text-decoration: none; }
.app-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
@media (max-width: 30em) { .app-nav a { padding-inline: .55rem; font-size: .95rem; } }
.app main { padding-bottom: 4rem; }
.h-section { margin: 2.25rem 0 1rem; font-size: 1.9rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats > div { padding: 1rem 1rem 1rem 0; }
.stat-n { margin: 0; font: 800 2.8rem/1 var(--display); }
.stat-l { margin: .2rem 0 0; font-size: .95rem; color: var(--ink-soft); }
@media (min-width: 48em) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .stats > div:first-child { padding-left: 0; border-left: 0; }
}

.leads { display: grid; gap: 1rem; }
.entry { background: var(--white); border: 1px solid var(--line); border-left: 8px solid var(--yellow); border-radius: 2px; padding: 1rem 1.15rem 1.1rem; }
.entry-kontaktiert { border-left-color: var(--ink-soft); }
.entry-auftrag { border-left-color: var(--green); }
.entry-kein_auftrag { border-left-color: var(--line); }
.lead-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .95rem; color: var(--ink-soft); }
.lead-head .pill { margin-left: auto; }
.tag { font-weight: 700; }
.tag-call { color: var(--red); }
.tag-form, .tag-sms { color: var(--green); }
.pill { padding: .15rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .9rem; font-weight: 700; }
.pill-neu { background: var(--yellow); border-color: var(--yellow); }
.pill-auftrag { background: var(--green); border-color: var(--green); color: var(--white); }
.lead-who { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .6rem 0 .3rem; font-size: 1.25rem; }
.call-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--radius); background: var(--ink); color: var(--white); font-size: 1rem; font-weight: 700; text-decoration: none; }
.call-btn:hover { background: var(--yellow); color: var(--ink); }
.lead-msg { margin: .4rem 0 .6rem; max-width: 40em; white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
/* Ausnahmeliste */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: .8rem; }
.skip-note { margin: .8rem 0 0; }
.skip-add { margin-top: 1.25rem; }
.skip-bulk { margin: 1.5rem 0 0; }
.skip-table td:first-child { white-space: nowrap; }
.skip-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.skip-table form { margin: 0; }
.review { margin-top: .8rem; }
.review summary { cursor: pointer; font-weight: 700; }
.review form { display: grid; gap: .75rem; max-width: 30rem; margin-top: .6rem; }
.empty { padding: 2rem 1rem; border: 2px dashed var(--line); background: var(--white); text-align: center; }
.log { margin: 2rem 0; }
.log summary { cursor: pointer; font-weight: 700; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
.table th, .table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--paper); }
.kv { margin: 0; }
.kv > div { padding: .7rem 0; border-top: 1px solid var(--line); }
.kv dt { font-weight: 700; }
.kv dd { margin: .2rem 0 0; }
.inline-form { margin: 1.25rem 0; }

.group { min-width: 0; margin: 0 0 2rem; padding: 1rem 0 0; border: 0; border-top: 3px solid var(--ink); }
.group > legend { float: left; width: 100%; margin: 0 0 .75rem; padding: 0; font: 700 1.5rem/1 var(--display); }
.group > legend + * { clear: both; }
.group > * + * { margin-top: 1rem; }
.days { display: flex; flex-wrap: wrap; gap: .5rem; }
.day { align-items: center; padding: .4rem .8rem; border: 2px solid var(--ink-soft); border-radius: var(--radius); background: var(--white); }
.day input { margin: 0; }
.day:has(input:checked) { border-color: var(--ink); background: var(--yellow); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 24rem; }

.todo { background: var(--yellow); padding: 0 .3em; }

/* ==========================================================================
   Landingpage: weiche Übergänge von Abschnitt zu Abschnitt
   - Jeder Abschnitt schiebt sich mit runden Ecken über den vorigen (Farbwechsel hell, dunkel, hell ...)
   - Inhalte blenden beim Scrollen ein (boot.js und app.js, ohne JavaScript bleibt alles sichtbar)
   - Alles ist bei "Bewegung reduzieren" abgeschaltet
   ========================================================================== */
body.site { --radius: 12px; }
body.site main { overflow-x: clip; }
body.site h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); text-wrap: balance; }

/* Fortschrittsbalken und Kopfleiste */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 30; transition: background-color .3s, box-shadow .3s; }
.site-header .bar { transition: padding .3s; }
.site-header.scrolled {
  background: rgba(238, 241, 244, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(16, 37, 63, .08), 0 14px 28px -22px rgba(16, 37, 63, .5);
}
.site-header.scrolled .bar { padding-block: .6rem; }
.site-nav { display: none; gap: .25rem; margin-left: auto; margin-right: 1rem; }
.site-nav a { padding: .45rem .85rem; border-radius: 999px; color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none; transition: background-color .25s, color .25s; }
.site-nav a:hover { background: rgba(16, 37, 63, .08); }
.site-nav a[aria-current="true"] { background: var(--ink); color: var(--white); }
@media (min-width: 52em) { .site-nav { display: flex; } }

/* Knöpfe */
body.site .btn { border-radius: 999px; padding-inline: 1.5rem; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background-color .25s, color .25s; }
body.site .btn-sm { padding-inline: 1.1rem; }
body.site .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(16, 37, 63, .55); }
body.site .btn:active { transform: translateY(0); box-shadow: none; }

/* Abschnitte als Blätter: runde Oberkante, überlappen den vorigen Abschnitt um 2rem */
body.site .hero { padding-bottom: calc(clamp(3rem, 7vw, 5.5rem) + 2rem); }
body.site .section {
  position: relative; margin-top: -2rem; border-radius: 2rem 2rem 0 0;
  padding-top: calc(clamp(3rem, 7vw, 5.5rem) + 2rem); padding-bottom: calc(clamp(3rem, 7vw, 5.5rem) + 2rem);
}
body.site .section-tint { background: var(--white); box-shadow: 0 -18px 30px -26px rgba(16, 37, 63, .45); }
body.site #leistungen, body.site #fragen { box-shadow: 0 -18px 30px -26px rgba(16, 37, 63, .35); }
body.site .section-dark { background: var(--ink); color: var(--white); }
body.site .section-dark h2 { color: var(--white); }
body.site .section-dark p { color: #d5dde7; }
body.site .section-dark :focus-visible { outline-color: var(--yellow); }
body.site .site-footer { position: relative; margin-top: -2rem; padding-top: 3.5rem; border-top: 0; border-radius: 2rem 2rem 0 0; background: var(--paper); }

/* Karten */
body.site .price-tag { border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 28px 50px -30px rgba(16, 37, 63, .55); }
body.site .calc-card { background: var(--slip); color: var(--ink); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .7); }
body.site .calc-card .caption, body.site .calc-card .fineprint, body.site .calc-card .calc-hint { color: #3a4c63; }
body.site .calc-card .calc > div { border-top-color: rgba(16, 37, 63, .28); }
body.site .calc-card .calc .calc-sum { border-top-color: var(--ink); }
body.site .form-on-dark { border-radius: 18px; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .7); }
body.site .bubble { box-shadow: 0 14px 26px -20px rgba(16, 37, 63, .5); }

/* Ablauf als Zeitleiste: Kreis mit Zahl, dazwischen eine Linie, die sich beim Scrollen zeichnet */
body.site .steps li { position: relative; border-top: 0; padding: 0 0 2.2rem; grid-template-columns: 3.5rem 1fr; }
body.site .steps li:last-child { border-bottom: 0; padding-bottom: 0; }
body.site .steps li::before {
  display: grid; place-items: center; align-self: start; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--yellow); font: 800 2rem/1 var(--display); box-shadow: 0 0 0 6px var(--white);
}
body.site .steps li::after { content: ""; position: absolute; left: calc(1.75rem - 1px); top: 3.5rem; bottom: .4rem; width: 2px; background: var(--ink); transform-origin: top; transition: transform .9s ease .35s; }
body.site .steps li:last-child::after { display: none; }
body.site .steps h3 { padding-top: .55rem; }

/* Leistungen */
body.site .rows dt { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
body.site .rows > div:hover dt { transform: translateX(.4rem); }

/* Fragen als Karten, mit sanft auf- und zuklappender Antwort */
body.site .faq { border-top: 0; }
body.site .faq details { margin-bottom: .6rem; padding: 1rem 1.25rem; border: 0; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 rgba(16, 37, 63, .06); transition: box-shadow .3s; interpolate-size: allow-keywords; }
body.site .faq details:hover { box-shadow: 0 16px 28px -22px rgba(16, 37, 63, .55); }
body.site .faq summary::after { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
body.site .faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
body.site .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
body.site .faq details[open]::details-content { block-size: auto; }

/* Einblenden beim Scrollen */
.rv { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.js:not(.no-reveal) .rv:not(.in) { opacity: 0; transform: translateY(1.75rem); }
html.js:not(.no-reveal) .steps li:not(.in)::after { transform: scaleY(0); }

/* Start: die Elemente oben auf der Seite erscheinen nacheinander, wie ein eingehender Anruf */
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(.75rem) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .hero-copy > :nth-child(4) { animation-delay: .36s; }
  .hero-visual > .caption:first-child { animation: rise .6s ease .45s both; }
  .hero-visual .bubble { animation: pop .7s cubic-bezier(.2, .7, .2, 1) .6s both; }
  .hero-visual > .caption:nth-of-type(2) { animation: rise .6s ease 1.15s both; }
  .hero-visual .slip { animation: slip-in .8s cubic-bezier(.2, .7, .2, 1) 1.3s both; }
  .hero-visual .fineprint { animation: rise .6s ease 1.6s both; }
}

@media print {
  .rv { opacity: 1 !important; transform: none !important; }
  .progress, .site-nav { display: none; }
}

/* Rechenbeispiel zum Selbsteinstellen: Regler */
.calc-hint { margin: -.25rem 0 .75rem; font-size: .95rem; color: #3a4c63; }
.calc-slide { flex-wrap: wrap; align-items: center; row-gap: 0; padding-bottom: .35rem; }
.calc-slide dt { flex: 1 1 auto; min-width: 0; }
.calc-slide dd { display: contents; }
.calc-slide output { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
#c-calls { --fill: 10%; }
#c-rate { --fill: 20%; }
#c-value { --fill: 10%; }
.calc input[type="range"] {
  flex: 1 0 100%; width: 100%; height: 2rem; margin: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--fill), rgba(16, 37, 63, .25) var(--fill));
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.75rem; height: 1.75rem; margin-top: calc((6px - 1.75rem) / 2);
  border: 3px solid var(--ink); border-radius: 50%; background: var(--white); box-shadow: 0 3px 8px rgba(16, 37, 63, .35);
}
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(16, 37, 63, .25); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
.calc input[type="range"]::-moz-range-thumb {
  box-sizing: border-box; width: 1.75rem; height: 1.75rem; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--white); box-shadow: 0 3px 8px rgba(16, 37, 63, .35);
}
.calc input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
