/* ════════════════════════════════════════════════════════════════
   IHL Lehr GmbH — fernwaerme.lehr.co.at
   Design-System · Rot / Weiß / Anthrazit · IBM Plex
   ════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────── */
@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-600.woff2') format('woff2'); font-weight: 600; 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-bright: #ff2200;
	--red-deep:   #b30000;
	--red-tint:   #fdeceb;
	--ink:        #0c0e11;
	--ink-2:      #12151b;
	--ink-3:      #1b1f27;
	--ink-line:   #262b35;
	--paper:      #ffffff;
	--paper-2:    #f6f6f8;
	--line:       #e7e8ec;
	--text:       #14181d;
	--text-mid:   #414b57;
	--text-ondark:#f3f4f6;
	--text-dim:   #9aa2ae;
	--font-body:  'Plex Sans', 'Segoe UI', system-ui, sans-serif;
	--font-disp:  'Plex Cond', 'Arial Narrow', sans-serif;
	--font-mono:  'Plex Mono', 'Consolas', monospace;
	--header-h:   76px;
	--radius:     18px;
	--radius-sm:  10px;
	--shadow-lg:  0 24px 60px -22px rgba(12, 14, 17, .18);
	--shadow-red: 0 1px 2px rgba(12, 14, 17, .08), 0 6px 16px rgba(12, 14, 17, .10);
	--ease-out:   cubic-bezier(.19, 1, .22, 1);
	--ease-snap:  cubic-bezier(.65, 0, .35, 1);
}

/* ── 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: 1.125rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: .08em; }
.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: 8px;
	text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { 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(--red); }

/* ── Preloader ─────────────────────────────────────────────────── */
.preloader {
	position: fixed; inset: 0; z-index: 500;
	display: none; place-items: center;
	background: var(--paper);
	transition: opacity .6s var(--ease-out), visibility .6s;
}
.js .preloader { display: grid; }
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { width: min(300px, 76vw); }
.preloader-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.preloader-name { color: var(--text); font-family: var(--font-disp); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.preloader-track { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar { height: 100%; width: 0%; background: var(--red); }

/* ── Scroll progress ───────────────────────────────────────────── */
.scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; z-index: 260;
	height: 3px; background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
	transform-origin: 0 50%; transform: scaleX(0);
	box-shadow: 0 0 12px rgba(255, 34, 0, .55);
}

/* ── Brand lockup ──────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
	display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 11px;
	background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
	color: #fff; font-family: var(--font-disp); font-weight: 700; font-size: 1.05rem;
	letter-spacing: .01em; box-shadow: var(--shadow-red);
}
.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-mono); font-weight: 500; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 250;
	transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.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;
}
.site-header .brand-text { color: var(--text); }
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.main-nav a:not(.btn) {
	position: relative; display: block; padding: 10px 14px;
	text-decoration: none; font-size: .95rem; font-weight: 400;
	color: var(--text-mid); transition: color .3s;
}
.main-nav a:not(.btn)::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px;
	height: 2px; background: var(--red); border-radius: 2px;
	transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out);
}
.main-nav a:not(.btn):hover::after, .main-nav a.is-active:not(.btn)::after { transform: scaleX(1); }
.main-nav a:not(.btn):hover, .main-nav a.is-active:not(.btn) { color: var(--text); }
.nav-legal { display: none; }
.nav-cta-wrap { margin-left: 10px; }
.site-header.is-scrolled { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(12, 14, 17, .12); }

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

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 28px; border-radius: 10px;
	font-weight: 700; font-size: .98rem; text-decoration: none;
	transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s, border-color .3s;
	overflow: hidden; isolation: isolate;
}
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(135deg, var(--red-deep), var(--red));
	opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(12, 14, 17, .08), 0 10px 24px rgba(12, 14, 17, .14); }
.btn-ghost { border: 1.5px solid #c9ced6; color: var(--text); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* ── 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) + 40px) 0 90px;
}
.eyebrow {
	display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
	font-family: var(--font-body); font-weight: 700;
	font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--text-mid);
}
.eyebrow .eb-fix { white-space: nowrap; }
.eyebrow .eyebrow-dot { align-self: center; }
.eyebrow .index { color: var(--red); }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.hero-title {
	margin: 26px 0 24px;
	font-family: var(--font-disp); font-weight: 700;
	font-size: clamp(2.75rem, 7vw, 5.2rem);
	line-height: 1.03; letter-spacing: -.015em;
	color: var(--text);
	text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-sub { max-width: 640px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--text-mid); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
	margin-top: 72px; padding-top: 34px;
	border-top: 1px solid var(--line);
}
.hero-stats .stat dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 6px; font-family: var(--font-body); }
.hero-stats .stat dd { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--text); }
.hero-stats .unit { color: var(--red); }

.scroll-cue {
	position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	text-decoration: none; color: #6b7480; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
}
.cue-line { width: 1px; height: 40px; background: #d5d9df; position: relative; overflow: hidden; }
.cue-line::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--red); animation: cue-drop 2.2s var(--ease-snap) infinite; }
@keyframes cue-drop { to { top: 110%; } }

/* ── Kompetenz-Strip (statisch, ruhig) ─────────────────────────── */
.marquee { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 24px; }
.marquee-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 26px; }
.marquee-track > :nth-child(n+20) { display: none; }
.marquee span { font-weight: 400; font-size: .88rem; letter-spacing: .05em; text-transform: uppercase; color: #6b7480; white-space: nowrap; }
.marquee i { color: #c9ced6; font-style: normal; }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--text-ondark); }
.section-dark::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse 60% 40% at 85% 0%, rgba(230, 0, 0, .028), transparent 60%);
}
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-sm { margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
	font-family: var(--font-disp); font-weight: 700;
	font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.01em;
	text-wrap: balance;
}
/* Rot in Headlines nur im Hero — Sektions-Headlines bleiben anthrazit,
   Rot kommt dort nur über Eyebrow-Nummer und Akzente */
.section-head h2 .accent { color: inherit; }
.section-dark .eyebrow { color: var(--text-dim); }

/* ── Reveal (nur mit JS aktiv — ohne JS bleibt alles sichtbar) ── */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-reveal].is-in {
	opacity: 1; transform: none;
	transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}

/* ── Leistungen ────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
	position: relative; padding: 44px 40px; overflow: hidden;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .45s var(--ease-out), box-shadow .45s, border-color .45s;
	transform-style: preserve-3d; will-change: transform;
}
.service-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: var(--red);
	transform: scaleX(.18); transform-origin: 0 50%;
	transition: transform .6s var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
	display: grid; place-items: center; width: 64px; height: 64px;
	margin-bottom: 26px; border-radius: 16px;
	background: var(--red-tint); color: var(--red);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: 1.65rem; margin-bottom: 14px; }
.service-card p { color: var(--text-mid); font-size: .99rem; margin-bottom: 12px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 22px; }
.service-tags li {
	font-size: .8rem; letter-spacing: .01em;
	padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-mid);
	transition: border-color .3s, color .3s, background .3s;
}
.service-card:hover .service-tags li { border-color: #f3c9c6; }
.service-tags li:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Plattform ─────────────────────────────────────────────────── */
.platform-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.platform-copy p { color: #b9c0ca; margin-bottom: 18px; }
.platform-points { list-style: none; margin-top: 34px; display: grid; gap: 18px; }
.platform-points li {
	display: grid; gap: 3px; padding: 18px 20px 18px 24px;
	border-left: 2px solid var(--red); background: var(--ink-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	transition: background .3s, transform .3s var(--ease-out);
}
.platform-points li:hover { background: var(--ink-3); transform: translateX(6px); }
.platform-points strong { color: #fff; font-size: 1.02rem; }
.platform-points span { color: var(--text-dim); font-size: .92rem; }

.platform-viz { margin: 0; }
.viz-frame {
	background: linear-gradient(180deg, var(--ink-2), var(--ink));
	border: 1px solid var(--ink-line); border-radius: var(--radius);
	overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.viz-head {
	display: flex; align-items: center; gap: 10px;
	padding: 13px 18px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--text-dim); border-bottom: 1px solid var(--ink-line);
}
.viz-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.viz-tag { margin-left: auto; font-size: .58rem; color: #6b7380; border: 1px solid var(--ink-line); padding: 3px 8px; border-radius: 100px; }
#networkCanvas { width: 100%; height: 430px; cursor: grab; touch-action: pan-y; }
#networkCanvas:active { cursor: grabbing; }
.viz-telemetry {
	display: flex; flex-wrap: wrap; gap: 6px 26px;
	padding: 13px 18px; border-top: 1px solid var(--ink-line);
	font-size: .64rem; letter-spacing: .1em; color: #6b7380;
}
.viz-telemetry b { color: var(--red-bright); font-weight: 500; margin-left: 6px; }
.platform-viz figcaption { margin-top: 14px; text-align: center; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }

/* ── Produkte: Tabs ────────────────────────────────────────────── */
.product-tabs {
	display: flex; flex-wrap: wrap; gap: 10px;
	margin-bottom: clamp(36px, 5vw, 56px);
}
.ptab {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
	padding: 13px 22px; border: 1.5px solid var(--line); border-radius: 14px;
	background: var(--paper); text-align: left;
	transition: border-color .3s, background .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.ptab-code { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.ptab-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.ptab:hover { border-color: var(--red); transform: translateY(-2px); }
.ptab.is-active { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.ptab.is-active .ptab-name { color: #fff; }
.ptab.is-active .ptab-code { color: var(--red-bright); }

.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-panel.is-entering .product-copy { animation: panel-in .6s var(--ease-out) both; }
.product-panel.is-entering .product-visual { animation: panel-in .6s var(--ease-out) .1s both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px); } }
.product-copy h3 { font-family: var(--font-disp); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }
.product-copy h3 .mono { font-size: .8em; letter-spacing: .04em; }
.product-copy p { color: var(--text-mid); margin-bottom: 14px; }
.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: 32px; color: var(--text-mid); }
.check-list li::before {
	content: ''; position: absolute; left: 0; top: 3px;
	width: 19px; height: 19px; border-radius: 6px;
	background: var(--red);
	clip-path: none;
}
.check-list li::after {
	content: ''; position: absolute; left: 4.5px; top: 7.5px;
	width: 10px; height: 6px;
	border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg);
}

.modules-label {
	margin-top: 26px; margin-bottom: -12px;
	font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--red-deep);
}
.module-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip {
	font-size: .8rem; font-weight: 400; padding: 8px 15px;
	border: 1px solid var(--line); border-radius: 100px; color: var(--text-mid);
	background: var(--paper-2);
	transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--red); color: var(--red); background: var(--red-tint); transform: translateY(-2px); }
.chip-sm { font-size: .68rem; padding: 5px 11px; }

/* ── Produkte: Mockups ─────────────────────────────────────────── */
.product-visual { perspective: 1400px; }
.mock {
	border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
	transition: transform .5s var(--ease-out), box-shadow .5s;
	transform-style: preserve-3d; will-change: transform;
	background: var(--paper);
}
.mock-bar {
	display: flex; align-items: center; gap: 7px;
	padding: 12px 16px; background: var(--ink); color: #808896;
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #333a46; }
.mock-bar span:first-child { background: var(--red); }
.mock-bar i { font-style: normal; font-size: .66rem; letter-spacing: .06em; margin-left: 10px; opacity: .8; }
.mock-body { background: var(--paper-2); min-height: 350px; }

/* wdm dashboard */
.mock-wdm { display: grid; grid-template-columns: 58px 1fr; }
.mock-side { background: var(--ink-2); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ms-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); margin-bottom: 10px; }
.ms-item { width: 22px; height: 22px; border-radius: 6px; background: var(--ink-3); }
.ms-item.is-on { background: var(--red); }
.mock-main { padding: 18px; display: grid; gap: 14px; 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: 12px; padding: 12px 14px; }
.kpi i { display: block; font-style: normal; font-size: .54rem; letter-spacing: .14em; color: var(--text-dim); }
.kpi b { display: block; font-family: var(--font-disp); font-size: clamp(.92rem, 2.6vw, 1.16rem); margin: 3px 0 8px; white-space: nowrap; }
.kpi u { display: block; height: 4px; border-radius: 4px; background: var(--line); position: relative; text-decoration: none; overflow: hidden; }
.kpi u::after { content: ''; position: absolute; inset: 0; width: var(--w, 50%); background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); border-radius: 4px; }
.mm-gantt { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 9px; }
.g-row { height: 12px; background: var(--paper-2); border-radius: 6px; position: relative; overflow: hidden; }
.g-row i { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--red), var(--red-bright)); }
.g-row i.alt { background: var(--ink-3); }
.mm-rows { display: grid; gap: 7px; }
.mm-rows .r { height: 13px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }

/* Prüfungen */
.mock-pruef { padding: 18px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-content: start; }
.mp-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; background: var(--ink); border-radius: 12px; color: #fff; }
.mp-head b { color: var(--red-bright); letter-spacing: .1em; }
.mp-head i { font-style: normal; font-size: .74rem; color: var(--text-dim); }
.mp-list { display: grid; gap: 9px; align-content: start; }
.mp-item { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.mp-item .tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.mp-item.is-done .tick { background: var(--red); border-color: var(--red); }
.mp-item.is-done .tick::after { content: ''; position: absolute; left: 4px; top: 4.5px; width: 8px; height: 4.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.mp-item.is-due .tick { border-color: var(--red-bright); animation: pulse-dot 1.6s infinite; }
.mp-item b { display: block; font-size: .82rem; line-height: 1.3; }
.mp-item i { font-style: normal; font-size: .6rem; letter-spacing: .08em; color: var(--text-dim); }
.mp-item.is-due i { color: var(--red); }
.mp-cal { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; align-self: start; }
.mpc-head { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.mpc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mpc-grid span { aspect-ratio: 1; border-radius: 6px; background: var(--paper-2); position: relative; }
.mpc-grid .dot::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: var(--ink-3); }
.mpc-grid .dot.hot::after { background: var(--red); }

/* Phone / adm */
.mock-phone {
	width: min(300px, 78%); margin-inline: auto; border-radius: 42px;
	border: 8px solid var(--ink); background: var(--ink);
	box-shadow: var(--shadow-lg);
	position: relative;
}
.phone-notch { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); width: 88px; height: 22px; border-radius: 12px; background: var(--ink); }
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--paper-2); display: flex; flex-direction: column; height: 540px; position: relative; }
.pa-search { margin: 46px 14px 10px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; font-size: .64rem; color: var(--text-dim); letter-spacing: .04em; }
.pa-map {
	flex: 1; margin: 0 14px; border-radius: 18px; 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, #eef0ee, #e2e8e4 55%, #eceeec);
}
.pa-map::before { content: ''; position: absolute; left: -10%; top: 34%; width: 120%; height: 10px; background: rgba(230, 0, 0, .12); transform: rotate(-9deg); border-radius: 6px; }
.pa-map::after { content: ''; position: absolute; left: 42%; top: -10%; width: 9px; height: 120%; background: rgba(23, 26, 31, .08); transform: rotate(14deg); border-radius: 6px; }
.pin {
	position: absolute; left: var(--x); top: var(--y); z-index: 2;
	width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
	background: var(--red); transform: rotate(-45deg);
	box-shadow: 0 3px 8px rgba(12, 14, 17, .3);
}
.pin::after { content: ''; position: absolute; inset: 4.5px; border-radius: 50%; background: #fff; }
.pin.pulse::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(230, 0, 0, .5); animation: pin-pulse 1.8s var(--ease-out) infinite; }
@keyframes pin-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.pa-card { margin: 12px 14px; padding: 12px 16px; background: var(--paper); border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(12, 14, 17, .25); }
.pa-card b { display: block; font-size: .78rem; }
.pa-card i { font-style: normal; font-size: .6rem; letter-spacing: .06em; color: var(--red); }
.pa-nav { display: flex; justify-content: space-around; padding: 12px 20px 16px; }
.pa-nav span { width: 26px; height: 26px; border-radius: 9px; background: var(--line); }
.pa-nav span.is-on { background: var(--red); }

/* acc */
.mock-acc { padding: 18px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: stretch; }
.ma-doc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.ma-doc-head { display: flex; justify-content: space-between; align-items: center; }
.ma-doc-head b { letter-spacing: .08em; font-size: .8rem; }
.badge-paid { font-size: .56rem; letter-spacing: .14em; padding: 4px 10px; border-radius: 100px; background: var(--red-tint); color: var(--red); }
.ma-line { height: 11px; border-radius: 6px; background: var(--paper-2); }
.ma-line.w80 { width: 80%; } .ma-line.w60 { width: 60%; } .ma-line.w70 { width: 70%; }
.ma-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 6px; }
.ma-total i { font-style: normal; font-size: .56rem; letter-spacing: .16em; color: var(--text-dim); }
.ma-total b { font-family: var(--font-disp); font-size: 1.35rem; }
.ma-side { display: grid; gap: 14px; align-content: stretch; grid-template-rows: 1fr auto; }
.ma-chart { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; align-items: flex-end; gap: 9px; min-height: 150px; }
.ma-chart i { flex: 1; height: var(--h, 40%); border-radius: 6px 6px 3px 3px; background: var(--line); transition: height 1s var(--ease-out); }
.ma-chart i.hot { background: var(--red); }
.ma-status { display: grid; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.ma-status .st { display: flex; align-items: center; gap: 9px; font-size: .72rem; color: var(--text-mid); }
.ma-status .d { width: 9px; height: 9px; border-radius: 50%; }
.d-open { background: #f0a500; } .d-paid { background: var(--red); } .d-dun { background: var(--ink); }

/* tme */
.mock-tme { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mt-clock { display: flex; align-items: baseline; gap: 14px; background: var(--ink); border-radius: 12px; padding: 16px 20px; }
.mt-clock b { font-family: var(--font-disp); font-size: 2rem; color: #fff; font-variant-numeric: tabular-nums; }
.mt-clock i { font-style: normal; font-size: .56rem; letter-spacing: .16em; color: var(--red-bright); }
.mt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mt-day { display: grid; gap: 8px; justify-items: center; }
.mt-day i { font-style: normal; font-size: .54rem; letter-spacing: .1em; color: var(--text-dim); }
.mt-day u {
	text-decoration: none; width: 100%; max-width: 26px; height: 92px; border-radius: 7px;
	background: linear-gradient(to top, var(--red) var(--h, 0%), var(--paper-2) var(--h, 0%));
}
.mt-day u.half { background: linear-gradient(to top, var(--red-bright) var(--h, 0%), var(--paper-2) var(--h, 0%)); }
.mt-day.off i { opacity: .45; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Warum ─────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
	position: relative; padding: 34px 30px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.why-card:hover { border-color: #eec2bf; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-num { display: block; font-size: .7rem; letter-spacing: .18em; color: var(--red); margin-bottom: 16px; }
.why-card h3 { font-family: var(--font-disp); font-weight: 700; font-size: 1.32rem; color: var(--text); margin-bottom: 10px; }
.why-card p { font-size: .96rem; color: var(--text-mid); }

/* ── Kontakt ───────────────────────────────────────────────────── */
.section-contact { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-person { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.cp-avatar {
	display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px;
	background: linear-gradient(135deg, var(--red-bright), var(--red-deep)); color: #fff;
	font-family: var(--font-disp); font-weight: 700; font-size: 1.3rem;
	box-shadow: var(--shadow-red);
}
.contact-person b { display: block; font-size: 1.12rem; }
.contact-person .mono { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.contact-lines { list-style: none; display: grid; gap: 18px; }
.contact-lines li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-mid); }
.contact-lines a { color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--red-tint); transition: border-color .3s, color .3s; }
.contact-lines a:hover { color: var(--red); border-color: var(--red); }
.cl-ic {
	flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: 13px; background: var(--paper); border: 1px solid var(--line); color: var(--red);
}
.cl-ic svg { width: 20px; height: 20px; }
.contact-note { margin-top: 34px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid); display: flex; align-items: center; gap: 10px; }
.contact-note::before { content: ''; width: 24px; height: 1.5px; background: var(--red); }

.contact-form {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(26px, 3.5vw, 44px); box-shadow: var(--shadow-lg);
}
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ff { display: flex; flex-direction: column-reverse; margin-bottom: 20px; }
.ff input, .ff textarea {
	width: 100%; padding: 13px 16px; font: inherit; color: var(--text);
	background: var(--paper); border: 1px solid #d5d8dd; border-radius: 10px;
	transition: border-color .3s, box-shadow .3s;
	resize: vertical;
}
.ff label {
	margin-bottom: 7px;
	color: var(--text); font-size: .74rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
}
.ff input:focus, .ff textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230, 0, 0, .1); }
.ff.has-error input, .ff.has-error textarea { border-color: var(--red-bright); background: var(--red-tint); }
.form-privacy { font-size: .78rem; color: var(--text-mid); margin: 4px 0 22px; }
.form-privacy a { color: var(--red); }
.form-status { margin-top: 16px; font-size: .9rem; font-weight: 700; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: var(--red); }

/* ── Rechtliches ───────────────────────────────────────────────── */
.section-legal { background: var(--paper-2); padding: clamp(64px, 8vw, 100px) 0; }
.section-legal + .section-legal { padding-top: 0; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.legal-block h3, .legal-prose h3 {
	font-family: var(--font-body); font-weight: 700;
	font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep);
	margin: 26px 0 8px;
}
.legal-block h3:first-child { margin-top: 0; }
.legal-block p, .legal-prose p { color: var(--text-mid); font-size: .95rem; margin-bottom: 12px; }
.legal-block a, .legal-prose a { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red-tint); transition: color .3s, border-color .3s; }
.legal-block a:hover, .legal-prose a:hover { color: var(--red); border-color: var(--red); }
.legal-prose { max-width: 860px; }
.legal-prose strong { color: var(--text); }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--text-dim); padding: 64px 0 30px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; padding-bottom: 38px; border-bottom: 1px solid var(--ink-line); }
.brand-footer .brand-text { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer-nav a { text-decoration: none; font-size: .92rem; color: var(--text-dim); transition: color .3s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 26px; }
.footer-bottom p { font-size: .64rem; letter-spacing: .1em; }
.to-top { text-decoration: none; font-size: .66rem; letter-spacing: .14em; color: var(--text-dim); transition: color .3s; }
.to-top:hover { color: var(--red-bright); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.platform-grid, .product-panel, .contact-grid { grid-template-columns: 1fr; }
	.why-grid { grid-template-columns: 1fr 1fr; }
	.product-visual { order: -1; }
	#panel-adm .product-visual { order: 0; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
}
@media (max-width: 820px) {
	:root { --header-h: 66px; }
	body { font-size: 1rem; }
	.main-nav {
		position: fixed; inset: 0; z-index: 270;
		display: grid; place-items: center;
		overflow-y: auto;
		background: #fff;
		opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
	}
	body.nav-open .main-nav { opacity: 1; visibility: visible; }
	.main-nav ul {
		flex-direction: column; align-items: stretch; gap: 4px; text-align: left;
		margin: auto; padding: 96px 30px 48px;
		width: 100%; max-width: 440px;
	}
	.main-nav a:not(.btn) {
		font-family: var(--font-disp); font-weight: 700; font-size: 1.55rem;
		color: var(--text) !important; padding: 10px 18px;
		border-left: 3px solid transparent; border-radius: 0;
	}
	.main-nav a:not(.btn)::after { display: none; }
	.main-nav a.is-active:not(.btn), .main-nav a:not(.btn):focus-visible {
		outline: none; border-left-color: var(--red);
	}
	.main-nav li { opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
	body.nav-open .main-nav li { opacity: 1; transform: none; }
	body.nav-open .main-nav li:nth-child(1) { transition-delay: .08s; }
	body.nav-open .main-nav li:nth-child(2) { transition-delay: .13s; }
	body.nav-open .main-nav li:nth-child(3) { transition-delay: .18s; }
	body.nav-open .main-nav li:nth-child(4) { transition-delay: .23s; }
	body.nav-open .main-nav li:nth-child(5) { transition-delay: .28s; }
	body.nav-open .main-nav li:nth-child(6) { transition-delay: .33s; }
	body.nav-open .main-nav li:nth-child(7) { transition-delay: .38s; }
	.nav-legal { display: block; }
	.nav-legal { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
	.nav-legal + .nav-legal { margin-top: 0; border-top: 0; padding-top: 0; }
	.nav-legal a:not(.btn) { font-size: 1rem !important; font-family: var(--font-body); font-weight: 400; color: var(--text-mid) !important; padding-block: 7px; }
	.nav-cta-wrap { margin: 20px 0 0; padding-left: 18px; }
	.nav-toggle { display: flex; }
	body.nav-open { overflow: hidden; }

	.services-grid, .legal-grid { grid-template-columns: 1fr; }
	.mock-pruef, .mock-acc { grid-template-columns: 1fr; }
	.product-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; }
	.product-tabs::-webkit-scrollbar { display: none; }
	.ptab { flex: 0 0 auto; }
}
@media (max-width: 560px) {
	.container { width: calc(100% - 40px); }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: 1fr; }
	.ff-row { grid-template-columns: 1fr; gap: 0; }
	.btn { padding: 14px 24px; }
	.hero-cta .btn { flex: 1 1 auto; justify-content: center; }
	.service-card { padding: 32px 24px; }
	.phone-screen { height: 480px; }
	#networkCanvas { height: 330px; }
	.product-tabs { margin-inline: -20px; padding-inline: 20px; }
	.kpi { padding: 10px; }
	.hero .eyebrow { font-size: .64rem; letter-spacing: .08em; }
	.eb-long { display: none; }
}

/* ── Kontrast: kleine rote Texte auf hellem Grund ─────────────── */
.section-light .eyebrow .index,
.section-legal .eyebrow .index,
.legal-block h3, .legal-prose h3,
.ptab-code,
.contact-person .mono,
.pa-card i { color: var(--red-deep); }
.ptab.is-active .ptab-code { color: var(--red-bright); }

/* ── 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; }
	.marquee-track { animation: none; }
}
