/* NOVARIS CLEAN – Galerie Premium v2 */

.novaris-gallery-premium-shell {
  background: #070707 !important;
}

.novaris-gallery-premium-page {
  --gallery-gold: #d6b768;
  --gallery-cream: #f1eee7;
  --gallery-muted: rgba(241,238,231,.62);
  position: relative;
  overflow: hidden;
  background: #070707;
  color: var(--gallery-cream);
}

.novaris-gallery-premium-hero {
  position: relative;
  display: flex;
  min-height: min(72vw, 43rem);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(214,183,104,.24);
}

.novaris-gallery-premium-hero-media,
.novaris-gallery-premium-hero-media::after {
  position: absolute;
  inset: 0;
}

.novaris-gallery-premium-hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.56) 38%, rgba(5,5,5,.08) 74%), linear-gradient(0deg, rgba(5,5,5,.66), transparent 38%);
}

.novaris-gallery-premium-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.08) brightness(.82);
}

.novaris-gallery-premium-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 8vw, 76rem);
  margin: 0 auto;
  padding: 7rem 0 6.5rem;
}

.novaris-gallery-kicker {
  margin: 0 0 1.35rem;
  color: var(--gallery-gold);
  font-family: Raleway, Arial, sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.novaris-gallery-premium-hero h1,
.novaris-gallery-premium-intro h2,
.novaris-gallery-premium-close h2 {
  max-width: 48rem;
  margin: 0;
  color: var(--gallery-cream);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
}

.novaris-gallery-premium-hero h1 em,
.novaris-gallery-premium-intro h2 em,
.novaris-gallery-premium-close h2 em {
  color: var(--gallery-gold);
  font-style: italic;
}

.novaris-gallery-hero-copy {
  max-width: 28rem;
  margin: 2rem 0 2.25rem;
  color: rgba(241,238,231,.7);
  font-family: Raleway, Arial, sans-serif;
  font-size: .96rem;
  line-height: 1.7;
}

.novaris-gallery-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: .85rem 1.2rem;
  border: 1px solid rgba(214,183,104,.74);
  color: var(--gallery-cream);
  font-family: Raleway, Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}

.novaris-gallery-hero-cta:hover {
  background: var(--gallery-gold);
  color: #070707;
}

.novaris-gallery-hero-cta span {
  color: var(--gallery-gold);
  font-size: 1.1rem;
  transition: color .25s ease, transform .25s ease;
}

.novaris-gallery-hero-cta:hover span {
  color: #070707;
  transform: translate(2px, 2px);
}

.novaris-gallery-hero-index {
  position: absolute;
  right: 3.5vw;
  bottom: 3rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(241,238,231,.62);
  font: 700 .58rem/1 Raleway, Arial, sans-serif;
  letter-spacing: .16em;
}

.novaris-gallery-hero-index i {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gallery-gold);
}

.novaris-gallery-premium-intro {
  width: min(100% - 8vw, 76rem);
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.novaris-gallery-premium-intro h2 {
  font-size: clamp(2.65rem, 5vw, 5rem);
}

.novaris-gallery-premium-intro > p:last-child {
  max-width: 30rem;
  margin: 1.6rem 0 0 35%;
  color: var(--gallery-muted);
  font: .96rem/1.75 Raleway, Arial, sans-serif;
}

.novaris-gallery-premium-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  width: min(100% - 8vw, 76rem);
  margin: 0 auto;
}

.novaris-gallery-premium-card {
  position: relative;
  display: block;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(214,183,104,.42);
  background: #111;
  text-decoration: none;
}

.novaris-gallery-premium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,4,4,.76), transparent 42%);
  pointer-events: none;
}

.novaris-gallery-premium-card-lead { grid-column: span 8; grid-row: span 2; min-height: 40rem; }
.novaris-gallery-premium-card-office { grid-column: span 4; min-height: 25rem; }
.novaris-gallery-premium-card-pv { grid-column: span 4; min-height: 25rem; }
.novaris-gallery-premium-card-windows { grid-column: span 5; min-height: 28rem; margin-top: 3rem; }
.novaris-gallery-premium-card-terrace { grid-column: span 7; min-height: 25rem; }

.novaris-gallery-premium-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04) brightness(.92);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

.novaris-gallery-premium-card:hover img {
  transform: scale(1.045);
  filter: saturate(.98) contrast(1.08) brightness(1);
}

.novaris-gallery-card-meta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(241,238,231,.82);
  font: .62rem/1 Raleway, Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.novaris-gallery-card-meta b {
  color: var(--gallery-gold);
  font-weight: 700;
}

.novaris-gallery-premium-close {
  width: min(100% - 8vw, 76rem);
  margin: 0 auto;
  padding: 10rem 0 9rem;
  text-align: center;
}

.novaris-gallery-premium-close h2 {
  margin: 0 auto 2.2rem;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
}

.novaris-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
  background: rgba(3,3,3,.96);
}

.novaris-gallery-lightbox[hidden] { display: none; }
.novaris-gallery-lightbox figure { width: min(92vw, 72rem); margin: 0; }
.novaris-gallery-lightbox figure img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.novaris-gallery-lightbox figcaption { margin-top: .9rem; color: var(--gallery-gold); font: .68rem/1 Raleway, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.novaris-gallery-lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(214,183,104,.55); background: transparent; color: var(--gallery-cream); font-size: 1.6rem; cursor: pointer; }
.novaris-lightbox-open { overflow: hidden; }

@media (max-width: 767px) {
  .novaris-gallery-premium-hero { min-height: 41rem; align-items: end; }
  .novaris-gallery-premium-hero-media img { object-position: 56% center; }
  .novaris-gallery-premium-hero-media::after { background: linear-gradient(0deg, rgba(5,5,5,.92) 3%, rgba(5,5,5,.5) 55%, rgba(5,5,5,.12)), linear-gradient(90deg, rgba(5,5,5,.45), transparent 75%); }
  .novaris-gallery-premium-hero-content { width: calc(100% - 3rem); padding: 4rem 0 3.25rem; }
  .novaris-gallery-premium-hero h1 { font-size: 3.15rem; line-height: .94; }
  .novaris-gallery-hero-copy { margin: 1.35rem 0 1.6rem; font-size: .88rem; }
  .novaris-gallery-hero-index { right: 1.5rem; bottom: 1.55rem; }
  .novaris-gallery-hero-index i { width: 2rem; }
  .novaris-gallery-premium-intro { width: calc(100% - 3rem); padding: 4.25rem 0 2rem; }
  .novaris-gallery-premium-intro h2 { font-size: 2.8rem; }
  .novaris-gallery-premium-intro > p:last-child { margin: 1.25rem 0 0; font-size: .88rem; }
  .novaris-gallery-premium-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; width: calc(100% - 3rem); }
  .novaris-gallery-premium-card { min-height: 14rem; }
  .novaris-gallery-premium-card-lead { grid-column: 1 / -1; grid-row: auto; min-height: 23rem; }
  .novaris-gallery-premium-card-office { grid-column: span 1; min-height: 18rem; }
  .novaris-gallery-premium-card-pv { grid-column: span 1; min-height: 18rem; }
  .novaris-gallery-premium-card-windows { grid-column: span 1; min-height: 18rem; margin-top: 0; }
  .novaris-gallery-premium-card-terrace { grid-column: span 1; min-height: 18rem; }
  .novaris-gallery-card-meta { right: .65rem; bottom: .65rem; left: .65rem; font-size: .51rem; letter-spacing: .12em; }
  .novaris-gallery-premium-close { width: calc(100% - 3rem); padding: 5rem 0 5.5rem; }
  .novaris-gallery-premium-close h2 { font-size: 2.75rem; }
  .novaris-gallery-lightbox { padding: 3.5rem 1rem 2rem; }
  .novaris-gallery-lightbox figure img { max-height: 75vh; }
  .novaris-gallery-lightbox-close { top: 1rem; right: 1rem; }
}

/* Header innerhalb der eigenständigen Galerieansicht */
.novaris-gallery-page-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(214,183,104,.38);
  background: #050505;
}

.novaris-gallery-page-header-inner {
  display: flex;
  width: min(100% - 8vw, 76rem);
  min-height: 5.2rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.novaris-gallery-page-brand { display: block; flex: 0 0 auto; }
.novaris-gallery-page-brand img { display: block; width: 9.25rem; height: auto; }
.novaris-gallery-page-menu { display: none; }

.novaris-gallery-page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.15rem;
}

.novaris-gallery-page-nav a {
  color: rgba(241,238,231,.78);
  font: 700 .58rem/1 Raleway, Arial, sans-serif;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.novaris-gallery-page-nav a:hover,
.novaris-gallery-page-nav a[aria-current="page"] { color: var(--gallery-gold); }

.novaris-gallery-page-nav .novaris-gallery-page-nav-cta {
  padding: .72rem .85rem;
  border: 1px solid rgba(214,183,104,.62);
  color: var(--gallery-gold);
}

/* Rechner: Die Galerie verwendet dieselbe ruhige, gut lesbare Navigationsskala wie die übrigen Seiten. */
@media (min-width: 768px) {
  .novaris-gallery-page-header-inner {
    width: min(100% - 4rem, 96rem);
    min-height: 5.05rem;
  }

  .novaris-gallery-page-nav {
    gap: 1.3rem;
  }

  .novaris-gallery-page-nav a {
    font-size: .68rem;
    letter-spacing: .085em;
  }

  .novaris-gallery-page-nav .novaris-gallery-page-nav-cta {
    padding: .78rem 1rem;
  }
}

@media (max-width: 767px) {
  .novaris-gallery-page-header-inner {
    position: relative;
    width: calc(100% - 3rem);
    min-height: 7.15rem;
    padding-top: env(safe-area-inset-top);
  }

  .novaris-gallery-page-brand img { width: 11rem; }

  .novaris-gallery-page-menu {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    padding: .85rem;
    border: 0;
    background: transparent;
    place-content: center;
    gap: .34rem;
  }

  .novaris-gallery-page-menu i {
    display: block;
    width: 1.45rem;
    height: 2px;
    background: var(--gallery-gold);
    transition: transform .2s ease, opacity .2s ease;
  }

  .novaris-gallery-page-menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(.48rem) rotate(45deg); }
  .novaris-gallery-page-menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .novaris-gallery-page-menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-.48rem) rotate(-45deg); }

  .novaris-gallery-page-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -1.5rem;
    left: -1.5rem;
    display: grid;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: rgba(5,5,5,.98);
    opacity: 0;
    pointer-events: none;
    transition: max-height .35s ease, opacity .25s ease, border-color .25s ease;
  }

  .novaris-gallery-page-nav.is-open {
    max-height: 32rem;
    padding: .8rem 1.5rem 1.25rem;
    border-bottom-color: rgba(214,183,104,.38);
    opacity: 1;
    pointer-events: auto;
  }

  .novaris-gallery-page-nav a {
    padding: .85rem 0;
    color: rgba(241,238,231,.9);
    font-size: .68rem;
  }

  .novaris-gallery-page-nav .novaris-gallery-page-nav-cta {
    display: inline-block;
    width: max-content;
    margin-top: .55rem;
    padding: .8rem 1rem;
  }
}

/* Entfernt ausschließlich den leeren Headerrest der ursprünglichen Galerieroute. */
body.novaris-gallery-premium-active #root > .novaris-gallery-legacy-top-spacer {
  display: none !important;
}

/* Die globale Main-Reserve für den früheren Header gilt nicht für den eigenständigen Galerie-Header. */
body.novaris-gallery-premium-active .novaris-gallery-premium-page {
  padding-top: 0 !important;
}

/* Galerie-Menü: gleicher vollflächiger Mobilauftritt wie auf der übrigen Website. */
@media (max-width: 767px) {
  body.novaris-gallery-premium-active .novaris-gallery-page-header:has(.novaris-gallery-page-nav.is-open) {
    z-index: 1200;
  }

  body.novaris-gallery-premium-active .novaris-gallery-page-header:has(.novaris-gallery-page-nav.is-open) .novaris-gallery-page-header-inner {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1202;
    width: 100%;
    min-height: 7.25rem;
    padding: env(safe-area-inset-top) 1.5rem 0;
    background: #050505;
    border-bottom: 1px solid rgba(214,183,104,.42);
  }

  body.novaris-gallery-premium-active .novaris-gallery-page-header:has(.novaris-gallery-page-nav.is-open) .novaris-gallery-page-brand img {
    width: 11rem;
  }

  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open {
    position: fixed;
    top: 7.25rem;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    max-height: none;
    min-height: calc(100dvh - 7.25rem);
    padding: 3rem 2.45rem max(2.2rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    background: #050505;
    opacity: 1;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open a:not(.novaris-gallery-page-nav-cta) {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 3.55rem;
    padding: .95rem 0;
    border-bottom: 1px solid rgba(214,183,104,.16);
    color: rgba(241,238,231,.92);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.35;
    align-items: center;
  }

  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open a[aria-current="page"] {
    color: var(--gallery-gold);
  }

  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open .novaris-gallery-page-nav-cta {
    display: flex;
    width: 100%;
    min-height: 3.55rem;
    margin-top: 1.4rem;
    padding: .8rem 1.1rem;
    border-color: var(--gallery-gold);
    background: linear-gradient(90deg, #d6b768, #f0d67d);
    color: #080808;
    font-size: 1rem;
    font-weight: 800;
    justify-content: center;
    align-items: center;
  }



  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open .novaris-gallery-page-nav-phone { display:flex; width:100%; min-height:3.2rem; margin-top:.75rem; padding:.9rem 0 0; border:0; color:var(--gallery-gold); font-size:1rem; font-weight:800; letter-spacing:.06em; text-align:center; align-items:center; justify-content:center; gap:.65rem; }
  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open .novaris-gallery-page-nav-phone i { font-size:.95rem; }

  body.novaris-gallery-premium-active .novaris-gallery-page-header:has(.novaris-gallery-page-nav.is-open) .novaris-gallery-page-menu {
    position: relative;
    z-index: 1203;
  }
}

/* Final visual match with the main navigation phone row. */
@media (max-width: 767px) {
  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open .novaris-gallery-page-nav-phone {
    display:flex!important; width:100%!important; min-height:3.2rem!important; margin-top:.75rem!important; padding:.75rem 0!important;
    border:0!important; color:#c9a84c!important; background:transparent!important; text-decoration:none!important;
    font-size:0!important; font-weight:700!important; letter-spacing:.05em!important; line-height:1!important;
    align-items:center!important; justify-content:center!important; gap:.5rem!important;
  }
  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open .novaris-gallery-page-nav-phone::before {
    content:""!important; display:block!important; width:14px!important; height:14px!important; flex:0 0 14px!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important; background-position:center!important; background-size:14px 14px!important;
  }
  body.novaris-gallery-premium-active .novaris-gallery-page-nav.is-open .novaris-gallery-page-nav-phone::after {
    content:"035365 639633"!important; display:block!important; font-size:.875rem!important; line-height:1!important; color:#c9a84c!important;
  }
}
