/* =========================================================
   Über Uns (Elementor-Seite 178, Template „Elementor Full Width“)
   ========================================================= */

/* ---------- Hero (#a76b2bf) ---------- */
.ab-hero {
  position: relative;
  display: flex;
  min-height: 80vh;
  padding-block: 60px;
  background-color: #f6f6f6;
  overflow: hidden;
}
.ab-hero-bg, .ab-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #001D3B;
  opacity: .7;
}
.ab-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 30px;
}
.ab-hero-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.ab-hero-title {
  align-self: center;
  width: 724px;
  max-width: 100%;
  margin-top: -20px;
  font-family: var(--f-text);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}
.ab-hero-text {
  font-family: var(--f-text);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-align: center;
  color: rgba(255, 255, 255, .93);
}
.ab-hero-text.is-animated { animation-delay: .3s; }

/* ---------- Gründer (#6a4618c) ---------- */
.ab-intro-sec { padding: 50px 15px; }
.ab-intro {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 50px 30px;
}
.ab-intro-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 0 0 auto;
  width: 49.454%;
  min-width: 0;
}
.ab-intro-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  min-width: 0;
}
.ab-intro-title {
  font-family: var(--f-text);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #000;
}
.ab-intro-copy {
  width: 514px;
  max-width: 100%;
  font-family: var(--f-sys);
  font-size: 1rem;
  /* Elementor: 500 – im Original fällt „Source Sans Pro“ auf generisches Sans-serif (Helvetica ohne Medium)
     zurück und wird daher regulär dargestellt */
  font-weight: 400;
  line-height: 1.8em;
  letter-spacing: 1px;
  color: #000;
}
.ab-intro-copy p { margin-block-end: .9rem; }
.ab-intro-copy h3 {
  margin-block: .5rem 1rem;
  font-family: inherit;
  font-size: 1.75rem;
  font-weight: 400; /* Theme-Reset 500, sichtbar regulär (s. o.) */
  line-height: 1.2;
  color: inherit;
}
.ab-intro-img {
  width: 100%;
  max-width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}

/* ---------- CTA (#0b6f737) ---------- */
.ab-cta.is-animated { animation-delay: .2s; }
.cta-text.ab-cta-text { margin-bottom: 0; }
.ab-cta-btn { padding-top: 15px; }

/* Buttons mit weißem Rahmen (#e826b01, #a47b890) */
.btn--primary.ab-btn-border { border: 2px solid var(--c-white); }
.btn--primary.ab-btn-border:hover, .btn--primary.ab-btn-border:focus-visible {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
}
.ab-btn--icon-left { gap: 5px; }

/* ---------- Mission (#795d319) ---------- */
.ab-mission-sec { padding: 0 15px 0 0; }
.ab-mission {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 15px;
  border-radius: 20px;
  background: var(--c-panel);
}
.ab-mission-title {
  padding-bottom: 20px;
  font-family: var(--f-heading);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2em;
  text-align: center;
  color: var(--c-primary);
}
.ab-steps {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0 50px;
}
.ab-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 25%;
  min-width: 0;
  border: 0 solid #004A9973;
}
.ab-step:nth-child(1).is-animated { animation-delay: .75s; }
.ab-step:nth-child(2).is-animated { animation-delay: 1s; }
.ab-step:nth-child(3).is-animated { animation-delay: 1.25s; }
.ab-step:nth-child(4).is-animated { animation-delay: 1.5s; }
.ab-step-circle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 150px;
  min-height: 150px;
  margin-bottom: 23px;
  border-radius: 50%;
  background: var(--c-primary);
}
/* roter Kreis, der beim Hover aufwächst (Custom CSS des Originals) */
.ab-step-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: #D52B1E;
  transform: scale(.5);
  opacity: 0;
  transition: all .4s linear;
}
.ab-step:hover .ab-step-circle::after { transform: scale(1); opacity: 1; }
.ab-step-icon { position: relative; z-index: 2; width: auto; height: 70px; }
.ab-step-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: var(--c-secondary);
}
.ab-step-num {
  font-family: var(--f-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2em;
  color: #fff;
}
.ab-step-title {
  align-self: center;
  width: 250px;
  max-width: 100%;
  font-family: var(--f-plex);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2em;
  text-align: center;
  color: var(--c-primary);
}
.ab-mission-text {
  align-self: center;
  width: 610px;
  max-width: 100%;
  padding-top: 20px;
  font-family: var(--f-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: #000;
}
.ab-mission-text p { margin-block-end: .9rem; }

/* ---------- Werte (#19851eb) ---------- */
.ab-values-sec { padding: 80px 15px; }
.ab-values-inner { display: flex; flex-direction: column; gap: 30px; }
.ab-values { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.ab-values-title {
  font-family: var(--f-heading);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2em;
  text-align: center;
  color: #000;
}
.ab-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 20px;
}
.ab-value {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 50px 30px;
  border-radius: 10px;
  background: var(--c-panel);
}
.ab-value-media { text-align: start; }
.ab-value-icon { width: 20%; max-width: 100%; }
.ab-value-title {
  font-family: var(--f-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2em;
  color: #000;
}
.ab-value-text {
  font-family: var(--f-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
}
.ab-value-text p { margin-block-end: .9rem; }
.ab-values-btn { padding-top: 20px; }

/* =========================================================
   TABLET ≤ 1024px
   ========================================================= */
@media (max-width: 1024px) {
  .ab-hero-title { width: 491px; margin-top: 0; font-size: 48px; line-height: 72px; }
  .ab-hero-text { align-self: center; width: 430px; max-width: 100%; font-size: 18px; }

  .ab-intro-title { font-size: 30px; text-align: center; }
  .ab-intro-copy { align-self: center; width: 576px; }

  .ab-mission-title { font-size: 24px; }
  .ab-steps { flex-wrap: wrap; gap: 40px 20px; }
  .ab-step { width: 31%; }
  .ab-mission-text { line-height: 1.5; }

  .ab-values-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-value-text { line-height: 1.5; }
}

/* =========================================================
   MOBIL ≤ 767px
   ========================================================= */
@media (max-width: 767px) {
  .ab-hero { min-height: 70vh; padding: 0 15px; }
  .ab-hero-title { width: 360px; font-size: 30px; line-height: 1.2; }
  .ab-hero-text { font-size: 16px; line-height: 1.4; }

  .ab-intro { flex-direction: column; }
  .ab-intro-text, .ab-intro-media { width: 100%; }
  .ab-intro-title { font-size: 24px; }
  .ab-intro-copy { width: 400px; font-size: 16px; line-height: 20px; }
  .ab-intro-img { height: 300px; }

  .sec--cta.ab-cta-sec { margin-bottom: 50px; }
  .btn--primary.ab-btn-sm { font-size: 14px; line-height: 1.4; }

  .ab-mission-sec { padding: 0 15px; }
  /* Schritt-Karten mobil mit Rahmen, Hintergrund und Schatten (Custom CSS entfernt beides erst ab 768 px) */
  .ab-step {
    width: 100%;
    padding: 20px;
    border-width: 2px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, .125);
  }
  .ab-mission-title, .ab-step-num, .ab-values-title, .ab-value-title, .cta-title { line-height: 1.1em; }
  .ab-mission-text { line-height: 1.4; }
  .ab-mission .btn--primary, .ab-values-btn .btn--primary { display: inline-flex; width: auto; }

  .ab-values-sec { padding: 30px 15px; }
  .ab-values-title { align-self: center; width: 240px; max-width: 100%; font-size: 24px; }
  .ab-values-grid { grid-template-columns: 1fr; }
  .ab-value { gap: 15px; }
  /* Im Original ist der Karten-Container mobil mehrzeilig (flex-wrap: wrap): Die Höhe des Bild-Widgets wird
     mit der Eigenbreite des Icons berechnet (128 px × 20 % → ca. 26 px Zeile + 20 px Padding), das tatsächlich
     60 px hohe Icon ragt in Padding und Abstand hinein. */
  .ab-value-media { height: 46.4px; padding-bottom: 20px; }
  .ab-value-title { font-size: 18px; }
  .ab-value-text { line-height: 1.4; }
  .ab-values-btn { padding-top: 0; }
}
