/* ==========================================================================
   Rohr- & Abflussreinigung Wolfgang — leckortung.css
   Styles specific to leckortung.php (service page).
   Structurally identical to the other service-page stylesheets —
   shared component classes (.page-hero, .signs-grid, .method-card,
   .price-teaser, .mini-faq, .related-grid) kept in sync on purpose.
   New components in this file (.detect-strip, .leaktype-grid, .tech-matrix,
   .factor-list, .aftercare-wrap) were checked against every other service
   stylesheet (rohrreinigung.css, abflussreinigung.css, verstopfung-beseitigen.css,
   kanalreinigung.css, rohrbruch-service.css, wasserschaeden.css,
   sanitaerarbeiten.css) — no class-name overlap.
   ========================================================================== */

/* ---------- Page hero (shared pattern) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #022754 0%, #013463 46%, #005399 100%);
  color: #fff;
  overflow: hidden;
  padding: 60px 0 70px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.page-hero .eyebrow {
  color: #ff616a;
}
.page-hero .eyebrow::before {
  background: #ff616a;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(238, 244, 250, 0.85);
  font-size: 1.05rem;
  max-width: 54ch;
}
.page-hero-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(238, 244, 250, 0.65);
  margin-bottom: 18px;
}
.page-hero-crumbs a {
  color: rgba(238, 244, 250, 0.85);
}
.page-hero-crumbs a:hover {
  color: #fff;
}
.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.page-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.3;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(2, 39, 84, 0) 45%, rgba(2, 39, 84, 0.5) 100%);
}
.page-hero-badge {
  position: absolute;
  left: -18px;
  bottom: 22px;
  background: #fff;
  color: var(--color-navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.page-hero-badge .fab-icon {
  width: 42px;
  height: 42px;
  background: rgba(239, 0, 11, 0.1);
  color: var(--color-red);
}
.page-hero-badge .fab-icon svg {
  width: 20px;
  height: 20px;
}
.page-hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
}
.page-hero-badge span {
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

@media (max-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-media {
    max-width: 480px;
    margin-inline: auto;
  }
  .page-hero-badge {
    left: 14px;
  }
}
@media (max-width: 540px) {
  .page-hero-ctas .btn {
    width: 100%;
  }
  .page-hero-badge {
    display: none;
  }
}

/* ---------- Detect strip (unique: floating cards on ice background, not dividers/navy) ---------- */
.detect-strip {
  background: var(--color-ice);
  padding: 30px 0;
}
.detect-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.detect-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.detect-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--color-navy);
}
.detect-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-soft);
  margin-top: 2px;
}
.detect-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 0, 11, 0.1);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detect-icon svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 1080px) {
  .detect-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .detect-strip-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Overview (intro text + image) ---------- */
.overview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.overview-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
      height: 100%;
}
.overview-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.overview-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--color-text-soft);
}
.overview-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-red);
  flex: none;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .overview-wrap {
    grid-template-columns: 1fr;
  }
  .overview-media {
    order: -1;
  }
}

/* ---------- Leckarten / leaktype grid (unique: icon + short text + single tag pill) ---------- */
.leaktype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.leaktype-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.leaktype-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.leaktype-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #eaf2fb, #dceafc);
  color: var(--color-endeavour);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.leaktype-icon svg {
  width: 22px;
  height: 22px;
}
.leaktype-card h4 {
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.leaktype-card p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin: 0 0 14px;
}
.leaktype-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-endeavour);
  background: rgba(0, 83, 153, 0.08);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

@media (max-width: 900px) {
  .leaktype-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .leaktype-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Anzeichen (signs) ---------- */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.signs-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}
.sign-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.sign-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ice);
  color: var(--color-endeavour);
}
.sign-icon svg {
  width: 22px;
  height: 22px;
}
.sign-card h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.sign-card p {
  font-size: 0.82rem;
  margin: 0;
}

@media (max-width: 900px) {
  .signs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .signs-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .signs-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Methoden (methods) ---------- */
.methods-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.methods-wrap--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 44px;
}
.method-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.method-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.method-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.method-body {
  padding: 24px 22px;
}
.method-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.method-body p {
  font-size: 0.9rem;
  margin: 0;
}
.method-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-red);
  background: rgba(239, 0, 11, 0.08);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .methods-wrap {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .methods-wrap--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}
@media (max-width: 560px) {
  .methods-wrap--4 {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* ---------- Verfahren im Vergleich / tech matrix (unique: dark header, own table) ---------- */
.tech-matrix {
  max-width: 980px;
  margin: 0 auto;
}
.tech-matrix h3 {
  text-align: center;
  margin-bottom: 20px;
}
.tech-matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tech-matrix-table thead th {
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: left;
  padding: 14px 18px;
}
.tech-matrix-table tbody th,
.tech-matrix-table tbody td {
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}
.tech-matrix-table tbody th {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}
.tech-matrix-table tbody tr:last-child th,
.tech-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}
.tech-matrix-table tbody tr:nth-child(even) {
  background: var(--color-ice);
}

@media (max-width: 720px) {
  .tech-matrix-table {
    display: block;
    overflow-x: auto;
  }
  .tech-matrix-table thead th,
  .tech-matrix-table tbody th,
  .tech-matrix-table tbody td {
    white-space: nowrap;
  }
}

/* ---------- Kostenfaktoren / factor list (unique: 2-col icon rows, left accent) ---------- */
.factor-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.factor-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.factor-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-ice);
  color: var(--color-endeavour);
  display: flex;
  align-items: center;
  justify-content: center;
}
.factor-icon svg {
  width: 20px;
  height: 20px;
}
.factor-item h4 {
  font-size: 0.94rem;
  margin-bottom: 4px;
}
.factor-item p {
  font-size: 0.84rem;
  color: var(--color-text-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .factor-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ablauf steps (reused rail pattern) ---------- */
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-rail--5 {
  grid-template-columns: repeat(5, 1fr);
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--color-line) 0 10px,
    transparent 10px 18px
  );
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-endeavour);
  color: var(--color-endeavour);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.process-step:nth-child(odd) .process-num {
  border-color: var(--color-red);
  color: var(--color-red);
}
.process-step h4 {
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .process-rail--5 {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
  .process-rail--5::before {
    display: none;
  }
}
@media (max-width: 900px) {
  .process-rail {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .process-rail::before {
    display: none;
  }
}
@media (max-width: 560px) {
  .process-rail,
  .process-rail--5 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Nach der Leckortung / aftercare split (unique: numbered circles + dark note) ---------- */
.aftercare-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.aftercare-list {
  counter-reset: aftercare;
  margin-top: 22px;
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
}
.aftercare-list li {
  counter-increment: aftercare;
  position: relative;
  padding-left: 40px;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.aftercare-list li::before {
  content: counter(aftercare);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-endeavour);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aftercare-list li strong {
  color: var(--color-navy);
}
.aftercare-note {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.aftercare-note::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(239, 0, 11, 0.14);
}
.aftercare-note-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.aftercare-note-icon svg {
  width: 21px;
  height: 21px;
}
.aftercare-note h3 {
  position: relative;
  color: #fff;
  margin-bottom: 8px;
}
.aftercare-note p {
  position: relative;
  color: rgba(238, 244, 250, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 900px) {
  .aftercare-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Price teaser ---------- */
.price-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  position: relative;
  overflow: hidden;
}
.price-teaser::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(239, 0, 11, 0.16);
}
.price-teaser h3 {
  color: #fff;
  position: relative;
  margin-bottom: 6px;
}
.price-teaser p {
  position: relative;
  color: rgba(238, 244, 250, 0.75);
  margin: 0;
  font-size: 0.92rem;
}
.price-teaser-value {
  position: relative;
  text-align: center;
}
.price-teaser-value strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
}
.price-teaser-value span {
  font-size: 0.78rem;
  color: rgba(238, 244, 250, 0.7);
}
.price-teaser-value .btn {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .price-teaser {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 24px;
  }
}

/* ---------- Mini FAQ (reused pattern) ---------- */
.mini-faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-navy);
}
.faq-question .icon-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-ice);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}
.faq-question .icon-plus::before,
.faq-question .icon-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.faq-question .icon-plus::before {
  width: 12px;
  height: 2px;
}
.faq-question .icon-plus::after {
  width: 2px;
  height: 12px;
}
.faq-item.is-open .icon-plus::after {
  transform: rotate(90deg) scaleY(0);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-answer-inner {
  padding: 0 22px 22px;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.faq-item.is-open .faq-answer {
  max-height: 400px;
}

/* ---------- Related services ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-endeavour);
}
.related-card .service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, #eaf2fb, #dceafc);
  color: var(--color-endeavour);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.related-card .service-icon svg {
  width: 22px;
  height: 22px;
}
.related-card h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.related-card p {
  font-size: 0.8rem;
  margin: 0;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band (self-contained copy) ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-red) 0%, #c8000d 100%);
  color: #fff;
  padding: 56px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.cta-band-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--color-red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.cta-band .btn-primary:hover {
  background: var(--color-navy);
  color: #fff;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
