/* Standorte — location cards (Wireframe 9-6516). Sits on the #efefef body,
   white cards like icon-cards (28px padding, 24/32 title). No map image =
   a drawn street plan in the page's own neutrals with an orange pin.
   Country tag = the steps label pill (Figma 269-582), contact rows all carry
   an orange line icon. */
.sun-loc { display: block; }
.sun-loc__inner {
  box-sizing: border-box;
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 48px);
}
.sun-loc__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.sun-loc__heading {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.16px;
  color: var(--sun-secondary);
  text-wrap: balance;
}
.sun-loc__heading-muted { color: var(--sun-bluegrey); }
.sun-loc__subhead { margin: 0; font-size: 16px; line-height: 24px; color: var(--sun-bluegrey); }

.sun-loc__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.sun-loc__card {
  scroll-margin-top: 112px;                      /* anchor target (#standort-…, footer links): clear the fixed header */
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--sun-base);
  border-radius: 4px;
  overflow: hidden;
}
.sun-loc__media { aspect-ratio: 2 / 1; background: var(--sun-surface); overflow: hidden; }
.sun-loc__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Drawn placeholder map ------------------------------------------- */
.sun-loc__map { position: relative; width: 100%; height: 100%; }
.sun-loc__map-svg { display: block; width: 100%; height: 100%; }
.sun-loc__map--flip .sun-loc__map-svg { transform: scaleX(-1); }
.sun-loc__m-land  { fill: color-mix(in srgb, var(--sun-muted) 20%, var(--sun-base)); }
.sun-loc__m-park  { fill: color-mix(in srgb, var(--sun-muted) 38%, var(--sun-base)); }
.sun-loc__m-water { fill: color-mix(in srgb, var(--sun-accent) 11%, var(--sun-base)); }
.sun-loc__m-minor { fill: none; stroke: var(--sun-base); stroke-width: 3.5; stroke-linecap: round; }
.sun-loc__m-major { fill: none; stroke: var(--sun-base); stroke-width: 12; }
.sun-loc__m-major--alt { stroke-width: 8; }

/* Pin: orange marker, its tip on the map centre, a soft ring on the ground. */
.sun-loc__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 52px;
  translate: -50% -100%;
  filter: drop-shadow(0 6px 10px rgba(19, 33, 64, .22));
}
.sun-loc__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 44px;
  height: 16px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(255, 113, 10, .18);
  z-index: -1;
}
.sun-loc__pin-svg { display: block; width: 100%; height: 100%; }
.sun-loc__pin-svg path { fill: var(--sun-primary); }
.sun-loc__pin-svg circle { fill: var(--sun-base); }

/* ---- Body --------------------------------------------------------------- */
.sun-loc__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}
.sun-loc__title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sun-loc__city {
  margin: 0;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: var(--sun-secondary);
}
/* Country tag = steps label pill (PRIMARY/Blue/Light + accent border). */
.sun-loc__country {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 4px 10px 4px 8px;
  background: #edf0fb;                           /* PRIMARY/Blue/Light — no theme token (as steps) */
  border: 1px solid var(--sun-accent);
  border-radius: 4px;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  line-height: 16px;
  color: #212e5e;                                /* PRIMARY/Blue/Dark — no theme token (as steps) */
}
.sun-loc__address { margin: 0; font-style: normal; font-size: 16px; line-height: 24px; color: var(--sun-bluegrey); }
.sun-loc__contact {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--sun-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--sun-secondary);
}
.sun-loc__contact li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sun-loc__contact li > :last-child { min-width: 0; overflow-wrap: anywhere; }
.sun-loc .sun-loc__icon { width: 20px; height: 20px; flex: none; color: var(--sun-primary); }
.sun-loc .sun-loc__icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sun-loc__contact a { color: var(--sun-link); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; border-radius: 2px; transition: color .15s ease; }
.sun-loc__contact a:hover { color: var(--sun-link-hover); }
.sun-loc__contact a:focus-visible,
.sun-loc__route:focus-visible { outline: 3px solid var(--sun-primary); outline-offset: 3px; }

/* Route link = tertiary text link (icon-cards card link), ↗ = new tab. */
.sun-loc__route {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--sun-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color .15s ease;
}
.sun-loc__route:hover { color: var(--sun-link-hover); }
.sun-loc .sun-loc__route-icon { width: 16px; height: 16px; transform: rotate(-45deg); }

.sun-loc .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .sun-loc__media { aspect-ratio: 16 / 9; }
  .sun-loc__body { padding: 20px; }
  .sun-loc__city { font-size: 20px; line-height: 28px; }
}
