/* Schulungsdatenbank — desktop list, filters, and map */

.sl-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--blue-2);
  font-weight: 600;
  text-decoration: none;
}

.sl-back img {
  transform: rotate(180deg);
}

.sl-intro {
  max-width: 713px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sl-intro .eyebrow {
  color: #717680;
}

.sl-lead {
  margin: 0;
  max-width: 608px;
  color: var(--copy);
  font-size: 20px;
  line-height: 1.4;
}

.sl-library {
  padding-bottom: 100px;
}

.sl-library__grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.sl-side {
  width: 250px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sl-map-tease {
  position: relative;
  height: 150px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #d2eaea;
}

.sl-map-tease img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-map-tease span {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #d3e7ff;
  color: #002059;
  font-size: 12px;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
}

.sl-count {
  margin: 0;
  color: #717680;
  font-size: 14px;
  line-height: 1.2;
}

.sl-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sl-filter-head h2 {
  font-size: 26px;
  line-height: 32px;
}

.sl-clear {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sl-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sl-group {
  border-bottom: 1px solid #e5e9ee;
  padding-bottom: 16px;
}

.sl-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.sl-group__meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sl-badge {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

.sl-group.is-filtered .sl-badge {
  display: block;
}

.sl-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg);
  margin-right: 6px;
}

.sl-group.is-open .sl-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.sl-group__body {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.sl-group.is-open .sl-group__body {
  display: flex;
}

.sl-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--copy);
  font-size: 16px;
  line-height: 1.5;
}

.sl-check input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: #1643d5;
  flex: none;
}

.sl-check--child {
  padding-left: 14px;
}

.sl-topic-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
}

.sl-topic-search input {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}

.sl-topic-search input::placeholder {
  color: #a4a7ae;
}

.sl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-chip {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.sl-chip.is-on {
  border-color: var(--text);
  background: #f7f8f9;
}

.sl-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sl-search {
  display: flex;
  align-items: center;
  height: 60px;
  border: 1px solid #ccd2de;
  border-radius: 12px;
}

.sl-search input[type="search"],
.sl-search input[type="text"] {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--text);
}

.sl-search input::placeholder {
  color: #a4a7ae;
}

.sl-search__q {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
}

.sl-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 16px;
  border-left: 1px solid #ccd2de;
  color: #a4a7ae;
  font-size: 16px;
}

.sl-search__field input {
  width: 110px;
}

.sl-search__field select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.sl-search__go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: 6px;
  border: 0;
  border-radius: 8px;
  background: #002059;
  cursor: pointer;
}

.sl-search__go img {
  filter: brightness(0) invert(1);
}

.sl-map-close {
  display: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin-left: 8px;
  padding: 0 14px;
  border: 1px solid #ccd2de;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.is-map .sl-map-close {
  display: inline-flex;
}

.sl-sort {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.sl-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.sl-sort__btn span {
  color: var(--copy);
  font-weight: 600;
}

.sl-sort__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  width: 220px;
  padding: 4px 0;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 6px -2px rgba(10, 13, 18, 0.03), 0 12px 16px -4px rgba(10, 13, 18, 0.08);
}

.sl-sort.is-open .sl-sort__menu {
  display: block;
}

.sl-sort__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.sl-sort__menu button.is-active {
  background: #fafafa;
}

.sl-sort__menu button.is-active::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #039855;
  border-bottom: 2px solid #039855;
  transform: rotate(-45deg);
}

.sl-stage {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.is-map .sl-stage {
  height: 640px;
  min-height: 0;
  overflow: hidden;
}

.sl-results {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sl-card {
  display: flex;
  min-height: 220px;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  background: #fff;
}

.sl-card[hidden] {
  display: none;
}

.sl-card__logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 197px;
  flex: none;
  padding: 8px;
  border-right: 1px solid #e5e9ee;
  border-radius: 12px 0 0 12px;
}

.sl-card__logo img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin: auto;
}

.sl-card__format {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--text);
  border-radius: 8px;
  background: #f7f8f9;
  font-size: 12px;
  line-height: 26px;
}

.sl-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 24px 16px;
}

.sl-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sl-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}

.sl-card h3 a {
  color: inherit;
  text-decoration: none;
}

.sl-card h3 a:hover {
  color: #1643d5;
}

.sl-price {
  text-align: right;
  white-space: nowrap;
}

.sl-price strong {
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
}

.sl-price em {
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
}

.sl-price small {
  display: block;
  color: #717680;
  font-size: 12px;
  line-height: 1.2;
}

.sl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #e9eaeb;
  color: #717680;
  font-size: 16px;
  line-height: 1.5;
}

.sl-meta li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b942;
}

.sl-dot--green {
  background: #12b76a;
}

.sl-dot--red {
  background: #f04438;
}

.sl-empty {
  margin: 0;
  color: #50576b;
}

.sl-more {
  align-self: center;
  border: 0;
  background: none;
  color: var(--blue-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.is-map .sl-results {
  flex: 0 0 300px;
  width: 300px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  gap: 16px;
}

.is-map .sl-card {
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.is-map .sl-card__logo {
  width: 100%;
  height: 140px;
  align-items: flex-end;
  justify-content: flex-end;
  border-right: 0;
  border-bottom: 1px solid #e5e9ee;
  border-radius: 12px 12px 0 0;
}

.is-map .sl-card__logo img {
  width: 140px;
  height: 72px;
  margin: auto;
}

.is-map .sl-card__body {
  gap: 8px;
  padding: 16px;
}

.is-map .sl-card h3 {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.is-map .sl-price,
.is-map .sl-meta li:not(:first-child) {
  display: none;
}

.is-map .sl-meta {
  padding-top: 0;
  border-top: 0;
}

.is-map-full .sl-results {
  display: none;
}

.sl-map {
  display: none;
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid #e5e9ee;
  border-radius: 12px;
  overflow: hidden;
}

.is-map .sl-map {
  display: block;
}

.sl-map__canvas {
  width: 100%;
  height: 100%;
}

.sl-map__expand {
  position: absolute;
  z-index: 500;
  top: 24px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #edebf0;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.sl-map__chevron {
  width: 8px;
  height: 8px;
  border-left: 2px solid #000e26;
  border-bottom: 2px solid #000e26;
  transform: rotate(45deg);
}

.is-map-full .sl-map__chevron {
  transform: rotate(-135deg);
}

.sl-pin {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #002059;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 14, 38, 0.35);
}

.sl-popup {
  min-width: 220px;
}

.sl-popup img {
  width: 88px;
  height: 40px;
  object-fit: contain;
}

.sl-popup strong {
  display: block;
  margin: 8px 0 4px;
}

.sl-popup span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
}

.sl-inhouse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 48px 24px 48px 32px;
  border-radius: 12px;
  background: #002059;
  color: #fff;
}

.sl-inhouse p {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.sl-inhouse a {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  background: #d3e7ff;
  color: #002059;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
