/* src/Resources/public/css/employee.css */

/* ================================== */
/* Global Wrapper & Headline        */
/* ================================== */
.employee-list-wrapper {
  margin-bottom: 30px;
  position: relative;
  overflow: visible;
}
.employee-list-headline {
  margin-bottom: 20px;
  text-align: center;
}

/* ================================== */
/* Grid Layout                      */
/* ================================== */
.employee-grid-container {
  display: grid;
  gap: 20px;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.employee-list-wrapper.cols-1 .employee-grid-container {
  grid-template-columns: 1fr;
}
.employee-list-wrapper.cols-2 .employee-grid-container {
  grid-template-columns: repeat(2, 1fr);
}
.employee-list-wrapper.cols-3 .employee-grid-container {
  grid-template-columns: repeat(3, 1fr);
}
.employee-list-wrapper.cols-4 .employee-grid-container {
  grid-template-columns: repeat(4, 1fr);
}
/* Responsive Anpassungen */
@media (max-width: 992px) {
  .employee-list-wrapper.cols-3 .employee-grid-container,
  .employee-list-wrapper.cols-4 .employee-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .employee-list-wrapper.cols-2 .employee-grid-container,
  .employee-list-wrapper.cols-3 .employee-grid-container,
  .employee-list-wrapper.cols-4 .employee-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Sichtbarkeitsklassen für Grid & Fokus-Ansicht */
.employee-grid-container.is-visible,
.employee-focus-view.is-visible {
  opacity: 1;
  transform: scale(1);
}
.employee-grid-container.is-fading-out,
.employee-focus-view.is-fading-out {
  opacity: 0;
  transform: scale(0.98);
}
.is-hidden {
  display: none !important;
}

/* ================================== */
/* Employee Card Styling (im Grid)  */
/* ================================== */
.employee-card {
  border: 1px solid #eee;
  background-color: #fff;
  border-radius: 4px;
  transform-origin: top left;
  will-change: transform;
}
.employee-card.is-animating {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: box-shadow 300ms ease, border-radius 300ms ease;
}
.employee-card .attributes {
  background-color: rgba(247, 247, 247, 1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  box-sizing: border-box;
}
.employee-card .card-visible-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.employee-card .employee-image {
  margin-bottom: 15px;
}
.employee-card .employee-name {
  margin: 0.5em 0;
}
.employee-card .employee-function {
  margin: 0;
  color: #555;
  font-size: 0.95em;
}

/* Styling für Trigger-Button */
.employee-card .ce_fancylink button.trigger-focus-view,
.employee-card .more_link a.trigger-focus-view {
  background: none;
  border: none;
  margin: 15px 0;
  cursor: pointer;
  text-align: center;
  display: inline;
}

/* Divider */
.employee-card .ce_divider_extended {
  width: 50px;
  height: 2px;
  background: #eee;
  margin: 15px auto 0;
}

/* ================================== */
/* Versteckte Detail-Daten          */
/* ================================== */
.employee-detail-data-storage {
  display: none;
}

/* ================================== */
/* Fokus-Ansicht Styling            */
/* ================================== */
.employee-focus-view {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.3s 0.1s ease-in-out, transform 0.3s 0.1s ease-in-out;
  background-color: #fff;
  margin-top: 20px;
}

/* Grid innerhalb Fokus-Ansicht */
.employee-focus-view .autogrid_row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.employee-focus-view .column {
  padding: 0 15px;
  box-sizing: border-box;
  margin-bottom: 20px;
}
.employee-focus-view .col_4 {
  width: 33.3333%;
}
.employee-focus-view .col_8 {
  width: 66.6667%;
}
@media (max-width: 992px) {
  .employee-focus-view .col_4 {
    width: 41.666%;
  }
  .employee-focus-view .col_8 {
    width: 58.333%;
  }
}
@media (max-width: 767px) {
  .employee-focus-view .col_4,
  .employee-focus-view .col_8 {
    width: 100%;
  }
}

/* Platzhalter-Inhalt stylen */
.employee-focus-view .focus-card-placeholder .attributes,
.employee-focus-view .focus-detail-placeholder .attributes {
  background-color: rgba(247, 247, 247, 1);
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

/* Placeholder-Überschrift & Liste */
.employee-focus-view .focus-card-placeholder .employee-name {
  font-size: 1.6em;
  margin-bottom: 1em;
}

.focus-card-placeholder {
  scroll-margin-top: 80px;
}

.employee-focus-view .focus-detail-placeholder h4 {
  font-size: 1.2em;
  color: #333;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}
.employee-focus-view .focus-detail-placeholder ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 1.5em;
}
.employee-focus-view .focus-detail-placeholder ul li {
  margin-bottom: 0.6em;
  line-height: 1.5;
}

/* Link-Styling in Fokus-Ansicht */
.employee-focus-view .focus-detail-placeholder .more_link a,
.employee-focus-view .focus-detail-placeholder .more_link a:hover {
  color: var(--link-color, #007bff);
  text-decoration: none;
}
.employee-focus-view .focus-detail-placeholder .more_link a:hover {
  text-decoration: underline;
}

/* ================================== */
/* Gemeinsame MORE-LINK & ARROW      */
/* ================================== */
/* MORE-LINK Button */
.more_link {
  -webkit-backface-visibility: hidden;
  -webkit-transition: translate3d(0, 0, 0);
  color: rgb(242, 148, 0);
}

.more_link a {
  position: relative;
  display: inline-block;
  padding-right: 35px;
  color: rgb(242, 148, 0) !important;
}

.more_link a:after {
  content: "";
  border-radius: 100%;
  border: 1px solid rgba(242, 148, 0, 0.28);
  height: 26px;
  width: 26px;
  transform: translateY(-50%);
  transform-origin: center;
  position: absolute;
  right: 0;
  top: 50%;
  display: block;
  transition: all 0.33s cubic-bezier(0.1, 0.9, 0.5, 1);
}

.more_link a:hover:after {
  transform: scale(0.8) translateY(-50%);
  transform-origin: center;
  opacity: 0;
}

.more_link .arrow:after {
  border-bottom: 1px solid rgb(242, 148, 0);
  position: absolute;
  content: "";
  height: 1px;
  width: 0;
  right: 12px;
  top: 50%;
  margin-top: -2px;
  transition: all 0.33s cubic-bezier(0.1, 0.9, 0.5, 1);
}

.more_link .arrow:before {
  position: absolute;
  right: 0;
  width: 26px;
  font-family: "Fontawesome";
  content: "\f105";
  font-weight: normal;
  font-style: normal;
  color: rgb(0, 0, 0);
  line-height: 30px;
  font-size: 14px;
  text-align: center;
  height: 30px;
  top: 50%;
  margin-top: -16px;
  transition: all 0.33s cubic-bezier(0.1, 0.9, 0.5, 1);
}

.more_link a:hover .arrow:after {
  width: 26px;
}

.more_link a:hover .arrow:after,
.more_link a:hover .arrow:before {
  transform: scale(1, 1) translateX(9px);
}

.more_link.h1 a {
  padding-right: 43px;
}

.more_link.h2 a {
  padding-right: 40px;
}

.more_link.h3 a {
  padding-right: 39px;
}

.more_link.size_small {
  font-size: 0.9rem;
}

.more_link.size_small a {
  padding-right: 35px;
}

.more_link.size_medium {
  font-size: 1.2rem;
}

.more_link.size_medium a {
  padding-right: 37px;
}

.more_link.size_large {
  font-size: 1.8rem;
}

.more_link.size_large a {
  padding-right: 38px;
}

.more_link.fancylink_color_accent a,
.more_link.fancylink_color_accent .arrow:before {
  color: rgb(242, 148, 0);
}

.more_link.fancylink_color_accent a:after,
.more_link.fancylink_color_accent .arrow:after {
  border-color: rgb(242, 148, 0);
}

.more_link.fancylink_color_second a,
.more_link.fancylink_color_second .arrow:before {
  color: #62c3d5;
}

.more_link.fancylink_color_second a:after,
.more_link.fancylink_color_second .arrow:after {
  border-color: #62c3d5;
}

.more_link a,
.more_link .arrow::before {
  color: rgb(242, 148, 0);
}

/* ================================== */
/* Close-Link im Fokus-View         */
/* ================================== */
.back-to-grid-button-focus {
  display: inline-block;
  margin-top: 15px;
  color: rgb(242, 148, 0);
}

.employee-contact-detail {
  text-align: center;
}

.employee-contact-detail a {
  color: #28225c !important;
}
