/* NOVARIS CLEAN — Ratgeber & News Editorial v1
   Eigene Premium-Redaktion: ruhige Magazinlogik, mobile Leseführung, keine harten Wortabbrüche. */

body.novaris-ratgeber-editorial {
  background: #050505;
}

body.novaris-ratgeber-editorial .novaris-editorial-hero {
  position: relative;
  min-height: 22rem;
  display: grid !important;
  padding: 5.2rem max(1.5rem, calc((100vw - 70rem) / 2)) 3.25rem !important;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3,3,3,.97) 0%, rgba(5,5,5,.84) 48%, rgba(5,5,5,.56) 100%),
    linear-gradient(180deg, rgba(5,5,5,.1), rgba(5,5,5,.8)),
    url('/jobs_hero.jpg') center 28%/cover no-repeat !important;
  border-bottom: 1px solid rgba(214,183,104,.28) !important;
  text-align: left !important;
  align-content: end;
}

body.novaris-ratgeber-editorial .novaris-editorial-hero::before {
  content: "NOVARIS EDITORIAL";
  position: absolute;
  top: 1.45rem;
  right: max(1.5rem, calc((100vw - 70rem) / 2));
  color: rgba(214,183,104,.5);
  font: 800 .54rem/1 Raleway, Arial, sans-serif;
  letter-spacing: .23em;
}

body.novaris-ratgeber-editorial .novaris-editorial-hero p {
  position: relative;
  margin: 0 0 1.1rem !important;
  color: #e4c96f !important;
  font: 800 .6rem/1 Raleway, Arial, sans-serif !important;
  letter-spacing: .25em !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-hero p::before {
  content: "";
  display: inline-block;
  width: 2.3rem;
  height: 1px;
  margin: 0 .75rem .18rem 0;
  background: #d6b768;
  box-shadow: 0 0 .8rem rgba(214,183,104,.55);
}

body.novaris-ratgeber-editorial .novaris-editorial-hero h1 {
  max-width: 46rem;
  margin: 0 !important;
  color: #f5f1e8 !important;
  font: 400 clamp(3rem, 6vw, 5.4rem)/.9 Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.055em !important;
  text-transform: none !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-section {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 6.5rem !important;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(214,183,104,.055) 10.1% 10.2%, transparent 10.3% 89.7%, rgba(214,183,104,.055) 89.8% 89.9%, transparent 90%),
    #050505;
}

body.novaris-ratgeber-editorial .novaris-editorial-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  max-width: 70rem !important;
  margin: 0 auto !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-card {
  position: relative;
  display: flex !important;
  min-width: 0;
  min-height: 23rem;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  overflow: hidden;
  border: 1px solid rgba(244,240,231,.12) !important;
  border-top-color: rgba(214,183,104,.5) !important;
  background:
    linear-gradient(140deg, rgba(214,183,104,.07), transparent 36%),
    #0b0b0b !important;
  box-shadow: none !important;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

body.novaris-ratgeber-editorial .novaris-editorial-card::before {
  content: attr(data-editorial-index);
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  color: rgba(214,183,104,.24);
  font: 400 3.5rem/.85 Georgia, 'Times New Roman', serif;
  letter-spacing: -.08em;
  pointer-events: none;
}

body.novaris-ratgeber-editorial .novaris-editorial-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3.3rem;
  height: 2px;
  background: #d6b768;
}

body.novaris-ratgeber-editorial .novaris-editorial-card:hover {
  transform: translateY(-.25rem);
  border-color: rgba(240,216,137,.7) !important;
  background: linear-gradient(140deg, rgba(214,183,104,.13), transparent 42%), #0d0d0d !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-card--lead {
  grid-column: 1 / -1;
  min-height: 19rem;
  padding: clamp(1.7rem, 4vw, 3.1rem) !important;
  border-left: 2px solid #d6b768 !important;
  background:
    radial-gradient(ellipse 55% 125% at 0 100%, rgba(214,183,104,.16), transparent 68%),
    linear-gradient(112deg, #14120e, #0a0a0a 68%) !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-card--lead::before {
  right: 2rem;
  bottom: 1.25rem;
  font-size: 5.8rem;
  color: rgba(214,183,104,.18);
}

body.novaris-ratgeber-editorial .novaris-editorial-meta {
  position: relative;
  z-index: 1;
  display: flex !important;
  margin: 0 0 1.25rem !important;
  padding-bottom: .72rem;
  border-bottom: 1px solid rgba(244,240,231,.1);
  align-items: center !important;
  justify-content: space-between !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-meta span:first-child {
  color: #e4c96f !important;
  font-size: .52rem !important;
  letter-spacing: .16em !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-meta span:last-child {
  color: rgba(244,240,231,.38) !important;
  font-size: .54rem !important;
  white-space: nowrap;
}

body.novaris-ratgeber-editorial .novaris-editorial-card h2 {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  margin: 0 0 1.05rem !important;
  color: #f4f0e7 !important;
  font: 400 clamp(1.55rem, 2.8vw, 2.45rem)/1.03 Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-card--lead h2 {
  font-size: clamp(2rem, 4.1vw, 3.3rem) !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-card > p:not(.novaris-editorial-signoff) {
  position: relative;
  z-index: 1;
  max-width: 43rem;
  margin: 0 0 1.4rem !important;
  color: rgba(244,240,231,.62) !important;
  font: .84rem/1.72 Raleway, Arial, sans-serif !important;
}

/* Editorial-Veredelung v2: prägnanter Einstieg vor der Fachinformation. */
body.novaris-ratgeber-editorial .novaris-editorial-card > p.novaris-editorial-hook {
  position: relative;
  z-index: 1;
  max-width: 37rem;
  margin: 0 0 1.12rem !important;
  color: #e4c96f !important;
  font: italic 1.16rem/1.45 Georgia, 'Times New Roman', serif !important;
  letter-spacing: .005em;
}

body.novaris-ratgeber-editorial .novaris-editorial-hook::before {
  content: 'EDITORIAL NOTE';
  display: block;
  margin-bottom: .5rem;
  color: rgba(228,201,111,.72);
  font: 700 .56rem/1 Raleway, Arial, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

body.novaris-ratgeber-editorial .novaris-editorial-card--lead > p.novaris-editorial-hook {
  max-width: 45rem;
  font-size: clamp(1.18rem, 1.35vw, 1.45rem) !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-card > div.h-\[1px\] {
  position: relative;
  z-index: 1;
  width: 2rem !important;
  margin: auto 0 1rem !important;
  background: #d6b768 !important;
}

body.novaris-ratgeber-editorial .novaris-editorial-signoff {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  color: rgba(228,201,111,.9) !important;
  font-size: .52rem !important;
  letter-spacing: .16em !important;
}

@media (max-width: 767px) {
  body.novaris-ratgeber-editorial .novaris-editorial-hero {
    min-height: 17rem;
    padding: 4rem 1.35rem 2.25rem !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-hero::before {
    top: 1.15rem;
    right: 1.35rem;
    font-size: .45rem;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-hero p {
    margin-bottom: .75rem !important;
    font-size: .49rem !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-hero h1 {
    font-size: clamp(2.65rem, 13.5vw, 3.65rem) !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-section {
    padding: 2.15rem 0 5.5rem !important;
    background: #050505;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-grid {
    grid-template-columns: 1fr !important;
    gap: .82rem !important;
    width: min(100% - 2rem, 34rem) !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card,
  body.novaris-ratgeber-editorial .novaris-editorial-card--lead {
    grid-column: auto;
    min-height: auto;
    padding: 1.3rem 1.12rem 1.45rem !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card--lead {
    border-left-width: 2px !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card::before,
  body.novaris-ratgeber-editorial .novaris-editorial-card--lead::before {
    right: .9rem;
    bottom: .85rem;
    font-size: 3.4rem;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-meta {
    margin-bottom: .85rem !important;
    padding-bottom: .6rem;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-meta span:first-child { font-size: .46rem !important; }
  body.novaris-ratgeber-editorial .novaris-editorial-meta span:last-child { font-size: .48rem !important; }

  body.novaris-ratgeber-editorial .novaris-editorial-card h2,
  body.novaris-ratgeber-editorial .novaris-editorial-card--lead h2 {
    margin-bottom: .82rem !important;
    font-size: clamp(1.55rem, 7.2vw, 2.15rem) !important;
    line-height: 1.04 !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card > p:not(.novaris-editorial-signoff) {
    margin-bottom: 1rem !important;
    font-size: .76rem !important;
    line-height: 1.62 !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card > p.novaris-editorial-hook {
    margin-bottom: 1rem !important;
    font-size: 1.04rem !important;
    line-height: 1.43 !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card--lead > p.novaris-editorial-hook {
    font-size: 1.12rem !important;
  }

  body.novaris-ratgeber-editorial .novaris-editorial-card > div.h-\[1px\] {
    margin: .25rem 0 .9rem !important;
  }
}


/* NOVARIS_CLEAN_RATGEBER_FIX_20260910 */
body.novaris-ratgeber-editorial .novaris-editorial-section button.is-active {
  color: #111 !important;
  background: #e4c873 !important;
  border-color: #e4c873 !important;
}
body.novaris-ratgeber-editorial .novaris-editorial-section button:focus-visible {
  outline: 2px solid #e4c873 !important;
  outline-offset: 3px;
}

/* Fallback for the live static route where the body enhancement class is not present. */
.novaris-editorial-hero {
  background-position: center 0% !important;
}

/* NOVARIS_CLEAN_VISUAL_FOLLOWUP_20260910 */
@keyframes novarisGoldPulseStrong {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(5,5,5,.9), 0 8px 20px rgba(0,0,0,.42), 0 0 10px rgba(214,175,89,.36); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(247,230,173,.48), 0 12px 28px rgba(0,0,0,.52), 0 0 32px rgba(247,230,173,.95); }
}
html:not(.novaris-route-contact) a#novaris-global-whatsapp {
  animation: novarisGoldPulseStrong 1.8s ease-in-out infinite !important;
  transform-origin: center;
}
@media (min-width: 768px) {
  body.novaris-ratgeber-editorial .novaris-editorial-section div:has(> button) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: .65rem !important;
    width: min(100% - 2rem, 70rem) !important;
    max-width: calc(100% - 2rem) !important;
    margin-inline: auto !important;
    overflow: visible !important;
  }
  body.novaris-ratgeber-editorial .novaris-editorial-section div:has(> button) > button {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    overflow: visible !important;
    word-break: keep-all !important;
    line-height: 1.15 !important;
  }
}

/* Higher-specificity override so the visible gold pulse wins over the legacy animation. */
html:not(.novaris-route-contact) body:not(.is-contact-route) a#novaris-global-whatsapp { animation: novarisGoldPulseStrong 1.8s ease-in-out infinite !important; transform-origin: center center !important; }

/* NOVARIS_CLEAN_DESKTOP_LAYOUT_FIX_20260910 */
@media (min-width: 768px) {
  body.novaris-ratgeber-editorial .novaris-expertise-filter {
    width: 100% !important;
    max-width: none !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: .55rem !important;
    overflow: visible !important;
  }
  body.novaris-ratgeber-editorial .novaris-expertise-filter > button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
  body.novaris-ratgeber-editorial .novaris-editorial-hero,
  .novaris-editorial-hero {
    background-size: auto, auto, 100% auto !important;
    background-position: center, center, center top !important;
  }
}

/* NOVARIS_CLEAN_DESKTOP_LAYOUT_FIX_20260910B */
@media (min-width: 768px) {
  .novaris-expertise-filter {
    display: flex !important;
    width: min(100% - 2rem, 70rem) !important;
    max-width: none !important;
    margin-inline: auto !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: .55rem !important;
    overflow: visible !important;
  }
  .novaris-expertise-filter > button {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
  }
  .novaris-editorial-hero {
    min-height: 22rem !important;
}
