/* Nooxl website — generated from the approved design (Nooxl V2). */
/* ------------------------------------------------------------------ Tokens --
   Einzige Quelle fuer Farbe, Schrift und Flaeche. Aus dem gewachsenen Design
   der Seite abgeleitet, nicht neu erfunden -- jeder Wert stand vorher schon so
   im Markup. Wer hier etwas aendert, aendert es ueberall, auch im Blog: den
   erzeugt scripts/build.mjs aus denselben Namen.
   -------------------------------------------------------------------------- */
:root {
  /* Flaeche und Text */
  --nx-paper: #FFFFFF;
  --nx-surface: #F4F7F8;
  --nx-line: #DFE7EA;
  --nx-muted: #8A8886;
  --nx-body: #55534F;
  --nx-ink: #2B2A29;
  --nx-ink-soft: #3A3A39;
  --nx-ink-2: #42413F;

  /* Akzent */
  --nx-accent: #607E8B;
  --nx-accent-deep: #4E6975;
  --nx-accent-soft: #9FB3BC;
  --nx-accent-line: #C9D6DC;

  /* auf dunklem Grund */
  --nx-on-dark: #C9CFD3;
  --nx-on-dark-dim: #6E7A80;

  /* Signal */
  --nx-warn: #F65421;
  --nx-ok: #4A7C59;
  --nx-spark: #D9E32C;
  --nx-excel: #217346;   /* Fremdmarke Microsoft, nur im Excel-Zusammenhang */

  /* selten, aber vorhanden */
  --nx-tint: #FAFBFC;
  --nx-tint-2: #EEF3F5;
  --nx-grey: #A9AEB0;

  /* Schrift */
  --nx-font-display: 'Schibsted Grotesk', sans-serif;
  --nx-font-body: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Hintergrundraster: der Akzent bei sieben Prozent, 56er Zelle.
     Liegt hinter Hero und Kontaktabschnitt, immer mit pointer-events: none. */
  --nx-grid-line: rgba(96, 126, 139, 0.07);
  --nx-grid:
    linear-gradient(to right, var(--nx-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--nx-grid-line) 1px, transparent 1px);
  --nx-grid-size: 56px 56px;

  /* Radien und Schatten */
  --nx-r-micro: 2px;
  --nx-r-btn: 6px;
  --nx-r-card: 12px;
  --nx-r-pill: 999px;
  --nx-shadow-card: 0 14px 30px rgba(43,42,41,0.10);
  --nx-shadow-lift: 0 16px 36px rgba(43,42,41,0.10);
  --nx-shadow-menu: 0 12px 28px rgba(43,42,41,0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: only light; }
body { margin: 0; background: var(--nx-paper); color: var(--nx-ink); font-family: var(--nx-font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--nx-accent); text-decoration: none; }
a:hover { color: var(--nx-ink); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--nx-accent); 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: var(--nx-accent); }
[data-h="2"]:hover { color: var(--nx-ink); }
[data-h="3"]:hover { background: var(--nx-accent-deep); color: var(--nx-paper); }
[data-h="4"]:hover { transform: translateY(-3px); box-shadow: var(--nx-shadow-card); }
[data-h="5"]:hover { background: var(--nx-ink); color: var(--nx-paper); }
[data-h="6"]:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-lift); }
[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: var(--nx-paper); }

/* 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: var(--nx-ink); 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: var(--nx-paper); border-bottom: 1px solid var(--nx-line);
    box-shadow: var(--nx-shadow-menu);
    padding: 8px 20px 16px; display: none !important;
  }
  #nx-navlinks[data-open] { display: flex !important; }
  #nx-navlinks > a { padding: 14px 4px; border-bottom: 1px solid var(--nx-surface); font-size: 17px; }
  [data-nav] a[data-h="3"] { display: none !important; }
  /* Kopf-CTA ist hier ausgeblendet, darum als letzter Punkt im Klappmenue */
  #nx-navlinks > a[data-mobil-cta] { display: block !important; border-bottom: none; padding-top: 18px; }

  [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~="proof"] { gap: 16px 24px !important; }
  [data-r~="proof"] > div { border-left: 0 !important; padding: 8px 0 !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: var(--nx-paper); 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), var(--nx-paper)); 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: var(--nx-accent);
  }
  .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; }
  /* Team row: placeholders wrap under the avatars; drop the desktop optical
     offset so it doesn't leave an empty band under that second row. */
  [data-r~="team"] {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 16px 24px !important;
  }
  [data-r~="team-more"] { margin-bottom: 0 !important; }
  [data-r~="teamsec"] { padding-bottom: 48px !important; }
}
@media (max-width: 620px) {
  [data-r~="two"], [data-r~="foot"] { grid-template-columns: 1fr !important; }
  [data-r~="proof"] { gap: 0 !important; }
  [data-r~="proof"] > div { padding: 20px 0 !important; }
  [data-r~="proof"] > div + div { border-top: 1px solid var(--nx-line) !important; }
  [data-r~="timeline"] { grid-template-columns: 1fr !important; gap: 8px !important; }
}


a[style*="background: var(--nx-accent)"] { 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: var(--nx-body); }
.nx-f input, .nx-f textarea {
  font-family: var(--nx-font-body);
  font-size: 16px; color: var(--nx-ink); background: var(--nx-paper);
  border: 1px solid var(--nx-line); 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: var(--nx-accent); box-shadow: 0 0 0 3px rgba(96,126,139,0.15); }
.nx-f input::placeholder, .nx-f textarea::placeholder { color: var(--nx-grey); }
.nx-f input:invalid:not(:placeholder-shown) { border-color: var(--nx-warn); }
.nx-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--nx-body); }
.nx-consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--nx-accent); flex: none; }
.nx-submit {
  font-family: 'Instrument Sans', sans-serif; font-size: 16px; font-weight: 600;
  background: var(--nx-accent); color: var(--nx-paper); border: 0; border-radius: 6px;
  padding: 16px 32px; cursor: pointer; transition: background .25s ease-out;
}
.nx-submit:hover { background: var(--nx-accent-deep); }
.nx-submit:disabled { opacity: .55; cursor: default; }
.nx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* nur fuer Screenreader und Suchmaschinen, visuell nicht sichtbar */
.nx-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- legal pages ---------- */
.nx-prose { font-size: 16px; line-height: 1.7; color: var(--nx-body); display: flex; flex-direction: column; gap: 18px; }
.nx-prose h2 { font-family: 'Schibsted Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--nx-ink); letter-spacing: -0.01em; margin-top: 26px; }
.nx-prose h3 { font-family: 'Schibsted Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: var(--nx-ink); margin-top: 14px; }
.nx-prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.nx-prose a { color: var(--nx-accent); text-decoration: underline; overflow-wrap: anywhere; }
.nx-prose strong { color: var(--nx-ink); 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: var(--nx-paper); color: var(--nx-ink);
  border: 1px solid var(--nx-line); 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: var(--nx-body); margin: 0 0 18px; }
.nx-cc-text a { color: var(--nx-accent); 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: var(--nx-accent); color: var(--nx-paper); border: 1px solid var(--nx-accent); }
.nx-cc-btn-accept:hover { background: var(--nx-accent-deep); border-color: var(--nx-accent-deep); }
.nx-cc-btn-reject { background: var(--nx-paper); color: var(--nx-ink); border: 1px solid var(--nx-ink); }
.nx-cc-btn-reject:hover { background: var(--nx-surface); }
.nx-cc-open {
  font: inherit; color: inherit; background: none; border: 0;
  padding: 0; cursor: pointer; text-align: left;
}
.nx-cc-open:hover { color: var(--nx-ink); }
.nx-cc-open[data-h="9"]:hover { color: var(--nx-paper); }
@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; }
}

/* ---------- Blog ---------- */
.nx-blog { font-size: 17px; line-height: 1.75; }
.nx-blog h2 { font-size: 24px; margin-top: 22px; }
.nx-blog h3 { font-size: 18px; margin-top: 10px; }
.nx-blog ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.nx-blog li::marker { color: var(--nx-muted); }
.nx-blog code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 4px; padding: 1px 5px; color: var(--nx-ink); }
.nx-blog pre { margin: 0; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 8px; padding: 18px 20px; overflow-x: auto; }
.nx-blog pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }
.nx-lead { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.nx-lead figcaption, .nx-lead-meta { font-size: 13px; color: var(--nx-muted); display: flex; flex-wrap: wrap; gap: 14px; }
.nx-quote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--nx-accent); font-size: 18px; line-height: 1.6; color: var(--nx-ink); }
.nx-tab { border-collapse: collapse; width: 100%; font-size: 15px; }
.nx-tab th, .nx-tab td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--nx-line); vertical-align: top; }
.nx-tab th { font-weight: 600; color: var(--nx-ink); border-bottom-color: var(--nx-accent-line); white-space: nowrap; }
.nx-tab td { color: var(--nx-body); }
@media (max-width: 620px) {
  .nx-blog { font-size: 16px; }
  .nx-tab { font-size: 14px; }
  .nx-tab th, .nx-tab td { padding-right: 12px; }
}
