/* Alle Regeln sind auf den arlovo-Header begrenzt. */
#arlovo-header.ahs-header,
#arlovo-header.ahs-header *,
#arlovo-header.ahs-header *::before,
#arlovo-header.ahs-header *::after { box-sizing: border-box; }
#arlovo-header.ahs-header {
  position: fixed;
  z-index: 9990;
  top: var(--ahs-live-admin-offset, var(--ahs-admin-offset, 0px));
  inset-inline: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--arlovo-layout-line);
  border-radius: 0;
  background: #fff;
  color: var(--arlovo-layout-ink);
  font: 400 18px/1.45 var(--arlovo-layout-font);
  text-align: left;
  box-shadow: none;
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease;
}
#arlovo-header.ahs-header.is-scrolled { box-shadow: 0 4px 20px rgb(22 49 84 / 5%); }
#arlovo-header.ahs-header.is-hidden { transform: translateY(calc(-100% - var(--ahs-live-admin-offset, var(--ahs-admin-offset, 0px)))); visibility: hidden; }
#arlovo-header .ahs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: min(1380px, calc(100% - 64px));
  max-width: none;
  min-height: calc(var(--ahs-header-height) - 1px);
  margin: 0 auto;
  padding: 0;
}
#arlovo-header-spacer.ahs-header-spacer { display: block; width: 100%; height: var(--ahs-header-height); margin: 0; padding: 0; pointer-events: none; }
#arlovo-header .ahs-logo { position: relative; display: block; flex: 0 0 auto; width: 210px; max-width: 46vw; line-height: 0; text-decoration: none; }
#arlovo-header .ahs-logo img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 66px; margin: 0; padding: 0; object-fit: contain; border: 0; border-radius: 0; }
#arlovo-header .ahs-logo__mask { display: none; }
@supports (mask-image: url("../images/arlovo-wordmark.webp")) or (-webkit-mask-image: url("../images/arlovo-wordmark.webp")) {
  #arlovo-header .ahs-logo--default .ahs-logo__mask { display: block; width: 100%; aspect-ratio: 384 / 120; background: var(--arlovo-layout-blue); -webkit-mask: url("../images/arlovo-wordmark.webp") center / contain no-repeat; mask: url("../images/arlovo-wordmark.webp") center / contain no-repeat; }
  #arlovo-header .ahs-logo--default img { position: absolute; inset: 0; opacity: 0; }
}
#arlovo-header a { text-decoration: none; }
#arlovo-header a:focus-visible,
#arlovo-header button:focus-visible { outline: 2px solid var(--arlovo-layout-blue); outline-offset: 5px; border-radius: 5px; }
#arlovo-header .ahs-navigation__list,
#arlovo-header .ahs-solutions__list { margin: 0; padding: 0; list-style: none; }
#arlovo-header .ahs-navigation__list { display: flex; align-items: center; gap: clamp(24px, 2.55vw, 40px); }
#arlovo-header .ahs-navigation__list > li { position: relative; margin: 0; padding: 0; list-style: none; }
#arlovo-header .ahs-link,
#arlovo-header .ahs-link:visited { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0; color: var(--arlovo-layout-ink); background: transparent; font: 600 18px/1.3 var(--arlovo-layout-font); letter-spacing: -.018em; white-space: nowrap; transition: color .15s ease, background .15s ease, border-color .15s ease; }
#arlovo-header .ahs-link:hover,
#arlovo-header .ahs-link[aria-current="page"],
#arlovo-header .ahs-current-parent > .ahs-solutions__heading > .ahs-link { color: var(--arlovo-layout-blue); }
#arlovo-header .ahs-link--check,
#arlovo-header .ahs-link--check:visited { min-height: 52px; padding: 0 22px; border: 1px solid var(--arlovo-layout-blue); border-radius: 8px; color: var(--arlovo-layout-blue); font-weight: 650; }
#arlovo-header .ahs-link--check:hover,
#arlovo-header .ahs-link--check[aria-current="page"] { background: var(--arlovo-layout-soft); color: var(--arlovo-layout-blue); }
#arlovo-header .ahs-arrow { display: block; flex: 0 0 auto; width: 18px; height: 18px; fill: none; }
#arlovo-header .ahs-solutions__heading { display: flex; align-items: center; gap: 2px; }
#arlovo-header .ahs-solutions-toggle { appearance: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; text-transform: none; }
#arlovo-header .ahs-solutions-toggle svg { display: block; transition: transform .18s ease; }
#arlovo-header .ahs-solutions-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
#arlovo-header .ahs-solutions__panel { display: none; position: absolute; top: calc(100% + 18px); left: -28px; width: 370px; max-width: calc(100vw - 40px); padding: 14px; background: #fff; border: 1px solid var(--arlovo-layout-line); border-radius: 14px; box-shadow: 0 16px 40px rgb(29 53 87 / 10%); }
#arlovo-header .ahs-solutions__panel::before { content: ""; position: absolute; height: 22px; inset-inline: 0; bottom: 100%; }
#arlovo-header .ahs-solutions.is-open > .ahs-solutions__panel,
#arlovo-header:not(.ahs-ready) .ahs-solutions:hover > .ahs-solutions__panel,
#arlovo-header:not(.ahs-ready) .ahs-solutions:focus-within > .ahs-solutions__panel { display: block; }
#arlovo-header .ahs-solutions__intro { margin: 0 0 5px; padding: 8px 12px 13px; border-bottom: 1px solid var(--arlovo-layout-line); color: var(--arlovo-layout-muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
#arlovo-header .ahs-solutions__list li { margin: 0; padding: 0; list-style: none; }
#arlovo-header .ahs-solutions__list a,
#arlovo-header .ahs-solutions__list a:visited { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; padding: 11px 12px; border-radius: 7px; background: #fff; color: var(--arlovo-layout-ink); font-size: 15px; font-weight: 500; line-height: 1.45; }
#arlovo-header .ahs-solutions__list a:hover,
#arlovo-header .ahs-solutions__list a[aria-current="page"] { background: var(--arlovo-layout-soft); color: var(--arlovo-layout-blue); }
#arlovo-header .ahs-menu-toggle { display: none; }
#arlovo-header [hidden] { display: none !important; }
#arlovo-header.ahs-header--ads .ahs-header__inner { justify-content: center; }
@media (max-width: 1200px) {
  #arlovo-header .ahs-logo { width: 180px; }
  #arlovo-header .ahs-header__inner { gap: 22px; }
  #arlovo-header .ahs-navigation__list { gap: 25px; }
  #arlovo-header .ahs-link { font-size: 16px; }
  #arlovo-header .ahs-link--check { padding-inline: 17px; min-height: 48px; }
}
@media (max-width: 980px) {
  #arlovo-header .ahs-logo { width: 160px; }
  #arlovo-header .ahs-menu-toggle { all: unset; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--arlovo-layout-line); border-radius: 8px; cursor: pointer; color: var(--arlovo-layout-ink); }
  #arlovo-header .ahs-menu-toggle__lines { position: relative; display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: background .15s; }
  #arlovo-header .ahs-menu-toggle__lines::before,
  #arlovo-header .ahs-menu-toggle__lines::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .15s; }
  #arlovo-header .ahs-menu-toggle__lines::before { transform: translateY(-6px); }
  #arlovo-header .ahs-menu-toggle__lines::after { transform: translateY(6px); }
  #arlovo-header .ahs-menu-toggle[aria-expanded="true"] .ahs-menu-toggle__lines { background: transparent; }
  #arlovo-header .ahs-menu-toggle[aria-expanded="true"] .ahs-menu-toggle__lines::before { transform: rotate(45deg); }
  #arlovo-header .ahs-menu-toggle[aria-expanded="true"] .ahs-menu-toggle__lines::after { transform: rotate(-45deg); }
  #arlovo-header .ahs-navigation { display: none; position: fixed; top: calc(var(--ahs-header-height) - 1px); inset-inline: 0; max-height: calc(100vh - var(--ahs-header-height) - var(--ahs-live-admin-offset, var(--ahs-admin-offset, 0px))); max-height: calc(100dvh - var(--ahs-header-height) - var(--ahs-live-admin-offset, var(--ahs-admin-offset, 0px))); overflow-y: auto; overscroll-behavior: contain; padding: 14px var(--arlovo-layout-gutter) 24px; background: #fff; border-block: 1px solid var(--arlovo-layout-line); box-shadow: 0 14px 24px rgb(29 53 87 / 8%); }
  #arlovo-header.is-menu-open .ahs-navigation { display: block; }
  #arlovo-header .ahs-navigation__list { display: grid; gap: 0; max-width: 680px; margin-inline: auto; }
  #arlovo-header .ahs-navigation__list > li { border-bottom: 1px solid var(--arlovo-layout-line); }
  #arlovo-header .ahs-navigation__list > li:last-child { padding-top: 18px; border: 0; }
  #arlovo-header .ahs-link { justify-content: flex-start; width: 100%; min-height: 58px; padding: 12px 0; font-size: 18px; white-space: normal; }
  #arlovo-header .ahs-link--check { justify-content: space-between; min-height: 50px; padding: 12px 16px; }
  #arlovo-header .ahs-solutions-toggle { justify-content: space-between; }
  #arlovo-header .ahs-solutions__panel { position: static; width: 100%; max-width: none; margin: 0 0 14px; padding: 5px; border: 0; border-radius: 10px; box-shadow: none; background: var(--arlovo-layout-soft); }
  #arlovo-header .ahs-solutions__panel::before { display: none; }
  #arlovo-header .ahs-solutions__intro { display: none; }
  #arlovo-header .ahs-solutions__list a { background: transparent; padding: 12px; min-height: 46px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #arlovo-header.ahs-header,
  #arlovo-header .ahs-link,
  #arlovo-header .ahs-menu-toggle__lines,
  #arlovo-header .ahs-menu-toggle__lines::before,
  #arlovo-header .ahs-menu-toggle__lines::after,
  #arlovo-header .ahs-solutions-toggle svg { transition: none; }
}

/* Inhaltskanten passend zu den Seitenabschnitten. */
@media (max-width: 760px) {
  #arlovo-header .ahs-header__inner { width: calc(100% - 36px); }
}
@media (max-width: 420px) {
  #arlovo-header .ahs-header__inner { width: calc(100% - 30px); }
}

/* Native mobile menu: does not depend on delayed JavaScript. */
#arlovo-header .ahs-menu-state { display:none; }
@media(max-width:980px) {
 #arlovo-header .ahs-menu-state { display:block; position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 #arlovo-header .ahs-menu-state ~ .ahs-navigation { display:none !important; }
 #arlovo-header .ahs-menu-state:checked ~ .ahs-navigation { display:block !important; }
 #arlovo-header .ahs-menu-state:focus-visible + .ahs-menu-toggle { outline:2px solid var(--arlovo-layout-blue); outline-offset:4px; }
 #arlovo-header .ahs-menu-state:checked + .ahs-menu-toggle .ahs-menu-toggle__lines { background:transparent; }
 #arlovo-header .ahs-menu-state:checked + .ahs-menu-toggle .ahs-menu-toggle__lines::before { transform:rotate(45deg); }
 #arlovo-header .ahs-menu-state:checked + .ahs-menu-toggle .ahs-menu-toggle__lines::after { transform:rotate(-45deg); }
 #arlovo-header .ahs-menu-state:not(:checked) + .ahs-menu-toggle .ahs-menu-toggle__lines { background:currentColor; }
 #arlovo-header .ahs-menu-state:not(:checked) + .ahs-menu-toggle .ahs-menu-toggle__lines::before { transform:translateY(-6px); }
 #arlovo-header .ahs-menu-state:not(:checked) + .ahs-menu-toggle .ahs-menu-toggle__lines::after { transform:translateY(6px); }
 #arlovo-header:not(.ahs-ready) .ahs-solutions__panel { display:block; }
 #arlovo-header:not(.ahs-ready) .ahs-solutions-toggle svg { display:none; }
}
html:has(#ahs-menu-state:checked) { overflow:hidden; }
