/* Schriften: lokal ausgeliefert, SIL Open Font License (siehe public/fonts) */
@font-face {
	font-family: 'Instrument Sans';
	src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'IBM Plex Mono';
	src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--night: #0e1012;
	--ink: #131517;
	--paper: #ffffff;
	--mist: #f2f0eb;
	--petrol: #11606b;
	--kern: #c43a06;
	--aurora: #ff6a2b;
	--sans: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
	--top-h: 64px;
	--gutter: clamp(20px, 4vw, 48px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tone-light,
.tone-mist {
	--bg: var(--paper);
	--fg: var(--ink);
	--muted: #5c6063;
	--line: #dcd9d2;
	--accent: var(--kern);
	--btn-bg: var(--ink);
	--btn-fg: #fff;
	--btn2-bg: rgba(19, 21, 23, 0.07);
	--btn2-fg: var(--ink);
	background: var(--bg);
	color: var(--fg);
}
.tone-mist {
	--bg: var(--mist);
	--line: #d3cfc6;
}
.tone-dark {
	--bg: var(--night);
	--fg: #fff;
	--muted: rgba(255, 255, 255, 0.68);
	--line: rgba(255, 255, 255, 0.17);
	--accent: var(--aurora);
	--btn-bg: #fff;
	--btn-fg: var(--night);
	--btn2-bg: rgba(255, 255, 255, 0.13);
	--btn2-fg: #fff;
	background: var(--bg);
	color: var(--fg);
}

/* Mauszeiger im Kern7-Stil. Vom Betriebssystem gezeichnet (kein Skript,
   keine Verzögerung). Nur mit Maus, nicht bei erhöhtem Kontrast oder
   erzwungenen Farben: dort bleibt der Zeiger des Systems.
   Quellen: public/img/zeiger/*.svg, Bilder: node tools/zeiger.js */
:root {
	--z-pfeil: auto;
	--z-hand: pointer;
	--z-text: text;
}
@media (hover: hover) and (pointer: fine) and (prefers-contrast: no-preference) and (forced-colors: none) {
	:root {
		--z-pfeil: url('/img/zeiger/pfeil.png') 4 3, default;
		--z-hand: url('/img/zeiger/hand.png') 4 3, pointer;
		--z-text: url('/img/zeiger/text.png') 16 16, text;
	}
	@supports (cursor: image-set(url('/img/zeiger/pfeil.png') 1x) 4 3, default) {
		:root {
			--z-pfeil: image-set(url('/img/zeiger/pfeil.png') 1x, url('/img/zeiger/pfeil-2x.png') 2x) 4 3, default;
			--z-hand: image-set(url('/img/zeiger/hand.png') 1x, url('/img/zeiger/hand-2x.png') 2x) 4 3, pointer;
			--z-text: image-set(url('/img/zeiger/text.png') 1x, url('/img/zeiger/text-2x.png') 2x) 16 16, text;
		}
	}
	html {
		cursor: var(--z-pfeil);
	}
	:is(a[href], button, summary, label[for], select, [role='button'], [role='tab'],
		input:is([type='checkbox'], [type='radio'], [type='submit'], [type='button'], [type='file'])):not(:disabled) {
		cursor: var(--z-hand);
	}
	:is(input:not([type]), input:is([type='text'], [type='email'], [type='tel'], [type='search'], [type='url'], [type='password'], [type='number']), textarea, [contenteditable='true']):not(:disabled) {
		cursor: var(--z-text);
	}
	:disabled {
		cursor: not-allowed;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--top-h);
}
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink);
	background: var(--night);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.hell {
	background: var(--paper);
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
pre {
	margin: 0;
	padding: 0;
}
ul,
ol {
	list-style: none;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
}
button {
	font: inherit;
	color: inherit;
}
:focus-visible {
	outline: 2px solid var(--accent, var(--petrol));
	outline-offset: 3px;
}
kbd {
	font-family: var(--mono);
	font-size: 0.8125em;
	padding: 0.15em 0.5em;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 2px;
	white-space: nowrap;
}
kbd + kbd {
	margin-left: 4px;
}
code {
	font-family: var(--mono);
	font-size: 0.875em;
	padding: 0.1em 0.4em;
	border-radius: 3px;
	background: var(--btn2-bg);
}

.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: #fff;
	color: var(--ink);
	border-radius: 2px;
}
.skip:focus {
	top: 12px;
}

.wrap {
	width: min(1200px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}
.wrap--schmal {
	width: min(780px, 100% - 2 * var(--gutter));
}

/* ------------------------------------------------------------ Kopfzeile */

.top {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--top-h);
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	transition: color 0.25s, background-color 0.25s;
}
.top[data-tone='light'] {
	color: var(--ink);
}
.top[data-scrolled] {
	background: rgba(14, 16, 18, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.top[data-scrolled][data-tone='light'] {
	background: rgba(255, 255, 255, 0.78);
}
.top a {
	text-decoration: none;
}
.top__brand,
.menu__brand,
.foot__brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	justify-self: start;
	text-decoration: none;
}
.bildmarke {
	height: 30px;
	width: auto;
	flex: none;
}
.marke {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}
.marke b {
	font-weight: 700;
	color: var(--aurora);
}
.top__nav ul {
	display: flex;
	gap: 4px;
}
.top__nav a,
.top__cta,
.top__menu {
	display: block;
	padding: 6px 14px;
	border-radius: 2px;
	transition: background-color 0.2s;
}
.top__nav a:hover,
.top__cta:hover,
.top__menu:hover,
.top__nav a[aria-current],
.top__cta[aria-current] {
	background: rgba(127, 140, 143, 0.2);
}
.top .top__cta {
	padding: 8px 16px;
	color: var(--top-btn-fg, #0e1012);
	background: var(--top-btn-bg, #fff);
}
.top[data-tone='light'] .top__cta {
	--top-btn-fg: #fff;
	--top-btn-bg: #131517;
}
.top .top__cta:hover,
.top .top__cta[aria-current] {
	background: color-mix(in srgb, var(--top-btn-bg, #fff) 82%, #7f8c8f);
}
.top__actions {
	justify-self: end;
	display: flex;
	gap: 4px;
}
.top__menu {
	display: none;
	border: 0;
	background: rgba(127, 140, 143, 0.2);
	font-weight: 500;
	cursor: var(--z-hand);
}

.menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: #fff;
	color: var(--ink);
	padding: 0 var(--gutter) 32px;
	overflow: auto;
}
.menu[hidden] {
	display: none;
}
.menu__bar {
	height: var(--top-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.menu .top__menu {
	display: block;
}
.menu nav a {
	display: block;
	padding: 16px 0;
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	text-decoration: none;
	border-bottom: 1px solid #d8dedf;
}

/* ------------------------------------------------------------ Schaltflächen */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(264px, 100%);
	height: 44px;
	padding: 0 28px;
	border: 0;
	border-radius: 2px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	cursor: var(--z-hand);
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn--primary {
	background: var(--btn-bg);
	color: var(--btn-fg);
}
.btn--secondary {
	background: var(--btn2-bg);
	color: var(--btn2-fg);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.btn--primary:hover {
	background: color-mix(in srgb, var(--btn-bg) 86%, var(--bg));
}
.btn--secondary:hover {
	background: color-mix(in srgb, var(--btn2-fg) 18%, transparent);
}
.btn:active {
	transform: scale(0.985);
}

/* ------------------------------------------------------------ Startseite: Tafeln */

.panel {
	position: relative;
	min-height: 100svh;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	overflow: hidden;
}
.panel__head {
	padding: clamp(92px, 14vh, 150px) var(--gutter) 0;
	text-align: center;
}
.panel__title {
	font-size: clamp(2rem, 4.1vw, 3.5rem);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.028em;
	text-wrap: balance;
}
.panel__title--xl {
	max-width: 17ch;
	margin-inline: auto;
	font-size: clamp(2.5rem, 5.2vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -0.038em;
}
.panel__nr {
	margin-bottom: 16px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--accent);
}
.panel--kompakt {
	min-height: 0;
}
.panel--kompakt .panel__head {
	padding-top: clamp(64px, 11vh, 120px);
}
.panel--kompakt .panel__stage {
	padding-bottom: clamp(64px, 11vh, 120px);
}
.panel__sub {
	max-width: 56ch;
	margin: 14px auto 0;
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	color: var(--muted);
	text-wrap: balance;
}
.panel__stage {
	min-height: 0;
	padding: clamp(28px, 5vh, 56px) var(--gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
}
.panel__cta {
	padding: 0 var(--gutter) clamp(28px, 6vh, 60px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 20px;
}
.stage-note {
	font-size: 0.8125rem;
	color: var(--muted);
}

/* Auftakt */
.panel--hero {
	height: 100svh;
	min-height: 600px;
	grid-template-rows: auto 1fr;
}
.hero-shot {
	padding-bottom: 0;
	justify-content: flex-start;
	overflow: hidden;
}
.hero-shot__frame {
	width: min(1180px, 100%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
	box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
	animation: aufgang 1s var(--ease) both;
}
.hero-shot__frame img {
	width: 100%;
}
.panel__cta--over {
	position: absolute;
	inset: auto 0 0 0;
	padding-top: 110px;
	background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 40%, transparent 100%);
	z-index: 3;
}
@keyframes aufgang {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
}

/* Belegkette */
.kette {
	position: relative;
	width: min(1120px, 100%);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.kette::before {
	content: '';
	position: absolute;
	inset: 5px 0 auto 0;
	height: 1px;
	background: var(--fg);
	transform-origin: left;
}
.kette li {
	position: relative;
	padding: 34px 28px 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.kette li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--fg);
}
.kette li:last-child::before {
	background: var(--accent);
	border-color: var(--accent);
}
.kette__art {
	font-size: clamp(1.375rem, 2.2vw, 1.875rem);
	font-weight: 500;
	letter-spacing: -0.02em;
}
.kette__nr {
	font-family: var(--mono);
	font-size: 0.875rem;
	color: var(--accent);
}
.kette__info {
	margin-top: 6px;
	max-width: 26ch;
	font-size: 0.9375rem;
	color: var(--muted);
}

/* Geschäftsbrief und E-Rechnung */
.beleg {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 4vw, 64px);
}
.papier {
	--w: clamp(280px, 33vw, 470px);
	position: relative;
	flex: none;
	width: var(--w);
	height: min(calc(var(--w) * 1.05), 50vh);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
	mask-image: linear-gradient(to bottom, #000 72%, transparent);
	padding: 5em 3.2em 3em 4.2em;
	font-size: calc(var(--w) / 41);
	line-height: 1.35;
	color: #1b2629;
	background: #fff;
}
.papier__falz {
	position: absolute;
	left: 1em;
	width: 1.6em;
	height: 1px;
	background: #8b979a;
	top: calc(var(--w) * 0.5);
}
.papier__absender {
	font-size: 0.72em;
	color: #6c797d;
	padding-bottom: 0.3em;
	border-bottom: 1px solid #c9d0d2;
	width: 62%;
}
.papier__anschrift {
	margin-top: 0.9em;
	min-height: 6.2em;
}
.papier__info {
	position: absolute;
	right: 3.2em;
	top: 6em;
	display: grid;
	grid-template-columns: auto auto;
	gap: 0.15em 1.2em;
	font-size: 0.82em;
}
.papier__info dt {
	color: #6c797d;
}
.papier__info dd {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.papier__titel {
	margin-top: 2.2em;
	font-size: 1.45em;
	font-weight: 600;
}
.papier__zeilen {
	width: 100%;
	margin-top: 1.6em;
	border-collapse: collapse;
	font-size: 0.82em;
	font-variant-numeric: tabular-nums;
}
.papier__zeilen th {
	font-weight: 600;
	text-align: left;
	padding: 0.4em 0;
	border-bottom: 1px solid #1b2629;
}
.papier__zeilen td {
	padding: 0.5em 0;
	border-bottom: 1px solid #c9d0d2;
}
.papier__zeilen :is(th, td):nth-child(n + 3) {
	text-align: right;
}
.papier__summe {
	margin: 1.2em 0 0 auto;
	width: 52%;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25em 1em;
	font-size: 0.82em;
	font-variant-numeric: tabular-nums;
}
.papier__summe dd {
	text-align: right;
}
.papier__summe :is(dt, dd):nth-last-child(-n + 2) {
	padding-top: 0.35em;
	border-top: 1px solid #1b2629;
	font-weight: 600;
}
.xml {
	position: relative;
	z-index: 1;
	padding: 24px 28px;
	max-width: min(560px, 50vw);
	overflow: hidden;
	font-family: var(--mono);
	font-size: clamp(0.6875rem, 0.9vw, 0.8125rem);
	line-height: 1.75;
	color: #fff;
	background: var(--night);
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(14, 16, 18, 0.28);
}
.xml code {
	font: inherit;
	padding: 0;
	background: none;
}
.xml__t {
	color: rgba(255, 255, 255, 0.5);
}
.xml__d {
	color: var(--aurora);
}

/* Datumskurzformen */
.kurz {
	width: min(900px, 100%);
	text-align: center;
}
.kurz__label {
	display: block;
	font-size: 0.875rem;
	color: var(--muted);
}
.kurz__input {
	width: min(9ch, 100%);
	margin-top: 6px;
	padding: 4px 0 8px;
	font-family: var(--mono);
	font-size: clamp(2.5rem, 6vw, 4.25rem);
	line-height: 1.1;
	text-align: center;
	color: var(--fg);
	caret-color: var(--accent);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	outline: none;
	transition: border-color 0.2s;
}
.kurz__input:focus {
	border-bottom-color: var(--accent);
}
.kurz__ergebnis {
	margin-top: 18px;
	min-height: 1.5em;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 500;
	letter-spacing: -0.01em;
}
.kurz__ergebnis[data-leer] {
	color: var(--muted);
	font-weight: 400;
}
.kurz__beispiele {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 8px;
}
.kurz__beispiele button {
	padding: 7px 12px 7px 8px;
	font-size: 0.875rem;
	color: var(--muted);
	background: none;
	border: 0;
	border-radius: 2px;
	cursor: var(--z-hand);
	transition: background-color 0.2s, color 0.2s;
}
.kurz__beispiele button:hover,
.kurz__beispiele button[aria-pressed='true'] {
	color: var(--fg);
	background: var(--btn2-bg);
}
.kurz__beispiele kbd {
	margin-right: 6px;
	color: var(--fg);
}
.tasten {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 34px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
	width: min(760px, 100%);
	font-size: 0.9375rem;
	color: var(--muted);
}
.tasten kbd {
	color: var(--fg);
}
.tasten span {
	margin-left: 9px;
}

/* Schichten */
.schichten {
	width: min(820px, 100%);
	display: grid;
	gap: 10px;
}
.schichten--breit {
	width: 100%;
}
.schicht {
	display: grid;
	grid-template-columns: minmax(150px, 0.42fr) 1fr;
	align-items: baseline;
	gap: 6px 28px;
	padding: clamp(18px, 3vh, 28px) clamp(18px, 3vw, 34px);
	border: 1px solid var(--fg);
	border-radius: 2px;
	background: var(--bg);
}
.schicht__name {
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 500;
	letter-spacing: -0.02em;
}
.schicht__text {
	color: var(--muted);
}
.schicht--neu {
	border-style: dashed;
	border-color: var(--accent);
}
.schicht--neu .schicht__name {
	color: var(--accent);
}
.schicht--kern {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}
.schicht--kern .schicht__text {
	color: rgba(255, 255, 255, 0.7);
}

/* Debitorenkarte mit eigenem Feld */
.karte {
	width: min(640px, 100%);
	background: #fff;
	color: var(--ink);
	border: 1px solid #cfd6d7;
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(19, 21, 23, 0.09);
	overflow: hidden;
}
.karte__kopf {
	padding: 20px 26px 18px;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.karte__kopf span {
	display: block;
	margin-bottom: 2px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--petrol);
}
.karte__register {
	padding: 11px 26px;
	font-weight: 500;
	background: #eef5f5;
	border-block: 1px solid #cfd6d7;
}
.karte__felder {
	padding: 8px 26px 18px;
}
.karte__felder > div {
	position: relative;
	display: grid;
	grid-template-columns: minmax(130px, 0.8fr) 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid #e3e8e9;
}
.karte__felder dt {
	color: #57656a;
}
.karte__felder dd {
	font-weight: 500;
}
.karte__felder .karte__eigen {
	margin-top: 8px;
	padding-block: 14px;
	border-bottom: 0;
	z-index: 0;
}
.karte__eigen::before {
	content: '';
	position: absolute;
	inset: 0 -26px;
	z-index: -1;
	background: #eef5f5;
	box-shadow: inset 3px 0 0 var(--petrol);
}
.karte__marke {
	padding: 3px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
	background: var(--petrol);
	border-radius: 3px;
}

/* Verzeichnis Software & KI */
.index {
	width: min(1040px, 100%);
	border-top: 1px solid var(--line);
}
.index a {
	display: grid;
	grid-template-columns: 4ch minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: baseline;
	gap: 8px 24px;
	padding: clamp(16px, 3.2vh, 30px) 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	transition: padding 0.3s var(--ease), background-color 0.3s;
}
.index a:hover {
	padding-left: 14px;
	background: rgba(255, 255, 255, 0.04);
}
.index__nr {
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--accent);
}
.index__name {
	font-size: clamp(1.5rem, 3.2vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.1;
}
.index__text {
	color: var(--muted);
}

.panel--schluss {
	min-height: 70svh;
	grid-template-rows: auto auto;
	align-content: center;
	gap: 36px;
}
.panel--schluss .panel__head {
	padding-top: 0;
}
.panel--schluss .panel__cta {
	padding-bottom: 0;
}

/* ------------------------------------------------------------ Startseite: Szenen */

.bereiche {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 6px;
}
.bereiche a {
	display: block;
	padding: 6px 14px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 2px;
	transition: background-color 0.2s;
}
.bereiche a:hover {
	background: var(--btn2-bg);
}
.bereiche span {
	margin-right: 8px;
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--accent);
}

/* Auftakt: Produktbild mit schwebenden Teilen */
.szene {
	position: relative;
	width: min(1060px, 76vw);
}
.ringe {
	position: absolute;
	left: 50%;
	top: 0;
	width: max(1500px, 130vw);
	aspect-ratio: 1;
	translate: -50% -50%;
	pointer-events: none;
	overflow: visible;
}
.ringe circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	opacity: 0.2;
	animation: ring 7s ease-in-out infinite;
	animation-delay: calc(var(--n) * 0.45s);
}
.ringe__n1 {
	--n: 1;
}
.ringe__n2 {
	--n: 2;
}
.ringe__n3 {
	--n: 3;
}
.ringe__n4 {
	--n: 4;
}
.ringe__n5 {
	--n: 5;
}
.ringe__n6 {
	--n: 6;
}
.ringe__n7 {
	--n: 7;
}
.ringe .ringe__kern {
	fill: var(--accent);
	stroke: none;
	opacity: 1;
	animation: none;
}
.ringe .ringe__schein {
	fill: url(#kernschein);
	stroke: none;
	opacity: 1;
	animation: none;
}
@keyframes ring {
	0%,
	70%,
	100% {
		opacity: 0.2;
	}
	12% {
		opacity: 0.6;
	}
}
.panel--schluss .ringe {
	top: 50%;
	width: max(1100px, 100vw);
}
.panel--schluss > :not(.ringe) {
	position: relative;
}
.szene__haupt {
	position: relative;
	width: 100%;
	translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 4px);
}
.szene__teil {
	position: absolute;
	z-index: 2;
	translate: calc(var(--px, 0) * var(--k) * 1px) calc(var(--py, 0) * var(--k) * 1px);
	animation: einblenden 1.1s var(--ease) 0.35s both, schweben 7s ease-in-out infinite alternate;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
	transition: translate 0.5s var(--ease);
}
.szene__teil--links {
	--k: 24;
	left: -15%;
	top: -3%;
	rotate: -6deg;
}
.szene__teil--links .papier {
	--w: clamp(170px, 19vw, 270px);
}
.szene__teil--rechts {
	--k: -18;
	right: -13%;
	top: 9%;
	rotate: 4deg;
	border-radius: 8px;
	animation-delay: 0.55s, -3s;
}
@keyframes einblenden {
	from {
		opacity: 0;
		scale: 0.92;
	}
}
@keyframes schweben {
	to {
		transform: translateY(-14px);
	}
}
.papier--ganz {
	height: auto;
	aspect-ratio: 210 / 297;
	-webkit-mask-image: none;
	mask-image: none;
}

/* KI-Vorschlag */
.vorschlag {
	width: min(380px, 100%);
	padding: 22px 24px 24px;
	color: var(--ink);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.vorschlag__kopf {
	padding-bottom: 12px;
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	border-bottom: 1px solid #cfd6d7;
}
.vorschlag__kopf span {
	display: block;
	margin-bottom: 2px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--petrol);
}
.vorschlag dl > div {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #e3e8e9;
}
.vorschlag dt {
	color: #57656a;
}
.vorschlag dd {
	font-weight: 500;
}
.vorschlag__status {
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: #57656a;
}
.vorschlag__status::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c98a04;
}
.vorschlag__tasten {
	margin-top: 16px;
	display: flex;
	gap: 8px;
}
.vorschlag__tasten span {
	padding: 8px 16px;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 2px;
	background: rgba(19, 21, 23, 0.07);
}
.vorschlag__tasten span:first-child {
	color: #fff;
	background: var(--ink);
}
.vorschlag--klein {
	width: clamp(200px, 21vw, 300px);
	padding: 18px 20px;
	font-size: clamp(0.6875rem, 1vw, 0.875rem);
	box-shadow: none;
}
.vorschlag--klein .vorschlag__kopf {
	font-size: 1.25em;
	padding-bottom: 8px;
}
.vorschlag--klein .vorschlag__kopf span,
.vorschlag--klein .vorschlag__status {
	font-size: 0.9em;
}
.vorschlag--klein dl > div {
	padding: 6px 0;
}
.vorschlag--klein .vorschlag__status {
	margin-top: 10px;
}

/* ERP als Scroll-Geschichte */
.story__pin {
	position: relative;
	height: 100svh;
	min-height: 600px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	overflow: hidden;
}
.js .story {
	height: 320vh;
}
.js .story__pin {
	position: sticky;
	top: 0;
}
.story .panel__head {
	padding-top: clamp(84px, 11vh, 118px);
}
.story__texte {
	display: grid;
}
.story__texte p {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.45s, transform 0.45s var(--ease);
}
.story__texte p.is-aktiv {
	opacity: 1;
	transform: none;
}
.story__marken {
	margin-top: 20px;
	display: inline-flex;
	gap: 2px;
	padding: 4px;
	background: rgba(19, 21, 23, 0.07);
	border-radius: 6px;
}
.story__marken button {
	padding: 7px 18px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted);
	background: none;
	border: 0;
	border-radius: 2px;
	cursor: var(--z-hand);
	transition: background-color 0.25s, color 0.25s;
}
.story__marken button[aria-selected='true'] {
	color: var(--ink);
	background: #fff;
	box-shadow: 0 1px 2px rgba(19, 21, 23, 0.14);
}
.story__bilder {
	min-height: 0;
	padding: clamp(20px, 4vh, 40px) var(--gutter) 0;
}
.story__rahmen {
	position: relative;
	width: min(1320px, 100%);
	margin-inline: auto;
	aspect-ratio: 16 / 10;
	background: #fff;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(19, 21, 23, 0.18);
}
.story__bild {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity 0.6s, transform 1s var(--ease);
}
.story__bild.is-aktiv {
	opacity: 1;
	transform: none;
}
.story__bild img {
	width: 100%;
}

/* Erweiterungen: drei Schichten im Raum */
.aufbau {
	width: min(1080px, 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 7vw, 120px);
}
.stapel {
	--abstand: 78px;
	position: relative;
	flex: none;
	width: clamp(250px, 33vw, 450px);
	aspect-ratio: 16 / 10;
	margin: 78px 30px 20px;
	transform: rotateX(57deg) rotateZ(-36deg);
	transform-style: preserve-3d;
}
.js [data-reveal] .stapel {
	--abstand: 4px;
}
.js [data-reveal].is-in .stapel {
	--abstand: 78px;
}
.js [data-reveal].is-in .stapel:hover {
	--abstand: 104px;
}
.stapel__platte {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	transform: translateZ(calc(var(--i) * var(--abstand)));
	transition: transform 1.3s var(--ease);
}
.stapel__platte--kern {
	--i: 0;
	background-color: #1c1f22;
	background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
	background-size: 10% 16.66%;
	border: 1px solid rgba(255, 255, 255, 0.32);
	box-shadow: -40px 50px 70px rgba(0, 0, 0, 0.55);
}
.stapel__platte--produkt {
	--i: 1;
	background: #fff url('/img/rollencenter-verkauf-1200.webp') left top / cover;
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: -14px 18px 30px rgba(0, 0, 0, 0.35);
}
.stapel__platte--neu {
	--i: 2;
	display: grid;
	grid-template-rows: 0.7fr 1fr 1fr 1fr;
	gap: 7%;
	padding: 7%;
	background: rgba(255, 106, 43, 0.16);
	border: 1.5px dashed var(--aurora);
}
.stapel__platte--neu span {
	border-radius: 2px;
	background: rgba(255, 106, 43, 0.42);
}
.stapel__platte--neu span:first-child {
	width: 42%;
	background: var(--aurora);
}
.aufbau__legende li {
	max-width: 34ch;
	padding: 4px 0 4px 22px;
	border-left: 2px solid var(--fg);
	color: var(--muted);
}
.aufbau__legende li + li {
	margin-top: 26px;
}
.aufbau__legende strong {
	display: block;
	margin-bottom: 4px;
	font-size: clamp(1.25rem, 1.9vw, 1.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--fg);
}
.aufbau__legende .aufbau__neu {
	border-left: 2px dashed var(--aurora);
}
.aufbau__legende .aufbau__neu strong {
	color: var(--aurora);
}
.aufbau__legende .aufbau__kern {
	border-left-color: rgba(255, 255, 255, 0.4);
}

/* Anpassungen: Karte mit eigenem Feld, dahinter der Brief */
.anpass {
	position: relative;
	width: min(620px, 100%);
	margin-right: clamp(0px, 20vw, 290px);
}
.anpass .karte {
	position: relative;
	z-index: 1;
}
.anpass__brief {
	position: absolute;
	right: -49%;
	top: -9%;
	rotate: 5deg;
	box-shadow: 0 24px 60px rgba(19, 21, 23, 0.16);
}
.anpass__brief .papier {
	--w: clamp(220px, 23vw, 320px);
}
.anpass__kopf {
	display: inline-block;
	padding: 0.25em 0.7em;
	font-size: 1.5em;
	font-weight: 600;
	color: #fff;
	background: var(--petrol);
	border-radius: 0.2em;
}
.js .anpass[data-reveal] .karte__eigen {
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.6s 0.6s, transform 0.6s var(--ease) 0.6s;
}
.js .anpass[data-reveal].is-in .karte__eigen {
	opacity: 1;
	transform: none;
}

/* Software: Daten fließen zwischen Systemen */
.netz {
	width: min(1080px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(36px, 0.6fr) auto minmax(36px, 0.6fr) minmax(0, 1fr);
}
.netz__seite {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
}
.netz__seite li {
	margin-block: 7px;
	padding: clamp(12px, 2.2vh, 20px) 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 0.875rem;
	color: var(--muted);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 6px;
}
.netz__seite strong {
	font-size: 1.1875rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: var(--fg);
}
.netz__linien {
	width: 100%;
	height: 100%;
}
.netz__linien path {
	fill: none;
	stroke: var(--line);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}
.netz__linien .netz__fluss {
	stroke: var(--accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 30 600;
	stroke-dashoffset: 30;
	animation: fluss 3.2s linear infinite;
}
.netz__linien .netz__fluss--2 {
	animation-delay: -1.1s;
}
.netz__linien .netz__fluss--3 {
	animation-delay: -2.2s;
}
@keyframes fluss {
	to {
		stroke-dashoffset: -600;
	}
}
.netz__mitte {
	align-self: center;
	min-width: 220px;
	padding: 30px 34px;
	text-align: center;
	color: #fff;
	background: var(--ink);
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(19, 21, 23, 0.22);
}
.netz__mitte span {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--aurora);
}
.netz__mitte strong {
	display: block;
	margin: 4px 0;
	font-size: 1.625rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}
.netz__mitte em {
	font-style: normal;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.68);
}

/* KI: Beleg lesen */
.lesen {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 6vw, 96px);
}
.lesen__beleg {
	position: relative;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.lesen__beleg .papier {
	--w: min(clamp(260px, 29vw, 400px), 46vh);
	height: auto;
	aspect-ratio: 1 / 1.02;
	font-size: calc(var(--w) / 37);
	-webkit-mask-image: none;
	mask-image: none;
}
.lesen__strahl {
	position: absolute;
	inset: 4% -5% auto;
	height: 2px;
	background: var(--aurora);
	box-shadow: 0 0 22px 5px rgba(255, 106, 43, 0.55);
	opacity: 0;
}
.lesen.is-in .lesen__strahl {
	animation: strahl 2.8s ease-in-out 0.4s both;
}
@keyframes strahl {
	0% {
		top: 4%;
		opacity: 0;
	}
	12%,
	88% {
		opacity: 1;
	}
	100% {
		top: 96%;
		opacity: 0;
	}
}
.lies {
	border-radius: 0.2em;
	transition: background-color 0.4s, box-shadow 0.4s;
}
.lesen.is-in .lies {
	background: rgba(255, 106, 43, 0.34);
	box-shadow: 0 0 0 0.25em rgba(255, 106, 43, 0.34);
}
.js .lesen .vorschlag dl > div,
.js .lesen .vorschlag__status,
.js .lesen .vorschlag__tasten {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s, transform 0.5s var(--ease);
}
.js .lesen.is-in .vorschlag dl > div,
.js .lesen.is-in .vorschlag__status,
.js .lesen.is-in .vorschlag__tasten {
	opacity: 1;
	transform: none;
}
.lesen.is-in .lies--1 {
	transition-delay: 0.7s;
}
.lesen.is-in .lies--2 {
	transition-delay: 1s;
}
.lesen.is-in .lies--3 {
	transition-delay: 1.25s;
}
.lesen.is-in .lies--4 {
	transition-delay: 2.5s;
}
.lesen.is-in .vorschlag dl > .lies--1 {
	transition-delay: 0.95s;
}
.lesen.is-in .vorschlag dl > .lies--2 {
	transition-delay: 1.25s;
}
.lesen.is-in .vorschlag dl > .lies--3 {
	transition-delay: 1.5s;
}
.lesen.is-in .vorschlag dl > .lies--4 {
	transition-delay: 2.75s;
}
.lesen.is-in .vorschlag__status,
.lesen.is-in .vorschlag__tasten {
	transition-delay: 3.3s;
}

/* Migration: Export aus dem Altsystem, Abgleich alt gegen neu */
.umzug {
	width: min(1080px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(40px, 0.35fr) minmax(0, 1.05fr);
	align-items: center;
}
.umzug__alt {
	min-width: 0;
	padding: 18px 20px 20px;
	color: #c9ced0;
	background: var(--night);
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(19, 21, 23, 0.18);
}
.umzug__titel {
	margin-bottom: 12px;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--aurora);
}
.umzug__alt pre {
	overflow: hidden;
	font-family: var(--mono);
	font-size: clamp(0.625rem, 0.85vw, 0.75rem);
	padding-bottom: 6px;
	line-height: 1.9;
	white-space: pre;
	-webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
	mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.umzug__dublette {
	color: #fff;
	text-decoration: underline wavy var(--aurora);
	text-underline-offset: 4px;
}
.umzug__fund {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed rgba(255, 255, 255, 0.18);
	font-size: 0.75rem;
	line-height: 1.5;
	color: #c9ced0;
}
.umzug__fund span {
	padding: 2px 8px;
	font-family: var(--mono);
	font-size: 0.6875rem;
	color: var(--night);
	background: var(--aurora);
	border-radius: 3px;
}
.umzug__pfeil {
	width: 100%;
	height: 20px;
}
.umzug__pfeil path {
	fill: none;
	stroke: var(--line);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}
.umzug__pfeil .umzug__fluss {
	stroke: var(--accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 30 600;
	stroke-dashoffset: 30;
	animation: fluss 2.4s linear infinite;
}
.abgleich {
	min-width: 0;
	padding: 22px 24px 22px;
	color: var(--ink);
	background: #fff;
	border: 1px solid #cfd6d7;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(19, 21, 23, 0.1);
}
.abgleich__kopf {
	padding-bottom: 12px;
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.abgleich__kopf span {
	display: block;
	margin-bottom: 2px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--petrol);
}
.abgleich table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}
.abgleich th,
.abgleich td {
	padding: 9px 0 9px 12px;
	text-align: right;
	border-bottom: 1px solid #e3e8e9;
	white-space: nowrap;
}
.abgleich th:first-child {
	padding-left: 0;
	text-align: left;
}
.abgleich thead th {
	padding-top: 0;
	font-size: 0.75rem;
	font-weight: 500;
	color: #57656a;
	border-bottom-color: #cfd6d7;
}
.abgleich tbody th {
	font-weight: 500;
}
.abgleich__ok,
.abgleich__klaeren {
	display: inline-block;
	padding: 2px 8px;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 3px;
}
.abgleich__ok {
	color: var(--petrol);
	background: #eef5f5;
}
.abgleich__klaeren {
	color: #fff;
	background: var(--kern);
}
.abgleich__offen td:nth-child(3) {
	color: var(--kern);
	font-weight: 600;
}
.abgleich .vorschlag__status {
	margin-top: 14px;
}
.js .umzug[data-reveal] .abgleich tbody tr {
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.5s, transform 0.5s var(--ease);
}
.js .umzug[data-reveal].is-in .abgleich tbody tr {
	opacity: 1;
	transform: none;
}
.js .umzug.is-in .abgleich tbody tr:nth-child(2) {
	transition-delay: 0.25s;
}
.js .umzug.is-in .abgleich tbody tr:nth-child(3) {
	transition-delay: 0.5s;
}
.js .umzug.is-in .abgleich tbody tr:nth-child(4) {
	transition-delay: 0.75s;
}
.js .umzug.is-in .abgleich tbody tr:nth-child(5) {
	transition-delay: 1s;
}
.umzug-buehne {
	display: grid;
	justify-items: center;
	gap: 18px;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Einblenden beim Scrollen */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}
.js .kette[data-reveal]::before {
	transform: scaleX(0);
	transition: transform 1.3s var(--ease) 0.15s;
}
.js .kette[data-reveal].is-in::before {
	transform: none;
}

/* ------------------------------------------------------------ Unterseiten */

.page-hero {
	padding: calc(var(--top-h) + clamp(64px, 13vh, 132px)) 0 clamp(56px, 10vh, 104px);
}
.page-hero--kurz {
	padding-bottom: 8px;
}
.page-hero--voll {
	min-height: 78svh;
}
.eyebrow {
	margin-bottom: 18px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--accent);
}
.page-hero__title {
	max-width: 21ch;
	font-size: clamp(2.25rem, 5vw, 4.25rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.034em;
	text-wrap: balance;
}
.page-hero__lead {
	max-width: 60ch;
	margin-top: 24px;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	color: var(--muted);
}
.page-hero__lead a,
.liste a,
.formular a {
	text-underline-offset: 3px;
}
.page-hero__actions {
	margin-top: 36px;
}
.termin {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.termin__hinweis {
	max-width: 34ch;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--muted);
}

.section {
	padding: clamp(64px, 11vh, 120px) 0;
}
.section--schmal {
	text-align: center;
}
.section--form {
	padding-top: 40px;
}
.section__head {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	align-items: baseline;
	gap: 8px 40px;
	margin-bottom: clamp(28px, 5vh, 52px);
}
.section__head h2,
.zwei h2 {
	font-size: clamp(1.75rem, 2.8vw, 2.375rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.028em;
}
.section__head p {
	max-width: 58ch;
	font-size: 1.0625rem;
	color: var(--muted);
}
.section__head h2:only-child {
	grid-column: 1 / -1;
}
.section__head .section__nr {
	grid-column: 1 / -1;
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--accent);
}

.liste + .liste {
	margin-top: clamp(36px, 6vh, 60px);
}
.liste__titel {
	padding-bottom: 12px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--accent);
}
.liste__zeile {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 4px 40px;
	padding: 17px 0;
	border-top: 1px solid var(--line);
}
.liste dl > :last-child {
	border-bottom: 1px solid var(--line);
}
.liste dt {
	font-weight: 600;
}
.liste dd {
	max-width: 68ch;
}
/* Rechtstexte mit nummerierten Absätzen: schmale Spalte für (1), (2) ... auch auf dem Handy nebeneinander */
.liste--absaetze .liste__zeile {
	grid-template-columns: 3em minmax(0, 1fr);
	gap: 4px 16px;
}
.page-hero__title--lang {
	hyphens: auto;
	overflow-wrap: anywhere;
}
.offen {
	color: var(--muted);
	font-style: italic;
}

/* Rundgang */
.rundgang {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	align-items: start;
	gap: 40px clamp(28px, 4vw, 64px);
}
.rundgang__gruppe + .rundgang__gruppe {
	margin-top: 26px;
}
.rundgang__gruppe h3 {
	padding-bottom: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--accent);
}
.rundgang button {
	display: block;
	width: 100%;
	padding: 9px 0 9px 16px;
	text-align: left;
	background: none;
	border: 0;
	border-left: 2px solid var(--line);
	cursor: var(--z-hand);
	color: var(--muted);
	transition: color 0.2s, border-color 0.2s;
}
.rundgang button strong {
	display: block;
	font-weight: 500;
}
.rundgang button span {
	display: none;
	padding-top: 4px;
	font-size: 0.9375rem;
	color: var(--muted);
}
.rundgang button:hover {
	color: var(--fg);
}
.rundgang button[aria-pressed='true'] {
	color: var(--fg);
	border-left-color: var(--fg);
}
.rundgang button[aria-pressed='true'] strong {
	font-weight: 600;
}
.rundgang button[aria-pressed='true'] span {
	display: block;
}
.rundgang__bild {
	position: sticky;
	top: calc(var(--top-h) + 20px);
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--mist);
	box-shadow: 0 24px 70px rgba(19, 21, 23, 0.12);
}
.rundgang__bild img {
	width: 100%;
	transition: opacity 0.25s;
}
.rundgang__bild img[data-wechsel] {
	opacity: 0;
}

/* Produktbild auf der Seite Service & Support */
.portalbild {
	max-width: 1180px;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--mist);
	box-shadow: 0 24px 70px rgba(19, 21, 23, 0.12);
}
.portalbild img {
	width: 100%;
}

/* Schritte */
.schritte {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	counter-reset: schritt;
}
.schritte li {
	padding-top: 20px;
	border-top: 1px solid var(--fg);
	counter-increment: schritt;
}
.schritte li::before {
	content: counter(schritt, decimal-leading-zero);
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--accent);
}
.schritte h3 {
	margin: 10px 0 8px;
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.015em;
}
.schritte p {
	color: var(--muted);
}

.zwei {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: 40px clamp(32px, 6vw, 96px);
}
.zwei__text p {
	margin-top: 16px;
	max-width: 46ch;
	font-size: 1.0625rem;
	color: var(--muted);
}
.zwei .karte {
	justify-self: end;
}

.grundsaetze {
	margin-top: clamp(40px, 7vh, 72px);
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 12px 40px;
}
.grundsaetze h3 {
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.015em;
}
.grundsaetze li {
	position: relative;
	max-width: 62ch;
	padding: 0 0 14px 26px;
}
.grundsaetze li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 14px;
	height: 1px;
	background: var(--accent);
}

.aussage {
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.aussage__text {
	max-width: 58ch;
	margin: 22px auto 0;
	font-size: 1.0625rem;
	color: var(--muted);
}
.aussage--dunkel,
.aussage--dunkel + .aussage__text {
	text-align: center;
}
.aussage__actions {
	margin-top: 36px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 20px;
}

/* Formular */
.formular {
	max-width: 820px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 24px;
}
.feld--breit,
.formular__ende,
.formular__hinweis {
	grid-column: 1 / -1;
}
.feld label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted);
}
.feld label span {
	font-weight: 400;
	opacity: 0.8;
}
.feld :is(input, select, textarea) {
	width: 100%;
	height: 48px;
	padding: 11px 14px;
	font: inherit;
	color: var(--ink);
	background: var(--mist);
	border: 1px solid transparent;
	border-radius: 2px;
	transition: border-color 0.2s, background-color 0.2s;
}
.feld textarea {
	height: auto;
	resize: vertical;
}
.feld :is(input, select, textarea):hover {
	border-color: #c3cccd;
}
.feld :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--ink);
	background: #fff;
}
.feld [aria-invalid='true'] {
	border-color: #c4314b;
}
.feld__fehler,
.formular__hinweis {
	margin-top: 6px;
	font-size: 0.875rem;
	color: #b3243f;
}
.feld--falle {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.formular__ende {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 6px;
}
.formular__ende p {
	flex: 1 1 280px;
	font-size: 0.875rem;
	color: var(--muted);
}

/* Prüfung: Statuszeile unter dem Formular */
.pruefung {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: -6px 0 0;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.01em;
	color: var(--muted);
}
.pruefung__zeichen {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	opacity: 0.7;
}
.pruefung__zeichen::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--aurora);
	transform: scale(0.6);
	transition: transform 0.3s var(--ease);
}
.pruefung[data-zustand='laeuft'] .pruefung__zeichen {
	border-color: currentColor transparent currentColor currentColor;
	animation: pruefung-dreht 0.9s linear infinite;
}
.pruefung[data-zustand='fertig'] .pruefung__zeichen {
	opacity: 1;
	border-color: var(--accent);
}
.pruefung[data-zustand='fertig'] .pruefung__zeichen::after {
	transform: scale(1);
}
@keyframes pruefung-dreht {
	to {
		transform: rotate(360deg);
	}
}

/* Prüfung: Schiebe-Puzzle, nur bei Verdacht */
.raetsel {
	margin: 4px 0 0;
	padding: 26px 28px 24px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	background: var(--mist);
	min-width: 0;
}
.raetsel__titel {
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 6px;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
.raetsel__hinweis {
	clear: both;
	margin: 0 0 18px;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--fg);
}
.raetsel__puzzle {
	display: none;
	max-width: 400px;
}
.raetsel--aktiv .raetsel__puzzle {
	display: block;
}
.raetsel__aufgabe {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: var(--muted);
}
.raetsel__bild {
	position: relative;
	overflow: hidden;
	aspect-ratio: 2 / 1;
	background: var(--night);
	border-radius: 2px;
	box-shadow: 0 1px 0 rgba(19, 21, 23, 0.06), 0 12px 32px -18px rgba(19, 21, 23, 0.45);
	touch-action: none;
}
.raetsel__bild img {
	display: block;
	-webkit-user-drag: none;
	user-select: none;
}
.raetsel__grund {
	width: 100%;
	height: 100%;
}
.raetsel__teil {
	position: absolute;
	left: 0;
	top: 0;
	width: 17.5%;
	height: auto;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
	will-change: transform;
}
.raetsel__regler {
	--daumen: 70px;
	display: block;
	width: 100%;
	height: 40px;
	margin: 14px 0 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: grab;
}
.raetsel__regler:active {
	cursor: grabbing;
}
.raetsel__regler::-webkit-slider-runnable-track {
	height: 40px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(19, 21, 23, 0.12) 11px 12px) center / 100% 2px no-repeat,
		#fff;
	border: 1px solid var(--line);
}
.raetsel__regler::-moz-range-track {
	height: 40px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(19, 21, 23, 0.12) 11px 12px) center / 100% 2px no-repeat,
		#fff;
	border: 1px solid var(--line);
}
.raetsel__regler::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: var(--daumen);
	height: 38px;
	border: 0;
	border-radius: 2px;
	background: var(--ink) url('/img/regler.svg') center / 22px no-repeat;
	transition: background-color 0.2s;
}
.raetsel__regler::-moz-range-thumb {
	width: var(--daumen);
	height: 38px;
	border: 0;
	border-radius: 2px;
	background: var(--ink) url('/img/regler.svg') center / 22px no-repeat;
}
[data-bewegt] .raetsel__regler::-webkit-slider-thumb {
	background-color: var(--kern);
}
[data-bewegt] .raetsel__regler::-moz-range-thumb {
	background-color: var(--kern);
}
.raetsel__regler:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
.raetsel__wege {
	display: none;
	margin-top: 12px;
}
.raetsel--aktiv .raetsel__wege {
	display: block;
}
.raetsel__neu {
	height: 40px;
	padding: 0 14px;
	font: inherit;
	font-size: 0.8125rem;
	color: var(--fg);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 2px;
	cursor: var(--z-hand);
}
.raetsel__neu:hover {
	border-color: var(--fg);
}
.raetsel__text {
	margin-top: 16px;
	max-width: 400px;
}
.raetsel__text summary {
	font-size: 0.875rem;
	color: var(--fg);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
	cursor: var(--z-hand);
}
.raetsel__text .feld {
	margin-top: 12px;
}
.raetsel__text input {
	max-width: 160px;
	background: #fff;
}

/* ------------------------------------------------------------ Standards, Rollen, Fragen, Sprungleiste */

.normen {
	padding: clamp(36px, 6vh, 56px) 0;
	border-block: 1px solid var(--line);
}
.normen__titel {
	margin-bottom: 20px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	color: var(--accent);
}
.normen ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 28px;
}
.normen li {
	padding-top: 14px;
	border-top: 1px solid var(--fg);
	font-size: 0.875rem;
	color: var(--muted);
}
.normen strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: var(--fg);
	white-space: nowrap;
}

.normen__fuss {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
	color: var(--muted);
}
.normen__fuss span,
.normen__fuss a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.normen__fuss a {
	color: var(--fg);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 4px;
}
.normen__fuss svg,
.vertrauen svg {
	flex: none;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Vertrauen: Rechenzentrum, Datenschutz, GoBD, Updates */
.vertrauen {
	padding: clamp(28px, 5vh, 44px) 0;
	border-bottom: 1px solid var(--line);
}
.vertrauen ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 36px;
}
.vertrauen li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px 14px;
	align-items: start;
}
.vertrauen strong {
	line-height: 22px;
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--fg);
}
.vertrauen span {
	grid-column: 2;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted);
}

.sprung {
	position: sticky;
	top: var(--top-h);
	z-index: 40;
	padding: 0 var(--gutter);
	background: #fff;
	border-bottom: 1px solid #d8dedf;
	overflow-x: auto;
}
.sprung ul {
	width: min(1200px, 100%);
	margin-inline: auto;
	display: flex;
	gap: 4px;
}
.sprung a {
	display: block;
	padding: 14px 14px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #57656a;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}
.sprung li:first-child a {
	padding-left: 0;
}
.sprung a:hover {
	color: var(--ink);
}

.rollen {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px clamp(24px, 3vw, 44px);
}
.rollen figure {
	aspect-ratio: 16 / 10;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(19, 21, 23, 0.1);
	transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.rollen article:hover figure {
	transform: translateY(-6px);
	box-shadow: 0 28px 70px rgba(19, 21, 23, 0.16);
}
.rollen img {
	width: 100%;
}
.rollen h3 {
	margin: 24px 0 10px;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}
.rollen li {
	padding: 10px 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.fragen {
	border-top: 1px solid var(--fg);
}
.fragen details {
	border-bottom: 1px solid var(--line);
}
.fragen summary {
	position: relative;
	padding: 22px 48px 22px 0;
	font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	list-style: none;
	cursor: var(--z-hand);
}
.fragen summary::-webkit-details-marker {
	display: none;
}
.fragen summary::before,
.fragen summary::after {
	content: '';
	position: absolute;
	right: 6px;
	top: 50%;
	width: 16px;
	height: 1.5px;
	background: var(--fg);
	transition: transform 0.3s var(--ease);
}
.fragen summary::after {
	transform: rotate(90deg);
}
.fragen details[open] summary::after {
	transform: none;
}
.fragen p {
	max-width: 72ch;
	padding: 0 48px 26px 0;
	color: var(--muted);
}

/* ------------------------------------------------------------ Fußzeile */

.foot {
	padding: clamp(48px, 8vh, 80px) var(--gutter) 28px;
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
}
.foot__inner {
	width: min(1200px, 100%);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
}
.foot__marke p {
	max-width: 30ch;
	margin: 14px 0 22px;
	color: var(--muted);
}
.foot__marke .btn {
	min-width: 0;
}
.foot__spalte h2 {
	margin-bottom: 14px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--accent);
}
.foot__spalte li + li {
	margin-top: 9px;
}
.foot a:not(.btn) {
	text-decoration: none;
	color: var(--muted);
	transition: color 0.2s;
}
.foot a:not(.btn):hover,
.foot .foot__brand {
	color: var(--fg);
}
.foot__note {
	width: min(1200px, 100%);
	margin: clamp(36px, 6vh, 56px) auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
}
.foot__kanaele {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-family: var(--mono);
}
.page-hero .kanaele {
	margin-top: 14px;
	color: var(--muted);
}
.page-hero .kanaele a {
	color: inherit;
}
.page-hero .kanaele a:hover {
	color: var(--fg);
}

/* ------------------------------------------------------------ Kleine Bildschirme */

@media (max-width: 1140px) {
	.top {
		grid-template-columns: 1fr auto;
	}
	.top__nav,
	.top__cta {
		display: none;
	}
	.top__menu {
		display: block;
	}
	.section__head,
	.liste__zeile,
	.grundsaetze,
	.zwei,
	.rundgang {
		grid-template-columns: minmax(0, 1fr);
	}
	.zwei .karte {
		justify-self: stretch;
	}
	.rundgang__bild {
		order: -1;
		top: calc(var(--top-h) + 8px);
		z-index: 2;
	}
	.schritte {
		grid-template-columns: 1fr 1fr;
	}
	.normen ul,
	.vertrauen ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.rollen {
		grid-template-columns: minmax(0, 1fr);
	}
	.foot__inner {
		grid-template-columns: 1fr 1fr;
	}
	.foot__marke {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.panel__cta {
		flex-direction: column;
		align-items: stretch;
	}
	.panel__cta .btn,
	.aussage__actions .btn {
		width: 100%;
	}
	.hero-shot {
		align-items: flex-start;
	}
	.szene,
	.story__rahmen {
		width: 190%;
		max-width: none;
	}
	.szene__teil--links {
		left: 3vw;
		top: 46%;
	}
	.szene__teil--rechts {
		right: auto;
		left: 40vw;
		top: 12%;
	}
	.story__marken button {
		padding-inline: 12px;
	}
	.aufbau,
	.lesen {
		flex-direction: column;
	}
	.stapel {
		margin-block: 84px 20px;
	}
	.anpass {
		margin-right: 0;
	}
	.anpass__brief {
		display: none;
	}
	.netz {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
	.netz__linien {
		display: none;
	}
	.netz__seite li {
		margin: 0 0 8px;
	}
	.netz__mitte {
		order: -1;
	}
	.lesen .vorschlag {
		margin-top: -70px;
		position: relative;
		z-index: 2;
	}
	.umzug {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.umzug__pfeil {
		display: none;
	}
	.abgleich {
		padding: 18px 16px;
	}
	.abgleich table {
		font-size: 0.75rem;
	}
	.abgleich th,
	.abgleich td {
		padding-left: 6px;
	}
	.abgleich tbody th,
	.abgleich td:last-child {
		white-space: normal;
	}
	.abgleich__ok,
	.abgleich__klaeren {
		padding: 2px 5px;
		font-size: 0.6875rem;
	}
	.kette {
		grid-template-columns: 1fr;
		width: min(420px, 100%);
	}
	.kette::before {
		inset: 0 auto 0 5px;
		width: 1px;
		height: auto;
		transform-origin: top;
	}
	.js .kette[data-reveal]::before {
		transform: scaleY(0);
	}
	.kette li {
		padding: 0 0 26px 34px;
		gap: 2px;
	}
	.kette li:last-child {
		padding-bottom: 0;
	}
	.kette li::before {
		top: 8px;
	}
	.kette__info {
		max-width: none;
	}
	.beleg {
		flex-direction: column;
		align-items: center;
		gap: 0;
		width: 100%;
	}
	.papier {
		--w: min(340px, 84vw);
		height: calc(var(--w) * 0.95);
	}
	.xml {
		margin: -40px 0 0 0;
		max-width: 100%;
		width: 100%;
		font-size: 0.625rem;
		padding: 16px 18px;
	}
	.schicht {
		grid-template-columns: 1fr;
	}
	.karte__felder > div {
		grid-template-columns: 1fr auto;
		gap: 2px 12px;
	}
	.karte__felder dt {
		grid-column: 1 / -1;
		font-size: 0.875rem;
	}
	.index a {
		grid-template-columns: 4ch 1fr;
	}
	.index__text {
		grid-column: 2;
	}
	.schritte,
	.formular {
		grid-template-columns: 1fr;
	}
	.normen ul {
		grid-template-columns: 1fr 1fr;
	}
	.vertrauen ul {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pruefung[data-zustand='laeuft'] .pruefung__zeichen {
		animation: none;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.js [data-reveal],
	.js [data-reveal] *,
	.js .kette[data-reveal]::before {
		opacity: 1;
		transform: none;
	}
	.js .story {
		height: auto;
	}
}

@media print {
	.top,
	.menu,
	.panel__cta,
	.foot {
		display: none;
	}
	.panel {
		min-height: 0;
		height: auto;
	}
}

/* Vollflächige Bilder hinter dunklen Tafeln */
.page-hero--bild,
.panel--bild {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #0b0c0d;
}
.page-hero--bild {
	min-height: min(78svh, 760px);
	padding-top: calc(var(--top-h) + clamp(72px, 16vh, 168px));
}
.panel--schluss.panel--bild {
	min-height: 100svh;
	align-content: start;
	padding-top: calc(var(--top-h) + clamp(48px, 10vh, 104px));
}
.page-hero__bild,
.panel__bild {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
}
.panel__bild {
	object-position: 50% 100%;
}
.page-hero--bild::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(11, 12, 13, 0.92) 0%, rgba(11, 12, 13, 0.72) 38%, rgba(11, 12, 13, 0) 68%);
}
.page-hero--bild .page-hero__title {
	max-width: 17ch;
}
.page-hero--bild .page-hero__lead {
	max-width: 46ch;
}
.bildband {
	margin: 0;
	background: #0b0c0d;
}
.bildband img {
	display: block;
	width: 100%;
	height: clamp(260px, 46vw, 620px);
	object-fit: cover;
	object-position: 70% 50%;
}
@media (max-width: 760px) {
	.page-hero--bild::before {
		background: rgba(11, 12, 13, 0.66);
	}
}
.panel--bild > .panel__bild {
	position: absolute;
}

.section__mehr {
	margin-top: 40px;
}
.section__mehr a {
	font-weight: 500;
	text-underline-offset: 4px;
}

.top__cta {
	white-space: nowrap;
}

[hidden] {
	display: none !important;
}

/* Logo in der Fußzeile: volle Helligkeit, damit die Fläche nicht grau wirkt */
.foot .foot__brand .bildmarke {
	color: #f4f1ea;
}

/* ------------------------------------------------------------ Blog */

.blog-kopf .page-hero__title {
	max-width: 18ch;
}
.rubriken {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}
.rubrik {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 2px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fg);
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}
.rubrik:hover {
	border-color: var(--fg);
}
.rubrik--aktiv {
	background: var(--fg);
	border-color: var(--fg);
	color: var(--bg);
}
.blog-liste {
	padding-top: clamp(40px, 7vh, 72px);
}
.blog-leer {
	padding: 48px 0;
	font-size: 1.125rem;
	color: var(--muted);
}
.blog-feed {
	margin-top: 56px;
	font-size: 0.875rem;
}
.blog-feed a {
	color: var(--muted);
	text-underline-offset: 3px;
}

/* Titelbild: sieben Ringe um einen Kern, Farben je Rubrik */
.tb {
	display: block;
	width: 100%;
	height: 100%;
	--tb-grund: #15181b;
	--tb-linie: rgba(255, 255, 255, 0.5);
	--tb-raster: rgba(255, 255, 255, 0.05);
	--tb-akzent: var(--aurora);
}
.tb--migration {
	--tb-grund: #e9e5dc;
	--tb-linie: rgba(19, 21, 23, 0.55);
	--tb-raster: rgba(19, 21, 23, 0.06);
	--tb-akzent: var(--kern);
}
.tb--automatisierung {
	--tb-grund: #0e1012;
	--tb-linie: rgba(255, 106, 43, 0.62);
	--tb-akzent: #fff;
}
.tb--software {
	--tb-grund: #f6f4ef;
	--tb-linie: rgba(19, 21, 23, 0.5);
	--tb-raster: rgba(19, 21, 23, 0.05);
	--tb-akzent: var(--aurora);
}
.tb--praxis {
	--tb-grund: #1d2023;
	--tb-linie: rgba(242, 240, 235, 0.45);
	--tb-akzent: #f2f0eb;
}
.tb__grund {
	fill: var(--tb-grund);
}
.tb__raster {
	stroke: var(--tb-raster);
	stroke-width: 1;
}
.tb__ring {
	fill: none;
	stroke: var(--tb-linie);
	stroke-linecap: round;
}
.tb__ring--akzent {
	stroke: var(--tb-akzent);
}
.tb__punkt {
	fill: var(--tb-linie);
}
.tb__glut {
	fill: var(--aurora);
	opacity: 0.14;
}
.tb__kern {
	fill: var(--aurora);
}
.tb--automatisierung .tb__kern {
	fill: #fff;
}

/* Karten */
.bkarte__link {
	display: grid;
	gap: 20px;
	color: inherit;
	text-decoration: none;
}
.bkarte__bild {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 2px;
	background: var(--mist);
}
.bkarte__bild .tb {
	transition: transform 0.6s var(--ease);
}
.bkarte__link:hover .bkarte__titel {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.bkarte__link:hover .tb {
	transform: scale(1.035);
}
.bkarte__rubrik {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--accent);
}
.bkarte__meta {
	margin-top: 16px;
}
.artikel-meta.bkarte__meta > :first-child {
	color: var(--muted);
}
.bkarte__titel {
	margin-top: 8px;
	font-size: 1.3125rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.018em;
	text-wrap: balance;
}
.bkarte__vorspann {
	margin-top: 10px;
	max-width: 62ch;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bkarte--gross .bkarte__link {
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
}
.bkarte--gross .bkarte__bild {
	aspect-ratio: 16 / 10;
}
.bkarte--gross .bkarte__titel {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}
.bkarte--gross .bkarte__vorspann {
	font-size: 1.0625rem;
	-webkit-line-clamp: 4;
}
.bkarten {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(40px, 5vh, 56px) clamp(20px, 2.6vw, 36px);
}
.bkarte--gross + .bkarten {
	margin-top: clamp(56px, 9vh, 96px);
	padding-top: clamp(40px, 6vh, 64px);
	border-top: 1px solid var(--line);
}
.artikel-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--muted);
}
.artikel-meta > * + *::before {
	content: '\00b7';
	margin: 0 10px;
}
.artikel-meta > :first-child {
	color: var(--accent);
}

/* Artikel */
.beitrag__kopf {
	padding-top: calc(var(--top-h) + clamp(48px, 9vh, 96px));
}
.wrap--beitrag {
	width: min(860px, 100% - 2 * var(--gutter));
}
.beitrag__pfad {
	display: flex;
	gap: 10px;
	margin-bottom: 22px;
	font-size: 0.875rem;
	font-weight: 500;
}
.beitrag__pfad a {
	color: var(--accent);
	text-decoration: none;
}
.beitrag__pfad a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.beitrag__pfad span {
	color: var(--muted);
}
.beitrag__titel {
	font-size: clamp(2.125rem, 4.6vw, 3.75rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.034em;
	text-wrap: balance;
}
.beitrag__vorspann {
	margin-top: 24px;
	font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
	line-height: 1.5;
	color: var(--muted);
	text-wrap: pretty;
}
.beitrag__kopf .artikel-meta {
	margin-top: 28px;
}
.beitrag__bild {
	width: min(1200px, 100% - 2 * var(--gutter));
	margin: clamp(40px, 7vh, 72px) auto 0;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: 2px;
}
.beitrag__rumpf {
	padding: clamp(48px, 8vh, 88px) 0 clamp(72px, 12vh, 128px);
}
.beitrag__raster {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr);
	gap: 48px;
}
.beitrag__rand {
	min-width: 0;
}
.gliederung {
	position: sticky;
	top: calc(var(--top-h) + 32px);
	max-width: 240px;
	margin-left: auto;
}
.gliederung__titel {
	margin-bottom: 12px;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}
.gliederung ol {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--line);
}
.gliederung a {
	display: block;
	padding: 6px 0 6px 16px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--muted);
	text-decoration: none;
}
.gliederung a:hover,
.gliederung a[aria-current] {
	color: var(--fg);
	border-left-color: var(--accent);
}

.prosa {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--fg);
}
.prosa > * + * {
	margin-top: 1.1em;
}
.prosa h2 {
	margin-top: 2.2em;
	font-size: clamp(1.5rem, 2.3vw, 1.875rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.024em;
	scroll-margin-top: calc(var(--top-h) + 24px);
}
.prosa h3 {
	margin-top: 1.8em;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.012em;
	scroll-margin-top: calc(var(--top-h) + 24px);
}
.prosa h2 + *,
.prosa h3 + * {
	margin-top: 0.6em;
}
.prosa > :first-child {
	margin-top: 0;
}
.prosa ul {
	list-style: disc;
	padding-left: 1.3em;
}
.prosa ol {
	list-style: decimal;
	padding-left: 1.5em;
}
.prosa li + li {
	margin-top: 0.45em;
}
.prosa ul li::marker {
	color: var(--accent);
}
.prosa ol li::marker {
	font-family: var(--mono);
	font-size: 0.875em;
	color: var(--accent);
}
.prosa strong {
	font-weight: 600;
}
.prosa a {
	color: inherit;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.prosa code {
	font-family: var(--mono);
	font-size: 0.85em;
	padding: 2px 6px;
	border-radius: 2px;
	background: var(--mist);
}
.prosa blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--aurora);
	font-size: 1.25rem;
	line-height: 1.5;
	letter-spacing: -0.01em;
}
.schlagworte {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin-top: 3em !important;
	padding: 2em 0 0 !important;
	border-top: 1px solid var(--line);
}
.schlagworte li {
	margin: 0 !important;
	padding: 4px 10px;
	border-radius: 2px;
	background: var(--mist);
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--muted);
}
.blog-weiter .section__head {
	margin-bottom: 32px;
}

@media (max-width: 1140px) {
	.beitrag__raster {
		grid-template-columns: minmax(0, 1fr);
		width: min(700px, 100% - 2 * var(--gutter));
	}
	.beitrag__rand {
		display: none;
	}
}
@media (max-width: 900px) {
	.bkarten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bkarte--gross .bkarte__link {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 600px) {
	.bkarten {
		grid-template-columns: minmax(0, 1fr);
	}
	.prosa {
		font-size: 1.0625rem;
	}
	.beitrag__bild {
		aspect-ratio: 16 / 10;
	}
}

/* Mit dem Blog hat die Navigation sieben Punkte: knapp über dem Umbruch etwas enger setzen */
@media (min-width: 1141px) and (max-width: 1320px) {
	.top__nav a {
		padding: 6px 9px;
	}
	.top {
		font-size: 0.875rem;
	}
	.top .top__cta {
		padding: 8px 14px;
	}
}

/* IT & Sicherheit: Sicherheitscheck im Aufbau der Migration */
.umzug--schutz .abgleich__offen td:nth-child(2) {
	color: var(--kern);
	font-weight: 600;
}
.umzug-buehne + .liste {
	margin-top: clamp(40px, 6vw, 72px);
}

/* ------------------------------------------------------------ Videos (Seite Tutorials, Blog) */

.video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 2px;
	background: var(--night);
}
.video__start {
	position: absolute;
	inset: 0;
	display: block;
	color: #fff;
}
.video__start img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease), filter 0.3s;
}
.video__start:hover img {
	transform: scale(1.025);
	filter: brightness(0.9);
}
.video__knopf {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	border-radius: 999px;
	background: var(--aurora);
	color: var(--night);
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.25s var(--ease);
}
.video__knopf svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.video__start:hover .video__knopf,
.video__start:focus-visible .video__knopf {
	transform: scale(1.06);
}
.video__start:focus-visible {
	outline: 3px solid var(--aurora);
	outline-offset: -3px;
}
.video__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.video__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-hinweis {
	margin-top: 28px;
	max-width: 70ch;
	font-size: 0.875rem;
	color: var(--muted);
}
.video-hinweis a {
	color: inherit;
	text-underline-offset: 3px;
}

.vkarten {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(40px, 5vh, 56px) clamp(20px, 2.6vw, 36px);
}
.vkarten--zwei {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vkarte__meta {
	display: flex;
	gap: 0;
	margin-top: 16px;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--muted);
}
.vkarte__meta > :first-child {
	color: var(--accent);
}
.vkarte__meta > * + *::before {
	content: '\00b7';
	margin: 0 10px;
	color: var(--muted);
}
.vkarte__titel {
	margin-top: 6px;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.018em;
	text-wrap: balance;
}
.vkarte__mehr {
	margin-top: 10px;
	font-size: 0.9375rem;
}
.vkarte__mehr a {
	color: var(--fg);
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.vreihe__umfang {
	display: block;
	margin-top: 6px;
	font-family: var(--mono);
	font-size: 0.8125rem;
}

.beitrag__video {
	margin: 1.6em 0 2em;
}
.beitrag__video figcaption {
	margin-top: 10px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted);
}
.beitrag__video figcaption a {
	color: inherit;
}

@media (max-width: 1000px) {
	.vkarten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.vkarten,
	.vkarten--zwei {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (prefers-reduced-motion: reduce) {
	.video__start img,
	.video__knopf {
		transition: none;
	}
}
