/* Karingo service directory */
:root {
  --kg-text: #152f45;
  --kg-body: #384e60;
  --kg-rule: #cddbe2;
  --kg-heading-face: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ksite :is(h1,h2,h3), .kfoot h2, .kg-request #kg-request-title,
.ke-editorial :is(h2,h3), .kg-callout a, .kg-dock, .khero .kacts>a[href^="tel:"] {
  font-family: var(--kg-heading-face);
}
body:has(.ksite) { font-family: var(--kg-heading-face); }
.ksite :is(h1,h2), .kg-central-services h2 { font-weight: 750; letter-spacing: -.035em; }
.ksite h3 { font-weight: 680; }
.ksection:has(.kservices), .kg-central-services { background: #f0f5f7; }
.kg-central-services { padding: clamp(36px,5vw,72px) 0; color: var(--kg-text); }
.kg-central-services .kwrap { width: min(calc(100% - 36px), 1180px); margin-inline: auto; }
.kg-central-services h2, .ksite h2#leistungen {
  font: 750 clamp(1.7rem,3.8vw,3rem)/1.08 var(--kg-heading-face);
  color: var(--kg-text); letter-spacing: -.035em; margin: 0;
}
.kservices {
  display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:0;
  background:#fff; border:1px solid var(--kg-rule); border-radius:14px;
  margin-top:clamp(18px,2.4vw,30px); color:var(--kg-text);
}
.kservices .ksvc {
  --icon-paper:#e7f2ef;
  position:relative; isolation:isolate; display:grid;
  grid-template-rows:auto auto 1fr auto; align-items:start;
  min-width:0; gap:0; border:0; padding:clamp(18px,2.3vw,34px);
}
.ksvc:has(a[href*="reparatur"]) { --icon-paper:#faf0e4; --service-icon:url("bildzeichen/reparatur.svg"); }
.ksvc:has(a[href*="tausch"]) { --icon-paper:#eaf1fa; --service-icon:url("bildzeichen/tausch.svg"); }
.kservices .ksvc + .ksvc { border-inline-start:1px solid var(--kg-rule); }
.kservices .ksvc::before {
  content:""; display:block; width:70px; height:70px; border-radius:17px;
  background:var(--icon-paper) var(--service-icon,url("bildzeichen/wartung.svg")) center / 49px 49px no-repeat;
  margin-bottom:20px;
}
.kservices .ksvc h3 {
  font: 700 clamp(1.16rem,1.8vw,1.55rem)/1.16 var(--kg-heading-face);
  letter-spacing:-.025em; color:var(--kg-text); margin:0 0 .4rem; overflow-wrap:break-word;
}
.kservices .ksvc p {
  margin:0; max-width:35ch; color:var(--kg-body);
  font: 440 1rem/1.53 var(--kg-heading-face);
}
.kservices .ksvc .ktxt {
  display:flex; align-items:center; gap:8px; width:fit-content;
  margin-top:20px; font:650 .94rem/1.35 var(--kg-heading-face);
  text-decoration:none; color:var(--kg-action,#164c83);
}
.kservices .ktxt::before { content:""; position:absolute; inset:0; z-index:1; border-radius:10px; }
.kservices .ktxt::after, .kregion a::before, .kbar .kwrap span::before, .kg-dock .kg-book::before,
.kg-callout > span::before, .ke-links a:is([href="/preise/"],[href="/blog/"],[href="/fehlercodes/"])::before,
.ke-index > h2::before, .ke-editorial > h3 > a[href^="/blog/"]::before {
  content:""; display:inline-block; flex:none; width:1.15em; height:1.15em;
  background:currentColor; -webkit-mask:var(--symbol) center/contain no-repeat; mask:var(--symbol) center/contain no-repeat;
}
.kservices .ktxt::after { --symbol:url("bildzeichen/pfeil.svg"); }
.kservices .ksvc:focus-within { outline:3px solid var(--kg-action,#164c83); outline-offset:-3px; border-radius:10px; }
@media(hover:hover) {
  .kservices .ksvc:hover { background:#f7fafb; }
  .kservices .ksvc:first-child:hover { border-radius:14px 0 0 14px; }
  .kservices .ksvc:last-child:hover { border-radius:0 14px 14px 0; }
  .kservices .ksvc:hover a { text-decoration:underline; text-underline-offset:.2em; }
}
.kbar .kwrap span { display:inline-flex; align-items:center; gap:8px; }
.kbar .kwrap span::before { --symbol:url("bildzeichen/protokoll.svg"); margin:0; color:#bcd8ef; }
.kbar .kwrap span + span::before, .kregion a::before, .ke-index > h2::before { --symbol:url("bildzeichen/ort.svg"); }
.kregion a { align-items:center; gap:.45rem; }
.kg-dock .kg-book::before { --symbol:url("bildzeichen/kalender.svg"); }
.kg-dock .kg-book { gap:.7rem; }
.kg-callout > span { display:flex; align-items:center; gap:.55rem; }
.kg-callout > span::before { --symbol:url("bildzeichen/telefon.svg"); color:var(--kg-bright); }
.ke-index > h2::before, .ke-editorial > h3 > a[href^="/blog/"]::before { width:.86em;height:.86em;margin-inline-end:.4em;vertical-align:-.01em; }
.ke-editorial > h3 > a[href^="/blog/"]::before,.ke-links a[href="/blog/"]::before { --symbol:url("bildzeichen/buch.svg"); }
.ke-links a[href="/preise/"]::before { --symbol:url("bildzeichen/preise.svg"); }
.ke-links a[href="/fehlercodes/"]::before { --symbol:url("bildzeichen/code.svg"); }
.ke-links a:is([href="/preise/"],[href="/blog/"],[href="/fehlercodes/"]) {
  display:inline-flex; align-items:center; gap:.5em; padding:.45rem .65rem;
  background:#edf3f7; border-radius:6px; color:#164873; font-weight:650; text-underline-offset:.2em;
}
.ke-scroll table { width:min(100%,58rem); }
.ke-scroll table thead { background:#193d55; color:#fff; }
.ke-scroll table thead th { color:inherit; }
.ke-scroll table tbody tr:nth-child(even) { background:#f2f6f8; }
.ke-flow ol { gap:0; background:#f1f5f7; border-radius:10px; padding:8px; }
.ke-flow ol li { font-size:1rem; border:0; padding:12px; }
.ke-flow li strong::before { content:counter(step); display:inline-grid; place-items:center; min-width:1.6em; height:1.6em; border-radius:50%; background:#d6e5ec; color:#174263; margin-right:.45em; font-size:.85em; }
.ke-index > details { border-bottom:1px solid var(--kg-rule); }
.ke-index > details > summary { cursor:pointer; padding:.65rem 0; font-weight:650; }
@media(max-width:760px) {
  .kservices { grid-template-columns:1fr; }
  .kservices .ksvc {
    grid-template-columns:auto minmax(0,1fr) 24px; grid-template-rows:auto auto;
    column-gap:clamp(9px,2.7vw,17px); padding:clamp(14px,3vw,20px);
    align-content:center;
  }
  .kservices .ksvc + .ksvc { border-inline-start:0; border-top:1px solid var(--kg-rule); }
  .kservices .ksvc::before { width:clamp(44px,13vw,60px); height:clamp(48px,14vw,62px); background-size:80%; grid-area:1/1/3/2; margin:0; border-radius:10px; }
  .kservices .ksvc h3 { grid-area:1/2; font-size:clamp(1.04rem,4.4vw,1.28rem); }
  .kservices .ksvc p { grid-area:2/2; font-size:.96rem; line-height:1.48; max-width:52ch; }
  .kservices .ksvc .ktxt {
    grid-area:1/3/3/4; align-self:center; justify-self:end; justify-content:center;
    width:24px; height:34px; margin:0; font-size:0; gap:0;
  }
  .kservices .ktxt::after { width:20px; height:20px; }
  .kg-dock .kg-book { font:700 1rem/1.2 var(--kg-heading-face); }
}
@media(max-width:400px) {
  .kservices .ksvc { padding:15px 10px; column-gap:8px; grid-template-columns:42px minmax(0,1fr) 18px; }
  .kservices .ksvc::before { width:42px; height:48px; }
  .kservices .ksvc .ktxt { width:18px; }
}
/* Keep the persistent privacy control within the page footer, above the contact dock. */
body:has(.kg-dock) > button.ast-analytics-open[data-ast-settings] {
  position:static!important; inset:auto!important; align-self:flex-start;
  display:block; width:fit-content; min-height:44px;
  margin:8px max(18px,calc((100% - 1180px)/2));
  border:0!important; border-radius:4px; background:white!important;
  box-shadow:none!important; color:#284657!important;
  font:600 .9rem/1.3 var(--kg-heading-face); text-decoration:underline;
  text-underline-offset:.2em; cursor:pointer;
}
