/*
 * 3ventIT Theme – Haupt-Stylesheet
 * Design 1:1 nach Vorlage v4: warm-dunkles Anthrazit, Orange (#f0701f) führend,
 * Blau (#3a9bef) als minimaler Zweitakzent, System-Schriften (kein Font-CDN).
 */

/* ---------- Design-Token ---------- */
:root {
	--bg: #15171b;
	--sec: #1b1e23;
	--card: #23272f;
	--line: #31353d;
	--ink: #eceef1;
	--grey: #a2a7af;
	--blue: #3a9bef;
	--orange: #f0701f;
	--orange-dark: #d65f14;
	--orange-soft: rgba(240, 112, 31, 0.15);
	/* WCAG AA auf gefüllten Buttons mit WEISSER Schrift.
	   Weiß auf --orange (#f0701f) erreicht nur 2,98:1 und verfehlt die
	   AA-Schwelle von 4,5:1 (Normaltext). Da Schriftfarbe (weiß) und
	   Schriftgröße (14px) gesetzt sind, bleibt nur die Fläche als Stellhebel.
	   --orange-btn ist voll gesättigt (Blau-Anteil 0), damit der Ton beim
	   Abdunkeln leuchtend statt bräunlich bleibt; Farbton 21,8° liegt
	   praktisch auf dem Marken-Orange (23,3°).
	     #fff auf --orange-btn        = 4,62:1  ✓ AA
	     #fff auf --orange-btn-hover  = 5,72:1  ✓ AA
	   NUR für gefüllte Button-Flächen (.p-orange, .cc-btn-primary,
	   .skip-link). Akzente, Links, Icons, Rahmen und Gradienten behalten
	   --orange / --orange-dark. */
	--orange-btn: #cc4a00;
	--orange-btn-hover: #b34100;
	/* Glas-Sprache (nach Vorbild frontend_live) */
	--glass-line: rgba(255, 255, 255, 0.08);
	--glass-line-strong: rgba(255, 255, 255, 0.14);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Der Header ist sticky (66px). Ohne scroll-padding rutscht der Anfang jedes
   Ankerziels darunter — der Sprung ginge optisch zu weit nach unten. Am <html>
   gesetzt, damit es fuer jedes kuenftige Ankerziel gilt, nicht nur die heutigen. */
html { scroll-padding-top: 82px; }

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

body {
	font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(240, 112, 31, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
/* WCAG 1.4.11: Der Daumen ersetzt die UA-Scrollbar und ist selbst ein
   Bedienelement — 0.14 ergab nur 1,52:1 auf --bg. 0.35 → 3,23:1. */
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.35); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.serif { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }

.label {
	font-size: 11px;
	letter-spacing: 2.5px;
	font-weight: 700;
	color: var(--orange);
	text-transform: uppercase;
}

.accent-bar {
	width: 64px;
	height: 3px;
	background: linear-gradient(90deg, var(--orange-dark), var(--orange));
	border-radius: 3px;
	margin: 22px auto 0;
	box-shadow: 0 0 16px rgba(240, 112, 31, 0.45);
}

.icon { flex: none; vertical-align: middle; }

/* ---------- Barrierefreiheit ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--orange-btn);
	color: #fff; /* 4,62:1 — s. Token-Block. */
	font-size: 14px;
	font-weight: 600;
	border-radius: 0 0 8px 0;
}
.skip-link:focus {
	left: 0;
	outline: none;
}

/* #content traegt tabindex="-1" und wird nur programmatisch fokussiert (Skip-Link,
   Fokus-Fallback aus consent.js) — daher kein Fokusring um den ganzen Hauptinhalt.
   Der :focus-visible-Ring an echten Bedienelementen bleibt davon unberuehrt. */
#content:focus {
	outline: none;
}

/* ---------- Buttons (Pills) ----------
   Maße exakt wie in der Design-Vorlage v4: 14px/600, Padding 12/24.
   Die AA-Konformität kommt über die Flächenfarbe (--orange-btn), nicht über
   Schriftgröße oder -farbe — die Schrift bleibt weiß. Siehe Token-Block. */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition:
		background-color 0.25s var(--ease),
		border-color 0.25s var(--ease),
		color 0.25s var(--ease),
		box-shadow 0.25s var(--ease),
		transform 0.25s var(--ease);
	font-family: inherit;
}
.pill .icon { transition: transform 0.25s var(--ease); }
.pill:hover .icon { transform: translateX(3px); }
.p-orange {
	/* Weiße Schrift => --orange-btn als Fläche: 4,62:1 (AA). S. Token-Block. */
	background: var(--orange-btn);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 16px -6px rgba(240, 112, 31, 0.55);
}
.p-orange:hover {
	background: var(--orange-btn-hover); /* 5,72:1 mit Weiß. */
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 26px -8px rgba(240, 112, 31, 0.65);
	transform: translateY(-1px);
}
.p-orange:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 10px -6px rgba(240, 112, 31, 0.5); }
/* WCAG 1.4.11: Der Rahmen ist das einzige Merkmal, das den Ghost-Button als
   Button erkennbar macht — 0.5 ergab nur 2,33:1 auf dem Hero. 0.8 → 3,91:1. */
.p-ghost {
	border-color: rgba(240, 112, 31, 0.8);
	color: #fff;
	background: rgba(255, 255, 255, 0.02);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.p-ghost:hover { background: var(--orange-soft); border-color: var(--orange); }
.p-ghost:active { background: rgba(240, 112, 31, 0.22); }
.p-out { border-color: var(--orange); color: var(--orange); font-size: 13px; padding: 9px 18px; }
.p-out:hover { background: var(--orange-soft); box-shadow: 0 4px 16px -8px rgba(240, 112, 31, 0.5); }
/* Nav-CTA: nur kompaktere Polsterung. Die Schriftgröße ist hier kein Stellhebel —
   der Kontrast kommt allein aus der Fläche (--orange-btn, 4,62:1 mit Weiß).
   Marken-Orange --orange als Fläche wäre 2,98:1 und verfehlt AA in JEDER
   Schriftgröße (auch die 3,0:1-Schwelle für großen Text). */
.nav-cta { padding: 7px 18px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%), rgba(21, 23, 27, 0.82);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	border-bottom: 1px solid var(--glass-line);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
/* min-height statt height: Bei reinem Text-Zoom (200 %) ragte der Nav-CTA sonst aus dem
   Band. Durch align-items:center bleibt die Optik im Normalzustand unveraendert — die
   Hoehe kann jetzt nur noch wachsen, nie schrumpfen. */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }

.brand { line-height: 1.15; }
.brand a { display: inline-block; }
.brand-logo { display: block; }
.brand-logo img { display: block; height: 20px; width: auto; }
.brand .brand-name {
	font-size: 21px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.5px;
	display: block;
}
.brand .brand-name .brand-it { color: var(--orange); font-style: normal; }
/* Lesbarkeit (WCAG): mindestens 11px — 9px/7,5px waren unter jeder Lesbarkeits-
   grenze. Ab Tablet steht die Subline einzeilig (siehe .site-footer unten); nur
   einspaltig auf dem Telefon darf sie umbrechen, dort wird zusätzlich das
   Tracking reduziert (Media-Query unten). */
.brand .brand-sub {
	display: block;
	font-size: 11px;
	letter-spacing: 1.2px;
	color: #fff;
	margin-top: 10px;
	text-transform: uppercase;
}
.custom-logo { display: block; max-height: 44px; width: auto; }

.main-navigation ul {
	display: flex;
	gap: 30px;
	list-style: none;
	font-size: 14px;
	color: #c3c7cd;
}
.main-navigation a {
	position: relative;
	display: inline-block;
	padding: 4px 0;
	color: #c3c7cd;
	transition: color 0.25s var(--ease);
}
.main-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s var(--ease);
}
.main-navigation a:hover,
.main-navigation a.is-active,
.main-navigation .current-menu-item > a { color: #fff; }
.main-navigation a:hover::after,
.main-navigation a.is-active::after,
.main-navigation .current-menu-item > a::after { transform: scaleX(1); }

.nav-toggle {
	display: none;
	background: rgba(255, 255, 255, 0.03);
	border: 1.5px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	padding: 8px 10px;
	cursor: pointer;
	line-height: 0;
	transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(130% 130% at 72% -10%, #2a2018 0%, var(--bg) 60%);
	padding: 112px 0 100px;
	text-align: center;
}
/* Zusätzliche, sehr dezente Glow-Layer über dem warmen Grundverlauf */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(620px 340px at 50% -80px, rgba(240, 112, 31, 0.11) 0%, rgba(240, 112, 31, 0) 70%),
		radial-gradient(900px 300px at 50% 108%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
}
.hero .wrap { position: relative; }
.hero-logo {
	display: flex;
	justify-content: center;
}
.hero-logo svg {
	width: 100%;
	max-width: 230px;
	height: auto;
}
.hero-logo .logo-it { fill: var(--orange); }
.hero .sub { font-size: 12px; letter-spacing: 3px; color: #fff; margin-top: 10px; text-transform: uppercase; }
.hero h1 {
	font-size: 30px;
	font-weight: 400;
	color: #dfe2e6;
	margin: 36px auto 0;
	max-width: 720px;
	line-height: 1.4;
}
.hero h1 .serif { color: var(--orange); }
.hero .hero-text { color: var(--grey); font-size: 16px; line-height: 1.7; margin: 24px auto 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats-Streifen ---------- */
.strip {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%), var(--sec);
	border-top: 1px solid var(--glass-line);
	border-bottom: 1px solid var(--glass-line);
}
.strip ul {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 22px 24px;
	justify-content: space-between;
	list-style: none;
	max-width: 1080px;
	margin: 0 auto;
}
.strip li {
	flex: 1;
	min-width: 150px;
	color: #c3c7cd;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}
.strip .icon { color: var(--orange); filter: drop-shadow(0 0 6px rgba(240, 112, 31, 0.35)); }
@media (min-width: 821px) {
	.strip li + li { border-left: 1px solid rgba(255, 255, 255, 0.06); padding-left: 14px; }
}

/* ---------- Sektionen ---------- */
.section { padding: 80px 0; }
.alt { background: var(--sec); }
.shead { text-align: center; margin-bottom: 46px; }
.shead h2, .about-intro h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-top: 8px; color: #fff; }
h2 .accent, h3 .accent { font-style: normal; color: var(--orange); }
.shead h2 .num3 { height: 0.9em; width: auto; display: inline-block; vertical-align: baseline; margin: 0 0 -0.08em 0; }

/* Wortmarke in Überschriften (threeventit_brand_mark) — ersetzt den Schriftzug
   „3ventIT“ dort, wo er als Marke steht. 0.75em, weil das Logo-Artwork die
   viewBox fast voll ausfüllt (die „3“ reicht von oben bis zur Grundlinie): So
   trifft die Marke die Versalhöhe des umgebenden Textes statt ihn zu überragen.
   Skaliert damit automatisch mit jeder Überschriftengröße mit (24–36px). */
.brand-inline {
	height: 0.75em;
	width: auto;
	display: inline-block;
	vertical-align: baseline;
	margin-bottom: -0.02em;
}
.shead p { color: var(--grey); font-size: 16px; margin-top: 10px; }

/* ---------- Leistungs-Karten (Glassmorphism) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	position: relative;
	/* Transluzentes Glas über dem Anthrazit-Grund: heller Sheen oben + dunkle Basis */
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(240, 112, 31, 0.1) 0%, rgba(240, 112, 31, 0) 60%),
		linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%),
		rgba(30, 33, 40, 0.72);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid rgba(240, 112, 31, 0.28);
	border-radius: 20px;
	padding: 30px 28px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 4px 12px rgba(0, 0, 0, 0.22),
		0 16px 40px rgba(0, 0, 0, 0.28);
	transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
	display: flex;
	flex-direction: column;
}
.card:hover {
	transform: translateY(-6px);
	border-color: rgba(240, 112, 31, 0.55);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 8px 20px rgba(0, 0, 0, 0.3),
		0 26px 60px rgba(0, 0, 0, 0.38),
		0 0 46px -12px rgba(240, 112, 31, 0.45);
}
.card .ico {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--orange-soft);
	border: 1px solid rgba(240, 112, 31, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px -8px rgba(240, 112, 31, 0.5);
	color: var(--orange);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover .ico { background: rgba(240, 112, 31, 0.22); border-color: rgba(240, 112, 31, 0.55); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #fff; }
/* Einheitliche Mindesthöhe der Kategorie-Beschreibung, damit die Tile-Liste
   in allen drei Karten auf gleicher Höhe beginnt (unabhängig von der Textlänge). */
.card > p { font-size: 14px; color: var(--grey); line-height: 1.6; min-height: 4.8em; }
/* Einzelleistungen als dezente Glas-Tiles.
   Die Liste füllt den verfügbaren Kartenraum (flex: 1), jedes Tile erhält den
   gleichen Anteil (flex: 1 1 0) — so sind 3er- und 4er-Karten exakt gleich hoch
   und gleichmäßig gefüllt, die "Mehr zu …"-Links schließen auf einer Höhe ab. */
.card ul {
	list-style: none;
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}
.card li {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 13px;
	color: #d6d9dd;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 10px 14px;
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card li:hover { background: rgba(240, 112, 31, 0.12); border-color: rgba(240, 112, 31, 0.4); }
.card li strong { display: block; color: #fff; font-weight: 600; }
.card li .desc { display: block; color: var(--grey); margin-top: 2px; line-height: 1.5; }
.card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 20px;
	color: var(--orange);
	font-size: 14px;
	font-weight: 600;
	transition: color 0.25s var(--ease);
}
.card-link:hover { color: #ff8a3c; }
.card-link .icon { transition: transform 0.25s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

/* ---------- Über uns (Intro + Säulen) ---------- */
.about-intro { max-width: 860px; margin: 0 auto 52px; text-align: center; }
.about-intro .label { margin-bottom: 8px; }
.about-intro h2 { margin-bottom: 22px; }
.about-lead { color: #d6d9dd; font-size: 16px; line-height: 1.7; max-width: 760px; margin: 0 auto; }
.about-lead strong { color: #fff; font-weight: 700; }
.about-outro { color: #d6d9dd; font-size: 16px; line-height: 1.7; max-width: 760px; margin: 0 auto; }

/* Die drei Bereiche als anklickbare Säulen */
.pillars { display: flex; flex-direction: column; gap: 20px; max-width: 680px; margin: 32px auto 30px; text-align: left; }
.pillar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-left: 20px;
	border-left: 2px solid var(--line);
	transition: border-color 0.25s var(--ease);
}
.pillar:hover { border-left-color: var(--orange); }
.pillar h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 5px; transition: color 0.25s var(--ease); }
.pillar p { font-size: 14px; color: var(--grey); line-height: 1.6; }
.pillar .icon { flex: none; color: rgba(255, 255, 255, 0.4); margin-top: 2px; transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.pillar:hover h3 { color: var(--orange); }
.pillar:hover .icon { color: var(--orange); transform: translateX(4px); }

/* ---------- Stärken-Karten (ohne eigene Überschrift, siehe section-why.php) ---------- */
/* Der Abstand zu den Karten kommt aus .about-intro (margin-bottom: 52px). */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
/* Oberflaeche identisch zu .ref-card (Referenzen): Orange-Schimmer oben, Glas-Blur,
   neutraler Rahmen — die Orange-Kante bleibt dem Hover vorbehalten. Nur das Layout
   bleibt eigen (Icon-Zeile statt Spalte). */
.why-item {
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(240, 112, 31, 0.08) 0%, rgba(240, 112, 31, 0) 60%),
		linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%),
		rgba(30, 33, 40, 0.72);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid var(--glass-line-strong);
	border-radius: 18px;
	padding: 26px 24px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.24);
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-item:hover {
	transform: translateY(-4px);
	border-color: rgba(240, 112, 31, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 36px -14px rgba(240, 112, 31, 0.4);
}
.why-item .icon {
	box-sizing: content-box;
	flex: none;
	color: var(--orange);
	background: var(--orange-soft);
	border: 1px solid rgba(240, 112, 31, 0.35);
	border-radius: 10px;
	padding: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.why-item:hover .icon { background: rgba(240, 112, 31, 0.22); border-color: rgba(240, 112, 31, 0.55); }
.why-item b { font-size: 15px; font-weight: 600; display: block; color: #fff; margin-bottom: 3px; }
.why-item span { font-size: 13px; color: var(--grey); line-height: 1.55; }

/* ---------- Kontakt-Band ---------- */
.band {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 82px 0;
	background: radial-gradient(120% 150% at 50% 0%, #3a2413 0%, var(--bg) 68%);
	border-top: 1px solid var(--glass-line);
}
/* Orangefarbene Hairline + Glow als Auftakt des Bandes */
.band::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(560px, 80%);
	height: 1px;
	background: linear-gradient(90deg, rgba(240, 112, 31, 0) 0%, rgba(240, 112, 31, 0.65) 50%, rgba(240, 112, 31, 0) 100%);
}
.band::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(480px 220px at 50% -40px, rgba(240, 112, 31, 0.12) 0%, rgba(240, 112, 31, 0) 70%);
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { font-size: 32px; font-weight: 700; color: #fff; margin-top: 8px; letter-spacing: -0.5px; }
.band p { margin: 12px 0 30px; color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer {
	background: linear-gradient(180deg, #101216 0%, #0c0e11 100%);
	color: var(--grey);
	padding: 62px 0 32px;
	border-top: 3px solid var(--orange);
	font-size: 13px;
}
/* Brand-Spalte traegt die einzeilige Subline, Stammdaten-Spalte „HRA 8868 P · Amtsgericht
   Potsdam" — beide brauchen mehr Breite als die reinen Link-Spalten. */
.fgrid { display: grid; grid-template-columns: 2.2fr 1.4fr 1fr 1fr; gap: 36px; }
/* Die Subline unter dem Logo darf nicht umbrechen. nowrap macht ihre volle Breite zur
   Mindestbreite (min-content) der Brand-Spalte — da `2.2fr` ein Auto-Minimum hat, zieht
   sich die Spalte selbst auf die noetige Breite, ohne dass hier ein Pixelwert geraten
   werden muss; die Link-Spalten teilen den Rest im gewohnten Verhaeltnis. */
@media (min-width: 821px) {
	.site-footer .brand .brand-sub { white-space: nowrap; }
}
/* Zwischen 821px und 1080px ist das 4-Spalten-Raster zu schmal, um die einzeilige
   Subline und die Link-Spalten nebeneinander zu tragen: dort bekommt die Brand-Spalte
   eine eigene volle Zeile, die drei Link-Spalten ruecken darunter. */
@media (min-width: 821px) and (max-width: 1079px) {
	.fgrid { grid-template-columns: 1.4fr 1fr 1fr; }
	.fgrid > div:first-child { grid-column: 1 / -1; }
}
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand .brand-name { font-size: 22px; }
.site-footer .fgrid > div > p { line-height: 1.7; max-width: 340px; }
.site-footer h2.fhead {
	color: #fff;
	font-size: 12px;
	margin-bottom: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 700;
}
/* Firmenname als Footer-Überschrift: Eigenschreibweise „3ventIT e.K." bewahren.
   14px gemischt gesetzt wirkt optisch so groß wie 12px Versalien der Nachbarspalten. */
.site-footer h2.fhead-brand {
	font-size: 14px;
	text-transform: none;
	letter-spacing: normal;
}
/* Footer-Linkgruppen sind <nav><ul> (Screenreader koennen so die Anzahl der Eintraege
   ansagen und die Gruppe ueberspringen) — optisch soll das aussehen wie vorher. */
.site-footer .fnav ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { display: block; width: fit-content; padding: 3px 0; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; line-height: 1.8; color: var(--grey); }
.site-footer address strong { color: #fff; font-weight: 700; }
/* Footer-Link, der wie ein Link aussieht, aber ein Button ist (Cookie-Modal). */
.site-footer .footer-linkbtn {
	display: block;
	width: fit-content;
	padding: 3px 0;
	background: none;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: color 0.25s var(--ease);
}
.site-footer .footer-linkbtn:hover { color: var(--orange); }
.fbot {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin-top: 42px;
	padding-top: 22px;
	color: #7a7f87;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.fbot .legal-links { display: flex; gap: 16px; list-style: none; }
.fbot .legal-links a { display: inline; padding: 0; }

/* ---------- Cookie-Consent ---------- */
/* [hidden] muss die display-Regeln unten überstimmen (Author > UA-Stylesheet). */
.cc-banner[hidden],
.cc-modal[hidden] { display: none; }
.cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: rgba(21, 23, 27, 0.92);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	border-top: 1px solid var(--glass-line);
	padding: 16px;
}
.cc-banner-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cc-banner-text { flex: 1 1 320px; font-size: 14px; color: var(--grey); line-height: 1.6; }
.cc-banner-text a { color: #fff; text-decoration: underline; }
.cc-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Alle Consent-Buttons haben dieselbe Größe und Gewichtung, damit „Nur
   notwendige" und „Alle akzeptieren" gleich prominent sind (kein Nudging);
   nur die Farbe unterscheidet sich. AA-Konformität von .cc-btn-primary kommt
   über die Flächenfarbe (--orange-btn) — siehe Token-Block. */
.cc-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	padding: 11px 22px;
	border-radius: 999px;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid var(--glass-line-strong);
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cc-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); }
.cc-btn-primary { background: var(--orange-btn); border-color: transparent; color: #fff; }
.cc-btn-primary:hover { background: var(--orange-btn-hover); border-color: transparent; }
.cc-btn-ghost { background: transparent; border-color: transparent; color: var(--grey); }
.cc-btn-ghost:hover { color: #fff; background: transparent; }

.cc-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cc-modal-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--card);
	border: 1px solid var(--glass-line);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.cc-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cc-modal-head h2 { font-size: 18px; color: #fff; font-weight: 700; }
.cc-modal-head p { font-size: 13px; color: var(--grey); margin-top: 4px; }
/* 36x36 statt ~21x26 — Zielgroesse, angeglichen an .cm-close (WCAG 2.2 / 2.5.8). */
.cc-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0;
	background: none; border: none; border-radius: 8px;
	color: var(--grey); font-size: 26px; line-height: 1; cursor: pointer;
}
.cc-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.cc-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--glass-line); }
.cc-cat:last-child { border-bottom: 0; }
.cc-cat-label { color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: baseline; }
/* WCAG AA: var(--grey) statt #6b7078 — 6,19:1 statt 3,0:1 auf --card. */
.cc-cat-req { color: var(--grey); font-size: 11px; font-weight: 400; }
.cc-cat-text p { color: var(--grey); font-size: 12px; line-height: 1.6; margin-top: 4px; }

/* WCAG 1.4.11: Der Schalter zeigt seinen Zustand allein über Track-Farbe und
   Knopfposition — beide müssen 3:1 erreichen.
   AUS-Track 0.18 → 1,79:1 auf --card, jetzt 0.35 → 3,13:1.
   AN-Track --orange → weißer Knopf darauf nur 2,98:1; --orange-btn → 4,62:1
   (und der Track selbst 3,24:1 gegen die Karte). */
.cc-switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; border: none; background: rgba(255, 255, 255, 0.35); cursor: pointer; padding: 0; transition: background-color 0.2s var(--ease); }
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.cc-switch.is-on { background: var(--orange-btn); }
.cc-switch.is-on::after { transform: translateX(18px); }
.cc-switch.is-locked { cursor: default; opacity: 0.65; }
.cc-switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cc-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.cc-modal-actions .cc-btn { flex: 1 1 auto; }

@media (max-width: 560px) {
	.cc-banner-actions { width: 100%; }
	.cc-banner-actions .cc-btn { flex: 1 1 auto; }
}

/* ---------- Kontakt-Modal ---------- */
.cm-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cm-modal[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* Die Karte spricht die Glas-Sprache des Themes (wie .card): Orange-Sheen oben,
   heller Verlauf, Orange-Rahmen. Der Grund bleibt bewusst das OPAKE --card und
   nicht rgba(30,33,40,.72) — die Feldrahmen unten sind gegen --card auf 3,63:1
   gerechnet (WCAG 1.4.11); ein transluzenter Grund würde den Wert vom jeweils
   durchscheinenden Seiteninhalt abhängig machen. */
.cm-card {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	/* iOS: vh meint den Viewport inkl. eingefahrener Adressleiste — die Karte
	   kann sonst unter der Toolbar verschwinden. dvh mit vh-Fallback davor. */
	max-height: min(92vh, calc(100dvh - 32px));
	overflow-y: auto;
	background:
		radial-gradient(130% 55% at 50% 0%, rgba(240, 112, 31, 0.1) 0%, rgba(240, 112, 31, 0) 60%),
		linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 55%),
		var(--card);
	border: 1px solid rgba(240, 112, 31, 0.28);
	border-radius: 18px;
	padding: 30px 28px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 30px 80px -20px rgba(0, 0, 0, 0.7),
		0 0 60px -20px rgba(240, 112, 31, 0.25);
}

/* Öffnen: die Seite arbeitet durchgängig mit Übergängen, nur das Modal poppte
   hart auf. Der globale prefers-reduced-motion-Block (oben) nullt das automatisch. */
@keyframes cm-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes cm-fade { from { opacity: 0; } }
.cm-modal:not([hidden]) .cm-card { animation: cm-in 0.3s var(--ease); }
.cm-modal:not([hidden]) .cm-backdrop { animation: cm-fade 0.25s var(--ease); }

.cm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
/* WCAG 1.4.3: Das Eyebrow sitzt oben in der Karte — also genau dort, wo der
   Orange-Sheen am stärksten ist und den Grund auf #403635 aufhellt. Das übliche
   --orange erreicht dort nur 3,92:1 und verfehlt die 4,5:1 für 11px-Normaltext.
   #ff8a3c (im Theme bereits als .card-link:hover im Einsatz) → 4,98:1. */
.cm-head .label { display: block; margin-bottom: 6px; color: #ff8a3c; }
.cm-head h2 { font-size: 24px; color: #fff; font-weight: 700; letter-spacing: -0.3px; }
.cm-head p { font-size: 14px; color: var(--grey); margin-top: 4px; }
/* Linksbündige Variante der sonst zentrierten .accent-bar. */
.cm-accent { width: 44px; margin: 14px 0 0; }
/* 36×36 statt ~20×26: als Touch-Ziel treffbar (WCAG 2.2/2.5.8) und im Kopf
   überhaupt als Bedienelement erkennbar. */
.cm-close {
	flex: none;
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	background: none; border: none; border-radius: 10px;
	color: var(--grey); font-size: 26px; line-height: 1; cursor: pointer; padding: 0;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cm-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.cm-form { display: flex; flex-direction: column; gap: 14px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cm-field { display: flex; flex-direction: column; gap: 6px; }
.cm-field > span { font-size: 13px; color: var(--grey); font-weight: 600; }
/* WCAG 1.4.11: Formularfelder brauchen eine erkennbare Grenze (3:1). Der
   dekorative --glass-line (0.08) erreichte nur 1,28:1 auf --card — die Felder
   waren ohne Fokus praktisch unsichtbar. 0.4 → 3,65:1 gegen die Karte. */
/* 16px ist Pflicht, keine Geschmacksfrage: iOS Safari zoomt beim Fokussieren
   jedes Feldes unter 16px automatisch in die Seite hinein. Auf dem Handy springt
   das Layout dann bei jedem Feldwechsel — auf einem Kontaktformular ein
   Conversion-Killer. */
.cm-field input,
.cm-field textarea {
	font-family: inherit;
	font-size: 16px;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 10px;
	padding: 11px 13px;
	width: 100%;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cm-field textarea { resize: vertical; min-height: 110px; }
.cm-field input:focus,
.cm-field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, 0.06); }

/* Honeypot per Position ausblenden (NICHT [hidden], damit Bots es ausfüllen). */
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hairline trennt die Abschluss-Zone (Zustimmung, Status, Senden, Alternativen)
   von den Feldern — vorher klebte beides ohne Gruppierung aneinander. */
.cm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey); line-height: 1.5; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--glass-line); }
/* WCAG 1.4.11: accent-color: var(--orange) ergab ein weißes Häkchen auf #f0701f
   = 2,98:1 — dieselbe Kombination, die für Buttonflächen und den Cookie-Switch
   bereits verboten ist. --orange-btn → Häkchen 4,62:1, Fläche 3,24:1 gegen die
   Karte. 18px, weil die UA-Größe (~13px) neben 13px-Text ein Zwerg ist. */
.cm-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--orange-btn); flex: none; }
.cm-consent a { color: var(--orange); text-decoration: underline; }

/* WCAG 4.1.3: Die Live-Region muss dauerhaft im Accessibility-Tree stehen —
   würde sie erst beim Melden eingeblendet (hidden / display:none), ginge die
   erste Ansage verloren. Solange sie leer ist, wird sie deshalb nur aus dem
   Layout genommen (Clip-Muster, NICHT display:none — das flöge aus dem Tree).
   position:absolute verhindert zugleich, dass sie die 14px-Lücke des Formulars
   ein zweites Mal aufzieht. */
.cm-status { font-size: 14px; border-radius: 10px; padding: 10px 13px; }
.cm-status:empty {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}
.cm-status--pending { color: var(--grey); background: rgba(255, 255, 255, 0.04); }
.cm-status--success { color: #7ee0a2; background: rgba(46, 160, 90, 0.12); border: 1px solid rgba(46, 160, 90, 0.3); }
.cm-status--error { color: #f0a0a0; background: rgba(200, 60, 60, 0.12); border: 1px solid rgba(200, 60, 60, 0.3); }

/* Button auf volle Breite: Ein ~170px-Pill unten rechts auf einer 560px-Karte
   wirkt verloren — und das hier ist der Conversion-Punkt der Seite. */
.cm-actions { display: flex; margin-top: 6px; }
.cm-actions .pill { width: 100%; justify-content: center; padding: 14px 24px; cursor: pointer; }
/* Direkte Alternative zum Formular — wer lieber anruft, soll nicht erst das
   Modal schließen und den Footer suchen müssen. */
.cm-alt { text-align: center; font-size: 13px; color: var(--grey); margin-top: 14px; }
.cm-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cm-alt a:hover { color: var(--orange); }
/* Sende-Zustand: aria-disabled statt disabled (Fokus bleibt am Button, siehe
   contact.js) – das Aussehen bleibt identisch. */
.cm-actions .pill:disabled,
.cm-actions .pill[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.cm-status:focus { outline: none; }

@media (max-width: 560px) {
	.cm-row { grid-template-columns: 1fr; }
	.cm-actions .pill { width: 100%; justify-content: center; }
}

/* ---------- Innenseiten (page.php, index.php, 404) ---------- */
.page-hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(130% 130% at 72% -10%, #2a2018 0%, var(--bg) 60%);
	padding: 72px 0 56px;
	text-align: center;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(520px 260px at 50% -80px, rgba(240, 112, 31, 0.1) 0%, rgba(240, 112, 31, 0) 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: 38px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.page-hero .accent-bar { margin-top: 18px; }

/* ---------- Leistungs-Unterseiten (page-{slug}.php Templates) ---------- */
.page-lead { max-width: 620px; margin: 20px auto 0; color: var(--grey); font-size: 17px; line-height: 1.7; }
.leistung-section-title { text-align: center; font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin-bottom: 42px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { text-align: center; }
.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--sec);
	border: 1px solid var(--glass-line-strong);
	color: var(--orange);
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 16px;
}
.step h3 { font-size: 17px; color: #fff; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--grey); line-height: 1.6; }

.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.approach-item { background: var(--card); border: 1px solid var(--glass-line); border-radius: 16px; padding: 26px; }
.approach-item h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.approach-item p { color: var(--grey); font-size: 14px; line-height: 1.6; }

@media (max-width: 820px) {
	.steps { grid-template-columns: 1fr 1fr; }
	.approach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.steps { grid-template-columns: 1fr; }
}

.content-area { padding: 56px 0 80px; }
.entry-content { max-width: 760px; margin: 0 auto; color: #d6d9dd; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { color: #fff; font-size: 26px; margin-top: 1.6em; line-height: 1.3; }
.entry-content h3 { color: #fff; font-size: 20px; margin-top: 1.4em; line-height: 1.35; }
/* Untergeordnete Abschnitte in langen Rechtstexten (Betroffenenrechte,
   Begriffsdefinitionen). Semantisch h3 — WCAG 1.3.1 verbietet den Sprung h2 → h4 —,
   optisch aber kompakt, damit die Gliederung nicht auseinanderfällt. */
.entry-content h3.sub { font-size: 17px; margin-top: 1.2em; }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
/* Lange Rechtstexte: Listenpunkte leicht auseinanderziehen. */
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
	border-left: 3px solid var(--orange);
	padding-left: 18px;
	color: var(--grey);
	font-style: italic;
}
.entry-content img { border-radius: 12px; }

/* Inline-Code — in der Datenschutzerklärung stehen damit URL-Parameter
   (?gclid=…). Ohne eigene Regel griffe nur der Browser-Default: kleinere
   Monospace ohne Absetzung, im dunklen Layout schwer zu erkennen. */
.entry-content code {
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.04);
	font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;
	font-size: 0.9em;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* Tabellen in Rechtstexten (AGB: Prioritäten-Matrix, Storno-Staffel).
   Die Tabellen kommen als Custom-HTML ohne Wrapper-Element aus dem Editor,
   darum wird der Scroll-Container CSS-seitig erzeugt: display:block +
   overflow-x:auto kapselt horizontales Scrollen in der Tabelle selbst —
   der Body scrollt nie horizontal. Abwägung: display:block kostet in manchen
   Browsern die implizite table-Rolle im Accessibility-Tree; ein zusätzliches
   Wrapper-DIV wäre semantisch sauberer, ist aber im Editor-HTML nicht
   garantiert vorhanden. Zeilen/Zellen bleiben als Struktur erhalten und
   werden von Screenreadern weiterhin sequenziell gelesen. */
.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}
.entry-content th,
.entry-content td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	min-width: 110px; /* verhindert zerquetschte Spalten, erzwingt eher Scroll */
}
.entry-content th {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}
/* Zebra-Streifen für lange Matrix-Tabellen. */
.entry-content tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }

/* Blog-Liste */
.post-list { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.post-card {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--card);
	border: 1px solid var(--glass-line);
	border-radius: 16px;
	padding: 28px 30px;
	border-top: 3px solid var(--orange);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover {
	transform: translateY(-3px);
	border-color: var(--glass-line-strong);
	border-top-color: var(--orange);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.28);
}
.post-card h2 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.post-card h2 a:hover { color: var(--orange); }
/* WCAG AA: var(--grey) statt #8a8f98 — 5,48:1 statt 4,08:1 auf der Karte. */
.post-card .meta { font-size: 12px; color: var(--grey); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.post-card p { font-size: 14px; color: var(--grey); }
.post-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--orange); font-size: 13px; font-weight: 600; transition: color 0.25s var(--ease); }
.post-card .more:hover { color: #ff8a3c; }
.post-card .more .icon { transition: transform 0.25s var(--ease); }
.post-card .more:hover .icon { transform: translateX(4px); }

/* Einzelner Beitrag (single.php) */
.entry-meta {
	margin-top: 14px;
	font-size: 12px;
	color: var(--grey);
	letter-spacing: 1px;
	text-transform: uppercase;
}
.entry-meta > * + *::before { content: "· "; color: rgba(255, 255, 255, 0.35); }
.entry-meta a { color: var(--grey); }
.entry-meta a:hover { color: var(--orange); }

/* Beitragsbild — gleiche Optik wie das Titelbild einer Referenz. */
.entry-hero-media,
.referenz-hero-media {
	margin: 0 0 32px;
	border: 1px solid var(--glass-line);
	border-radius: 18px;
	overflow: hidden;
}
.entry-hero-media img,
.referenz-hero-media img { display: block; width: 100%; height: auto; }
.entry-hero-media figcaption,
.referenz-hero-media figcaption {
	padding: 10px 16px;
	font-size: 13px;
	color: var(--grey);
	background: rgba(255, 255, 255, 0.02);
}

.navigation.post-navigation { margin: 44px auto 0; max-width: 760px; padding-top: 28px; border-top: 1px solid var(--line); }
.navigation.post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next { flex: 1 1 260px; min-width: 0; }
.navigation.post-navigation .nav-next { text-align: right; }
.navigation.post-navigation a { display: block; color: #c3c7cd; transition: color 0.25s var(--ease); }
.navigation.post-navigation a:hover { color: var(--orange); }
.navigation.post-navigation .nav-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--grey);
}
.navigation.post-navigation .nav-title { display: block; font-size: 15px; font-weight: 600; }

.navigation.pagination { margin: 40px auto 0; max-width: 760px; text-align: center; }
.navigation.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: #c3c7cd;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.page-numbers.current, .page-numbers:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

/* 404 */
.error-404 { text-align: center; padding: 100px 0 120px; }
.error-404 .code {
	font-size: 88px;
	font-weight: 700;
	color: var(--orange);
	letter-spacing: -2px;
	line-height: 1;
	text-shadow: 0 0 42px rgba(240, 112, 31, 0.35);
}
.error-404 h1 { font-size: 30px; color: #fff; margin-top: 14px; }
.error-404 p { color: var(--grey); margin: 14px auto 30px; max-width: 480px; }

/* ---------- Breadcrumbs (Unterseiten) ---------- */
.breadcrumbs { margin-bottom: 18px; font-size: 13px; }
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	list-style: none;
	color: var(--grey);
}
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: rgba(255, 255, 255, 0.3); padding: 0 4px; }
.breadcrumbs a { color: var(--grey); transition: color 0.25s var(--ease); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs li[aria-current="page"] { color: #d6d9dd; }

/* ---------- FAQ (Leistungsseiten) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(30, 33, 40, 0.72);
	border: 1px solid var(--glass-line);
	border-radius: 14px;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item:hover { border-color: rgba(240, 112, 31, 0.4); }
.faq-item[open] {
	border-color: rgba(240, 112, 31, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.24);
}
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	padding: 16px 20px;
	list-style: none;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
	flex: none;
	position: relative;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(240, 112, 31, 0.5);
	color: var(--orange);
}
.faq-marker::before,
.faq-marker::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.25s var(--ease);
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 20px 18px; color: var(--grey); font-size: 14px; line-height: 1.7; max-width: 640px; }

/* ---------- Faktenblock „Auf einen Blick" (Startseite) ---------- */
.facts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	max-width: 960px;
	margin: 0 auto;
}
.facts-grid .fact {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(30, 33, 40, 0.72);
	border: 1px solid var(--glass-line);
	border-radius: 14px;
	padding: 18px 20px;
	transition: border-color 0.3s var(--ease);
}
.facts-grid .fact:hover { border-color: rgba(240, 112, 31, 0.4); }
.facts-grid dt {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--orange);
	margin-bottom: 6px;
}
.facts-grid dd { font-size: 14px; color: #d6d9dd; line-height: 1.6; }
.facts-grid dd a { color: #fff; transition: color 0.25s var(--ease); }
.facts-grid dd a:hover { color: var(--orange); }
@media (max-width: 820px) {
	.facts-grid { grid-template-columns: 1fr; }
}

/* ---------- Referenzen (Startseite + Detailseite) ----------
   Klickbare Glas-Karte: Titelbild (16:9) oben, darunter Titel, Auszug, Meta-Zeile.
   Oberflaeche wie .card/.why-item. Inhalte kommen aus dem Inhaltstyp "referenz". */
.refs { padding: 80px 0; }
.refs-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.refs-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-top: 8px; color: #fff; }
.refs-head p { color: var(--grey); font-size: 16px; margin-top: 10px; }

.refs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-card {
	display: flex;
	flex-direction: column;
	/* Die ganze Karte ist ein <a> — sie soll aber nicht wie ein Textlink wirken. */
	color: inherit;
	text-decoration: none;
	/* Schneidet das Titelbild in die Rundung; der Innenabstand sitzt in .ref-body. */
	overflow: hidden;
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(240, 112, 31, 0.08) 0%, rgba(240, 112, 31, 0) 60%),
		linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%),
		rgba(30, 33, 40, 0.72);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid var(--glass-line-strong);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.24);
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ref-card:hover {
	transform: translateY(-4px);
	border-color: rgba(240, 112, 31, 0.45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 36px -14px rgba(240, 112, 31, 0.4);
}

/* Titelbild: fester 16:9-Rahmen, damit Karten unterschiedlicher Bildhoehe
   trotzdem buendig stehen. Zuschnitt liefert die Bildgroesse 'referenz_card'. */
.ref-media { aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.ref-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}
.ref-card:hover .ref-media img { transform: scale(1.04); }

.ref-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ref-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	margin-bottom: 8px;
	transition: color 0.25s var(--ease);
}
.ref-card:hover .ref-title { color: var(--orange); }
.ref-text { font-size: 15px; line-height: 1.7; color: #d6d9dd; }

/* Meta-Zeile (Kunde / Branche / Projektrahmen). margin-top:auto haelt sie am
   Kartenfuss, auch wenn die Auszuege unterschiedlich lang sind. */
.ref-meta {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--glass-line);
	font-size: 13px;
	line-height: 1.6;
	color: var(--grey);
}
.ref-meta > span { display: block; }
.ref-meta .ref-kunde { color: #fff; font-weight: 600; }

/* ---------- Referenz-Detailseite (single-referenz.php) ---------- */
/* Im Seitenkopf steht die Meta-Zeile einzeilig statt gestapelt. */
.page-hero .ref-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: 18px;
	padding-top: 0;
	border-top: none;
}
.page-hero .ref-meta > span { display: inline; }
.page-hero .ref-meta > span + span::before { content: "· "; color: rgba(255, 255, 255, 0.35); }

/* .referenz-hero-media wird zusammen mit .entry-hero-media im Blog-Block oben
   gestylt — beide zeigen dasselbe Titelbild-Element. */

.referenz-back { margin-top: 36px; }
.referenz-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--grey); transition: color 0.25s var(--ease); }
.referenz-back a:hover { color: var(--orange); }
/* Der Icon-Satz kennt nur 'arrow-right' — gespiegelt ergibt das den Zurueck-Pfeil. */
.referenz-back .icon { transform: scaleX(-1); }

@media (max-width: 820px) {
	.refs-grid { grid-template-columns: 1fr; }
	.refs-head h2 { font-size: 28px; }
}

/* ---------- WordPress-Kernklassen ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--grey); text-align: center; margin-top: 6px; }
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }

/* ---------- Responsiv ---------- */
/* Auf Telefonen nur das Tracking verringern — die Schriftgröße bleibt aus
   Lesbarkeitsgründen (WCAG) bei 11px, ein Umbruch der Subline ist akzeptiert. */
@media (max-width: 480px) {
	.brand .brand-sub { letter-spacing: 0.6px; }
}
@media (max-width: 820px) {
	.cards, .why-grid, .fgrid { grid-template-columns: 1fr; }
	.cards { gap: 18px; }
	.card { padding: 26px 22px; }
	.hero-logo svg { max-width: 165px; }
	.hero h1 { font-size: 24px; }
	.shead h2, .about-intro h2 { font-size: 28px; }

	.nav-toggle { display: inline-flex; }
	.main-navigation {
		display: none;
		position: absolute;
		top: 66px;
		left: 0;
		right: 0;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%), rgba(27, 30, 35, 0.94);
		backdrop-filter: blur(18px) saturate(150%);
		-webkit-backdrop-filter: blur(18px) saturate(150%);
		border-bottom: 1px solid var(--glass-line);
		box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
		padding: 10px 24px 18px;
	}
	.main-navigation ul { flex-direction: column; gap: 0; }
	.main-navigation a {
		display: block;
		width: 100%;
		padding: 12px 2px;
		font-size: 15px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
	}
	/* Desktop-Unterstreichung im mobilen Menü deaktivieren */
	.main-navigation a::after { display: none; }
	.main-navigation a:hover,
	.main-navigation a.is-active,
	.main-navigation .current-menu-item > a { color: var(--orange); padding-left: 8px; }
	.main-navigation li:last-child a { border-bottom: none; }
	.nav-open .main-navigation { display: block; }
	.nav .pill.nav-cta { display: none; }
}
