/* =================================================
   IBP Custom Elements — EoD Section
   ================================================= */

/* ── ZIELGRUPPEN SPLIT ───────────────────────────── */

.section.zielgruppen_split {
  display: flex !important;
  flex-direction: row !important;
  min-height: 80vh;
  overflow: hidden;
}

/* Jedes Panel ist ein Link */
.zielgruppen_split__panel {
  position: relative;
  flex: 1 1 50% !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start;
  text-decoration: none;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 480px;
  /* Dunkles Fallback — sichtbar auch ohne Hintergrundbild */
  background-color: #1a2230;
}

/* Hover: aktives Panel wächst leicht */
.zielgruppen_split__panel:hover {
  flex: 1.12;
}

/* Hintergrundbild — skaliert beim Hover */
.zielgruppen_split__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.zielgruppen_split__panel:hover .zielgruppen_split__bg {
  transform: scale(1.04);
}

/* Overlay — wird beim Hover etwas heller */
.zielgruppen_split__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.82) 100%
  );
  transition: background 0.45s ease;
}

.zielgruppen_split__panel:hover .zielgruppen_split__overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.38) 40%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

/* Blau-Akzent-Linie — wächst von unten rein */
.zielgruppen_split__panel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--main-hl-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.zielgruppen_split__panel:hover::after {
  transform: scaleX(1);
}

/* Content-Block — links unten, mit Padding */
.zielgruppen_split__content {
  position: relative;
  z-index: 1;
  padding: 48px 52px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transform: translateY(6px);
  transition: transform 0.45s ease;
}

.zielgruppen_split__panel:hover .zielgruppen_split__content {
  transform: translateY(0);
}

/* Kicker */
.zielgruppen_split__kicker {
  font-family: 'oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--main-hl-color);
  line-height: 1;
}

/* Headline */
.zielgruppen_split__content h2 {
  font-family: 'oswald', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Subtext */
.zielgruppen_split__content p {
  font-size: 15px;
  line-height: 1.65em;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 340px;
}

/* Button — bereits sichtbar, hebt sich beim Hover */
.zielgruppen_split__content .btn {
  margin-top: 8px;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.zielgruppen_split__panel:hover .zielgruppen_split__content .btn {
  opacity: 1;
  transform: translateX(4px);
}

/* Trennlinie zwischen den Panels */
.zielgruppen_split__panel--left {
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* ── Responsive: unter 640px vertikal ── */
@media (max-width: 640px) {
  .section.zielgruppen_split {
    flex-direction: column;
    min-height: unset;
  }

  .zielgruppen_split__panel {
    min-height: 65vw;
    flex: unset !important;
  }

  .zielgruppen_split__panel--left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .zielgruppen_split__content {
    padding: 32px 28px;
  }
}

/* ── PROCESS STEPS ───────────────────────────────── */

/* Section bekommt dunklen Hintergrund (bgcolor-3 equivalent) */
.section.process_steps {
  background: #2b333f;
  color: #fff;
  overflow: hidden;
}

/* Header-Block */
.process_steps__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5em;
}

.process_steps__header h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.process_steps__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.6em;
}

/* ── Track ── */
.process_steps__track {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* Verbindungslinie zwischen den Kreisen */
.process_steps__track::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.2) 10%,
    rgba(255,255,255,0.2) 90%,
    transparent
  );
  z-index: 0;
}

/* Animierte Fülllinie (scoped via JS-Klasse) */
.process_steps__track::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(10% + 28px);
  width: 0;
  height: 1px;
  background: var(--main-hl-color);
  z-index: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.process_steps__track.is-animated::after {
  width: calc(80% - 56px);
}

/* ── Einzelner Schritt ── */
.process_steps__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0; /* verhindert overflow bei langem Text */
  /* Startzustand für Entrance-Animation */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Stagger: jedes Item kommt etwas später */
.process_steps__item[data-step="1"] { transition-delay: 0.1s; }
.process_steps__item[data-step="2"] { transition-delay: 0.25s; }
.process_steps__item[data-step="3"] { transition-delay: 0.4s; }
.process_steps__item[data-step="4"] { transition-delay: 0.55s; }
.process_steps__item[data-step="5"] { transition-delay: 0.7s; }

.process_steps__item.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Kreis-Bereich ── */
.process_steps__top {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2em;
}

.process_steps__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--main-hl-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(69,130,184,0.25), 0 0 0 8px rgba(69,130,184,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.process_steps__num {
  font-family: 'oswald', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  line-height: 1;
}

.process_steps__item:hover .process_steps__circle {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(69,130,184,0.5), 0 0 0 12px rgba(69,130,184,0.12), 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Card ── */
.process_steps__card {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 20px 18px 40px; /* Platz unten für den Pfeil */
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Linke Akzentlinie (wächst von oben nach unten rein) */
.process_steps__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--main-hl-color);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s ease;
}

/* Pfeil unten rechts */
.process_steps__card::after {
  content: '→';
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.2);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* letzter Step: kein Pfeil */
.process_steps__item:last-child .process_steps__card::after {
  content: '✓';
  color: rgba(69,130,184,0.4);
}

.process_steps__item:hover .process_steps__card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}

.process_steps__item:hover .process_steps__card::before {
  transform: scaleY(1);
}

.process_steps__item:hover .process_steps__card::after {
  color: rgba(255,255,255,0.55);
  transform: translateX(3px);
}

.process_steps__item:last-child:hover .process_steps__card::after {
  transform: none;
  color: var(--main-hl-color);
}

/* Große Hintergrundnummer — jetzt oben rechts, fließt aus der Card raus */
.process_steps__bg-num {
  position: absolute;
  top: -18px;
  right: -2px;
  font-family: 'oswald', sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.045);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.process_steps__item:hover .process_steps__bg-num {
  color: rgba(255,255,255,0.08);
}

/* Card-Text */
.process_steps__card h3 {
  font-family: 'oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--main-hl-color);
  margin: 0 0 0.55em;
  line-height: 1.3em;
}

.process_steps__card p {
  font-size: 13.5px;
  line-height: 1.7em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ── Responsive: unter 750px vertikal ── */

@media (max-width: 750px) {

  .process_steps__track {
    flex-direction: column;
    gap: 0;
  }

  .process_steps__track::before,
  .process_steps__track::after {
    display: none;
  }

  .process_steps__item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 2em;
    gap: 16px;
  }

  .process_steps__item:last-child {
    padding-bottom: 0;
  }

  .process_steps__top {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .process_steps__card {
    text-align: left;
    padding: 16px;
  }

  .process_steps__bg-num {
    font-size: 60px;
  }
}

/* ── EOD TEAM ─────────────────────────────────────── */

.section.eod_team {
  background: #f3f3f3; /* bgcolor-2 */
}

/* Header */
.eod_team__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3em;
}

.eod_team__sub {
  font-size: 17px;
  color: rgba(0,0,0,0.45);
  margin: 0.3em 0 0;
  line-height: 1.5em;
}

/* Grid: 5 Spalten auf Desktop — align-items:stretch = gleiche Höhe */
.eod_team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Einzelne Karte — volle Höhe über flex */
.eod_team__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.eod_team__item:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Mittlere Karte (Kristina) — leicht hervorgehoben */
.eod_team__item--center {
  border-top: 3px solid var(--main-hl-color);
}

/* Foto: quadratisch, full width */
.eod_team__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecf0;
}

.eod_team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.eod_team__item:hover .eod_team__photo img {
  transform: scale(1.04);
}

/* Info-Block — füllt restliche Kartenhöhe */
.eod_team__info {
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Oberer Bereich (Name, Position, Focus) füllt verfügbaren Platz */
.eod_team__info-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.eod_team__name {
  font-family: 'oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2b333f;
  line-height: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eod_team__pos {
  font-size: 12.5px;
  color: rgba(0,0,0,0.45);
  line-height: 1.4em;
  margin-bottom: 6px;
}

.eod_team__focus {
  font-size: 11.5px;
  color: var(--main-hl-color);
  line-height: 1.4em;
  font-style: italic;
  margin-top: 2px;
  margin-bottom: 4px;
  /* Feste Höhe = 2 Zeilen → Trennlinie sitzt überall gleich */
  min-height: 2.8em;
}

/* Kontakt-Block: E-Mail + Telefon */
.eod_team__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.07);
  /* Feste Mindesthöhe = Mail + Telefon-Zeile → Strich immer gleich hoch */
  min-height: 54px;
}

.eod_team__contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  transition: color 0.2s ease;
  /* Kein Zeilenumbruch — Überlauf mit Ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.eod_team__contact-link:hover {
  color: var(--main-hl-color);
}

.eod_team__contact-link svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* Responsive: ab 900px → 3 Spalten, Kristina oben mittig */
@media (max-width: 900px) {
  .eod_team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Kristina in die Mitte der ersten Reihe */
  .eod_team__item--center {
    order: -1;
    grid-column: 2;
  }
}

/* Responsive: unter 560px → 2 Spalten */
@media (max-width: 560px) {
  .eod_team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .eod_team__item--center {
    order: 0;
    grid-column: span 2;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ── USP GRID ────────────────────────────────────── */

.section.usp_grid {
  background: #2b333f;
  color: #fff;
}

.usp_grid__header {
  text-align: left;
  margin-bottom: 2em;
}

.usp_grid__header h2 {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* 6-Spalten-Grid: Zeile 1 → 3 gleiche Karten, Zeile 2 → 2 Karten zentriert */
.usp_grid__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}

.usp_grid__item:nth-child(1) { grid-column: 1 / 3; }
.usp_grid__item:nth-child(2) { grid-column: 3 / 5; }
.usp_grid__item:nth-child(3) { grid-column: 5 / 7; }
.usp_grid__item:nth-child(4) { grid-column: 2 / 4; }
.usp_grid__item:nth-child(5) { grid-column: 4 / 6; }

/* Karte */
.usp_grid__item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 28px 26px 32px;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.usp_grid__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--main-hl-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.usp_grid__item:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.usp_grid__item:hover::before {
  transform: scaleX(1);
}

.usp_grid__item h3 {
  font-family: 'oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 0.7em;
  line-height: 1.3em;
}

.usp_grid__item p {
  font-size: 14px;
  line-height: 1.7em;
  color: rgba(255,255,255,0.6);
  margin: 0;
  flex: 1;
}

.usp_grid__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--main-hl-color);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s ease;
}

.usp_grid__cta:hover {
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 860px) {
  .usp_grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .usp_grid__item:nth-child(n) {
    grid-column: unset;
  }
}

@media (max-width: 540px) {
  .usp_grid__grid {
    grid-template-columns: 1fr;
  }
}

/* ── FACHKOMPETENZEN GRID ────────────────────────── */

.section.fachkompetenzen_grid {
  background: #fff;
}

.fk_grid__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
}

.fk_grid__header h2 {
  margin-bottom: 14px;
}

.fk_grid__header p {
  font-size: 15.5px;
  color: #555;
  line-height: 1.7;
}

/* 3-column grid by default */
.fk_grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Wide item spans all 3 columns */
.fk_grid__item--wide {
  grid-column: 1 / -1;
}

.fk_grid__item {
  background: #f3f3f3;
  border-radius: 6px;
  padding: 28px 28px 24px;
  border-top: 3px solid var(--main-hl-color, #4582b8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: default;
}

.fk_grid__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  background: #fff;
}

/* Scroll-in animation */
.fk_grid__item {
  opacity: 1;
  transform: translateY(0);
}
.fk-animate .fk_grid__item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.fk-animate .fk_grid__item.fk-visible {
  opacity: 1;
  transform: translateY(0);
}
.fk-animate .fk_grid__item.fk-visible:hover {
  transform: translateY(-5px);
}

.fk_grid__cat {
  font-size: 15px;
  font-weight: bold;
  color: #2b333f;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.fk_grid__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fk_grid__tags span {
  display: inline-block;
  background: #fff;
  color: #555;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #ddd;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.fk_grid__item:hover .fk_grid__tags span {
  border-color: #bbb;
}

.fk_grid__tags span:hover {
  background: var(--main-hl-color, #4582b8);
  color: #fff;
  border-color: var(--main-hl-color, #4582b8);
}

/* Wide item: tags stretch horizontally */
.fk_grid__item--wide .fk_grid__tags span {
  background: #fff;
  border-color: var(--main-hl-color, #4582b8);
  color: var(--main-hl-color, #4582b8);
}

/* Responsive */
@media (max-width: 900px) {
  .fk_grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fk_grid__item--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .fk_grid__grid {
    grid-template-columns: 1fr;
  }
  .fk_grid__item--wide {
    grid-column: 1;
  }
}
