:root {
  /* Farben */
  --bg:          #0b0d0c;   /* Seitenhintergrund */
  --surface:     #111413;   /* Karten, Formularfelder */
  --surface-2:   #161a18;   /* Hover/aktive Fläche */
  --line:        #ffffff14; /* Rahmen, Trennlinien */
  --line-dash:   #ffffff1a; /* gestrichelte Listen */
  --line-hover:  #ffffff26; /* Rahmen von Feldern bei Hover */
  --grid:        #ffffff06; /* Hintergrundraster */

  --text:        #d7dbd8;   /* Fließtext */
  --text-strong: #f0f2f0;   /* Überschriften */
  --text-soft:   #aab1ad;   /* Beschreibungen */
  --muted:       #8c938f;   /* Lead, Footer-Links */
  --faint:       #7c837f;   /* Meta, Labels */

  --accent:      #e0a458;   /* Bernstein – einziger Akzent */
  --accent-hover: #ebb470;  /* Button-Hover */
  --accent-soft: #e0a45826; /* Fokus-Ring, Markierungen */
  --on-accent:   #0b0d0c;   /* Text auf Bernstein (Button, Textauswahl) */
  --danger:      #e27d6f;   /* Fehlermeldungen */
  --success:     #7ec99a;   /* Erfolgsmeldungen */

  /* Schrift */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Abstände (4er-Raster) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 96px;

  /* Layout */
  --content: 760px;   /* max. Inhaltsbreite */
  --gutter:  24px;    /* seitlicher Rand (mobil 16px) */
  --radius:  0;       /* bewusst eckig */
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/meta/zf6001647/fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/meta/zd4586128/fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/meta/z4bb208ff/fonts/ibm-plex-sans-600.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/meta/z55e6b505/fonts/jetbrains-mono-400.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/meta/z14e54279/fonts/jetbrains-mono-500.woff2") format("woff2");
}

@media (max-width: 639.98px) {
	:root {
		--gutter: 16px;
	}
}

/* ---- Basis (Spec 2, 3, 6) ---- */

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background-color: var(--bg);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 32px 32px;
	color: var(--text-soft);
	font: 400 1rem/1.65 var(--font-sans);
}

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

a,
input,
textarea,
button,
.gh-btn {
	transition: color .15s, border-color .15s, background-color .15s;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* ---- Seitengeruest (Spec 3, 5) ---- */

.gh-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--content);
	margin: 0 auto;
	padding: 96px var(--gutter) 0;
}

@media (max-width: 639.98px) {
	.gh-main {
		padding-top: 56px;
	}
}

/* ---- Typografie (Spec 2) ---- */

h1 {
	margin: 0 0 12px;
	color: var(--text-strong);
	font: 600 2.4rem/1.2 var(--font-sans);
	letter-spacing: -.02em;
	text-align: left;
}

h3 {
	margin: 0 0 10px;
	color: var(--text-strong);
	font: 600 1.35rem/1.3 var(--font-sans);
}

h4 {
	margin: 0 0 10px;
	color: var(--text-strong);
	font: 600 1rem/1.4 var(--font-sans);
}

p {
	margin: 0 0 16px;
}

@media (max-width: 639.98px) {
	h1 {
		font-size: 2rem;
	}
}

.gh-kicker {
	margin: 0 0 14px;
	color: var(--accent);
	font: 400 .8rem var(--font-mono);
}

.gh-lead {
	margin: 0 0 72px;
	color: var(--muted);
	font: 400 1rem/1.65 var(--font-sans);
}

.gh-meta {
	margin: 0;
	color: var(--faint);
	font: 400 .75rem var(--font-mono);
}

/* Kopf ohne Lead (Datenschutz): Meta haelt denselben Abstand zum ersten Abschnitt wie der Lead (72px) */
.gh-head .gh-meta {
	margin-bottom: 72px;
}

/* 4.1 Abschnitts-Ueberschrift: Text bleibt im DOM unveraendert, die Anzeige ist klein */
h2 {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 56px 0 14px;
	color: var(--faint);
	font: 400 .78rem/1 var(--font-mono);
	text-transform: lowercase;
}

h2::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* ---- 4.4 Links ---- */

a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--text-strong);
}

h1 a,
h3 a,
h4 a {
	color: var(--text-strong);
	text-decoration: none;
}

h1 a:hover,
h3 a:hover,
h4 a:hover {
	color: var(--accent);
}

a:focus-visible,
button:focus-visible,
.gh-btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---- 4.2 Karte ---- */

.gh-card {
	padding: 28px 28px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 2px solid var(--accent);
	border-radius: 0;
}

.gh-card + .gh-card {
	margin-top: 16px;
}

.gh-card-head {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	margin-bottom: 10px;
}

.gh-card-head h3 {
	margin: 0;
}

@media (max-width: 639.98px) {
	.gh-card {
		padding: 20px;
	}
}

/* ---- 4.3 Listen ---- */

.list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px dashed var(--line-dash);
}

.list li {
	display: flex;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line-dash);
	font-size: .93rem;
}

.list .n {
	padding-top: 3px;
	color: var(--accent);
	font: .78rem var(--font-mono);
}

/* einfache Aufzaehlung in Rechtstexten */
ul:not(.list) {
	padding-left: 20px;
}

ul:not(.list) li::marker {
	color: var(--faint);
}

/* ---- 4.5 Key-Value ---- */

.kv {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 10px 20px;
	margin: 0;
}

.kv dt {
	padding-top: 3px;
	color: var(--faint);
	font: .78rem var(--font-mono);
	text-transform: lowercase;
}

.kv dd {
	margin: 0;
	color: var(--text);
}

@media (max-width: 639.98px) {
	.kv {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.kv dd {
		margin-bottom: 12px;
	}
}

/* ---- 4.6 Formular ---- */

label {
	display: block;
	margin-bottom: 6px;
	color: var(--faint);
	font: .78rem var(--font-mono);
	text-transform: lowercase;
}

input,
textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 0;
	font: 1rem var(--font-sans);
}

textarea {
	min-height: 160px;
	resize: vertical;
}

input:hover,
textarea:hover {
	border-color: var(--line-hover);
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.field {
	margin-bottom: 20px;
}

label .req {
	color: var(--accent);
}

.field .error {
	margin-top: 6px;
	color: var(--danger);
	font: .75rem var(--font-mono);
}

/* clientseitige Feldfehler von Tapestry; Bootstraps .text-danger setzt die Farbe mit !important */
[data-error-block-for].help-block {
	margin-top: 6px;
	color: var(--danger) !important;
	font: .75rem var(--font-mono);
}

.gh-form-note {
	margin-top: 16px;
	color: var(--muted);
	font-size: .85rem;
}

/* ---- 4.7 Button ---- */

.gh-btn {
	padding: 12px 20px;
	background: var(--accent);
	color: var(--on-accent);
	border: 0;
	border-radius: 0;
	font: 500 .85rem var(--font-mono);
	text-decoration: none;
	cursor: pointer;
}

.gh-btn:hover {
	background: var(--accent-hover);
}

.gh-btn:disabled {
	background: var(--surface-2);
	color: var(--faint);
	cursor: not-allowed;
}

.gh-btn.gh-btn-ghost {
	background: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
}

/* ---- 4.8 Meldung: .notice und Tapestry-Markup (t:alerts clientseitig, t:errors serverseitig) ---- */

.notice,
.alert {
	margin: 0 0 16px;
	padding: 14px 18px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--line);
	border-left: 2px solid var(--success);
	border-radius: 0;
	font-size: .93rem;
}

.notice.error,
.alert.alert-danger {
	border-left-color: var(--danger);
}

.alert.alert-success {
	border-left-color: var(--success);
}

.alert button.close {
	float: right;
	margin-left: 12px;
	padding: 0;
	background: transparent;
	color: var(--faint);
	border: 0;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.alert button.close:hover {
	color: var(--accent);
}

.alert h4 {
	margin: 0 0 8px;
	color: var(--faint);
	font: 400 .78rem var(--font-mono);
}

.alert ul {
	margin: 0;
	padding-left: 20px;
}

.alert ul li::marker {
	color: var(--faint);
}

/* ---- 4.9 Footer ---- */

.gh-footer {
	display: flex;
	flex-wrap: wrap;
	flex-shrink: 0;
	gap: 22px;
	width: 100%;
	max-width: var(--content);
	margin: 0 auto;
	padding: 72px var(--gutter) 36px;
	color: var(--faint);
	font: .78rem var(--font-mono);
}

.gh-footer a {
	color: var(--muted);
	text-decoration: none;
}

.gh-footer a:hover,
.gh-footer a[aria-current="page"] {
	color: var(--accent);
}

.gh-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.gh-footer nav a {
	text-transform: lowercase;
}

.gh-footer .copy {
	margin-left: auto;
}

/* Dev-Reload-Link (nur im Entwicklungsbetrieb) */
.gh-dev {
	color: var(--muted);
	font: .78rem var(--font-mono);
	text-decoration: none;
}

.gh-dev:hover {
	color: var(--accent);
}

.gh-dev:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---- Kontakt (Spec 5): zweispaltig ab 720px ---- */

.gh-contact {
	display: grid;
	gap: 56px;
}

/* Grid-Items kollabieren Rand nicht: erste h2 je Spalte ohne eigenen Abstand nach oben */
.gh-contact h2 {
	margin-top: 0;
}

/* 240px reichen nicht fuer 120px 1fr: Key-Value in der Seitenspalte einspaltig (wie mobil, Spec 4.5) */
.gh-contact aside .kv {
	grid-template-columns: 1fr;
	gap: 2px;
}

.gh-contact aside .kv dd {
	margin-bottom: 12px;
}

@media (min-width: 720px) {
	.gh-contact {
		grid-template-columns: 1fr 240px;
	}
}

/* ---- Bot-Schutz (BotProtection-Component) ---- */

.bot-protection-honeypot {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bot-protection-noscript {
	margin: 0;
	padding: 0.5rem 0.75rem;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 0;
}

/* ---- Blogbeitrag (Spec 4.10-4.12, 5) ---- */

.gh-post strong {
	color: var(--text-strong);
	font-weight: 600;
}

/* 4.10 Zitat */
.gh-post blockquote {
	margin: 0 0 16px;
	padding: 0 0 0 var(--s-4);
	border-left: 2px solid var(--accent);
	color: var(--text);
}

.gh-post blockquote p {
	margin: 0;
}

/* 4.11 Code: Inline und Block */
.gh-post code {
	padding: 1px var(--s-1);
	background: var(--surface);
	color: var(--text);
	font: 400 .875em var(--font-mono);
}

.gh-post pre {
	margin: 0 0 16px;
	padding: var(--s-4);
	overflow-x: auto;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	font: 400 .8rem/1.5 var(--font-mono);
}

.gh-post pre code {
	padding: 0;
	background: none;
	font: inherit;
}

.gh-post pre:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* 4.12 Trennlinie */
.gh-post hr {
	margin: 56px 0 16px;
	border: 0;
	border-top: 1px solid var(--line);
	opacity: 1;
}

/* Umbrechende Ueberschriften: Zeilenhoehe und Linie schrumpfen nicht auf 0 */
.gh-post h2 {
	line-height: 1.4;
}

.gh-post h2::after {
	min-width: var(--s-6);
}
