/* HR factory Theme – globales Chrome (Header/Footer/Buttons)
   Schriften: System-Stack (DSGVO – keine Google Fonts).
   Seiteninhalte können eigene Fonts im HTML-Block mitbringen. */

:root {
  --hrf-blue: #01408D;
  --hrf-blue-dark: #012A5E;
  --hrf-ink: #26313F;
  --hrf-lime: #B7D800;
  --hrf-border: #E4E9F2;
  --hrf-footer-bg: #0A1B33;
  --hrf-footer-muted: #6B7B99;
  --hrf-footer-text: #C2CDDF;
  --hrf-max: 1240px;
  --hrf-header-h: 72px;
  --hrf-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hrf-font);
  color: var(--hrf-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hrf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--hrf-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hrf-skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ===== Header ===== */
body.hrf-has-header {
  padding-top: var(--hrf-header-h);
}

.hrf-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4000;
}

.admin-bar .hrf-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .hrf-site-header {
    top: 46px;
  }
}

.hrf-header {
  position: relative;
  z-index: 2;
  background: transparent;
  border-bottom: 1px solid var(--hrf-border);
  overflow: visible;
  transition: border-color 0.25s ease;
}

/* Glas-Hintergrund extra, nicht am Header selbst – sonst bleibt das
   Mobile-Menü im Kopf „stecken“ und Seiteninhalte legen sich drüber. */
.hrf-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  transition: background 0.25s ease;
}

.hrf-header__inner {
  max-width: var(--hrf-max);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--hrf-header-h);
  overflow: visible;
  position: relative;
  z-index: 2;
}

.hrf-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  z-index: 2;
}

@media (min-width: 861px) {
  .hrf-header__cta + #langcountry-navigation {
    margin-left: 12px;
  }
}

.hrf-lang {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
}

/* Länder-/Sprachumschalter – Struktur wie hrfactory.com */
#langcountry-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

#langcountry-navigation ul.menu {
  text-align: right;
}

#langcountry-navigation ul.menu > li {
  display: inline-block;
  position: relative;
  padding: 0;
}

/* Unsichtbare Brücke: Maus darf vom Trigger zum Dropdown ohne Schließen */
#countrylang.menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 14px;
}

#langcountry-navigation ul.menu ul.sub-menu {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 272px;
  background: #fff;
  border: 1px solid var(--hrf-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(1, 43, 94, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 90;
}

#langcountry-navigation ul.menu > li > svg.hrf-lang-globe {
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* Trigger im Header: Blau wie Navigation */
#countrylang a.countrylangactive {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  line-height: 1.2;
  color: var(--hrf-blue, #01408D);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
}

#countrylang a.countrylangactive:hover,
#countrylang.is-open a.countrylangactive {
  color: var(--hrf-blue-dark, #012A5E);
}

/* Dropdown-Inhalt: neutral, ohne Blautöne */
#countrylang .cl-country {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--hrf-ink, #0a1b33);
  line-height: 1.35;
  margin-bottom: 6px;
}

#countrylang .cl-country-active {
  color: var(--hrf-ink, #0a1b33);
  font-weight: 700;
}

#countrylang .cl-lang {
  font-size: 13px;
  display: inline-block;
  margin: 0 14px 0 0;
  min-width: 0;
  vertical-align: top;
}

#countrylang .cl-lang:last-child {
  margin-right: 0;
}

#countrylang .cl-lang a {
  color: #5a6472;
  display: inline-block;
  padding: 2px 0 4px;
  text-decoration: none;
  line-height: 1.2;
}

#countrylang .cl-lang a:hover {
  color: var(--hrf-ink, #0a1b33);
}

#countrylang .cl-lang-active a {
  color: var(--hrf-ink, #0a1b33);
  font-weight: 600;
}

#countrylang .cl-lang::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 2px;
  background: transparent;
  border-radius: 1px;
  transition: width 0.2s ease;
}

#countrylang .cl-lang-active::after {
  background: var(--hrf-ink, #0a1b33);
  width: 100%;
}

#langcountry-navigation ul.menu ul.sub-menu li.menu-item {
  padding: 0;
  margin: 0 0 14px;
}

#langcountry-navigation ul.menu ul.sub-menu li.menu-item:last-child {
  margin-bottom: 0;
}

#langcountry-navigation ul.menu li:hover > ul.sub-menu,
#langcountry-navigation ul.menu li:focus-within > ul.sub-menu,
#langcountry-navigation ul.menu li.is-open > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hrf-lang__flag {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(10, 27, 51, 0.14);
  flex: none;
}

.hrf-lang__flag-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hrf-lang__code {
  line-height: 1;
}

.hrf-logo {
  flex: none;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hrf-logo a,
.hrf-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.hrf-logo img,
.hrf-logo .custom-logo,
.hrf-logo__img {
  height: 30px;
  width: auto;
  display: block;
  transition: filter 0.25s ease;
}

/* Desktop: Menü mittig in der Kopfzeile (innerhalb .hrf-header__inner) */
.hrf-nav {
  flex: none;
  min-width: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.hrf-nav .hrf-nav-list {
  pointer-events: auto;
}

.hrf-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--hrf-ink);
}

.hrf-nav-list > .menu-item {
  position: relative;
}

.hrf-nav-list > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 7px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
}

/* Kontakt im Menü: nur mobil (Desktop = CTA-Button) */
.hrf-menu-kontakt {
  display: none;
}

/* Standard-Dropdown: eine Spalte (z. B. Für Bewerber:innen) */
.hrf-nav-list > .menu-item-has-children > .sub-menu {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--hrf-border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(1, 43, 94, 0.1);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1fr;
  gap: 2px;
}

/* Desktop: Hover / Fokus öffnet Dropdown – mobil bewusst nicht (sonst nicht zuklappbar) */
@media (min-width: 861px) {
  .hrf-nav-list > .menu-item-has-children:hover > .sub-menu,
  .hrf-nav-list > .menu-item-has-children:focus-within > .sub-menu {
    display: grid;
  }

  /* Mega-Dropdown nur wenn Gruppen mit Unterseiten existieren (Für Unternehmen) */
  .hrf-nav-list > .menu-item-has-children:has(> .sub-menu > .menu-item-has-children) > .sub-menu {
    min-width: min(560px, 92vw);
    padding: 18px 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 28px;
  }
}

/* Gruppenüberschriften (Leistungen / Vertragsmodelle / Referenzen) */
.hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item-has-children > a,
.hrf-nav-list > .menu-item-has-children > .sub-menu > .hrf-menu-group-heading > a {
  display: block;
  padding: 0 0 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--hrf-blue);
  border-bottom: 1px solid var(--hrf-border);
}

/* Unterseiten immer sichtbar – kein zweites Hover */
.hrf-nav-list > .menu-item-has-children > .sub-menu .sub-menu {
  list-style: none;
  display: block;
  position: static;
  margin: 0;
  padding: 0;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hrf-nav-list > .menu-item-has-children > .sub-menu .sub-menu a {
  display: block;
  padding: 7px 0;
  white-space: normal;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hrf-ink);
}

.hrf-nav-list > .menu-item-has-children > .sub-menu .sub-menu a:hover {
  color: var(--hrf-blue);
  background: transparent;
}

/* Flache Einträge (Bewerber:innen, Über uns, …) – nicht Spaltenüberschriften */
.hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item:not(.menu-item-has-children):not(.hrf-menu-group-heading) > a {
  display: block;
  padding: 8px 4px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item:not(.menu-item-has-children):not(.hrf-menu-group-heading) > a:hover {
  color: var(--hrf-blue);
}

.hrf-nav-list a,
.nav-link {
  position: relative;
  color: var(--hrf-ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.nav-link-active,
.hrf-nav-list .current-menu-item > a,
.hrf-nav-list .current_page_item > a {
  color: var(--hrf-blue) !important;
  font-weight: 600;
}

/* Kein Unterstrich-Hover in der Header-Navigation (Chevron bei Dropdowns bleibt) */
.hrf-nav-list > .menu-item:not(.menu-item-has-children) > a.nav-link::after {
  content: none;
  display: none;
}

.hrf-nav-list > .menu-item > a.nav-link:hover {
  color: var(--hrf-blue) !important;
}

/* Chevron bei Dropdown-Parents (kein Unterstrich-Pseudo) */
.hrf-nav-list > .menu-item-has-children > a.nav-link::after {
  content: "";
  display: inline-block;
  position: static;
  left: auto;
  bottom: auto;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  background: none;
  opacity: 0.55;
  transition: none;
}

.btn-primary,
.hrf-header__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hrf-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(1, 64, 141, 0.14);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.2s ease;
  position: relative;
  z-index: 2;
}

.hrf-header .hrf-header__cta {
  background: #01408d !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(1, 64, 141, 0.14) !important;
  border-radius: 8px !important;
}

.btn-primary:hover,
.hrf-header__cta:hover {
  background: var(--hrf-blue-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 64, 141, 0.2);
}

.hrf-header .hrf-header__cta:hover {
  background: #012a5e !important;
  color: #fff !important;
}

.btn-primary:focus-visible,
.hrf-header__cta:focus-visible {
  outline: 3px solid var(--hrf-lime);
  outline-offset: 3px;
}

.hrf-nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hrf-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hrf-nav-toggle__bars,
.hrf-nav-toggle__bars::before,
.hrf-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hrf-blue);
  border-radius: 2px;
  position: relative;
}

.hrf-nav-toggle__bars::before,
.hrf-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.hrf-nav-toggle__bars::before {
  top: -6px;
}

.hrf-nav-toggle__bars::after {
  top: 6px;
}

/* Header auf dunklem Abschnitt: helle Schrift/Logo, damit es lesbar bleibt */
.hrf-site-header.is-on-dark .hrf-header {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.hrf-site-header.is-on-dark .hrf-header::before {
  background: rgba(10, 27, 51, 0.78);
}

.hrf-site-header.is-on-dark .hrf-logo img,
.hrf-site-header.is-on-dark .hrf-logo .custom-logo,
.hrf-site-header.is-on-dark .hrf-logo__img {
  filter: brightness(0) invert(1);
}

.hrf-site-header.is-on-dark .hrf-nav-list,
.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item > a,
.hrf-site-header.is-on-dark .nav-link {
  color: #fff;
}

.hrf-site-header.is-on-dark .hrf-nav-list .current-menu-item > a,
.hrf-site-header.is-on-dark .hrf-nav-list .current_page_item > a,
.hrf-site-header.is-on-dark .nav-link-active {
  color: #ecffa6 !important;
}

.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item > a.nav-link:hover {
  color: #ecffa6 !important;
}

.hrf-site-header.is-on-dark .hrf-lang,
.hrf-site-header.is-on-dark #countrylang a.countrylangactive {
  color: #fff;
}

.hrf-site-header.is-on-dark #countrylang a.countrylangactive:hover,
.hrf-site-header.is-on-dark #countrylang.is-open a.countrylangactive {
  color: #ecffa6;
}

.hrf-site-header.is-on-dark #langcountry-navigation ul.menu ul.sub-menu {
  color: var(--hrf-ink);
}

.hrf-site-header.is-on-dark .hrf-nav-toggle {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.hrf-site-header.is-on-dark .hrf-nav-toggle__bars,
.hrf-site-header.is-on-dark .hrf-nav-toggle__bars::before,
.hrf-site-header.is-on-dark .hrf-nav-toggle__bars::after {
  background: #fff;
}

/* Dropdowns bleiben hell mit dunkler Schrift */
.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item-has-children > .sub-menu {
  color: var(--hrf-ink);
}

.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item-has-children > .sub-menu a {
  color: var(--hrf-ink);
}

.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item-has-children > a,
.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item-has-children > .sub-menu > .hrf-menu-group-heading > a {
  color: var(--hrf-blue);
}

.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item-has-children > .sub-menu .sub-menu a:hover,
.hrf-site-header.is-on-dark .hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item:not(.menu-item-has-children):not(.hrf-menu-group-heading) > a:hover {
  color: var(--hrf-blue);
}

/* Offenes Mobile-Menü immer hell, unabhängig vom Abschnitt darunter */
html.hrf-nav-open .hrf-site-header .hrf-header::before {
  background: rgba(255, 255, 255, 0.96);
}

html.hrf-nav-open .hrf-site-header .hrf-header {
  border-bottom-color: var(--hrf-border);
}

html.hrf-nav-open .hrf-site-header .hrf-logo img,
html.hrf-nav-open .hrf-site-header .hrf-logo .custom-logo,
html.hrf-nav-open .hrf-site-header .hrf-logo__img {
  filter: none;
}

html.hrf-nav-open .hrf-site-header .hrf-nav-list,
html.hrf-nav-open .hrf-site-header .hrf-nav-list > .menu-item > a,
html.hrf-nav-open .hrf-site-header .nav-link,
html.hrf-nav-open .hrf-site-header .hrf-lang,
html.hrf-nav-open .hrf-site-header #countrylang a.countrylangactive {
  color: var(--hrf-ink);
}

html.hrf-nav-open .hrf-site-header .hrf-nav-list .current-menu-item > a,
html.hrf-nav-open .hrf-site-header .hrf-nav-list .current_page_item > a,
html.hrf-nav-open .hrf-site-header #countrylang a.countrylangactive:hover,
html.hrf-nav-open .hrf-site-header #countrylang.is-open a.countrylangactive {
  color: var(--hrf-blue);
}

html.hrf-nav-open .hrf-site-header .hrf-nav-toggle {
  background: #fff;
  border-color: var(--hrf-border);
}

html.hrf-nav-open .hrf-site-header .hrf-nav-toggle__bars,
html.hrf-nav-open .hrf-site-header .hrf-nav-toggle__bars::before,
html.hrf-nav-open .hrf-site-header .hrf-nav-toggle__bars::after {
  background: var(--hrf-blue);
}

/* ===== Main ===== */
.hrf-main {
  min-height: 40vh;
}

.hrf-page {
  /* Seiten-HTML liefert oft eigenes Layout – kein Extra-Padding erzwingen */
}

.hrf-page > .alignfull {
  width: 100%;
}

/* WP-Blöcke nicht unnötig einengen */
.hrf-page .entry-content,
.hrf-page {
  max-width: none;
}

/* ===== Footer ===== */
.hrf-footer {
  background: var(--hrf-footer-bg);
  color: #fff;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px) 40px;
}

.hrf-footer__grid {
  max-width: var(--hrf-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.hrf-footer__brand {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 32px;
  margin-bottom: 8px;
}

.hrf-footer__logo {
  height: 30px;
  width: auto;
}

.hrf-footer__heading {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hrf-footer-muted);
  margin-bottom: 16px;
}

.hrf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
}

.hrf-footer__links a {
  color: var(--hrf-footer-text);
  text-decoration: none;
}

.hrf-footer__links a:hover {
  color: #fff;
}

.hrf-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  color: var(--hrf-footer-text);
}

.hrf-footer__contact a {
  color: var(--hrf-footer-text);
  text-decoration: none;
}

.hrf-footer__contact a:hover {
  color: #fff;
}

.hrf-footer__badges-wrap {
  max-width: var(--hrf-max);
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hrf-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(26px, 3.5vw, 48px);
}

.footer-badge img {
  display: block;
  height: auto;
  width: auto;
  max-height: 48px;
  max-width: 148px;
  object-fit: contain;
}

.footer-bottom {
  max-width: var(--hrf-max);
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.hrf-footer__legal {
  font-size: 13px;
  color: var(--hrf-footer-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(100%, 720px);
}

.hrf-footer__copy {
  line-height: 1.45;
  color: var(--hrf-footer-text);
}

.hrf-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 15px;
}

.hrf-footer .hrf-footer__legal-links a,
.hrf-footer .hrf-footer__legal-links a:visited {
  color: var(--hrf-footer-text);
  text-decoration: none;
  font-weight: 400;
}

.hrf-footer .hrf-footer__legal-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-social a {
  color: #93a8cc;
  display: inline-flex;
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .hrf-header__inner {
    flex-wrap: nowrap;
    gap: 12px 16px;
    align-items: center;
  }

  .hrf-header__actions {
    margin-left: auto;
    gap: 10px;
  }

  #countrylang a.countrylangactive {
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #langcountry-navigation ul.menu ul.sub-menu {
    right: 0;
    min-width: min(280px, calc(100vw - 32px));
    padding: 12px 16px;
  }

  #langcountry-navigation ul.menu ul.sub-menu li.menu-item {
    margin-bottom: 12px;
  }

  #countrylang .cl-lang {
    margin-right: 12px;
  }

  .hrf-nav-toggle {
    display: inline-flex;
    margin-left: 0;
    position: relative;
    z-index: 5;
  }

  .hrf-logo {
    position: relative;
    z-index: 5;
  }

  /* Separater Kontakt-Button nur Desktop – mobil nur Menüpunkt */
  .hrf-header .hrf-header__cta {
    display: none !important;
  }

  .hrf-menu-kontakt {
    display: list-item;
  }

  /* Overlay: legt sich über den Inhalt, schiebt nichts nach unten */
  .hrf-nav {
    display: none;
    position: fixed;
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: calc(var(--hrf-header-h) + 16px) clamp(20px, 4vw, 48px) 28px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0;
    z-index: 1;
    transform: none;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    pointer-events: auto;
  }

  .hrf-nav.is-open {
    display: block;
    max-height: none;
  }

  .hrf-header {
    z-index: 2;
  }

  .hrf-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: var(--hrf-max);
    margin: 0 auto;
    pointer-events: auto;
  }

  .hrf-nav-list > .menu-item {
    width: 100%;
    border-bottom: 1px solid var(--hrf-border);
  }

  .hrf-nav-list > .menu-item:last-child {
    border-bottom: 0;
  }

  .hrf-nav-list > .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 14px 2px;
    font-size: 16px;
    line-height: 1.35;
    white-space: normal;
    box-sizing: border-box;
  }

  .hrf-nav-list > .menu-item-has-children > a::after,
  .hrf-nav-list > .menu-item-has-children > a.nav-link::after {
    flex: none;
    margin-left: 8px;
    transition: transform 0.2s ease;
  }

  .hrf-nav-list > .menu-item-has-children.is-open > a::after,
  .hrf-nav-list > .menu-item-has-children.is-open > a.nav-link::after {
    transform: rotate(180deg);
  }

  /* Immer eine Spalte – kein Mega-Grid (sonst Abschneiden) */
  .hrf-nav-list > .menu-item-has-children > .sub-menu {
    position: static !important;
    display: none;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0;
    padding: 0 0 12px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 1fr !important;
    gap: 10px;
    box-sizing: border-box;
  }

  /* Spezifität bewusst höher als Desktop-:has-Regeln, damit Aufklappen sicher greift */
  .hrf-nav-list > .menu-item-has-children.is-open > .sub-menu,
  .hrf-nav-list > .menu-item-has-children.is-open:has(> .sub-menu > .menu-item-has-children) > .sub-menu {
    display: grid !important;
  }

  .hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item-has-children > a,
  .hrf-nav-list > .menu-item-has-children > .sub-menu > .hrf-menu-group-heading > a {
    padding: 10px 0 6px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hrf-blue);
    white-space: normal;
    border-bottom: 1px solid var(--hrf-border);
  }

  .hrf-nav-list > .menu-item-has-children > .sub-menu .sub-menu {
    display: block;
    padding: 0;
  }

  .hrf-nav-list > .menu-item-has-children > .sub-menu .sub-menu a,
  .hrf-nav-list > .menu-item-has-children > .sub-menu > .menu-item:not(.menu-item-has-children):not(.hrf-menu-group-heading) > a {
    display: block;
    padding: 10px 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Scroll-Lock wenn Mobile-Menü offen (Body fixiert, Menü selbst scrollt) */
@media (max-width: 860px) {
  html.hrf-nav-open,
  html.hrf-nav-open body,
  body.hrf-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.hrf-nav-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary,
  .hrf-header__cta,
  .nav-link {
    transition: none !important;
  }
}
