/* Risiko-Karussell (#kostenlose-angebote) + Qualitäts-Siegel (#qualitaet) + Abschluss-Kontakt (#kontakt-abschluss) */

/* ---------- Karussell ---------- */
.rk { position: relative; margin-top: 40px; }
.rk__viewport { overflow: hidden; border-radius: 20px; outline: none; touch-action: pan-y; padding: 14px 0 22px; margin: -14px 0 -22px; }
.rk__viewport:focus-visible { box-shadow: 0 0 0 3px var(--tm-anthrazit); }
.rk__track { display: flex; gap: 24px; will-change: transform; transition: transform .55s cubic-bezier(.22,.7,.2,1); }
.rk__track.is-still { transition: none; }
.rk__card {
  flex: 0 0 calc((100% - 48px) / 3); min-width: 0;
  background: #fff; border: 1.5px solid var(--tm-linie-hell); border-radius: 20px;
  padding: 34px 30px 30px; box-shadow: 0 10px 28px -8px rgba(31,35,38,.10);
  display: flex; flex-direction: column; gap: 16px; min-height: 360px;
}
.rk__ico {
  width: 64px; height: 64px; border-radius: 16px; background: var(--tm-hell); color: var(--tm-anthrazit);
  display: grid; place-items: center; border: 1px solid var(--tm-linie-hell);
}
.rk__ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rk__card h3 { font-size: 1.3rem; line-height: 1.25; color: var(--tm-text); margin: 0; }
.rk__card p { font-size: 1rem; line-height: 1.6; color: var(--tm-text-2); margin: 0; }
.rk__tag {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--tm-linie-hell);
  display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: #15803d;
}
.rk__tag svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rk__btn {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  background: #fff; color: var(--tm-anthrazit); border: 1.5px solid var(--tm-linie); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 6px 18px -4px rgba(31,35,38,.25);
  transition: background-color .2s, color .2s, transform .2s;
}
.rk__btn:hover { background: var(--tm-anthrazit); color: #fff; }
.rk__btn:focus-visible { outline: 3px solid var(--tm-anthrazit); outline-offset: 3px; }
.rk__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rk__btn--prev { left: -24px; }
.rk__btn--next { right: -24px; }
@media (max-width: 1100px) { .rk__card { flex-basis: calc((100% - 24px) / 2); min-height: 340px; } }
@media (max-width: 700px) {
  .rk__card { flex-basis: 100%; min-height: 0; padding: 28px 24px 24px; }
  .rk__btn--prev { left: -8px; } .rk__btn--next { right: -8px; }
  .rk__btn { width: 44px; height: 44px; margin-top: -22px; }
  /* Prüflauf 10.11.: Mittig an den Rändern lag der linke Pfeil über dem Kartentext („W|ir vermessen …“).
     Auf dem Handy beide Pfeile oben rechts in die Karte, neben die große Ziffer – dort ist frei. */
  .rk__btn { top: 24px; margin-top: 0; }
  .rk__btn--prev { left: auto; right: 64px; }
  .rk__btn--next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rk__track { transition: none; } }

/* ---------- Qualität & Herkunft (#qualitaet): nur Siegel, kein Fließtext ---------- */
.sect.qs { background: #fff; padding-block: clamp(36px, 4.6vw, 60px); border-bottom: 1px solid var(--tm-linie-hell); }
.qs__in {
  max-width: 1160px; margin-inline: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px);
}
.qs__titel { margin: 0; font-size: clamp(1.4rem, 2.1vw, 1.85rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--tm-text); white-space: nowrap; }
/* 1-px-Trennlinien über die Lücken (nur innen, kein Rahmen außen) */
.qs__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--tm-linie-hell);
}
.qs__item {
  background: #fff; color: var(--tm-anthrazit-tief);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px 12px; text-align: center;
}
.qs__item svg { width: 64px; height: 64px; display: block; flex: none; }
.qs__label { font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--tm-text); text-wrap: balance; }
@media (max-width: 1100px) {
  .qs__in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .qs__titel { text-align: center; white-space: normal; text-wrap: balance; }
  .qs__liste { width: 100%; max-width: 760px; }
}
@media (max-width: 620px) {
  .qs__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs__item { padding: 16px 10px; gap: 8px; }
  .qs__item svg { width: 56px; height: 56px; }
  .qs__label { font-size: .9rem; }
}

/* ---------- Abschluss-Kontakt (#kontakt-abschluss) ----------
   Ruhige graue Fläche, eine Karte: links Anthrazit-Vertrauensblock, rechts weißes Formular.
   Die Eingabefelder müssen die globale !important-Regel in site.css (Spezifität 1,2,1) schlagen,
   darum #kontakt-abschluss .kf .kf__f … (1,3,1). */
.sect.kc { background: var(--tm-hell); border-top: 1px solid var(--tm-linie-hell); padding-block: clamp(48px, 7vw, 104px); }
.kc__panel {
  max-width: 1160px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #fff; border: 1px solid var(--tm-linie-hell); border-radius: 24px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 35, 38, .04), 0 28px 64px -36px rgba(31, 35, 38, .38);
}

/* Vertrauensblock */
.kc__info { background: var(--tm-anthrazit-tief); color: var(--tm-silber); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; min-width: 0; }
.kc__kicker { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tm-grau-hell); }
.kc__titel { margin: 0; color: #fff; font-size: clamp(1.75rem, 2.7vw, 2.4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.kc__lead { margin: 16px 0 0; max-width: 40ch; font-size: 1.02rem; line-height: 1.6; color: var(--tm-silber); }
.kc__list { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 12px; }
.kc__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.45; color: #ECEDEE; }
.kc__list svg {
  width: 24px; height: 24px; padding: 4px; flex: none; margin-top: -1px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.kc__kontakt { margin-top: auto; }
.kc__person { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.kc__person-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.kc__person-ico svg, .kc__weg svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.kc__person strong { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
.kc__person span { font-size: .88rem; color: var(--tm-grau-hell); }
.kc__wege { display: grid; gap: 10px; margin-top: 18px; }
.kc__weg {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border-radius: 14px;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s, border-color .2s;
}
.kc__weg:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.kc__weg:focus-visible { outline: 3px solid var(--tm-silber); outline-offset: 2px; }
.kc__weg span { display: flex; flex-direction: column; min-width: 0; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.kc__weg:first-child span { font-size: 1.15rem; }
.kc__weg small { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--tm-grau-hell); }

/* Formular-Seite */
.kc__form { padding: clamp(24px, 3.6vw, 52px); min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.kf { position: relative; color: var(--tm-text); }
.kf .kf__titel { margin: 0 0 4px; font-size: 1.4rem; font-weight: 600; line-height: 1.25; color: var(--tm-text); }
.kf__sub { margin: 0 0 22px; font-size: .9rem; color: var(--tm-text-3); }
.kf__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.kf__f { min-width: 0; margin-bottom: 16px; }
.kf label.kf__l { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--tm-text); }
.kf .opt { font-weight: 400; color: var(--tm-text-3); }

#kontakt-abschluss .kf .kf__f :is(input:not([type="checkbox"]), select, .kfa__knopf, textarea) {
  display: block; width: 100%; min-height: 52px; margin: 0;
  font: inherit; font-size: 1rem !important; line-height: 1.4;
  color: var(--tm-text) !important; background-color: var(--tm-hell-2) !important;
  border: 1.5px solid var(--tm-linie) !important; border-radius: 12px !important;
  padding: 13px 15px !important; box-shadow: none !important; outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s !important;
  -webkit-appearance: none; appearance: none;
}
#kontakt-abschluss .kf textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
#kontakt-abschluss .kf select#lfThema, #kontakt-abschluss .kf .kfa__knopf {
  padding-right: 46px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23383E42' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 15px center !important; background-size: 18px !important;
}
#kontakt-abschluss .kf .kf__f :is(input:not([type="checkbox"]), select, .kfa__knopf, textarea):hover { border-color: var(--tm-grau-hell) !important; }
#kontakt-abschluss .kf .kf__f :is(input:not([type="checkbox"]), select, .kfa__knopf, textarea):focus {
  background-color: #fff !important; border-color: var(--tm-anthrazit) !important; box-shadow: 0 0 0 4px rgba(56, 62, 66, .14) !important;
}
/* gleiche Spezifität wie :focus (1,4,1) und später notiert → Fehler-/Ok-Rand bleibt auch im Fokus sichtbar */
#kontakt-abschluss .kf .kf__f.is-valid :is(input:not([type="checkbox"]), select, .kfa__knopf, textarea) { border-color: color-mix(in srgb, var(--ok) 55%, var(--tm-linie)) !important; }
#kontakt-abschluss .kf .kf__f.is-invalid :is(input:not([type="checkbox"]), select, .kfa__knopf, textarea) { border-color: #b3261e !important; background-color: #fff8f7 !important; }
#kontakt-abschluss .kf .kf__f.is-invalid :is(input:not([type="checkbox"]), select, .kfa__knopf, textarea):focus { background-color: #fff !important; box-shadow: 0 0 0 4px rgba(179, 38, 30, .14) !important; }
#kontakt-abschluss .kf input::placeholder, #kontakt-abschluss .kf textarea::placeholder { color: var(--tm-grau); opacity: 1; }
#kontakt-abschluss .kf input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 60px var(--tm-hell-2) inset !important; -webkit-text-fill-color: var(--tm-text) !important; caret-color: var(--tm-text);
}

.kf__err { display: block; margin-top: 6px; font-size: .85rem; font-weight: 500; line-height: 1.4; color: #b3261e; }
.kf__err:empty { display: none; }

.kf__f--ds { margin-top: 4px; }
.kf__check {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  font-size: .88rem; line-height: 1.5; color: var(--tm-text-2); background: var(--tm-hell-2); border: 1.5px solid var(--tm-linie-hell);
  transition: border-color .2s, background-color .2s;
}
.kf__check input { width: 22px; height: 22px; margin: 0; flex: none; cursor: pointer; accent-color: var(--tm-anthrazit); }
.kf__check input:focus-visible { outline: 3px solid var(--tm-anthrazit); outline-offset: 2px; }
.kf__check a { color: var(--tm-anthrazit); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.kf__f.is-invalid .kf__check { border-color: #b3261e; background: #fff8f7; }

.kf__submit {
  width: 100%; min-height: 56px; margin-top: 8px; padding: 14px 24px; border: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--tm-anthrazit);
  box-shadow: 0 12px 26px -14px rgba(31, 35, 38, .7);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.kf__submit:hover { background: var(--tm-anthrazit-tief); transform: translateY(-1px); }
.kf__submit:focus-visible { outline: 3px solid var(--tm-anthrazit); outline-offset: 3px; }
.kf__submit:disabled { opacity: .7; cursor: progress; transform: none; }
.kf__pfeil { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.kf__submit:hover .kf__pfeil { transform: translateX(3px); }
.kf__submit.is-loading .kf__pfeil { display: none; }
.kf__spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: kfspin .8s linear infinite; }
.kf__submit.is-loading .kf__spin { display: inline-block; }
@keyframes kfspin { to { transform: rotate(360deg); } }

.kf__global { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; color: #b3261e; background: #fff4f3; border: 1px solid #f1c4c0; }
.kf__global a { color: var(--tm-anthrazit); }
.kf__hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; font-size: .85rem; color: var(--tm-text-2); background: var(--tm-hell); }
.kf__hint button { min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--tm-anthrazit); text-decoration: underline; cursor: pointer; }
.kf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Danke-Zustand (leadform.js blendet #leadformOk ein) */
#kontakt-abschluss .leadform__ok { max-width: none; margin: 0; padding: clamp(32px, 6vw, 64px) 8px; text-align: center; background: none; border: 0; }
#kontakt-abschluss .leadform__ok .kreis { color: var(--ok); background: var(--tm-hell); border: 1px solid var(--tm-linie-hell); }
#kontakt-abschluss .leadform__ok h3 { margin: 0 0 8px; color: var(--tm-text); }
#kontakt-abschluss .leadform__ok p { margin: 0; color: var(--tm-text-2); }
#kontakt-abschluss .leadform__ok a { color: var(--tm-anthrazit); font-weight: 700; }

@media (max-width: 960px) {
  .kc__panel { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .kc__info { padding: 30px 24px; }
  .kc__list { margin-bottom: 26px; }
  .kc__form { padding: 26px 24px 30px; }
}
@media (max-width: 560px) {
  .sect.kc { padding-block: 40px 48px; }
  .kc__info { padding: 26px 20px; }
  .kc__titel { font-size: 1.7rem; }
  .kc__lead { font-size: .98rem; }
  .kc__form { padding: 24px 18px 26px; }
  .kf__row { grid-template-columns: minmax(0, 1fr); }
  .kf__submit { padding-inline: 16px; font-size: 1rem; gap: 8px; }
  .kf__pfeil { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .kf__spin { animation-duration: 2s; }
  .kf__submit, .kf__pfeil, .kc__weg, .kf__check { transition: none; }
}

/* Risiko-Karten ohne Icons: große Ziffer, Haarlinie, dunkler Hover */
.rk__card { position: relative; overflow: hidden; border: 1px solid var(--tm-linie-hell); transition: background-color .3s, border-color .3s, transform .3s; }
.rk__card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--tm-anthrazit); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.rk__num { font-family: var(--f-display); font-size: clamp(3.4rem, 5vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--tm-linie, #d7dadd); transition: color .3s; }
.rk__card h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); letter-spacing: -.015em; }
@media (hover: hover) {
  .rk__card:hover { background: var(--tm-anthrazit); border-color: var(--tm-anthrazit); }
  .rk__card:hover::before { transform: scaleX(1); background: #fff; }
  .rk__card:hover .rk__num { color: rgba(255,255,255,.3); }
  .rk__card:hover h3 { color: #fff; }
  .rk__card:hover p { color: rgba(255,255,255,.78); }
  .rk__card:hover .rk__tag { color: #fff; border-top-color: rgba(255,255,255,.2); }
}
@media (prefers-reduced-motion: reduce) { .rk__card, .rk__card::before, .rk__num { transition: none; } }

/* Zertifikate: beim Überfahren größer und hervorgehoben */
.qs__item { position: relative; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease; }
.qs__item svg { transition: transform .28s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .qs__item:hover { border-radius: 14px; transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 34px rgba(30, 35, 40, .14), 0 0 0 1px var(--tm-linie-hell); z-index: 1; }
  .qs__item:hover svg { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .qs__item, .qs__item svg { transition: none; } }

/* Anliegen: eigene Auswahlliste, das echte <select> bleibt versteckt für Formular und Validierung */
.kfa { position: relative; }
.kfa__select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; padding: 0 !important; border: 0 !important; }
#kontakt-abschluss .kf .kfa__knopf { display: block; width: 100%; text-align: left; font: inherit; color: var(--tm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kfa.ist-offen .kfa__knopf { border-color: var(--tm-anthrazit) !important; }
.kfa__liste {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--tm-linie-hell); border-radius: 12px; box-shadow: 0 18px 44px rgba(30, 35, 40, .18);
  max-height: min(464px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.kfa.nach-oben .kfa__liste { top: auto; bottom: calc(100% + 8px); transform: translateY(6px); }
.kfa.ist-offen .kfa__liste { opacity: 1; transform: none; visibility: visible; }
.kfa__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 8px; font-size: .97rem; line-height: 1.3; color: var(--tm-text); cursor: pointer; }
.kfa__opt.ist-aktiv { background: #eef0f2; }
.kfa__opt[aria-selected="true"] { font-weight: 600; color: var(--tm-anthrazit-tief); }
.kfa__opt svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.kfa__opt[aria-selected="true"] svg { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .kfa__liste { transition: none; } }

/* Auswahlliste darf über die Tafel hinausragen: Ecken macht die linke Spalte selbst */
.kc__panel { overflow: visible; }
.kc__info { border-radius: 23px 0 0 23px; }
@media (max-width: 960px) { .kc__info { border-radius: 19px 19px 0 0; } }
.kc__panel:has(.kfa.ist-offen) { position: relative; z-index: 5; }

/* Responsive 18.11.2026: Einwilligungstext am Handy mind. 15 px */
@media (max-width: 620px) { .kf__check { font-size: .94rem; } }
