/* dm-header — isolated site nav (no Chimpify navbar classes) */
.dm-header {
  --dm-gold: #e5bd47;
  --dm-ink: #2c363f;
  --dm-muted: #555;
  --dm-white: #ffffff;
  box-sizing: border-box;
  position: relative;
  z-index: 200;
  width: 100%;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dm-ink);
  background: transparent;
}

.dm-header *,
.dm-header *::before,
.dm-header *::after {
  box-sizing: border-box;
}

.dm-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 4%;
  max-width: 1400px;
  margin: 0 auto;
}

.dm-header-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.dm-header-logo img {
  display: block;
  width: 110px;
  height: auto;
}

.dm-header-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.dm-header-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-transform: lowercase;
}

.dm-header-link:hover {
  color: var(--dm-gold);
  text-decoration: none;
}

.dm-header-cta {
  display: inline-block;
  margin-left: 8px;
  padding: 12px 22px;
  border: 2px solid var(--dm-gold);
  border-radius: 5px;
  background: var(--dm-gold);
  color: #000 !important;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none !important;
}

.dm-header-cta:hover {
  background: transparent;
  color: inherit !important;
}

.dm-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.dm-header-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.dm-header-panel {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  flex-direction: column;
  padding: 28px 8% 48px;
  background: var(--dm-white);
  color: var(--dm-ink);
  overflow-y: auto;
}

.dm-header.is-open .dm-header-panel {
  display: flex;
}

.dm-header-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dm-header-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.dm-header-panel-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.dm-header-panel .dm-header-link {
  font-size: 22px;
  color: var(--dm-ink);
}

.dm-header-panel .dm-header-cta {
  margin: 12px 0 0;
  color: #000 !important;
}

body.dm-header-open {
  overflow: hidden;
}

/* Overlay on dark hero (home / jobscouts / …) */
.dm-header--on-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: var(--dm-white);
}

.dm-header--on-dark .dm-header-cta {
  background: transparent;
  border-color: var(--dm-white);
  color: var(--dm-white) !important;
}

.dm-header--on-dark .dm-header-cta:hover {
  background: var(--dm-gold);
  border-color: var(--dm-gold);
  color: #000 !important;
}

.dm-header--on-dark .dm-header-link:hover {
  color: var(--dm-gold);
}

/* Mobile: Hero-Text unter Burger-Menü freistellen */
@media (max-width: 959px) {
  .dm-header--on-dark + .ch-section {
    padding-top: 50px !important;
  }
}

@media (min-width: 960px) {
  .dm-header-nav {
    display: flex;
  }

  .dm-header-toggle {
    display: none;
  }
}

/* Scroll-/Entry-Animationen auf Mobile/Tablet aus (Chimpify ch-animate) */
@media (max-width: 991px) {
  .ch-animate,
  .ch-animate-hover,
  .ch-animate-entry,
  .ch-animate-entry.ch-animated {
    opacity: 1 !important;
    animation: none !important;
    animation-name: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-animate,
  .ch-animate-hover,
  .ch-animate-entry,
  .ch-animate-entry.ch-animated {
    opacity: 1 !important;
    animation: none !important;
    animation-name: none !important;
    transition: none !important;
  }
}

/* „dreilandmedien“ in Vergleichssektion: kein abgetrenntes End-n auf schmalen Screens */
@media (max-width: 991px) {
  #headline-65c1e25d52,
  #headline-65c1e25d65 {
    font-size: clamp(1.55rem, 7.2vw, 2.5rem);
    white-space: nowrap;
  }
}
