/* Kreuzer Dienstleistungen – Gestaltung der Website (Fassung 2).
   Farben, Schrift und Abstände stehen als Variablen ganz oben. */

@font-face { font-family: Barlow; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url("fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue: #205ddf;
  --blue-deep: #16409b;
  --navy: #0b1f66;
  --ink: #0b1020;
  --text: #2b3345;
  --muted: #4a5568;
  --surface: #f0f5fb;
  --paper: #ffffff;
  --line: #d5dff0;
  --line-strong: #b9c8e6;
  --on-navy: #ffffff;
  --on-navy-soft: #c9d6f7;
  --green: #0e5c2e;
  --green-line: #12733a;
  --star: #b87900;
  --error: #b3261e;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 22px 44px -22px rgba(11, 31, 102, 0.38), 0 2px 6px rgba(11, 31, 102, 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1230px;
  --gutter: clamp(20px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--surface); }
body {
  margin: 0;
  font-family: Barlow, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  accent-color: var(--blue);
  caret-color: var(--blue);
}
::selection { background: var(--blue); color: #fff; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.375rem); line-height: 1.1; }
h1.kd-h1--long { font-size: clamp(1.875rem, 1.3rem + 2.3vw, 2.875rem); line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem); line-height: 1.14; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--blue-deep); }
strong, b { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.kd-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kd-skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 600; }
.kd-skip:focus { top: 12px; color: #fff; }
.kd-lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); line-height: 1.5; max-width: 34em; }
.kd-icon { flex: none; width: 1.25em; height: 1.25em; }

/* ---------- Schaltflächen ---------- */
.kd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 2px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: #fff; font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.kd-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.kd-btn:active { transform: translateY(1px); }
.kd-btn[disabled] { opacity: 0.6; cursor: progress; }
.kd-btn .kd-icon { transition: transform 0.25s var(--ease); }
.kd-btn:hover .kd-icon { transform: translateX(3px); }
.kd-btn--wide { width: 100%; }
.kd-btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.kd-btn--light:hover { background: var(--surface); border-color: var(--surface); color: var(--navy); }
.kd-btn--quiet { min-height: 48px; padding: 0 18px; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font-size: 1rem; font-weight: 600; }
.kd-btn--quiet:hover { background: var(--surface); border-color: var(--navy); color: var(--navy); }
.kd-btn--wa { border-color: var(--green-line); color: var(--green); }
.kd-btn--wa:hover { background: #eef8f1; border-color: var(--green-line); color: var(--green); }
.kd-textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }

/* ---------- Kopfzeile ---------- */
.kd-nav { position: relative; z-index: 20; background: var(--paper); }
.kd-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 88px; }
.kd-nav__logo { display: flex; align-items: center; min-height: 48px; }
.kd-nav__logo img { height: 48px; width: auto; }
.kd-nav__links { display: flex; align-items: center; gap: 4px 30px; }
.kd-nav__links a { display: flex; align-items: center; min-height: 44px; color: var(--navy); font-size: 1.0625rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 2px no-repeat; transition: background-size 0.3s var(--ease); }
.kd-nav__links a:hover, .kd-nav__links a[aria-current="page"] { background-size: 100% 2px; color: var(--navy); }
.kd-nav__links a[aria-current="page"] { font-weight: 600; }
.kd-nav__side { display: flex; align-items: center; gap: 8px 20px; }
.kd-nav__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.kd-nav__tel:hover { color: var(--blue); }
.kd-nav__toggle { display: none; }
.kd-nav--bare .kd-nav__links, .kd-nav--bare .kd-nav__toggle { display: none !important; }

@media (max-width: 1040px) {
  .kd-nav__in { min-height: 68px; gap: 8px; }
  .kd-nav__logo img { height: 40px; }
  .kd-nav__side { gap: 2px; margin-left: auto; }
  .kd-nav__tel { width: 48px; height: 48px; justify-content: center; border-radius: 8px; }
  .kd-nav__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .kd-nav__tel .kd-icon { width: 24px; height: 24px; }
  .kd-nav__side .kd-btn--wa { display: none; }
  .kd-nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--navy); cursor: pointer; }
  .kd-nav__toggle svg { width: 26px; height: 26px; }
  .kd-nav__toggle .kd-x { display: none; }
  .kd-nav__toggle[aria-expanded="true"] .kd-x { display: block; }
  .kd-nav__toggle[aria-expanded="true"] .kd-bars { display: none; }
  .kd-nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 24px 32px -24px rgba(11, 31, 102, 0.35); }
  .kd-nav__links.is-open { display: flex; }
  .kd-nav__links a { min-height: 56px; font-size: 1.1875rem; border-bottom: 1px solid var(--line); background: none; }
  .kd-nav__links .kd-nav__wa { display: inline-flex; margin-top: 16px; border-bottom: 1.5px solid var(--green-line); justify-content: center; }
  .kd-nav--bare .kd-nav__side .kd-btn--wa { display: inline-flex; }
  .kd-nav--bare .kd-nav__tel { display: none; }
}
@media (min-width: 1041px) { .kd-nav__links .kd-nav__wa { display: none; } }

/* ---------- Einstieg ---------- */
.kd-hero { position: relative; overflow: hidden; background: var(--surface) url("img/hero-linien.webp") center / cover no-repeat; }
.kd-hero__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background: var(--blue); clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); }
.kd-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); align-items: stretch; }
.kd-hero__copy { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(40px, 6vw, 76px) clamp(40px, 5vw, 64px); max-width: 660px; }
.kd-jump { display: none; }
.kd-hero__copy > .kd-hero__head { display: flex; flex-direction: column; gap: 20px; }
.kd-hero__aside { position: relative; display: flex; align-items: center; justify-content: flex-end; padding-block: clamp(32px, 5vw, 64px); }
.kd-hero__aside--portrait { align-items: flex-end; justify-content: center; padding-block: 24px 0; min-height: 440px; }
.kd-hero__aside--portrait img { width: 100%; max-width: 500px; }
.kd-person { position: absolute; left: 0; bottom: 40px; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); font-size: 0.9375rem; line-height: 1.45; }
.kd-person strong { font-size: 1.125rem; }
.kd-person a { color: var(--navy); font-weight: 600; text-decoration: none; }
.kd-byline { display: flex; align-items: center; gap: 12px; }
.kd-byline__img { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--blue); }
.kd-byline__img img { width: 78px; max-width: none; margin: 2px 0 0 -11px; }
.kd-byline strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.kd-byline span { display: block; font-size: 0.9375rem; line-height: 1.35; }

.kd-points { display: flex; flex-direction: column; gap: 16px; }
.kd-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; line-height: 1.5; }
.kd-points svg { width: 26px; height: 26px; margin-top: 1px; color: var(--blue); }

.kd-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 1rem; line-height: 1.5; }
.kd-stars { flex: none; width: 108px; height: 20px; color: var(--star); }

/* Auswahl auf der Startseite */
.kd-doors { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.kd-doors__q { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.kd-doors__grid { display: flex; flex-direction: column; }
.kd-door { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 24px; padding-block: 16px; border-top: 1px solid var(--line); }
.kd-door:last-child { padding-bottom: 4px; }
.kd-door h2 { grid-column: 1; display: flex; align-items: center; gap: 10px; font-size: 1.25rem; letter-spacing: -0.01em; }
.kd-door h2 svg { color: var(--blue); width: 22px; height: 22px; }
.kd-door p { grid-column: 1; font-size: 1rem; line-height: 1.45; }
.kd-door .kd-btn { grid-column: 2; grid-row: 1 / span 2; min-height: 52px; padding-inline: 18px; font-size: 1.0625rem; white-space: nowrap; }
.kd-fee { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

/* Karte im Einstieg der Leistungsseiten */
.kd-card { position: relative; width: 100%; max-width: 470px; display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 30px); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.kd-card h2 { font-size: 1.5rem; letter-spacing: -0.015em; }
.kd-card__who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.kd-card__who .kd-byline__img { width: 52px; height: 52px; }
.kd-card__who .kd-byline__img img { width: 72px; margin-left: -10px; }
.kd-card__who strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.kd-card__who span { display: block; font-size: 0.9375rem; line-height: 1.35; }
.kd-card__note { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.kd-card__alt { padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }

/* ---------- Formulare ---------- */
.kd-form { display: flex; flex-direction: column; gap: 14px; }
.kd-field { display: flex; flex-direction: column; gap: 6px; }
.kd-field label, .kd-legend { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.kd-field .kd-opt { font-weight: 400; color: var(--muted); }
.kd-input, .kd-select, .kd-textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1.0625rem; line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.kd-textarea { min-height: 120px; resize: vertical; }
.kd-select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230b1f66' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.kd-input::placeholder, .kd-textarea::placeholder { color: #5b6880; opacity: 1; }
.kd-input:hover, .kd-select:hover, .kd-textarea:hover { border-color: var(--blue); }
.kd-input:focus, .kd-select:focus, .kd-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 93, 223, 0.25); }
.kd-form.is-checked :invalid { border-color: var(--error); }
.kd-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kd-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kd-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kd-choice { position: relative; }
.kd-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kd-choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--text); font-size: 1.0625rem; font-weight: 600; line-height: 1.25; text-align: center; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.kd-choice input:hover + span { border-color: var(--blue); }
.kd-choice input:checked + span { border-color: var(--blue); background: var(--surface); color: var(--blue-deep); box-shadow: inset 0 0 0 1px var(--blue); }
.kd-choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 3px; }
.kd-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.kd-check input { width: 22px; height: 22px; margin: 1px 0 0; }
.kd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kd-form__msg { padding: 14px 16px; border-radius: 8px; font-size: 1rem; line-height: 1.45; }
.kd-form__msg--fail { background: #fdecea; color: #7a1a14; border: 1px solid #f1b9b4; }
.kd-form__msg--done { background: #e9f6ee; color: #0e4a26; border: 1px solid #a9d9bb; }
.kd-stepbar { display: flex; gap: 6px; }
.kd-stepbar span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background-color 0.3s var(--ease); }
.kd-stepbar span.is-on { background: var(--blue); }
.kd-stepnav { display: flex; gap: 10px; }
.kd-stepnav .kd-btn--quiet { min-height: 56px; }
.kd-stepnav .kd-btn:last-child { flex: 1; }

/* ---------- Abschnitte ---------- */
.kd-section { padding-block: clamp(56px, 8vw, 112px); }
.kd-section--surface { background: var(--surface); }
.kd-section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 44rem; }

/* Ablauf */
.kd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); counter-reset: kd-step; }
.kd-steps li { position: relative; counter-increment: kd-step; padding-top: 86px; }
.kd-steps__ic { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 14px 26px -16px rgba(11, 31, 102, 0.7); }
.kd-steps__ic svg { width: 30px; height: 30px; }
.kd-steps li::before { content: counter(kd-step); position: absolute; top: -4px; left: 46px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 3px var(--paper); }
.kd-steps li::after { content: ""; position: absolute; top: 31px; left: 64px; right: calc(-1 * clamp(20px, 3vw, 40px)); height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.kd-steps li:last-child::after { display: none; }
.kd-steps h3 { margin-bottom: 6px; }
.kd-steps p { font-size: 1.0625rem; line-height: 1.5; }
.kd-steps__note { margin-top: 28px; font-size: 1rem; color: var(--muted); }

/* Ergebnis-Grafiken im Einstieg */
.kd-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.kd-btn--big { min-height: 56px; padding: 0 24px; font-size: 1.125rem; }
.kd-hero--viz .kd-hero__panel { width: 50%; }
.kd-hero__aside--viz { padding: 0; align-items: stretch; justify-content: stretch; }
.kd-viz { position: relative; width: 100%; min-height: 580px; }
.kd-viz__a, .kd-viz__b { position: absolute; width: min(360px, 82%); }
.kd-viz__a { top: 60px; left: clamp(24px, 5.5vw, 76px); }
.kd-viz__b { top: 318px; left: clamp(96px, 11vw, 156px); }
.kd-vcard { padding: 20px 22px 18px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -28px rgba(5, 20, 70, 0.55), 0 2px 8px rgba(5, 20, 70, 0.08); color: var(--text); }
.kd-vtag { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.kd-vtag svg { flex: none; width: 22px; height: 22px; }
.kd-vcard h3 { margin: 8px 0 12px; font-size: 1.1875rem; }
.kd-vbar { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 10px; font-size: 0.9375rem; line-height: 1.3; }
.kd-vbar__b { display: block; width: var(--w); height: 14px; border-radius: 7px; background: var(--blue); transform-origin: left center; }
.kd-vbar--now .kd-vbar__b { background: #c3cfe6; }
.kd-vbig { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
.kd-vrange { position: relative; height: 12px; margin: 18px 0 8px; border-radius: 6px; background: linear-gradient(90deg, #cfe0ff, var(--blue)); }
.kd-vrange i { position: absolute; left: 68%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); }
.kd-vscale { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--muted); }
.kd-vtext { font-size: 1rem; line-height: 1.45; }
.kd-vlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 600; color: var(--ink); }
.kd-vlist svg { flex: none; width: 20px; height: 20px; color: var(--blue); }
.kd-vnote { margin-top: 12px; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }

/* Für Betriebe */
/* Startseite: drei Wege (Haushalt, Betrieb, Finanzierung) */
.kd-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.kd-path { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.kd-path__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 14px; background: var(--surface); color: var(--blue); }
.kd-path__ic svg { width: 30px; height: 30px; }
.kd-path h3 { margin-bottom: 10px; }
.kd-path p { flex: 1; font-size: 1.0625rem; line-height: 1.5; }
.kd-path .kd-textlink { margin-top: 14px; align-self: flex-start; }
@media (max-width: 900px) { .kd-paths { grid-template-columns: minmax(0, 1fr); } }
/* Kundenfälle aus Bewertungen */
.kd-cases { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.kd-cases--4 { --n: 4; }
.kd-cases--3 { --n: 3; }
.kd-case { display: flex; flex-direction: column; padding: clamp(22px, 2vw, 28px); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.kd-case__who { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--blue-deep); }
.kd-case__who svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.kd-case__big { margin-top: 18px; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; hyphens: auto; }
.kd-case__text { flex: 1; margin-top: 8px; font-size: 1.0625rem; line-height: 1.5; }
.kd-case__src { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.kd-case__src a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--muted); }
.kd-case__src a:hover { color: var(--blue); }
.kd-cases__note { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.kd-voices__side .kd-case { margin-bottom: 8px; }
@media (max-width: 1100px) { .kd-cases--4 { --n: 2; } }
@media (max-width: 900px) { .kd-cases--3 { --n: 1; } }
@media (max-width: 600px) { .kd-cases--4 { --n: 1; } }
/* Referenzen: Gewerbekunden (einheitlich als Text, Logos optional später) */
.kd-refs { margin-top: clamp(48px, 5vw, 72px); }
.kd-refs h3 { margin-bottom: 20px; }
.kd-refs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
.kd-refs__list li { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.kd-refs__list strong { font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.kd-refs__list span { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 1040px) { .kd-refs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kd-refs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* WhatsApp als zweiter, leiser Weg unter dem Haupt-Button */
.kd-alt { margin-top: -6px; }
.kd-walink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--blue-deep); }
.kd-walink svg { flex: none; width: 20px; height: 20px; color: var(--green-line); }
.kd-card > .kd-alt { margin-top: 0; text-align: center; }
.kd-choices.kd-choices--short { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kd-savings { font-size: 1rem; line-height: 1.45; color: var(--text); }
.kd-savings strong { color: var(--ink); }
.kd-source { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.kd-source a { color: var(--muted); }
.kd-hint { font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }

/* Schnellkontakt-Leiste am Handy (wird von WordPress angehängt) */
.kd-mbar { display: none; }
@media (max-width: 760px) {
  .kd-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: 0 -14px 30px -22px rgba(11, 31, 102, 0.45); transition: transform 0.25s var(--ease); }
  .kd-mbar.is-hidden { transform: translateY(110%); }
  .kd-mbar__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 8px; border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--navy); font-size: 1rem; font-weight: 600; text-decoration: none; }
  .kd-mbar__btn svg { width: 20px; height: 20px; flex: none; }
  .kd-mbar__main { border-color: var(--blue); background: var(--blue); color: #fff; }
  body:has(.kd-mbar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media print { .kd-mbar { display: none !important; } }

/* Gewerbe: Stufen, ab wann sich Bündelung lohnt */
.kd-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.kd-tier { padding: clamp(22px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.kd-tier--on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.kd-tier__k { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: -0.015em; }
.kd-tier__v { margin: 4px 0 12px; font-weight: 600; color: var(--blue-deep); }
.kd-tier p:last-child { font-size: 1.0625rem; line-height: 1.5; }
.kd-vlist--no svg { color: var(--muted); }
@media (max-width: 900px) { .kd-tiers { grid-template-columns: minmax(0, 1fr); } }

/* Bewertungen nach Zielgruppe */
.kd-subhead { margin: clamp(40px, 4vw, 56px) 0 20px; }
.kd-tgquotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.kd-tgquotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kd-tgquotes--1 { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.kd-tgquotes .kd-voice { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.kd-tgquotes blockquote { font-size: 1.125rem; }
.kd-voice figcaption a { color: var(--muted); }
.kd-voice figcaption a:hover { color: var(--blue); }
.kd-tgquotes + .kd-cases__note + .kd-textlink { margin-top: 12px; }
@media (max-width: 900px) { .kd-tgquotes, .kd-tgquotes--2 { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.kd-band__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.kd-band__ic svg { width: 30px; height: 30px; }
.kd-band { background: var(--navy); color: var(--on-navy-soft); }
.kd-band h2, .kd-band h3, .kd-band strong { color: var(--on-navy); }
.kd-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); }
.kd-band__item { padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, 0.28); }
.kd-band__item h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.16; letter-spacing: -0.02em; margin-bottom: 10px; }
.kd-band__item p { font-size: 1.1875rem; line-height: 1.5; max-width: 26em; }
.kd-band__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: clamp(32px, 4vw, 48px); font-size: 1.0625rem; }
.kd-band a { color: #fff; }
.kd-band a:hover { color: var(--on-navy-soft); }
.kd-band :focus-visible { outline-color: #fff; }

/* Fragen */
.kd-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.kd-faq__list { border-top: 1px solid var(--line-strong); }
.kd-faq details { border-bottom: 1px solid var(--line-strong); }
.kd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.kd-faq summary::-webkit-details-marker { display: none; }
.kd-faq summary svg { flex: none; width: 24px; height: 24px; color: var(--blue); transition: transform 0.35s var(--ease); }
.kd-faq details[open] summary svg { transform: rotate(45deg); }
.kd-faq summary:hover { color: var(--blue-deep); }
.kd-faq__a { padding: 0 44px 22px 0; max-width: 40em; }

/* Kundenstimmen */
.kd-voices { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.kd-voice blockquote { color: var(--ink); line-height: 1.4; }
.kd-voice figcaption { margin-top: 14px; font-size: 1rem; color: var(--muted); }
.kd-voice figcaption strong { color: var(--ink); }
.kd-voice--big blockquote { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 500; line-height: 1.24; letter-spacing: -0.02em; text-wrap: balance; }
.kd-voices__side { display: flex; flex-direction: column; gap: 28px; }
.kd-voices__side .kd-voice { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.kd-voices__side blockquote { font-size: 1.1875rem; }
.kd-quotes { columns: 3 320px; column-gap: clamp(24px, 4vw, 56px); }
.kd-quotes .kd-voice { break-inside: avoid; padding: 24px 0; border-top: 1px solid var(--line-strong); }
.kd-quotes blockquote { font-size: 1.125rem; line-height: 1.5; }

/* Standort */
.kd-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kd-place__img { border-radius: var(--radius-lg); overflow: hidden; }
.kd-place__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.kd-contact { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.kd-contact li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.kd-contact dt, .kd-contact .kd-k { font-weight: 600; color: var(--ink); }
.kd-contact a { font-weight: 600; }

/* Abschluss */
.kd-close { position: relative; overflow: hidden; background: var(--blue); color: #e3ebff; border-radius: var(--radius-lg); }
.kd-close__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.kd-close__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 5vw, 64px); }
.kd-close h2 { color: #fff; }
.kd-close p { font-size: 1.1875rem; line-height: 1.5; max-width: 30em; }
.kd-close__img { align-self: end; justify-self: center; padding-right: clamp(16px, 4vw, 48px); }
.kd-close__img img { width: 100%; max-width: 340px; }
.kd-close :focus-visible { outline-color: #fff; }

/* Seitenkopf der einfachen Seiten */
.kd-pagehead { background: var(--surface) url("img/hero-linien.webp") center / cover no-repeat; padding-block: clamp(40px, 6vw, 80px); }
.kd-pagehead__in { display: flex; flex-direction: column; gap: 18px; max-width: 48rem; }
.kd-narrow { max-width: 46rem; }
.kd-embed { padding: clamp(12px, 2vw, 24px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 320px; }
.kd-formpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.kd-formpage .kd-card { max-width: none; box-shadow: none; border: 1px solid var(--line-strong); }
.kd-aside-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

/* Rechtstexte und normale WordPress-Inhalte */
.kd-prose { max-width: 46rem; overflow-wrap: break-word; }
.kd-prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.kd-prose h2:first-child { margin-top: 0; }
.kd-prose h3 { margin: 1.8em 0 0.4em; }
.kd-prose p, .kd-prose ul, .kd-prose ol { margin-bottom: 1em; }
.kd-prose ul { list-style: disc; padding-left: 1.3em; }
.kd-prose ol { list-style: decimal; padding-left: 1.3em; }
.kd-prose li { margin-bottom: 0.35em; }
.kd-prose img { border-radius: var(--radius); }

/* ---------- Fußzeile ---------- */
.kd-foot { background: var(--navy); color: var(--on-navy-soft); font-size: 1.0625rem; }
.kd-foot a { color: #fff; text-decoration: none; }
.kd-foot a:hover { text-decoration: underline; color: #fff; }
.kd-foot :focus-visible { outline-color: #fff; }
.kd-foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.kd-foot__brand img { height: 48px; width: auto; margin-bottom: 20px; }
.kd-foot__brand p { max-width: 22em; line-height: 1.5; }
.kd-foot h2 { margin-bottom: 12px; color: #fff; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.kd-foot li { display: flex; align-items: center; min-height: 44px; line-height: 1.35; }
.kd-foot li a, .kd-foot li button { display: inline-flex; align-items: center; min-height: 44px; }
.kd-foot button { padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.kd-foot button:hover { text-decoration: underline; }
.kd-foot__social { display: flex; gap: 10px; margin-top: 20px; }
.kd-foot__social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; transition: background-color 0.2s var(--ease); }
.kd-foot__social a:hover { background: rgba(255, 255, 255, 0.12); }
.kd-foot__social svg { width: 22px; height: 22px; }
.kd-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.9375rem; }
.pe-richsnippets, .pe-richsnippets * { color: var(--on-navy-soft) !important; font-size: 0.9375rem !important; }

/* ---------- Cookie-Hinweis ---------- */
.kd-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: 0 -18px 36px -24px rgba(11, 31, 102, 0.4); }
.kd-cookie__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.kd-cookie__text { flex: 1 1 420px; font-size: 0.9375rem; line-height: 1.45; }
.kd-cookie__btns { display: grid; grid-template-columns: repeat(2, minmax(132px, 1fr)); gap: 10px; }
.kd-cookie .kd-btn--quiet { min-height: 44px; }

/* ---------- Bewegung: ein Moment, die blaue Fläche öffnet sich ---------- */
@media (prefers-reduced-motion: no-preference) {
  .kd-hero__panel { animation: kd-panel 1.1s var(--ease) both; }
  .kd-vbar__b { animation: kd-grow 1s var(--ease) 0.5s both; }
  @keyframes kd-grow { from { transform: scaleX(0.08); } to { transform: scaleX(1); } }
  @keyframes kd-panel { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 74% 100%); } to { clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1040px) {
  .kd-hero__panel { display: none; }
  .kd-hero__in { grid-template-columns: minmax(0, 1fr); }
  .kd-hero__copy { max-width: none; padding-bottom: 28px; }
  .kd-hero__aside { justify-content: stretch; padding-block: 0 40px; }
  .kd-hero__aside--portrait { display: none; }
  .kd-viz { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 40px; }
  .kd-viz__a, .kd-viz__b { position: static; width: auto; }
  .kd-hero--viz { background-image: none; }
  .kd-hero--card { background-image: none; }
  .kd-card { max-width: none; }
  .kd-byline { display: flex; }
  .kd-jump { display: inline-flex; align-self: stretch; }
  .kd-hero__copy { gap: 22px; }
  .kd-faq { grid-template-columns: minmax(0, 1fr); }
  .kd-voices, .kd-place, .kd-formpage { grid-template-columns: minmax(0, 1fr); }
  .kd-foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-foot__brand { grid-column: 1 / -1; }
  .kd-close__in { grid-template-columns: minmax(0, 1fr); }
  .kd-close__img { display: none; }
}
@media (max-width: 820px) {
  .kd-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kd-steps li { padding: 4px 0 0 84px; min-height: 64px; }
  .kd-steps li::after { top: 64px; bottom: -28px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
  .kd-band__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .kd-doors { padding: 18px; }
  .kd-door { grid-template-columns: minmax(0, 1fr); }
  .kd-door .kd-btn { grid-column: 1; grid-row: auto; margin-top: 10px; white-space: normal; }
  .kd-row { grid-template-columns: minmax(0, 1fr); }
  .kd-viz { grid-template-columns: minmax(0, 1fr); }
  .kd-ctas .kd-btn { width: 100%; }
  .kd-choices--3 { grid-template-columns: minmax(0, 1fr); }
  .kd-contact li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kd-foot__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kd-faq summary { font-size: 1.125rem; }
  .kd-faq__a { padding-right: 0; }
  .kd-cookie__btns { width: 100%; }
  .kd-cookie__in { padding-block: 12px; }
}

/* ---------- Bearbeiten-Modus in WordPress: Verstecktes sichtbar machen, damit es änderbar ist ---------- */
html.kd-editing .kd-cookie { position: static; }
html.kd-editing .kd-cookie[hidden], html.kd-editing [data-kd-step][hidden], html.kd-editing .kd-form__msg[hidden] { display: block !important; }
html.kd-editing .kd-form__msg { margin-top: 12px; }

/* Gewerbe: vier Stufen, vier Auswahlfelder */
.kd-tiers--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kd-tiers--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kd-tiers--4 { grid-template-columns: minmax(0, 1fr); } }
.kd-choices.kd-choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) { .kd-choices.kd-choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Abrechnung anhängen */
.kd-upload { position: relative; }
.kd-upload .kd-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.kd-file-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 2px; padding: 10px 14px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--blue-deep); font-weight: 600; cursor: pointer; text-align: center; }
.kd-file-btn svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.kd-file-btn:hover, .kd-file:focus-visible + .kd-file-btn { border-color: var(--blue); background: #f0f5fb; box-shadow: 0 0 0 3px rgba(32, 93, 223, 0.2); }
.kd-upload__list:empty { display: none; }
.kd-upload__list { font-size: 0.9375rem; font-weight: 600; color: var(--blue-deep); }
.kd-upload__err { font-size: 0.9375rem; font-weight: 600; color: #b32d2e; }
.kd-upload .kd-hint, .kd-upload__list, .kd-upload__err { margin-top: 6px; }
.kd-more { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.kd-more summary { display: flex; align-items: center; min-height: 48px; padding: 0 14px; cursor: pointer; font-weight: 600; color: var(--blue-deep); }
.kd-more summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; line-height: 1; }
.kd-more[open] summary::after { content: "–"; }
.kd-more__in { display: grid; gap: 14px; padding: 0 14px 16px; }
.kd-field[data-kd-plz][hidden] { display: none; }
.kd-input.kd-input--plz { max-width: 180px; }

/* Kundenstimmen direkt unter dem ersten Bildschirm */
.kd-section--tight { padding-block: clamp(32px, 4vw, 48px); }
.kd-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.kd-strip .kd-voice { padding-top: 20px; border-top: 2px solid var(--blue); }
.kd-strip blockquote { font-size: 1.125rem; }
.kd-strip + .kd-cases__note a { color: var(--muted); }
@media (max-width: 900px) {
  .kd-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .kd-strip .kd-voice { scroll-snap-align: start; }
}

/* Kundenstimmen neben dem Formular */
.kd-formpage--proof { grid-template-areas: "intro form" "proof form"; grid-template-rows: auto 1fr; }
.kd-formpage--proof > div:first-child { grid-area: intro; }
.kd-formpage--proof > .kd-card { grid-area: form; }
.kd-formpage__proof { grid-area: proof; display: grid; gap: 24px; align-content: start; }
.kd-formpage__proof .kd-voice { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.kd-formpage__proof blockquote { font-size: 1.0625rem; }
@media (max-width: 1040px) { .kd-formpage--proof { grid-template-areas: "intro" "form" "proof"; grid-template-rows: none; } }

/* Dankeseite */
.kd-thanks__steps { display: grid; gap: 14px; margin: 18px 0 0; padding-left: 1.4em; font-size: 1.125rem; line-height: 1.5; }
.kd-thanks__steps strong { color: var(--ink); }
.kd-thanks__box { margin-top: 32px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #f0f5fb; }
.kd-thanks__box h3 { margin-bottom: 8px; }
.kd-choices.kd-choices--1 { grid-template-columns: minmax(0, 1fr); }
.kd-thanks:has(> [data-kd-callback-box][hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.kd-thanks__steps { list-style: decimal; }
.kd-thanks__steps li { padding-left: 4px; }
.kd-thanks__steps li::marker { color: var(--blue); font-weight: 700; }

/* Über mich */
.kd-about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kd-about__img img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }
.kd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.kd-facts li { padding-top: 14px; border-top: 2px solid var(--blue); }
.kd-facts strong { display: block; font-size: 1.375rem; line-height: 1.2; color: var(--ink); }
.kd-facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
@media (max-width: 900px) {
  .kd-about { grid-template-columns: minmax(0, 1fr); }
  .kd-about__img { max-width: 190px; }
}
.kd-kicker { margin-bottom: 8px; font-weight: 600; color: var(--blue); letter-spacing: 0.01em; }

/* Ablauf neben Bild */
.kd-howto { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kd-howto__img { margin: 0; }
.kd-howto__img img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.kd-howto__img figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--muted); }
.kd-steps.kd-steps--col { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.kd-steps--col li { padding: 4px 0 0 88px; min-height: 64px; }
.kd-steps--col li::after { top: 64px; bottom: -28px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
@media (max-width: 900px) {
  .kd-howto { grid-template-columns: minmax(0, 1fr); }
  .kd-howto__img { max-width: 360px; }
}

/* Finanzierung: Unterlagen-Liste */
.kd-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.kd-docs > div { padding: clamp(22px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.kd-docs h3 { margin-bottom: 12px; }
@media (max-width: 900px) { .kd-docs { grid-template-columns: minmax(0, 1fr); } }

/* Weitere passende Seiten in einer Karte */
.kd-path:has(.kd-path__more) p { flex: none; }
.kd-path:has(.kd-path__more) > .kd-textlink { margin-top: auto; }
.kd-path__more { margin: 16px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.kd-path__more a { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--blue-deep); text-underline-offset: 3px; }
.kd-path__more a::before { content: "→ "; color: var(--blue); }
.kd-path p a, .kd-points a { color: var(--blue-deep); font-weight: 600; }

/* ---------- Hauptbutton in Akzentfarbe (Bernstein), nur der eine pro Abschnitt ---------- */
:root { --accent: #ffb020; --accent-hover: #f09a00; --on-accent: #0b1f66; }
.kd-btn:not(.kd-btn--quiet):not(.kd-btn--wa) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -14px rgba(176, 105, 0, 0.9); }
.kd-btn:not(.kd-btn--quiet):not(.kd-btn--wa):hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.kd-btn:not(.kd-btn--quiet):not(.kd-btn--wa):focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 760px) { .kd-mbar__main { border-color: var(--accent); background: var(--accent); color: var(--on-accent); } }
.kd-flip { transform: scaleX(-1); }

/* ---------- Referenzkunden als Laufband ---------- */
.kd-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.kd-marquee__track { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 4px 0; list-style: none; }
.kd-ref { display: flex; flex-direction: column; justify-content: center; min-width: 210px; min-height: 76px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 8px 20px -18px rgba(11, 31, 102, 0.5); }
.kd-ref strong { font-size: 1.0625rem; line-height: 1.25; color: var(--ink); white-space: nowrap; }
.kd-ref span { font-size: 0.875rem; color: var(--muted); }
.kd-marquee--on .kd-marquee__track { flex-wrap: nowrap; width: max-content; animation: kd-marquee var(--kd-marquee-s, 60s) linear infinite; }
.kd-marquee--on:hover .kd-marquee__track, .kd-marquee--on:focus-within .kd-marquee__track { animation-play-state: paused; }
@keyframes kd-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Kundenstimmen als Karussell ---------- */
.kd-carousel .kd-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * clamp(24px, 3vw, 40px)) / 3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.kd-carousel .kd-strip::-webkit-scrollbar { display: none; }
.kd-carousel .kd-voice { scroll-snap-align: start; }
.kd-carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.kd-carousel__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--navy); cursor: pointer; }
.kd-carousel__btn:hover { border-color: var(--blue); color: var(--blue); }
.kd-carousel__btn svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .kd-carousel .kd-strip { grid-auto-columns: 84%; gap: 16px; } }

/* ---------- Einblenden beim Scrollen (nur mit Skript, nie im Bearbeiten-Modus) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.kd-reveal-on [data-kd-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  html.kd-reveal-on [data-kd-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Aufwandsrechner ---------- */
.kd-choices.kd-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kd-effort { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.kd-effort__label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.kd-effort__label output { display: inline-block; min-width: 2ch; font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.kd-range { width: 100%; accent-color: var(--blue); height: 32px; }
.kd-effort__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.kd-effort__col { padding: 18px 20px; border-radius: var(--radius); }
.kd-effort__col--without { background: #f6f7fa; }
.kd-effort__col--with { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--blue); }
.kd-effort__col h3 { margin-bottom: 10px; font-size: 1.125rem; }
.kd-effort__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kd-effort__col li { display: flex; align-items: baseline; gap: 10px; }
.kd-effort__col li b { min-width: 3ch; font-size: 1.375rem; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.kd-effort__col--with li b { color: var(--blue); }
.kd-effort__bar { height: 10px; margin-top: 16px; border-radius: 6px; background: rgba(11, 31, 102, 0.08); overflow: hidden; }
.kd-effort__bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--muted); transform-origin: left; transition: transform 0.6s var(--ease); }
.kd-effort__col--with .kd-effort__bar i { background: var(--blue); }
.kd-effort__hours { margin-top: 8px; font-weight: 600; color: var(--ink); }
.kd-effort__hours b { font-variant-numeric: tabular-nums; }
.kd-effort__save { grid-column: 1 / -1; padding: 16px 20px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 1.1875rem; font-weight: 600; text-align: center; }
.kd-effort__save b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .kd-effort { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .kd-effort__cols { grid-template-columns: minmax(0, 1fr); } }
.kd-ref--logo { align-items: center; gap: 6px; }
.kd-ref--logo img { display: block; width: auto; height: 44px; max-width: 180px; object-fit: contain; }
.kd-ref--logo span { text-align: center; }

/* Erklärvideo (Allgemeinstrom) */
.kd-howto--video { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.kd-video { margin: 0; display: grid; gap: 10px; }
.kd-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #f0f5fb; box-shadow: 0 24px 48px -28px rgba(11, 31, 102, .45); }
.kd-video figcaption { font-size: .875rem; color: var(--muted, #5b6b8c); }
@media (max-width: 900px) { .kd-howto--video { grid-template-columns: minmax(0, 1fr); } }
.kd-howto--video .kd-lead + * { margin-top: 22px; }
.kd-ref--link { padding: 0; }
.kd-ref--link a { display: flex; flex-direction: column; justify-content: center; align-items: inherit; gap: inherit; min-height: 76px; padding: 12px 20px; color: inherit; text-decoration: none; border-radius: inherit; }
.kd-ref--link:hover { border-color: var(--blue); }

/* Auszeichnungen und Bewertungsbox */
.kd-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(20px, 4vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.kd-section--tight .kd-trust { margin-top: 0; }
.kd-trust__awards { display: flex; gap: 14px; flex: none; }
.kd-award { display: block; border-radius: 8px; transition: transform .2s ease; }
.kd-award:hover { transform: translateY(-2px); }
.kd-award img { display: block; width: 120px; height: 120px; border-radius: 8px; box-shadow: 0 10px 24px -18px rgba(11, 31, 102, .6); }
.kd-trust__live { flex: 1 1 320px; min-width: 0; padding: 18px 22px; border: 1px dashed var(--line-strong, #c9d6ec); border-radius: var(--radius-lg); background: var(--paper, #fff); }
.kd-trust__live p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.kd-trust__live strong { color: var(--ink); }
.kd-trust__live--on { padding: 0; border: 0; background: none; }
.kd-textbtn { margin-top: 10px; padding: 0; min-height: 44px; border: 0; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .kd-award { transition: none; } }

/* Startseite: echte Bewertungskarte unter den Beispielkarten */
.kd-viz__ex { display: contents; }
.kd-viz--3 { min-height: 780px; }
.kd-viz__c { position: absolute; bottom: 24px; left: clamp(24px, 5.5vw, 76px); width: min(360px, 82%); }
.kd-vcard--rating { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; transition: transform .2s ease; }
.kd-vcard--rating:hover { transform: translateY(-2px); }
.kd-vcard--rating img { flex: none; width: 96px; height: 96px; }
.kd-vcard--rating .kd-stars { color: var(--star); width: 96px; height: auto; margin-top: 6px; }
.kd-vrating { margin: 2px 0 0; font-size: 1.25rem; color: var(--ink); }
.kd-vcard--rating .kd-vnote { margin-top: 2px; }
@media (max-width: 1040px) { .kd-viz--3 { min-height: 0; } .kd-viz__c { position: static; width: auto; grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .kd-vcard--rating { transition: none; } }
.kd-foot__awards { display: flex; gap: 12px; margin-top: 24px; }
.kd-foot__awards a { display: block; border-radius: 4px; }
.kd-foot__awards img { display: block; width: 104px; height: 104px; }
.kd-foot__awards a:hover { text-decoration: none; opacity: .9; }

/* Schnellanfrage im Seitenkopf (Strom & Gas) */
.kd-hero__aside--form { justify-content: flex-end; padding-block: clamp(28px, 4vw, 48px); }
.kd-qcard { gap: 16px; max-width: 460px; }
.kd-qcard .kd-form { gap: 14px; }
.kd-qcard__who { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kd-qcard__who img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #e6eefc; }
.kd-qcard__who strong { display: block; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
.kd-qcard__who span { display: block; font-size: .9375rem; color: var(--muted); }
.kd-qcard .kd-file-btn { min-height: 96px; flex-direction: column; gap: 6px; font-size: 1.0625rem; }
.kd-qcard .kd-file-btn svg { width: 28px; height: 28px; }
.kd-qcard .kd-file-btn.is-drag { border-color: var(--blue); background: #e6eefc; }
.kd-qcard__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kd-qcard__foot { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .875rem; color: var(--muted); }
.kd-qcard__foot .kd-stars { width: 80px; height: auto; }
.kd-ctas--mobile { display: none; }
@media (max-width: 1040px) {
  .kd-ctas--mobile { display: flex; }
  .kd-hero__aside--form { padding-block: 0 40px; }
  .kd-qcard { max-width: none; }
}
@media (max-width: 480px) { .kd-qcard__row { grid-template-columns: minmax(0, 1fr); } }
.kd-qcard .kd-upload .kd-hint, .kd-qcard [data-kd-plz] .kd-hint, .kd-qcard .kd-more { display: none; }
.kd-qcard .kd-file-btn { min-height: 84px; }
.kd-qcard .kd-input--plz { max-width: 160px; }
.kd-qcard__foot { justify-content: center; text-align: center; }
@media (max-width: 1040px) { .kd-qcard__who img { display: none; } }

/* Strom & Gas: persönlicher Kontakt statt zweitem Formular */
.kd-direct { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.kd-direct .kd-tgquotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .kd-direct, .kd-direct .kd-tgquotes--2 { grid-template-columns: minmax(0, 1fr); } }

/* Finanzierungscheck */
.kd-bcalc { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.kd-bcalc__in { display: flex; flex-direction: column; gap: 14px; }
.kd-bcalc h2 { margin-bottom: 4px; }
.kd-bcalc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kd-unit { position: relative; }
.kd-unit .kd-input { padding-right: 44px; }
.kd-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.kd-bcalc__out { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.kd-bcalc__k { font-weight: 600; color: var(--blue); margin: 0; }
.kd-bcalc__v { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; margin: 0; }
.kd-bcalc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kd-bcalc__list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kd-bcalc__note { font-size: .875rem; margin: 0; }
@media (max-width: 860px) { .kd-bcalc { grid-template-columns: 1fr; gap: 24px; } .kd-bcalc__out { padding: 22px; } }

/* Zinstabelle des Finanzierungspartners (lädt erst nach Klick) */
.kd-zins { display: flex; flex-direction: column; gap: 20px; }
.kd-zins__gate { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 30px); background: var(--surface); border-radius: var(--radius-lg); }
.kd-zins__gate .kd-hint { max-width: 720px; font-size: .875rem; }
.kd-zins__frame { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
