/* =====================================================================
   DEMI · Ergänzungen für die Strato-Version
   Wird nach dem Original-CSS geladen und überschreibt gezielt.
   ===================================================================== */

:root {
  /* Akzentfarbe aus dem Logo (rote Sonne) – sparsam für Handlungsaufforderungen. */
  --accent: #c8372d;
  --accent-dark: #a82a21;
  --accent-soft: #fbeceb;
}

/* ---------------------------------------------------------------------
   01 · AKZENTFARBE
   --------------------------------------------------------------------- */
.button--primary { background: var(--accent); }
.button--primary:hover,
.button--primary:focus-visible { background: var(--accent-dark); }
.eyebrow:before { background: var(--accent); }
.eyebrow--light:before { background: #ff8a7f; }
.inquiry-progress li.is-current span { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Lesbarkeit (WCAG AA, Kontrast ≥ 4,5:1): kleine blaue Überschriften minimal dunkler.
   Vorher #397eae (4,0–4,4:1), jetzt #2f6f9f (4,9–5,4:1 auf Weiß und Hellgrau). */
.eyebrow:not(.eyebrow--light) { color: #2f6f9f; }

/* ---------------------------------------------------------------------
   02 · REGION (Footer + Über uns)
   Kleiner Standort-Pin in Rot, darunter mit etwas Abstand.
   --------------------------------------------------------------------- */
.footer__region,
.ab-region {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.footer--corporate .footer__company .footer__region {
  display: flex;
  max-width: 320px;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}
.ab-region {
  margin-top: 26px !important;
  color: var(--navy) !important;
}
/* Ortsliste unter der Region (dezent) */
.footer--corporate .footer__company .footer__towns,
.ab-profile .about-profile__copy .ab-towns {
  max-width: 320px;
  margin: 8px 0 0 20px !important;
  font-size: 12px !important;
  line-height: 1.6;
}
.footer--corporate .footer__company .footer__towns { color: #9fb3c4; }
.ab-profile .about-profile__copy .ab-towns { max-width: 520px; color: var(--muted); }

.footer__region span,
.ab-region span {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 55, 45, .22);
}

/* ---------------------------------------------------------------------
   03 · ÜBER UNS
   --------------------------------------------------------------------- */
.ab-page { background: #fff; }

/* Startbild */
.ab-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 820px);
  padding: 200px 0 88px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}
.ab-hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 72%;
}
.ab-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 30, 52, .9) 0%, rgba(10, 30, 52, .72) 38%, rgba(10, 30, 52, .18) 72%, rgba(10, 30, 52, .05) 100%),
    linear-gradient(0deg, rgba(10, 30, 52, .55) 0%, transparent 45%);
}
.ab-hero__inner { position: relative; }
.ab-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 78px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.ab-hero__lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.ab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}
.ab-hero__actions .button { margin-top: 0; }
.ab-hero__link {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  padding-bottom: 4px;
}
.ab-hero__link:hover { border-color: #fff; }

/* Kennzahlen im Startbild – rein typografisch, wie im Original */
.ab-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 34px;
}
.ab-hero__facts div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ab-hero__facts strong {
  color: #fff;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 750;
  letter-spacing: -.06em;
  line-height: 1;
}
.ab-hero__facts span {
  max-width: 120px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.5;
}

/* Startbild am PC: geteilt – Text links auf Dunkelblau, Foto rechts im Hochformat.
   (Das Hochformat-Foto wirkt über die volle Breite gezogen zu grob.)
   Handy-Ansicht bleibt unverändert. */
@media (min-width: 861px) {
  .ab-hero {
    align-items: center;
    min-height: min(80vh, 720px);
    padding: 150px 0 80px;
  }
  .ab-hero__image {
    left: auto;
    right: 0;
    width: 44%;
    object-position: 50% 45%;
  }
  .ab-hero__shade { display: none; }
  .ab-hero__inner > * { max-width: min(560px, 46vw); }
  .ab-hero h1 { font-size: clamp(40px, 4.6vw, 68px); }
}

/* Wer wir sind – mehr Luft als im Original, weil direkt nach dem Startbild */
.ab-profile { padding: clamp(70px, 9vw, 120px) 0; }
.ab-profile .about-profile__copy p:not(.eyebrow):not(.ab-region) { max-width: 620px; }

/* Zertifikate */
.ab-certs { background: var(--soft); }
.ab-certs .section-heading p:not(.eyebrow) { color: #566573; font-size: 17px; line-height: 1.7; }
.ab-certs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.ab-cert {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ab-cert__preview {
  align-self: start;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 30px -18px rgba(17, 43, 73, .5);
  transition: transform .25s ease;
}
.ab-cert__preview:hover { transform: translateY(-3px) rotate(-1deg); }
.ab-cert__preview img { display: block; width: 100%; height: auto; }
.ab-cert__iso {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
}
.ab-cert h3 { margin: 0 0 12px; color: var(--navy); font-size: 22px; font-weight: 680; }
.ab-cert p { margin: 0 0 14px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.ab-cert ul { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.ab-cert__meta { color: var(--muted) !important; font-size: 13px !important; font-weight: 650; }
.ab-cert .text-link { margin-top: 0; }

@media (max-width: 1080px) {
  .ab-certs__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ab-hero { min-height: 640px; padding: 150px 0 56px; }
  .ab-hero__image { object-position: 62% 70%; }
  .ab-hero__shade {
    background: linear-gradient(0deg, rgba(10, 30, 52, .92) 0%, rgba(10, 30, 52, .7) 45%, rgba(10, 30, 52, .25) 100%);
  }
  .ab-hero__actions { flex-direction: column; align-items: stretch; }
  .ab-hero__actions .button { justify-content: space-between; }
  .ab-hero__link { align-self: flex-start; }
  .ab-hero { min-height: 700px; }
  .ab-hero__facts { gap: 16px 28px; margin-top: 26px; }
  .ab-hero__facts strong { font-size: 40px; }
  .ab-cert { grid-template-columns: 1fr; }
  .ab-cert__preview { max-width: 180px; }
}

/* ---------------------------------------------------------------------
   STARTSEITE · Startbild auf dem Handy
   Bild bleibt in voller Größe; der Ausschnitt ist nach rechts verschoben,
   sodass die Kehrmaschine am rechten Rand angeschnitten zu sehen ist.
   Am PC bleibt alles wie bisher.
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
  .home-page .hero--customer-photo .hero__image { object-position: 67% center; }
  .home-page .hero--customer-photo .hero__overlay {
    background:
      linear-gradient(90deg, rgba(6, 27, 52, .93) 0%, rgba(6, 27, 52, .78) 45%, rgba(6, 27, 52, .2) 85%, rgba(6, 27, 52, .08) 100%),
      linear-gradient(180deg, rgba(6, 27, 52, .15) 0%, rgba(6, 27, 52, .35) 100%);
  }
}

/* Leistungskarten: lange Namen umbrechen statt abschneiden (v. a. Handy) */
.service-directory-card__title h2 {
  min-width: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* ---------------------------------------------------------------------
   04 · RECHTSTEXTE (Zwischenüberschriften, Sprungziele)
   --------------------------------------------------------------------- */
.legal-card h3 {
  margin: 30px 0 12px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -.01em;
}
.legal-card[id],
.ab-certs[id] { scroll-margin-top: 110px; }

/* ---------------------------------------------------------------------
   05 · FORMULARE
   --------------------------------------------------------------------- */
/* Beim Schrittwechsel nicht unter der festen Kopfzeile verschwinden */
.inquiry-wizard,
.inquiry-success { scroll-margin-top: 150px; }

.inquiry-files { margin: 12px 0 0; padding: 0; list-style: none; }
.inquiry-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  font-size: 13px;
}
.inquiry-files li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inquiry-files button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}
