/*
Theme Name: NetFusion Systems
Theme URI: https://net-fusion.eu
Author: NetFusion Systems
Description: Eigenes Block-Theme für NetFusion Systems, Arnsberg-Hüsten. Funktechnik, Netzwerktechnik, Smart Home und Fahrzeugdesign. Schriften lokal eingebunden (keine externen Anfragen).
Version: 1.7.3
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: netfusion
*/

/* ---------- Fonts (self-hosted, Manrope + Inter fallback, SIL OFL) ---------- */
@font-face { font-family: "Manrope"; src: url("/wp-content/uploads/fonts/manrope-latin-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "NF Text"; src: url("assets/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NF Text"; src: url("assets/fonts/Inter-Medium.woff") format("woff"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #050a18;
  --surface: #0a1226;
  --surface-2: #101a33;
  --surface-3: #1b2747;
  --ink: #f3f6fc;
  --muted: #a5b0c6;
  --paper: #f4f7fc;
  --paper-ink: #0a1226;
  --paper-muted: #4f5662;
  --accent: #1460f2;
  --accent-deep: #0f4bc4;
  --accent-light: #5b93ff;
  --accent-ink: #ffffff;

  --font-display: "Manrope", "NF Text", system-ui, sans-serif;
  --font-text: "Manrope", "NF Text", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 4rem);
  --step-display: clamp(3.1rem, 1.2rem + 6.2vw, 8.25rem);

  --margin: clamp(16px, 2.4vw, 32px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(80px, 9vw, 144px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--step-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text, .nf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf-skip { position: absolute; left: var(--margin); top: -80px; z-index: 100; background: var(--paper); color: var(--paper-ink); padding: 12px 18px; border-radius: 999px; }
.nf-skip:focus { top: 12px; }

/* WordPress layout neutralisation inside our sections */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.nf > *, .nf * > .wp-block-group { margin-block: 0; }
.wp-block-template-part { margin: 0; }
:where(.nf) .wp-block-heading, :where(.nf) p { margin: 0; }
.wp-block-buttons { gap: 12px; }

/* ---------- Type roles ---------- */
.nf-display, .nf-head, .nf-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.nf-display { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.045em; }
.nf-head, .nf-h2 { font-size: var(--step-head); }
.nf-lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; }
.nf-small { font-size: var(--step-small); }
.nf-muted { color: var(--muted); }
.nf-strong { font-weight: 700; }

/* ---------- Buttons (pill, from the circle) ---------- */
.nf-btn .wp-block-button__link, a.nf-btn, button.nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--step-body)/1 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.nf-btn--paper .wp-block-button__link, a.nf-btn--paper, button.nf-btn--paper { background: var(--paper); color: var(--paper-ink); }
.nf-btn--ink .wp-block-button__link, a.nf-btn--ink { background: var(--paper-ink); color: var(--paper); }
.nf-btn .wp-block-button__link:active, a.nf-btn:active, button.nf-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nf-btn .wp-block-button__link:hover, a.nf-btn:hover, button.nf-btn:hover { background: var(--accent-light); }
  .nf-btn--paper .wp-block-button__link:hover, a.nf-btn--paper:hover, button.nf-btn--paper:hover { background: #ffffff; }
  .nf-btn--ink .wp-block-button__link:hover, a.nf-btn--ink:hover { background: #23262d; }
}
.nf-btn .wp-block-button__link::after, a.nf-btn::after, button.nf-btn::after { content: "→"; font-weight: 400; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nf-btn .wp-block-button__link:hover::after, a.nf-btn:hover::after, button.nf-btn:hover::after { transform: translateX(4px); }
}
.nf-link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nf-link:hover { text-decoration-color: currentColor; } }

/* ---------- Frame ---------- */
.nf-wrap { padding-inline: var(--margin); }
.nf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.nf-section { padding-block: var(--section); position: relative; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.nf-header {
  position: relative;
  background: var(--bg);
  transition: background-color 300ms ease;
}
.nf-header__bar { display: flex; align-items: center; gap: 32px; min-height: 76px; padding-inline: var(--margin); }
.nf-logo { display: inline-flex; align-items: center; flex: none; }
.nf-logo img { height: 42px; width: auto; }
@media (max-width: 420px) { .nf-logo img { height: 34px; } }
.nf-wordmark { display: inline-flex; align-items: center; gap: 12px; font: 800 var(--step-body)/1 var(--font-display); letter-spacing: -0.02em; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nf-wordmark__mark { width: 24px; height: 24px; background: var(--accent); position: relative; flex: none; }
.nf-wordmark__mark::after { content: ""; position: absolute; width: 10px; height: 10px; right: -4px; bottom: -4px; background: var(--paper); }
.nf-wordmark__mark::before { content: ""; position: absolute; inset: 7px; background: var(--bg); }
.nf-nav { display: flex; gap: 28px; margin-left: auto; }
.nf-nav a { text-decoration: none; font-size: var(--step-body); color: var(--muted); transition: color 200ms ease; padding-block: 8px; }
@media (hover: hover) and (pointer: fine) { .nf-nav a:hover { color: var(--ink); } }
.nf-header .nf-btn { min-height: 44px; padding: 0 20px; }
.nf-menu-toggle { display: none; }

@media (max-width: 900px) {
  .nf-header__bar { gap: 12px; min-height: 64px; }
  .nf-nav { display: none; }
  .nf-header .nf-btn { margin-left: auto; }
  .nf-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 0;
    background: var(--surface-2); color: var(--ink); cursor: pointer;
    transition: transform 160ms var(--ease-out);
  }
  .nf-menu-toggle:active { transform: scale(0.95); }
  .nf-menu-toggle span, .nf-menu-toggle span::before { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform 200ms var(--ease-out); }
  .nf-menu-toggle span::before { content: ""; position: absolute; top: 6px; left: 0; }
  .nf-menu-toggle span { transform: translateY(-3px); }
  .nf-header.is-open .nf-menu-toggle span { transform: translateY(0) rotate(45deg); }
  .nf-header.is-open .nf-menu-toggle span::before { top: 0; transform: rotate(-90deg); }
  .nf-header.is-open .nf-nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); padding: 8px var(--margin) 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,.45); /* taste-skill-ignore: open menu overlay */
  }
  .nf-header.is-open .nf-nav a { font-size: var(--step-lead); color: var(--ink); padding-block: 12px; }
}

/* ---------- Hero ---------- */
.nf-hero { position: relative; overflow: hidden; min-height: calc(100svh - 76px); display: grid; align-items: end; }
.nf-hero__panel { position: absolute; z-index: 1; right: var(--margin); bottom: clamp(48px, 8vh, 96px); width: min(40vw, 640px); }
.nf-hero__body { position: relative; z-index: 2; padding: 0 var(--margin) clamp(48px, 8vh, 96px); max-width: 48vw; }
.nf-hero__lead { margin-top: 32px; max-width: 34ch; color: var(--ink); }
.nf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.nf-hero__actions .nf-link { color: var(--ink); }
.nf-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; color: var(--muted); font-size: var(--step-small); }

@media (max-width: 900px) {
  .nf-hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding-top: 48px; }
  .nf-spectrum__axis span:nth-child(2) { display: none; }
  .nf-hero__panel { position: relative; order: 2; right: auto; bottom: auto; width: auto; margin: 0 var(--margin) 56px; }
  .nf-hero__body { max-width: none; padding-top: 0; }
  .nf-hero__facts { margin-top: 40px; }
}

/* ---------- Spectrum (real data) ---------- */
.nf-spectrum { margin: 0; background: var(--surface); padding: clamp(20px, 2.2vw, 32px); }
.nf-spectrum figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); color: var(--muted); margin-bottom: 18px; }
.nf-spectrum figcaption span:first-child { color: var(--ink); font-weight: 700; }
.nf-spectrum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nf-spectrum li { display: grid; grid-template-columns: 38% 1fr; gap: 16px; align-items: center; padding-block: 6px; }
.nf-spectrum__label { font-size: var(--step-small); color: var(--muted); line-height: 1.25; transition: color 300ms ease; }
.nf-spectrum__label small { display: block; font-size: var(--step-small); opacity: .8; }
.nf-spectrum li.is-on .nf-spectrum__label { color: var(--ink); }
.nf-spectrum__track { position: relative; height: 10px; background: var(--surface-2); }
.nf-spectrum__track i { position: absolute; top: 0; bottom: 0; background: var(--surface-3); transform-origin: left center; }
.nf-spectrum li.is-on .nf-spectrum__track i { background: var(--accent); }
.nf-spectrum__axis { position: relative; height: 18px; margin: 12px 0 0 calc(38% + 16px); font-size: 12.5px; color: var(--muted); }
.nf-spectrum__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.nf-spectrum__axis span:first-child { transform: none; }
.nf-spectrum__axis span:last-child { transform: translateX(-100%); }
.nf-js .nf-spectrum__track i { transform: scaleX(0); }
.nf-js.is-ready .nf-spectrum__track i { transform: none; transition: transform 1100ms var(--ease-out); }
.nf-js.is-ready .nf-spectrum li:nth-child(2) i { transition-delay: 60ms; } .nf-js.is-ready .nf-spectrum li:nth-child(3) i { transition-delay: 120ms; }
.nf-js.is-ready .nf-spectrum li:nth-child(4) i { transition-delay: 180ms; } .nf-js.is-ready .nf-spectrum li:nth-child(5) i { transition-delay: 240ms; }
.nf-js.is-ready .nf-spectrum li:nth-child(6) i { transition-delay: 300ms; } .nf-js.is-ready .nf-spectrum li:nth-child(7) i { transition-delay: 360ms; }
.nf-js.is-ready .nf-spectrum li:nth-child(8) i { transition-delay: 420ms; }

/* ---------- Features: shape-marked points ---------- */
.nf-features { overflow: hidden; }
.nf-features__shape {
  grid-column: 1 / 5; align-self: start;
  width: calc(100% + var(--margin)); margin-left: calc(-1 * var(--margin)); aspect-ratio: 9 / 11;
  max-height: 80svh; overflow: hidden; position: sticky; top: 100px;
}
.nf-features__shape svg { width: 100%; height: 100%; }
.nf-features__body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; }
.nf-features__body > .nf-h2 { grid-column: 1 / 6; grid-row: 1; }
.nf-features__body > .nf-features__intro { grid-column: 1 / 6; grid-row: 2; }
.nf-features__body > .nf-points { grid-column: 7 / 13; grid-row: 1 / 4; margin-top: 0; }
.nf-features__intro { margin-top: 24px; max-width: 46ch; color: var(--muted); }
.nf-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; margin-top: 64px; }
.nf-point h3 { font: 700 var(--step-body)/1.3 var(--font-text); letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 12px; }
.nf-point h3::before { content: ""; flex: none; width: 0.62em; height: 0.62em; background: var(--accent-light); transform: translateY(-0.04em); }
.nf-point__list { list-style: none; margin: 14px 0 0; padding: 0 0 0 calc(0.62em + 12px); display: grid; gap: 12px; }
.nf-point__list li { color: var(--muted); line-height: 1.5; }
.nf-point__list strong { color: var(--ink); font-weight: 700; display: block; }
@media (max-width: 900px) {
  .nf-features__shape { grid-column: 1 / -1; width: calc(100% + 2 * var(--margin)); margin-left: calc(-1 * var(--margin)); aspect-ratio: 4 / 3; max-height: 60svh; position: relative; top: 0; }
  .nf-features__body { display: block; }
  .nf-features__body > .nf-points { margin-top: 40px; }
  .nf-points { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .nf-point h3 { margin-left: calc(-0.62em - 12px); }
  .nf-point { padding-left: calc(0.62em + 12px); }
  .nf-point__list { padding-left: 0; }
}

/* ---------- Showcase: the radio picker on a disc ---------- */
.nf-picker { background: var(--surface); min-height: 100svh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.nf-picker__stage { position: absolute; inset: 0; }
.nf-picker__disc {
  position: absolute; left: 58%; top: 42%; width: 58vh; height: 58vh; min-width: 400px; min-height: 400px;
  transform: translate(-50%, -50%) scale(var(--range, 1));
  transition: transform 700ms var(--ease-out);
}
.nf-picker__disc { border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.nf-picker__disc::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.nf-picker__disc span { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--accent-light); z-index: 1; }
.nf-picker__device { position: absolute; left: 58%; top: 42%; width: min(24vh, 210px); height: min(48vh, 420px); transform: translate(-50%, -54%); }
.nf-picker__device svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.nf-picker__device svg.is-on { opacity: 1; transform: none; }
.nf-picker__panel { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; padding-top: 96px; padding-bottom: clamp(48px, 7vh, 88px); }
.nf-picker__names { grid-column: 1 / 6; }
.nf-picker__names .nf-h2 { color: var(--muted); }
.nf-picker__list { list-style: none; margin: 0; padding: 0; }
.nf-picker__list button {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 18px;
  font: 800 var(--step-head)/1.1 var(--font-display); letter-spacing: -0.035em;
  color: var(--muted); transition: color 200ms ease, transform 160ms var(--ease-out);
}
.nf-picker__list button::before { content: ""; width: 0.24em; height: 0.24em; background: var(--accent-light); opacity: 0; transform: scale(0.4); transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.nf-picker__list button[aria-pressed="true"] { color: var(--ink); }
.nf-picker__list button[aria-pressed="true"]::before { opacity: 1; transform: scale(1); }
.nf-picker__list button:active { transform: scale(0.98); }
.nf-picker__list button:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 6px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .nf-picker__list button:hover { color: var(--ink); } }
.nf-picker__fact { grid-column: 10 / 13; }
.nf-picker__fact dl { margin: 0; display: grid; gap: 16px; }
.nf-picker__unit { margin: 6px 0 28px; font-size: var(--step-small); color: var(--muted); }
.nf-picker__fact dt { font-size: var(--step-small); color: var(--muted); }
.nf-picker__fact dd { margin: 2px 0 0; }
.nf-picker__range { font: 800 clamp(2rem, 1.2rem + 2vw, 3rem)/1.05 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.nf-picker__note { margin-top: 20px; color: var(--muted); font-size: var(--step-small); max-width: 40ch; }
@media (max-width: 900px) {
  .nf-picker { min-height: 0; display: flex; padding: 72px 0; }
  .nf-picker__panel, .nf-picker__names { display: contents; }
  .nf-picker__names .nf-h2 { order: 1; padding-inline: var(--margin); color: var(--ink); }
  .nf-picker__stage { order: 2; position: relative; inset: auto; height: 96vw; }
  .nf-picker__disc { left: 50%; top: 50%; width: 78vw; height: 78vw; min-width: 0; min-height: 0; }
  .nf-picker__device { left: 50%; top: 50%; width: 30vw; height: 60vw; }
  .nf-picker__list { order: 3; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 4px var(--margin) 8px; }
  .nf-picker__list button { font-size: var(--step-lead); white-space: nowrap; gap: 10px; }
  .nf-picker__fact { order: 4; padding: 24px var(--margin) 0; }
}

/* ---------- How it works: tiles that grow ---------- */
.nf-steps__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 10px; align-items: end; }
.nf-steps__head { grid-column: 1 / 8; grid-row: 1; align-self: start; padding-right: 10%; }
.nf-steps__head p { margin-top: 24px; color: var(--muted); max-width: 40ch; }
.nf-step { grid-row: 2; }
.nf-step--1 { grid-column: 1 / 4; }
.nf-step--2 { grid-column: 4 / 8; }
.nf-step--3 { grid-column: 8 / 13; grid-row: 1 / 3; }
.nf-step__tile { display: flex; align-items: flex-end; padding: clamp(20px, 2.2vw, 32px); overflow: hidden; }
.nf-step__tile h3 { margin: 0 !important; font: 800 var(--step-lead)/1.15 var(--font-display) !important; letter-spacing: -0.02em; max-width: 14ch; }
.nf-step--1 .nf-step__tile { height: 30vh; min-height: 220px; background: var(--surface-2); }
.nf-step--2 .nf-step__tile { height: 44vh; min-height: 300px; background: var(--surface-3); }
.nf-step--3 .nf-step__tile { height: 60vh; min-height: 400px; background: var(--accent); }
.nf-step--1 .nf-step__tile, .nf-step--2 .nf-step__tile { color: var(--ink); }
.nf-step > h3 { margin-top: 24px; font: 700 var(--step-body)/1.3 var(--font-text); letter-spacing: -0.01em; }
.nf-step p { margin-top: 20px; color: var(--muted); max-width: 36ch; }
@media (max-width: 900px) {
  .nf-steps__grid { display: block; }
  .nf-steps__head { padding: 0; margin-bottom: 40px; }
  .nf-step + .nf-step { margin-top: 40px; }
  .nf-step--1 .nf-step__tile { height: 44vw; min-height: 0; }
  .nf-step--2 .nf-step__tile { height: 60vw; min-height: 0; }
  .nf-step--3 .nf-step__tile { height: 80vw; min-height: 0; }
}

/* ---------- List: where we work ---------- */
.nf-fields__cat + .nf-fields__cat { margin-top: 96px; }
.nf-fields__title { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.nf-fields__title .nf-small { color: var(--muted); }
.nf-fields__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 64px; }
.nf-item { display: grid; grid-template-columns: 10px 1fr; gap: 20px; align-items: start; }
.nf-item__dot { width: 10px; height: 10px; margin-top: 0.55em; background: var(--accent-light); }
.nf-item__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.nf-item h3 { font: 700 var(--step-body)/1.35 var(--font-text); letter-spacing: -0.01em; }
.nf-item__tag { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.nf-item p { margin-top: 6px; color: var(--muted); max-width: 44ch; }
@media (max-width: 900px) {
  .nf-fields__items { grid-template-columns: 1fr; gap: 32px; }
  .nf-item { gap: 16px; }
  .nf-fields__cat + .nf-fields__cat { margin-top: 72px; }
}

/* ---------- About: inset paper panel ---------- */
.nf-about { padding-block: 0; }
.nf-about__panel {
  margin-inline: var(--margin); background: var(--paper); color: var(--paper-ink);
  min-height: 0; position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap);
  padding: clamp(40px, 4vw, 64px);
}
.nf-about__statement { grid-column: 1 / 8; grid-row: 1; font: 800 var(--step-head)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.nf-about__map { position: absolute; left: clamp(40px, 4vw, 64px); bottom: clamp(40px, 4vw, 64px); width: 38vw; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.nf-about__map svg { width: 100%; height: 100%; }
.nf-about__map p { position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: var(--bg); color: var(--ink); font-weight: 700; }
.nf-about__map p span { display: block; font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.nf-about__text { grid-column: 8 / 13; grid-row: 1 / 3; display: grid; gap: 56px; align-content: start; padding-top: 4px; }
.nf-about__text h3 { font: 700 var(--step-lead)/1.25 var(--font-text); letter-spacing: -0.015em; }
.nf-about__text p { margin-top: 12px; color: #2a2f37; }
.nf-about__logo { grid-column: 1 / 6; grid-row: 3; width: min(100%, 380px); height: auto; margin-top: 48px; }
@media (max-width: 900px) { .nf-about__logo { width: 260px; margin-top: 32px; } }
.nf-about__facts { grid-column: 1 / 7; grid-row: 2; align-self: end; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 120px; }
.nf-about__facts b { display: block; font: 800 var(--step-head)/1 var(--font-display); letter-spacing: -0.035em; }
.nf-about__facts span { display: block; margin-top: 8px; color: #2a2f37; }
.nf-about .nf-btn .wp-block-button__link, .nf-about a.nf-btn { justify-self: start; }
@media (max-width: 900px) {
  .nf-about__panel { display: block; min-height: 0; padding: 32px 24px 8px; margin-inline: 10px; }
  .nf-about__text { margin-top: 40px; gap: 40px; }
  .nf-about__facts { margin: 40px 0 0; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nf-about__map { position: relative; left: auto; bottom: auto; width: auto; margin: 40px 0 24px; }
}

/* ---------- CTA: the action tile ---------- */
.nf-cta__row { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 12px; margin-inline: calc(-1 * var(--margin)); }
.nf-cta__side { height: 360px; background: var(--surface-2); position: relative; overflow: hidden; }
.nf-cta__side--l { grid-column: 1 / 3; }
.nf-cta__side--r { grid-column: 11 / 13; background: var(--surface-3); }
.nf-cta__main { grid-column: 3 / 11; height: 360px; background: var(--accent); color: var(--accent-ink); padding: 40px clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.nf-cta__main p { max-width: 52ch; }
.nf-cta__main .wp-block-buttons { margin-top: 10px; }
@media (max-width: 900px) {
  .nf-cta__row { grid-template-columns: 1fr 1fr; margin-inline: 0; }
  .nf-cta__main { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 300px; padding: 32px 24px; }
  .nf-cta__side--l, .nf-cta__side--r { grid-column: auto; height: 120px; }
}

/* ---------- Contact: the coupon ---------- */
.nf-coupon {
  margin-inline: 0; background: var(--surface-2);
  display: grid; grid-template-columns: 46fr 54fr; position: relative;
}
.nf-coupon__perf { position: absolute; left: 46%; top: 0; bottom: 0; width: 56px; margin-left: -28px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='18'%3E%3Ccircle cx='4' cy='4' r='3' fill='%230c0d10'/%3E%3C/svg%3E") center 44px / 8px 18px repeat-y;
  -webkit-background-clip: content-box; background-clip: content-box; padding-block: 44px; }
.nf-coupon__perf::before, .nf-coupon__perf::after { content: ""; position: absolute; left: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); }
.nf-coupon__perf::before { top: -28px; }
.nf-coupon__perf::after { bottom: -28px; }
.nf-coupon__info { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }

.nf-coupon__info p { color: var(--muted); max-width: 36ch; }
.nf-coupon__lines { display: grid; gap: 14px; }
.nf-coupon__lines span { display: block; font-size: var(--step-small); color: var(--muted); }
.nf-coupon__lines a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nf-coupon__lines a:hover { color: #fff; text-decoration: underline; } }
.nf-form { padding: clamp(32px, 4vw, 56px); display: grid; gap: 10px; align-content: center; }
.nf-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nf-form input, .nf-form select, .nf-form textarea {
  width: 100%; min-height: 54px; padding: 15px 18px; border: 0; border-radius: 0;
  background: var(--surface-3); color: var(--ink); font: 400 var(--step-body)/1.4 var(--font-text);
  transition: background-color 200ms ease;
}
.nf-form textarea { min-height: 128px; resize: vertical; }
.nf-form select { appearance: none; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23a6adb9'/%3E%3C/svg%3E") no-repeat calc(100% - 20px) 50% / 10px 10px; }
.nf-form ::placeholder { color: var(--muted); opacity: 1; }
.nf-form input:focus, .nf-form select:focus, .nf-form textarea:focus { background-color: #343946; outline: 2px solid var(--accent-light); outline-offset: 0; }
.nf-form button.nf-btn { width: 100%; min-height: 58px; border-radius: 0; margin-top: 6px; }
.nf-form__hint { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) {
  .nf-coupon { grid-template-columns: 1fr; }
  .nf-coupon__perf { position: relative; left: auto; top: auto; bottom: auto; width: auto; height: 8px; margin: 0;
    background-position: 44px center; background-size: 18px 8px; background-repeat: repeat-x; padding: 0 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='8'%3E%3Ccircle cx='4' cy='4' r='3' fill='%230c0d10'/%3E%3C/svg%3E"); }
  .nf-coupon__perf::before, .nf-coupon__perf::after { top: -24px; bottom: auto; }
  .nf-coupon__perf::before { left: -28px; }
  .nf-coupon__perf::after { left: auto; right: -28px; }
  .nf-coupon__info { padding: 32px 24px 40px; }
  .nf-form { padding: 40px 24px 32px; }
}

/* ---------- Footer ---------- */
.nf-footer { background: var(--surface); padding: clamp(96px, 9vw, 160px) var(--margin) 32px; }
.nf-footer__brand { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.nf-footer__brand img { width: min(100%, 560px); height: auto; }
.nf-footer__name { font: 300 var(--step-lead)/1.2 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.nf-footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); margin-top: 56px; }
.nf-footer__col { grid-column: span 2; }
.nf-footer__col--contact { grid-column: 9 / 13; }
.nf-footer__col h2 { font: 700 var(--step-body)/1.4 var(--font-text); color: var(--muted); margin-bottom: 14px; }
.nf-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nf-footer__col a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nf-footer__col a:hover { text-decoration: underline; } }
.nf-footer__col--contact p { line-height: 1.7; }
.nf-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 72px; color: var(--muted); font-size: var(--step-small); }
.nf-footer__base a.nf-btn { min-height: 40px; padding: 0 18px; white-space: nowrap; flex: none; background: var(--surface-3); color: var(--ink); }
@media (max-width: 900px) {
  .nf-footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .nf-footer__col, .nf-footer__col--contact { grid-column: span 1; }
  .nf-footer__col--contact { grid-column: 1 / -1; }
  .nf-footer__base { margin-top: 48px; }
}

/* ---------- Plain pages (Impressum, Datenschutz, Beiträge) ---------- */
.nf-page { padding: clamp(64px, 8vw, 128px) var(--margin) var(--section); }
.nf-page__inner { max-width: 760px; }
.nf-page .wp-block-post-title, .nf-page h1 { font: 800 var(--step-head)/1.04 var(--font-display); letter-spacing: -0.035em; margin-bottom: 48px; }
.nf-page .wp-block-post-content > * + * { margin-top: 1.1em; }
.nf-page .wp-block-post-content h2 { font: 700 var(--step-lead)/1.3 var(--font-text); margin-top: 2.2em; }
.nf-page .wp-block-post-content h3 { font: 700 var(--step-body)/1.3 var(--font-text); margin-top: 1.8em; }
.nf-page .wp-block-post-content a { color: var(--ink); }
.nf-page .wp-block-post-content ul, .nf-page .wp-block-post-content ol { padding-left: 1.2em; }
.nf-404 { min-height: 70svh; display: grid; align-content: center; gap: 28px; }


/* ---------- 1.1: multi-page components ---------- */
.nf-nav a[aria-current="page"] { color: var(--ink); }
.nf-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent-light); margin-right: 8px; transform: translateY(-2px); }

.nf-hero--page { min-height: calc(86svh - 76px); }
.nf-hero--page .nf-display { font-size: clamp(3rem, 1.2rem + 5.4vw, 6.75rem); }
@media (max-width: 900px) { .nf-hero--page { min-height: 0; } }

.nf-point h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nf-point h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent-light); } }
.nf-point__more { display: inline-block; margin-top: 16px; margin-left: calc(0.62em + 12px); color: var(--ink); }
@media (max-width: 900px) { .nf-point__more { margin-left: 0; } }

.nf-intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); }
.nf-intro__grid > .nf-h2 { grid-column: 1 / 7; padding-right: 4%; }
.nf-intro__text { grid-column: 8 / 13; display: grid; gap: 24px; align-content: start; }
.nf-intro__text p { max-width: 58ch; }
.nf-intro__text p:not(.nf-lead) { color: var(--muted); }
.nf-intro__facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-top: 24px; padding-top: 32px; }
.nf-intro__facts b { display: block; font: 800 var(--step-head)/1 var(--font-display); letter-spacing: -0.035em; color: var(--accent-light); }
.nf-intro__facts span { display: block; margin-top: 10px; color: var(--muted); max-width: 26ch; }
@media (max-width: 900px) {
  .nf-intro__grid { display: block; }
  .nf-intro__text { margin-top: 32px; }
}

.nf-scope { background: var(--surface); }
.nf-scope__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); }
.nf-scope__head { grid-column: 1 / 6; align-self: start; position: sticky; top: 120px; }
.nf-scope__head p { margin-top: 20px; color: var(--muted); max-width: 32ch; }
.nf-scope__list { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.nf-scope__list li { background: var(--surface-2); padding: clamp(24px, 2.6vw, 36px); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.nf-scope__list h3 { font: 800 var(--step-lead)/1.2 var(--font-display); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; }
.nf-scope__list h3::before { content: ""; flex: none; width: 0.38em; height: 0.38em; background: var(--accent-light); }
.nf-scope__list p { color: var(--muted); }
@media (max-width: 900px) {
  .nf-scope__grid { display: block; }
  .nf-scope__head { position: static; margin-bottom: 32px; }
  .nf-scope__list { grid-template-columns: 1fr; }
  .nf-scope__list li { min-height: 0; }
}

.nf-faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); }
.nf-faq__grid > .nf-h2 { grid-column: 1 / 5; align-self: start; }
.nf-faq__list { grid-column: 6 / 13; display: grid; gap: 8px; }
.nf-faq details { background: var(--surface); }
.nf-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px clamp(20px, 2.4vw, 32px); font: 700 var(--step-body)/1.4 var(--font-text);
  transition: background-color 200ms ease;
}
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--font-text); color: var(--muted); transition: transform 300ms var(--ease-out), color 200ms ease; }
.nf-faq details[open] summary::after { color: var(--accent-light); transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .nf-faq summary:hover { background: var(--surface-2); } }
.nf-faq summary:focus-visible { outline-offset: -3px; }
.nf-faq__a { padding: 0 clamp(20px, 2.4vw, 32px) 28px; display: grid; gap: 12px; color: var(--muted); max-width: 68ch; }
@media (max-width: 900px) {
  .nf-faq__grid { display: block; }
  .nf-faq__list { margin-top: 32px; }
}

.nf-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 10px; }
.nf-cta__actions .nf-link { color: var(--accent-ink); }
.nf-form__hint .nf-link { color: var(--ink); }

/* ---------- Motion ---------- */
.nf-js [data-rise] { opacity: 0; transform: translateY(24px); }
.nf-js [data-rise].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.nf-js .nf-hero__panel { opacity: 0; transform: translateY(16px); }
.nf-js.is-ready .nf-hero__panel { opacity: 1; transform: none; transition: opacity 800ms ease 200ms, transform 1000ms var(--ease-out) 200ms; }
.nf-field__b--drift { animation: nf-drift 22s var(--ease-in-out) infinite alternate; }
@keyframes nf-drift { from { transform: translate(0, 0); } to { transform: translate(-90px, 60px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nf-js [data-rise] { opacity: 1; transform: none; }
  .nf-js [data-rise].is-in { transition: opacity 300ms ease; }
  .nf-js .nf-hero__panel, .nf-js.is-ready .nf-hero__panel { transition: none; opacity: 1; transform: none; }
  .nf-js .nf-spectrum__track i { transform: none; }
  .nf-field__b--drift { animation: none; }
  .nf-picker__disc { transition: none; }
}

/* Narrow phones: keep wordmark, contact button and menu inside the frame */
@media (max-width: 420px) {
  .nf-header__bar { gap: 8px; }
  .nf-wordmark { font-size: 15px; gap: 8px; }
  .nf-wordmark__mark { width: 22px; height: 22px; }
  .nf-wordmark__mark::after { inset: 6px; }
  .nf-wordmark__mark::before { inset: 9px; }
  .nf-header .nf-btn { min-height: 40px; padding: 0 14px; }
  .nf-header .nf-btn::after { display: none; }
  .nf-menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 480px) { .nf-about__statement { font-size: 1.625rem; } }

/* 1.5: seven navigation entries need a tighter rhythm on mid-size screens */
@media (max-width: 1240px) and (min-width: 901px) {
  .nf-header__bar { gap: 20px; }
  .nf-nav { gap: 18px; }
  .nf-nav a { font-size: 15px; }
}

/* =====================================================================
   Shop (WooCommerce classic templates inside the NetFusion frame)
   ===================================================================== */
.nf-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); text-decoration: none; flex: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nf-cart:hover { color: var(--ink); } }
.nf-cart__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--font-text); text-align: center; }
.nf-cart__count[hidden] { display: none; }
@media (max-width: 900px) { .nf-header .nf-cart { margin-left: auto; } .nf-header .nf-cart + .nf-btn { margin-left: 0; } }
@media (max-width: 420px) { .nf-header .nf-btn { padding: 0 14px; } }

.nf-shop { padding: clamp(40px, 5vw, 72px) var(--margin) var(--section); max-width: 1440px; margin-inline: auto; }
.nf-shophead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--surface-3); }
.nf-shophead__eyebrow { display: flex; align-items: center; gap: 10px; font: 700 var(--step-small)/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.nf-shophead__eyebrow span { width: 8px; height: 8px; background: var(--accent); }
.nf-shophead__trust { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: var(--step-small); color: var(--muted); }
.nf-shophead__trust b { display: block; color: var(--ink); font-weight: 700; }
.nf-shophead__trust a { color: var(--muted); }
.nf-shopnav { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 8px; scrollbar-width: none; }
.nf-shopnav::-webkit-scrollbar { display: none; }
.nf-shopnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--surface-3); color: var(--muted); font-weight: 600; font-size: var(--step-small); text-decoration: none; white-space: nowrap; transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease; }
.nf-shopnav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
@media (hover: hover) and (pointer: fine) { .nf-shopnav a:hover { color: var(--ink); border-color: var(--muted); } }
.nf-shop--single .nf-shopnav { display: none; }

/* Woo wrappers */
.nf-shop .woocommerce, .nf-shop .wp-block-woocommerce-legacy-template { max-width: none; margin: 0; padding: 0; }
.nf-shop .woocommerce-breadcrumb, .nf-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; font-size: var(--step-small); color: var(--muted); }
.nf-shop .woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.nf-shop .woocommerce-breadcrumb a:hover { color: var(--ink); }
.nf-shop .woocommerce-products-header { margin: 20px 0 8px; }
.nf-shop .woocommerce-products-header__title, .nf-shop .page-title { font: 800 var(--step-head)/1.02 var(--font-display); letter-spacing: -0.035em; margin: 0; }
.nf-shop .term-description, .nf-shop .page-description { max-width: 46em; margin-top: 12px; color: var(--muted); font-size: var(--step-lead); line-height: 1.45; }
.nf-shop .term-description p + p { margin-top: 0.6em; }
.nf-shop .woocommerce-result-count { float: none; margin: 28px 0 0; font-size: var(--step-small); color: var(--muted); }
.nf-shop .woocommerce-ordering { float: none; margin: 16px 0 24px; }
@media (min-width: 700px) {
  .nf-shop--archive .woocommerce-result-count { display: inline-block; margin: 32px 0 24px; }
  .nf-shop--archive .woocommerce-ordering { float: right; margin: 22px 0 24px; }
}
.nf-shop select, .nf-shop input[type="text"], .nf-shop input[type="number"], .nf-shop input[type="email"], .nf-shop input[type="search"], .nf-shop textarea {
  background: var(--surface); color: var(--ink); border: 1px solid var(--surface-3); border-radius: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: var(--step-small);
}
.nf-shop select:focus, .nf-shop input:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }

/* Product grid */
.nf-shop ul.products { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.nf-shop ul.products::before, .nf-shop ul.products::after { display: none !important; }
.nf-shop ul.products li.product { position: relative; float: none !important; width: auto !important; margin: 0 !important; padding: 0 0 20px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--surface-3); text-align: left; transition: border-color 220ms ease, transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nf-shop ul.products li.product:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--surface-3)); transform: translateY(-2px); } }
.nf-shop ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.nf-shop ul.products li.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); margin: 0 0 18px !important; padding: 18px; border-bottom: 1px solid var(--surface-3); box-sizing: border-box; }
.nf-shop ul.products li.product .woocommerce-loop-product__title, .nf-shop ul.products li.product h2, .nf-shop ul.products li.product h3 { padding: 0 20px !important; margin: 0 0 8px; font: 800 1.125rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.nf-shop ul.products li.product .price { display: block; padding: 0 20px; margin: auto 0 16px; color: var(--ink); font: 800 1.125rem/1.2 var(--font-text); }
.nf-shop ul.products li.product .price del { color: var(--muted); font-weight: 300; margin-right: 6px; }
.nf-shop ul.products li.product .price ins { text-decoration: none; }
.nf-shop ul.products li.product .wc-gzd-additional-info, .nf-shop ul.products li.product .price-unit, .nf-shop ul.products li.product .delivery-time, .nf-shop ul.products li.product .tax-info, .nf-shop ul.products li.product .shipping-costs-info { display: block; padding: 0 20px; margin: -10px 0 14px; font-size: 0.8125rem; color: var(--muted); }
.nf-shop ul.products li.product .button, .nf-shop ul.products li.product .added_to_cart { margin: 0 20px; }
.nf-shop ul.products li.product .added_to_cart { display: inline-block; margin-top: 10px; font-size: var(--step-small); color: var(--accent-light); }
.nf-shop .onsale { position: absolute; top: 14px; left: 14px; right: auto; z-index: 2; min-width: 0; min-height: 0; margin: 0; padding: 4px 10px; border-radius: 0; background: var(--accent); color: var(--accent-ink); font: 700 12px/1.4 var(--font-text); }
.nf-ad { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 3px 9px; border: 1px solid var(--surface-3); background: var(--bg); color: var(--muted); font: 600 11px/1.4 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; }
.nf-affiliate-note .nf-ad { position: static; display: inline-block; margin-right: 8px; vertical-align: 1px; }

/* Buttons (Woo) */
.nf-shop .button, .nf-shop button.button, .nf-shop a.button, .nf-shop input.button, .nf-shop .single_add_to_cart_button, .woocommerce .nf-shop #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 0;
  background: var(--accent) !important; color: var(--accent-ink) !important; font: 700 var(--step-small)/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.nf-shop .button::after, .nf-shop .single_add_to_cart_button::after { content: "→"; font-weight: 400; transition: transform 200ms var(--ease-out); }
.nf-shop .product_type_external::after, .nf-shop .product-type-external .single_add_to_cart_button::after { content: "↗"; }
.nf-shop .button:active, .nf-shop .single_add_to_cart_button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nf-shop .button:hover, .nf-shop .single_add_to_cart_button:hover { background: var(--accent-light) !important; }
  .nf-shop .button:hover::after, .nf-shop .single_add_to_cart_button:hover::after { transform: translateX(3px); }
}
.nf-shop .product_type_external, .nf-shop .product-type-external .single_add_to_cart_button { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--muted); }
@media (hover: hover) and (pointer: fine) { .nf-shop .product_type_external:hover, .nf-shop .product-type-external .single_add_to_cart_button:hover { background: var(--surface-2) !important; box-shadow: inset 0 0 0 1px var(--ink); } }
.nf-shop .button.loading { opacity: 0.6; }
.nf-shop .button.added::after { content: "✓"; }

/* Pagination */
.nf-shop .woocommerce-pagination { margin-top: 48px; }
.nf-shop .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; border: 0 !important; margin: 0; padding: 0; list-style: none; }
.nf-shop .woocommerce-pagination ul.page-numbers li { border: 0 !important; float: none; }
.nf-shop .woocommerce-pagination .page-numbers a, .nf-shop .woocommerce-pagination .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--surface-3); color: var(--muted); text-decoration: none; background: transparent; }
.nf-shop .woocommerce-pagination .page-numbers span.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nf-shop .woocommerce-info, .nf-shop .woocommerce-message, .nf-shop .woocommerce-error, .nf-shop .woocommerce-no-products-found .woocommerce-info { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--surface-3); border-left: 0; border-top: 2px solid var(--accent); background: var(--surface); color: var(--ink); list-style: none; }
.nf-shop .woocommerce-info::before, .nf-shop .woocommerce-message::before, .nf-shop .woocommerce-error::before { display: none; }
.nf-shop .woocommerce-message .button, .nf-shop .woocommerce-info .button { float: right; min-height: 40px; margin-left: 16px; }

/* Single product */
.nf-shop div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); margin-top: 28px; }
@media (min-width: 960px) { .nf-shop div.product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.nf-shop div.product div.images, .nf-shop div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.nf-shop div.product div.images { background: var(--surface); border: 1px solid var(--surface-3); padding: clamp(16px, 3vw, 40px); align-self: start; }
@media (min-width: 960px) { .nf-shop div.product div.images { position: sticky; top: 110px; } }
.nf-shop div.product div.images img { background: transparent; }
.nf-shop div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; }
.nf-shop div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.nf-shop div.product div.images .flex-control-thumbs img { border: 1px solid var(--surface-3); opacity: 0.6; }
.nf-shop div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--accent); }
.nf-shop div.product .woocommerce-product-gallery__trigger { background: var(--bg); border-radius: 0; }
.nf-shop div.product .product_title { font: 800 clamp(2rem, 1.3rem + 2.2vw, 3.25rem)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 18px; }
.nf-shop div.product .summary > .price, .nf-shop div.product p.price, .nf-shop div.product span.price { color: var(--ink) !important; font: 800 1.75rem/1.2 var(--font-text); margin: 0 0 6px; }
.nf-shop div.product .woocommerce-product-details__short-description { margin: 22px 0; color: var(--muted); font-size: var(--step-lead); line-height: 1.5; }
.nf-shop div.product .woocommerce-product-details__short-description ul { padding-left: 1.1em; }
.nf-shop div.product .summary .wc-gzd-additional-info, .nf-shop div.product .summary .legal-price-info, .nf-shop div.product .summary .delivery-time-info { font-size: var(--step-small); color: var(--muted); margin: 0; }
.nf-shop div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 28px 0 !important; padding: 24px 0; border-top: 1px solid var(--surface-3); border-bottom: 1px solid var(--surface-3); }
.nf-shop div.product form.cart::before, .nf-shop div.product form.cart::after { display: none; }
.nf-shop div.product form.cart .quantity { float: none; margin: 0 !important; }
.nf-shop div.product form.cart .quantity input.qty { width: 84px; min-height: 52px; text-align: center; font-size: var(--step-body); }
.nf-shop div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 52px; font-size: var(--step-body); float: none; }
.nf-shop div.product form.cart table.variations { width: 100%; margin-bottom: 8px; border-collapse: collapse; }
.nf-shop div.product form.cart table.variations th, .nf-shop div.product form.cart table.variations td { padding: 8px 0; text-align: left; vertical-align: middle; }
.nf-shop div.product form.cart .reset_variations { color: var(--muted); font-size: var(--step-small); margin-left: 10px; }
.nf-shop div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.nf-shop div.product .stock { font-size: var(--step-small); font-weight: 700; color: var(--accent-light); }
.nf-shop div.product .stock.out-of-stock { color: var(--muted); }
.nf-shop div.product .product_meta { display: flex; flex-direction: column; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.nf-shop div.product .product_meta a { color: var(--muted); }
.nf-affiliate-note { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--surface-3); background: var(--surface); font-size: var(--step-small); color: var(--muted); line-height: 1.55; }

/* Tabs */
.nf-shop div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 24px; }
.nf-shop div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 0; padding: 0 !important; border-bottom: 1px solid var(--surface-3); list-style: none; overflow: visible; }
.nf-shop div.product .woocommerce-tabs ul.tabs::before, .nf-shop div.product .woocommerce-tabs ul.tabs::after, .nf-shop div.product .woocommerce-tabs ul.tabs li::before, .nf-shop div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.nf-shop div.product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
.nf-shop div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 18px !important; color: var(--muted) !important; font-weight: 700 !important; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nf-shop div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; border-bottom-color: var(--accent); }
.nf-shop div.product .woocommerce-tabs .panel { margin: 0; padding: 32px 0 0; max-width: 820px; }
.nf-shop div.product .woocommerce-tabs .panel > h2:first-child { font: 800 var(--step-lead)/1.2 var(--font-display); margin-bottom: 16px; }
.nf-shop div.product .woocommerce-tabs .panel p + p { margin-top: 0.9em; }
.nf-shop table.shop_attributes { width: 100%; border: 0; border-top: 1px solid var(--surface-3); border-collapse: collapse; }
.nf-shop table.shop_attributes th, .nf-shop table.shop_attributes td { padding: 12px 0; border-bottom: 1px solid var(--surface-3) !important; border-top: 0; background: none !important; text-align: left; font-style: normal; vertical-align: top; }
.nf-shop table.shop_attributes th { width: 34%; color: var(--muted); font-weight: 300; }
.nf-shop table.shop_attributes td p { margin: 0; padding: 0; }
.nf-shop .related, .nf-shop .upsells { grid-column: 1 / -1; margin-top: 56px; }
.nf-shop .related > h2, .nf-shop .upsells > h2 { font: 800 var(--step-head)/1.05 var(--font-display); letter-spacing: -0.03em; margin-bottom: 28px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.nf-shop .star-rating { color: var(--accent-light); }

/* Cart & checkout pages (Woo blocks) */
.nf-page--wide { max-width: 1440px; margin-inline: auto; }
.nf-page--wide .wp-block-post-title { margin-bottom: 40px; }
.nf-page--wide .wp-block-post-content > * { max-width: none; }
.wc-block-cart, .wc-block-checkout { color: var(--ink); }
.wc-block-components-sidebar, .wc-block-checkout__sidebar { background: var(--surface); border: 1px solid var(--surface-3); padding: 24px !important; }
.wc-block-components-totals-wrapper { border-color: var(--surface-3) !important; }
.wc-block-cart-items, .wc-block-cart-items th, .wc-block-cart-items td { border-color: var(--surface-3) !important; }
.wc-block-components-product-name { color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.wc-block-components-product-metadata, .wc-block-components-formatted-money-amount + .wc-block-components-product-price__regular { color: var(--muted); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  min-height: 52px; border-radius: 0 !important; background: var(--accent) !important; color: var(--accent-ink) !important; font: 700 var(--step-body)/1 var(--font-text) !important; border: 0 !important; text-decoration: none !important;
}
@media (hover: hover) and (pointer: fine) { .wc-block-components-button:not(.is-link):hover { background: var(--accent-light) !important; } }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-quantity-selector {
  background: var(--surface) !important; color: var(--ink) !important; border-color: var(--surface-3) !important; border-radius: 0 !important;
}
.wc-block-components-text-input label, .wc-block-components-combobox label, .wc-blocks-components-select__label { color: var(--muted) !important; }
.wc-block-components-quantity-selector__button { color: var(--ink) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option, .wc-block-checkout__shipping-method-option { border-color: var(--surface-3) !important; border-radius: 0 !important; }
.wc-block-components-radio-control__input, .wc-block-components-checkbox__input[type="checkbox"] { background: var(--surface) !important; border-color: var(--muted) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--accent) !important; }
.wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--accent) !important; border-color: var(--accent) !important; }
.wc-block-components-checkbox__mark { fill: #fff !important; }
.wc-block-components-notice-banner { border-radius: 0 !important; background: var(--surface) !important; color: var(--ink) !important; border-color: var(--accent) !important; }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--font-display) !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.wc-block-components-checkout-step__description, .wc-block-components-checkout-step__heading-content { color: var(--muted); }
.wc-block-cart__empty-cart__title, .wp-block-woocommerce-empty-cart-block h2 { font-family: var(--font-display); font-weight: 800; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products, .wp-block-woocommerce-empty-cart-block .wp-block-product-new { display: none; }
.nf-page a.wc-block-components-product-name { color: var(--ink); }
.nf-page--wide .wp-block-separator { border-color: var(--surface-3); }

/* My account (classic) */
.woocommerce-account .nf-page__inner { max-width: 1100px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--surface-3); color: var(--muted) !important; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--ink) !important; border-color: var(--accent); }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-account .nf-page input.input-text { background: var(--surface); color: var(--ink); border: 1px solid var(--surface-3); min-height: 48px; padding: 0 12px; width: 100%; }
.woocommerce-account .nf-page .button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.nf-soon { display: flex; flex-direction: column; gap: 28px; min-height: 70svh; justify-content: center; }
.nf-soon .nf-display { max-width: 14ch; }
.nf-soon .nf-lead { max-width: 36em; }
/* shop fixes 1.7.1 */
.nf-shop a.button.product_type_external, .nf-shop .product-type-external button.single_add_to_cart_button { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--muted); }
@media (hover: hover) and (pointer: fine) { .nf-shop a.button.product_type_external:hover, .nf-shop .product-type-external button.single_add_to_cart_button:hover { background: var(--surface-2) !important; box-shadow: inset 0 0 0 1px var(--ink); } }
.nf-shop img.woocommerce-placeholder { filter: invert(1) brightness(0.55) contrast(0.6); opacity: 0.35; }
.nf-shop .product-type-external .small-business-info, .nf-shop .product-type-external .wc-gzd-additional-info, .nf-shop.nf-shop--single .product-type-external .legal-price-info { display: none !important; }
