﻿/* =========================================================
   TEAM-CARDS – NUR DAS CARD-DESIGN
   ========================================================= */

.teamcard {
  --team-blue: #294a70;
  --team-gold: #c7a76a;
  --team-gold-dark: #a77d31;
  --team-border: rgba(41, 74, 112, 0.11);
}

/* Karte */

.teamcard .card-group-element-item {
  max-width: 400px;
}

.teamcard .card {
  position: relative;
  overflow: hidden;
  height: 100%;

  border: 1px solid var(--team-border) !important;
  border-top: 3px solid var(--team-gold) !important;
  border-radius: 8px !important;

  background: #fff !important;

  box-shadow:
    0 12px 34px rgba(24, 58, 93, 0.08) !important;

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease !important;
}

.teamcard .card:hover,
.teamcard .card:focus-within {
  border-color: rgba(199, 167, 106, 0.75) !important;

  box-shadow:
    0 24px 52px rgba(24, 58, 93, 0.15) !important;

  transform: translateY(-7px);
}

/* Bildbereich */

.teamcard .card-img-top {
  position: relative;
  display: block;
  overflow: hidden;

  width: 100%;
  aspect-ratio: 4 / 3;

  border: 0 !important;
  border-radius: 0 !important;

  background: #f3efe8;
}

.teamcard .card-img-top picture {
  display: block;
  width: 100%;
  height: 100%;
}

.teamcard .card-img-top img {
  display: block;

  width: 100% !important;
  max-width: none !important;
  height: 100% !important;

  object-fit: cover;
  object-position: center 20%;

  border-radius: 0 !important;

  transition: transform 0.42s ease;
}

.teamcard .card:hover .card-img-top img,
.teamcard .card:focus-within .card-img-top img {
  transform: scale(1.035);
}

/* Dezenter Verlauf unten im Bild */

.teamcard .card-img-top::before {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;

  height: 24%;

  background:
    linear-gradient(
      to top,
      rgba(24, 58, 93, 0.12),
      transparent
    );

  content: "";
  pointer-events: none;
}

/* Rundes Icon */

.teamcard .card-img-top::after {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;

  display: inline-flex;
  width: 54px;
  height: 54px;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(41, 74, 112, 0.12);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.94);

  box-shadow:
    0 7px 22px rgba(24, 58, 93, 0.1);

  color: var(--team-gold);

  font-family: "Font Awesome 6 Free";
  font-size: 1.2rem;
  font-weight: 900;

  content: "\f2bd";

  backdrop-filter: blur(6px);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.teamcard .card:hover .card-img-top::after,
.teamcard .card:focus-within .card-img-top::after {
  background: var(--team-blue);
  color: #fff;

  transform: translateY(-2px);
}

/* Optionale Icons nach Kartenposition */

.teamcard .card-group-element-item:nth-child(1) .card-img-top::after {
  content: "\f24e";
}

.teamcard .card-group-element-item:nth-child(2) .card-img-top::after {
  content: "\f19d";
}

.teamcard .card-group-element-item:nth-child(3) .card-img-top::after {
  content: "\f07b";
}

.teamcard .card-group-element-item:nth-child(4) .card-img-top::after {
  content: "\f0e0";
}

/* Inhalt */

.teamcard .card-body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;

  padding: 1.75rem 1.8rem 1.6rem !important;

  background: #fff !important;
  text-align: left !important;
}

/* Name */

.teamcard .card-title {
  margin: 0 0 0.7rem !important;
  padding: 0 !important;

  color: var(--team-blue) !important;

  font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.035em;

  text-transform: uppercase;
}

.teamcard .card-title::after {
  display: none !important;
}

/* Position / Text */

.teamcard .card-body p {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;

  margin: 0 !important;

  color: var(--team-gold-dark) !important;

  font-size: 0.95rem;
  line-height: 1.55;
}

.teamcard .card-body p + p {
  margin-top: 0.25rem !important;
}

/* Profil-Link */

.teamcard .card-body p a {
  position: relative;

  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.8rem;

  margin-top: auto;
  padding: 0.5rem 2rem 0.5rem 0;

  color: var(--team-blue) !important;

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;

  text-decoration: none !important;
  text-transform: uppercase;

  transition:
    color 0.22s ease,
    padding-left 0.22s ease;
}

/* Goldlinie über Link */

.teamcard .card-body p a::before {
  position: absolute;
  top: -0.6rem;
  left: 0;

  width: 30px;
  height: 2px;

  border-radius: 2px;
  background: var(--team-gold);

  content: "";
}

/* Pfeil */

.teamcard .card-body p a::after {
  color: var(--team-gold);

  font-family: "Font Awesome 6 Free";
  font-size: 0.72rem;
  font-weight: 900;

  content: "\f061";

  transition: transform 0.22s ease;
}

.teamcard .card-body p a:hover,
.teamcard .card-body p a:focus-visible {
  padding-left: 0.25rem;
  color: var(--team-gold-dark) !important;
}

.teamcard .card-body p a:hover::after,
.teamcard .card-body p a:focus-visible::after {
  transform: translateX(5px);
}

/* Fokus */

.teamcard a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(199, 167, 106, 0.42);
  outline-offset: 4px;
}

/* Mobil */

@media (max-width: 575.98px) {
  .teamcard .card-img-top {
    aspect-ratio: 5 / 4;
  }

  .teamcard .card-body {
    min-height: 195px;
    padding: 1.45rem !important;
  }

  .teamcard .card-img-top::after {
    top: 14px;
    left: 14px;

    width: 48px;
    height: 48px;

    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teamcard .card,
  .teamcard .card-img-top img,
  .teamcard .card-img-top::after,
  .teamcard .card-body p a,
  .teamcard .card-body p a::after {
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   TEAMDETAIL – PROFILKARTE
   Komplett zum Ersetzen
   ========================================================= */

.teamdetail {
  --detail-blue: #294a70;
  --detail-blue-dark: #183a5d;
  --detail-gold: #c7a76a;
  --detail-gold-dark: #a77d31;
  --detail-text: #4f5d6b;
  --detail-border: rgba(41, 74, 112, 0.12);
  --detail-line: rgba(41, 74, 112, 0.09);
  --detail-soft: #f6f8fa;
}

/* TYPO3-Wrapper neutralisieren */

.teamdetail .frame,
.teamdetail .frame-group-container,
.teamdetail .frame-group-inner,
.teamdetail .frame-container,
.teamdetail .frame-inner {
  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 0;
}

/* =========================================================
   GESAMTE PROFILKARTE
   ========================================================= */

.teamdetail .textmedia {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;

  overflow: hidden;

  width: 100%;

  border: 1px solid var(--detail-border);
  border-top: 3px solid var(--detail-gold);
  border-radius: 10px;

  background: #fff;

  box-shadow:
    0 18px 48px rgba(24, 58, 93, 0.1);
  gap: 0px;
}

/* =========================================================
   TEXTBEREICH LINKS
   ========================================================= */

.teamdetail .textmedia-item.textmedia-text {
  order: 1;

  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 0;

  box-sizing: border-box;

  width: 70% !important;
  max-width: 70% !important;
  min-width: 0 !important;
  flex: 0 0 70% !important;

  align-content: center;

  padding: clamp(2.5rem, 5vw, 4.5rem) !important;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      var(--detail-soft) 100%
    );

  text-align: left !important;
}

/* Dekoratives Icon */

.teamdetail .textmedia-item.textmedia-text::before {
  grid-column: 1 / -1;

  display: inline-flex;
  width: 64px;
  height: 64px;

  align-items: center;
  justify-content: center;

  margin-bottom: 2rem;

  border: 1px solid rgba(41, 74, 112, 0.12);
  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 8px 24px rgba(24, 58, 93, 0.08);

  color: var(--detail-gold);

  font-family: "Font Awesome 6 Free";
  font-size: 1.45rem;
  font-weight: 900;

  content: "\f24e";
}

/* Allgemeine Textblöcke */

.teamdetail .textmedia-text p {
  min-width: 0;

  margin: 0 !important;
  padding: 1.35rem 0;

  border-bottom: 1px solid var(--detail-line);

  color: var(--detail-text);

  font-size: 1rem;
  line-height: 1.7;
}

/* Beruf über beide Spalten */

.teamdetail .textmedia-text p:first-child {
  position: relative;

  grid-column: 1 / -1;

  margin-bottom: 0.4rem !important;
  padding-top: 0;
  padding-bottom: 1.4rem;

  border-bottom: 0;

  color: var(--detail-blue);

  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.teamdetail .textmedia-text p:first-child::after {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 50px;
  height: 3px;

  border-radius: 3px;
  background: var(--detail-gold);

  content: "";
}

/* Die vier Kontaktblöcke auf zwei Spalten verteilen */

.teamdetail .textmedia-text p:nth-child(2) {
  grid-column: 1;
}

.teamdetail .textmedia-text p:nth-child(3) {
  grid-column: 2;
}

.teamdetail .textmedia-text p:nth-child(4) {
  grid-column: 1;
}

.teamdetail .textmedia-text p:nth-child(5) {
  grid-column: 2;
}

/* Letzter Block über beide Spalten */

.teamdetail .textmedia-text p:last-child {
  grid-column: 1 / -1;

  padding-bottom: 0;
  border-bottom: 0;
}

/* Links */

.teamdetail .textmedia-text a {
  color: var(--detail-blue);
  font-weight: 600;
  text-decoration: none;

  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.teamdetail .textmedia-text a:hover,
.teamdetail .textmedia-text a:focus-visible {
  color: var(--detail-gold-dark);
}

/* Echte Kontaktlinks optisch verbessern */

.teamdetail a[href^="tel:"],
.teamdetail a[href^="mailto:"],
.teamdetail a[href*="facebook"],
.teamdetail a[href$=".vcf"] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.teamdetail a[href^="tel:"]::before,
.teamdetail a[href^="mailto:"]::before,
.teamdetail a[href*="facebook"]::before,
.teamdetail a[href$=".vcf"]::before {
  color: var(--detail-gold);

  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.teamdetail a[href^="tel:"]::before {
  content: "\f095";
}

.teamdetail a[href^="mailto:"]::before {
  content: "\f0e0";
}

.teamdetail a[href$=".vcf"]::before {
  content: "\f2bb";
}

.teamdetail a[href*="facebook"]::before {
  font-family: "Font Awesome 6 Brands";
  content: "\f39e";
}

/* =========================================================
   FOTO RECHTS – DEUTLICH KLEINER
   ========================================================= */

.teamdetail .textmedia-item.textmedia-gallery {
  order: 2;

  box-sizing: border-box;

  width: 30% !important;
  max-width: 30% !important;
  min-width: 0 !important;
  flex: 0 0 30% !important;

  margin: 0 !important;

  background: #f0ebe3;
}

.teamdetail .gallery-row,
.teamdetail .gallery-item,
.teamdetail figure,
.teamdetail picture {
  display: block;

  width: 100%;
  height: auto;

  margin: 0 !important;
}

.teamdetail .textmedia-gallery img {
  display: block;

  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0;

  object-fit: contain;
  object-position: center top;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .teamdetail .textmedia-item.textmedia-text {
    grid-template-columns: 1fr;

    width: 62% !important;
    max-width: 62% !important;
    flex-basis: 62% !important;

    padding: 2.5rem !important;
  }

  .teamdetail .textmedia-item.textmedia-gallery {
    width: 38% !important;
    max-width: 38% !important;
    flex-basis: 38% !important;
  }

  .teamdetail .textmedia-text p,
  .teamdetail .textmedia-text p:nth-child(2),
  .teamdetail .textmedia-text p:nth-child(3),
  .teamdetail .textmedia-text p:nth-child(4),
  .teamdetail .textmedia-text p:nth-child(5),
  .teamdetail .textmedia-text p:last-child {
    grid-column: 1;
  }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 767.98px) {
  .teamdetail {
    width: 100%;
    max-width: 620px;

    margin-block: 3rem;
  }

  .teamdetail .textmedia {
    flex-direction: column !important;
  }

  .teamdetail .textmedia-item.textmedia-gallery,
  .teamdetail .textmedia-item.textmedia-text {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .teamdetail .textmedia-item.textmedia-gallery {
    order: 1;
  }

  .teamdetail .textmedia-item.textmedia-text {
    order: 2;

    display: block !important;

    padding: 2rem 1.5rem !important;
  }

  .teamdetail .textmedia-gallery img {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto;
  }

  .teamdetail .textmedia-item.textmedia-text::before {
    width: 56px;
    height: 56px;

    margin-bottom: 1.5rem;

    font-size: 1.25rem;
  }

  .teamdetail .textmedia-text p {
    padding-block: 1.15rem;
  }
}

/* =========================================================
   FOKUS / REDUZIERTE BEWEGUNG
   ========================================================= */

.teamdetail a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(199, 167, 106, 0.42);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .teamdetail a {
    transition-duration: 0.01ms !important;
  }
}