/* ==========================================================================
   NINEXA CHROME
   Kopfleiste und Footer. Ersetzt die Lagom-Überschreibungen aus
   nx-ninexa.css (dort die Blöcke HEADER und FOOTER).
   Setzt auf den Tokens auf, die nx-ninexa.css auf .nx-root definiert.
   ========================================================================== */

/* ---------------------------------------------------------------- Grundlage */
body.nx-root {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.nx-root > main {
  flex: 1 0 auto;
}

.nxh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--nx-eis);
  color: #00142E;
  font-family: var(--nx-mono);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.nxh-skip:focus {
  left: 0;
}

/* ==========================================================================
   KOPFLEISTE
   ========================================================================== */
.nxh {
  --nxh-leiste: #070F2C;
  --nxh-linie: #1E2A50;
  --nxh-text: #B9C3D8;
  --nxh-hell: #F7F7F8;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nxh-leiste);
  border-bottom: 1px solid var(--nxh-linie);
}
.nxh-wrap {
  max-width: var(--nx-max, 1180px);
  margin: 0 auto;
  padding: 0 var(--nx-pad, 22px);
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 68px;
}

.nxh-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.nxh-logo img {
  display: block;
  width: 150px;
  height: auto;
}
.nxh-logo:focus-visible {
  outline: 2px solid var(--nx-eis);
  outline-offset: 4px;
}

/* ------------------------------------------------------------- Navigation */
.nxh-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
.nxh-liste {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nxh-liste > li > a {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: .94rem;
  line-height: 1.2;
  color: var(--nxh-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s var(--nx-ease, ease);
}
.nxh-liste > li > a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--nx-eis);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--nx-ease, ease);
}
.nxh-liste > li > a:hover,
.nxh-liste > li > a:focus-visible {
  color: var(--nxh-hell);
}
.nxh-liste > li > a:hover::after,
.nxh-liste > li > a:focus-visible::after,
.nxh-liste > li > a.is-aktiv::after {
  transform: scaleX(1);
}
.nxh-liste > li > a.is-aktiv {
  color: var(--nx-eis);
}
.nxh-liste > li > a:focus-visible {
  outline: 2px solid var(--nx-eis);
  outline-offset: -2px;
}

/* ----------------------------------------------------------- Kontobereich */
.nxh-konto {
  position: relative;
  flex: 0 0 auto;
}
.nxh-konto-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: var(--nx-signal);
  color: #00142E;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background .15s var(--nx-ease, ease);
}
.nxh-konto-btn:hover {
  background: var(--nx-eis);
}
.nxh-konto-btn:focus-visible {
  outline: 2px solid var(--nx-eis);
  outline-offset: 2px;
}
.nxh-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .18s var(--nx-ease, ease);
}
.nxh-konto-btn[aria-expanded="true"] .nxh-caret {
  transform: rotate(180deg);
}

.nxh-konto-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 208px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--nx-karte, #101A3A);
  border: 1px solid var(--nxh-linie);
  border-top: 2px solid var(--nx-eis);
  z-index: 50;
}
.nxh-konto-menu[hidden] {
  display: none;
}
.nxh-konto-menu > li + li {
  border-top: 1px solid rgba(247, 247, 248, .10);
}
.nxh-konto-menu a {
  display: block;
  padding: 12px 16px;
  font-size: .92rem;
  color: var(--nxh-text);
  text-decoration: none;
  transition: background .15s var(--nx-ease, ease), color .15s var(--nx-ease, ease);
}
.nxh-konto-menu a:hover,
.nxh-konto-menu a:focus-visible {
  background: rgba(92, 214, 255, .12);
  color: var(--nxh-hell);
}
.nxh-konto-menu a:focus-visible {
  outline: 2px solid var(--nx-eis);
  outline-offset: -2px;
}

/* --------------------------------------------------------- Schalter mobil */
.nxh-toggle {
  all: unset;
  display: none;
  cursor: pointer;
  margin-left: auto;
  padding: 12px 10px;
}
.nxh-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nxh-hell);
  transition: transform .2s var(--nx-ease, ease), opacity .2s var(--nx-ease, ease);
}
.nxh-toggle span + span {
  margin-top: 5px;
}
.nxh-toggle:focus-visible {
  outline: 2px solid var(--nx-eis);
  outline-offset: -2px;
}
.nxh-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nxh-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nxh-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1040px) {
  .nxh-toggle {
    display: block;
  }
  .nxh-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--nx-pad, 22px) 20px;
    background: var(--nxh-leiste);
    border-bottom: 1px solid var(--nxh-linie);
  }
  .nxh-nav.is-offen {
    display: flex;
  }
  .nxh-liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nxh-liste > li > a {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(247, 247, 248, .08);
  }
  .nxh-liste > li > a::after {
    display: none;
  }
  .nxh-konto {
    margin-top: 16px;
  }
  .nxh-konto-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .nxh-konto-menu {
    position: static;
    min-width: 0;
    margin-top: 2px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.nxf {
  --nxf-oben: #050B22;
  --nxf-unten: #03071A;
  --nxf-linie: #1E2A50;
  --nxf-text: #B9C3D8;
  --nxf-hell: #F7F7F8;
  position: relative;
  flex: 0 0 auto;
  margin-top: 80px;
  background: linear-gradient(180deg, var(--nxf-oben) 0%, var(--nxf-unten) 100%);
  color: var(--nxf-text);
}
.nxf::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(92, 214, 255, .55) 26%,
    rgba(0, 154, 255, .55) 62%,
    transparent 100%);
}
.nxf::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(247, 247, 248, .05) 0%, rgba(247, 247, 248, 0) 100%);
  pointer-events: none;
}
.nxf-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--nx-max, 1180px);
  margin: 0 auto;
  padding: 56px var(--nx-pad, 22px) 0;
}

.nxf-oben {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.nxf-marke img {
  display: block;
  width: 150px;
  height: auto;
}
.nxf-claim {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: .92rem;
  line-height: 1.6;
}
.nxf-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.nxf-trust li {
  position: relative;
  padding-left: 17px;
  font-family: var(--nx-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nx-stahl, #8792AC);
}
.nxf-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 1px;
  background: var(--nx-eis);
}

.nxf-spalte h2 {
  margin: 0 0 16px;
  font-family: var(--nx-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nx-eis);
}
.nxf-spalte ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.nxf-spalte a {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--nxf-text);
  text-decoration: none;
  transition: color .15s var(--nx-ease, ease);
}
.nxf-spalte a:hover,
.nxf-spalte a:focus-visible {
  color: var(--nx-eis);
}
.nxf-spalte a:focus-visible {
  outline: 2px solid var(--nx-eis);
  outline-offset: 3px;
}

.nxf-unten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--nxf-linie);
}
.nxf-copy {
  margin: 0;
  font-size: .82rem;
  color: var(--nx-stahl, #8792AC);
}
.nxf-recht {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nxf-recht a {
  font-size: .82rem;
  color: var(--nx-stahl, #8792AC);
  text-decoration: none;
  transition: color .15s var(--nx-ease, ease);
}
.nxf-recht a:hover,
.nxf-recht a:focus-visible {
  color: var(--nx-eis);
}

@media (max-width: 900px) {
  .nxf-oben {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nxf-marke {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .nxf-oben {
    grid-template-columns: 1fr;
  }
  .nxf-unten {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nxh *,
  .nxf * {
    transition: none !important;
  }
}
