@charset "UTF-8";

.pm-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-family: var(--brand-font-body, 'Red Hat Text', sans-serif);
  font-size: .95rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  outline: none;
}
.pm-skip-link:focus {
  top: 0;
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.pm-mega__title {
  font-style: italic;
  font-size: 1.3em;
}

.pm-link{
  font-size: 1.5em;
  font-weight: 400 !important;
  font-style: normal;
  font-family: var(--brand-font-heading, "Cardo", system-ui, -apple-system, Segoe UI, Roboto, Arial, serif);
}

@media (min-width: 1200px){
  .pm-topnav{ display:block !important; }
  .pm-mobilenav{ display:none !important; }
}
@media (max-width: 1199.98px){
  .pm-topnav{ display:none !important; }
  .pm-mobilenav{ display:block !important; }
}

.pm-topnav{
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  z-index: 1200;
}

.pm-topnav__inner{
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 576px){ .pm-topnav__inner{ max-width: 540px; } }
@media (min-width: 768px){ .pm-topnav__inner{ max-width: 720px; } }
@media (min-width: 992px){ .pm-topnav__inner{ max-width: 960px; } }
@media (min-width: 1200px){ .pm-topnav__inner{ max-width: 1140px; } }
@media (min-width: 1400px){ .pm-topnav__inner{ max-width: 1320px; } }

.pm-topnav__brand img{
  display:block;
  height:72px;
  width:auto;
  transition: height 0.22s ease;
}
.pm-topnav.scrolled .pm-topnav__brand img{ height:52px; }

.pm-topnav__menu{
  position: relative;
  display:flex;
  align-items:center;
  gap: .25rem;
  margin-left: auto;
  padding: 0;
}

.pm-pill{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: var(--pill-h);
  width: 0;
  border-radius: 5px;
  background: #f8fafc;
  border-bottom: 3px solid var(--secondary);
  transition: left .20s ease, width .20s ease, opacity .15s ease;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.pm-link{
  position: relative;
  z-index: 2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: var(--pill-h);
  padding: 0 0.9rem;
  color: var(--text);
  text-decoration:none;
  font-weight: 400;
  letter-spacing: .1px;
  border-radius: var(--pill-radius);
  white-space: nowrap;
}
.pm-link:hover{ color: black; }

.pm-link:focus-visible {
  color: black;
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

.pm-link--dropdown{ gap:.4rem; }
.pm-link--dropdown::after{
  content:"";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity:.7;
  transform: translateY(1px);
}

.pm-topnav__icons{
  display:flex;
  align-items:center;
  gap: .75rem;
  margin-left: .75rem;
}
.pm-topnav__icons a{
  color: var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition: transform 0.2s ease, color 0.2s ease;
}
.pm-topnav__icons a:hover{ color: var(--secondary); transform: scale(1.12); }

.pm-topnav__icons a:focus-visible,
.pm-topnav__iconlink:focus-visible {
  color: var(--secondary);
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

.pm-backdrop{
  position: fixed;
  left: 0;
  right: 0;
  /* --pm-nav-live-offset tracks the nav bar's actual current rendered
     height (set in JS, see index.php/template_whc/index.php) — --nav-offset
     alone is a static value that doesn't account for .scrolled shrinking
     the logo/nav bar, which used to leave a thin uncovered gap between the
     shrunk nav and this backdrop once scrolled. Falls back to --nav-offset
     before the JS has run once. */
  top: var(--pm-nav-live-offset, var(--nav-offset));
  bottom: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.pm-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}

.pm-mega{
  position: fixed;
  left: 50%;
  top: var(--pm-nav-live-offset, var(--nav-offset));
  transform: translateX(-50%) translateY(-8px);
  width: min(1320px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.pm-mega.is-open{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Brand-colored panel variant (e.g. WH Care's "Leistungen") — the default
   .pm-mega is always white, tuned for Pichlmayr's dense Stationär grid. */
.pm-mega--brand{
  background: var(--primary);
  border-color: var(--primary);
  top: calc(var(--pm-nav-live-offset, var(--nav-offset)) + 14px);
}

.pm-mega--brand .pm-mega__close{
  background: #fff;
  border-color: #fff;
}
.pm-mega--brand .pm-mega__close::before{
  color: var(--primary);
}
.pm-mega--brand .pm-mega__close:hover{
  background: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .85);
}

.pm-mega--brand .pm-mega__list--cards a{
  color: #fff;
}

.pm-mega--brand .pm-mega__section-label{
  color: #fff;
}

/* .pm-mega__list/.pm-mega__title (Pichlmayr's plain Standorte grid) have
   no color override of their own — fine on the default white .pm-mega,
   but combined with --brand's solid colored background (e.g. Novita's
   "Stationär" panel, which reuses Pichlmayr's location-grid markup under
   the --brand card treatment) that left dark text on a dark background.
   Mirrors the .pm-mega__list--cards/.pm-mega__section-label overrides
   just above. */
.pm-mega--brand .pm-mega__title{
  color: #fff;
}
.pm-mega--brand .pm-mega__list a{
  color: #fff;
}
.pm-mega--brand .pm-mega__list a::after{
  background: rgba(255, 255, 255, .25);
}

.pm-mega__close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--primary);
  border-color: var(--primary);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .16s ease, background .16s ease;
}
.pm-mega__close:hover{
  transform: scale(1.06);
  background: var(--secondary);
  border-color: var(--secondary);
}

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

.pm-mega__close::before{
  content:"×";
  font-size: 26px;
  line-height: 1;
  color: #fff;
  transform: translateY(-1px);
}

.pm-mega__close--floating{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.pm-mega__body{
  padding: 1rem 1.5rem 2rem;
  max-height: calc(100vh - var(--pm-nav-live-offset, var(--nav-offset)) - 18px);
  overflow: auto;
}

/* Side-by-side "Allgemeines" + "Standorte" layout (Novita's own
   Stationär panel) — a first pass stacked Standorte in normal block
   flow underneath the Allgemeines cards, leaving a lot of unused
   horizontal space in this up-to-1320px-wide panel. Only used by this
   one panel; harmless to other brands' .pm-mega content, which doesn't
   use these classes. */
.pm-mega__cols{
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.pm-mega__col{
  flex: 0 0 auto;
}

.pm-mega__col--standorte{
  flex: 1 1 auto;
  min-width: 0;
}

.pm-mega__col .pm-mega__list--cards{
  margin-right: 0;
}

.pm-mega__grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  /* Clears the floating close button in the top-right corner. */
  margin-right: 3.25rem;
}

@media (max-width: 1200px){
  .pm-mega__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pm-mega__group{
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px){
  .pm-mega__group{
    gap: 1.25rem;
  }
}

@media (min-width: 1200.02px){
  .pm-mega__group{
    display: contents;
  }
}

.pm-mega__title{
  font-weight: 400;
  color: var(--text);
  margin: .25rem 0 .6rem;
}
.pm-mega__list{
  list-style:none;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
  gap: .2rem;
}

.pm-mega__list a{
  position: relative;
  display: block;
  font-size: 1rem;
  padding: .25rem .5rem;
  color: inherit;
  text-decoration: none;
  border-radius: 0;
  background: transparent;
  transition: transform 160ms ease, color 160ms ease;
}

.pm-mega__list a:hover{
  transform: translateX(4px);
  color: var(--text);
}

.pm-mega__list a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,.08);
  transform: scaleX(1);
  transform-origin: left;
}

.pm-mega__list a::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms ease;
}

.pm-mega__list a:hover::before,
.pm-mega__list a:focus-visible::before{
  transform: scaleX(1);
}

/* A spacious "icon + title + description" card treatment for short
   .pm-mega__list menus (e.g. WH Care's "Leistungen") — two generously
   spaced columns instead of the plain underline-link style tuned for
   Pichlmayr's dense 23-location grid. */
.pm-mega__section-label{
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .65;
  margin-bottom: 1.5rem;
}

.pm-mega__list--cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3rem;
  max-width: 760px;
  /* Clears the floating close button in the top-right corner. */
  margin-right: 3.25rem;
}

@media (max-width: 560px){
  .pm-mega__list--cards{
    grid-template-columns: 1fr;
    margin-right: 0;
  }
}

/* The plain-list treatment's underline bars (.pm-mega__list a::after/
   ::before just above) are still inherited here since every --cards
   list is also a .pm-mega__list — but this variant's own background-
   fill hover state (below) already shows the interactive state, so the
   inherited bar was just a stray line under each card. */
.pm-mega__list--cards a::after,
.pm-mega__list--cards a::before{
  content: none;
}

.pm-mega__list--cards a{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  margin: -.75rem;
  border-radius: 14px;
  transition: background-color .16s ease;
}

.pm-mega__list--cards a:hover,
.pm-mega__list--cards a:focus-visible{
  background: rgba(255, 255, 255, .08);
  transform: none;
}

.pm-mega__card-icon{
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  transition: background-color .16s ease, color .16s ease;
}

.pm-mega__list--cards a:hover .pm-mega__card-icon,
.pm-mega__list--cards a:focus-visible .pm-mega__card-icon{
  background: #fff;
  color: var(--primary);
}

/* A custom-SVG variant of the icon (e.g. 01_diamond.svg) — a plain <img>
   would stay whatever color the file itself is, so it'd vanish against
   the icon badge once that inverts to white on hover. Masking it with
   background-color: currentColor instead makes it track the badge's own
   color automatically, same as the font-icon variant above. */
.pm-mega__card-icon-img{
  display: inline-block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask-image: var(--leading-icon-src);
  mask-image: var(--leading-icon-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.pm-mega__card-text{
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.pm-mega__card-title{
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}

.pm-mega__card-desc{
  font-size: .85rem;
  line-height: 1.3;
  opacity: .75;
}

.pm-mega__list a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.pm-mega__list--cards a:focus-visible {
  border-radius: 14px;
}

.pm-mobilenav{
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  z-index: 1200;
}

.pm-mobilenav__inner{
  padding: .75rem 1rem;
  display:flex;
  align-items:center;
  gap: .75rem;
}

.pm-mobilenav__brand img{
  height:56px;
  width:auto;
  display:block;
  transition: height .2s ease;
}
.pm-mobilenav.scrolled .pm-mobilenav__brand img{ height:44px; }

.pm-mobilenav__icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pm-mobilenav__icons a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 48px;
  transition: color .2s ease, transform .2s ease;
}

.pm-mobilenav__icons a:hover {
  color: var(--secondary);
  transform: scale(1.08);
}

.pm-mobilenav__icons a:active {
  transform: scale(0.95);
}

.pm-mobilenav__icons a:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

.pm-mobilenav__icons a i {
  font-size: 1.2rem;
  line-height: 1;
}

.pm-mobilenav__icons a span {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 400;
  text-align: center;
  line-height: 1;
}

.pm-toggler{
  border:none;
  background: transparent;
  padding: .25rem .4rem;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 0.2rem;
  min-width: 48px;
}

.pm-toggler:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

.pm-bars{ width: 26px; height: 18px; position: relative; display:block; }

.pm-bars span{
  position:absolute;
  left:0;
  right:0;
  height:3px;
  background: var(--primary);
  border-radius: 99px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease, background-color .2s ease;
}

.pm-toggler:hover .pm-bars span,
.pm-toggler:focus-visible .pm-bars span{
  background: var(--secondary);
}

.pm-bars span:nth-child(1){ top:0; }
.pm-bars span:nth-child(2){ top:7.5px; }
.pm-bars span:nth-child(3){ top:15px; }

.pm-toggler[aria-expanded="true"] .pm-bars span:nth-child(1){ top:7.5px; transform: rotate(45deg); }
.pm-toggler[aria-expanded="true"] .pm-bars span:nth-child(2){ opacity:0; }
.pm-toggler[aria-expanded="true"] .pm-bars span:nth-child(3){ top:7.5px; transform: rotate(-45deg); }

.pm-toggler[aria-expanded="true"] .pm-bars span{
  background: var(--secondary);
}

.pm-toggler__label{
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  text-align: center;
  line-height: 1;
  color: var(--primary);
}

.pm-toggler:hover .pm-toggler__label,
.pm-toggler:focus-visible .pm-toggler__label,
.pm-toggler[aria-expanded="true"] .pm-toggler__label{
  color: var(--secondary);
}

.pm-mobilepanel{
  border-top: 1px solid var(--border);
  padding: .5rem 1rem 1rem;
}

.pm-mobilepanel .nav-link{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  font-weight: 400;
  padding: .75rem .25rem;
  text-decoration: none;
}

.pm-mobilepanel .nav-link:focus-visible,
.pm-mnav__backbtn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 6px;
}

body.pm-lock{
  overflow: hidden !important;
  touch-action: none;
}

.pm-mnav{
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.pm-mnav__level{
  width:100%;
  transition: transform .26s ease;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pm-mnav__level--root{ transform: translateX(0); }
.pm-mnav.is-subopen .pm-mnav__level--root{ transform: translateX(-100%); }

/* A mobile nav-link that carries its own per-location logo (e.g. WH
   Care's Casa Cencerro/Casa Bavaria) alongside the usual text-only links. */
.pm-mnav-house-link {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.pm-mnav-house-logo {
  display: block;
  max-height: 22px;
  width: auto;
}

.pm-mnav__level--sub{
  position:absolute;
  top:0;
  left:100%;
  width:100%;
  transform: translateX(0);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.pm-mnav.is-subopen .pm-mnav__level--sub.is-active{
  transform: translateX(-100%);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.pm-mnav__level--root,
.pm-mnav__level--sub{
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .5rem 0 5rem !important;
}

.pm-mnav__back{
  padding: .25rem 0 .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem;
}

.pm-mnav__backbtn{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .75rem .25rem;
  font-weight: 400;
  color: var(--text);
  font-style: italic;
}

.pm-mobilepanel .pm-mnav .nav-link{
  font-size: 1.3rem;
  padding: .95rem .25rem;
  line-height: 1.25;
}

.pm-mobilepanel .pm-mnav__level--sub .nav-link{
  font-size: 1.2rem;
  padding: .75rem .25rem;
}

.pm-mobilepanel .pm-mnav__level--sub[data-submenu="standorte"]{
  column-count: 2;
  column-gap: 1rem;
}

.pm-mobilepanel .pm-mnav__level--sub[data-submenu="standorte"] li{
  break-inside: avoid;
}

.pm-mobilepanel .pm-mnav__level--sub[data-submenu="standorte"] .nav-link{
  line-height: 1.2;
  padding: .55rem .25rem;
}

.pm-mobilepanel
.pm-mnav__level--sub[data-submenu="standorte"]
.pm-mnav__back{
  column-span: all;
}

.pm-mobilepanel .pm-mnav__backbtn{
  font-size: 1.3rem;
  padding: .95rem .25rem;
}

.pm-topnav__iconlink{
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.1;
  gap: .2rem;
  min-width: 62px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.pm-topnav__iconlink span{
  font-size: 0.72rem;
  font-weight: 500;
  color: inherit;
}

.pm-topnav__iconlink:hover{
  color: var(--secondary);
  transform: scale(1.06);
}


.pm-extra-brands-wrap {
  column-span: all;
  margin-top: .75rem;
}

.pm-extra-brands-label {
  font-size: .875rem;
  font-weight: 600;
  opacity: .7;
  margin-top: 1rem;
  margin-bottom: .25rem;
}

.pm-extra-brands-group {
  padding: .75rem 0 .5rem;
}

.pm-extra-brands-group:first-child {
  margin-top: .5rem;
}

.pm-extra-brands-group:last-child {
  padding-bottom: 50px;
}

.pm-extra-brands-logo {
  display: block;
  margin-bottom: .5rem;
  opacity: .85;
}

.pm-extra-brands-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .5rem;
}

.pm-extra-brands-link {
  display: block;
  font-size: 1.2rem;
  padding: .55rem .25rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  transition: transform .15s ease, color .15s ease;
}

.pm-extra-brands-link:hover {
  transform: translateX(3px);
  color: var(--text);
}

.pm-extra-brands-link .bi-box-arrow-up-right {
  font-size: .65em;
  opacity: .55;
  margin-left: .2rem;
}

@media (prefers-reduced-motion: reduce) {
  .pm-mega,
  .pm-backdrop,
  .pm-pill,
  .pm-topnav__brand img,
  .pm-mobilenav__brand img,
  .pm-bars span,
  .pm-mega__list a,
  .pm-mega__list a::before,
  .pm-mnav__level {
    transition: none !important;
    animation: none !important;
  }
}
