
:root { --p-red: #cc0033; --p-blue:#0a3d91; }
.ps-grid-service{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(16px,2.5vw,28px);align-items:start;max-width:1200px;margin:28px auto;padding:0 16px;}
@media (max-width: 900px){.ps-grid-service{grid-template-columns:1fr;}}
.ps-left h2{margin:0 0 10px 0}
.ps-left p{margin:0 0 10px 0;line-height:1.6}
.ps-left ul{ padding-left: 1.2em; margin: 6px 0 12px 0; }
.ps-left li{ margin: 2px 0; }
.ps-left .ps-privacy{font-size:13px;opacity:.8}
.ps-right .ps-toggle{display:flex;gap:8px;justify-content:flex-end;margin-bottom:8px;flex-wrap:wrap}
.ps-right .ps-toggle button{border:1px solid var(--p-red);background:#fff;color:var(--p-red);border-radius:999px;padding:6px 12px;cursor:pointer;font-weight:600}
.ps-right .ps-toggle button.active{background:var(--p-red);color:#fff}
.ps-right .ps-toggle .ps-expand{margin-right:auto}
.ps-right .ps-toggle .ps-expand:hover{background:var(--p-red);color:#fff}
.ps-consent{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:2px dashed rgba(204,0,51,0.3);color:#cc0033;background:linear-gradient(135deg, #fff7f7 0%, #fff 100%);border-radius:14px;padding:24px 18px;min-height:220px;text-align:center}
.ps-consent p{font-weight:800;margin:0;font-size:1.05rem}
.ps-consent-btn{background:var(--p-red);color:#fff;border:none;border-radius:999px;padding:12px 24px;cursor:pointer;font-weight:700;font-size:0.95rem;box-shadow:0 4px 14px rgba(204,0,51,0.25);transition:transform 0.15s, box-shadow 0.15s}
.ps-consent-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(204,0,51,0.35)}
.ps-consent small{opacity:.6;font-size:0.8rem}
.ps-map-service{width:100%;height:460px;border-radius:14px;overflow:visible;box-shadow:0 4px 20px rgba(0,0,0,.10);position:relative;z-index:1; border: 2px solid rgba(204,0,51,0.15);}
@media (max-width: 900px){ .ps-map-service{height:360px} }

/* Keep the map clipped, but allow a separate popup layer to overflow */
.ps-grid-service,
.ps-right,
.ps-map-shell{
  overflow: visible;
}
.ps-map-shell{
  position: relative;
}
.ps-map-service,
.ps-map-service.leaflet-container{
  overflow: hidden !important;
}
.ps-map-popup-layer{
  position: absolute;
  inset: 0;
  z-index: 900;
  overflow: visible;
  pointer-events: none;
  display: none;
}
.ps-map-popup-layer.is-active{
  display: block;
}
.ps-map-floating-popup{
  position: absolute;
  width: min(280px, calc(100vw - 32px));
  transform: translate(-50%, calc(-100% - 18px));
  pointer-events: auto;
  z-index: 901;
}
.ps-map-floating-popup.is-below{
  transform: translate(-50%, 18px);
}
.ps-map-floating-popup::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.08));
}
.ps-map-floating-popup.is-below::after{
  bottom: auto;
  top: -10px;
  border-top-color: transparent;
  border-bottom-color: #fff;
}
.ps-map-floating-close{
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: #999;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.ps-map-floating-close:hover{
  color: var(--p-red);
  background: #fff;
}
.ps-map-service .leaflet-marker-icon,
.ps-map-service .leaflet-marker-shadow{
  max-width: none !important;
}
.ps-map-error{background:#fff3f3;border:1px solid #cc0033;color:#cc0033;padding:10px;border-radius:8px;margin-top:8px}

/* === Custom Map Pin === */
.ps-map-pin {
  background: none !important;
  border: none !important;
}
.ps-map-pin svg {
  transition: filter 0.15s ease;
}
.ps-map-pin:hover svg {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)) brightness(1.1);
}
.ps-map-pin--image {
  transition: transform 0.15s ease, filter 0.15s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.22));
}
.ps-map-service .leaflet-marker-icon.ps-map-pin--image{
  object-fit: contain;
}
.ps-map-pin--image:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.30));
}

/* === Map Tooltip === */
.ps-map-tooltip {
  background: #222 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Nunito', system-ui, sans-serif !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.25) !important;
  white-space: nowrap !important;
}
.ps-map-tooltip::before {
  border-top-color: #222 !important;
}

/* === Map Popup === */
.ps-map-popup { z-index: 760 !important; }
.ps-map-floating-popup .ps-pop,
.ps-map-popup .leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.18) !important;
  padding: 0 !important;
  overflow: hidden;
  font-family: 'Nunito', system-ui, sans-serif !important;
}
.ps-map-popup .leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 200px;
}
.ps-map-popup .leaflet-popup-tip {
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.ps-map-popup .leaflet-popup-close-button {
  top: 8px !important;
  right: 10px !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 18px !important;
  color: #999 !important;
  background: rgba(255,255,255,0.8) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
}
.ps-map-popup .leaflet-popup-close-button:hover {
  color: var(--p-red) !important;
  background: #fff !important;
}

.ps-map-floating-popup .ps-pop {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font-family: 'Nunito', system-ui, sans-serif;
}

/* Popup inner content */
.ps-pop {
  padding: 0;
}
.ps-pop-media {
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  overflow: hidden;
}
.ps-pop-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-pop--schule .ps-pop-media {
  background: #fff;
}
.ps-pop--schule .ps-pop-media img {
  object-fit: contain;
  padding: 10px;
  background: #fff;
}
.ps-pop-body {
  padding: 16px 18px;
}
.ps-pop-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.ps-pop-badge--kita {
  background: rgba(204,0,51,0.1);
  color: var(--p-red);
}
.ps-pop-badge--schule {
  background: rgba(10,61,145,0.1);
  color: var(--p-blue);
}
.ps-pop-name {
  font-size: 1rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.25;
}
.ps-pop-addr {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 10px;
  line-height: 1.4;
}
.ps-pop-actions {
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-pop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--p-red);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Nunito', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ps-pop-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204,0,51,0.3);
}
.ps-pop-btn--hvv {
  background: #0a3d91;
}
.ps-pop-btn--hvv:hover {
  box-shadow: 0 4px 12px rgba(10,61,145,0.28);
}

/* === Leaflet overrides for theme consistency === */
.ps-map-service .leaflet-control-zoom a {
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #333 !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  font-weight: 700 !important;
}
.ps-map-service .leaflet-control-zoom a:hover {
  background: var(--p-red) !important;
  color: #fff !important;
}
.ps-map-service .leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.ps-map-service .leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important;
  font-size: 10px !important;
  border-radius: 6px 0 0 0 !important;
  padding: 2px 8px !important;
}
.ps-map-service .leaflet-control-attribution a {
  color: var(--p-red) !important;
}


/* Empty left column: no visual space on mobile, keep desktop width for map */
@media (max-width: 900px){
  .ps-grid-service{ grid-template-columns: 1fr; }
  .ps-grid-service .ps-left.is-empty{ display:none; }
}


/* Promo heading: white fill with red outline */
.ps-promo-title{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 10px 0;
  color: #ffffff; /* fill */
  -webkit-text-stroke: 3px #cc0033; /* outline (WebKit) */
  text-shadow:
    1px 0 0 #cc0033, -1px 0 0 #cc0033,
    0 1px 0 #cc0033, 0 -1px 0 #cc0033,
    1px 1px 0 #cc0033, -1px 1px 0 #cc0033,
    1px -1px 0 #cc0033, -1px -1px 0 #cc0033; /* fallback */
}


/* v16: blocky + bolder heading */
.ps-promo-title{
  font-family: "Arial Black", Impact, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  /* thicker red outline */
  -webkit-text-stroke: 4px #cc0033;
  text-shadow:
    1px 0 0 #cc0033, -1px 0 0 #cc0033,
    0 1px 0 #cc0033, 0 -1px 0 #cc0033,
    2px 0 0 #cc0033, -2px 0 0 #cc0033,
    0 2px 0 #cc0033, 0 -2px 0 #cc0033,
    1px 1px 0 #cc0033, -1px 1px 0 #cc0033,
    1px -1px 0 #cc0033, -1px -1px 0 #cc0033;
}


/* v17: stacked, solid red promo title */
.ps-promo-title{
  color:#cc0033 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  font-family: "Arial Black", Impact, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 10px 0;
  font-size: clamp(34px, 5vw, 56px);
}
.ps-promo-title span{ display:block; }


/* v18: Vertically center heading next to open map (desktop) */
@media (min-width: 901px){
  .ps-grid-service.map-active .ps-left{
    display: flex;
    align-items: center;
    min-height: 460px; /* match .ps-map-service desktop height */
  }
}


/* v30: Mobile center the 'Pestalozzi‑Stiftung Hamburg' heading only on small screens */
@media (max-width: 900px){
  .ps-left{ text-align:center; }
  .ps-promo-title{ 
    margin-left:auto; margin-right:auto; 
    text-align:center; 
  }
}


/* v33: Promo cards under the map + intro text on the left */
.ps-intro-text{ margin: 8px 0 14px 0; font-size: 16px; line-height: 1.55; }
.ps-promos{ margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ps-promo-card{ display:block; text-decoration:none; border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; background:#fff; box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.ps-promo-card:hover, .ps-promo-card:focus-visible{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.12); border-color:#cc0033; outline:none; }
.ps-promo-card img{ display:block; width:100%; height: 180px; object-fit: cover; }
.ps-promo-card .ps-promo-meta{ padding: 10px 12px; }
.ps-promo-card h3{ margin:0 0 4px 0; font-size: 18px; color:#cc0033; }
.ps-promo-card p{ margin:0; font-size: 14px; color:#333; }
@media (max-width: 900px){
  .ps-promos{ grid-template-columns: 1fr; }
  .ps-promo-card img{ height: 160px; }
}


/* v34: when map opens, move intro text below the grid */
.ps-below{ grid-column: 1 / -1; margin-top: 10px; }
.ps-below .ps-intro-text{ margin: 6px 0 0 0; font-size: 16px; line-height: 1.55; }

@media (max-width: 900px){
  /* already single-column on mobile, but keep consistent spacing */
  .ps-below{ margin-top: 8px; }
}


/* v35: Left column stacks title + intro when map is active */
@media (min-width: 901px){
  .ps-grid-service.map-active .ps-left{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .ps-grid-service .ps-left .ps-intro-text{ 
    margin-top: 10px; 
    max-width: 42ch;
  }
  .ps-grid-service .ps-left .ps-intro-text ul{ margin: 8px 0 0 1.1em; }
  .ps-grid-service .ps-left .ps-intro-text li{ margin: 2px 0; }
}


/* v37: circular promo buttons stacked vertically */
.ps-promos--vertical{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.ps-promo-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
}
.ps-promo-thumb{
  width: 150px;
  height: 150px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #cc0033;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-promo-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-promo-meta{ padding-top: 6px; }
.ps-promo-meta h3{ margin: 0 0 2px 0; font-size: 15px; color:#cc0033; }
.ps-promo-meta p{ margin: 0; font-size: 12px; color:#333; }
@media (max-width: 900px){
  .ps-promo-thumb{ width: 120px; height: 120px; }
}


/* v38: Neuigkeiten box under intro (left column) */
.ps-news{ margin-top: 28px; width: 100%; max-width: 48ch; }
.ps-news h3{ margin: 0 0 8px 0; font-size: 20px; color:#cc0033; }
.ps-news-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.ps-news-item{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.06); }
.ps-news-link{ display:flex; gap:10px; padding:10px 12px; text-decoration:none; align-items:baseline; }
.ps-news-link:hover, .ps-news-link:focus-visible{ outline:none; box-shadow:0 4px 16px rgba(0,0,0,.10); border-radius:12px; }
.ps-news-date{ font-size:12px; color:#666; min-width:72px; }
.ps-news-title{ color:#111; font-size:14px; line-height:1.35; }
.ps-news-more{ margin-top:8px; }
.ps-btn-more{ display:inline-block; background:#cc0033; color:#fff; padding:8px 12px; border-radius:10px; text-decoration:none; font-size:14px; }
@media (max-width: 900px){
  .ps-news{ max-width: 100%; }
}


/* v39: News heading larger + cards with thumbnail */
.ps-news h3{ margin: 0 0 10px 0; font-size: 26px; line-height:1.1; color:#cc0033; font-weight: 800; letter-spacing: .01em; }
.ps-news-list{ list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.ps-news-item{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; box-shadow:0 3px 12px rgba(0,0,0,.06); }
.ps-news-link{ display:grid; grid-template-columns: 120px 1fr; gap:12px; text-decoration:none; align-items:center; padding:10px; }
.ps-news-media{ margin:0; width:120px; height:84px; overflow:hidden; border-radius:10px; background:#f7f7f7; }
.ps-news-thumb{ width:100%; height:100%; object-fit:cover; display:block; }
.ps-news-text{ display:flex; flex-direction:column; gap:4px; }
.ps-news-date{ font-size:12px; color:#666; }
.ps-news-title{ color:#111; font-size:16px; line-height:1.25; font-weight:600; }
.ps-news-link:hover, .ps-news-link:focus-visible{ outline:none; box-shadow:0 6px 18px rgba(0,0,0,.10); transform: translateY(-1px); border-radius:14px; }
@media (max-width: 900px){
  .ps-news-link{ grid-template-columns: 100px 1fr; }
  .ps-news-media{ width:100px; height:72px; }
}


/* v42: Left column wider, right column (map + buttons) narrower; larger text for accessibility */
@media (min-width: 901px){
  .ps-grid-service{
    display: grid;
    grid-template-columns: 1.35fr 0.85fr; /* left wider, right narrower */
    gap: min(3vw, 28px);
    align-items: start;
  }
  .ps-map-col{ max-width: 640px; } /* keep map from dominating */
  /* Smaller circular promos to fit the narrower column */
  .ps-promos--vertical .ps-promo-thumb{ width: 180px; height: 180px; }
}

/* Accessibility: increase text sizes on the left, use rem so header font-size controls still work */
.ps-left .ps-promo-title{ 
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
  line-height: 1.05;
}
.ps-left .ps-intro-text{
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}
/* News block: slightly larger and more readable */
.ps-news h3{ font-size: clamp(1.375rem, 1.1rem + 0.5vw, 1.75rem); }
.ps-news-title{ font-size: 1.0625rem; }
.ps-news-date{ font-size: 0.85rem; }

/* Ensure the map scales gracefully within the narrower column */
.ps-map-service{ max-width: 100%; }


/* v43: Right column red background + white circular buttons for Spenden/Förderung */
.ps-map-col{
  background: #cc0033;
  border-radius: 18px;
  padding: 16px 16px 65px 16px;
  position: relative;
  overflow: visible;
  margin-top: 40px !important;
}
/* Spielzeug-Rahmen über dem roten Kasten */
.ps-map-col::after {
  content: "";
  position: absolute;
  top: -310px;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  aspect-ratio: 1536 / 2760;
  background-image: url('../../images/toy-frame.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
}
@media (max-width: 900px){
  .ps-map-col{ border-radius: 12px; padding: 12px 12px 40px 12px; }
  .ps-map-col::after { display: none; }
}

/* White button variant */
.ps-promo--white .ps-promo-thumb{
  background: #fff;
  border: none;
}
.ps-promo--white .ps-promo-thumb img{ display: none; }

.ps-promo-thumb{
  position: relative;
}
.ps-promo-thumb .ps-promo-label{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-weight: 800;
  font-size: 1.05rem;
  color: #cc0033;
  padding: 0 10px;
  text-align: center;
}

/* Meta text on red background becomes white for readability */
.ps-promos--vertical .ps-promo-card .ps-promo-meta h3{ color: #fff; }
.ps-promos--vertical .ps-promo-card .ps-promo-meta p{ color: #fff; opacity: .95; }

/* Focus/hover outlines remain accessible on red */
.ps-promo-card:focus-visible .ps-promo-thumb,
.ps-promo-card:hover .ps-promo-thumb{
  outline: 3px solid #fff;
  outline-offset: 3px;
}


/* v48e: tighter column gap + smaller top margin under heading */
@media (min-width: 901px){
  .ps-grid-service{ gap: 16px !important; }
  .ps-left .ps-intro-text{ margin-top: 6px; }
}


/* v49: Partners section - memory style grid */
.ps-partners-wrap{ margin-top: 80px; }
.ps-partners-heading{
  text-align: center; color: #cc0033; font-weight: 900;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  margin: 6px 0 14px 0;
}
.ps-partners-grid{
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.ps-partner{ display: contents; }
.ps-partner-tile{
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.08);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  padding: 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ps-partner-tile:hover, .ps-partner-tile:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  border-color: #cc0033; outline: none;
}
.ps-partner-tile img{ max-width: 90%; max-height: 90%; object-fit: contain; display: block; }
@media (max-width: 900px){
  .ps-partners-grid{ gap: 12px; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}


/* v50: smaller partner tiles (centered) */
.ps-partners-wrap{ max-width: 1280px; margin-left: auto; margin-right: auto; }
.ps-partners-grid{
  justify-content: center; /* center the grid tracks */
  justify-items: center;   /* center tiles within the tracks */
  grid-template-columns: repeat(auto-fill, 110px);
  gap: 12px;
}
.ps-partner-tile{
  width: 110px;
  height: 110px;
  padding: 8px;
  border-radius: 14px;
  aspect-ratio: auto; /* explicit size overrides */
}
.ps-partner-tile img{ max-width: 100%; max-height: 100%; }
@media (max-width: 900px){
  .ps-partners-grid{ grid-template-columns: repeat(auto-fill, 88px); gap: 10px; }
  .ps-partner-tile{ width: 88px; height: 88px; padding: 6px; border-radius: 12px; }
}


/* v52d: inject promo icons via CSS (no PHP modifications) */
.ps-promos--vertical a[href*="/kontakt/"] .ps-promo-thumb{
  background-image: url("../../images/promos/kontakt.webp");
}
.ps-promos--vertical a[href*="/jobs/"] .ps-promo-thumb{
  background-image: url("../../images/promos/job.webp");
}
.ps-promos--vertical a[href*="/paedagogik/"] .ps-promo-thumb{
  background-image: url("../../images/promos/unsere-paedagogik.webp");
}
.ps-promos--vertical .ps-promo-thumb{
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
/* If there is any inner <img> or label span, hide it for these three to avoid double content */
.ps-promos--vertical a[href*="/kontakt/"] .ps-promo-thumb > img,
.ps-promos--vertical a[href*="/jobs/"] .ps-promo-thumb > img,
.ps-promos--vertical a[href*="/paedagogik/"] .ps-promo-thumb > img{
  display: none !important;
}
.ps-promos--vertical a[href*="/kontakt/"] .ps-promo-thumb > .ps-promo-label,
.ps-promos--vertical a[href*="/jobs/"] .ps-promo-thumb > .ps-promo-label,
.ps-promos--vertical a[href*="/paedagogik/"] .ps-promo-thumb > .ps-promo-label{
  display: none !important;
}



/* v52e: Partner-Grid auf 4 reduzieren & zentrieren */
.ps-partners-wrap{ max-width: 980px; margin-left: auto; margin-right: auto; }
.ps-partners-grid{
  justify-content: center;
  justify-items: center;
  gap: 12px;
}
@media (min-width: 901px){
  .ps-partners-grid{ grid-template-columns: repeat(4, 120px); }
}
@media (max-width: 900px){
  .ps-partners-grid{ grid-template-columns: repeat(2, 110px); }
}


/* v52f: subheading under red stacked title */
.ps-promo-subtitle{
  margin-top: 4px;
  color: #cc0033;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
}


/* v52j: red subtitle between title and intro */
.ps-promo-subtitle{
  margin-top: 2px;
  color: #cc0033;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.1rem);
}


/* v52k: ensure subtitle appears between title and intro with clear spacing */
.ps-promo-title{ margin-bottom: 4px; }
.ps-promo-subtitle{
  display: block;
  margin: 0 0 10px 0; /* small gap below subtitle before intro text */
  color: #cc0033;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.15rem);
}
.ps-intro-text{ margin-top: 0 !important; }


/* v52l: Lock heading/subtitle/text order in the left column to avoid reflow when map toggles */
.ps-left{ display: flex; flex-direction: column; align-items: flex-start; }
.ps-left .ps-promo-title,
.ps-left .ps-promo-subtitle,
.ps-left .ps-intro-text{
  width: 100%;
  display: block;
  clear: both;
}
.ps-left .ps-promo-title{ order: 1; }
.ps-left .ps-promo-subtitle{ order: 2; }
.ps-left .ps-intro-text{ order: 3; }

/* Extra safety: prevent floats/inline alignment from affecting order */
.ps-left *{ float: none !important; }

/* Keep consistent spacing */
.ps-promo-title{ margin-bottom: 4px; }
.ps-promo-subtitle{ margin: 0 0 10px 0; }
.ps-intro-text{ margin-top: 0 !important; }


/* v52m: keep news block after intro in left column */
.ps-left .ps-news{
  order: 4;
  width: 100%;
  margin-top: 18px;
}

/* Anmelden-Button nach dem Text, zentriert */
.ps-left .ps-anmelden-btn {
  order: 4;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* === Anmelde-Modal === */
.ps-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ps-modal-backdrop.open {
  display: flex;
}

/* Rahmen-Container – keine eigene background, das macht ::after */
.ps-modal {
  position: relative;
  width: min(700px, 96vw);
  aspect-ratio: 2000 / 1089;
  overflow: visible;
}

/* Rahmen + Schaufel als ::after – liegt ÜBER dem Inhalt (z-index 2) */
.ps-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../images/modal-frame.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* Schließen-Button über dem Rahmen */
.ps-modal-close {
  position: absolute;
  top: 6%; right: 5%;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: rgba(80,40,10,.65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 3;
}
.ps-modal-close:hover { background: rgba(80,40,10,.95); }

/* Inhalt in der transparenten Innenfläche
   Gemessen: top 24.4%, bottom 79.3%, left 16.5%, right 16.3% */
.ps-modal-content {
  position: absolute;
  top: 24%; bottom: 20%;
  left: 16.5%; right: 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
}

.ps-modal-title {
  font-family: "Arial Black", Impact, 'Nunito', sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  font-weight: 900;
  color: #cc0033;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  padding-left: 1%;
}

.ps-modal-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ps-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: "Arial Black", Impact, 'Nunito', sans-serif;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 900;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.ps-modal-btn:hover, .ps-modal-btn:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  outline: none;
}
.ps-modal-btn--kita {
  background: #cc0033;
  color: #fff;
}
.ps-modal-btn--kita:hover { background: #aa0028; }

.ps-modal-btn--schule {
  background: #fff;
  color: #cc0033;
  border: 2px solid #cc0033;
}
.ps-modal-btn--schule:hover { background: #fff7f7; }

.ps-modal-btn-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

@media (max-width: 500px) {
  .ps-modal-content { gap: 12px; }
  .ps-modal-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .ps-modal-btn { padding: 10px 24px; width: 100%; max-width: 200px; }
}

/* Bild-Buttons in der Map */
.ps-img-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ps-img-btn img {
  height: 95px;
  width: auto;
  display: block;
}
.ps-img-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.ps-img-btn:active {
  transform: scale(0.95);
}
.ps-img-btn.active {
  filter: brightness(1.15) drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.ps-img-btn[role="tab"]:not(.active) {
  opacity: 0.7;
}
.ps-img-btn[role="tab"]:not(.active):hover {
  opacity: 1;
}


/* Mobile: only the three map control buttons in one row */
@media (max-width: 600px){
  .ps-right{
    min-width: 0;
  }
  .ps-right .ps-toggle{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: space-between;
    align-items: center;
    overflow-x: clip;
  }
  .ps-right .ps-toggle .ps-expand{
    margin-right: 0;
  }
  .ps-right .ps-toggle .ps-img-btn{
    flex: 0 1 calc((100% - 8px) / 3);
    width: calc((100% - 8px) / 3);
    min-width: 0;
    max-width: calc((100% - 8px) / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .ps-right .ps-toggle .ps-img-btn img{
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}
