@charset "UTF-8";

/* Bootstrap's default .container gutter (0.75rem/12px each side) feels too
   cramped edge-to-edge on phones. Scoped to standort.inc.php's own wrapper
   only, not every .container.max page. */
@media (max-width: 767px) {
  .standort-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ================================================
   1 – HERO CAROUSEL
   ================================================ */

.standort_hero .carousel-inner {
  height: min(50vh, 700px);
}

.standort_hero .carousel-item,
.standort_hero .carousel-item img {
  height: 100%;
}

.standort_hero .carousel-item img {
  width: 100%;
  object-fit: cover;
}


/* ================================================
   2 – TITLE PILLS
   ================================================ */

.pm-hero-title {
  width: 100%;
  max-width: 50vw;
  transform: translateY(-3rem);
  margin-bottom: -3rem;
}

.pm-hero-title-heading {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-style: italic;
  line-height: 1;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

.pm-title-pill {
  display: inline-block;
  padding: 0.2em 0.5em 0.2em 0.35em;
  border-radius: 0.4rem;
  color: #fff;
  width: fit-content;
  max-width: 100%;
  word-break: break-word;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.pm-title-pill-green {
  background-color: var(--primary);
}

.pm-title-pill-orange {
  background-color: var(--secondary);
  font-size: 1.1em;
  margin-left: clamp(0.6rem, 4vw, 4rem);
}

@media (max-width: 768px) {
  .pm-hero-title {
    max-width: 100%;
  }

  .pm-hero-title-heading {
    font-size: clamp(1.6rem, 6vw, 2.3rem);
  }

  .pm-title-pill-orange {
    margin-left: clamp(0.4rem, 3vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .pm-hero-title-heading {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .pm-title-pill-orange {
    margin-left: 1.5rem;
  }
}


/* ================================================
   3 – CONTENT SPACING
   ================================================ */

.lh-170 {
  line-height: 1.7;
}


/* ================================================
   4 – CONTACT PERSON (LEITUNG)
   ================================================ */

.leitung-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.leitung-img-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  border: 2px dotted var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leitung-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

.leitung-text {
  line-height: 1.7;
  font-size: 1.1rem;
}

@media (max-width: 576px) {
  .leitung-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .leitung-img {
    width: 120px;
    height: 120px;
  }

  /* Only one image on the page here (the portrait) — center the whole
     block instead of the default left-aligned stack. */
  .leitung-box--has-img {
    align-items: center;
    text-align: center;
  }
}


/* ================================================
   5 – AUF EINEN BLICK BOX
   ================================================ */

.aeb-box {
  position: relative;
  background: var(--aeb-bg, var(--secondary));
  border-radius: 0.5rem;
  padding: 2rem 1.6rem 1.8rem;
  /* --aeb-bg/--aeb-text/--aeb-check-bg/--aeb-check-color let each
     brand's own tokens.css pick a readable pairing (e.g. WH Care's
     darker blue needs white text instead of Pichlmayr's black, Novita
     reverses the box/circle colors entirely) — see the matching
     entries/comment in brand/tokens.css. Defaults here reproduce
     Pichlmayr's original look unchanged. */
  color: var(--aeb-text, #000);
}

.aeb-title {
  position: absolute;
  top: 0;
  left: 1.3rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--aeb-title-bg, var(--primary));
  color: #fff;
  padding: 0.3rem 1rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-style: var(--aeb-title-style, italic);
  font-weight: 400;
  margin: 0;
}

.aeb-title i {
  color: #fff;
  font-size: 1.2em;
}

.list_aeb {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list_aeb li {
  position: relative;
  padding: 0.1rem 0 0.4rem 1.8rem;
  border-bottom: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .4s ease, transform .4s ease;
}

/* .aeb-box already carries pm-reveal pm-reveal-up, so the page's existing
   IntersectionObserver (bottom of this file) adds .is-visible to it on
   scroll-into-view — reused here instead of a second observer. */
.aeb-box.is-visible .list_aeb li {
  opacity: 1;
  transform: translateX(0);
}

.list_aeb li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--aeb-check-bg, var(--primary));
  transform: scale(0);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

/* The checkmark glyph itself, drawn as a separate layer on top of ::before
   so its color (--aeb-check-color) can differ from the circle's fill
   (--aeb-check-bg) — e.g. WH Care wants a white circle with a primary-
   colored check, the inverse of Pichlmayr's primary circle + white check.
   Reuses the exact same SVG as a CSS mask instead of a background-image:
   a mask only cares where the source has visible pixels, not what color
   they are, so background-color is free to be anything (the SVG's own
   stroke='white' still makes this work correctly whether a given browser
   treats the mask source as alpha- or luminance-based — white satisfies
   both: full alpha, and full luminance). */
.list_aeb li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 20px;
  height: 20px;
  background-color: var(--aeb-check-color, #fff);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 12px 12px;
  mask-size: 12px 12px;
  transform: scale(0);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.aeb-box.is-visible .list_aeb li::before,
.aeb-box.is-visible .list_aeb li::after {
  transform: scale(1);
}

/* Stagger each item (and its checkmark circle + glyph) in turn as the box reveals. */
.list_aeb li:nth-child(1),  .list_aeb li:nth-child(1)::before,  .list_aeb li:nth-child(1)::after  { transition-delay: .05s; }
.list_aeb li:nth-child(2),  .list_aeb li:nth-child(2)::before,  .list_aeb li:nth-child(2)::after  { transition-delay: .12s; }
.list_aeb li:nth-child(3),  .list_aeb li:nth-child(3)::before,  .list_aeb li:nth-child(3)::after  { transition-delay: .19s; }
.list_aeb li:nth-child(4),  .list_aeb li:nth-child(4)::before,  .list_aeb li:nth-child(4)::after  { transition-delay: .26s; }
.list_aeb li:nth-child(5),  .list_aeb li:nth-child(5)::before,  .list_aeb li:nth-child(5)::after  { transition-delay: .33s; }
.list_aeb li:nth-child(6),  .list_aeb li:nth-child(6)::before,  .list_aeb li:nth-child(6)::after  { transition-delay: .40s; }
.list_aeb li:nth-child(7),  .list_aeb li:nth-child(7)::before,  .list_aeb li:nth-child(7)::after  { transition-delay: .47s; }
.list_aeb li:nth-child(8),  .list_aeb li:nth-child(8)::before,  .list_aeb li:nth-child(8)::after  { transition-delay: .54s; }
.list_aeb li:nth-child(9),  .list_aeb li:nth-child(9)::before,  .list_aeb li:nth-child(9)::after  { transition-delay: .61s; }
.list_aeb li:nth-child(10), .list_aeb li:nth-child(10)::before, .list_aeb li:nth-child(10)::after { transition-delay: .68s; }
.list_aeb li:nth-child(n+11), .list_aeb li:nth-child(n+11)::before, .list_aeb li:nth-child(n+11)::after { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  .list_aeb li,
  .list_aeb li::before,
  .list_aeb li::after {
    transition: none !important;
  }
}


/* ================================================
   6 – SIDEBAR IMAGE
   ================================================ */

.sidebar-img {
  border-radius: 0.5rem;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}


/* ================================================
   6b – STICKY SCROLLSPY SECTION (Navigationspunkte)
   ================================================ */

.standort_sections_block {
  margin-top: 3rem;
  margin-bottom: 4rem;
  /* Switching tabs can shrink this block a lot (a long panel replaced by a
     short one) while it's above the viewport's visible area — browsers'
     default scroll anchoring would then auto-adjust scrollY to compensate,
     fighting the explicit scroll correction in
     standort_sections.inc.php's activate(). Opting out here makes that
     correction the only thing moving the page for this block. */
  overflow-anchor: none;
}

.standort_sections_heading {
  margin-bottom: 1.75rem;
}

.standort_sections_nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.standort_sections_navlink {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, .15));
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.standort_sections_navlink:hover {
  background: rgba(0, 0, 0, .04);
}

.standort_sections_navlink.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.standort_sections_navlink:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.standort_sections_item_heading {
  font-size: 1.65rem;
  font-style: italic;
  color: var(--primary);
}

.standort_sections_image {
  /* Same treatment as .sidebar-img — this is the same kind of
     content-column image (optional, per Navigationspunkt). Full-width,
     stacked above the text on mobile — floated at 30% with text wrapping
     around it is desktop-only, see below.
     width:100% (not just img-fluid's max-width:100%) matters here: the
     600px cap below is an absolute length, not relative to the column, so
     without an explicit relative width an upload wider than the phone's
     own viewport rendered at up to 600px wide regardless of how narrow
     the column actually was — overflowing the screen on mobile. */
  width: 100%;
  max-width: 600px;
  border-radius: 0.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 992px) {
  .standort_sections_item {
    /* Contains the floated image below (modern clearfix) — without this,
       a short image next to short text could let the float bleed past
       this panel's own bottom edge. */
    display: flow-root;
  }

  .standort_sections_image {
    float: left;
    width: 30%;
    margin: 0 1.5rem 1rem 0;
  }
}

@media (min-width: 992px) {
  /* .row is a flex container (Bootstrap 5) — align-self: flex-start keeps
     this column's own height to just its nav content, rather than
     stretching to match the much taller content column, so position:
     sticky has room to visibly travel as the page scrolls. It naturally
     stops sticking once this column's containing .row scrolls past
     (plain CSS sticky behavior, no extra JS needed). */
  .standort_sections_nav_col {
    position: sticky;
    /* --pm-nav-live-offset tracks the nav bar's actual current rendered
       height (it shrinks once scrolled) — the static --nav-offset alone is
       tuned for the taller unscrolled nav, which left a gap above the
       sidebar once the page had actually scrolled this far. Same fallback
       pattern as css/navigation.css's .pm-mega/.pm-backdrop. */
    top: var(--pm-nav-live-offset, var(--nav-offset));
    align-self: flex-start;
    max-height: calc(100vh - var(--pm-nav-live-offset, var(--nav-offset)) - 2rem);
    overflow-y: auto;
  }
}

@media (max-width: 991.98px) {
  /* No side-by-side columns at this width, so nav and content stack in the
     same .row — but that means the same plain-CSS sticky trick as desktop
     still works: pin the pill row at top:var(--nav-offset) while its
     containing .row (nav + the much taller content panel below it)
     scrolls past, and let it release once that row's bottom edge nears.
     So the pill row stays reachable the whole time a panel's content is
     on screen, instead of requiring a scroll back up to switch sections. */
  .standort_sections_nav_col {
    position: sticky;
    /* See the >=992px rule above for why this isn't plain --nav-offset. */
    top: var(--pm-nav-live-offset, var(--nav-offset));
    z-index: 15;
    background: #fff;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
  }

  .standort_sections_nav_col.has-more-right::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  }

  .standort_sections_nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .standort_sections_navlink {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .standort_sections_navlink {
    transition: none !important;
  }
}


/* ================================================
   7 – GALLERY BACKGROUND STRIPE
   ================================================ */

.standort_bg_full {
  position: relative;
  z-index: 0;
  padding: 2rem 0;
}

.standort_bg_full::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: #f3f4f6;
  z-index: -1;
}


/* ================================================
   8 – GALLERY GRID  (standort & artikel)
   ================================================ */

.pm-gallery-row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
  margin-top: calc(var(--bs-gutter-y) * -1) !important;
}

@media (max-width: 575.98px) {
  .pm-gallery-row {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
}

.pm-gallery-row > [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * .5) !important;
  padding-right: calc(var(--bs-gutter-x) * .5) !important;
  margin-top: var(--bs-gutter-y) !important;
}

.pm-gallery-tile {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  background: #e9ecef;
}

.pm-gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .22) 100%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.pm-gallery-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 .6rem 1.3rem rgba(0, 0, 0, .12);
}

.pm-gallery-tile:hover::after {
  opacity: 1;
}

.pm-gallery-tile:focus-visible {
  outline: 3px solid rgba(13, 110, 253, .45);
  outline-offset: 3px;
}

.pm-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.03);
  transition: opacity .35s ease, filter .45s ease, transform .45s ease;
}

.pm-gallery-img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}


/* 9 – LIGHTBOX: moved to /assets/css/lightbox.css */


/* ================================================
   10 – VIDEO EMBED
   ================================================ */

.standort_video_wrap {
  width: 100%;
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.standort_video {
  display: block;
  width: 100%;
  height: min(50vh, 56.25vw);
  min-height: 220px;
  border: 0;
}

/* Local-video "tour card" — autoplaying muted background preview with a
   pause toggle, a text/CTA overlay, and a play button that opens the
   full video (with sound/controls) in .video-tour-lightbox below. */
.video-tour-card {
  position: relative;
  width: 100%;
  height: min(60vh, 56.25vw);
  min-height: 280px;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.video-tour-card__bg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
}

.video-tour-card__pause {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.video-tour-card__pause:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.video-tour-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .9rem;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

.video-tour-card__text {
  margin: 0;
  color: #fff;
  font-family: var(--brand-font-heading, 'Cardo', serif);
  font-size: 1.3rem;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.video-tour-card__play {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 0;
  border-radius: 999px;
  padding: .65rem 1.1rem .65rem .75rem;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.video-tour-card__play:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.video-tour-card__play i {
  font-size: 1.4rem;
}

.video-tour-card__duration {
  font-size: .85rem;
  font-weight: 400;
  opacity: .9;
}

.video-tour-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000; /* above navigation (1500) and #preloader, like the image lightboxes */
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-tour-lightbox[hidden] {
  display: none;
}

.video-tour-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
}

.video-tour-lightbox__dialog {
  position: relative;
  width: min(92vw, 1100px);
  z-index: 1;
}

.video-tour-lightbox__video {
  display: block;
  width: 100%;
  max-height: 85vh;
  border-radius: .5rem;
  background: #000;
}

.video-tour-lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease;
}

.video-tour-lightbox__close:hover {
  background: rgba(255, 255, 255, .3);
}

@media (max-width: 576px) {
  .video-tour-card__text {
    font-size: 1.1rem;
  }
  .video-tour-lightbox__close {
    top: -2.75rem;
    right: 0;
  }
}


/* ================================================
   11 – JOBS EMBED
   ================================================ */

.bms_logo {
  max-width: 170px;
  height: auto;
}

@media (max-width: 768px) {
  .bms_logo {
    max-width: 133px;
  }
}

.job_iframe_wrapper {
  padding: 30px 20px;
  border: 2px solid #dbe51a;
  border-radius: 10px;
  background: white;
  box-sizing: border-box;
  overflow: hidden;
}

.job_embed_iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

.berufmitsinn-green {
  font-size: 16px;
  width: 100%;
  background: #dbe51a;
  color: black !important;
  border-radius: 5px;
  justify-content: center;
  padding: .8rem 30px;
  transition: all .2s ease-in-out;
}

.berufmitsinn-green:hover {
  font-size: 20px;
}

@media (max-width: 768px) {
  #jobsContainer .matchContainer .date { width: 25%; }
  #jobsContainer .matchContainer .title { width: 70%; }
  #jobsContainer .matchContainer .audience { display: none; }
  #jobsContainer .matchContainer .jobcategory { display: none; }
  #jobsContainer .matchContainer .ProjectGeoLocationCity { display: none; }
}


/* ================================================
   12 – TABS
   ================================================ */

.standort_tabs_wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.standort_tabs_wrap::-webkit-scrollbar {
  height: 6px;
}

.standort_tabs_nav {
  border-bottom: none;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-top: 4px;
}

.standort_tabs_nav .nav-item {
  flex: 0 0 auto;
}

.standort_tabs_nav .nav-link {
  border: none;
  border-radius: 999px;
  background: #f1f1f1;
  color: #333;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.55rem 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color .25s ease,
    color .25s ease,
    transform .18s ease,
    box-shadow .18s ease;
  will-change: transform;
}

.standort_tabs_nav .nav-link:hover {
  background: #e5e5e5;
  color: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.standort_tabs_nav .nav-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(83, 124, 39, 0.25);
  transform: translateY(-1px);
}

.standort_tabs_nav .nav-link.active:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.standort_tabs_nav .nav-link:focus-visible {
  outline: 2px solid rgba(83, 124, 39, 0.35);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .standort_tabs_nav .nav-link {
    font-size: 0.8rem;
    padding: 0.42rem 0.75rem;
  }
}


/* ================================================
   13 – AKTUELLES CARDS  (standort tabs & artikel)
   ================================================ */

@media (min-width: 992px) {
  .standort_col-lg-5ths {
    flex: 0 0 20%;
    width: 20%;
  }
}

@media screen and (max-width: 767px) {
  .aktuelles_container {
    max-width: 350px;
  }

  .aktuelles_titel {
    height: auto;
    min-height: 110px;
  }
}

@media screen and (max-width: 575px) {
  .aktuelles_bild {
    height: 160px;
  }

  .aktuelles_titel {
    min-height: 120px;
    height: auto;
  }
}

.aktuelles_container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: transform .28s ease, box-shadow .28s ease, border-top-color .28s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  background: #fff;
}

.aktuelles_container:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
  border-top-color: var(--primary);
}

.aktuelles_container > a {
  display: block;
  color: inherit;
}

.aktuelles_container:hover .aktuelles_bild {
  transform: scale(1.03);
}

.aktuelles_container:hover .aktuelles_datum {
  transform: translateY(-2px);
  background: var(--secondary);
}

.aktuelles_container:hover .aktuelles_titel {
  background: #555;
  color: #fff;
}

.aktuelles_container:hover .aktuelles_standort {
  color: #fff;
}

.aktuelles_container a:focus-visible {
  outline: 3px solid rgba(219, 229, 26, .6);
  outline-offset: 4px;
  border-radius: 14px;
}

.aktuelles_bild {
  width: 100%;
  aspect-ratio: 5 / 3;
  display: block;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform .65s ease;
}

.aktuelles_bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 55%);
  opacity: .95;
  transition: opacity .28s ease;
  z-index: 0;
}

.aktuelles_datum {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  font-size: .95em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: background .6s ease, transform .6s ease;
  z-index: 1;
}

.aktuelles_titel {
  background: rgb(240, 240, 240);
  display: block;
  padding: 12px 12px 14px;
  width: 100%;
  position: relative;
  height: 110px;
  margin: 0;
  color: #222;
  transition: background .28s ease;
}

.aktuelles_standort {
  display: block;
  font-size: 1.05em;
  font-weight: 300;
  color: #333;
  font-style: italic;
  transition: opacity .28s ease;
  margin-bottom: 4px;
}

.aktuelles_normal {
  display: block;
  line-height: 125%;
  font-size: 1.15em;
}

.aktuelles_klein {
  display: block;
  line-height: 120%;
  font-size: .95em;
}


/* ================================================
   14 – PANORAMA VIEWER
   ================================================ */

/* One shared single-viewer/scenes panorama display for any brand
   (inc/panorama_viewer_init.inc.php, content/standort_tabs.inc.php) —
   replaced an older per-image grid of individual viewers (#panorama1..10,
   .panodiv), removed once nothing referenced them anymore: that approach
   hit a browser WebGL-context limit once more than a couple of panoramas
   needed to show on one page. */
.pano_single_viewer {
  width: 100%;
  height: 480px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.pano_scene_switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pano_scene_btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0,0,0,.15));
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pano_scene_btn:hover {
  border-color: var(--primary);
}

.pano_scene_btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 576px) {
  .pano_single_viewer {
    height: 320px;
  }
}


/* ================================================
   16 – ABSATZ 1 FADE-IN
   Pure CSS, no IntersectionObserver dependency — this block sits above
   the fold, and the shared .pm-reveal/JS reveal system relies on a
   scroll-triggered observer that can be unreliable (or simply not yet
   deployed) for already-visible content. This always plays on load.
   ================================================ */

@keyframes standortAbsatz1FadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.standort-absatz1-fadein {
  animation: standortAbsatz1FadeIn .6s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .standort-absatz1-fadein {
    animation: none;
  }
}

.team-portrait-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 3px dotted var(--brand-secondary);
  padding: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.team-portrait-wrap:hover {
  border-color: var(--brand-secondary-hover);
}

.team-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.25s ease;
}

.team-portrait-wrap:hover .team-portrait {
  transform: scale(1.08);
}

.pm-nearby-heading {
  font-size: 1.25rem;
  font-style: italic;
  color: #000;
  margin-bottom: .75rem;
}

.pm-nearby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
}

.pm-nearby-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  color: inherit;
  width: 90px;
}

.pm-nearby-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: visible;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  transition: border-color .2s ease;
}

.pm-nearby-circle > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  transition: transform .25s ease;
}

.pm-nearby-brand-logo {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.pm-nearby-circle--pichlmayr { border-color: #ff9900; }
.pm-nearby-circle--novita { border-color: #ff4d00; }
.pm-nearby-circle--whcare { border-color: #2d72b7; }
.pm-nearby-circle--mayerreif { border-color: #ab3e2a; }
.pm-nearby-circle--vitalis { border-color: #1e9e8a; }
.pm-nearby-circle--rosenfeld { border-color: #8a3f8a; }

.pm-nearby-card:hover .pm-nearby-circle { border-color: var(--secondary-hover); }

.pm-nearby-card:hover .pm-nearby-circle > img:first-child { transform: scale(1.08); }

.pm-nearby-name {
  font-size: .78rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

.pm-nearby-dist {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: .1rem .55rem;
  font-size: .7rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease;
}

.pm-nearby-card:hover .pm-nearby-dist {
  background: var(--secondary-hover);
}

@media (prefers-reduced-motion: reduce) {
  .pm-nearby-circle > img:first-child,
  .pm-nearby-circle { transition: none !important; }
}
