@charset "UTF-8";

/* Novita-only overrides (colours, layout). Font weights: shared
 * core/assets/css/typography-redhat.css ($site['typography'] = 'redhat').
 *
 * Originally: Novita-only overrides of shared nav/sitemap styling (css/navigation.css,
 * css/sitemap.css) — explicitly requested to apply to Novita alone, not
 * the other brands that also use those shared files. Scoped via
 * html[data-brand="novita"] (set on <html> in template_novita/index.php)
 * rather than editing the shared stylesheets directly, so Pichlmayr/
 * WH Care/Rosenfeld keep their current italic/400-weight look. Loaded
 * last in <head> (template_novita/index.php) — the attribute-selector
 * prefix already out-specifies the shared rules on its own for the two
 * non-!important ones; .pm-link's first rule in navigation.css is itself
 * !important, so that one needs matching !important here too.
 */

/* ================================================
   STARTSEITE
   ================================================ */

/* Hero's 2-line headline ("Willkommen" / "bei Novita", content/
   startseite.inc.php) — the 2nd line already overlaps the 1st by
   margin-left (css/theme.css's .custom-bg-orange), just not by enough
   for Novita's own copy/font. Scoped to .hero specifically — .custom-
   bg-orange/.custom-title are shared with content/standorte.inc.php's
   own "Unsere Standorte" title, which already has its own correct
   (much smaller) margin-left and shouldn't inherit the hero's. */
html[data-brand="novita"] .hero .custom-bg-orange {
  margin-left: 9rem;
}

/* Intro heading ("Aus Freude an der Pflege") — bolder, more breathing
   room above (was sitting right under the hero), and the "Pflege" word
   (content/startseite.inc.php's $startseiteIntroHeadingHtml, set in
   template_novita/index.php) gets an orange highlight. */
html[data-brand="novita"] .section-2 {
  padding-top: 10rem;
}

html[data-brand="novita"] .novita-intro-highlight {
  background-color: var(--brand-secondary);
  color: #fff;
  padding: .1rem .6rem;
  border-radius: .3rem;
  display: inline-block;
}

/* Startseite cards' "Mehr erfahren" pill (content/startseite_cards.inc.php,
   .grid-pill in css/components.css) — the shared hover already switches
   to var(--secondary-hover), Novita's own is a fairly dark/muted orange
   there; use the brighter --brand-secondary directly so the hover reads
   unambiguously orange. */
html[data-brand="novita"] .grid-box:hover .grid-pill,
html[data-brand="novita"] .grid-box:focus-visible .grid-pill {
  background-color: var(--brand-secondary);
}

/* ================================================
   NAVIGATION — "Stationär" mega-panel
   ================================================ */

/* Allgemeines cards' icon badges — circles, not the shared rounded
   squares (css/navigation.css's .pm-mega__card-icon). */
html[data-brand="novita"] .pm-mega__card-icon {
  border-radius: 50%;
}

/* Standorte list links (plain .pm-mega__list, not --cards) — the shared
   :hover rule (css/navigation.css) darkens text toward var(--text) for
   brands whose mega-panel has a light background; Novita's own panel is
   dark (.pm-mega--brand), so that hover state was landing as
   near-black text on dark navy, unreadable. */
html[data-brand="novita"] .pm-mega__list a:hover {
  color: #fff;
}

/* Standorte cards (same .pm-mega__list--cards grid as Allgemeines, see
   template_novita/inc/navigation.inc.php) — a small circular photo of
   the house fills the icon badge slot instead of an <i> icon. */
html[data-brand="novita"] .pm-mega__list--standorte .pm-mega__card-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Stationär panel's Allgemeines/Standorte card rows — the shared hover
   (css/navigation.css's .pm-mega__list--cards a:hover) is a faint white
   tint; replace it with a solid orange fill on hover/focus instead. */
html[data-brand="novita"] .pm-mega__list--cards a:hover,
html[data-brand="novita"] .pm-mega__list--cards a:focus-visible {
  background: var(--brand-secondary);
}

/* "Ambulant" panel's 2 cards (Pflege-WG/Ambulanter Dienst) — reuse
   .grid-box exactly as the homepage's own cards do (same 350px min-
   height/ratio, same padding, same default top-flowing text position,
   same gradient — css/components.css, content/startseite_cards.inc.php),
   no per-card overrides left; just the 2-up grid wrapper, widened on
   desktop to use more of the panel's own width (up to 1320px, see
   .pm-mega in css/navigation.css) instead of leaving most of it empty.
   margin-right clears the floating close button like the other mega
   panels' own lists already do. */
.pm-ambulant-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin-right: 3.25rem;
}

.pm-ambulant-card.grid-box {
  margin: 0;
}

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

/* ================================================
   SITEMAP
   ================================================ */

/* Sitemap link hover bar (css/sitemap.css's .nav2-link::before) — forced
   orange here rather than relying on var(--secondary-hover), since that
   token already looked blue in practice. */
html[data-brand="novita"] .nav2-link::before {
  background: var(--brand-secondary);
}

/* ================================================
   FOOTER
   ================================================ */

/* Company description under the logo (inc/footer.inc.php's
   .footer-company-name h4) — hidden for Novita only. */
html[data-brand="novita"] .footer-company-name {
  display: none;
}

/* Footer nav links' hover/focus underline bar (css/footer.css's
   .footer-link::after) — forced orange for the same reason as the
   sitemap's .nav2-link::before above. */
html[data-brand="novita"] .footer-link::after {
  background: var(--brand-secondary);
}

/* The 3 stacked bars underneath the footer (inc/footer.inc.php, plain
   inline-styled divs — .footer-bottom-bar(--top|--bottom|--thick) are
   just hooks added there): the thin top bar becomes solid orange, the
   thin middle one merges into the thick bottom bar, which becomes solid
   blue — reading as exactly 2 bands (thin orange, then thick blue)
   rather than the shared default's thin-navy/thin-white/thick-orange. */
html[data-brand="novita"] .footer-bottom-bar--top {
  background-color: var(--brand-secondary) !important;
}

html[data-brand="novita"] .footer-bottom-bar--bottom {
  background-color: var(--brand-primary) !important;
}

html[data-brand="novita"] .footer-bottom-bar--thick {
  background-color: var(--brand-primary) !important;
}

/* ---------- Self-hosted video (content/standort_video_embed.inc.php) ----------
   Novita only: the play button opens the video in a true fullscreen modal
   (whole viewport, black background) instead of the boxed 1100px dialog. */
html[data-brand="novita"] .video-tour-lightbox__backdrop {
  background: #000;
}

html[data-brand="novita"] .video-tour-lightbox__dialog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

html[data-brand="novita"] .video-tour-lightbox__video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
}

html[data-brand="novita"] .video-tour-lightbox__close {
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* The card takes the video file's own aspect ratio (--video-ratio is set
   from the video's metadata in content/standort_video_embed.inc.php,
   16:9 until it's known) instead of a fixed height — so no cropping and
   no dark panel visible above/below the video. Transparent background
   + 1px overscan on the video against seams at the rounded edges. */
html[data-brand="novita"] .video-tour-card {
  height: auto;
  min-height: 0;
  aspect-ratio: var(--video-ratio, 16 / 9);
  background: transparent;
}

html[data-brand="novita"] .video-tour-card__bg {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}
