/* ==========================================================================
   native-team.css
   Visuelle Annaeherung an pub20/team/index.html.
   Designerische Anpassung gegenueber pub20:
   - Name/Rollen-Streifen oben: HALBTRANSPARENT dunkelblau (Bild scheint durch).
   - Kontakt-Sockel unten:      DECKEND hellblau.
   - Beide blauen Bereiche: einheitliche Sockelhoehen ueber alle 15 Karten.

   Geltungsbereich: ausschliesslich .native-team in pub21/team/index.html.

   Bewusste Regeln:
   - Alle Selektoren beginnen mit .native-team
   - Keine globalen Selektoren (kein img {}, kein a {}, kein h3 {})
   - Keine :has(...)
   - Keine Elementor-Klassen
   - Keine CSS-Background-Portraits
   - Beeinflusst keine andere Elementor-Seite
   ========================================================================== */

/* Tokens (Farben aus pub20 .elementor-kit-5, hier roller-getauscht) ------- */
.native-team {
  /* Name/Rolle oben: dunkelblau, halbtransparent (Bild schimmert durch) */
  --nt-color-name-bg:    rgba(23, 97, 156, 0.78);
  /* Kontakt unten: hellblau, deckend (HEADIT-Primaerblau) */
  --nt-color-contact-bg: #2B82CB;
  --nt-color-text:       #FFFFFF;            /* Original 840d5c6 */
  --nt-color-page-bg:    #FFFFFF;
  --nt-font-narrow:      "PT Sans Narrow", "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --nt-font-text:        "PT Sans", "Helvetica Neue", Arial, sans-serif;

  /* Einheitliche Sockelhoehen, vorsichtig kompakter als der erste Sockelwurf.
     Body bei 2-zeiliger Rolle, Contact bei 3 li + LinkedIn-Icon. */
  --nt-body-height:      94px;
  --nt-contact-height:   120px;
}

/* Wrapper-Section --------------------------------------------------------- */
.native-team {
  background: var(--nt-color-page-bg);
  padding: 40px 20px 80px;
  box-sizing: border-box;
  font-family: var(--nt-font-text);
}

.native-team *,
.native-team *::before,
.native-team *::after {
  box-sizing: border-box;
}

.native-team__title {
  max-width: var(--hit-container-wide);
  margin: 0 auto 28px;
  padding: 0 4px;
  font-family: var(--nt-font-narrow);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: 0.005em;
}

/* Grid -------------------------------------------------------------------- */
.native-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--hit-container-wide);
  margin: 0 auto;
}

/* Karte ------------------------------------------------------------------- */
.native-team__card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  /* Sicherheitsnetz, falls aspect-ratio bei sehr schmaler Card weniger ergibt
     als die Summe aus Bildflaeche + beide Sockel. */
  min-height: calc(var(--nt-body-height) + var(--nt-contact-height) + 240px);
  overflow: hidden;
  background: #f4f4f4; /* Fallback hinter dem Bild, falls Bild fehlt */
}

/* Bildbereich ------------------------------------------------------------- */
.native-team__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.native-team__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--team-image-position, 50% 0%);
}

.native-team__image--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: repeating-linear-gradient(
    45deg,
    #f4f4f4,
    #f4f4f4 12px,
    #ececec 12px,
    #ececec 24px
  );
}

/* Body (Name + Rolle) als HALBTRANSPARENTER dunkelblauer Overlay-Streifen
   ueber dem Bild. Drueckt sich per margin-top:auto an den unteren Rand der
   Card und steht direkt ueber dem Kontakt-Sockel. */
.native-team__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: var(--nt-color-name-bg);
  color: var(--nt-color-text);
  padding: 14px 18px 10px;
  min-height: var(--nt-body-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.native-team__body h3 {
  margin: 0 0 2px;
  font-family: var(--nt-font-narrow);
  font-weight: 600;
  font-size: clamp(22px, 2.1vw, 23px);
  line-height: 1.2;
  color: var(--nt-color-text);
  text-transform: none;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

.native-team__body p {
  margin: 0;
  font-family: var(--nt-font-narrow);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.28;
  color: var(--nt-color-text);
}

/* Kontaktbereich als DECKENDER hellblauer Sockel direkt unter Body -------- */
.native-team__contact {
  position: relative;
  z-index: 2;
  background: var(--nt-color-contact-bg);
  color: var(--nt-color-text);
  padding: 12px 18px 14px;
  min-height: var(--nt-contact-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.native-team__contact ul {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.native-team__contact li {
  font-family: var(--nt-font-narrow);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.28;
  color: var(--nt-color-text);
}

/* tel/mailto: keine Linie, kein Gewichtssprung, Hover optisch ruhig (an Footer-Kontaktlogik angelehnt) */
.native-team__contact ul a[href^="tel:"],
.native-team__contact ul a[href^="mailto:"] {
  color: var(--nt-color-text);
  text-decoration: none;
  border-bottom: 0;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.native-team__contact ul a[href^="tel:"]:hover,
.native-team__contact ul a[href^="tel:"]:focus,
.native-team__contact ul a[href^="tel:"]:focus-visible,
.native-team__contact ul a[href^="tel:"]:active,
.native-team__contact ul a[href^="mailto:"]:hover,
.native-team__contact ul a[href^="mailto:"]:focus,
.native-team__contact ul a[href^="mailto:"]:focus-visible,
.native-team__contact ul a[href^="mailto:"]:active {
  text-decoration: none;
  border-bottom: 0;
  color: inherit;
  font-weight: inherit;
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

/* LinkedIn dezent: kompaktes Icon, Text visuell ausgeblendet -------------- */
.native-team__linkedin {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  text-decoration: none;
  border: 0;
  border-bottom: 0;
  line-height: 0;
}

.native-team__linkedin:hover {
  text-decoration: none;
  border-bottom: 0;
}

.native-team__linkedin:focus-visible {
  text-decoration: none;
  border-bottom: 0;
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

.native-team__linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #FFFFFF;
  color: #17619C;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}

.native-team__linkedin:hover .native-team__linkedin-icon,
.native-team__linkedin:focus-visible .native-team__linkedin-icon {
  background: #17619C;
  color: #ffffff;
}

/* Textlabel unsichtbar, aber fuer Screenreader weiterhin verfuegbar.
   Zusaetzlich existiert ein aria-label am <a>. */
.native-team__linkedin-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .native-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .native-team {
    padding: 28px 16px 56px;
  }

  .native-team__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .native-team__title {
    margin-bottom: 22px;
  }

  .native-team__card {
    aspect-ratio: 4 / 5; /* etwas weniger streckend auf 1-Spalten-Layout */
  }

  .native-team__body {
    padding: 14px 16px 10px;
  }

  .native-team__contact {
    padding: 12px 16px 14px;
  }
}

/* ==========================================================================
 * A-020 Native Hero (pub28)
 * ========================================================================== */

.native-team-hero {
  --team-hero-header-overlap: 80px;
  position: relative;
  z-index: 0;
  margin-top: calc(-1 * var(--team-hero-header-overlap));
  background-color: #0082cb;
  background-image: url("../img/team/hit_team_page.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
}

.native-team-hero .native-team-hero__inner {
  max-width: var(--hit-container);
  margin: 0 auto;
  min-height: 640px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--team-hero-header-overlap) var(--hit-gutter) 0;
  box-sizing: border-box;
}

.native-team-hero .native-team-hero__content {
  width: 50%;
  max-width: 100%;
  box-sizing: border-box;
}

.native-team-hero .native-team-hero__title {
  margin: 50px 0 0;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 55px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.native-team-hero .native-team-hero__subtitle {
  margin: 120px 0 50px;
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1366px) {
  .native-team-hero {
    height: 550px;
  }

  .native-team-hero .native-team-hero__inner {
    min-height: 550px;
    height: auto;
  }
}

@media (max-width: 1200px) {
  .native-team-hero .native-team-hero__inner { padding-left: 11px; padding-right: 11px; }
  .native-team-hero .native-team-hero__title { font-size: 44px; }
}

@media (max-width: 1024px) {
  .native-team-hero .native-team-hero__inner { min-height: 450px; }
  .native-team-hero .native-team-hero__title { font-size: 35px; }
  .native-team-hero .native-team-hero__subtitle { font-size: 35px; }
}

@media (max-width: 767px) {
  .native-team-hero {
    height: auto;
    min-height: 326px;
  }

  .native-team-hero .native-team-hero__inner {
    min-height: 300px;
    height: auto;
    align-items: center;
    justify-content: center;
    padding: calc(125px + var(--team-hero-header-overlap)) 15px 50px;
  }
  .native-team-hero .native-team-hero__content { width: 100%; text-align: center; }
  .native-team-hero .native-team-hero__title { margin: 25px 0 0; font-size: 30px; }
  .native-team-hero .native-team-hero__subtitle { margin: 25px 0 0; font-size: 30px; }
}

/* Team intro content (DOM cleanup 2026-05-15) — scoped */

.native-team-content {
  margin: 0;
  padding: 0;
}

.native-team-section--intro {
  margin: 0;
  padding: 50px 0;
  box-sizing: border-box;
}

.native-team-content__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.native-team-section__title {
  margin: 0 0 28px;
  font-family: var(--hit-font-heading);
  font-size: 35px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--hit-blue);
}

.native-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 40px;
  align-items: center;
}

.native-team-text {
  font-family: var(--hit-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--hit-text);
}

.native-team-text p {
  margin: 0;
}

.native-team-media img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .native-team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .native-team-section__title {
    font-size: 30px;
  }
}
