/* =========================================================
   Vimex Service – Unterseite /abriss-entkernung
   Baut auf styles.css auf (gleiche Tokens, gleiche Bausteine).
   ========================================================= */

/* ---------- Hero ---------- */
.ab-hero {
  background:
    linear-gradient(125deg, rgba(8,34,44,.93) 0%, rgba(14,59,76,.86) 55%, rgba(20,85,107,.80) 100%),
    #0c3645 url('../images/gewerk-erdbau.webp') center/cover no-repeat;
}
.ab-crumbs {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #9FB5BD; margin-bottom: 16px;
}
.ab-crumbs a { color: #D2E0E5; text-decoration: underline; text-underline-offset: 3px; }
.ab-crumbs a:hover { color: #fff; }
.ab-hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.ab-hero .hero-sub { max-width: 600px; }
.ab-hero-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 18px auto 0; max-width: 560px; font-size: 14px; color: #B9CDD4;
}
.ab-hero-hint i { color: var(--teal-bright); font-size: 18px; flex-shrink: 0; }

/* WhatsApp-Button */
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.28); }
.btn-wa:hover { background: #1ebe5d; }

/* ---------- Leistungs-Karten ---------- */
.ab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-card { padding: 24px; display: flex; flex-direction: column; border: 1px solid rgba(23,150,168,.10); }
.ab-card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #E8F6F7; color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 27px; margin-bottom: 16px;
}
.ab-card h3 { font-size: 18px; margin-bottom: 10px; }
.ab-card p { font-size: 14.5px; margin-bottom: 16px; }
.ab-card .checks { margin-top: auto; }
.ab-card-cta { background: var(--petrol); border-color: var(--petrol); }
.ab-card-cta h3 { color: #fff; }
.ab-card-cta p { color: #C4D6DC; }
.ab-card-cta .ab-card-icon { background: rgba(39,192,212,.16); color: var(--teal-bright); }
.ab-card-cta .btn { margin-top: auto; white-space: normal; text-align: center; }
.ab-card-tel { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: #fff; }
.ab-card-tel i { color: var(--teal-bright); }
.ab-card-tel:hover { color: var(--teal-bright); }

/* ---------- Maschinenpark (dunkle Sektion) ---------- */
.ab-dark { background: linear-gradient(150deg, var(--petrol-dark) 0%, var(--petrol) 100%); }
.ab-dark .section-title { color: #fff; }
.ab-dark .section-sub { color: #B9CDD4; max-width: 640px; margin-left: auto; margin-right: auto; }
.ab-dark .eyebrow-light { color: var(--teal-bright); }
.ab-machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ab-machine {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.ab-machine i { font-size: 40px; color: var(--teal-bright); display: block; margin-bottom: 14px; }
.ab-machine p { color: #C4D6DC; font-size: 14.5px; }
.ab-machine .ab-machine-title { color: #fff; font-size: 19px; font-weight: 600; margin-bottom: 8px; }

/* ---------- Vergleich: Zugeständnis-Zeile ---------- */
.ab-note { text-align: center; max-width: 560px; margin: -6px auto 26px; font-size: 15px; color: var(--petrol); }

/* ---------- Ablauf (5 Schritte) ---------- */
.ab-steps {
  list-style: none; padding: 0; margin: 52px 0 44px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 16px;
}
.ab-steps .step-card { padding: 30px 18px 22px; }
.ab-steps .step-title { font-size: 16px; }
.ab-steps .step-text { font-size: 14px; }

/* ---------- Einzugsgebiet ---------- */
.ab-region-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.ab-region-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; background: var(--bg-alt); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0;
}
.ab-region-list strong { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); font-weight: 600; }
.ab-region-list span { font-size: 15.5px; color: var(--petrol); font-weight: 500; }
.ab-region-more { font-size: 14.5px; color: var(--text); margin-bottom: 22px; }
.region-left .btn { white-space: normal; }

/* ---------- Anfrage ---------- */
.ab-form-card { padding: 26px; box-shadow: var(--shadow); border: 1px solid rgba(23,150,168,.14); }
.ab-form-card .lead-form input,
.ab-form-card .lead-form select,
.ab-form-card .lead-form textarea { background-color: #fff; min-width: 0; }
.ab-form-card .lead-form select { color: var(--ink); }
.ab-form-card .lead-form select:invalid { color: #7E8E93; }
.ab-form-card .form-row { gap: 11px; }
.ab-form-card .form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
.ab-success-urgent { margin-top: 10px; font-size: 14px; }
.ab-success-urgent a { color: var(--teal); font-weight: 600; }
#anfrage .contact-grid { align-items: start; }

/* ---------- Finale CTA ---------- */
.ab-final { background-image: url('../images/hero.webp'); }

/* ---------- Sticky-Leiste mobil ---------- */
.ab-sticky { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; }
}

@media (max-width: 820px) {
  .ab-machine-grid { grid-template-columns: 1fr; }
  .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-sticky {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(14,59,76,.14);
  }
  .ab-sticky a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap;
  }
  .ab-sticky a i { font-size: 18px; }
  .ab-sticky-tel { background: var(--petrol); }
  .ab-sticky-wa { background: #25D366; }
  .ab-sticky-form { background: var(--teal); }
  body.page-abriss { padding-bottom: 66px; }
}

@media (max-width: 640px) {
  .ab-grid { grid-template-columns: 1fr; }
  .ab-steps { grid-template-columns: 1fr; }
  .ab-hero .hero-cta .btn { width: 100%; justify-content: center; }
  .final-cta-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
}

@media (max-width: 380px) {
  .ab-sticky a { font-size: 13px; gap: 4px; }
  .ab-sticky a i { font-size: 16px; }
}

/* ---------- Umbruch-Feinschliff: kleinste Handys (rgn-typo-umbruch, 07.10.2026) ---------- */
@media (max-width: 359px) {
  .ab-card h3 { font-size: 17px; }
  .ab-final .final-cta-title { font-size: 27px; }
  .ab-final .final-cta-sub { font-size: 16.4px; }
}

/* Tablet (641–820 px): Maschinen-Absätze laufen einspaltig über die volle Breite, 6 % kleiner gegen kurze Restzeilen */
@media (min-width: 641px) and (max-width: 820px) {
  .ab-machine p:not(.ab-machine-title) { font-size: 13.6px; }
}

/* 360er-Handys: Ablauf-H2 samt Unterzeile 2,7 % kleiner, sonst steht „ab" allein */
@media (max-width: 370px) {
  #ablauf .section-title { font-size: 21.4px; }
  #ablauf .section-sub { font-size: 14.6px; }
}
