/*
 * GUIDE Holding — ergänzende Styles.
 * Nur das, was theme.json (noch) nicht kann. Konvention: alle Klassen mit gh--Präfix.
 * Leitdesign „Company Ground": Graphit-Grund, Mint-Akzent, eine helle Alabaster-Sektion.
 */

/* ---------- Basis & Sicherheitsnetze ---------- */

html,
body {
	overflow-x: clip;
}

/* Anker-Ziele nicht unter dem Sticky-Header verstecken */
html {
	scroll-padding-top: 90px;
}

::selection {
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--graphit);
}

h1, h2, h3, h4 {
	hyphens: auto;
	-webkit-hyphens: auto;
	text-wrap: balance;
}

:where(a, button, input, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--mint);
	outline-offset: 3px;
	border-radius: 2px;
}
.gh-light :where(a, button, input, textarea, summary):focus-visible {
	outline-color: var(--wp--preset--color--petrol);
}

/* Kein Abstands-Flackern zwischen vollbreiten Sektionen */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
main > .alignfull + .alignfull,
.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* ---------- Header ---------- */

.gh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 14, 18, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--wp--custom--hairline);
}
.gh-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.gh-logo img {
	height: 34px;
	width: auto;
}
.gh-header .wp-block-navigation a {
	color: var(--wp--preset--color--nebel);
	position: relative;
	padding-block: 0.35rem;
}
@media (hover: hover) and (pointer: fine) {
	.gh-header .wp-block-navigation a:hover {
		color: var(--wp--preset--color--kreide);
		text-decoration: none;
	}
}
/* Mobiles Overlay-Menü dunkel halten */
.wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(11, 14, 18, 0.97);
	color: var(--wp--preset--color--kreide);
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--kreide);
}

/* ---------- Kicker (Versal-Label mit Mint-Strich) ---------- */

.gh-kicker {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--nebel);
	display: flex;
	align-items: center;
	gap: 0.85rem;
}
.gh-kicker::before {
	content: "";
	display: inline-block;
	width: 2.25rem;
	height: 1px;
	background: var(--wp--preset--color--mint);
	flex: none;
}
.gh-kicker--center {
	justify-content: center;
}
.gh-kicker--center::before {
	display: none;
}
.gh-light .gh-kicker {
	color: #5A6069;
}
.gh-light .gh-kicker::before {
	background: var(--wp--preset--color--petrol);
}

/* ---------- Hero ---------- */

.gh-hero {
	position: relative;
	overflow: clip;
}
/* Feines Linienraster, per radialer Maske zum Rand ausgeblendet */
.gh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(167, 176, 186, 0.09) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(167, 176, 186, 0.09) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 32%, #000 35%, transparent 78%);
	mask-image: radial-gradient(ellipse 75% 80% at 50% 32%, #000 35%, transparent 78%);
}
/* Sehr dezente Lichtquellen — bewusst unter 8 % Opazität, kein Web3-Glow */
.gh-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(42rem 26rem at 78% 8%, rgba(63, 224, 192, 0.07), transparent 65%),
		radial-gradient(36rem 24rem at 12% 88%, rgba(12, 110, 92, 0.09), transparent 65%);
}
.gh-hero > * {
	position: relative;
	z-index: 1;
}
.gh-accent {
	background: linear-gradient(100deg, var(--wp--preset--color--mint) 20%, #8FEDD9 80%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Fließtext gedämpft ---------- */

.gh-lead {
	color: var(--wp--preset--color--nebel);
}
.gh-light .gh-lead {
	color: #3D434B;
}

/* ---------- Sektionen ---------- */

.gh-section {
	border-top: 1px solid var(--wp--custom--hairline);
}
.gh-section--seamless {
	border-top: none;
}

/* ---------- Statement (Selbstverständnis) ---------- */

.gh-statement {
	border-left: 2px solid var(--wp--preset--color--mint);
	padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.gh-statement p {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	line-height: 1.42;
	letter-spacing: -0.01em;
}
.gh-statement em {
	color: var(--wp--preset--color--mint);
	font-style: normal;
}

/* ---------- Karten (Tätigkeitsfelder) ---------- */

.gh-card {
	background: var(--wp--preset--color--anthrazit);
	border: 1px solid var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius--medium);
	transition: border-color 0.35s ease, transform 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.gh-card:hover {
		border-color: rgba(63, 224, 192, 0.4);
		transform: translateY(-4px);
	}
}
.gh-card-svg {
	width: 3rem;
	height: 3rem;
	color: var(--wp--preset--color--mint);
}
.gh-idx {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	color: var(--wp--preset--color--nebel);
	text-transform: uppercase;
}

/* ---------- Case-Karten (Beteiligungen) ---------- */

.gh-case {
	background: var(--wp--preset--color--anthrazit);
	border: 1px solid var(--wp--custom--hairline);
	border-radius: var(--wp--custom--radius--large);
	transition: border-color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.gh-case:hover {
		border-color: rgba(63, 224, 192, 0.4);
	}
}
.gh-case-label {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mint);
}
.gh-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
}
.gh-tags li {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--nebel);
	border: 1px solid var(--wp--custom--hairline-strong);
	border-radius: 99px;
	padding: 0.3rem 0.85rem;
	letter-spacing: 0.03em;
}
.gh-case-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--wp--preset--color--mint);
}
.gh-case-note {
	border-top: 1px solid var(--wp--custom--hairline);
	padding-top: 1.1rem;
	font-size: 0.85rem;
	color: var(--wp--preset--color--nebel);
}

/* ---------- Strukturdiagramm (SVG) ---------- */

.gh-diagram {
	max-width: 30rem;
	margin-inline: auto;
}
.gh-diagram svg {
	width: 100%;
	height: auto;
}
.gh-diagram .node rect {
	fill: var(--wp--preset--color--anthrazit);
	stroke: var(--wp--preset--color--stahl);
	stroke-width: 1;
}
.gh-diagram .node .n-label {
	fill: var(--wp--preset--color--mint);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 11.5px;
	letter-spacing: 1.8px;
}
.gh-diagram .node .n-name {
	fill: var(--wp--preset--color--kreide);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 23px;
	letter-spacing: -0.2px;
}
.gh-diagram .node .n-sub {
	fill: var(--wp--preset--color--nebel);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 13px;
}
.gh-diagram .edge {
	stroke: var(--wp--preset--color--mint);
	stroke-width: 1.5;
	opacity: 0.75;
}
.gh-diagram .edge-dot {
	fill: var(--wp--preset--color--mint);
}
.gh-diagram .edge-pill rect {
	fill: var(--wp--preset--color--graphit);
	stroke: var(--wp--preset--color--stahl);
	stroke-width: 1;
}
.gh-diagram .edge-pill text {
	fill: var(--wp--preset--color--nebel);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 10.5px;
	letter-spacing: 1.6px;
}
/* Zeichnet sich beim Scrollen (gh-animate.js setzt .gh-in).
   Versteckt wird NUR unter html.gh-anim-on (setzt das JS) — ohne
   JavaScript bleibt das Diagramm dauerhaft sichtbar. */
@media (prefers-reduced-motion: no-preference) {
	.gh-anim-on .gh-diagram .edge {
		stroke-dasharray: 130;
		stroke-dashoffset: 130;
		transition: stroke-dashoffset 1s ease-out;
	}
	.gh-anim-on .gh-diagram .node,
	.gh-anim-on .gh-diagram .edge-pill,
	.gh-anim-on .gh-diagram .edge-dot {
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.5s ease-out, transform 0.5s ease-out;
	}
	.gh-diagram.gh-in .edge { stroke-dashoffset: 0; }
	.gh-diagram.gh-in .node,
	.gh-diagram.gh-in .edge-pill,
	.gh-diagram.gh-in .edge-dot {
		opacity: 1;
		transform: none;
	}
	.gh-diagram.gh-in .n1 { transition-delay: 0.05s; }
	.gh-diagram.gh-in .e1 { transition-delay: 0.45s; }
	.gh-diagram.gh-in .p1 { transition-delay: 0.7s; }
	.gh-diagram.gh-in .n2 { transition-delay: 0.95s; }
	.gh-diagram.gh-in .e2 { transition-delay: 1.35s; }
	.gh-diagram.gh-in .p2 { transition-delay: 1.6s; }
	.gh-diagram.gh-in .n3 { transition-delay: 1.85s; }
}
.gh-diagram-caption {
	font-size: 0.85rem;
	color: var(--wp--preset--color--nebel);
	letter-spacing: 0.02em;
}

/* ---------- Prinzipien (nummerierte Liste) ---------- */

.gh-prinzip {
	border-top: 1px solid var(--wp--custom--hairline);
	overflow: clip;
}
.gh-prinzipien > .gh-prinzip:last-child {
	border-bottom: 1px solid var(--wp--custom--hairline);
}
.gh-num {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: clamp(4.5rem, 10vw, 8.5rem);
	line-height: 0.85;
	color: transparent;
	/* ≥ 3:1 auf Graphit (WCAG AA für große Schrift) */
	-webkit-text-stroke: 1.5px rgba(63, 224, 192, 0.58);
	user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
	.gh-num {
		color: rgba(63, 224, 192, 0.5);
	}
}

/* ---------- Helle Kontrast-Sektion (Alabaster) ---------- */

.gh-light {
	background: var(--wp--preset--color--alabaster);
	color: var(--wp--preset--color--tinte);
}
.gh-light :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--tinte);
}
.gh-light a {
	color: var(--wp--preset--color--petrol);
}
.gh-addr {
	border-top: 1px solid var(--wp--custom--hairline);
	font-style: normal;
	line-height: 1.8;
}
.gh-light .gh-addr {
	border-top-color: rgba(20, 24, 29, 0.15);
	color: #3D434B;
}

/* Stilisierte Regions-Karte */
.gh-map {
	max-width: 26rem;
	margin-inline: auto;
}
.gh-map svg { width: 100%; height: auto; }
.gh-map .m-line { stroke: rgba(20, 24, 29, 0.22); stroke-width: 1; }
.gh-map .m-grid { stroke: rgba(20, 24, 29, 0.08); stroke-width: 1; }
.gh-map .m-city { fill: #8A8F97; }
.gh-map .m-city-label {
	fill: #5A6069;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 11px;
	letter-spacing: 0.4px;
}
.gh-map .m-home { fill: var(--wp--preset--color--petrol); }
.gh-map .m-home-ring {
	fill: none;
	stroke: var(--wp--preset--color--petrol);
	stroke-width: 1.5;
	opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
	.gh-map .m-home-ring {
		transform-origin: 210px 118px;
		animation: gh-ring 3.2s ease-out infinite;
	}
}
@keyframes gh-ring {
	0% { transform: scale(0.4); opacity: 0.6; }
	80%, 100% { transform: scale(1.6); opacity: 0; }
}
.gh-map .m-home-label {
	fill: var(--wp--preset--color--petrol);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.3px;
}

/* ---------- Kontakt-CTA ---------- */

.gh-cta {
	position: relative;
	overflow: clip;
}
.gh-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(46rem 26rem at 50% 115%, rgba(63, 224, 192, 0.08), transparent 70%);
}
.gh-cta > * {
	position: relative;
	z-index: 1;
}
.gh-sig-name {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 1.35rem;
}
.gh-sig-role {
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--nebel);
}

/* ---------- Buttons ---------- */

/* Sekundär-CTA „Ghost" (transparent, Haarlinien-Rahmen) */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--kreide);
	border: 1px solid rgba(167, 176, 186, 0.4);
}
@media (hover: hover) and (pointer: fine) {
	.wp-block-button.is-style-ghost .wp-block-button__link:hover {
		border-color: var(--wp--preset--color--mint);
		color: var(--wp--preset--color--mint);
		background: transparent;
	}
}
/* Primär-CTA auf heller Sektion */
.wp-block-button.is-style-petrol .wp-block-button__link {
	background: var(--wp--preset--color--petrol);
	color: var(--wp--preset--color--alabaster);
}
@media (hover: hover) and (pointer: fine) {
	.wp-block-button.is-style-petrol .wp-block-button__link:hover {
		background: #0A5D4E;
	}
}
@media (hover: hover) and (pointer: fine) {
	.wp-block-button .wp-block-button__link:hover {
		transform: translateY(-2px);
	}
	.wp-block-button .wp-block-button__link {
		transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
	}
}

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

.gh-footer {
	border-top: 1px solid var(--wp--custom--hairline);
	font-size: 0.92rem;
	color: var(--wp--preset--color--nebel);
}
.gh-footer a {
	color: var(--wp--preset--color--nebel);
}
@media (hover: hover) and (pointer: fine) {
	.gh-footer a:hover {
		color: var(--wp--preset--color--mint);
		text-decoration: none;
	}
}
.gh-footer-heading {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--kreide);
}
.gh-footer-bottom {
	border-top: 1px solid var(--wp--custom--hairline);
	font-size: 0.82rem;
}
.gh-footer .gh-logo img {
	height: 30px;
	width: auto;
}

/* ---------- Kontakt-Formular ---------- */

.gh-form input[type="text"],
.gh-form input[type="email"],
.gh-form input[type="tel"],
.gh-form textarea {
	/* border-box, sonst ragt width:100% + padding über den Rand hinaus */
	box-sizing: border-box;
	width: 100%;
	/* Border ≥ 3:1 gegen Feld- und Kartenhintergrund (WCAG 1.4.11) */
	border: 1px solid rgba(167, 176, 186, 0.55);
	border-radius: 10px;
	padding: 13px 14px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--wp--preset--color--kreide);
	background: var(--wp--preset--color--graphit);
}
.gh-form .gh-field {
	flex: 1;
	margin-bottom: 16px;
}
.gh-form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--nebel);
	margin-bottom: 6px;
}
.gh-form label span {
	color: var(--wp--preset--color--mint);
}
.gh-form .gh-ds {
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--wp--preset--color--nebel);
	margin: 4px 0 18px;
}
.gh-form input::placeholder,
.gh-form textarea::placeholder {
	color: var(--wp--preset--color--nebel);
	opacity: 1;
}
.gh-form textarea {
	min-height: 130px;
	resize: vertical;
}
.gh-form .gh-form-row {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}
.gh-form .gh-form-row > * {
	flex: 1;
}
@media (max-width: 700px) {
	.gh-form .gh-form-row {
		flex-direction: column;
	}
}
.gh-form button {
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--graphit);
	border: 0;
	border-radius: 99px;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: 0.98rem;
	padding: 0.85rem 1.7rem;
	cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
	.gh-form button:hover {
		background: #5BE7CB;
	}
}

/* Honeypot: für Menschen unsichtbar, Bots füllen es aus. */
.gh-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gh-form-msg {
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 0.9375rem;
	line-height: 1.5;
	border: 1px solid transparent;
}
.gh-form-msg--ok {
	background: rgba(63, 224, 192, 0.12);
	border-color: rgba(63, 224, 192, 0.4);
	color: #8FEDD9;
}
.gh-form-msg--err {
	background: rgba(224, 90, 90, 0.12);
	border-color: rgba(224, 90, 90, 0.45);
	color: #F2B8B8;
}

/* ---------- Dezente Scroll-Reveals (JS: assets/js/gh-animate.js) ---------- */

.gh-reveal {
	opacity: 0;
}
.gh-reveal.gh-in {
	opacity: 1;
	animation: gh-rise 0.55s ease-out backwards;
}
@keyframes gh-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html:not(.gh-anim-force) *,
	html:not(.gh-anim-force) *::before,
	html:not(.gh-anim-force) *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
