/* ════════════════════════════════════════════════════════════════
   IHL Lehr GmbH — fernwaerme.lehr.co.at
   Design-System · Rot / Weiß / Anthrazit · IBM Plex
   Fassung „Normal Plus": drei Radien, zwei Schatten, acht Schriftstufen,
   Rot nur als Akzent, keine Glows, keine Dauerbewegung ohne Pause.
   ════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────── */
@font-face { font-family: 'Plex Sans Fallback'; src: local('Segoe UI'), local('Arial'); size-adjust: 98%; ascent-override: 102%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/plexsans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('../fonts/plexsans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Cond'; src: url('../fonts/plexsanscond-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/plexmono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
	--red:        #e60000;
	--red-deep:   #b30000;
	--red-tint:   #fdeceb;
	--ink:        #0c0e11;
	--ink-2:      #12151b;
	--ink-3:      #1b1f27;
	--ink-line:   #262b35;
	--paper:      #ffffff;
	--paper-2:    #f6f6f8;
	--line:       #e3e5ea;
	--line-strong:#c9ced6;
	--text:       #14181d;
	--text-mid:   #3d434c;
	--text-soft:  #626872;      /* kleine Texte auf hellem Grund, 5,6:1 */
	--text-ondark:#f3f4f6;
	--text-dim:   #a3a9b4;      /* kleine Texte auf dunklem Grund, 7,5:1 */
	--text-dim-2: #8a909b;      /* Nebentexte auf dunklem Grund, 5,4:1 */
	--flow:       #e60000;
	--return:     #8a93a3;
	--font-body:  'Plex Sans', 'Plex Sans Fallback', 'Segoe UI', system-ui, sans-serif;
	--font-disp:  'Plex Cond', 'Arial Narrow', sans-serif;
	--font-mono:  'Plex Mono', 'Consolas', monospace;
	--header-h:   76px;
	--r-sm:       4px;
	--r-md:       8px;
	--r-lg:       16px;
	--shadow-card:  0 1px 2px rgba(12, 14, 17, .05), 0 8px 24px -14px rgba(12, 14, 17, .18);
	--shadow-float: 0 28px 70px -30px rgba(12, 14, 17, .32);
	--ease-out:   cubic-bezier(.19, 1, .22, 1);
	--ease-snap:  cubic-bezier(.65, 0, .35, 1);
	/* Schriftstufen */
	--fs-1: .75rem;    /* 12 */
	--fs-2: .8125rem;  /* 13 */
	--fs-3: .875rem;   /* 14 */
	--fs-4: 1rem;      /* 16 */
	--fs-5: 1.125rem;  /* 18 */
	--fs-6: 1.375rem;  /* 22 */
	--fs-7: 1.75rem;   /* 28 */
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}
body {
	font-family: var(--font-body);
	font-size: var(--fs-5);
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	overflow-x: hidden;
	hyphens: auto;
}
p, li, dd { text-wrap: pretty; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong, b { font-weight: 700; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.accent { color: var(--red); font-style: normal; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
	position: fixed; top: -60px; left: 16px; z-index: 300;
	background: var(--red); color: #fff; padding: 10px 18px; border-radius: var(--r-md);
	text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus-visible { top: 12px; }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: #c6cbd2; border-radius: 6px; border: 2px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--text-mid); }

/* ── Brand lockup ──────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding-block: 1px; }
.brand-mark {
	display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: var(--r-md);
	background: var(--red);
	color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem;
	letter-spacing: .01em;
}
.brand-text {
	display: flex; flex-direction: column; line-height: 1.15;
	font-family: var(--font-disp); font-weight: 700; font-size: 1.12rem; color: var(--text);
}
.brand-text small { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-1); letter-spacing: .02em; color: var(--text-soft); }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 250;
	transition: background .3s, box-shadow .3s;
}
.header-inner {
	width: min(1320px, calc(100% - 40px)); margin-inline: auto;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a:not(.btn) {
	position: relative; display: block; padding: 10px 14px;
	text-decoration: none; font-size: var(--fs-4); font-weight: 400;
	color: var(--text-mid); transition: color .2s;
}
.main-nav a:not(.btn)::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px;
	height: 2px; background: var(--red); opacity: 0; transition: opacity .2s;
}
.main-nav a:not(.btn):hover::after, .main-nav a.is-active:not(.btn)::after { opacity: 1; }
.main-nav a:not(.btn):hover, .main-nav a.is-active:not(.btn) { color: var(--text); }
.nav-legal, .nav-direct { display: none; }
.nav-cta-wrap { margin-left: 10px; }
.site-header.is-scrolled, html:not(.js) .site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-dark { background: var(--ink); box-shadow: 0 1px 0 var(--ink-line); }
.site-header.is-dark .brand-text, .site-header.is-dark .main-nav a:not(.btn):hover, .site-header.is-dark .main-nav a.is-active:not(.btn) { color: #fff; }
.site-header.is-dark .brand-text small, .site-header.is-dark .main-nav a:not(.btn) { color: var(--text-dim); }
.site-header.is-dark .motion-toggle { background: var(--ink-2); border-color: var(--ink-line); color: var(--text-dim); }
.site-header.is-dark .motion-toggle:hover { color: #fff; }
.site-header.is-dark .nav-toggle span:not(.sr-only) { background: #fff; }
.header-tools { display: flex; align-items: center; gap: 6px; }

.motion-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 12px; border-radius: var(--r-md);
	border: 1px solid var(--line); background: var(--paper);
	font-size: var(--fs-2); color: var(--text-mid);
	transition: border-color .2s, color .2s;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.motion-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.motion-toggle .ic-play { display: none; }
.motion-toggle[aria-pressed="true"] .ic-play { display: block; }
.motion-toggle[aria-pressed="true"] .ic-pause { display: none; }
.motion-label { white-space: nowrap; }

.nav-toggle {
	display: none; position: relative; z-index: 271;
	width: 46px; height: 46px; border-radius: var(--r-md);
	flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-snap); }
body.nav-open .nav-toggle span:not(.sr-only):first-child { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle span:not(.sr-only):nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 28px; border-radius: var(--r-md);
	font-weight: 700; font-size: var(--fs-4); text-decoration: none; line-height: 1.2;
	transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 10px 20px; font-size: var(--fs-3); }
.btn-lg { padding: 17px 34px; font-size: var(--fs-5); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-deep); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--text); }
.btn-arrow { display: inline-block; transition: transform .15s; }
.btn:hover .btn-arrow, .product-cta:hover .btn-arrow { transform: translateX(3px); }

/* ── Eyebrow / Sektionsköpfe ───────────────────────────────────── */
.eyebrow {
	display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
	font-weight: 700; font-size: var(--fs-2); letter-spacing: .1em; text-transform: uppercase;
	color: var(--text-mid);
}
.eyebrow .eb-fix { white-space: nowrap; }
.eyebrow .index { color: var(--red-deep); font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }
.eyebrow-dot { align-self: center; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-light { background: var(--paper); }
/* Zwei helle Abschnitte direkt hintereinander: feine Trennlinie */
.section-light + .section-light { border-top: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--text-ondark); }
.section-alt { background: var(--paper-2); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; }
.section-head-sm { margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
	font-family: var(--font-disp); font-weight: 700;
	font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em;
	text-wrap: balance;
}
.section-head .lead { margin-top: 18px; max-width: 64ch; font-size: var(--fs-5); line-height: 1.6; color: var(--text-mid); }
.section-dark .section-head .lead { color: #b9c0ca; }
.section-dark .eyebrow { color: var(--text-dim); }
.section-dark .eyebrow .index { color: #ff5a4a; }

/* ── Reveal (dezent, nur Sektionsköpfe und Visuals) ────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js [data-reveal].is-in, .js.reveal-done [data-reveal] { opacity: 1; transform: none; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: center;
	background: #fafbfc; color: var(--text);
	overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
	position: relative; z-index: 2;
	width: min(1200px, calc(100% - 48px)); margin-inline: auto;
	padding: calc(var(--header-h) + 48px) 0 72px;
}
.hero-eyebrow { color: var(--text-mid); }
.hero-title {
	margin: 26px 0 24px;
	font-family: var(--font-disp); font-weight: 700;
	font-size: clamp(2.6rem, 6.6vw, 5rem);
	line-height: 1.03; letter-spacing: -.015em;
	color: var(--text);
	text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-sub { max-width: 620px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--text-mid); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-index { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-3); }
.hero-index a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mid); text-decoration: none; padding: 4px 0; }
.hero-index a:hover, .hero-index a:focus-visible { color: var(--text); }
.hero-index .pcode { font-size: var(--fs-1); padding: 1px 6px; }
.hero-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
	margin-top: 28px; padding-top: 26px;
	border-top: 1px solid var(--line);
}
.hero-stats .stat dt { font-size: var(--fs-2); font-weight: 400; color: var(--text-mid); margin-bottom: 4px; }
.hero-stats .stat dd { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stats .unit { color: var(--text-mid); }

/* Orchestrierte Ladesequenz (nur mit JS, nicht bei reduzierter Bewegung) */
@keyframes seq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .seq { animation: seq-in .55s var(--ease-out) both; }
.js .seq-1 { animation-delay: .05s; }
.js .seq-2 { animation-delay: .15s; }
.js .seq-3 { animation-delay: .27s; }
.js .seq-4 { animation-delay: .42s; }
.js .seq-5 { animation-delay: .52s; }
.js .seq-6 { animation-delay: .66s; }
.js .seq-7 { animation-delay: .78s; }

/* ── Leistungen ────────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 6vw, 96px); }
.service { position: relative; padding-top: 28px; border-top: 2px solid var(--text); }
.service + .service::before { content: ''; position: absolute; left: calc(-1 * clamp(20px, 3vw, 48px)); top: 28px; bottom: 0; width: 1px; background: var(--line); }
.service h3 { font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-7); margin-bottom: 16px; }
.service p { color: var(--text-mid); font-size: var(--fs-4); margin-bottom: 12px; }
.service strong { color: var(--text); }
.service-list { list-style: none; margin: 0 0 14px; display: grid; gap: 8px; }
.service-list li { position: relative; padding-left: 22px; color: var(--text-mid); font-size: var(--fs-4); }
.service-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--red); }
.service-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-2); color: var(--text-soft); letter-spacing: .01em; }

/* ── Produkte: Tabs ────────────────────────────────────────────── */
.product-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.ptab {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 12px 20px; border: 1.5px solid var(--line); border-radius: var(--r-md);
	background: var(--paper); text-align: left;
	transition: border-color .15s, background .15s;
}
.ptab-code { font-family: var(--font-mono); font-size: var(--fs-1); letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); }
.ptab-name { font-weight: 700; font-size: var(--fs-3); color: var(--text); line-height: 1.3; }
.ptab:hover, .ptab:focus-visible { border-color: var(--text); }
.ptab.is-active { background: var(--ink); border-color: var(--ink); }
.ptab.is-active .ptab-name { color: #fff; }
.ptab.is-active .ptab-code { color: #ff4d3d; }
html:not(.js) .product-tabs { display: none; }

.product-panel {
	display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: clamp(36px, 5vw, 70px); align-items: center;
}
.product-panel[hidden] { display: none; }
.product-tabs { scroll-margin-top: calc(var(--header-h) + 24px); }
html:not(.js) .product-panel + .product-panel { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.product-panel.is-entering .product-copy, .product-panel.is-entering .product-visual { animation: panel-in .35s var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.product-copy h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.15; margin-bottom: 18px; }
.pcode { font-family: var(--font-mono); font-weight: 500; font-size: .72em; letter-spacing: .04em; color: var(--red-deep); padding: 2px 8px; border: 1px solid #f1c7c4; border-radius: var(--r-sm); background: var(--red-tint); }
.product-copy p { color: var(--text-mid); margin-bottom: 14px; font-size: var(--fs-4); }
.product-copy strong { color: var(--text); }

.check-list { list-style: none; margin: 6px 0 16px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-mid); font-size: var(--fs-4); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: var(--r-sm); background: var(--text); }
.check-list li::after { content: ''; position: absolute; left: 4.5px; top: 9px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

.modules-label { margin-top: 24px; margin-bottom: 8px; font-size: var(--fs-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid); }
.module-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: var(--fs-3); color: var(--text-mid); }
.module-list li { position: relative; padding-left: 14px; }
.module-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.product-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; font-size: var(--fs-4); color: var(--text); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.product-cta:hover, .product-cta:focus-visible { color: var(--red); }

/* ── Produkte: Mockups (gemeinsame App-Hülle) ──────────────────── */
.mock {
	border-radius: var(--r-lg); overflow: hidden;
	box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
	background: var(--paper);
	font-size: var(--fs-1); line-height: 1.35; color: var(--text);
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ink); color: var(--text-dim); font-family: var(--font-mono); }
.mb-app { font-weight: 500; color: #fff; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--ink-line); border-radius: var(--r-sm); }
.mb-path { color: var(--text-dim); }
.mb-demo { margin-left: auto; font-size: var(--fs-1); letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim-2); border: 1px solid var(--ink-line); padding: 2px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.mock-body { background: var(--paper-2); min-height: 380px; }
.mock .lbl { font-family: var(--font-mono); font-size: var(--fs-1); letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.mock .bar { display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.mock .bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 50%); background: var(--red); }

/* wdm */
.mock-wdm { display: grid; grid-template-columns: 112px 1fr; }
.mock-side { background: var(--ink-2); padding: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.ms-item { padding: 8px 14px; font-size: var(--fs-1); color: var(--text-dim); border-left: 2px solid transparent; }
.ms-item.is-on { color: #fff; border-left-color: var(--red); background: var(--ink-3); }
.mock-main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.mm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 5px; }
.kpi strong { font-family: var(--font-disp); font-size: clamp(.95rem, 2.4vw, 1.15rem); line-height: 1.1; white-space: nowrap; }
.mm-gantt { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 8px; }
.g-head { display: grid; grid-template-columns: 150px repeat(4, 1fr); font-family: var(--font-mono); font-size: var(--fs-1); color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.g-head span:not(:first-child) { text-align: center; }
.g-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; height: 20px; }
.g-name { font-size: var(--fs-1); color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bar { position: relative; display: block; height: 10px; background: var(--paper-2); border-radius: 2px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 25% 100%; background-position: -1px 0; }
.g-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 2px; background: var(--red); }
.g-bar.alt::after { background: var(--ink-3); }
.mm-table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 12px; }
.t-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 6px 0; font-size: var(--fs-1); color: var(--text-mid); border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.t-row.t-head { border-top: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.t-row span:first-child { color: var(--text); }

/* Prüfungen */
.mock-pruef { padding: 14px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; align-content: start; }
.mp-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; background: var(--ink); border-radius: var(--r-md); color: #fff; }
.mp-head strong { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }
.mp-head span { font-size: var(--fs-1); color: var(--text-dim); }
.mp-list { display: grid; gap: 8px; align-content: start; }
.mp-item { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 12px; }
.mp-item .tick { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; }
.mp-item.is-done .tick { background: var(--text); border-color: var(--text); }
.mp-item.is-done .tick::after { content: ''; position: absolute; left: 3.5px; top: 3.5px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.mp-item.is-due .tick { border-color: var(--red); }
.mp-item strong { display: block; font-size: var(--fs-2); line-height: 1.3; }
.mp-item span:not(.tick) { font-size: var(--fs-1); color: var(--text-soft); }
.mp-item.is-due span:not(.tick) { color: var(--red-deep); }
.mp-cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; align-self: start; }
.mpc-head { font-family: var(--font-mono); font-size: var(--fs-1); letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.mpc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: var(--fs-1); color: var(--text-soft); text-align: center; margin-bottom: 4px; }
.mpc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mpc-grid span { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--paper-2); position: relative; font-size: 10px; line-height: 1; color: var(--text-soft); display: grid; place-items: start end; padding: 3px 4px; font-variant-numeric: tabular-nums; }
.mpc-grid span:empty { background: transparent; }
.mpc-grid .dot::after { content: ''; position: absolute; left: 4px; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-mid); }
.mpc-grid .dot.hot::after { background: var(--red); }

/* Phone / adm */
.mock-phone {
	width: min(300px, 78%); margin-inline: auto; border-radius: 40px;
	border: 8px solid var(--ink); background: var(--ink);
	box-shadow: var(--shadow-float);
	position: relative; font-size: var(--fs-1);
}
.phone-notch { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); width: 72px; height: 20px; border-radius: 10px; background: var(--ink); }
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--paper-2); display: flex; flex-direction: column; height: 540px; position: relative; }
.pa-top { display: flex; align-items: center; justify-content: space-between; margin: 42px 14px 0; }
.pa-app { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pa-top .mb-demo { border-color: var(--line-strong); color: var(--text-soft); margin-left: 0; }
.pa-search { margin: 10px 14px; padding: 9px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-1); color: var(--text-soft); }
.pa-map {
	flex: 1; margin: 0 14px; border-radius: var(--r-md); position: relative; overflow: hidden;
	background:
		linear-gradient(rgba(23, 26, 31, .05) 1.5px, transparent 1.5px) 0 0 / 100% 34px,
		linear-gradient(90deg, rgba(23, 26, 31, .05) 1.5px, transparent 1.5px) 0 0 / 34px 100%,
		linear-gradient(160deg, #eef0f3, #e6e9ee 55%, #eceef2);
}
.pa-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.pa-trace path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #c9d0db; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(12, 14, 17, .3); }
.pin-plant { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 2px; background: var(--red); }
.pin-sub { background: #fff; border: 2px solid var(--text); }
.pin.is-sel { background: var(--red); width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--red); }
.pa-card { margin: 12px 14px; padding: 11px 14px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.pa-card strong { display: block; font-size: var(--fs-2); }
.pa-card span { font-size: var(--fs-1); color: var(--red-deep); }
.pa-nav { display: flex; justify-content: space-around; padding: 10px 12px 14px; font-size: var(--fs-1); color: var(--text-soft); }
.pa-nav span { padding: 5px 8px; border-radius: var(--r-sm); }
.pa-nav span.is-on { background: var(--text); color: #fff; }

/* acc */
.mock-acc { padding: 14px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: stretch; }
.ma-doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 8px; align-content: start; align-self: start; }
.ma-doc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ma-doc-head strong { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; font-size: var(--fs-2); }
.badge-paid { font-size: var(--fs-1); letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--text-mid); border: 1px solid var(--line); }
.ma-pos { display: grid; grid-template-columns: 1.6fr 1fr .9fr; gap: 6px; font-size: var(--fs-1); color: var(--text-mid); padding: 4px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ma-pos span:last-child { text-align: right; }
.ma-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--text); padding-top: 10px; margin-top: 4px; }
.ma-total span { font-family: var(--font-mono); font-size: var(--fs-1); letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.ma-total strong { font-family: var(--font-disp); font-size: var(--fs-6); }
.ma-side { display: grid; gap: 12px; grid-template-rows: 1fr auto; }
.ma-chart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 12px 8px; display: grid; grid-template-rows: 1fr auto; gap: 6px; min-height: 150px; }
.ma-bars { display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.ma-bars i { flex: 1; height: var(--h, 40%); border-radius: 2px 2px 0 0; background: var(--line-strong); }
.ma-bars i.hot { background: var(--red); }
.ma-axis { display: flex; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-1); color: var(--text-soft); }
.ma-axis span { flex: 1; text-align: center; }
.ma-status { display: grid; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.ma-status .st { display: flex; align-items: center; gap: 8px; font-size: var(--fs-1); color: var(--text-mid); }
.ma-status .d { width: 8px; height: 8px; border-radius: 50%; }
.d-open { background: var(--line-strong); } .d-paid { background: var(--red); } .d-dun { background: var(--ink); }

/* tme */
.mock-tme { padding: 14px; display: grid; gap: 12px; align-content: start; }
.mt-clock { display: flex; align-items: baseline; gap: 12px; background: var(--ink); border-radius: var(--r-md); padding: 14px 18px; }
.mt-clock strong { font-family: var(--font-disp); font-size: 2rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.mt-clock span { font-family: var(--font-mono); font-size: var(--fs-1); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.mt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.mt-day { display: grid; gap: 6px; justify-items: center; }
.mt-day .bar { width: 100%; max-width: 26px; height: 92px; border-radius: 3px; background: linear-gradient(to top, var(--red) var(--h, 0%), var(--paper-2) var(--h, 0%)); overflow: visible; }
.mt-day .bar::after { display: none; }
.mt-day .bar.half { background: linear-gradient(to top, var(--red-deep) var(--h, 0%), var(--paper-2) var(--h, 0%)); }
.mt-day .lbl { text-transform: none; letter-spacing: 0; }
.mt-day.off .lbl { opacity: .5; }
.mt-log { list-style: none; display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.mt-log li { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-1); color: var(--text-mid); }
.mt-log li span:last-child { color: var(--text-soft); font-family: var(--font-mono); white-space: nowrap; }

/* ── Unternehmen ───────────────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.company-facts { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact-person { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cp-avatar {
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-md);
	background: var(--red); color: #fff;
	font-family: var(--font-disp); font-weight: 700; font-size: 1.3rem;
}
.contact-person b { display: block; font-size: var(--fs-5); }
.contact-person span { font-size: var(--fs-2); color: var(--text-soft); }
.facts { display: grid; gap: 12px; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: var(--fs-3); padding-top: 12px; border-top: 1px solid var(--line); }
.facts dt { color: var(--text-soft); }
.facts dd { color: var(--text); }
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; counter-reset: why; }
.why-list li { padding: 20px 0 22px; border-top: 1px solid var(--line-strong); }
.why-list h3 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-disp); font-weight: 700; font-size: var(--fs-6); color: var(--text); margin-bottom: 6px; }
.why-list h3::before { counter-increment: why; content: counter(why, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-1); color: var(--text-soft); letter-spacing: .06em; }
.why-list p { font-size: var(--fs-3); color: var(--text-mid); }

/* ── Kontakt ───────────────────────────────────────────────────── */
.section-contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-lines { list-style: none; display: grid; gap: 18px; }
.contact-lines li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-mid); font-size: var(--fs-4); }
.contact-lines a { color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--red); transition: color .15s; }
.contact-lines a:hover, .contact-lines a:focus-visible { color: var(--red); }
.cl-ic { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 30px; color: var(--text-soft); }
.cl-ic svg { width: 20px; height: 20px; }
.next-steps { list-style: none; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; counter-reset: steps; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; font-size: var(--fs-3); }
.next-steps li::before { counter-increment: steps; content: counter(steps); grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--text); font-family: var(--font-mono); font-size: var(--fs-1); color: var(--text); }
.next-steps strong { color: var(--text); }
.next-steps span { color: var(--text-mid); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 44px); }
.form-required { font-size: var(--fs-2); color: var(--text-soft); margin-bottom: 18px; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ff { display: flex; flex-direction: column; margin-bottom: 18px; }
.ff label { margin-bottom: 7px; color: var(--text); font-size: var(--fs-3); font-weight: 700; }
.ff input, .ff textarea {
	width: 100%; padding: 13px 16px; font: inherit; color: var(--text);
	background: var(--paper); border: 1px solid #8a919e; border-radius: var(--r-md);
	transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.ff input:focus, .ff textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.ff.has-error input, .ff.has-error textarea { border-color: var(--red); background: var(--red-tint); }
.ff-error { margin-top: 6px; font-size: var(--fs-2); color: var(--red-deep); }
.ff-error[hidden] { display: none; }
.form-privacy { font-size: var(--fs-3); color: var(--text-mid); margin: 4px 0 22px; }
.form-privacy a { color: var(--text); font-weight: 700; }
.form-status { margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-md); font-size: var(--fs-3); font-weight: 700; background: var(--red-tint); color: var(--red-deep); }
.form-status[hidden] { display: none; }

/* ── Rechtliches ───────────────────────────────────────────────── */
.section-legal { background: var(--paper-2); }
.section-legal + .section-legal { padding-top: 0; }
.section-legal .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: 0; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(28px, 4vw, 60px); max-width: 1000px; }
.legal-block h3, .legal-prose h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-3); color: var(--text); margin: 24px 0 6px; }
.legal-block h3:first-child, .legal-prose h3:first-child { margin-top: 0; }
.legal-block p, .legal-prose p { color: var(--text-mid); font-size: var(--fs-4); margin-bottom: 12px; }
.legal-block a, .legal-prose a { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); transition: color .15s; }
.legal-block a:hover, .legal-prose a:hover { color: var(--red); }
.legal-prose { max-width: 70ch; }
.legal-prose strong { color: var(--text); }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--text-dim); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-line); }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text small { color: var(--text-dim); }
.footer-brand p { margin-top: 18px; font-size: var(--fs-3); max-width: 36ch; }
.footer-col h3 { font-size: var(--fs-2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-ondark); margin-bottom: 14px; }
.footer-col p { font-size: var(--fs-3); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 4px 0; text-decoration: none; font-size: var(--fs-3); color: var(--text-dim); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 22px; }
.footer-bottom p { font-size: var(--fs-2); }
.to-top { display: inline-block; padding: 8px 0; text-decoration: none; font-size: var(--fs-2); color: var(--text-dim); transition: color .15s; }
.to-top:hover { color: #fff; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.product-panel, .contact-grid, .company-grid { grid-template-columns: 1fr; }
	.product-visual { order: -1; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	:root { --header-h: 64px; }
	body { font-size: var(--fs-4); }
	.motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.motion-toggle { width: 40px; padding: 0; justify-content: center; }
	.js .nav-toggle:not([hidden]) { display: flex; }
	/* Mobilmenü nur mit JS als Vollbild; ohne JS bleibt die Liste sichtbar */
	.js .main-nav {
		position: fixed; inset: 0; z-index: 270;
		display: grid; place-items: start stretch;
		overflow-y: auto; background: #fff;
		opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s;
	}
	.js body.nav-open .main-nav { opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 92px 24px 32px; width: 100%; max-width: 480px; margin-inline: auto; }
	.main-nav a:not(.btn) { font-family: var(--font-disp); font-weight: 700; font-size: 1.6rem; color: var(--text); padding: 12px 16px; border-left: 3px solid transparent; }
	.main-nav a:not(.btn)::after { display: none; }
	.main-nav a.is-active:not(.btn) { border-left-color: var(--red); }
	.main-nav a:not(.btn):focus-visible { outline-offset: -2px; }
	.nav-legal, .nav-direct { display: block; }
	li:not(.nav-legal) + .nav-legal { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
	.nav-legal a:not(.btn), .nav-direct a:not(.btn) { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-5); color: var(--text-mid); padding: 9px 16px; }
	.nav-legal + .nav-direct { margin-top: 10px; }
	.nav-direct a:not(.btn) { font-weight: 700; color: var(--text); }
	.nav-cta-wrap { margin: 18px 0 0; padding-left: 16px; }
	.nav-cta-wrap .btn { width: calc(100% - 16px); justify-content: center; padding: 15px 20px; font-size: var(--fs-4); }
	html:not(.js) .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
	html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; padding: 8px 16px; max-width: none; }
	html:not(.js) .main-nav a:not(.btn) { font-size: var(--fs-3); font-family: var(--font-body); font-weight: 400; padding: 8px 10px; }
	html:not(.js) .nav-direct, html:not(.js) .nav-cta-wrap { display: none; }
	html:not(.js) .hero-inner { padding-top: calc(var(--header-h) + 100px); }
	html:not(.js) { scroll-padding-top: 180px; }
	body.nav-open { overflow: hidden; }

	.services, .legal-grid { grid-template-columns: 1fr; gap: 40px; }
	.service + .service::before { display: none; }
	.mock-pruef, .mock-acc { grid-template-columns: 1fr; }
	.product-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.ptab { padding: 10px 14px; width: 100%; }
	.ptab:first-child { grid-column: 1 / -1; }
	.ptab-name { font-size: var(--fs-2); }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
	.container { width: calc(100% - 40px); }
	.section { padding: 56px 0; }
	.hero-inner { padding-bottom: 48px; }
	.hero-title { font-size: 2.5rem; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
	.hero-index { gap: 6px 16px; margin-top: 32px; }
	.btn { padding: 14px 22px; }
	.hero-cta .btn { flex: 1 1 auto; justify-content: center; }
	.phone-screen { height: 480px; }
	.kpi { padding: 8px 10px; }
	.mm-kpis { gap: 6px; }
	.g-head, .g-row { grid-template-columns: 110px 1fr; }
	.g-head span:nth-child(n+3) { display: none; }
	.mock-wdm { grid-template-columns: 84px 1fr; }
	.hero .eyebrow { font-size: var(--fs-1); letter-spacing: .08em; }
	.eb-long, .eb-fix, .eb-dot1 { display: none; }
	.module-list { grid-template-columns: 1fr; }
	.why-list { grid-template-columns: 1fr; }
	.facts > div { grid-template-columns: 1fr; gap: 2px; }
	.ff-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Pause (Knopf in der Kopfzeile) ────────────────────────────── */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }
/* Einmalige Einblendungen laufen trotz Pause zu Ende, sonst bleibt Text unsichtbar */
html.is-paused .seq, html.is-paused .product-panel.is-entering .product-copy, html.is-paused .product-panel.is-entering .product-visual { animation: none !important; }

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.js .seq { animation: none; }
}

/* ── Druck ─────────────────────────────────────────────────────── */
@media print {
	.js [data-reveal], .js .seq { opacity: 1 !important; transform: none !important; animation: none !important; }
	.site-header, .skip-link, .hero-canvas, .nav-toggle, .motion-toggle, .product-cta, .to-top { display: none !important; }
	.hero { min-height: 0; }
	.section-dark, .site-footer { background: #fff !important; color: #000 !important; }
	.section-dark .section-head .lead, .site-footer a, .site-footer p { color: #333 !important; }
	.product-panel[hidden] { display: grid !important; }
	.product-tabs { display: none !important; }
	.section { padding: 32px 0; }
	.product-visual, .mock { display: none !important; }
	.btn-primary, .brand-mark, .cp-avatar { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
	.hero-inner { padding-top: 24px; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
