/* ==========================================================================
   tenbits v4 – Design D
   Tokens → Basis → Layout → Komponenten → Abschnitte → Unterseiten → Motion
   ========================================================================== */

/* ---------- Fonts (lokal, SIL OFL) ---------- */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/rajdhani-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/rajdhani-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/rajdhani-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/rajdhani-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/share-tech-mono-latin.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	--navy: #0B1426;
	--navy-2: #1A2D45;
	--navy-3: #123A5C;
	--cyan: #00E5FF;
	--cyan-hover: #5CF0FF;
	--cyan-ink: #00799E;
	--cyan-soft: #E6FBFF;
	--cyan-line: #9FDCEB;
	--blue: #0066E6;
	--blue-line: #9FC3FF;
	--ground: #F5F8FC;
	--surface: #FFFFFF;
	--surface-2: #F1F4F8;
	--ink: #0B1426;
	--ink-2: #44536A;
	--muted: #5B6B82;
	--line: #DCE4EE;
	--line-2: #E6ECF3;
	--on-dark: #FFFFFF;
	--on-dark-2: #A9BCD3;
	--on-dark-3: #8AA0B8;
	--ok: #0E7C66;
	--ok-dot: #18B47B;
	--ok-soft: #E7F7F0;
	--led: #3DDC97;
	--screw: #4A5568;

	--font-display: 'Rajdhani', system-ui, sans-serif;
	--font-mono: 'Share Tech Mono', ui-monospace, monospace;
	--font-body: 'DM Sans', system-ui, sans-serif;

	--container: 1200px;
	--gutter: 24px;
	--radius-sm: 12px;
	--radius: 18px;
	--radius-lg: 20px;
	--radius-xl: 24px;
	--radius-pill: 999px;
	--shadow-card: 0 24px 48px -28px rgba(11, 20, 38, .35);
	--section-y: 112px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.site-main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 8px; background: var(--cyan); color: var(--navy);
	font-family: var(--font-mono); transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--navy); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--lg { gap: 40px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split--center { align-items: center; }
.split--top { align-items: flex-start; gap: 56px; }
.split__main { flex: 1 1 440px; min-width: 0; }
.split__aside { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Typo ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--cyan-ink); }
.eyebrow--dark { color: var(--cyan); }
.h-xl { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.h-lg { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; }
.h-md { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.h-xl .accent, .h-lg .accent, .h-md .accent { color: var(--blue); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.lead--sm { font-size: 18px; }

/* ---------- Kleinteile ---------- */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.dot--ok { background: var(--ok-dot); }
.dot--info { background: #00B8D9; }
.badge {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px; border-radius: var(--radius-pill);
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.badge--dark { color: var(--cyan); border: 1px solid rgba(0, 229, 255, .3); background: rgba(0, 229, 255, .06); }
.pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill);
	font-family: var(--font-mono); font-size: 11px;
}
.pill .dot { width: 6px; height: 6px; }
.pill--ok { color: var(--ok); background: var(--ok-soft); }
.pill--ok .dot { background: var(--ok-dot); }
.status-tag {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
	color: var(--cyan-ink); border: 1px solid var(--cyan-line); background: var(--cyan-soft);
	padding: 8px 12px; border-radius: 8px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-pill);
	background: var(--navy); color: var(--on-dark); font-family: var(--font-mono); font-size: 13px;
	letter-spacing: 1px; text-transform: uppercase; transition: background .2s, color .2s;
}
.button:hover { background: var(--blue); color: var(--on-dark); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--cyan-soft); color: var(--ink); }
.more-link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 12px 0; }
.icon { width: 22px; height: 22px; flex: none; stroke-width: 1.8; }
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover, .lift:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11, 20, 38, .25); border-color: var(--blue-line); }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); }
.logo:hover { color: var(--on-dark); }
.logo__bits { display: flex; flex-direction: column; gap: 4px; }
.logo__row { display: flex; gap: 4px; }
.logo__bit { width: 9px; height: 9px; border-radius: 50%; background: var(--on-dark); }
.logo__bit.is-on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--on-dark); }
.logo__word .accent { color: var(--cyan); }
.logo__tag {
	font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: var(--cyan);
	background: rgba(0, 229, 255, .1); border: 1px solid rgba(0, 229, 255, .3); padding: 2px 7px; border-radius: 4px;
}
.logo--sm .logo__word { font-size: 24px; }
.logo--rack { gap: 8px; }
.logo--rack .logo__bits, .logo--rack .logo__row { gap: 3px; }
.logo--rack .logo__bit { width: 6px; height: 6px; }
.logo--rack .logo__bit.is-on { box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 20, 38, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header__inner { padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.site-nav__list { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
	display: block; padding: 10px 14px; color: var(--on-dark-2);
	font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--on-dark); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: 96px var(--gutter) 168px; }
.hero__glow {
	position: absolute; right: -10%; top: -20%; width: 900px; height: 900px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(0, 229, 255, .22), rgba(0, 102, 230, .10) 55%, transparent);
}
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero__copy { flex: 1.15 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(52px, 7.4vw, 104px); line-height: .92; letter-spacing: -2px; color: var(--on-dark); }
.hero__title .accent { color: var(--cyan); }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--on-dark-2); max-width: 520px; }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero__stage { position: relative; width: min(480px, 100%); padding: 28px 0 36px; }

.app-card {
	position: relative; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: var(--radius-xl);
	box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.app-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.app-card__brand { display: flex; align-items: center; gap: 10px; }
.app-card__logo { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--cyan); display: flex; align-items: center; justify-content: center; }
.app-card__logo .icon { width: 18px; height: 18px; stroke-width: 2; }
.app-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.app-card__title .accent { color: var(--cyan-ink); }
.app-card__list { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-card__item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.app-card__item.is-active { background: var(--cyan-soft); }
.app-card__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.app-card__icon .icon { width: 20px; height: 20px; }
.app-card__item.is-active .app-card__icon { background: var(--surface); color: var(--cyan-ink); }
.app-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-card__name { font-weight: 700; font-size: 15px; }
.app-card__mask { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); letter-spacing: 2px; overflow: hidden; white-space: nowrap; }
.app-card__badge { font-family: var(--font-mono); font-size: 11px; color: var(--cyan-ink); }

.chip { position: absolute; display: flex; }
.chip--dark {
	left: -28px; bottom: 0; align-items: center; gap: 12px; padding: 14px 18px;
	background: var(--navy); border: 1px solid rgba(0, 229, 255, .35); border-radius: 16px;
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7); color: var(--cyan);
}
.chip--dark > span { display: flex; flex-direction: column; }
.chip__title { font-weight: 700; font-size: 14px; color: var(--on-dark); }
.chip__text { font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-2); }
.chip--code {
	right: -20px; top: -30px; flex-direction: column; gap: 2px; padding: 12px 16px;
	background: var(--cyan); color: var(--navy); border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(0, 229, 255, .7);
	font-family: var(--font-mono);
}
.chip__label { font-size: 10px; letter-spacing: 1px; }
.chip__code { font-size: 20px; font-weight: 700; letter-spacing: 3px; }
@media (max-width: 560px) {
	.chip--dark { left: -8px; }
	.chip--code { right: -4px; }
}

/* ---------- Stats ---------- */
.stats { position: relative; padding: 0 var(--gutter); }
.hero + .stats { margin-top: -72px; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.stat {
	display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 28px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1; }
.stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.stat--accent { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 24px 48px -28px rgba(0, 121, 158, .6); }
.stat--accent .stat__label { color: var(--navy); }
.stats + .section { padding-top: 120px; }

/* ---------- Flagship (Vault) ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feature__icon { color: var(--cyan-ink); }
.feature > span { display: flex; flex-direction: column; }
.feature__title { font-weight: 700; font-size: 15px; }
.feature__text { font-size: 14px; color: var(--ink-2); }

.flow__card {
	display: flex; flex-direction: column; gap: 12px; padding: 24px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: 0 30px 60px -36px rgba(0, 102, 230, .45);
}
.flow__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.flow__state { color: var(--ok); text-transform: none; }
.flow__state::before { content: '● '; }
.flow__steps { display: flex; flex-direction: column; gap: 12px; }
.flow__step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ground); border-radius: 10px; }
.flow__num { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-ink); }
.flow__label { flex: 1; font-weight: 500; }
.flow__value { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); text-align: right; }
.flow__arrow { align-self: center; width: 24px; height: 48px; margin: 10px 0; color: var(--blue); }
.flow__result { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--navy); border-radius: var(--radius-lg); }
.flow__head--dark { color: var(--on-dark-2); }
.flow__head--dark span:last-child { text-transform: none; }
.flow__cipher { font-family: var(--font-mono); font-size: 15px; line-height: 1.7; color: var(--cyan); word-break: break-all; }

/* ---------- Homelab / Rack ---------- */
.rack-panel {
	display: flex; flex-direction: column; gap: 10px; padding: 26px;
	background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.rack-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rack-panel__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--cyan-ink); text-transform: uppercase; }
.rack-panel__status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ok); }
.rack-panel__name { font-size: 32px; line-height: 1.05; }
.rack-panel__text { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.rack-wrap { flex-basis: 440px; max-width: 560px; margin-inline: auto; }
.rack {
	display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 22px;
	background: var(--navy); border-radius: 22px 22px 8px 8px; box-shadow: 0 40px 70px -30px rgba(11, 20, 38, .55);
}
.rack__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 6px 12px; }
.rack__plate { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; color: var(--on-dark); }
.rack__hint { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-3); }
.rack__units { display: flex; flex-direction: column; gap: 6px; }
.rack__feet { display: flex; justify-content: space-between; padding: 0 28px; }
.rack__feet span { width: 34px; height: 16px; background: var(--navy); border-radius: 0 0 6px 6px; }

.unit {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
	border: 0; border-radius: 6px; background: var(--navy-2); color: var(--on-dark);
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); font: inherit; text-align: left; cursor: pointer;
	transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), background .25s, box-shadow .25s;
}
.unit:hover { transform: translateX(-6px); }
.unit--2 { min-height: 92px; }
.unit--highlight { background: var(--navy-3); }
.unit.is-active { background: var(--cyan); color: var(--navy); transform: translateX(-18px); box-shadow: 0 0 0 2px var(--cyan), 0 0 30px rgba(0, 229, 255, .55); }
.unit__screw { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--screw); }
.unit__slot { width: 42px; flex: none; font-family: var(--font-mono); font-size: 11px; opacity: .75; }
.unit__name { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit__vent { width: 70px; height: 14px; flex: none; border-radius: 3px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 6px); }
.unit.is-active .unit__vent { background-image: repeating-linear-gradient(90deg, rgba(11, 20, 38, .22) 0 2px, transparent 2px 6px); }
.unit__leds { display: flex; gap: 5px; }
.led { width: 7px; height: 7px; border-radius: 50%; }
.led--a { background: var(--led); }
.led--b { background: var(--on-dark); }
.unit--highlight .led--b { background: var(--cyan); }
.unit.is-active .led--a { background: var(--navy); }
.unit.is-active .led--b { background: var(--blue); }
@media (max-width: 480px) {
	.unit__vent { display: none; }
	.unit.is-active { transform: translateX(-8px); }
}

/* ---------- Werkbank ---------- */
.section--werkbank { padding-bottom: 96px; }
.work-card {
	position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 40px);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink);
}
.work-card + .work-card { margin-top: -20px; }
.work-card__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan-ink); }
.work-card__title { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.work-card__title a { color: var(--ink); }
.work-card__text { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }

/* ---------- Blog ---------- */
.section--werkbank + .section--blog { padding-top: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post-card__bar { height: 8px; background: var(--cyan); }
.post-card:nth-child(3n+2) .post-card__bar { background: var(--blue); }
.post-card:nth-child(3n) .post-card__bar { background: var(--navy); }
.post-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.post-card__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.post-card__title { font-size: 23px; line-height: 1.2; }
.post-card__title a { color: var(--ink); }
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 48px var(--gutter); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-footer__copy { font-family: var(--font-mono); font-size: 12px; margin-left: 8px; }
.footer-nav__list { display: flex; gap: 0 24px; flex-wrap: wrap; }
.footer-nav a { display: block; padding: 8px 0; color: var(--on-dark-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-nav a:hover { color: var(--on-dark); }

/* ---------- Unterseiten ---------- */
.page-head { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: 72px var(--gutter) 64px; }
.page-head::before {
	content: ''; position: absolute; right: -15%; top: -60%; width: 700px; height: 700px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(0, 229, 255, .16), rgba(0, 102, 230, .08) 55%, transparent);
}
.page-head__inner { position: relative; display: flex; flex-direction: column; gap: 14px; }
.page-head__title { font-size: clamp(38px, 5vw, 64px); line-height: 1; max-width: 900px; }
.page-head__meta { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; color: var(--on-dark-2); }
.section--article, .section--list { padding-top: 64px; padding-bottom: 96px; }

.prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.15; margin-top: 1.8em; }
.prose h2 { font-size: 36px; }
.prose h3 { font-size: 28px; }
.prose h4 { font-size: 22px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.prose pre { overflow-x: auto; padding: 20px; border-radius: var(--radius-sm); background: var(--navy); color: var(--on-dark); font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cyan); color: var(--ink); }
.prose img, .prose__media img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.post-nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 var(--gutter) 96px; font-family: var(--font-mono); font-size: 13px; }
.post-nav__next { margin-left: auto; text-align: right; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }

/* ---------- Motion ---------- */
.float--1 { animation: tb-float 7s ease-in-out infinite; }
.float--2 { animation: tb-float 6s ease-in-out infinite -2s; }
.float--3 { animation: tb-float 5s ease-in-out infinite -1s; }
@keyframes tb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dot--pulse { animation: tb-pulse 2s ease-in-out infinite; }
@keyframes tb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, .5); } 50% { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); } }
.blink--1 { animation: tb-blink 1.1s steps(2) infinite; }
.blink--2 { animation: tb-blink 1.7s steps(2) infinite .3s; }
.blink--3 { animation: tb-blink 2.3s steps(2) infinite .8s; }
@keyframes tb-blink { 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.float--1, .float--2, .float--3, .dot--pulse, .blink--1, .blink--2, .blink--3 { animation: none; }
	.unit, .lift, .skip-link { transition: none; }
}

/* ---------- Mobile-Feinschliff ---------- */
@media (max-width: 720px) {
	:root { --section-y: 80px; --gutter: 16px; }
	.hero { padding-top: 64px; }
	.split, .hero__inner { gap: 48px; }
	.stats + .section { padding-top: 88px; }
}
