/* Nooxl website — generated from the approved design (Nooxl V2). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: only light; }
body { margin: 0; background: #FFFFFF; color: #2B2A29; font-family: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #607E8B; text-decoration: none; }
a:hover { color: #2B2A29; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid #607E8B; outline-offset: 3px; border-radius: 4px; }

@keyframes nx-drift { from { transform: translate(0, 0); } to { transform: translate(-16px, 10px); } }
@keyframes nx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-drift], [data-marquee] div { animation: none !important; }
}

/* hover states lifted from the design */
[data-h="1"]:hover { color: #607E8B; }
[data-h="2"]:hover { color: #2B2A29; }
[data-h="3"]:hover { background: #4E6975; color: #FFFFFF; }
[data-h="4"]:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43,42,41,0.10); }
[data-h="5"]:hover { background: #2B2A29; color: #FFFFFF; }
[data-h="6"]:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(43,42,41,0.10); }
[data-h="7"]:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43,42,41,0.08); }
[data-h="8"]:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.30); }
[data-h="9"]:hover { color: #FFFFFF; }

/* mobile navigation */
#nx-burger {
  display: none; order: 3; width: 44px; height: 44px; margin: 0; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
#nx-burger span { display: block; width: 22px; height: 2px; background: #2B2A29; transition: transform .2s ease-out, opacity .2s ease-out; }
#nx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
[data-r~="mobonly"] { display: none; }

@media (max-width: 1000px) {
  #nx-burger { display: flex; }
  #nx-navlinks {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    background: #FFFFFF; border-bottom: 1px solid #DFE7EA;
    box-shadow: 0 12px 28px rgba(43,42,41,0.10);
    padding: 8px 20px 16px; display: none !important;
  }
  #nx-navlinks[data-open] { display: flex !important; }
  #nx-navlinks > a { padding: 14px 4px; border-bottom: 1px solid #F4F7F8; font-size: 17px; }
  [data-nav] a[data-h="3"] { display: none !important; }

  [data-r~="stack"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  [data-r~="stack"] > * { min-width: 0; }
  [data-r~="two"] { grid-template-columns: repeat(2, 1fr) !important; }
  [data-r~="pad"] { padding: 72px 20px 80px !important; }
  [data-r~="padx"] { padding-left: 20px !important; padding-right: 20px !important; }
  [data-r~="nosticky"] { position: static !important; }
  [data-r~="padcard"] { padding: 28px 22px !important; }
  [data-r~="h1"] { font-size: 34px !important; }
  [data-r~="h2xl"] { font-size: 30px !important; }
  [data-r~="h2"] { font-size: 27px !important; }
  [data-r~="h2s"] { font-size: 25px !important; }
  [data-r~="h3xl"] { font-size: 26px !important; }
  [data-r~="matrix"] { overflow-x: auto; padding: 44px 0 52px !important; -webkit-overflow-scrolling: touch; }
  [data-r~="matrix"] > div { min-width: 180px; }
  /* row labels: narrower + pinned to the left while scrolling */
  [data-r~="matrix"] > div:first-child {
    order: -2; position: sticky; left: 0; z-index: 2;
    flex: 0 0 140px !important; min-width: 140px;
    margin: -44px 0 -52px; padding: 44px 0 52px; /* cover the badge/card edge of scrolled columns */
    background: #FFFFFF; box-shadow: 10px 0 14px -10px rgba(43,42,41,0.18);
  }
  [data-r~="matrix"] > div:first-child > div { font-size: 13px !important; line-height: 1.3; padding-right: 12px !important; }
  /* Nooxl column right after the labels, competitors scroll off to the right */
  [data-r~="matrix"] > div:nth-child(4) { order: -1; min-width: 204px; }
  /* tighter cells so the fixed 60px rows hold the text */
  [data-r~="matrix"] > div:not(:first-child) > div { padding-left: 14px !important; padding-right: 14px !important; }
  [data-r~="matrix"] > div:not(:first-child) > div > span + span {
    font-size: 12px !important; line-height: 1.25 !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  [data-r~="matrix"] > div:not(:first-child) > div:first-child > div + div { font-size: 12px !important; line-height: 1.3; }
  /* right-edge fade as scroll hint */
  [data-r~="matrix"]::after {
    content: ""; position: sticky; right: 0; flex: 0 0 40px; margin-left: -40px; z-index: 1;
    background: linear-gradient(to right, rgba(255,255,255,0), #FFFFFF); pointer-events: none;
  }
  [data-r~="mobonly"] { display: block !important; }
  /* swipe hint in the (otherwise empty) header cell of the pinned label column */
  [data-r~="matrix"] > div:first-child > div:first-child { display: flex !important; align-items: flex-end; padding: 0 12px 10px 0 !important; }
  .nx-swipe {
    display: flex !important; align-items: center; gap: 6px;
    font-size: 13px; line-height: 1.3; font-weight: 700; color: #607E8B;
  }
  .nx-swipe > span { display: inline-block; font-size: 16px; animation: nx-nudge 1.4s ease-in-out infinite; }
  @keyframes nx-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
  /* Kostenzeile traegt mehr Text als die uebrigen Zeilen: hier vier statt drei
     Zeilen erlauben und die Zeile in allen vier Spalten gleich hoeher machen. */
  [data-r~="matrix"] > div > div:has(> [data-cost]),
  [data-r~="matrix"] > div > [data-row="cost"] { height: 78px !important; }
  [data-r~="matrix"] > div > div:has(> [data-cost]) > span + span { -webkit-line-clamp: 4 !important; }
  [data-r~="foot"] { grid-template-columns: 1fr 1fr !important; gap: 40px 32px !important; }
}
@media (max-width: 620px) {
  [data-r~="two"], [data-r~="foot"] { grid-template-columns: 1fr !important; }
}


a[style*="background: #607E8B"] { white-space: nowrap; }

/* ---------- forms (demo page) ---------- */
.nx-f { display: flex; flex-direction: column; gap: 7px; }
.nx-f > label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: #55534F; }
.nx-f input, .nx-f textarea {
  font-family: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px; color: #2B2A29; background: #FFFFFF;
  border: 1px solid #DFE7EA; border-radius: 6px; padding: 13px 14px; width: 100%;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.nx-f textarea { resize: vertical; min-height: 108px; line-height: 1.5; }
.nx-f input:focus, .nx-f textarea:focus { outline: none; border-color: #607E8B; box-shadow: 0 0 0 3px rgba(96,126,139,0.15); }
.nx-f input::placeholder, .nx-f textarea::placeholder { color: #A9AEB0; }
.nx-f input:invalid:not(:placeholder-shown) { border-color: #F65421; }
.nx-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #55534F; }
.nx-consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #607E8B; flex: none; }
.nx-submit {
  font-family: 'Instrument Sans', sans-serif; font-size: 16px; font-weight: 600;
  background: #607E8B; color: #FFFFFF; border: 0; border-radius: 6px;
  padding: 16px 32px; cursor: pointer; transition: background .25s ease-out;
}
.nx-submit:hover { background: #4E6975; }
.nx-submit:disabled { opacity: .55; cursor: default; }
.nx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- legal pages ---------- */
.nx-prose { font-size: 16px; line-height: 1.7; color: #55534F; display: flex; flex-direction: column; gap: 18px; }
.nx-prose h2 { font-family: 'Schibsted Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #2B2A29; letter-spacing: -0.01em; margin-top: 26px; }
.nx-prose h3 { font-family: 'Schibsted Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: #2B2A29; margin-top: 14px; }
.nx-prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.nx-prose a { color: #607E8B; text-decoration: underline; overflow-wrap: anywhere; }
.nx-prose strong { color: #2B2A29; font-weight: 600; }

@media (max-width: 900px) {
  .nx-wrap { padding: 48px 22px 72px !important; }
  .nx-h1 { font-size: 34px !important; }
}
/* ---------- cookie banner ---------- */
.nx-cc {
  position: fixed; z-index: 80; left: 50%; bottom: 20px;
  width: calc(100% - 32px); max-width: 760px;
  background: #FFFFFF; color: #2B2A29;
  border: 1px solid #DFE7EA; border-radius: 6px;
  box-shadow: 0 16px 40px rgba(43,42,41,0.16);
  padding: 22px 24px;
  opacity: 0; transform: translateX(-50%) translateY(12px);
  transition: opacity .35s ease-out, transform .35s ease-out;
}
.nx-cc.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.nx-cc[hidden] { display: none !important; }
.nx-cc-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.nx-cc-text { font-size: 14px; line-height: 1.55; color: #55534F; margin: 0 0 18px; }
.nx-cc-text a { color: #607E8B; text-decoration: underline; }
.nx-cc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nx-cc-btn {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  border-radius: 6px; padding: 12px 20px;
  cursor: pointer; flex: 1 1 180px;
  transition: background .25s ease-out, color .25s ease-out, border-color .25s ease-out;
}
.nx-cc-btn-accept { background: #607E8B; color: #FFFFFF; border: 1px solid #607E8B; }
.nx-cc-btn-accept:hover { background: #4E6975; border-color: #4E6975; }
.nx-cc-btn-reject { background: #FFFFFF; color: #2B2A29; border: 1px solid #2B2A29; }
.nx-cc-btn-reject:hover { background: #F4F7F8; }
.nx-cc-open {
  font: inherit; color: inherit; background: none; border: 0;
  padding: 0; cursor: pointer; text-align: left;
}
.nx-cc-open:hover { color: #2B2A29; }
.nx-cc-open[data-h="9"]:hover { color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) {
  .nx-cc { transition: none; }
}

@media (max-width: 620px) {
  .nx-row { grid-template-columns: 1fr; }
  .nx-cc { bottom: 12px; width: calc(100% - 24px); padding: 18px 16px; }
  .nx-cc-actions { flex-direction: column; }
  .nx-cc-btn { flex: 1 1 auto; }
}
