/**
 * OpenPath Solutions brand stylesheet.
 *
 * Colors and fonts are primarily set in Elementor → Site Settings (Global Colors / Global Fonts).
 * This file only covers what Elementor Free cannot style: shortcode output (menu, language
 * switcher, contact list), Fluent Forms, reusable utility classes and accessibility details.
 *
 * Utility classes (add them under Advanced → CSS Classes in Elementor):
 *   op-card        Lift + gold border on hover (service cards, value cards)
 *   op-eyebrow     Small uppercase gold label above headings
 *   op-step        Numbered process step
 *   op-disclaimer  Bordered legal notice box
 *   op-legal       Long-form legal text (Impressum, Privacy Policy)
 */

:root {
	--op-gold: #c99a35;
	--op-gold-dark: #a87d22;
	--op-black: #151515;
	--op-cream: #f7f3eb;
	--op-white: #ffffff;
	--op-text: #2b2b2b;
	--op-muted: #5c5750;
	--op-line: rgba(21, 21, 21, 0.12);
	--op-radius: 14px;
	--op-shadow: 0 18px 40px rgba(21, 21, 21, 0.10);
	--op-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
	color: var(--op-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	hyphens: manual;
	overflow-wrap: break-word;
}

/* German compounds are long: allow hyphenation in body text only. */
html[lang^="de"] .elementor-widget-text-editor,
html[lang^="de"] .elementor-icon-box-description,
html[lang^="de"] .elementor-image-box-description {
	hyphens: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--op-gold);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

.openpath-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.admin-bar .openpath-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .openpath-site-header {
		top: 0;
	}
}

/* ---------- Main navigation [openpath_menu] ---------- */

.openpath-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.openpath-nav__list a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: var(--op-black);
	font-family: "Lato", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.2s ease;
}

.openpath-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	background: var(--op-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--op-ease);
}

.openpath-nav__list a:hover,
.openpath-nav__list .current-menu-item > a,
.openpath-nav__list .current_page_item > a {
	color: var(--op-gold-dark);
}

.openpath-nav__list a:hover::after,
.openpath-nav__list .current-menu-item > a::after,
.openpath-nav__list .current_page_item > a::after {
	transform: scaleX(1);
}

.openpath-nav__toggle {
	display: none;
}

@media (max-width: 1024px) {
	.openpath-nav--toggle .openpath-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 0;
		border: 1px solid var(--op-line);
		border-radius: 10px;
		background: transparent;
		cursor: pointer;
	}

	.openpath-nav__bars,
	.openpath-nav__bars::before,
	.openpath-nav__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: var(--op-black);
		border-radius: 2px;
		transition: transform 0.25s var(--op-ease), opacity 0.2s ease;
	}

	.openpath-nav__bars {
		position: relative;
	}

	.openpath-nav__bars::before,
	.openpath-nav__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.openpath-nav__bars::before {
		top: -7px;
	}

	.openpath-nav__bars::after {
		top: 7px;
	}

	.openpath-nav.is-open .openpath-nav__bars {
		background: transparent;
	}

	.openpath-nav.is-open .openpath-nav__bars::before {
		transform: translateY(7px) rotate(45deg);
	}

	.openpath-nav.is-open .openpath-nav__bars::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.openpath-nav--toggle .openpath-nav__panel {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		padding: 12px 24px 28px;
		background: var(--op-cream);
		border-top: 1px solid var(--op-line);
		box-shadow: 0 18px 30px rgba(21, 21, 21, 0.12);
	}

	.openpath-nav--toggle.is-open .openpath-nav__panel {
		display: block;
	}

	.openpath-nav--toggle .openpath-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.openpath-nav--toggle .openpath-nav__list a {
		display: block;
		padding: 14px 0;
		font-size: 17px;
		border-bottom: 1px solid var(--op-line);
	}

	.openpath-nav--toggle .openpath-nav__list a::after {
		display: none;
	}
}

/* Header container must be the positioning context for the mobile panel. */
.openpath-site-header .e-con {
	position: relative;
}

.openpath-site-header .elementor-widget-shortcode {
	position: static;
}

.op-header-nav .openpath-nav {
	display: flex;
	justify-content: flex-end;
}

.op-header-nav .openpath-nav__list {
	justify-content: flex-end;
}

/* Footer navigation */
.openpath-nav--plain .openpath-nav__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.openpath-nav--plain .openpath-nav__list a {
	padding: 4px 0;
	color: rgba(255, 255, 255, 0.78);
	font-weight: 400;
	font-size: 15px;
}

.openpath-nav--plain .openpath-nav__list a::after {
	display: none;
}

.openpath-nav--plain .openpath-nav__list a:hover {
	color: var(--op-gold);
}

/* ---------- Language switcher [openpath_language_switcher] ---------- */

.openpath-lang ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 3px;
	list-style: none;
	border: 1px solid var(--op-line);
	border-radius: 999px;
}

.openpath-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	color: var(--op-black);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.openpath-lang a:hover {
	color: var(--op-gold-dark);
}

.openpath-lang a.is-current {
	background: var(--op-black);
	color: var(--op-white);
}

.openpath-site-footer .openpath-lang ul {
	border-color: rgba(255, 255, 255, 0.2);
}

.openpath-site-footer .openpath-lang a {
	color: rgba(255, 255, 255, 0.85);
}

.openpath-site-footer .openpath-lang a.is-current {
	background: var(--op-gold);
	color: var(--op-black);
}

/* ---------- Contact list [openpath_contact] ---------- */

.openpath-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.openpath-contact li {
	padding: 4px 0;
}

.openpath-contact a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.openpath-contact a:hover {
	color: var(--op-gold);
	border-bottom-color: currentColor;
}

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

.openpath-site-footer a {
	transition: color 0.2s ease;
}

.openpath-site-footer .op-footer-legal a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.openpath-site-footer .op-footer-legal a:hover {
	color: var(--op-gold);
}

/* ---------- Utility classes ---------- */

.op-card {
	transition: transform 0.35s var(--op-ease), box-shadow 0.35s var(--op-ease), border-color 0.35s ease;
}

.op-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--op-shadow);
	border-color: var(--op-gold) !important;
}

.op-card img {
	transition: transform 0.6s var(--op-ease);
}

.op-card:hover img {
	transform: scale(1.04);
}

.op-card .elementor-widget-image {
	overflow: hidden;
}

.op-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.op-eyebrow .elementor-heading-title::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.op-step .elementor-icon-box-icon .elementor-icon {
	font-family: "Playfair Display", serif;
}

.op-disclaimer {
	padding: 20px 24px;
	background: var(--op-cream);
	border-left: 3px solid var(--op-gold) !important;
	border-radius: 0 10px 10px 0;
}

.op-disclaimer p:last-child,
.op-legal p:last-child {
	margin-bottom: 0;
}

.op-check-list .elementor-icon-list-icon svg {
	fill: var(--op-gold);
}

.op-legal h2 {
	margin-top: 1.8em;
}

.op-legal .op-placeholder,
.op-placeholder {
	background: #fff4d6;
	border: 1px dashed var(--op-gold-dark);
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 700;
}

/* ---------- Fluent Forms ---------- */

.fluentform .ff-el-group {
	margin-bottom: 22px;
}

.fluentform .ff-el-input--label label {
	color: var(--op-black);
	font-family: "Lato", sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.fluentform .ff-el-form-control {
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid rgba(21, 21, 21, 0.18);
	border-radius: 10px;
	background: var(--op-white);
	color: var(--op-text);
	font-size: 16px; /* prevents iOS zoom */
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fluentform .ff-el-form-control:focus {
	border-color: var(--op-gold);
	box-shadow: 0 0 0 3px rgba(201, 154, 53, 0.2);
	outline: none;
}

.fluentform textarea.ff-el-form-control {
	min-height: 160px;
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	min-height: 52px;
	padding: 14px 34px;
	border: 0;
	border-radius: 999px;
	background-color: var(--op-gold) !important;
	color: var(--op-black) !important;
	font-family: "Lato", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.fluentform .ff-btn-submit:hover {
	background-color: var(--op-black) !important;
	color: var(--op-white) !important;
	transform: translateY(-2px);
	opacity: 1;
}

.fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #b3261e;
}

.fluentform .error,
.fluentform .text-danger {
	color: #b3261e;
	font-size: 14px;
}

.ff-message-success {
	padding: 22px 24px;
	border: 1px solid var(--op-gold);
	border-left-width: 4px;
	border-radius: 10px;
	background: var(--op-cream);
	color: var(--op-black);
	box-shadow: none;
}

.fluentform .ff-el-form-check-label a {
	color: var(--op-gold-dark);
	text-decoration: underline;
}

/* ---------- Motion preferences ---------- */

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

	.op-card,
	.op-card img,
	.openpath-nav__list a::after {
		transition: none;
	}

	.op-card:hover,
	.op-card:hover img {
		transform: none;
	}

	.elementor-invisible {
		visibility: visible !important;
	}

	.animated {
		animation: none !important;
	}
}
