/* ==========================================================================
   seteq – Bludit Theme
   Keine externen Fonts/Ressourcen (DSGVO-freundlich)
   ========================================================================== */

:root {
	--navy-950: #06122a;
	--navy-900: #0b1d3a;
	--navy-800: #10284f;
	--blue-700: #0e4a9c;   /* Logo dunkel */
	--blue-600: #1663c7;
	--blue-500: #3a9af5;   /* Logo hell */
	--blue-100: #e3f0fe;
	--blue-50:  #f2f8ff;

	--ink:      #0f1b2d;
	--ink-2:    #3b4a60;
	--ink-3:    #66758b;
	--line:     #e2e8f0;
	--bg:       #ffffff;
	--bg-alt:   #f5f8fc;
	--surface:  #ffffff;
	--header-bg: rgba(255, 255, 255, .88);
	--accent:        var(--blue-600);
	--accent-strong: var(--blue-700);
	--accent-soft:   var(--blue-50);
	--accent-soft-2: var(--blue-100);
	--card-hover-border: #cfe3fb;
	--code-ink: var(--navy-800);

	--radius:   14px;
	--radius-sm: 9px;
	--shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
	--shadow:    0 10px 30px -12px rgba(11, 29, 58, .25);

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--container: 1160px;
	--header-h: 76px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-3); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .8em 1.35em;
	border-radius: 999px;
	font-weight: 600; font-size: .95rem; line-height: 1.2;
	border: 1.5px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	cursor: pointer; white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px -8px rgba(22, 99, 199, .8); }
.btn-primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
.btn-outline { color: var(--accent-strong); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue-500); }

/* --- Header ---------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 29, 58, .25); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand .logo-d, html.dark .brand .logo-l { display: none; }
html.dark .brand .logo-d { display: block; }
.brand img { height: 44px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.35rem; color: var(--accent-strong); letter-spacing: -.02em; text-transform: uppercase; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
	display: block; padding: .5em .9em; border-radius: 8px;
	color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.nav-cta { margin-left: 8px; }

.theme-toggle {
	display: grid; place-items: center; width: 42px; height: 42px; margin-left: -12px;
	border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
	color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-icon { display: grid; }
.theme-icon-sun, html.dark .theme-icon-moon { display: none; }
html.dark .theme-icon-sun { display: grid; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .3s, border-color .3s, color .3s !important; }

.nav-toggle {
	display: none; position: relative; width: 44px; height: 44px;
	border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { left: 0; right: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.theme-toggle { margin-left: 0; }
	.header-inner { gap: 10px; }
	.site-nav {
		position: fixed; left: 0; right: 0; top: var(--header-h);
		background: var(--surface); border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(11, 29, 58, .3);
		padding: 12px 24px 24px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: transform .2s, opacity .2s, visibility .2s;
	}
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav a:not(.btn) { padding: .8em .75em; font-size: 1.05rem; }
	.nav-cta { margin: 12px 0 0; }
	.nav-cta .btn { width: 100%; justify-content: center; padding: .9em; }
}

/* --- Hex pattern (dunkle Bereiche) ---------------------------------------- */
.hero-pattern {
	position: absolute; inset: 0; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7 56 80.9V113L28 129.3 0 113V80.9zM0 -32.3 28 -16.2v32.4L0 32.3' fill='none' stroke='%233a9af5' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 56px 97px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	color: #dbe6f5;
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(58, 154, 245, .22), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(22, 99, 199, .25), transparent 60%),
		linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero-inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px;
	padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(72px, 11vw, 136px);
}
.eyebrow {
	display: inline-block; margin-bottom: 1.1em;
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--blue-500);
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; max-width: 14ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 54ch; color: #b6c6dd; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual svg { width: 100%; max-width: 360px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hx { transform-box: fill-box; transform-origin: center; animation: hx-float 7s ease-in-out infinite; }
.hx-b { animation-delay: -2s; }
.hx-c { animation-delay: -4s; }
.hx-d { animation-delay: -1s; animation-duration: 5s; }
@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { display: none; }
}

/* --- Sections -------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	position: relative; padding: 28px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--card-hover-border); }
.card-icon {
	display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
	border-radius: 12px; color: var(--accent); background: var(--accent-soft-2);
	clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}
.card-icon .icon { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value-check {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--blue-600); color: #fff; flex: none; margin-top: 2px;
}
.value-check .icon { width: 18px; height: 18px; }
.value h3 { font-size: 1.05rem; margin-bottom: .3em; }
.value p { color: var(--ink-2); font-size: .96rem; margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; gap: 24px; } }

/* --- Contact box ----------------------------------------------------------- */
.contact-section { padding-top: 0; }
.section-alt + .contact-section { padding-top: clamp(56px, 8vw, 96px); }
.contact-box {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
	padding: clamp(32px, 5vw, 56px);
	border-radius: 22px; color: #c8d6ea;
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(58, 154, 245, .25), transparent 60%),
		linear-gradient(135deg, var(--navy-800), var(--navy-950));
	box-shadow: var(--shadow);
}
.contact-box > :not(.hero-pattern) { position: relative; z-index: 1; }
.contact-box .hero-pattern { z-index: 0; }
.contact-box h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.contact-copy p { margin: 0; max-width: 46ch; }
.contact-box > :not(.hero-pattern) { min-width: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list li > div {
	display: flex; align-items: center; gap: 16px;
	padding: 14px 18px; border-radius: 12px;
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
	color: #fff; font-weight: 600; font-size: 1.05rem;
	transition: background-color .2s, border-color .2s;
}
.contact-list a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(58, 154, 245, .6); color: #fff; }
.contact-list small { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500); }
.contact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(58, 154, 245, .15); color: var(--blue-500); flex: none; }
@media (max-width: 860px) { .contact-box { grid-template-columns: 1fr; } }

.contact-box.has-form { grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(32px, 5vw, 64px); }
.contact-box.has-form .contact-list { margin-top: 32px; }
@media (max-width: 960px) { .contact-box.has-form { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; color: #dbe6f5; font-weight: 500; }
.steps span {
	display: grid; place-items: center; width: 30px; height: 30px; flex: none;
	border-radius: 50%; border: 1.5px solid rgba(58, 154, 245, .6); color: var(--blue-500); font-size: .85rem; font-weight: 700;
}

/* --- Rückruf-Formular ------------------------------------------------------- */
.callback { scroll-margin-top: calc(var(--header-h) + 24px); }
.callback-form, .callback-done {
	background: var(--surface); color: var(--ink);
	border-radius: 16px; padding: clamp(22px, 3vw, 32px);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
	border: 1px solid var(--line);
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; padding: 0; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
	padding: .7em .85em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft-2); }
.field [aria-invalid="true"], fieldset[aria-invalid="true"] .day span, fieldset[aria-invalid="true"] .slot span { border-color: #e5484d !important; }
.field-error { color: #e5484d; font-size: .85rem; margin: 6px 0 0; }
html.dark .field-error { color: #ff8589; }
.form-alert { background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .35); color: var(--ink); padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; }

/* Tag- und Zeitfenster-Auswahl */
.day-picker { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day, .slot { position: relative; cursor: pointer; }
.day input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.day span {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 62px; padding: 8px 6px; scroll-snap-align: start;
	border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
	line-height: 1.15; transition: border-color .15s, background-color .15s, color .15s;
}
.day small { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.day strong { font-size: 1.25rem; color: var(--ink); margin: 2px 0; }
.slot-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.slot span {
	display: block; text-align: center; padding: .65em .5em; font-size: .92rem; font-weight: 600; color: var(--ink-2);
	border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color .15s, background-color .15s, color .15s;
}
.day:hover span, .slot:hover span { border-color: var(--accent); }
.day input:checked + span, .slot input:checked + span { border-color: var(--accent); background: var(--accent-soft-2); color: var(--accent-strong); }
.day input:checked + span strong, .day input:checked + span small { color: var(--accent-strong); }
.day input:focus-visible + span, .slot input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.field-check { margin-top: 4px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink-2) !important; font-size: .88rem !important; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue-600); }
.btn-block { width: 100%; justify-content: center; padding: .95em 1.2em; font-size: 1rem; }
.form-note { font-size: .82rem; color: var(--ink-3); text-align: center; margin: 12px 0 0; }

.callback-done { text-align: center; padding: clamp(32px, 5vw, 48px); }
.callback-done:focus { outline: none; }
.callback-done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft-2); color: var(--accent); margin-bottom: 16px; }
.callback-done-icon .icon { width: 28px; height: 28px; }
.callback-done h3 { font-size: 1.3rem; }
.callback-done p { color: var(--ink-2); margin: 0 auto 1.2em; max-width: 40ch; }

/* --- Page head (Unterseiten) ---------------------------------------------- */
.page-head {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px);
	background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
	color: #b6c6dd;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin: 0; }
.page-head .eyebrow { margin-bottom: .8em; }
.page-head .lead { margin: .8em 0 0; font-size: 1.12rem; }

.cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cover img { width: 100%; }

/* --- Prose (Seiteninhalt) -------------------------------------------------- */
.prose { color: var(--ink-2); font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.05rem; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue-500); }
.prose blockquote { margin: 1.5em 0; padding: .6em 1.2em; border-left: 4px solid var(--blue-500); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; color: var(--code-ink); }
.prose pre { font-family: var(--mono); font-size: .88rem; line-height: 1.6; background: var(--navy-950); color: #dbe6f5; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.5em 0; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .7em .9em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--bg-alt); font-weight: 600; }

/* Linklisten (z. B. „tools“) werden automatisch zu Karten – via JS-Klasse */
.prose ul.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose ul.link-list li { margin: 0; }
.prose ul.link-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
	color: var(--ink); font-weight: 600; text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.prose ul.link-list a::after {
	content: ""; width: 18px; height: 18px; flex: none;
	background: currentColor; color: var(--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s;
}
.prose ul.link-list a:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.prose ul.link-list a:hover::after { transform: translateX(3px); }

.tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: .3em .8em; border-radius: 999px; background: var(--accent-soft); font-size: .88rem; font-weight: 500; }

/* --- Posts ------------------------------------------------------------------ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.15rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--accent); }
.post-body p { color: var(--ink-2); font-size: .96rem; }
.meta { font-size: .82rem; color: var(--ink-3); margin-bottom: .6em; }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .95rem; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pagination-info { color: var(--ink-3); font-size: .9rem; }

/* --- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-3); margin: 0; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; color: var(--ink-2); }
.site-footer ul a { color: var(--ink-2); display: inline-flex; align-items: center; gap: .35em; text-transform: none; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer ul .icon { width: .85em; height: .85em; opacity: .6; }
.footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
	padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line);
	color: var(--ink-3); font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.to-top { color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }


/* --- Dunkelmodus ------------------------------------------------------------
   Klasse .dark auf <html> wird per Skript im <head> gesetzt: automatisch nach
   Systemeinstellung oder manuell über den Umschalter im Header. */
html.dark {
	--ink:      #e8eef7;
	--ink-2:    #b3c0d3;
	--ink-3:    #8394ac;
	--line:     #1f3150;
	--bg:       #081428;
	--bg-alt:   #0b1a33;
	--surface:  #0f2140;
	--header-bg: rgba(8, 20, 40, .82);
	--accent:        #5aaeff;
	--accent-strong: #8cc7ff;
	--accent-soft:   rgba(58, 154, 245, .12);
	--accent-soft-2: rgba(58, 154, 245, .16);
	--card-hover-border: #2c5a96;
	--code-ink: #cfe3fb;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow:    0 14px 34px -14px rgba(0, 0, 0, .7);
}
/* Hero/Seitenkopf etwas absetzen vom dunklen Seitenhintergrund */
html.dark .hero, html.dark .page-head { border-bottom: 1px solid var(--line); }
html.dark .contact-box { border: 1px solid var(--line); }
html.dark .prose pre { background: #050d1c; border: 1px solid var(--line); }
html.dark .prose img, html.dark .cover img { filter: brightness(.92); }
/* Logo ohne eigene Dunkel-Variante: einfarbig weiß darstellen */
html.dark .brand img.logo-mono { filter: brightness(0) invert(1); opacity: .95; }

/* --- Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Print ------------------------------------------------------------------- */
@media print {
	.site-header, .nav-toggle, .hero-visual, .to-top, .hero-pattern { display: none !important; }
	.hero, .page-head, .contact-box { background: none !important; color: #000 !important; box-shadow: none !important; }
	.hero h1, .page-head h1, .contact-box h2, .contact-list a { color: #000 !important; }
}
