/*
Theme Name: Geeste Consulting
Theme URI: https://geesteconsulting.de/
Author: Geeste Consulting
Author URI: https://geesteconsulting.de/
Description: Individuelles, performantes Block-Theme für Geeste Consulting.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geeste-consulting
Tags: block-patterns, full-site-editing, one-column, custom-logo, accessibility-ready
*/

@font-face {
	font-display: swap;
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	src: url("assets/fonts/manrope-variable.woff2") format("woff2");
}

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

:root {
	--geeste-ease: cubic-bezier(.16, 1, .3, 1);
	--geeste-header-height: 76px;
	--geeste-shadow: 0 26px 80px rgb(6 59 104 / 10%);
	color-scheme: light;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--geeste-header-height) + 24px);
}

body {
	overflow-x: clip;
}

a,
button,
input,
textarea {
	touch-action: manipulation;
	-webkit-tap-highlight-color: color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent);
}

::selection {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 20%, white);
	color: var(--wp--preset--color--contrast);
}

a,
button,
input,
textarea {
	transition-duration: 220ms;
	transition-property: background-color, border-color, box-shadow, color, opacity, transform;
	transition-timing-function: var(--geeste-ease);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.wp-element-button:active,
button:active {
	transform: translateY(1px);
}

.wp-site-blocks {
	position: relative;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks > main > * {
	margin-block-start: 0;
}

.geeste-header {
	align-items: center;
	backdrop-filter: blur(18px);
	background: rgb(248 251 253 / 92%);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 72%, transparent);
	display: flex;
	min-height: var(--geeste-header-height);
	position: relative;
}

.geeste-header-shell {
	position: sticky;
	top: 0;
	z-index: 20;
}

.admin-bar .geeste-header-shell {
	top: 32px;
}

.geeste-header > .wp-block-group {
	min-width: 0;
	width: 100%;
}

.geeste-brand-fallback {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 750;
	letter-spacing: -.035em;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}

.wp-custom-logo .geeste-brand-fallback {
	display: none;
}

.geeste-brand-fallback a {
	align-items: center;
	color: var(--wp--preset--color--primary);
	display: flex;
	min-height: 44px;
	text-decoration: none;
}

.geeste-header .wp-block-site-logo a,
.geeste-header .wp-block-navigation__responsive-container-open,
.geeste-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

.geeste-header .wp-block-site-logo a {
	display: flex;
}

.geeste-header .wp-block-site-logo img {
	height: auto;
	max-height: 48px;
	object-fit: contain;
	width: auto;
}

.geeste-header .wp-block-navigation-item__content {
	align-items: center;
	display: flex;
	min-height: 44px;
	text-decoration: none;
}

.geeste-header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.geeste-header .wp-block-button__link {
	white-space: nowrap;
}

main {
	isolation: isolate;
	position: relative;
}

main > section,
main > .wp-block-group {
	position: relative;
	z-index: 2;
}

main section[id] {
	scroll-margin-top: calc(var(--geeste-header-height) + 24px);
}

#start {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	min-height: calc(100dvh - var(--geeste-header-height));
	overflow: clip;
}

#start .wp-block-columns {
	align-items: center;
	width: 100%;
}

#start h1 {
	max-width: 100%;
	hyphens: none;
	line-height: .98;
	overflow-wrap: normal;
	text-wrap: balance;
	word-break: normal;
}

#start .wp-block-cover {
	box-shadow: var(--geeste-shadow);
	min-height: min(68dvh, 740px);
}

#start .wp-block-cover img {
	transition: transform 700ms var(--geeste-ease);
}

#start .wp-block-cover:hover img {
	transform: scale(1.015);
}

.geeste-hero-plus {
	display: block;
	height: clamp(88px, 10vw, 150px);
	pointer-events: none;
	position: absolute;
	right: clamp(20px, 5vw, 88px);
	top: clamp(42px, 8vw, 110px);
	width: clamp(88px, 10vw, 150px);
	z-index: 1;
}

.geeste-hero-plus::before,
.geeste-hero-plus::after {
	background: var(--wp--preset--color--primary);
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) scaleX(0);
	transform-origin: center;
}

.geeste-hero-plus::before {
	height: clamp(8px, .8vw, 13px);
	width: 100%;
}

.geeste-hero-plus::after {
	height: 100%;
	transform: translate(-50%, -50%) scaleY(0);
	width: clamp(8px, .8vw, 13px);
}

.has-geeste-motion .geeste-hero-plus::before {
	animation: geeste-plus-x 720ms var(--geeste-ease) 140ms forwards;
}

.has-geeste-motion .geeste-hero-plus::after {
	animation: geeste-plus-y 720ms var(--geeste-ease) 420ms forwards;
}

@keyframes geeste-plus-x {
	to { transform: translate(-50%, -50%) scaleX(1); }
}

@keyframes geeste-plus-y {
	to { transform: translate(-50%, -50%) scaleY(1); }
}

#leistungen .wp-block-columns,
#arbeitsweise .wp-block-columns {
	align-items: stretch;
}

#leistungen .wp-block-column > .wp-block-group {
	height: 100%;
}

#leistungen h3,
#arbeitsweise h3 {
	text-wrap: balance;
}

#ki .wp-block-cover {
	box-shadow: var(--geeste-shadow);
}

#ki .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#ueber-mich .wp-block-columns {
	align-items: center;
}

#kontakt .wp-block-shortcode {
	margin: 0;
}

.geeste-contact-fallback {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: clamp(24px, 4vw, 48px);
}

.geeste-contact-fallback p {
	margin: 0;
}

.geeste-path-layer {
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.geeste-path-segment {
	fill: none;
	stroke: var(--wp--preset--color--primary);
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	stroke-linecap: round;
	stroke-width: 3;
	transition: stroke-dashoffset 900ms var(--geeste-ease);
	vector-effect: non-scaling-stroke;
}

.geeste-path-segment.is-active {
	stroke-dashoffset: 0;
}

.geeste-path-plus {
	color: var(--wp--preset--color--primary);
	opacity: 0;
	transform: scale(.72);
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity 360ms ease 420ms, transform 540ms var(--geeste-ease) 420ms;
}

.geeste-path-plus.is-active {
	opacity: 1;
	transform: scale(1);
}

.has-geeste-motion .geeste-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 650ms var(--geeste-ease), transform 650ms var(--geeste-ease);
}

.has-geeste-motion .geeste-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.wpcf7 {
	width: 100%;
}

.wpcf7 form {
	display: grid;
	gap: 20px;
}

.wpcf7 form > p {
	margin: 0;
}

.wpcf7 label {
	color: var(--wp--preset--color--contrast);
	display: grid;
	font-size: .94rem;
	font-weight: 600;
	gap: 8px;
}

.wpcf7 input:not([type="submit"], [type="checkbox"]),
.wpcf7 textarea {
	background: var(--wp--preset--color--base);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--slate) 70%, white);
	border-radius: 12px;
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	min-height: 50px;
	padding: 13px 15px;
	width: 100%;
}

.wpcf7 textarea {
	min-height: 170px;
	resize: vertical;
}

.wpcf7 input:not([type="submit"], [type="checkbox"]):focus,
.wpcf7 textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--primary) 13%, transparent);
	outline: none;
}

.wpcf7 input:not([type="submit"], [type="checkbox"]):focus-visible,
.wpcf7 textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.wpcf7 input[type="checkbox"] {
	accent-color: var(--wp--preset--color--primary);
	height: 20px;
	margin: 2px 8px 0 0;
	width: 20px;
}

.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 999px;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font: 650 1rem/1 var(--wp--preset--font-family--body);
	min-height: 52px;
	padding: 16px 24px;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--primary-dark);
}

.wpcf7 input[type="submit"]:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--wp--preset--color--error);
	font-size: .88rem;
	margin-top: 6px;
}

.wpcf7 form .wpcf7-response-output {
	border: 0;
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0 12px 12px 0;
	margin: 0;
	padding: 14px 16px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-left-color: var(--wp--preset--color--error);
}

.geeste-footer {
	border-top: 1px solid var(--wp--preset--color--line);
}

.geeste-footer a {
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

@media (max-width: 1024px) {
	.geeste-header .wp-block-button {
		display: none;
	}

	.geeste-path-layer {
		opacity: .72;
	}
}

@media (max-width: 781px) {
	:root {
		--geeste-header-height: 68px;
	}

	.admin-bar .geeste-header-shell {
		top: 46px;
	}

	.geeste-header .wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px;
	}

	#start {
		min-height: auto;
	}

	#start .wp-block-columns {
		min-height: auto;
	}

	#start h1 {
		font-size: clamp(2.2rem, 9.3vw, 2.5rem) !important;
		max-width: 100%;
	}

	#start .wp-block-cover {
		min-height: 62dvh;
	}

	#ki .wp-block-cover {
		min-height: auto !important;
		padding: 16px !important;
	}

	#ki .wp-block-cover__inner-container > .wp-block-group {
		min-height: auto !important;
		padding: 32px 24px !important;
	}

	.geeste-hero-plus {
		opacity: .18;
		right: -20px;
		top: 26px;
	}

	.geeste-path-layer {
		display: none;
	}

	#leistungen .wp-block-column,
	#arbeitsweise .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}

	.has-geeste-motion .geeste-reveal {
		opacity: 1;
		transform: none;
	}

	.geeste-path-segment {
		stroke-dashoffset: 0;
	}

	.geeste-path-plus {
		opacity: 1;
		transform: none;
	}
}
