/* IP Schulstandorte – angelehnt an das bisherige Layout von /schule/ */
.ipss-list {
  --ipss-gradient: linear-gradient(80deg, rgba(23,147,210,0.9) 0%, rgba(229,20,65,0.9) 51%, rgba(255,221,0,0.9) 100%);
  --ipss-text: var(--e-global-color-text, #7A7A7A);
  --ipss-heading: var(--e-global-color-primary, #000000);
  --ipss-secondary: var(--e-global-color-secondary, #54595F);
  --ipss-font-light: "Aeonis LT W01 Light", sans-serif;
}

/* Akkordeon je Stadt */
.ipss-city { border: 0; margin: 0; }
.ipss-city-title {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
  /* Werte wie im bisherigen /schule/-Akkordeon gemessen (25px / 600, mobil 16px) */
  font-family: var(--e-global-typography-primary-font-family, "Aeonis LT W01 Medium"), sans-serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  color: var(--ipss-heading);
}
.ipss-city-title::-webkit-details-marker { display: none; }
.ipss-city-title::marker { content: ""; }
.ipss-city[open] > .ipss-city-title { color: #060606; }
.ipss-city-title:focus-visible { outline: 3px solid #1175E9; outline-offset: 2px; }
.ipss-city-icon {
  flex: 0 0 1.5em;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.ipss-city-icon::before {
  content: "";
  width: .45em;
  height: .45em;
  border-right: .15em solid currentColor;
  border-bottom: .15em solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .2s ease;
}
.ipss-city[open] .ipss-city-icon::before { transform: translateY(25%) rotate(-135deg); }
.ipss-city-content {
  padding: 15px 20px;
  color: var(--ipss-text);
  font-family: var(--e-global-typography-text-font-family, "Aeonis LT W01 Light"), sans-serif;
  font-size: var(--e-global-typography-text-font-size, 16px);
  font-weight: var(--e-global-typography-text-font-weight, 400);
}

/* Trennlinie wie .rainbow-line */
.ipss-line { height: 5px; margin: 10px; background: var(--ipss-gradient); }
.ipss-city-content > .ipss-line:first-child { margin-top: 30px; }

/* Schule: Schulinfos 52 % / Ansprechpartner 27 % / Standort-Box 21 % */
.ipss-school { display: flex; flex-wrap: nowrap; align-items: flex-start; }
.ipss-col { padding: 10px; box-sizing: border-box; min-width: 0; }
.ipss-col-info { width: 52%; }
.ipss-col-contacts { width: 27%; }
.ipss-col-location { width: 21%; }

.ipss-school-name,
.ipss-contact-role {
  margin: 0 0 30px;
  text-align: center;
  font-family: var(--ipss-font-light);
  font-size: 17px;
  font-weight: 600;
  color: var(--ipss-heading);
}
.ipss-contact + .ipss-contact .ipss-contact-role { margin-top: 50px; }
/* Desktop: Ansprechpartner-Block etwa so breit wie bisher (Bild ~210 px) */
.ipss-contact { max-width: 210px; margin: 0 auto; }
.ipss-contact-name {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--ipss-font-light);
  font-size: 18px;
  font-weight: 600;
  color: var(--ipss-heading);
}
.ipss-text p { margin: 0 0 20px; }
.ipss-text p:last-child { margin-bottom: 0; }
.ipss-text ul { margin: 0 0 20px 20px; padding: 0; }

.ipss-contact-image {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: url(https://interaktiv-perspektiven.de/wp-content/uploads/2023/11/Team-Rahmen.webp);
  mask-image: url(https://interaktiv-perspektiven.de/wp-content/uploads/2023/11/Team-Rahmen.webp);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.ipss-contact-list { list-style: none; margin: 0; padding: 0; }
.ipss-contact-list li { margin: 2.5px 0; }
.ipss-contact-list a { display: inline-flex; align-items: flex-start; gap: .4em; color: var(--ipss-secondary); text-decoration: none; word-break: break-word; }
.ipss-contact-list a:hover span:last-child { text-decoration: underline; }
.ipss-icon {
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  margin-top: .2em;
  background: currentColor;
  -webkit-mask: var(--ipss-icon) center / contain no-repeat;
  mask: var(--ipss-icon) center / contain no-repeat;
}
.ipss-icon-phone {
  --ipss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3Zm-4 20a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5ZM17 17H7V4h10Z'/%3E%3C/svg%3E");
}
.ipss-icon-mail {
  --ipss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 2v.5l-8 5-8-5V6Zm0 12H4V8.85l8 5 8-5Z'/%3E%3C/svg%3E");
}

.ipss-icon-route {
  --ipss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E");
}
.ipss-icon-web {
  --ipss-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm6.93 6h-2.95a15.6 15.6 0 0 0-1.38-3.56A8.03 8.03 0 0 1 18.93 8ZM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96ZM4.26 14a7.9 7.9 0 0 1 0-4h3.38a16.5 16.5 0 0 0 0 4H4.26Zm.81 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.99 7.99 0 0 1 5.07 16ZM8.02 8H5.07a7.99 7.99 0 0 1 4.33-3.56A15.6 15.6 0 0 0 8.02 8ZM12 19.96A14.1 14.1 0 0 1 10.09 16h3.82A14.1 14.1 0 0 1 12 19.96ZM14.34 14H9.66a14.7 14.7 0 0 1 0-4h4.68a14.7 14.7 0 0 1 0 4Zm.26 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56ZM16.36 14a16.5 16.5 0 0 0 0-4h3.38a7.9 7.9 0 0 1 0 4h-3.38Z'/%3E%3C/svg%3E");
}

/* Standort-/Aktionsbox: dezent, nur duenne Trennlinie */
.ipss-col-location {
  align-self: stretch;
  padding-left: 22px;
  border-left: 1px solid rgba(0,0,0,.1);
  text-align: center;
}
.ipss-location-title {
  margin: 0 0 18px;
  font-family: var(--ipss-font-light);
  font-size: 17px;
  font-weight: 600;
  color: var(--ipss-heading);
}
.ipss-location-address { margin: 0 0 20px; line-height: 1.6; }
.ipss-location-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }

.ipss-map-button {
  display: block;
  box-sizing: border-box;
  padding: 12px 16px;
  text-align: center;
  background-color: #E51441;
  background-image: linear-gradient(80deg, rgba(23,147,210,0.9) 0%, rgba(229,20,65,0.9) 51%, rgba(255,221,0,0.9) 100%);
  color: #fff !important;
  font-family: "Aeonis LT W01 Medium", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
  transition: box-shadow .2s ease;
}
.ipss-map-button:hover { box-shadow: 0 0 16px rgba(0,0,0,.5); }
.ipss-route-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .4em;
  box-sizing: border-box;
  padding: 9px 14px;
  border: 1px solid rgba(0,0,0,.18);
  color: var(--ipss-secondary) !important;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none !important;
  transition: border-color .2s ease, color .2s ease;
}
.ipss-route-link .ipss-icon { margin-top: 0; }
.ipss-route-link:hover { border-color: rgba(0,0,0,.45); color: var(--ipss-heading) !important; }
.ipss-map-button:focus-visible,
.ipss-route-link:focus-visible,
.ipss-location-web a:focus-visible { outline: 3px solid #1175E9; outline-offset: 3px; }
.ipss-location-web { margin: 18px 0 0; font-size: 14px; }
.ipss-location-web a { display: inline-flex; align-items: flex-start; gap: .4em; color: var(--ipss-secondary); text-decoration: none; overflow-wrap: anywhere; text-align: left; }
.ipss-location-web a:hover span { text-decoration: underline; }

/* Tablet & Mobil: untereinander, volle Breite (Umbruch nach verfuegbarer Breite) */
.ipss-city-content { container-type: inline-size; }
@container (max-width: 1000px) {
  .ipss-school { flex-direction: column; align-items: stretch; }
  .ipss-col-info, .ipss-col-contacts, .ipss-col-location { width: 100%; }
  .ipss-col-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 40px;
  }
  .ipss-contact + .ipss-contact .ipss-contact-role { margin-top: 0; }
  .ipss-contact { max-width: 300px; margin: 0 auto 30px; }
  .ipss-col-location {
    margin: 10px 0 30px;
    padding: 24px 10px 0;
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,.1);
  }
  .ipss-location-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ipss-map-button, .ipss-route-link { min-width: 220px; }
}
@container (max-width: 560px) {
  .ipss-col-contacts { grid-template-columns: 1fr; }
  .ipss-contact { max-width: none; }
  .ipss-location-actions { flex-direction: column; align-items: stretch; }
  .ipss-map-button, .ipss-route-link { min-width: 0; width: 100%; }
}
@media (max-width: 767px) {
  .ipss-city-title { font-size: 16px; padding: 12px 15px; }
  .ipss-city-content { padding: 7px 15px; }
}

/* Karte */
.ipss-map {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  z-index: 1;
  background: #f4f4f4;
  scroll-margin-top: var(--ipss-offset, 24px);
}
@media (max-width: 767px) {
  .ipss-map { height: 430px !important; }
}
.ipss-map-wrap { scroll-margin-top: var(--ipss-offset, 24px); }

/* Platzhalter ohne Borlabs ("Karte laden"); mit Borlabs gestaltet Borlabs den Platzhalter */
.ipss-map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 4px;
  background: #f4f4f4;
  text-align: center;
}
.ipss-map-consent p { max-width: 520px; margin: 0; font-size: 14px; color: #54595F; }
.ipss-map-load {
  padding: 12px 24px;
  border: 0;
  background-color: #E51441;
  background-image: linear-gradient(80deg, rgba(23,147,210,0.9) 0%, rgba(229,20,65,0.9) 51%, rgba(255,221,0,0.9) 100%);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.ipss-map-load:hover { box-shadow: 0 0 16px rgba(0,0,0,.5); }
.ipss-map-load:focus-visible { outline: 3px solid #1175E9; outline-offset: 3px; }
@media (max-width: 767px) {
  .ipss-map-consent { min-height: 430px !important; }
}
.ipss-marker {
  width: 23px;
  height: 23px;
  background: #f4c51c;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
  box-sizing: border-box;
}
.ipss-map .leaflet-popup-content-wrapper { border-radius: 5px; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.ipss-map .leaflet-popup-content { margin: 16px 18px; font-family: inherit; line-height: 1.45; min-width: 220px; max-width: 280px; }
.ipss-popup-name { display: block; font-size: 17px; font-weight: 700; color: #000; margin-bottom: 4px; }
.ipss-popup-address { display: block; font-size: 14px; color: #54595F; margin-bottom: 12px; }
.ipss-map a.ipss-popup-route {
  display: inline-block;
  padding: 8px 14px;
  background-image: linear-gradient(80deg, rgba(23,147,210,0.9) 0%, rgba(229,20,65,0.9) 51%, rgba(255,221,0,0.9) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ipss-map a.ipss-popup-route:focus-visible { outline: 3px solid #1175E9; outline-offset: 2px; }

/* ---------- Fachbereich Soziales ([soziales_standorte]) ---------- */
.ipss-social .ipss-map-wrap { margin-bottom: 30px; }
.ipss-school.ipss-no-contacts .ipss-col-info { width: 79%; }
.ipss-also { font-size: 14px; }
@container (max-width: 1000px) {
  .ipss-school.ipss-no-contacts .ipss-col-info { width: 100%; }
}

/* Ansprechpartner eines Angebots (oben im Angebots-Akkordeon) */
.ipss-group-contacts { padding: 10px 10px 20px; }
.ipss-group-contacts-title {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--ipss-font-light);
  font-size: 17px;
  font-weight: 600;
  color: var(--ipss-heading);
}
.ipss-group-contacts-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 48px; }
.ipss-group-contacts-list .ipss-contact { width: 210px; margin: 0; }
.ipss-group-contacts-list .ipss-contact-role { margin-bottom: 18px; min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; }
.ipss-col-contacts .ipss-contact + .ipss-contact { margin-top: 40px; }
@container (max-width: 560px) {
  .ipss-group-contacts-list .ipss-contact { width: 100%; max-width: 320px; }
}

/* ---------- Soziales, kompakte Ansicht (ab 0.3.0) ---------- */
.ipss-social-compact .ipss-map-wrap { margin-bottom: 24px; }
.ipss-people-box > .ipss-city-content > .ipss-line:first-child { margin-top: 10px; }
.ipss-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px 28px;
  padding: 14px 10px 18px;
}
.ipss-person {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
  border-radius: 6px;
  scroll-margin-top: var(--ipss-offset, 24px);
  transition: box-shadow .35s ease, background-color .35s ease;
}
.ipss-person:focus { outline: none; }
.ipss-person-image {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  object-fit: cover;
  -webkit-mask-image: url(https://interaktiv-perspektiven.de/wp-content/uploads/2023/11/Team-Rahmen.webp);
  mask-image: url(https://interaktiv-perspektiven.de/wp-content/uploads/2023/11/Team-Rahmen.webp);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
}
.ipss-person-body { min-width: 0; flex: 1 1 auto; font-size: 15px; line-height: 1.45; }
.ipss-person-name {
  margin: 0;
  font-family: var(--ipss-font-light);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ipss-heading);
}
.ipss-person-role { margin: 2px 0 6px; font-size: 14px; color: var(--ipss-secondary); }
.ipss-person .ipss-contact-list li { margin: 1px 0; }
.ipss-person-offers { margin: 6px 0 4px; font-size: 13px; color: var(--ipss-secondary); }
.ipss-person-places,
.ipss-places { list-style: none; margin: 0; padding: 0; }
.ipss-person-places { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.ipss-person-places li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ipss-heading); }

/* kleiner Regenbogen-Button "Auf Karte" */
.ipss-map-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 0;
  background-color: #E51441;
  background-image: var(--ipss-gradient);
  color: #fff;
  font: 500 12px/1.4 "Aeonis LT W01 Medium", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 6px rgba(0,0,0,.25);
}
.ipss-map-chip:hover { box-shadow: 0 0 10px rgba(0,0,0,.45); }
.ipss-map-chip:focus-visible { outline: 3px solid #1175E9; outline-offset: 2px; }

/* Standortliste: eine Zeile je Standort, Desktop in Spalten */
.ipss-places-title {
  margin: 16px 10px 8px;
  font-family: var(--ipss-font-light);
  font-size: 17px;
  font-weight: 600;
  color: var(--ipss-heading);
}
.ipss-places {
  columns: 3 230px;
  column-gap: 28px;
  padding: 0 10px 10px;
}
.ipss-place {
  break-inside: avoid;
  padding: 6px 8px;
  border-radius: 6px;
  scroll-margin-top: var(--ipss-offset, 24px);
  transition: box-shadow .35s ease, background-color .35s ease;
}
.ipss-place:focus { outline: none; }
.ipss-place-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ipss-place-name { font-weight: 600; color: var(--ipss-heading); font-size: 15px; }
.ipss-place-address,
.ipss-place-offers { display: block; font-size: 13px; color: var(--ipss-secondary); }
.ipss-place-more { margin-top: 4px; font-size: 13px; }
.ipss-place-more p { margin: 0 0 6px; }

/* Ziel aus dem Karten-Popup kurz hervorheben */
.ipss-highlight { background-color: rgba(244,197,28,.18); box-shadow: 0 0 0 3px rgba(229,20,65,.55); }

/* Karten-Popup Soziales */
.ipss-popup-offers { display: block; font-size: 13px; color: #54595F; margin: -6px 0 12px; }
.ipss-popup-address + .ipss-popup-offers { margin-top: -8px; }
.ipss-popup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ipss-map .ipss-popup-people {
  padding: 7px 12px;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ipss-map .ipss-popup-people:hover { border-color: rgba(0,0,0,.55); }
.ipss-map .ipss-popup-people:focus-visible { outline: 3px solid #1175E9; outline-offset: 2px; }

@media (max-width: 767px) {
  .ipss-people { grid-template-columns: 1fr; padding: 10px 0; gap: 8px; }
  .ipss-person-image { flex-basis: 64px; width: 64px; height: 64px; }
  .ipss-places { columns: 1; padding: 0; }
  .ipss-places-title { margin-left: 0; }
}

/* Feinschliff: Karten nur so hoch wie ihr Inhalt, E-Mail moeglichst einzeilig */
.ipss-people { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.ipss-person-image { flex-basis: 64px; width: 64px; height: 64px; }
.ipss-person .ipss-contact-list a { font-size: 14px; word-break: normal; overflow-wrap: anywhere; }
.ipss-person .ipss-contact-list li { margin: 0; }
@media (max-width: 767px) {
  .ipss-person { padding: 8px 6px; gap: 12px; }
  .ipss-person-image { flex-basis: 56px; width: 56px; height: 56px; }
  .ipss-person-body { font-size: 14px; }
  .ipss-person-name { font-size: 16px; }
  .ipss-person-role { font-size: 13px; margin-bottom: 4px; }
}

/* 0.3.1: Standortzeilen ruhig – Name links, "Karte anzeigen" rechts, gleiche rechte Kante */
.ipss-person-places {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.ipss-person-places li,
.ipss-place-head {
  display: flex;
  flex-wrap: wrap;            /* mobil darf der Button sauber in die naechste Zeile */
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-width: 0;
}
.ipss-person-place,
.ipss-place-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ipss-map-chip { flex: 0 0 auto; margin-left: auto; }  /* bleibt rechts, auch nach Umbruch */
.ipss-person-body { min-width: 0; }                    /* lange E-Mails verschieben nichts (umbrechen statt verbreitern) */
.ipss-person .ipss-contact-list a { max-width: 100%; }
.ipss-person .ipss-email { font-size: 13px; overflow-wrap: normal; word-break: keep-all; }
