/* ---------------------------------------------------------------------------
   Über-uns-Seite (/ueber-uns/)
   Baut auf style.css, blog.css und leistung.css auf: Hero, Logoband,
   „Warum wir“ und Kontaktblock kommen von dort. Hier stehen nur die neuen
   Module Team, Werte, Geschichte und Weiterleitungen.
   --------------------------------------------------------------------------- */

.uu-hero {
  padding-bottom: 24px;
}

/* Die Headline ist länger als auf den Leistungsseiten, daher etwas kleiner */
.uebersicht-hero.leistung-hero.uu-hero h1 {
  font-size: clamp(54px, 7vw, 96px);
}

.uu-trusted {
  padding: 40px 0 88px;
}

/* Gemeinsamer Kopf der neuen Module */
.uu-head h2 {
  margin: 0;
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line);
  overflow-wrap: normal;
}

.uu-intro {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--text-l);
  font-weight: var(--subline-weight);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Team
   --------------------------------------------------------------------------- */

.uu-team {
  padding: 0 0 104px;
  scroll-margin-top: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

/* Karte: quadratisches Foto (oben gerundet) + weiße Namensfläche (unten gerundet).
   Beim Hover hebt sich die ganze Karte mit dem sanften Schatten der Startseite. */
.team-card {
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(8, 8, 8, 0);
  transition: box-shadow .28s ease, transform .28s ease;
}

.team-card picture {
  display: block;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #e9d3e6;
}

.team-card picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .5s ease;
}

.team-name {
  position: relative;
  display: flex;
  min-height: 74px;
  padding: 14px 16px 16px;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 16px 16px;
  background: var(--white);
}

.team-name b {
  color: var(--ink);
  font-size: var(--text-m);
  font-weight: 600;
  line-height: 1.25;
}

.team-name span {
  margin-top: 3px;
  color: var(--purple);
  font-size: var(--text-s);
  font-weight: 500;
  line-height: 1.3;
}

/* Name mit LinkedIn-Icon: Platz für das Icon rechts */
.team-name:has(.team-linkedin) {
  padding-right: 48px;
}

.team-linkedin {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  transform: translateY(-50%);
  transition: background .2s ease;
}

.team-linkedin svg {
  width: 24px;
  height: 24px;
  fill: var(--purple);
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    box-shadow: 0 18px 40px rgba(8, 8, 8, .12);
    transform: translateY(-2px);
  }

  .team-card:not(.is-platzhalter):hover picture img {
    transform: scale(1.03);
  }

  .team-linkedin:hover {
    background: var(--soft-purple);
  }
}

/* ---------------------------------------------------------------------------
   Warum wir: kleiner Link unter der Liste
   --------------------------------------------------------------------------- */

.uu-why-link,
.uu-kontakt-aktionen .text-link {
  display: inline-block;
  margin: 36px 0 0;
  text-align: left;
}

.uu-kontakt-aktionen .text-link {
  margin: 0;
}

/* Abstand zum Team-Modul: kein doppeltes Polster */
.page-ueber-uns .why {
  padding-top: 0;
}

/* ---------------------------------------------------------------------------
   Werte (Indigo-Fläche)
   --------------------------------------------------------------------------- */

.uu-werte {
  padding: 96px 0 104px;
  background: var(--purple);
  color: #fff;
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.werte-grid li {
  padding-top: 28px;
  border-top: 2px solid rgba(255, 255, 255, .76);
}

.wert-icon {
  display: block;
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  color: #fff;
  fill: #fff;
}

.wert-knockout {
  stroke: var(--purple);
}

.werte-grid h3 {
  margin: 0;
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.1;
}

.werte-grid .wert-sub {
  margin: 8px 0 18px;
  color: #fff;
  font-size: var(--text-m);
  font-weight: 600;
}

.werte-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Geschichte
   --------------------------------------------------------------------------- */

.uu-geschichte {
  padding-top: 104px;
}

.uu-geschichte-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 88px;
  align-items: start;
}

.uu-geschichte .uu-head {
  position: sticky;
  top: 96px;
}

/* Schmale Spalte: H2 eine Stufe kleiner, damit sie in zwei Zeilen bleibt */
.uu-geschichte .uu-head h2 {
  font-size: clamp(40px, 3.8vw, 54px);
}

.zeitleiste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zeitleiste li {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
}

.zeitleiste li:first-child {
  padding-top: 0;
  border-top: 0;
}

.zeitleiste li:last-child {
  border-bottom: 1px solid var(--line);
}

.zeitleiste span {
  display: block;
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.zeitleiste h3 {
  margin: 0 0 12px;
  font-size: var(--h3-size);
  line-height: 1.15;
}

.zeitleiste p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-m);
  font-weight: var(--subline-weight);
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   Weiter entdecken (kein Dead-end vor dem Kontaktblock)
   --------------------------------------------------------------------------- */

.uu-weiter {
  padding: 8px 0 0;
}

.uu-weiter h2 {
  margin-bottom: 26px;
}

.weiter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weiter-grid a {
  position: relative;
  display: flex;
  min-height: 168px;
  padding: 26px 64px 26px 26px;
  flex-direction: column;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(8, 8, 8, 0);
  transition: box-shadow .28s ease, transform .28s ease;
}

.weiter-grid span {
  margin-bottom: 14px;
  color: var(--purple);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-spacing);
  text-transform: uppercase;
}

.weiter-grid b {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.weiter-grid i {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: var(--purple);
  font-size: 22px;
  font-style: normal;
  transition: transform .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .weiter-grid a:hover {
    box-shadow: 0 18px 40px rgba(8, 8, 8, .12);
    transform: translateY(-2px);
  }

  .weiter-grid a:hover i {
    transform: translateX(4px);
  }
}

.uu-kontakt-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
}

/* ---------------------------------------------------------------------------
   Responsiv
   --------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .werte-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
  }

  .uu-geschichte-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .uu-geschichte .uu-head {
    position: static;
  }
}

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

  .weiter-grid a {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .team-name {
    min-height: 64px;
    padding: 12px 12px 14px;
  }

  .team-name b {
    font-size: 14px;
  }

  .team-name span {
    font-size: 12px;
  }

  .team-name:has(.team-linkedin) {
    padding-right: 40px;
  }

  .team-linkedin {
    right: 8px;
  }

  .werte-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 48px;
  }

  .uu-werte {
    padding: 72px 0 80px;
  }

  .uu-team {
    padding-bottom: 80px;
  }

  .uu-head h2 br {
    display: none;
  }
}
