/* =========================================================
   Seite "Über uns" (ueber-uns.html)
   Baut auf legal.css auf (Header, Footer, Buttons, Tokens).
   ========================================================= */

/* Durchgehender Seitenhintergrund wie auf der Startseite: legal.css gibt
   dem body im Dark-Theme eine volle Farbe, die den animierten
   #bg-neural-Hintergrund (Goldschimmer + Netz) verdeckt. */
[data-theme="dark"] body { background: transparent; }

/* Einblenden beim Scrollen wie auf der Startseite: kurze, ruhige
   Bewegung (8 px statt 24 px), damit nichts "nachhaengt". */
.legal-reveal { transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s ease; }

/* Waehrend des Scrollens keine Hover-Effekte: sonst heben sich Fotos und
   Karten, die unter der stillstehenden Maus durchlaufen (Klasse setzt
   assets/js/scroll-hover-guard.js). */
html.is-scrolling body { pointer-events: none; }

/* ---------- Hero: Unser Team ----------
   Hintergrundbild hier eintragen, z. B.:
   --team-hero-img: url("../img/team-hero-bg.jpg");
   Ohne Bild bleibt der dunkle Verlauf mit Goldschimmer. */
.team-hero {
  --team-hero-img: url("../img/team-hero-bg.webp");
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(34rem, 88vh, 52rem);
  /* Hinter den festen Header ziehen, damit das Bild bis oben laeuft. */
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + var(--space-8)) var(--space-5, 1.5rem) var(--space-8);
  color: #f4f1ec;
  text-align: center;
  background-color: #0d0b08;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(194, 174, 125, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.55) 0%, rgba(10, 9, 7, 0.78) 60%, rgba(10, 9, 7, 0.96) 100%),
    var(--team-hero-img);
  background-size: auto, auto, cover;
  /* 70 %: auf schmalen Screens sonst angeschnittenes Wandlogo am linken Rand */
  background-position: center, center, 70% 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Desktop: Bild leicht vergroessert und rechts ausgerichtet, damit das
   Wandlogo im Foto links neben der Ueberschrift liegt statt dahinter. */
@media (min-width: 64em) {
  .team-hero {
    background-size: auto, auto, 130% auto;
    background-position: center, center, 100% 40%;
  }
}
/* Helles Design: Foto unten weich auslaufen lassen statt hart abschneiden.
   Der Hintergrund wandert dafuer auf ::before und wird per Maske nach
   unten durchsichtig, so geht er nahtlos in die Seite ueber, egal welcher
   Farbton und welches Raster darunter liegt. */
[data-theme="light"] .team-hero { background: none; }
[data-theme="light"] .team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #0d0b08;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(194, 174, 125, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.55) 0%, rgba(10, 9, 7, 0.78) 60%, rgba(10, 9, 7, 0.96) 100%),
    var(--team-hero-img);
  background-size: auto, auto, cover;
  background-position: center, center, 70% 30%;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  pointer-events: none;
}
@media (min-width: 64em) {
  [data-theme="light"] .team-hero::before {
    background-size: auto, auto, 130% auto;
    background-position: center, center, 100% 40%;
  }
}
/* Feines Goldraster wie im Impressum-Hero */
.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244, 241, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 236, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
.team-hero__inner {
  width: 100%;
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-hero__eyebrow {
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(194, 174, 125, 0.45);
  border-radius: 999px;
  background: rgba(194, 174, 125, 0.08);
}
/* Ueberschriften im Stil der Startseite ("Dein BNO-Team:"):
   Poppins 700, Gold-Teil in Libre Baskerville kursiv mit Glow. */
.team-hero__title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); /* 42 → 80 */
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f4f1ec;
  margin: 0 0 var(--space-5, 1.5rem);
}
.team-hero__title em {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(194, 174, 125, 0.55), 0 0 60px rgba(194, 174, 125, 0.25);
}
.team-hero__lead {
  font-family: "Montserrat", var(--font-grotesk);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.78);
  max-width: 40rem;
  margin: 0 0 var(--space-8);
  text-wrap: pretty;
}

/* ---------- Vertrauensleiste: Erfahrung des Teams ---------- */
.team-hero__trust { width: 100%; margin-bottom: var(--space-8); }
.team-hero__trust-label {
  font-family: var(--font-grotesk);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.6);
  margin: 0 0 var(--space-4);
}
.team-hero__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
/* Gleiche Champagner-Kacheln wie die Logos auf den Team-Karten
   (.founder-card__cert in styles.css). */
.team-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 9.5rem;
  height: 5rem;
  padding: 0.7rem 0.9rem;
  /* Hochskalierte Logos (Coop) sonst als helle Balken neben der Kachel */
  overflow: hidden;
  /* multiply nur innerhalb der Kachel, nicht mit dem animierten Hintergrund */
  isolation: isolate;
  background: linear-gradient(160deg, #fbf7ee 0%, #efe5cf 100%);
  border: 1px solid rgba(194, 174, 125, 0.75);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(194, 174, 125, 0.12),
    0 0 22px rgba(194, 174, 125, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-hero__logo:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(194, 174, 125, 0.25),
    0 0 32px rgba(194, 174, 125, 0.4),
    0 16px 34px rgba(0, 0, 0, 0.45);
}
.team-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
/* Zweite Zeile: Zertifikate, etwas groessere Kacheln (TUEV-Siegel ist breit). */
.team-hero__trust-label--next { margin-top: var(--space-6, 2rem); }
.team-hero__logos--certs .team-hero__logo { width: 12rem; height: 6rem; }
/* Coop-Datei hat breiten weissen Rand: hochskalieren. */
.team-hero__logo img[src*="logo-coop"] { transform: scale(1.3); }

.team-hero__cta {
  font-weight: 700;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  min-height: 3.25rem;
  padding: 0.85rem 2rem;
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 48em) {
  .team-hero { min-height: auto; }
  .team-hero__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 22rem; margin-inline: auto; }
  .team-hero__logo { width: 100%; height: 4.5rem; }
  /* Fuenftes Logo mittig unter den 2er-Reihen */
  .team-hero__logo:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.375rem); }
  .team-hero__logos--certs .team-hero__logo { width: 100%; height: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .team-hero__logo, .team-hero__logo:hover { transition: none; transform: none; }
}

/* ---------- Leitung des Teams ----------
   Vorlage: Foto ragt erhoeht ueber eine versetzte dunkle Textbox,
   Seiten wechseln pro Karte. Foto und Box teilen sich eine Rasterzeile;
   die Box ist nach unten versetzt und schiebt sich unter das Foto. */
.lead-team {
  --lead-photo-w: 25rem;
  --lead-overlap: 8rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5, 1.5rem) calc(var(--space-8) * 1.5);
}
.lead-team__title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  /* gleiche Groesse wie .section__title auf der Startseite */
  font-size: var(--fs-4xl);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
  margin: 0 0 calc(var(--space-8) * 1.25);
}
.lead-team__title em {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(194, 174, 125, 0.55), 0 0 60px rgba(194, 174, 125, 0.25);
}
.lead-card {
  display: grid;
  grid-template-columns: var(--lead-photo-w) minmax(0, 1fr);
  align-items: start;
  margin-bottom: calc(var(--space-8) * 1.5);
}
.lead-card:last-child { margin-bottom: 0; }
.lead-card__photo {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* Variante A "Tiefe & Goldschein" wie die Fotos der Startseite */
  border: 1px solid rgba(194, 174, 125, 0.5);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(194, 174, 125, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.lead-card__photo:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 18px 32px rgba(0, 0, 0, 0.45),
    0 50px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(194, 174, 125, 0.42);
}
.lead-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-card__box {
  grid-area: 1 / 1 / 2 / 3;
  position: relative;
  z-index: 1;
  margin-top: 7rem;
  margin-left: calc(var(--lead-photo-w) - var(--lead-overlap));
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.5rem) clamp(2rem, 3.5vw, 3rem) calc(var(--lead-overlap) + clamp(2rem, 3.5vw, 3rem));
  background: linear-gradient(180deg, #201c18, #131009);
  border: 1px solid rgba(194, 174, 125, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lead-card--reverse { grid-template-columns: minmax(0, 1fr) var(--lead-photo-w); }
.lead-card--reverse .lead-card__photo { grid-area: 1 / 2; }
.lead-card--reverse .lead-card__box {
  margin-left: 0;
  margin-right: calc(var(--lead-photo-w) - var(--lead-overlap));
  padding-left: clamp(2rem, 4vw, 3.5rem);
  padding-right: calc(var(--lead-overlap) + clamp(2rem, 3.5vw, 3rem));
}
.lead-card__name {
  font-family: var(--font-grotesk);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  color: #f4f1ec;
  margin: 0 0 var(--space-2, 0.5rem);
}
.lead-card__role {
  font-family: var(--font-grotesk);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--accent);
  text-shadow: 0 0 20px rgba(194, 174, 125, 0.4);
  margin: 0 0 var(--space-5, 1.5rem);
}
.lead-card__p {
  font-family: "Montserrat", var(--font-grotesk);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(244, 241, 236, 0.75);
  margin: 0 0 var(--space-3, 0.75rem);
  text-wrap: pretty;
}
.lead-card__p:last-child { margin-bottom: 0; }

[data-theme="light"] .lead-card__box {
  background: #ffffff;
  border-color: rgba(43, 30, 22, 0.14);
  box-shadow: 0 16px 44px rgba(43, 30, 22, 0.12);
}
[data-theme="light"] .lead-card__name { color: #2b1e16; }
[data-theme="light"] .lead-card__p { color: #2b1e16; }

/* ---------- Strategieberatung (und weitere Teams) ----------
   Vorlage: Foto und Textbox buendig nebeneinander, gleich hoch.
   Name/Rolle/Text nutzen die .lead-card__*-Klassen. */
.staff-team {
  max-width: 62rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5, 1.5rem) calc(var(--space-8) * 1.5);
}
.staff-card {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  border: 1px solid rgba(194, 174, 125, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #201c18, #131009);
  /* Variante A: Foto sitzt buendig, darum traegt die ganze Karte den Schatten */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(194, 174, 125, 0.22);
  /* opacity muss drinbleiben, sonst springt die Karte beim Einblenden */
  transition: opacity 0.6s ease, transform 0.35s ease, box-shadow 0.35s ease;
  margin-bottom: var(--space-8);
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 18px 32px rgba(0, 0, 0, 0.45),
    0 50px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(194, 174, 125, 0.36);
}
.staff-card:last-child { margin-bottom: 0; }
.staff-card__photo { position: relative; min-height: 22rem; }
.staff-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.staff-card__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.25rem);
}
[data-theme="light"] .staff-card,
[data-theme="light"] .lead-card__photo {
  box-shadow:
    0 2px 4px rgba(43, 30, 22, 0.12),
    0 14px 28px rgba(43, 30, 22, 0.18),
    0 34px 64px rgba(43, 30, 22, 0.22),
    0 0 36px rgba(194, 174, 125, 0.35);
}
[data-theme="light"] .staff-card {
  background: #ffffff;
  border-color: rgba(43, 30, 22, 0.14);
}
@media (prefers-reduced-motion: reduce) {
  .lead-card__photo, .staff-card { transition: none; }
  .lead-card__photo:hover, .staff-card:hover { transform: none; }
}

/* ---------- Teams mit Personenkarten (z. B. Vertrieb) ----------
   Vorlage: links Text, rechts Hochformat-Karten mit Namensleiste. */
.team-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 74rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5, 1.5rem) calc(var(--space-8) * 1.5);
}
.team-group__title { text-align: left; margin-bottom: var(--space-5, 1.5rem); }
.team-group__text { padding-top: var(--space-4); max-width: 34rem; }
.team-group__people {
  display: grid;
  grid-template-columns: repeat(2, 14.5rem);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.person-card {
  border: 1px solid rgba(194, 174, 125, 0.5);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #201c18, #131009);
  /* Variante A "Tiefe & Goldschein" */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(194, 174, 125, 0.24);
  /* opacity muss drinbleiben, sonst springt die Karte beim Einblenden */
  transition: opacity 0.6s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.person-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 18px 32px rgba(0, 0, 0, 0.45),
    0 50px 90px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(194, 174, 125, 0.4);
}
.person-card__photo { aspect-ratio: 3 / 4; }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }
.person-card__bar {
  padding: 0.9rem 1.1rem 1rem;
  border-top: 1px solid rgba(194, 174, 125, 0.35);
}
.person-card__name {
  font-family: var(--font-grotesk);
  font-weight: 800;
  font-size: 1.05rem;
  color: #f4f1ec;
  margin: 0 0 0.15rem;
}
.person-card__role {
  font-family: var(--font-grotesk);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  margin: 0;
}
[data-theme="light"] .person-card {
  background: #ffffff;
  border-color: rgba(43, 30, 22, 0.14);
  box-shadow:
    0 2px 4px rgba(43, 30, 22, 0.12),
    0 14px 28px rgba(43, 30, 22, 0.18),
    0 34px 64px rgba(43, 30, 22, 0.22),
    0 0 36px rgba(194, 174, 125, 0.35);
}
[data-theme="light"] .person-card__name { color: #2b1e16; }
@media (prefers-reduced-motion: reduce) {
  .person-card { transition: none; }
  .person-card:hover { transform: none; }
}
@media (max-width: 64em) {
  .team-group { grid-template-columns: minmax(0, 1fr); }
  .team-group__text { max-width: none; }
  .team-group__title { text-align: center; }
  .team-group__people { justify-content: center; }
}
@media (max-width: 48em) {
  .team-group__people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .person-card__bar { padding: 0.7rem 0.8rem 0.8rem; }
  .person-card__name { font-size: 0.95rem; }
  .person-card__role { font-size: 0.82rem; }
}

/* ---------- Abschluss: Strategiegespraech ----------
   Wie der Kontakt-CTA der Startseite (.section-contact in styles.css):
   contact-bg.jpg mit 10 % Deckkraft, oben und unten weich ausgeblendet,
   keine harten Kanten. Schrift nutzt die Theme-Farben. */
.team-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) var(--space-5, 1.5rem);
  text-align: center;
}
.team-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/contact-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.team-cta__inner { max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.team-cta__title { margin-bottom: var(--space-5, 1.5rem); text-wrap: balance; }
.team-cta__text {
  font-family: "Montserrat", var(--font-grotesk);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 var(--space-7, 2.5rem);
  text-wrap: pretty;
}

/* Tablet: schmaleres Foto, weniger Ueberlappung */
@media (max-width: 64em) {
  .lead-team { --lead-photo-w: 19rem; --lead-overlap: 5rem; }
  .lead-card__box { margin-top: 5rem; }
}
/* Handy: Foto oben, Box ueberlappt es von unten */
@media (max-width: 48em) {
  .lead-card, .lead-card--reverse { grid-template-columns: minmax(0, 1fr); }
  .lead-card__photo, .lead-card--reverse .lead-card__photo {
    grid-area: 1 / 1;
    width: min(100%, 20rem);
    justify-self: center;
  }
  .lead-card__box, .lead-card--reverse .lead-card__box {
    grid-area: 2 / 1;
    margin: -3rem 0 0;
    padding: calc(3rem + 1.5rem) 1.5rem 1.75rem;
  }
  .staff-card { grid-template-columns: minmax(0, 1fr); }
  .staff-card__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .staff-card__box { padding: 1.75rem 1.5rem; }}

/* =========================================================
   Handy-Feinschliff (unter 768px). Referenz ist die Startseite bei
   375px. Werte bewusst in px: die Unterseiten haben 15px Grundschrift
   statt 16px wie die Startseite, rem-Werte fielen sonst ~6 % kleiner aus.
   ========================================================= */
@media (max-width: 48em) {
  /* Hero */
  .team-hero { padding: calc(var(--header-height) + 24px) 19px 40px; }
  .team-hero__eyebrow { font-size: 11.25px; letter-spacing: 0.18em; padding: 5px 13px; margin-bottom: 12px; }
  .team-hero__title { font-size: 34px; line-height: 1.05; margin-bottom: 14px; }
  .team-hero__lead { font-size: 14px; line-height: 1.55; margin-bottom: 28px; }
  .team-hero__trust { margin-bottom: 28px; }
  .team-hero__trust-label { font-size: 11.25px; letter-spacing: 0.14em; margin-bottom: 10px; }
  .team-hero__trust-label--next { margin-top: 20px; }
  /* Logo-Kacheln wie auf den Team-Karten der Startseite: 2 pro Reihe */
  .team-hero__logos { max-width: 280px; gap: 12px; }
  .team-hero__logo { height: 64px; padding: 8px 12px; }
  .team-hero__logos--certs .team-hero__logo { height: 83px; }

  /* Buttons wie auf der Startseite: volle Breite, 57px hoch, 15px */
  .team-hero__cta {
    width: 100%;
    max-width: 338px;
    min-height: 57px;
    padding: 7.5px 18.75px;
    font-size: 15px;
    line-height: 1.35;
  }

  /* Sektionen: Abstaende wie .section auf der Startseite */
  .lead-team, .staff-team, .team-group { padding: 32px 19px; }
  .lead-team__title { margin-bottom: 24px; }

  /* Karten-Schrift wie .founder-card auf der Startseite */
  .lead-card__name { font-size: 24px; margin-bottom: 4px; }
  .lead-card__role { font-size: 15px; margin-bottom: 16px; }
  .lead-card__p { font-size: 15px; line-height: 1.55; margin-bottom: 10px; }

  /* Leitung: Foto wie das Teamfoto der Startseite (276x368) */
  .lead-card { margin-bottom: 32px; }
  .lead-card__photo, .lead-card--reverse .lead-card__photo { width: min(100%, 276px); aspect-ratio: 3 / 4; }
  .lead-card__box, .lead-card--reverse .lead-card__box { margin-top: -40px; padding: 52px 20px 24px; }

  /* Strategieberatung: Foto wie die Startseite ca. 368px hoch */
  .staff-card__photo { aspect-ratio: auto; height: 368px; }
  .staff-card__box { padding: 24px 20px; }

  /* Vertrieb / IT */
  .team-group { gap: 24px; }
  .team-group__title { margin-bottom: 16px; }
  .person-card__name { font-size: 15px; }
  .person-card__role { font-size: 13px; line-height: 1.35; }

  /* Abschluss wie .section-contact: 75px Abstand, 14px Text */
  .team-cta { padding: 75px 19px; }
  .team-cta__title { margin-bottom: 16px; }
  .team-cta__text { font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
}

/* =========================================================
   Responsiv auf allen Geraeten (Referenz: Startseite).
   Steht ganz am Ende und ueberstimmt die Regeln weiter oben.
   ========================================================= */
/* Haupttitel waechst wie der Hero-Titel der Startseite:
   ca. 46px bei 768, 59px bei 1024, 72px bei 1280, max. 80px. */
.team-hero__title { font-size: clamp(34px, 12px + 4.6vw, 80px); }

/* Buttons wie auf der Startseite (Tablet/Desktop): 288x60, 15px */
@media (min-width: 48em) {
  .team-hero__cta {
    width: auto;
    min-width: 288px;
    min-height: 60px;
    padding: 0 28px;
    font-size: 15px;
    line-height: 1.35;
  }
  /* Logo- und Zertifikat-Kacheln normal gross statt wuchtig */
  .team-hero__logo { width: 132px; height: 72px; padding: 10px 14px; }
  .team-hero__logos--certs .team-hero__logo { width: 168px; height: 88px; }
}

/* Tablet hochkant und grosse Handys (600-768px) */
@media (min-width: 37.5em) and (max-width: 48em) {
  /* Personenkarten kompakt halten statt 350px breit */
  .team-group__people { max-width: 460px; margin-inline: auto; width: 100%; }
  /* Dianas Karte wieder Foto links, Text rechts */
  .staff-card { grid-template-columns: 220px minmax(0, 1fr); }
  .staff-card__photo { height: auto; min-height: 300px; }
  .staff-card__box { padding: 28px 24px; }
}
/* Button-Schrift so fett wie auf der Startseite (800) */
.team-hero__cta { font-weight: 800; }

/* =========================================================
   Handy-Aufbau nach Referenz-Video (Team-Seite auf dem Handy):
   - Karten: Foto ueber volle Breite, Textbox buendig darunter,
     kein Versatz/keine Ueberlappung
   - Team-Gruppen: Ueberschrift + Text linksbuendig,
     Personenkarten einzeln untereinander
   ========================================================= */
@media (max-width: 48em) {
  /* Leitung: Foto + Box als eine Einheit */
  .lead-card, .lead-card--reverse { grid-template-columns: minmax(0, 1fr); }
  .lead-card__photo, .lead-card--reverse .lead-card__photo {
    grid-area: 1 / 1;
    width: 100%;
    justify-self: stretch;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 0;
  }
  .lead-card__box, .lead-card--reverse .lead-card__box {
    grid-area: 2 / 1;
    margin: 0;
    padding: 22px 20px 26px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 0;
  }
  /* Auf Touch-Geraeten nicht anheben, sonst reisst Foto von Box ab */
  .lead-card__photo:hover { transform: none; }

  /* Team-Gruppen linksbuendig wie in der Referenz */
  .team-group__title { text-align: left; }
  .team-group__text { text-align: left; }
}
/* Handy hochkant: Personenkarten einzeln untereinander, volle Breite */
@media (max-width: 37.49em) {
  .team-group__people { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .person-card__photo { aspect-ratio: 4 / 5; }
  .person-card__bar { padding: 14px 18px 16px; }
  .person-card__name { font-size: 17px; }
  .person-card__role { font-size: 14px; }
}

/* Handy: Karten nicht "riesig" - Breite wie das Teamfoto der
   Startseite (ca. 276-300px), mittig. Foto bleibt buendig auf der Box. */
@media (max-width: 37.49em) {
  .lead-card, .lead-card--reverse,
  .staff-card,
  .team-group__people { max-width: 300px; margin-inline: auto; width: 100%; }
  .staff-card__photo { height: 340px; }
  .person-card__photo { aspect-ratio: 5 / 6; }
}

/* Smartphone: mehr Luft zum Rand und eine gemeinsame Kante.
   Ueberschriften, Texte, Buttons, Fotos und Karten stehen alle
   28px vom Rand entfernt und damit auf einer Linie. */
@media (max-width: 37.49em) {
  .team-hero,
  .lead-team, .staff-team, .team-group,
  .team-cta { padding-left: 28px; padding-right: 28px; }
  .lead-card, .lead-card--reverse,
  .staff-card,
  .team-group__people { max-width: none; margin-inline: 0; width: 100%; }
  .team-hero__logos { max-width: none; }
  .team-hero__cta { max-width: none; }
  /* "UEBER UNS"-Etikett minimal kleiner */
  .team-hero__eyebrow { font-size: 10px; padding: 4px 11px; letter-spacing: 0.16em; }
}

/* =========================================================
   Handy (bis 767px), wie auf der Startseite:
   - Netz-Animation laeuft dort nicht (bg-neural.js stoppt auf Mobil),
     darum Karo-Raster + Goldschimmer wie .bg-neural in styles.css
   - Hero-Foto laeuft unten weich ins Schwarz aus statt hart abzubrechen
   ========================================================= */
@media (max-width: 767px) {
  [data-theme="dark"] .bg-neural {
    background-image:
      radial-gradient(ellipse 85% 50% at 50% 50%, rgba(194, 174, 125, 0.15) 0%, transparent 60%),
      radial-gradient(ellipse 40% 25% at 50% 50%, rgba(220, 200, 150, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse 60% 40% at 15% 65%, rgba(43, 30, 22, 0.4) 0%, transparent 55%),
      radial-gradient(ellipse 60% 40% at 85% 65%, rgba(43, 30, 22, 0.3) 0%, transparent 55%),
      radial-gradient(ellipse 40% 30% at 50% 110%, rgba(20, 12, 4, 0.95) 0%, transparent 50%);
  }
  [data-theme="dark"] .bg-neural::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(244, 241, 236, 0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(244, 241, 236, 0.028) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
  }

  /* Hero: Hintergrund auf ::before, per Maske nach unten durchsichtig */
  .team-hero { background: none; }
  .team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: #0d0b08;
    background-image:
      radial-gradient(ellipse 60% 45% at 50% 0%, rgba(194, 174, 125, 0.22), transparent 70%),
      linear-gradient(180deg, rgba(10, 9, 7, 0.55) 0%, rgba(10, 9, 7, 0.78) 60%, rgba(10, 9, 7, 0.9) 100%),
      var(--team-hero-img);
    background-size: auto, auto, cover;
    background-position: center, center, 70% 30%;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
    pointer-events: none;
  }
}
