/* ==========================================================================
   SaniPro – Leistungs-Unterseiten (/leistungen/<slug>/) + klickbare Karten
   Farben/Schriften der bestehenden Seite: #2a68b2 (royal-blue), #4d9ad4
   (dodger-blue), Barlow (Überschriften), Roboto (Fließtext).
   ========================================================================== */

/* ---------- Leistungen-Übersicht: komplett klickbare Karten ---------- */
.karte-wrapper {
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Überschrift ist Flex-Item mit z-index:5 -> Stapelkontext aufheben, damit der
   Termin-Button (z-index 2) über der Klickfläche (z-index 1) liegt. */
.karte-wrapper .heading-links-karte { position: static; z-index: auto; }
.karte-link {
  color: inherit;
  text-decoration: none;
}
.karte-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
}
.karte-wrapper .terminbutton-2 {
  position: relative;
  z-index: 2;
}
.karte-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 50, 90, .16);
}
.karte-wrapper:hover .karte-link { color: #2a68b2; }
.karte-link:focus { outline: none; }
.karte-link:focus-visible::after {
  outline: 3px solid #2a68b2;
  outline-offset: -3px;
}
.karte-wrapper:focus-within { box-shadow: 0 14px 30px rgba(20, 50, 90, .16); }
@media (prefers-reduced-motion: reduce) {
  .karte-wrapper, .karte-wrapper:hover { transition: none; transform: none; }
}

/* ---------- Unterseiten ---------- */
.lp-main {
  --lp-primary: #2a68b2;
  --lp-primary-dark: #1f4f8a;
  --lp-accent: #4d9ad4;
  --lp-soft: #f3f6fa;
  --lp-border: #e1e8f0;
  --lp-text: #333;
  --lp-muted: #5b6573;
  width: 100%;
  color: var(--lp-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.lp-main *, .lp-main *::before, .lp-main *::after { box-sizing: border-box; }
.lp-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw;
}
@media (min-width: 1300px) { .lp-container { padding: 0 20px; } }
.lp-section { padding: 64px 0; }
.lp-section--tight { padding: 32px 0; }
.lp-main h1, .lp-main h2, .lp-main h3 {
  font-family: Barlow, Arial, sans-serif;
  color: var(--lp-primary);
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}
.lp-main h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; margin: 8px 0 18px; }
.lp-main h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 0 0 16px; }
.lp-main h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.lp-main p { margin: 0 0 14px; }
.lp-center { text-align: center; }
.lp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Breadcrumb + Ortszeile */
.lp-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 14px;
  color: var(--lp-muted);
}
.lp-breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--lp-muted); }
.lp-breadcrumb a { color: var(--lp-muted); text-decoration: none; }
.lp-breadcrumb a:hover, .lp-breadcrumb a:focus-visible { color: var(--lp-primary); text-decoration: underline; }
.lp-breadcrumb [aria-current] { color: var(--lp-text); }
.lp-location {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--lp-primary);
}

/* Buttons */
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--lp-primary);
  background: var(--lp-primary);
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lp-btn:hover { background: #292929; border-color: #292929; color: #fff; }
.lp-btn:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; }
.lp-btn--outline { background: #fff; color: var(--lp-primary); }
.lp-btn--outline:hover { background: var(--lp-primary); border-color: var(--lp-primary); color: #fff; }
.lp-btn--light { background: #fff; border-color: #fff; color: var(--lp-primary); }
.lp-btn--light:hover { background: #292929; border-color: #292929; color: #fff; }
.lp-btn svg { width: 18px; height: 18px; flex: none; }

/* Hero / Bild-Text-Raster */
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.lp-split--media-first .lp-media { order: -1; }
.lp-hero { padding: 40px 0 48px; }
.lp-hero .lp-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.lp-lead { font-size: 18px; color: var(--lp-muted); max-width: 560px; }
.lp-media { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.lp-media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--lp-border);
  border-radius: 22px;
  z-index: -1;
}
.lp-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 4 / 3);
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  border-radius: 20px;
  background: var(--lp-soft);
}
.lp-media--contain img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.lp-media figcaption, .lp-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--lp-muted);
}
.lp-media .lp-ai { position: relative; z-index: 1; }
figure.lp-media { margin-left: 0; margin-top: 0; }
.lp-split > div > :last-child { margin-bottom: 0; }

/* USP-Leiste */
.lp-usp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 30px;
  background: var(--lp-soft);
  border-radius: 20px;
}
.lp-usp h3 { font-size: 16px; margin: 10px 0 6px; }
.lp-usp p { font-size: 14px; color: var(--lp-muted); margin: 0; }
.lp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e3eef9;
  color: var(--lp-primary);
}
.lp-icon svg { width: 22px; height: 22px; }

/* Karten */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.lp-card {
  padding: 28px;
  background: var(--lp-soft);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
}
.lp-card h3 { margin-top: 16px; }
.lp-card p { font-size: 15px; color: var(--lp-muted); margin: 0; }

/* Checklisten */
.lp-checks { list-style: none; margin: 18px 0 0; padding: 0; }
.lp-checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}
.lp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Ablauf */
.lp-steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: lpstep;
}
.lp-steps li { position: relative; counter-increment: lpstep; }
.lp-steps li::before {
  content: counter(lpstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  z-index: 1;
}
.lp-steps li::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 52px;
  right: -20px;
  height: 2px;
  background: var(--lp-border);
}
.lp-steps li:last-child::after { display: none; }
.lp-steps h3 { margin-top: 16px; font-size: 18px; }
.lp-steps p { font-size: 15px; color: var(--lp-muted); margin: 0; }

/* Projekte */
.lp-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 30px;
}
.lp-project { margin: 0; }
.lp-project img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  border-radius: 16px;
  background: var(--lp-soft);
}
.lp-project figcaption { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--lp-text); }
.lp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-ba-half { position: relative; margin: 0; }
.lp-ba-half img { aspect-ratio: 3 / 4; border-radius: 12px; }
.lp-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

/* FAQ */
.lp-faq { max-width: 980px; margin-top: 24px; border-top: 1px solid var(--lp-border); }
.lp-faq details { border-bottom: 1px solid var(--lp-border); }
.lp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: Barlow, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-primary);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  text-align: center;
  font-size: 24px;
  line-height: 1;
  color: var(--lp-primary);
}
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq summary:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.lp-faq details p { margin: 0 0 20px; color: var(--lp-muted); max-width: 860px; }

/* CTA + Formular */
.lp-cta {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 48px;
  background: var(--lp-primary);
  border-radius: 24px;
  color: #fff;
  scroll-margin-top: 24px;
}
.lp-main .lp-cta h2 { color: #fff; }
.lp-cta p { color: #e8f0fa; }
.lp-cta a { color: #fff; }
.lp-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  margin: 8px 0 14px;
}
.lp-cta-phone:hover, .lp-cta-phone:focus-visible { text-decoration: underline; }
.lp-cta-phone svg { width: 20px; height: 20px; }
.lp-cta address { font-style: normal; color: #e8f0fa; }
.lp-form .w-form { margin: 0; }
.lp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-form-grid .lp-full { grid-column: 1 / -1; }
.lp-form input[type="text"], .lp-form input[type="tel"], .lp-form input[type="email"],
.lp-form select, .lp-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #c9d6e6;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font: 15px/1.4 Roboto, Arial, sans-serif;
}
.lp-form textarea { min-height: 130px; resize: vertical; }
.lp-form input:focus-visible, .lp-form select:focus-visible, .lp-form textarea:focus-visible {
  outline: 3px solid var(--lp-accent);
  outline-offset: 1px;
}
.lp-form ::placeholder { color: #6b7685; }
.lp-form .lp-label { display: block; margin-bottom: 4px; font-size: 13px; color: #e8f0fa; }
.lp-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: #e8f0fa;
}
.lp-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #fff; }
.lp-form .w-form-done { border-radius: 12px; background: #fff; color: var(--lp-text); }
.lp-form .w-form-fail { border-radius: 12px; color: #7a0b0b; }
.lp-form .w-form-done img { display: block; margin: 0 auto 8px; }

/* Weitere Leistungen */
.lp-more {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.lp-more a {
  display: block;
  height: 100%;
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--lp-primary);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-more a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 50, 90, .14); }
.lp-more a:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; }
.lp-more img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.lp-more span { display: block; padding: 12px 14px 16px; font-family: Barlow, Arial, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Wasserschaden: Notfall-Block */
.lp-alert {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 2px solid #e24a4a;
  border-radius: 20px;
  background: #fff5f5;
}
.lp-main .lp-alert h2 { color: #c62828; font-size: 24px; margin: 0; }
.lp-alert ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: lpalert;
}
.lp-alert li { counter-increment: lpalert; font-size: 15px; }
.lp-alert li::before {
  content: counter(lpalert);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-weight: 700;
}
.lp-alert a { color: #c62828; font-weight: 700; }

/* Heizung: Wartungs-Block */
.lp-wartung {
  padding: 40px;
  border-radius: 24px;
  background: #eaf3fb;
}
.lp-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.lp-wartung-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: start;
}
.lp-wartung h3 { margin-top: 22px; }
.lp-wartung-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-wartung-pics img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}
.lp-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.lp-benefit { padding: 22px; border-radius: 16px; background: #fff; }
.lp-benefit h4 { margin: 12px 0 6px; font-family: Barlow, Arial, sans-serif; font-size: 16px; color: var(--lp-primary); }
.lp-benefit p { margin: 0; font-size: 14px; color: var(--lp-muted); }
.lp-tip {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--lp-primary);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .lp-section { padding: 48px 0; }
  .lp-split, .lp-hero .lp-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-split--media-first .lp-media { order: 0; }
  .lp-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cards, .lp-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps li::after { display: none; }
  .lp-cta { grid-template-columns: minmax(0, 1fr); padding: 36px; gap: 28px; }
  .lp-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-alert { grid-template-columns: minmax(0, 1fr); }
  .lp-alert ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-wartung-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .lp-cards, .lp-projects, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-wartung { padding: 28px 20px; }
  .lp-cta { padding: 28px 20px; }
  .lp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-lead { font-size: 17px; }
}
@media (max-width: 479px) {
  .lp-usp { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .lp-benefits, .lp-alert ol { grid-template-columns: minmax(0, 1fr); }
  .lp-more { grid-template-columns: minmax(0, 1fr); }
  .lp-actions .lp-btn { width: 100%; }
  .lp-media { margin-right: 12px; margin-bottom: 12px; }
  .lp-media::after { inset: 12px -12px -12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-more a, .lp-more a:hover, .lp-btn { transition: none; transform: none; }
}

/* ---------- Sprungziele + verlinkte Termin-Buttons (Startseite/Leistungen) ---------- */
.karte-grid > .karte-wrapper[id] { scroll-margin-top: 120px; }
a.karte-termin-link {
  text-decoration: none;
  cursor: pointer;
}
a.karte-termin-link:focus-visible {
  outline: 3px solid #2a68b2;
  outline-offset: 3px;
}
