/* Akademie-Band — filmstrip subnav for /akademie/* pages */

/* Weißer Vorlauf über dem Band: der Reiter ist auf Hub und Unterseiten das erste Element
   unter der klebenden Navigationsleiste und soll nicht an ihr kleben. */
.akband-lead {
  background: #fff;
  padding-top: 28px;
}

.akband {
  display: flex;
  gap: 0;
  height: clamp(300px, 36vh, 420px);
  background: #111;
}

.akband-tile {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  outline: none;
  transition: flex-grow 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.akband-tile + .akband-tile {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.akband-tile:hover,
.akband-tile:focus-visible,
.akband-tile.is-active {
  flex-grow: 1.6;
}

.akband-tile:focus-visible {
  outline: 2px solid #f08300;
  outline-offset: -2px;
}

.akband-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transform: scale(1);
  transition:
    filter 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.akband-tile:hover .akband-image,
.akband-tile:focus-visible .akband-image,
.akband-tile.is-active .akband-image {
  filter: grayscale(0);
  transform: scale(1.05);
}

.akband:hover .akband-tile:not(:hover):not(.is-active) .akband-image {
  filter: grayscale(1) brightness(0.75);
}

.akband-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.25) 0%,
    rgba(17, 17, 17, 0.45) 55%,
    rgba(17, 17, 17, 0.82) 100%
  );
  transition: background 0.5s ease;
}

.akband-tile:hover .akband-scrim,
.akband-tile:focus-visible .akband-scrim,
.akband-tile.is-active .akband-scrim {
  background: linear-gradient(
    180deg,
    rgba(240, 131, 0, 0.15) 0%,
    rgba(140, 70, 0, 0.55) 60%,
    rgba(17, 17, 17, 0.85) 100%
  );
}

.akband-num {
  position: absolute;
  top: 20px;
  left: 24px;
  font-weight: 800;
  color: #f08300;
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: 0.12em;
  font-family: 'Univers', Ebrima, sans-serif;
  z-index: 1;
}

.akband-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Univers', Ebrima, sans-serif;
  z-index: 1;
}

.akband-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  background: #f08300;
  transition: width 0.4s ease;
}

.akband-tile:hover .akband-title::after,
.akband-tile:focus-visible .akband-title::after,
.akband-tile.is-active .akband-title::after {
  width: 44px;
}

/* `#`-Sentinel: Ziel noch nicht scharf geschaltet. Die Kachel bleibt sichtbar, wird aber
   nicht anklickbar, dehnt sich nicht und trägt statt des Pfeils das „Demnächst"-Etikett —
   dasselbe Signal wie im Mega-Menü (.nav-link-status). */
.akband-tile-inactive {
  cursor: default;
}

.akband-tile-inactive:hover {
  flex-grow: 1;
}

.akband-tile-inactive .akband-image {
  filter: saturate(0);
}

.akband-soon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  background: rgba(255, 255, 255, 0.88);
  padding: 5px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* KI-Kennzeichnung der Kachelbilder: die kleine Ecke unten rechts. `AiBadge` bringt seine
   Maße als Inline-Style mit (er wird auch in Markup ohne Stylesheet eingesetzt), deshalb
   setzt diese Klasse die Position mit `!important` auf das Kachelformat um. Die Kachel
   schneidet ab (`overflow: hidden`), das Etikett muss also innen liegen. */
.akband-ai {
  right: 12px !important;
  bottom: 12px !important;
  padding: 2px 5px !important;
  font-size: 10px !important;
  border-radius: 5px !important;
  text-transform: uppercase;
}

/* Die Beschriftung endet vor dem Etikett, damit ein langer Kacheltitel nicht darunter
   läuft — nur auf Kacheln, die überhaupt eine Kennzeichnung tragen. */
.akband-tile-ai .akband-title {
  padding-right: 24px;
}

.akband-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.akband-tile:hover .akband-arrow,
.akband-tile:focus-visible .akband-arrow,
.akband-tile.is-active .akband-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .akband-tile,
  .akband-image,
  .akband-arrow,
  .akband-title::after {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .akband {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .akband-tile {
    height: 150px;
    flex-grow: unset !important;
  }

  .akband-tile + .akband-tile {
    border-left: none;
  }

  .akband-tile:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
  }

  .akband-tile:nth-child(1),
  .akband-tile:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .akband-tile:hover .akband-image,
  .akband-tile:focus-visible .akband-image,
  .akband-tile.is-active .akband-image {
    transform: none;
  }

  .akband-num {
    top: 14px;
    left: 16px;
  }

  .akband-title {
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: clamp(16px, 4vw, 20px);
  }

  /* Die halbbreiten Kacheln sind nur 150 px hoch: das Etikett rückt näher in die Ecke und
     die Beschriftung darüber gibt entsprechend weniger Raum frei. */
  .akband-ai {
    right: 8px !important;
    bottom: 8px !important;
  }

  .akband-tile-ai .akband-title {
    padding-right: 22px;
  }
}

/* ============================================================
   Team-Verzeichnis — die Würfelbilder (/akademie/team)
   ============================================================
   Große Hochformat-Portraits (Studio, bunte BVS-Würfel) tragen
   die Seite: alle Ansprechpersonen gleichrangig in EINEM
   versetzten Grid, dessen abgesenkte Mittelspalte den visuellen
   Rhythmus gibt — kein Spotlight, die erste Person der Anlage
   steht schlicht vorn. Die UI bleibt in der CI (Schwarz/Weiß/
   Orange, Hairlines, Eyebrows) — die Farbe bringen die Fotos. */

.teamdir-index {
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dakby-grey-30, #c5c5c4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.teamdir-role {
  display: block;
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dakby-orange-100, #f08300);
  text-transform: uppercase;
  margin-top: 8px;
}

.teamdir-note {
  margin: 14px 0 0;
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dakby-ink-500, #6e6e6d);
  max-width: 46ch;
}

.teamdir-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--dakby-line, #e3e3e2);
}

.teamdir-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dakby-ink-900, #111);
  text-decoration: none;
  transition: color 0.2s ease;
}

.teamdir-contact svg {
  color: var(--dakby-grey-40, #b1b1b0);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.teamdir-contact:hover,
.teamdir-contact:focus-visible {
  color: var(--dakby-orange-100, #f08300);
}

.teamdir-contact:hover svg,
.teamdir-contact:focus-visible svg {
  color: var(--dakby-orange-100, #f08300);
}

/* --- Portrait-Fläche der Karten ----------------------------- */

.teamdir-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--dakby-bg-soft, #f7f7f6);
  aspect-ratio: 3 / 4;
}

.teamdir-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Die Portraits sind 2:3; der 3:4-Ausschnitt bleibt oben verankert,
     damit Gesichter nie beschnitten werden — es fehlt nur unten etwas Würfel. */
  object-position: 50% 0%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.teamdir-figure-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.teamdir-figure-empty span {
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--dakby-grey-30, #c5c5c4);
  letter-spacing: 0.04em;
}

/* --- Das versetzte Grid ------------------------------------- */

.teamdir-grid {
  list-style: none;
  margin: 0;
  padding: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 72px) clamp(24px, 3vw, 40px);
}

/* Der Rhythmus: die Mittelspalte hängt tiefer. transform statt margin,
   damit die Grid-Zeilen gleich hoch bleiben und nur das Bild „schwingt". */
.teamdir-grid > .teamdir-card:nth-child(3n + 2) {
  transform: translateY(56px);
}

.teamdir-card-body {
  padding-top: 18px;
}

.teamdir-name {
  font-family: 'Univers', Ebrima, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dakby-ink-900, #111);
  margin: 6px 0 0;
  line-height: 1.2;
}

.teamdir-card:hover .teamdir-figure img,
.teamdir-card:focus-within .teamdir-figure img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  .teamdir-figure img {
    transition: none;
  }

  .teamdir-card:hover .teamdir-figure img,
  .teamdir-card:focus-within .teamdir-figure img {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .teamdir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 44px;
  }

  .teamdir-grid > .teamdir-card:nth-child(3n + 2) {
    transform: none;
  }

  .teamdir-grid > .teamdir-card:nth-child(2n) {
    transform: translateY(44px);
  }
}

@media (max-width: 640px) {
  .teamdir-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    gap: 56px;
  }

  .teamdir-grid > .teamdir-card:nth-child(2n) {
    transform: none;
  }
}
