/* ==========================================================================
   NEXUS theme – base, header, footer, start page, content
   Fonts: system fonts only (SF Pro on Apple devices) – nothing is loaded
   from external servers.
   ========================================================================== */

:root {
	--nx-bg: #ffffff;
	--nx-surface: #ffffff;
	--nx-surface-2: #f5f5f7;
	--nx-surface-3: #e8e8ed;
	--nx-text: #1d1d1f;
	--nx-muted: #6e6e73;
	--nx-line: #d2d2d7;
	--nx-accent: #0071e3;
	--nx-accent-hover: #0077ed;
	--nx-link: #0066cc;
	--nx-on-accent: #ffffff;
	--nx-btn: #0071e3;
	--nx-btn-hover: #0062c4;
	--nx-success: #1a7f37;
	--nx-warning: #b25000;
	--nx-danger: #d70015;
	--nx-tile-dark: #1d1d1f;
	--nx-tile-dark-text: #f5f5f7;
	--nx-nav-bg: rgba(251, 251, 253, .78);
	--nx-hot: #ff6a1a;
	--nx-radius: 18px;
	--nx-radius-sm: 12px;
	--nx-radius-lg: 28px;
	--nx-shadow: none;
	--nx-max: 1080px;
	--nx-wide: 1360px;
	--nx-gutter: clamp(16px, 4vw, 22px);
	--nx-header-h: 52px;
	--nx-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
	--nx-ease: cubic-bezier(.28, .11, .32, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--nx-bg: #000000;
		--nx-surface: #1d1d1f;
		--nx-surface-2: #161617;
		--nx-surface-3: #2c2c2e;
		--nx-text: #f5f5f7;
		--nx-muted: #a1a1a6;
		--nx-line: #424245;
		--nx-accent: #2997ff;
		--nx-accent-hover: #47a6ff;
		--nx-link: #2997ff;
		--nx-success: #30d158;
		--nx-warning: #ff9f0a;
		--nx-danger: #ff453a;
		--nx-tile-dark: #272729;
		--nx-tile-dark-text: #f5f5f7;
		--nx-nav-bg: rgba(22, 22, 23, .78);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--nx-bg: #000000;
	--nx-surface: #1d1d1f;
	--nx-surface-2: #161617;
	--nx-surface-3: #2c2c2e;
	--nx-text: #f5f5f7;
	--nx-muted: #a1a1a6;
	--nx-line: #424245;
	--nx-accent: #2997ff;
	--nx-accent-hover: #47a6ff;
	--nx-link: #2997ff;
	--nx-success: #30d158;
	--nx-warning: #ff9f0a;
	--nx-danger: #ff453a;
	--nx-tile-dark: #272729;
	--nx-tile-dark-text: #f5f5f7;
	--nx-nav-bg: rgba(22, 22, 23, .78);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nx-header-h) + 16px); }
body {
	margin: 0;
	background: var(--nx-bg);
	color: var(--nx-text);
	font-family: var(--nx-font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -.022em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--nx-link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--nx-accent) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--nx-accent) 25%, transparent); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--nx-line); margin: 2.5rem 0; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nx-skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: var(--nx-text); color: var(--nx-bg); border-radius: 10px; white-space: normal;
}
.nx-main { display: block; min-height: 60vh; outline: 0; }

/* Shared buttons (also used by the plugin). :where() keeps the specificity
   at zero so the plugin's button variants (secondary, small …) win. */
:where(.nx-btn) {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px; padding: .62em 1.3em;
	border: 0; border-radius: 980px; background: var(--nx-btn); color: var(--nx-on-accent);
	font-size: 17px; font-weight: 400; line-height: 1.18; letter-spacing: -.01em;
	text-decoration: none; cursor: pointer; transition: background-color .2s ease;
}
:where(.nx-btn):hover { background: var(--nx-btn-hover); text-decoration: none; }
.nx-textlink { display: inline-flex; align-items: center; gap: .15em; font-size: 17px; color: var(--nx-link); }
.nx-textlink .nx-icon { transition: transform .2s ease; }
.nx-textlink:hover .nx-icon { transform: translateX(2px); }

.nx-iconbtn {
	position: relative; display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--nx-text); cursor: pointer; text-decoration: none !important;
	transition: background-color .2s ease, opacity .2s ease;
	opacity: .88;
}
.nx-iconbtn:hover { opacity: 1; background: color-mix(in srgb, var(--nx-text) 7%, transparent); }

/* ---------- Header ---------- */
.nx-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--nx-nav-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease;
}
.admin-bar .nx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nx-header { top: 46px; } }
.nx-header.is-scrolled { border-bottom-color: color-mix(in srgb, var(--nx-line) 70%, transparent); }
.nx-header__bar {
	display: flex; align-items: center; gap: 12px;
	max-width: var(--nx-max); height: var(--nx-header-h);
	margin: 0 auto; padding: 0 var(--nx-gutter);
}
.nx-header__brand { flex: 0 0 auto; display: flex; align-items: center; }
.nx-header__brand img { max-height: 32px; width: auto; }
.nx-wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--nx-text) !important; text-decoration: none !important; }
.nx-wordmark__name { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.nx-wordmark__suffix { font-size: 13px; font-weight: 500; color: var(--nx-muted); letter-spacing: -.01em; padding-top: 2px; }

.nx-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nx-nav__list { display: flex; gap: clamp(14px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nx-nav__list a {
	display: block; padding: 6px 2px; white-space: nowrap;
	font-size: 13px; color: color-mix(in srgb, var(--nx-text) 82%, transparent);
	text-decoration: none !important; transition: color .2s ease;
}
.nx-nav__list a:hover, .nx-nav__list .current-menu-item > a, .nx-nav__list .current-menu-ancestor > a { color: var(--nx-text); }
.nx-nav__extras { display: none; }
.nx-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nx-header__lang { margin: 0 6px; display: inline-flex; }
.nx-menu-toggle { display: none; }

.nx-cart-count {
	position: absolute; right: 2px; bottom: 4px;
	min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
	background: var(--nx-text); color: var(--nx-bg);
	font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; letter-spacing: 0;
}
.nx-cart-count.is-empty { display: none; }

/* Theme toggle: moon in light mode, sun in dark mode */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .nx-theme-toggle .nx-theme-toggle__sun { display: inline-grid; }
	:root:not([data-theme="light"]) .nx-theme-toggle .nx-theme-toggle__moon { display: none; }
}
:root[data-theme="dark"] .nx-theme-toggle .nx-theme-toggle__sun { display: inline-grid; }
:root[data-theme="dark"] .nx-theme-toggle .nx-theme-toggle__moon { display: none; }
.nx-theme-toggle .nx-theme-toggle__moon { display: inline-grid; place-items: center; }
.nx-theme-toggle .nx-theme-toggle__sun { display: none; place-items: center; }

/* Language slider DE/EN */
.nx-lang { display: inline-flex; align-items: center; }
.nx-lang__switch {
	position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
	width: 66px; height: 28px; padding: 2px; border: 0; border-radius: 980px;
	background: color-mix(in srgb, var(--nx-text) 9%, transparent);
	cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.nx-lang__opt { position: relative; z-index: 1; text-align: center; color: var(--nx-muted); transition: color .25s ease; }
.nx-lang__knob {
	position: absolute; top: 2px; left: 2px; width: calc(50% - 2px); height: calc(100% - 4px);
	border-radius: 980px; background: var(--nx-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .04);
	transition: transform .32s var(--nx-ease);
}
.nx-lang__switch[aria-checked="false"] .nx-lang__opt--de,
.nx-lang__switch[aria-checked="true"] .nx-lang__opt--en { color: var(--nx-text); }
.nx-lang__switch[aria-checked="true"] .nx-lang__knob { transform: translateX(100%); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .nx-lang__knob { background: #636366; }
}
:root[data-theme="dark"] .nx-lang__knob { background: #636366; }

/* Search panel */
.nx-search { border-top: 1px solid var(--nx-line); background: var(--nx-bg); }
.nx-search__inner { max-width: 720px; margin: 0 auto; padding: 28px var(--nx-gutter) 36px; }
.nx-search__form { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--nx-line); color: var(--nx-muted); }
.nx-search__form input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: clamp(20px, 3vw, 24px); font-weight: 600; color: var(--nx-text); outline: 0; padding: 6px 0; }
.nx-search__form input::-webkit-search-cancel-button { display: none; }
.nx-search__label { margin: 22px 0 8px; font-size: 12px; color: var(--nx-muted); }
.nx-search__quick { list-style: none; margin: 0; padding: 0; }
.nx-search__quick a { display: block; padding: 6px 0; font-size: 15px; color: var(--nx-text); }
.nx-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

@media (max-width: 1060px) {
	.nx-menu-toggle { display: inline-grid; }
	.nx-hide-mobile { display: none !important; }
	.nx-nav {
		position: fixed; inset: var(--nx-header-h) 0 0 0; z-index: 99;
		display: block; padding: 24px 40px 40px;
		background: var(--nx-bg); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s ease, transform .3s var(--nx-ease), visibility 0s linear .3s;
	}
	.admin-bar .nx-nav { top: calc(var(--nx-header-h) + 46px); }
	.nx-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s var(--nx-ease); }
	.nx-nav__list { flex-direction: column; gap: 0; }
	.nx-nav__list a { font-size: 28px; font-weight: 600; letter-spacing: -.02em; padding: 8px 0; color: var(--nx-text); }
	.nx-nav__extras { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nx-line); }
	.nx-nav__account { font-size: 17px; }
	.nx-menu-toggle__lines { position: relative; width: 18px; height: 12px; display: block; }
	.nx-menu-toggle__lines span { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--nx-ease), top .3s var(--nx-ease); }
	.nx-menu-toggle__lines span:first-child { top: 2px; }
	.nx-menu-toggle__lines span:last-child { top: 9px; }
	.nx-menu-toggle[aria-expanded="true"] .nx-menu-toggle__lines span:first-child { top: 5.5px; transform: rotate(45deg); }
	.nx-menu-toggle[aria-expanded="true"] .nx-menu-toggle__lines span:last-child { top: 5.5px; transform: rotate(-45deg); }
	body.nx-menu-open { overflow: hidden; }
	/* backdrop-filter would turn the header into the containing block of the fixed menu */
	body.nx-menu-open .nx-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--nx-bg); }
}
@media (min-width: 1061px) { .nx-nav__extras .nx-lang { display: none; } }

/* ---------- Start page: hero ---------- */
.nx-hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 9vw, 96px) var(--nx-gutter) 0;
	background: var(--nx-surface-2);
	text-align: center;
}
.nx-hero__text { max-width: 820px; margin: 0 auto; position: relative; z-index: 2; }
.nx-hero__brand { margin: 0 0 6px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -.01em; color: var(--nx-muted); }
.nx-hero__title { margin: 0; font-size: clamp(48px, 9vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.nx-hero__lead { max-width: 30ch; margin: 18px auto 0; font-size: clamp(19px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -.015em; color: var(--nx-text); }
.nx-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin: 30px 0 0; }

.nx-hero__stage { width: min(560px, 92vw); margin: clamp(24px, 4vw, 44px) auto 0; }
.nx-print { display: block; width: 100%; height: auto; overflow: visible; }
.nx-print__layer { fill: url(#nx-filament); stroke: #1f5d93; stroke-opacity: .2; stroke-width: 1.2; }
.nx-print__rim { fill: #1f5d93; opacity: .45; }
.nx-print__rail { fill: color-mix(in srgb, var(--nx-text) 22%, transparent); }
.nx-print__carriage { fill: var(--nx-text); }
.nx-print__nozzle { fill: color-mix(in srgb, var(--nx-text) 70%, var(--nx-hot)); }
.nx-print__glow { fill: var(--nx-hot); filter: drop-shadow(0 0 6px var(--nx-hot)) drop-shadow(0 0 14px var(--nx-hot)); }
.nx-print__head { transform: translateY(70px); opacity: 0; }

/* The one orchestrated moment: the vase is printed layer by layer. */
.js .nx-print__layer { opacity: 0; animation: nx-layer .32s ease-out forwards; animation-delay: calc(var(--i) * 34ms + 250ms); }
.js .nx-print__rim { opacity: 0; animation: nx-rim .4s ease forwards; animation-delay: calc(59 * 34ms + 250ms); }
.js .nx-print__head { animation: nx-head calc(59 * 34ms) linear .25s both, nx-head-out .6s ease calc(59 * 34ms + 350ms) forwards; }
.js .nx-print__shadow { opacity: 0; animation: nx-rim .8s ease .25s forwards; }
@keyframes nx-layer { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes nx-rim { to { opacity: .45; } }
@keyframes nx-head { from { transform: translateY(585px); opacity: 1; } to { transform: translateY(62px); opacity: 1; } }
@keyframes nx-head-out { from { transform: translateY(62px); opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
.js .nx-print__shadow { animation-name: nx-shadow; }
@keyframes nx-shadow { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.js .nx-print__layer, .js .nx-print__rim, .js .nx-print__shadow { animation: none; opacity: 1; }
	.js .nx-print__rim { opacity: .45; }
	.js .nx-print__head { animation: none; opacity: 0; }
	* { scroll-behavior: auto !important; }
}

/* ---------- Sections ---------- */
.nx-section { max-width: var(--nx-max); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--nx-gutter) 0; }
.nx-section:last-of-type { padding-bottom: clamp(64px, 9vw, 112px); }
.nx-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.nx-section__head .nx-section__title { margin: 0; }
.nx-section__title { margin: 0 0 32px; font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }

/* Category tiles */
.nx-categories { max-width: var(--nx-wide); }
.nx-categories .nx-section__title { max-width: var(--nx-max); margin-left: auto; margin-right: auto; }
.nx-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nx-cat-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	min-height: clamp(420px, 46vw, 580px); padding: clamp(36px, 5vw, 56px) 24px 0;
	border-radius: var(--nx-radius-lg); overflow: hidden;
	background: var(--nx-surface-2); color: var(--nx-text) !important;
	text-align: center; text-decoration: none !important;
}
.nx-cat-tile.is-dark { background: var(--nx-tile-dark); color: var(--nx-tile-dark-text) !important; }
.nx-cat-tile__text { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 30ch; }
.nx-cat-tile__name { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.nx-cat-tile__desc { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.3; opacity: .85; }
.nx-cat-tile__more { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; color: var(--nx-link); font-size: 17px; }
.nx-cat-tile.is-dark .nx-cat-tile__more { color: #2997ff; }
.nx-cat-tile__media { display: block; width: min(78%, 360px); margin-top: 28px; transition: transform .6s var(--nx-ease); }
.nx-cat-tile__media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px 22px 0 0; }
.nx-cat-tile:hover .nx-cat-tile__media { transform: translateY(-6px); }
.nx-cat-tile:hover .nx-cat-tile__more { text-decoration: underline; }
@media (max-width: 760px) { .nx-cat-grid { grid-template-columns: 1fr; } .nx-cat-tile { min-height: 0; } }

/* Custom print band */
.nx-band { margin-top: clamp(64px, 9vw, 112px); background: var(--nx-tile-dark); color: var(--nx-tile-dark-text); }
.nx-band__inner { max-width: var(--nx-max); margin: 0 auto; padding: clamp(64px, 9vw, 104px) var(--nx-gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.nx-band__title { margin: 0 0 16px; font-size: clamp(36px, 5.4vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.nx-band__text { margin: 0 0 28px; font-size: clamp(19px, 2vw, 21px); line-height: 1.38; color: color-mix(in srgb, var(--nx-tile-dark-text) 78%, transparent); max-width: 34ch; }
.nx-steps-list { list-style: none; margin: 0; padding: 0; counter-reset: nx-step; }
.nx-steps-list li {
	position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px;
	padding: 22px 0; border-top: 1px solid rgba(245, 245, 247, .16); counter-increment: nx-step;
}
.nx-steps-list li:last-child { border-bottom: 1px solid rgba(245, 245, 247, .16); }
.nx-steps-list__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(245, 245, 247, .1); color: #2997ff; }
.nx-steps-list__title { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.nx-steps-list__title::before { content: counter(nx-step) ". "; color: color-mix(in srgb, var(--nx-tile-dark-text) 55%, transparent); font-weight: 500; }
.nx-steps-list__text { font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--nx-tile-dark-text) 70%, transparent); }
@media (max-width: 820px) { .nx-band__inner { grid-template-columns: 1fr; } }

/* Materials */
.nx-mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--nx-line); }
.nx-mat { padding: 24px 20px 8px 0; border-bottom: 1px solid var(--nx-line); }
.nx-mat + .nx-mat { padding-left: 20px; border-left: 1px solid var(--nx-line); }
.nx-mat__name { margin: 0 0 14px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.nx-mat dl { margin: 0; }
.nx-mat dt { font-size: 12px; color: var(--nx-muted); margin: 0 0 2px; }
.nx-mat dd { margin: 0 0 14px; font-size: 15px; line-height: 1.4; }
@media (max-width: 900px) {
	.nx-mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nx-mat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
	.nx-mat-grid { grid-template-columns: 1fr; }
	.nx-mat + .nx-mat { padding-left: 0; border-left: 0; }
}

/* Assurances */
.nx-assurances { padding-top: clamp(48px, 7vw, 80px); }
.nx-assure { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--nx-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nx-assure li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--nx-muted); }
.nx-assure .nx-icon { color: var(--nx-text); flex-shrink: 0; }
.nx-assure strong { display: block; color: var(--nx-text); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .nx-assure { grid-template-columns: 1fr; } }

/* ---------- Articles & pages ---------- */
.nx-article { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--nx-gutter) clamp(64px, 8vw, 96px); }
.nx-article--wide { max-width: var(--nx-max); }
.nx-article__head { margin-bottom: clamp(24px, 4vw, 40px); }
.nx-article__title { margin: 0; font-size: clamp(28px, 6vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.nx-article__meta { margin: 0 0 8px; color: var(--nx-muted); font-size: 14px; }
.nx-article__media { margin: 0 0 32px; }
.nx-article__media img { border-radius: var(--nx-radius); }

.nx-entry-content > * { max-width: 100%; }
.nx-entry-content > h2 { margin: 2em 0 .5em; font-size: clamp(24px, 3vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.nx-entry-content > h3 { margin: 1.6em 0 .4em; font-size: 21px; }
.nx-entry-content > ul, .nx-entry-content > ol { padding-left: 1.2em; margin: 0 0 1em; }
.nx-entry-content li { margin-bottom: .4em; }
.nx-entry-content > blockquote { margin: 1.5em 0; padding: 0 0 0 1.25em; border-left: 3px solid var(--nx-accent); color: var(--nx-muted); }
.nx-entry-content img { border-radius: var(--nx-radius-sm); }
.nx-entry-content .wp-block-details { border-bottom: 1px solid var(--nx-line); padding: 0; margin: 0; }
.nx-entry-content .wp-block-details:first-of-type { border-top: 1px solid var(--nx-line); }
.nx-entry-content .wp-block-details summary { position: relative; padding: 18px 40px 18px 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.nx-entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.nx-entry-content .wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--nx-muted); transition: transform .25s var(--nx-ease); }
.nx-entry-content .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.nx-entry-content .wp-block-details > :not(summary) { margin: 0 0 18px; color: var(--nx-muted); }

/* Legal pages: calmer reading */
.nx-legal-page .nx-entry-content { font-size: 16px; line-height: 1.6; }
.nx-legal-page .nx-entry-content > h2 { font-size: 21px; margin-top: 2.2em; }
.nx-legal-page .nx-entry-content > h3 { font-size: 17px; }

/* Blog cards */
.nx-archive { max-width: var(--nx-max); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--nx-gutter) clamp(64px, 8vw, 96px); }
.nx-archive__head { margin-bottom: 40px; }
.nx-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.nx-post-card__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--nx-radius); overflow: hidden; background: var(--nx-surface-2); color: var(--nx-text) !important; text-decoration: none !important; }
.nx-post-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nx-post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 26px; }
.nx-post-card__meta { font-size: 13px; color: var(--nx-muted); }
.nx-post-card__title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.nx-post-card__excerpt { font-size: 15px; color: var(--nx-muted); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 20px; color: var(--nx-text); }
.nav-links .page-numbers.current { background: var(--nx-text); color: var(--nx-bg); }
.nx-post-nav .nav-links { justify-content: space-between; }
.nx-post-nav__label { display: block; font-size: 12px; color: var(--nx-muted); }

/* Search form & 404 */
.nx-searchform { display: flex; gap: 8px; max-width: 520px; margin: 0 0 24px; }
.nx-searchform input[type="search"] { flex: 1; min-height: 44px; padding: 0 16px; border: 1px solid var(--nx-line); border-radius: 980px; background: var(--nx-surface); }
.nx-notfound { max-width: 640px; margin: 0 auto; padding: clamp(64px, 12vw, 140px) var(--nx-gutter); text-align: center; }
.nx-notfound__code { margin: 0; font-size: clamp(80px, 18vw, 160px); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: repeating-linear-gradient(0deg, var(--nx-text) 0 6px, transparent 6px 9px); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-notfound__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; }
.nx-notfound__text { color: var(--nx-muted); }
.nx-notfound .nx-searchform { margin: 24px auto; }

/* Comments */
.nx-comments { max-width: 760px; margin: 0 auto; padding: 0 var(--nx-gutter) 80px; }
.nx-comment-list { list-style: none; padding: 0; }
.nx-comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--nx-line); }
.nx-comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius-sm); background: var(--nx-surface); }

/* ---------- Footer ---------- */
.nx-footer { background: var(--nx-surface-2); color: var(--nx-muted); font-size: 12px; line-height: 1.5; letter-spacing: -.01em; }
.nx-home .nx-footer { margin-top: 0; }
.nx-footer__inner { max-width: var(--nx-max); margin: 0 auto; padding: 32px var(--nx-gutter) 24px; }
.nx-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--nx-line); }
.nx-footer__title { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--nx-text); letter-spacing: -.01em; }
.nx-footer ul { list-style: none; margin: 0; padding: 0; }
.nx-footer li { margin-bottom: 8px; }
.nx-footer a { color: var(--nx-muted); }
.nx-footer a:hover { color: var(--nx-text); text-decoration: underline; }
.nx-footer__lang { margin-top: 14px; }
.nx-footer-note { padding: 16px 0; border-bottom: 1px solid var(--nx-line); }
.nx-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; }
.nx-footer__copy { margin: 0; }
@media (max-width: 760px) { .nx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nx-footer__col--settings { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; } .nx-footer__col--settings .nx-footer__title { width: 100%; margin: 0; } .nx-footer__lang { margin: 0; } }

/* Appearance control */
.nx-appearance { display: inline-flex; padding: 2px; border-radius: 9px; background: color-mix(in srgb, var(--nx-text) 8%, transparent); }
.nx-appearance button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-size: 12px; color: var(--nx-muted); cursor: pointer; }
.nx-appearance button[aria-checked="true"] { background: var(--nx-bg); color: var(--nx-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

/* Withdrawal button – must stand out from the other footer links (§ 356a BGB) */
.nx-withdraw-button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px; border-radius: 980px;
	background: var(--nx-bg); color: var(--nx-text) !important;
	box-shadow: inset 0 0 0 1.5px var(--nx-text);
	font-size: 14px; font-weight: 600; letter-spacing: -.01em;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}
.nx-withdraw-button:hover { background: var(--nx-text); color: var(--nx-bg) !important; }

/* ---------- Block editor alignment ---------- */
.alignwide { width: min(var(--nx-wide), 100vw - 2 * var(--nx-gutter)); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.wp-block-button__link { border-radius: 980px; background: var(--nx-btn); color: var(--nx-on-accent); padding: .62em 1.3em; }
.has-graphite-color { color: #1d1d1f; } .has-graphite-background-color { background-color: #1d1d1f; }
.has-mist-color { color: #f5f5f7; } .has-mist-background-color { background-color: #f5f5f7; }
.has-blue-color { color: #0071e3; } .has-blue-background-color { background-color: #0071e3; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

@media print {
	.nx-header, .nx-footer, .nx-scrim { display: none !important; }
	body { background: #fff; color: #000; }
}

/* ---------- Small phones ---------- */
.nx-searchform input[type="search"] { min-width: 0; }
@media (max-width: 420px) {
	.nx-header__bar { gap: 4px; padding: 0 10px; }
	.nx-wordmark__suffix { display: none; }
	.nx-header__actions .nx-iconbtn { width: 38px; height: 38px; }
	.nx-header__actions { gap: 0; }
	.nx-searchform { flex-wrap: wrap; }
	.nx-searchform .nx-btn { flex: 1 0 auto; }
}
@media (max-width: 340px) {
	.nx-wordmark__name { font-size: 16px; }
	.nx-header__actions .nx-iconbtn { width: 36px; }
}

/* ---------- Touch devices: 44px targets (Apple HIG) ---------- */
@media (pointer: coarse) {
	.nx-iconbtn, .nx-header__actions .nx-iconbtn { width: 44px; height: 44px; }
	.nx-lang__switch { height: 32px; width: 72px; }
	.nx-appearance button { padding: 8px 14px; font-size: 13px; }
	.nx-footer li a { display: inline-block; padding: 4px 0; }
	.nx-pills a { padding: 10px 18px; }
}
@media (pointer: coarse) and (max-width: 420px) {
	.nx-header__actions .nx-iconbtn { width: 40px; height: 44px; }
}

/* ---------- Notch / safe areas (iPhone landscape) ---------- */
@supports (padding: max(0px)) {
	.nx-header__bar, .nx-footer__inner, .nx-section, .nx-article, .nx-shop, .nx-archive, .nx-band__inner, .nx-search__inner {
		padding-left: max(var(--nx-gutter), env(safe-area-inset-left));
		padding-right: max(var(--nx-gutter), env(safe-area-inset-right));
	}
	.nx-footer__inner { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Long German compound words in body text and headings never cause sideways scrolling. */
.nx-entry-content, .nx-article, .woocommerce-MyAccount-content { overflow-wrap: break-word; }
.nx-entry-content a, .woocommerce-MyAccount-content a { overflow-wrap: anywhere; }

/* ==========================================================================
   Motion (1.3): reveal on scroll, theme / language change, hero, search
   ========================================================================== */
.nx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--nx-ease), transform .8s var(--nx-ease); transition-delay: calc(var(--nx-d, 0) * 70ms); }
.nx-reveal.is-in { opacity: 1; transform: none; }

/* Smooth light/dark change */
.nx-theme-anim, .nx-theme-anim *, .nx-theme-anim *::before, .nx-theme-anim *::after {
	transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important;
}
/* Language change: content fades while the new page loads */
.nx-main, .nx-footer { transition: opacity .22s ease; }
body.nx-leaving .nx-main, body.nx-leaving .nx-footer { opacity: .25; }

/* Cart icon hop */
.nx-cart-link.is-bump { animation: nx-bump .55s var(--nx-ease); }
@keyframes nx-bump { 0% { transform: none; } 30% { transform: translateY(-5px) scale(1.12); } 60% { transform: translateY(1px) scale(.96); } 100% { transform: none; } }

/* Hero: gentle depth while scrolling, optional 3D model */
.nx-hero__stage { position: relative; transform: translateY(calc(var(--nx-hero-p, 0) * -40px)) scale(calc(1 - var(--nx-hero-p, 0) * .06)); will-change: transform; }
.nx-hero__model { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.nx-hero__model canvas { display: block; width: 100%; height: 100%; }
.nx-hero__stage.has-model .nx-print { opacity: 0; transition: opacity .6s ease; }
.nx-hero__stage.has-model .nx-hero__model { opacity: 1; }
/* Dragon (WebGL): the SVG keeps the size of the stage and is the fallback. */
.nx-hero__stage.is-3d-pending .nx-print, .nx-hero__stage.is-3d .nx-print { opacity: 0; transition: opacity .4s ease; }
.nx-hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.nx-hero__stage.is-3d .nx-hero3d__canvas { opacity: 1; }

/* Live search */
.nx-live { margin-top: 10px; max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.nx-live.is-loading { opacity: .55; }
.nx-live ul { list-style: none; margin: 0 0 6px; padding: 0; }
.nx-live__label { margin: 14px 0 6px; font-size: 12px; color: var(--nx-muted); }
.nx-live__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--nx-radius-sm); color: var(--nx-text); text-decoration: none !important; }
.nx-live__item--cat { grid-template-columns: 1fr; }
.nx-live__item:hover, .nx-live__item[aria-selected="true"] { background: var(--nx-surface-2); }
.nx-live__item img, .nx-live__ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--nx-surface-2); }
.nx-live__name { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.nx-live__name small { display: block; margin-top: 2px; color: var(--nx-muted); font-size: 13px; }
.nx-live__price { font-size: 14px; color: var(--nx-muted); white-space: nowrap; }
.nx-live__empty { margin: 16px 0 0; color: var(--nx-muted); }
.nx-live__all { display: inline-block; margin: 8px 10px 0; font-size: 15px; color: var(--nx-link); }

/* Cart drawer */
.nx-drawer { position: fixed; inset: 0; z-index: 200; }
.nx-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.nx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--nx-bg); box-shadow: -20px 0 60px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .32s var(--nx-ease); outline: 0; }
.nx-drawer.is-open .nx-drawer__scrim { opacity: 1; }
.nx-drawer.is-open .nx-drawer__panel { transform: none; }
.nx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 22px; border-bottom: 1px solid var(--nx-line); }
.nx-drawer__title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.nx-drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 16px 22px max(22px, env(safe-area-inset-bottom)); }
body.nx-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.nx-drawer__panel, .nx-drawer__scrim { transition: none; }
}
