/* Dozenten Frontend – Bereichsfarbene Cards */

.dozenten-section,
.dozenten-section * {
  box-sizing: border-box;
}

.dozenten-section {
  width: 100%;
}

/* Filter */
.dozenten-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 2rem;
}

.dozenten-filter button {
  appearance: none;
  border: 2px solid var(--bereich-color, #12bfd3);
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.dozenten-filter button:hover,
.dozenten-filter button.is-active {
  background: var(--bereich-color, #12bfd3);
  border-color: var(--bereich-color, #12bfd3);
  color: #fff;
  transform: translateY(-1px);
}

/* Desktop: 4-spaltig */
.dozenten-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

/* Card */
.dozent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 0px;
  background: var(--bereich-color, #12bfd3);
  color: #fff;
  border: 0px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dozent-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.11));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.dozent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.dozent-card:hover::after {
  opacity: 0;
}

.dozent-card.is-hidden {
  display: none;
}

.dozent-card-content h3,
.dozent-card-content h3 a {
  color: #fff !important;
}

/* Bild: nicht unten abschneiden, Fokus oben */
.dozent-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2f2f2;
  flex: 0 0 auto;
}

.dozent-image,
.dozent-image-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.dozent-image-placeholder {
  background: linear-gradient(135deg, #f2f2f2, #dedede);
}

/* Bereichslabel am Foto */
.dozent-bereich-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  display: block;
  padding: 0.56rem 0.85rem;
  background: var(--bereich-color, #12bfd3);
  color: #fff;
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-top-right-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Inhalt in Bereichsfarbe */
.dozent-card-content {
  background: var(--bereich-color, #12bfd3);
  color: #fff;
  padding: 1rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.dozent-card h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.15;
}

.dozent-contact {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.dozent-meta-link {
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  opacity: 0.95;
  overflow-wrap: anywhere;
}

.dozent-meta-link:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}

.dozent-card-intro,
.dozent-richtext {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dozent-card-intro p,
.dozent-richtext p {
  margin: 0 0 0.65rem;
}

.dozent-card-intro p:last-child,
.dozent-richtext p:last-child {
  margin-bottom: 0;
}

.dozent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 1rem;
  border-radius: 0px;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #071619;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, opacity 180ms ease;
}

.dozent-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* Responsiv */
@media (max-width: 1180px) {
  .dozenten-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dozenten-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .dozenten-filter {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .dozenten-filter button {
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
  }

  .dozenten-grid {
    grid-template-columns: 1fr;
  }

  .dozent-card-content {
    min-height: auto;
  }
}

.dozent-card-content .dozent-meta-link {
  color: #fff !important;
  text-decoration: none;
}

.dozent-card-content .dozent-meta-link:hover {
  color: #fff;
  opacity: 0.82 !important;
  text-decoration: underline;
}








/* Filterbar Layout */
.dozenten-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 4rem);
  width: 100%;
  margin: 0 0 2rem;
    flex-direction: row-reverse;
}

.dozenten-filter {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.dozenten-filterbar-row {
  flex: 0 1 33%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

.dozenten-search-wrap,
.dozenten-sort-wrap {
  flex: 0 1 50%;
  min-width: 180px;
    max-width:300px;
}

/* Suchfeld + Dropdown im Button-Stil */
.dozenten-search,
.dozenten-sort {
  width: 100%;
  min-height: inherit;
    max-height: 48px;
  appearance: none;
  border: 1px solid #12bfd3 !important;
  border-radius: 999px !important;
  background: #fff;
  color: #111;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

.dozenten-search::placeholder {
  color: #111;
  opacity: 0.25;
    font-weight:300;
}

.dozenten-search:focus,
.dozenten-sort:focus {
  outline: none;
  border-color: #12bfd3;
  box-shadow: 0 0 0 4px rgba(18, 191, 211, 0.18);
}

/* Select-Pfeil etwas hübscher */
.dozenten-sort-wrap {
  position: relative;
}

.dozenten-sort-wrap::after {
  content: "⌄";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-56%);
  font-weight: 900;
  color: #111;
  pointer-events: none;
}

.dozenten-sort {
  padding-right: 2.75rem;
}

/* Falls noch ein sichtbares Label existiert */
.dozenten-sort-label {
  display: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .dozenten-filterbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .dozenten-filter {
    flex: 1 1 100%;
  }

  .dozenten-filterbar-row {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .dozenten-filterbar-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .dozenten-search-wrap,
  .dozenten-sort-wrap {
    min-width: 0;
    width: 100%;
  }

  .dozenten-search,
  .dozenten-sort {
    min-height: 52px;
    font-size: 1rem;
  }
}