/*
 * Sealable – Kontaktboxen
 * Nachbau der Teambox aus dem Contao-Theme (seal-able.com).
 * Auf der Live-Seite liefert das Theme die Grundstyles bereits; diese Datei
 * ist für die Demo bzw. als Fallback gedacht. Alles ist unter .sealable-contacts
 * gekapselt, damit nichts anderes auf der Seite beeinflusst wird.
 */
.sealable-contacts {
  --sc-accent: #f0a500;
  --sc-card-bg: #f8f8f8;
  --sc-name: #3b3c42;
  --sc-text: #555555;
  --sc-font-head: "Exo", "Segoe UI", Arial, sans-serif;
  --sc-font-body: "Roboto", "Segoe UI", Arial, sans-serif;

  font-family: var(--sc-font-body);
  font-size: 15px;
  color: var(--sc-text);
}

.sealable-contacts__block + .sealable-contacts__block { margin-top: 60px; }

.sealable-contacts h3 {
  margin: 0;
  font-family: var(--sc-font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 2.8;
}
.sealable-contacts .color-accent { color: var(--sc-accent); }



.sealable-contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 30px;
}

/* Karte */
.sealable-contacts .teambox_inside {
  height: 100%;
  background: var(--sc-card-bg);
}

.sealable-contacts .image { position: relative; overflow: hidden; }
.sealable-contacts .image a,
.sealable-contacts .image > div { display: block; }

.sealable-contacts .image_container { margin: 0; }
.sealable-contacts .image_container img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .4s ease;
}
.sealable-contacts .image a:hover img { transform: scale(1.04); }

/* Gelbe Ecke mit Briefumschlag */
.sealable-contacts .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 67px;
  height: 67px;
  background: var(--sc-accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  color: #fff;
}
.sealable-contacts .overlay svg {
  position: absolute;
  top: 9px;
  left: 8px;
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
}

.sealable-contacts .teambox_content { padding: 44px 20px 36px; }

.sealable-contacts .name {
  margin: 0 0 14px;
  font-family: var(--sc-font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--sc-name);
}

.sealable-contacts .function {
  margin-bottom: 26px;
  font-size: 14.4px;
}

.sealable-contacts .description p { margin: 0 0 4px; line-height: 1.5; }
.sealable-contacts .description { margin-bottom: 18px; }

.sealable-contacts .phone { margin-bottom: 4px; line-height: 1.6; }

.sealable-contacts a.email {
  color: var(--sc-accent);
  text-decoration: none;
  word-break: break-word;
}
.sealable-contacts a.email:hover { text-decoration: underline; }

.sealable-contacts__empty { color: #aaa; }

/* ---------- Filter "Land" / "Bereich" ---------- */
.sealable-contacts__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  gap: 18px;
  margin-bottom: 50px;
}
@media (max-width: 480px) {
  .sealable-contacts__filters { grid-template-columns: 1fr; }
}

.sc-select { position: relative; }

.sc-select__button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px 0 11px;
  border: 2px solid #222;
  background: #fff;
  color: #222;
  font: 700 12px/1 var(--sc-font-body);
  text-align: left;
  cursor: pointer;
}
.sc-select__button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

.sc-select__flag { display: inline-flex; flex: none; }
.sc-select__flag[hidden] { display: none; }
.sc-flag {
  display: block;
  flex: none;
  width: 16px;
  height: 11px;
  object-fit: cover;
}

.sc-select__text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sc-select__chevron {
  flex: none;
  width: 13px;
  height: 9px;
  color: var(--sc-accent);
  transition: transform .2s ease;
}
.sc-select.is-open .sc-select__chevron { transform: rotate(180deg); }

.sc-select__list {
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  margin: -2px 0 0;
  padding: 4px 0;
  overflow-y: auto;
  list-style: none;
  border: 2px solid #222;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.sc-select__list:focus { outline: none; }

.sc-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  color: #222;
  font: 700 12px/1.3 var(--sc-font-body);
  cursor: pointer;
}
.sc-select__option.is-active { background: #f3f3f3; }
.sc-select__option[aria-selected="true"] { color: var(--sc-accent); }
