/* SPINNWERK Lageplan v0.2.0 – responsive, contained, scoped */
.swlp,.swlp *{box-sizing:border-box}.swlp{max-width:1290px;width:100%;margin:0 auto;color:#2e3135;font-family:Inter,Arial,sans-serif;overflow-wrap:break-word}.swlp-head{text-align:left!important;margin-bottom:20px}.swlp-head>span{display:block;font-size:12px;letter-spacing:.09em;font-weight:700;color:#575d60}.swlp-head h2{font-size:clamp(28px,3vw,40px);line-height:1.16;margin:9px 0 12px;color:#2e3135;text-align:left!important}.swlp-head p{line-height:1.6;margin:0;text-align:left!important}.swlp-map-block{background:#fff;border:1px solid #e1e1df;padding:14px;border-radius:4px}.swlp-image{position:relative;margin:0 auto;width:100%;max-width:1100px;background:#f7f6f2;line-height:0;isolation:isolate}.swlp-image img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}.swlp-pin{position:absolute!important;z-index:2;transform:translate(-50%,-50%);width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;padding:0!important;border-radius:50%!important;background:#d81c28!important;color:#fff!important;border:3px solid #fff!important;font-family:Inter,Arial,sans-serif!important;font-size:15px!important;font-weight:750!important;line-height:32px!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;box-shadow:0 2px 8px #0004;white-space:nowrap}.swlp-pin:hover,.swlp-pin[aria-expanded=true]{background:#2e3135!important}.swlp-pickers{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;padding:16px 4px 2px;margin:0!important;max-width:none!important}.swlp-pickers-title{color:#555;font-size:13px;font-weight:700;margin-right:8px}.swlp-pickers button{flex:0 0 auto!important;width:auto!important;min-height:42px;padding:9px 15px!important;border:1px solid #d4d5d4!important;border-radius:4px!important;background:#fff!important;color:#2e3135!important;font:650 14px Inter,Arial,sans-serif!important;line-height:1.3!important;cursor:pointer;box-shadow:none!important}.swlp-pickers button:hover,.swlp-pickers button[aria-expanded=true]{color:#fff!important;background:#d81c28!important;border-color:#d81c28!important}.swlp button:focus-visible,.swlp a:focus-visible{outline:3px solid #20272a!important;outline-offset:3px}.swlp-details{margin:18px 0 0!important;background:#f7f6f2;border-top:3px solid #d81c28;padding:clamp(18px,3vw,32px)}.swlp-details[hidden],.swlp-details article[hidden]{display:none!important}.swlp-details small{letter-spacing:.08em;font-weight:700}.swlp-details h3{text-align:left!important;font-size:clamp(24px,3vw,34px);margin:8px 0 15px}.swlp-info{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:32px}.swlp-info p{line-height:1.65}.swlp-info dl{margin:0}.swlp-info dl div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #d8d8d6;padding:10px 0}.swlp-info dt{font-weight:700}.swlp-info dd{text-align:right;margin:0}.swlp-photo{width:100%;max-width:640px;height:auto;display:block;margin:18px 0}.swlp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}.swlp-actions a,.swlp-close{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:11px 16px!important;border:1px solid #2e3135!important;text-decoration:none!important;font-weight:700!important;font-size:14px!important;border-radius:3px!important;cursor:pointer}.swlp-cta{background:#d81c28!important;color:#fff!important;border-color:#d81c28!important}.swlp-pdf{background:#fff!important;color:#2e3135!important}.swlp-close{background:transparent!important;color:#2e3135!important}.swlp-note{font-size:12px!important;line-height:1.6;color:#666!important;margin:12px 0 0!important}@media(max-width:720px){.swlp-map-block{padding:8px}.swlp-image .swlp-pin{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;font-size:12px!important;line-height:26px!important;border-width:2px!important}.swlp-pickers{padding:12px 0 4px;gap:7px}.swlp-pickers-title{flex:0 0 100%}.swlp-pickers button{flex:1 1 calc(50% - 7px)!important}.swlp-info{grid-template-columns:1fr;gap:12px}.swlp-info dl div{display:block}.swlp-info dd{text-align:left;margin-top:4px}.swlp-actions>*{width:100%}}

/* v0.3.0 actual source-derived building footprint */
.swlp-image{background:#f7f6f2;max-width:1100px;overflow:hidden;border:1px solid #ecebea}
.swlp-image>img{aspect-ratio:940/610;object-fit:contain}
@media(max-width:640px){.swlp-image{min-width:0}.swlp-image .swlp-pin{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:12px!important}}


/* v0.4.0 exact 3D-light master image */
.swlp-image--exact{background:#fff;padding:0;border:none;max-width:1672px}
.swlp-image--exact img{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:auto;object-fit:contain;border-radius:0}
.swlp-image--exact .swlp-pin{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;border-width:3px!important;background:#d81c28!important;color:#fff!important;box-shadow:0 4px 12px rgba(0,0,0,.22)}
.swlp-image--exact .swlp-pin:hover,.swlp-image--exact .swlp-pin[aria-expanded=true]{background:#2e3135!important}
@media(max-width:720px){.swlp-image--exact .swlp-pin{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;font-size:12px!important;line-height:26px!important;border-width:2px!important}}

/* v0.4.4: Existing building numbers are printed on the map image.
   Keep clickable hotspot areas and keyboard focus, without duplicate badges. */
.swlp-image--exact .swlp-pin--invisible,.swlp-image--exact .swlp-pin--invisible:hover,.swlp-image--exact .swlp-pin--invisible[aria-expanded=true]{background:transparent!important;color:transparent!important;border:0!important;box-shadow:none!important;border-radius:5px!important;opacity:1!important}
.swlp-image--exact .swlp-pin--invisible:focus-visible{outline:3px solid #d81c28!important;outline-offset:3px}
.swlp-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.swlp-image--exact .swlp-pin--invisible span{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.swlp-image--exact .swlp-pin--numbered{background:#d81c28!important;color:#fff!important}

/* v0.4.9: All public building pins are transparent hotspots until selected.
   Red ring is a selection indicator, not an extra printed building number. */
.swlp-image--exact .swlp-pin--hotspot,
.swlp-image--exact .swlp-pin--hotspot:hover {
 background:transparent!important;color:transparent!important;border:3px solid transparent!important;
 box-shadow:none!important;opacity:1!important;
}
.swlp-image--exact .swlp-pin--hotspot span {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
.swlp-image--exact .swlp-pin--hotspot[aria-expanded="true"] {
 background:rgba(216,28,40,.09)!important;border:3px solid #d81c28!important;
 box-shadow:0 0 0 2px rgba(255,255,255,.9),0 2px 9px rgba(0,0,0,.2)!important;
}
.swlp-image--exact .swlp-pin--hotspot:focus-visible {outline:3px solid #d81c28!important;outline-offset:3px}
@media(max-width:720px){.swlp-image--exact .swlp-pin--hotspot[aria-expanded="true"]{border-width:2px!important}}

/* v0.5.0: numerische Gebäudetabs, sechs pro Zeile, ohne sichtbaren Hilfstext */
.swlp .swlp-pickers{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px!important;align-items:stretch;padding:16px 4px 2px!important}
.swlp .swlp-pickers-title{display:none!important}
.swlp .swlp-pickers button{width:100%!important;min-width:0!important;min-height:46px!important;padding:9px 6px!important;flex:none!important}
@media(max-width:720px){.swlp .swlp-pickers{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important}}
@media(max-width:390px){.swlp .swlp-pickers{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.5.0: numerische Gebäudetabs, sechs pro Zeile, ohne sichtbaren Hilfstext */
.swlp .swlp-pickers{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px!important;align-items:stretch;padding:16px 4px 2px!important}
.swlp .swlp-pickers-title{display:none!important}
.swlp .swlp-pickers button{width:100%!important;min-width:0!important;min-height:46px!important;padding:9px 6px!important;flex:none!important}
@media(max-width:720px){.swlp .swlp-pickers{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important}}
@media(max-width:390px){.swlp .swlp-pickers{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.5.3 – Nur Lageplan: Gebäudetitel statt doppelter Objektzeile.
   Die CMS-gepflegte Bezeichnung bleibt erhalten; nur die Darstellung wird angepasst. */
.swlp .swlp-details .swlp-info h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
/* Gebäudenummern: kein schwarzer Browser-/Theme-Fokusrahmen.
   Tastaturfokus bleibt als gut erkennbare rote Innenmarkierung sichtbar. */
.swlp .swlp-pickers button:focus,
.swlp .swlp-pickers button:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}
.swlp .swlp-pickers button:focus-visible {
  box-shadow: inset 0 0 0 2px #d81c28 !important;
}
.swlp .swlp-pickers button[aria-expanded="true"]:focus-visible {
  box-shadow: inset 0 0 0 2px #fff !important;
}


/* v0.5.4 – Ausschliesslich Aktionsbuttons unter den Lageplan-Gebaeudedetails.
   Entfernt den schwarzen Theme-/Browser-Fokusrahmen bei Mausklicks.
   Tastaturfokus bleibt als rote Markierung erkennbar. */
.swlp .swlp-details .swlp-actions .swlp-cta:focus,
.swlp .swlp-details .swlp-actions .swlp-close:focus {
  outline: none !important;
  box-shadow: none !important;
}
.swlp .swlp-details .swlp-actions .swlp-cta:focus-visible,
.swlp .swlp-details .swlp-actions .swlp-close:focus-visible {
  outline: 2px solid #d81c28 !important;
  outline-offset: 2px !important;
}
/* Schliessen: derselbe feine rote Rand wie im SPINNWERK-Design. */
.swlp .swlp-details .swlp-actions .swlp-close {
  border: 1px solid #d81c28 !important;
}

/* v0.5.5 – Nur Aktionsbuttons in geoeffneten Gebaeudedetails.
   Anfrage: Rot ohne sichtbaren Rand; Hover/Mausfokus/Aktiv: Anthrazit.
   Schliessen: rote Schrift wie der bereits vorhandene rote Konturrand.
   Tastaturfokus bleibt zur barrierearmen Bedienung sichtbar. */
.swlp .swlp-details .swlp-actions a.swlp-cta {
  border-color: transparent !important;
  background-color: #d81c28 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.swlp .swlp-details .swlp-actions a.swlp-cta:hover,
.swlp .swlp-details .swlp-actions a.swlp-cta:focus,
.swlp .swlp-details .swlp-actions a.swlp-cta:active {
  border-color: transparent !important;
  background-color: #2e3135 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.swlp .swlp-details .swlp-actions button.swlp-close {
  color: #d81c28 !important;
}

.swlp .swlp-image-credit {
  padding: 4px 10px;
  color: #30343a;
  font: 400 12px/16px var(--theme-font-family, Inter, sans-serif);
  text-align: right;
}
