/*  ========================================================================
    # Team Popup — "Weitere Informationen"
    Self-contained styles for the team card hover button and the modal
    dialog. Not part of the external build (dist/); edit here directly.
    ========================================================================  */

/* Card trigger button
   ------------------------------------------------------------------------ */

.s-team__item {
  position: relative;
}
.s-team__item-image {
	position: relative;
  overflow: hidden;
}		
.s-team__more {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background-color: #bd550a;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.s-team__more:hover,
.s-team__more:focus-visible {
  background-color: #a4490a;
}

/* On devices that support hover (desktop), the button is revealed when the
   card is hovered or receives keyboard focus. On touch / small screens it is
   always visible. */
@media (hover: hover) and (min-width: 992px) {
  .s-team__more {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease,
      background-color 0.2s ease;
  }

  .s-team__item:hover .s-team__more,
  .s-team__item:focus-within .s-team__more {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Modal dialog
   ------------------------------------------------------------------------ */

.c-team-popup {
  max-width: calc(100% - 32px);
  width: 1024px;
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background-color: #fff;
  overflow: hidden;
	margin: auto;
}

.c-team-popup::backdrop {
  background-color: rgba(10, 12, 18, 0.7);
}

/* Native dialogs are not animatable by default; this keeps the open state
   tidy without depending on the (still limited) allow-discrete support. */
.c-team-popup:not([open]) {
  display: none;
}

.c-team-popup__inner {
  display: flex;
	gap: 20px;
	height: auto;
  max-height: calc(100dvh - 64px);
  padding: 16px 16px 16px 24px;
}
.bottom-close {
	position: sticky;
	bottom: 0;
	left: 0; width: 100%;
	height: 60px;
	margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dotted #D5D7DA;
	background: #fff;
}
.c-team-popup__close {
	float: right;
/*
  position: absolute;
  bottom: 16px;
  right: 24px;
*/	
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
	padding: 10px 16px;
	border-radius: 8px;
	border: none;
	background: #FFF;
	box-shadow: 0 0 0 1px var(--Colors-Effects-Shadows-shadow-skeumorphic-inner-border, rgba(10, 13, 18, 0.18)) inset, 0 -2px 0 0 var(--Colors-Effects-Shadows-shadow-skeumorphic-inner, rgba(10, 13, 18, 0.05)) inset, 0 1px 2px 0 var(--Colors-Effects-Shadows-shadow-xs, rgba(10, 13, 18, 0.05));	
	color: #414651;
	font-size: 16px;
	font-weight: 600;
}

.c-team-popup__close:hover,
.c-team-popup__close:focus-visible {
  background-color: #efefef;
}

/* Header */

.c-team-popup__header {
  display: flex;
  flex-direction:column;
	align-items: flex-start;
	flex-basis: 253px;
	flex-shrink: 0;
	position: sticky;
  top: 0;
}

.c-team-popup__image {
/*  flex: 0 0 auto;*/
  margin: 0 0 20px;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
}

.c-team-popup__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-team-popup__heading {
  display: flex;
  justify-content: center;
	flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.c-team-popup__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #181d27;
}

.c-team-popup__badge {
  padding: 4px 10px;
  border-radius: 8px;
  background-color: #fafafa;
	border: 1px solid #E9EAEB;
  font-size: 14px;
  font-weight: 500;
  color: #414751;
}

.c-team-popup__position {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #bd550a;
}

/* Body (scrollable list of weitere_info rows) */

.c-team-popup__body {
  padding-right: 12px;
  overflow-y: auto;
	position: relative;
}
.c-team-popup__row {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}
.c-team-popup__row:not(:first-child) {	
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dotted #D5D7DA;
}

.c-team-popup__row-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #414751;
	flex-basis: 200px;
	max-width: 35%;
	flex-shrink: 0;
}

.c-team-popup__row-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #535862;
}
.c-team-popup__row-text.wysiwyg-block p:not(:last-child) {
	margin-bottom: 20px
}
.c-team-popup__row-text.wysiwyg-block ul li {
	margin-bottom: 0
}
.c-team-popup__row-text.wysiwyg-block ul li:before {
	top: 9px;
}				
.c-team-popup__row-text > :first-child {
  margin-top: 0;
}

.c-team-popup__row-text > :last-child {
  margin-bottom: 0;
}

/* Prevent background scroll while the dialog is open */
html.is-team-popup-open,
html.is-team-popup-open body {
  overflow: hidden;
}

@media (max-width: 767px) {
	.c-team-popup__inner, .c-team-popup__row {
    flex-direction: column;
	}	
	.c-team-popup__header {
    padding-bottom: 16px;
    border-bottom: 2px dotted #D5D7DA;
	}	
	.c-team-popup__row {
	  gap: 3px;
	}		
	.c-team-popup__row-title {
		flex-basis: unset;
    max-width: unset;
	}

}
@media (max-width: 575px) {
}
