/* =========================================================
   BRG14 LEHRER:INNEN
   Frontend-Modul fÃ¼r den Shortcode [lehrer_liste]

   ZustÃ¤ndig fÃ¼r:
   - Such- und Filterleiste
   - Aâ€“Z-Navigation
   - TrefferzÃ¤hler
   - Lehrer:innenliste
   - Foto-/Initialenanzeige
   - mobile Anpassungen

   Verwendet globale Systeme aus:
   - core/base.css
   - core/typography.css

   NICHT zustÃ¤ndig fÃ¼r:
   - Plugin-Logik
   - Admin-OberflÃ¤che
   - globale SeitenabstÃ¤nde
   - Footer-AbstÃ¤nde
   ========================================================= */


/* =========================================================
   Wrapper
   ========================================================= */

#lv-wrap,
#lv-wrap * {
  box-sizing: border-box;
}

#lv-wrap {
  width: 100%;

}

#lv-wrap * {
  margin: 0;
  padding: 0;
}


/* =========================================================
   Toolbar:
   Suche, Fachfilter, Reset
   ========================================================= */

#lv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 8px;
  padding-bottom: 12px;

  border-bottom: 1px solid var(--brg14-border);
}

#lv-toolbar input,
#lv-toolbar select {
  height: auto;

  padding: 7px 11px;

  border: 1px solid #B1BCCB;
  border-radius: 6px;

  background: #FFFFFF;
  color: #222222;


  outline: none;
  box-shadow: none;
}

#lv-toolbar input {
  flex: 1;

  min-width: 160px;
}

#lv-toolbar select {
  min-width: 200px;
}

#lv-toolbar input:focus,
#lv-toolbar select:focus {
  border-color: #6F7F91;
}


/* =========================================================
   Reset-Button
   ========================================================= */

#lv-wrap #lv-reset {
  height: auto;

  padding: 7px 14px;

  border: 1px solid #B1BCCB;
  border-radius: 6px;

  background: #FFFFFF;
  color: #5A6070;


  white-space: nowrap;

  cursor: pointer;

  box-shadow: none;
}

#lv-wrap #lv-reset:hover {
  background: #F5F5F5;
  color: #333333;
}

#lv-wrap #lv-reset.lv-active {
  border-color: #6F7F91;

  color: #333333;

}


/* =========================================================
   Aâ€“Z-Navigation
   ========================================================= */

#lv-az {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;

  margin-bottom: 12px;
  padding: 8px 0 10px;

  border-bottom: 1px solid var(--brg14-border);
}

#lv-wrap .lv-az-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;

  padding: 0;

  border: 0;
  border-radius: 5px;

  background: transparent;
  color: #555555;


  text-decoration: none;

  cursor: pointer;
  box-shadow: none;
}

#lv-wrap .lv-az-btn:hover {
  background: #F0F0F0;
  color: #111111;
}

#lv-wrap .lv-az-btn.lv-inactive {
  background: transparent;
  color: #DDDDDD;

  cursor: default;
  pointer-events: none;
}

#lv-wrap .lv-az-btn.lv-active {
  background: #E0E0E0;
  color: #111111;

}


/* =========================================================
   TrefferzÃ¤hler
   ========================================================= */

#lv-count {
  margin-bottom: 12px;

  color: #5A6070;

}


/* =========================================================
   Listeneintrag
   ========================================================= */

.lv-item {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;

  min-height: 80px;

  padding: 20px 0 !important;

  border-bottom: 1px solid #D3DCE8 !important;
}

.lv-item + .lv-item {
  margin-top: 0 !important;
}

.lv-item:last-child {
  border-bottom: 0 !important;
}

.lv-item.lv-hidden,
.brg14-lehrer-item.lv-hidden {
  display: none !important;
}


/* =========================================================
   Foto / Initialen
   ========================================================= */

.lv-avatar {
  flex-shrink: 0;

  width: 72px;
  height: 108px;

  object-fit: cover;

  border-radius: 8px;
}

.lv-avatar-placeholder {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 108px;

  border-radius: 8px;

  background: #EDE9E3;
  color: #7A8A9A;

}


/* =========================================================
   Textbereich
   ========================================================= */

.lv-info {
  display: flex;
  flex-direction: column;
  flex: 1;

  min-width: 0;

  padding-top: 2px;
}

.lv-person-identity,
.lv-details {
  display: contents;
}

.lv-name {
  order: 1;
}

.lv-details > * {
  order: 2;
}

.lv-person-identity .lv-row-email {
  order: 3;
}

.lv-name,
#lv-wrap .lv-name {
  display: block !important;

  margin-bottom: 10px !important;
  padding-bottom: 8px !important;

  color: #071E42 !important;

}

.lv-hinweis {
  margin-bottom: 6px;

  color: #6F7F91;

}

.lv-row {
  display: flex;
  gap: 0;

  margin-bottom: 5px;

  color: #444444;

}

.lv-lbl {
  flex-shrink: 0;

  width: 104px;

  color: #5A6070;

  white-space: nowrap;
}

.lv-val {
  flex: 1;

  min-width: 0;
}

.lv-val-stack {
  display: none;
}

.lv-row a {
  color: var(--brg14-blue);
  text-decoration: none;
}

.lv-row a:hover {
  text-decoration: underline;
}

.lv-row-email a {
  text-transform: lowercase;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

  .lv-item {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 0;
    padding: 18px 0 !important;
  }

  #lv-wrap .lv-avatar {
    display: block;
    width: 52px;
    height: 78px;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }

  #lv-wrap .lv-avatar-placeholder {
    width: 52px;
    height: 52px;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .lv-info {
    display: contents;
  }

  .lv-person-identity {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
  }

  #lv-wrap .lv-details {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 14px;
  }

  #lv-wrap .lv-name {
    margin: 0 !important;
    padding: 0 0 4px !important;
  }

  #lv-wrap .lv-hinweis,
  #lv-wrap .lv-row:not(.lv-row-email) {
    width: 100%;
  }

  #lv-wrap .lv-hinweis {
    margin-top: 0;
  }

  #lv-wrap .lv-details > .lv-hinweis + .lv-row:not(.lv-row-email) {
    margin-top: 5px;
  }

  .lv-row,
  .lv-hinweis {
    font-size: 14px;
    line-height: 1.35;
  }

  #lv-wrap .lv-details .lv-row {
    display: block;
    margin-bottom: 0;
  }

  #lv-wrap .lv-details .lv-row + .lv-row {
    margin-top: 10px;
  }

  #lv-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  #lv-toolbar input {
    grid-column: 1 / -1;
    width: 100%;
  }

  #lv-toolbar select {
    width: 100%;
    min-width: 0;
  }

  #lv-wrap #lv-reset {
    min-width: 108px;
  }

  #lv-az {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 3px;
    padding: 8px 0 10px;
  }

  #lv-wrap .lv-az-btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
  }

  .lv-lbl {
    display: block;
    width: auto;
    margin-bottom: 2px;
    color: rgba(90, 96, 112, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .lv-val-inline {
    display: inline;
  }

  .lv-val-stack {
    display: none;
  }

  #lv-wrap .lv-row-email {
    margin: 0;
  }

  #lv-wrap .lv-row-email .lv-lbl {
    display: none;
  }
}
