.as-locations[hidden],.as-locations [hidden]{display:none!important}

/*
 * A&S Standorte — visual alignment with autoteile-as.de
 *
 * No font is downloaded by this plugin. The site's existing Inter font is
 * reused for normal text, Golos Text for the eyebrow, and Segoe UI for headings.
 */
.as-locations{
  --as-accent:#f43f5e;
  --as-accent-hover:#f40028;
  --as-border:#dce2e8;
  --as-muted:#5f6b7e;
  --as-text:#11151b;
  --as-heading-font:"Segoe UI","Segoe UI Variable",Arial,sans-serif;
  --as-body-font:Inter,"Segoe UI",Arial,sans-serif;
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  color:var(--as-text);
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  font-weight:400;
  line-height:1.5;
  box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.as-locations *{box-sizing:border-box}
.as-locations p,.as-locations a,.as-locations button,.as-locations small,.as-locations strong,.as-locations span,.as-locations div{
  font-family:inherit;
}

/* Header typography mirrors the surrounding page. */
.as-heading{
  margin:0 0 27px;
  padding:0;
}
.as-eyebrow{
  margin:0 0 17px!important;
  padding:0!important;
  color:var(--as-accent)!important;
  font-family:"Golos Text",Inter,"Segoe UI",Arial,sans-serif!important;
  font-size:19px!important;
  line-height:1.25!important;
  font-weight:400!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
}
.as-heading h2{
  margin:0 0 8px!important;
  padding:0!important;
  color:#080a0e!important;
  font-family:var(--as-heading-font)!important;
  font-size:57px!important;
  line-height:1.14!important;
  font-weight:500!important;
  font-style:normal!important;
  letter-spacing:0!important;
  text-transform:uppercase!important;
}
.as-heading p{
  margin:0!important;
  padding:0!important;
  color:var(--as-muted)!important;
  font-family:var(--as-body-font)!important;
  font-size:16px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:0!important;
}

/* Desktop selection happens on the map, matching the supplied design. */
.as-location-tabs{display:none!important}

/* Main two-column layout. */
.as-main-grid{
  display:grid;
  grid-template-columns:minmax(330px,.595fr) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
  margin:0;
}
.as-card{
  background:#fff;
  border:1px solid var(--as-border);
  border-radius:5px;
  overflow:hidden;
  box-shadow:none;
}
.as-details-card{
  min-height:390px;
  padding:20px 20px 16px;
  display:flex;
  flex-direction:column;
}
.as-place-head{
  display:flex;
  align-items:flex-start;
  gap:16px;
  min-height:119px;
  margin:0;
  padding:0;
}
.as-pin{
  display:flex;
  flex:0 0 34px;
  width:34px;
  height:43px;
  margin:0;
  color:var(--as-accent);
}
.as-pin svg{
  display:block;
  width:34px;
  height:43px;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.as-place-head>div{min-width:0;padding-top:2px}
.as-place-head h3{
  margin:0 0 3px!important;
  padding:0!important;
  color:#080a0e!important;
  font-family:var(--as-heading-font)!important;
  font-size:30px!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.as-company{
  margin:0;
  color:#4e596b;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  line-height:1.4;
  font-weight:700!important;
}
.as-address{
  margin:1px 0 0;
  color:#59667a;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  line-height:1.45;
  font-weight:400;
  white-space:nowrap;
}
.as-details-card hr{
  width:100%;
  height:1px;
  margin:0 0 13px;
  border:0;
  border-top:1px solid var(--as-border);
}
.as-details-card h4{
  margin:0 0 10px!important;
  padding:0!important;
  color:#080a0e!important;
  font-family:var(--as-heading-font)!important;
  font-size:21px!important;
  line-height:1.3!important;
  font-weight:500!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.as-hours{
  display:grid;
  gap:2px;
  margin:0;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  line-height:1.5;
}
.as-hours>div{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:8px;
  min-height:25px;
  align-items:center;
}
.as-hours span{color:#566174;font-weight:700!important}
.as-hours strong{color:#566174;font-weight:400}
.as-note{
  margin:8px 0 13px!important;
  padding:0!important;
  color:#697487!important;
  font-family:var(--as-body-font)!important;
  font-size:16px!important;
  line-height:1.4!important;
  font-weight:400!important;
}
.as-route-btn,.as-map-load{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:48px;
  padding:10px 16px!important;
  border:0!important;
  border-radius:4px!important;
  background:var(--as-accent)!important;
  color:#fff!important;
  font-family:var(--as-body-font)!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:500!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer;
}
.as-route-btn{margin-top:auto}
.as-route-btn:hover,.as-map-load:hover{background:var(--as-accent-hover)!important;color:#fff!important}
.as-route-btn:focus-visible,.as-map-load:focus-visible{outline:2px solid var(--as-accent);outline-offset:2px}
.as-map-load:disabled{opacity:.45;cursor:not-allowed}

/* Interactive OpenStreetMap panel. */
.as-map-card{position:relative;min-height:390px;height:100%;background:#eef2f4}
.as-map-stage{position:absolute;inset:0;overflow:hidden;background:#edf3ef}
.as-map-viewport{
  position:absolute;
  inset:0;
  overflow:hidden;
  cursor:grab;
  touch-action:none;
  outline:none;
  background:linear-gradient(180deg,#eff4f1,#e7efea);
}
.as-map-viewport.is-dragging{cursor:grabbing}
.as-map-viewport:focus-visible{box-shadow:inset 0 0 0 2px rgba(216,46,78,.30)}
.as-map-tiles,.as-map-markers{position:absolute;inset:0}
.as-map-tiles{z-index:1;overflow:hidden}
.as-map-tile{position:absolute;width:256px;height:256px;max-width:none!important;user-select:none;pointer-events:none}
.as-map-markers{z-index:3;pointer-events:none}

.as-map-marker{
  position:absolute;
  transform:translate(-50%,-100%);
  border:0!important;
  background:transparent!important;
  padding:0!important;
  pointer-events:auto;
  cursor:pointer;
  transition:opacity .14s linear;
  will-change:left,top,opacity;
  box-shadow:none!important;
  font-family:var(--as-body-font)!important;
}
.as-map-marker:focus-visible{outline:2px solid var(--as-accent);outline-offset:5px;border-radius:6px}
.as-map-marker-pin{
  position:relative;
  display:block;
  width:32px;
  height:32px;
  background:#fff;
  border:2.5px solid #3d434d;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  box-shadow:0 5px 13px rgba(0,0,0,.12);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.as-map-marker-pin:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  opacity:0;
  transform:translate(-50%,-50%);
  transition:opacity .15s ease;
}
.as-map-marker-index{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) rotate(45deg);
  color:#2f3640;
  font-family:var(--as-body-font)!important;
  font-size:14px;
  line-height:1;
  font-weight:500;
  transition:opacity .15s ease;
}
.as-map-marker-label{
  position:absolute;
  left:42px;
  top:0;
  display:block;
  padding:7px 12px;
  background:#fff;
  color:#15181d;
  border:1px solid rgba(0,0,0,.07);
  border-radius:8px;
  box-shadow:0 5px 16px rgba(0,0,0,.12);
  white-space:nowrap;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  line-height:1.1;
  font-weight:500;
  transform:translateY(0);
  opacity:1;
  visibility:visible;
  transition:.15s ease;
}
.as-map-marker:hover .as-map-marker-pin{transform:rotate(-45deg) scale(1.04);box-shadow:0 7px 16px rgba(0,0,0,.16)}
.as-map-marker.is-active{z-index:5}
.as-map-marker.is-active .as-map-marker-pin{background:var(--as-accent);border-color:var(--as-accent);transform:rotate(-45deg) scale(1.06);box-shadow:0 8px 20px rgba(244,63,94,.24)}
.as-map-marker.is-active .as-map-marker-pin:after{opacity:1}
.as-map-marker.is-active .as-map-marker-index{opacity:0}
.as-map-marker.is-active .as-map-marker-label{border-color:rgba(216,46,78,.18);box-shadow:0 5px 16px rgba(0,0,0,.12)}

.as-map-controls{
  position:absolute;
  right:11px;
  top:11px;
  z-index:6;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:5px;
  box-shadow:0 3px 12px rgba(0,0,0,.14);
}
.as-map-control{
  width:42px;
  height:42px;
  padding:0!important;
  border:0!important;
  background:#fff!important;
  color:#262626!important;
  font-family:Arial,sans-serif!important;
  font-size:27px!important;
  line-height:1!important;
  font-weight:700!important;
  cursor:pointer;
  box-shadow:none!important;
}
.as-map-control+.as-map-control{border-top:1px solid #ddd!important}
.as-map-control:hover,.as-map-control:focus-visible{background:#f5f5f5!important;outline:none}
.as-map-consent{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border-radius:5px;
  background:rgba(255,255,255,.96);
  box-shadow:0 7px 20px rgba(21,35,55,.11);
}
.as-map-consent p{
  margin:0!important;
  color:#556173!important;
  font-family:var(--as-body-font)!important;
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:400!important;
}
.as-map-consent-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.as-privacy-link{font-size:13px;white-space:nowrap}
.as-map-load{width:auto;min-width:210px;min-height:42px;font-size:14px!important;font-weight:500!important}
.as-map-attribution{
  position:absolute;
  right:7px;
  bottom:6px;
  z-index:6;
  padding:3px 6px;
  color:#596576;
  background:rgba(255,255,255,.90);
  border-radius:3px;
  font-family:var(--as-body-font)!important;
  font-size:10px;
  line-height:1.2;
}
.as-map-attribution a{color:inherit;text-decoration:underline}

/* Bottom contact strip. */
.as-contact-bar{
  display:grid;
  grid-template-columns:1fr auto 1.4fr;
  align-items:center;
  min-height:86px;
  margin-top:16px;
  padding:0 20px;
  background:#fff;
  border:1px solid var(--as-border);
  border-radius:5px;
}
.as-contact-item{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
  padding:12px 0;
  color:inherit!important;
  text-decoration:none!important;
}
.as-contact-icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;color:var(--as-accent)}
.as-contact-icon svg{display:block;width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.as-email .as-contact-icon svg{width:36px;height:29px}
.as-contact-item small{
  display:block;
  color:#171b22;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  line-height:1.25;
  font-weight:700!important;
}
.as-contact-item strong{
  display:block;
  margin-top:1px;
  color:#657084;
  font-family:var(--as-body-font)!important;
  font-size:16px;
  line-height:1.35;
  font-weight:400;
  overflow-wrap:anywhere;
}
.as-contact-divider{width:1px;height:44px;margin:0 30px;background:var(--as-border)}
.as-contact-item[aria-disabled="true"]{pointer-events:none;opacity:.55}

/* Tablet / mobile. */
@media(max-width:1100px){
  .as-heading h2{font-size:48px!important}
  .as-heading p{font-size:16px!important}
  .as-main-grid{grid-template-columns:minmax(300px,.66fr) minmax(0,1fr)}
}
@media(max-width:850px){
  .as-heading{margin-bottom:20px}
  .as-heading h2{font-size:42px!important;line-height:1.12!important}
  .as-heading p{font-size:16px!important}
  .as-location-tabs{display:flex!important;gap:8px;flex-wrap:wrap;margin:0 0 16px}
  .as-location-tab{
    appearance:none;
    min-height:42px;
    padding:10px 16px!important;
    border:1px solid var(--as-border)!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#111!important;
    font-family:var(--as-body-font)!important;
    font-size:16px!important;
    line-height:1!important;
    font-weight:500!important;
    cursor:pointer;
    box-shadow:none!important;
  }
  .as-location-tab.is-active{background:var(--as-accent)!important;border-color:var(--as-accent)!important;color:#fff!important}
  .as-main-grid{grid-template-columns:1fr;gap:16px}
  .as-details-card{min-height:auto}
  .as-map-card{min-height:340px}
  .as-address{white-space:normal}
  .as-contact-bar{grid-template-columns:1fr;gap:0;padding:8px 18px}
  .as-contact-divider{display:none}
  .as-email{border-top:1px solid var(--as-border)}
  .as-map-consent{flex-direction:column;align-items:flex-start}
  .as-map-consent-actions{justify-content:flex-start}
}
@media(max-width:520px){
  .as-eyebrow{font-size:16px!important}
  .as-heading h2{font-size:36px!important;line-height:1.12!important}
  .as-heading p{font-size:16px!important}
  .as-place-head h3{font-size:26px!important}
  .as-company{font-size:16px}
  .as-address,.as-hours,.as-note{font-size:16px!important}
  .as-hours>div{grid-template-columns:78px minmax(0,1fr)}
  .as-details-card{padding:18px 17px 15px}
  .as-map-card{min-height:310px}
  .as-map-marker-pin{width:28px;height:28px}
  .as-map-marker-pin:after{width:10px;height:10px}
  .as-map-marker-index{font-size:13px}
  .as-map-marker-label{left:36px;padding:6px 9px;font-size:14px}
  .as-map-load{min-width:0;width:100%}
  .as-map-control{width:40px;height:40px}
  .as-contact-item small{font-size:16px}
  .as-contact-item strong{font-size:16px}
}

/* v1.4.1: fixed compact location selector beneath the main details card. */
.as-sidebar{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:590px;
}
.as-has-multiple .as-details-card{
  min-height:334px;
}
.as-location-list-card{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  padding:0;
  background:transparent;
  border:0;
  overflow:hidden;
}
.as-location-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:0 6px 0 0;
  scrollbar-width:thin;
  scrollbar-color:#aeb8c4 #eef2f5;
  scroll-behavior:smooth;
}
.as-location-list::-webkit-scrollbar{width:7px}
.as-location-list::-webkit-scrollbar-thumb{background:#aeb8c4;border-radius:999px}
.as-location-list::-webkit-scrollbar-track{background:#eef2f5;border-radius:999px}
.as-location-preview{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  width:100%;
  min-height:68px;
  padding:10px 13px!important;
  border:1px solid var(--as-border)!important;
  border-radius:5px!important;
  background:#fff!important;
  text-align:left!important;
  color:inherit!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer;
  transition:border-color .16s ease,background-color .16s ease;
}
.as-location-preview:hover,
.as-location-preview:focus-visible{
  border-color:var(--as-accent)!important;
  outline:none;
}
.as-location-preview.is-active{
  border-color:var(--as-accent)!important;
  background:rgba(244,63,94,.045)!important;
}
.as-location-preview-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 27px;
  width:27px;
  height:34px;
  color:#738197;
  transition:color .16s ease;
}
.as-location-preview.is-active .as-location-preview-icon{color:var(--as-accent)}
.as-location-preview-icon svg{
  display:block;
  width:27px;
  height:34px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.as-location-preview-copy{
  display:block;
  min-width:0;
  flex:1 1 auto;
}
.as-location-preview-name{
  display:block;
  margin:0 0 2px;
  color:#080a0e;
  font-family:var(--as-heading-font)!important;
  font-size:18px;
  line-height:1.15;
  font-weight:700!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.as-location-preview-address{
  display:block;
  color:#657084;
  font-family:var(--as-body-font)!important;
  font-size:14px;
  line-height:1.35;
  font-weight:400;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.as-has-multiple .as-map-card{
  min-height:590px;
}
.as-map-consent{align-items:center}

@media(max-width:1100px){
  .as-sidebar{min-height:550px}
  .as-has-multiple .as-map-card{min-height:550px}
  .as-location-preview-name{font-size:17px}
}
@media(max-width:850px){
  .as-sidebar{min-height:auto}
  .as-location-list-card{max-height:230px}
  .as-location-list{max-height:230px}
  .as-location-preview{min-height:66px}
  .as-has-multiple .as-map-card{min-height:420px}
}
@media(max-width:520px){
  .as-location-list-card,.as-location-list{max-height:215px}
  .as-location-preview{min-height:62px;padding:9px 10px!important}
  .as-location-preview-icon{flex-basis:24px;width:24px;height:30px}
  .as-location-preview-icon svg{width:24px;height:30px}
  .as-location-preview-name{font-size:16px}
  .as-location-preview-address{font-size:13px}
  .as-has-multiple .as-map-card{min-height:360px}
}
