/*
Theme Name:    MO/OM Consulting
Theme URI:     https://mo-om-consulting.de
Author:        Madeleine Ochotta / Benjamin Ellhof
Author URI:    https://mo-om-consulting.de
Description:   Custom WordPress-Theme fuer die Marketing-Website von MO/OM Consulting. Native Gutenberg Custom Blocks (mo/*), klassisches Theme, deutsch.
Version:       0.1.0
Requires at least: 6.4
Tested up to:  7.0
Requires PHP:  8.3
License:       GPL-2.0-or-later
License URI:   https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:   mo-om-consulting
Tags:          custom-blocks, classic-theme, business
*/

/* =============================================================================
   Reset
   ============================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
}

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

/* =============================================================================
   CSS-Tokens
   ============================================================================= */

:root {
	/* Brand */
	--purple:     #7059F0;
	--pink:       #D01A9A;
	--orange:     #FF8C00;
	--orange-end: #FF3A7A;

	/* Surfaces */
	--beige:      #FAF7F0;
	--beige-mid:  #F3EDE0;
	--beige-dark: #EBE3D0;
	--white:      #FFFFFF;
	--navy:       #1B2A4A;

	/* Text */
	--text:       #1E293B;
	--muted:      #5A6A7E;
	--border:     #E8E0D0;

	/* Gradients */
	--grad-brand:  linear-gradient(135deg, #7059F0 0%, #D01A9A 100%);
	--grad-h:      linear-gradient(90deg,  #7059F0 0%, #D01A9A 100%);
	--grad-orange: linear-gradient(135deg, #FF8C00 0%, #FF3A7A 100%);
}

/* =============================================================================
   Body Defaults
   ============================================================================= */

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	color: var(--text);
	background: var(--beige);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* =============================================================================
   Gradient-Text-Utility
   ============================================================================= */

.hl {
	background: var(--grad-h);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* =============================================================================
   Chrome: nav, .logo-wrap, .logo-mo, .logo-c, .breadcrumb, footer, .ft-*
   ============================================================================= */

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	height: 68px;
	padding: 0 6%;
	background: rgba(250, 247, 240, 0.97);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo-wrap {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.logo-mo {
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: .06em;
	line-height: 1;
	background: var(--grad-h);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.logo-c {
	font-size: .56rem;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--navy);
	border-top: 1.5px solid var(--navy);
	padding-top: 2px;
}

.nav-links {
	display: flex;
	gap: 2.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	text-decoration: none;
	color: var(--text);
	font-size: .88rem;
	font-weight: 500;
	transition: color .2s;
}

.nav-links a:hover {
	color: var(--purple);
}

/* Dropdown-Untermenue: Leistungen */
.nav-links .menu-item-has-children {
	position: relative;
}

/* Kleines Pfeil-Icon hinter dem Elternlink */
.nav-links .menu-item-has-children > a::after {
	content: ' \25BE'; /* ▾ */
	font-size: .7em;
	vertical-align: middle;
	opacity: .7;
}

.nav-links .sub-menu {
	position: absolute;
	top: calc(100% + .6rem);
	left: 50%;
	transform: translateX(-50%);
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: .5rem 0;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s, visibility .2s;
	z-index: 200;
}

/* Unsichtbare Bruecke ueber die .6rem-Luecke, damit der Hover beim Wechsel
   vom Elternlink zum Untermenue nicht abreisst. */
.nav-links .sub-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -.6rem;
	height: .6rem;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nav-links .sub-menu li {
	display: block;
}

.nav-links .sub-menu a {
	display: block;
	padding: .5rem .9rem;
	white-space: nowrap;
	font-size: .86rem;
	font-weight: 500;
	color: var(--text);
	transition: color .2s, background .2s;
	border-radius: 8px;
	margin: 0 .3rem;
}

.nav-links .sub-menu a:hover {
	color: var(--purple);
	background: var(--beige);
}

/* Elternlink mit href="#": Cursor sicherstellen */
.nav-links .menu-item-has-children > a[href="#"] {
	cursor: pointer;
}

/* Mobile-Menue: Toggle-Button + Collapse-Container (display:contents = Desktop unveraendert) */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform .25s, opacity .25s;
}

.nav-collapse {
	display: contents;
}

.breadcrumb {
	padding-top: 88px;
	padding-bottom: .5rem;
	padding-left: 6%;
	font-size: .78rem;
	color: var(--muted);
}

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

.breadcrumb a:hover {
	color: var(--purple);
}

.breadcrumb span {
	margin: 0 .4rem;
}

.social-sidebar {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 90;
	display: flex;
	flex-direction: column;
}

.social-sidebar a {
	color: var(--text);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--beige);
	border-left: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	text-decoration: none;
	font-size: 1.1rem;
	transition: background .2s;
}

.social-sidebar a:hover {
	background: var(--white);
	color: var(--purple);
}

.social-sidebar a:first-child {
	border-top: 1px solid var(--border);
}

.social-sidebar svg {
	width: 20px;
	height: 20px;
}

footer {
	background: var(--navy);
	padding: 2.4rem 6%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.ft-mo {
	font-size: 1.1rem;
	font-weight: 900;
	letter-spacing: .06em;
	background: var(--grad-h);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.ft-c {
	font-size: .6rem;
	letter-spacing: .24em;
	color: rgba(255, 255, 255, .55);
	font-weight: 400;
}

.ft-links {
	display: flex;
	gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ft-links a {
	color: rgba(255, 255, 255, .6);
	text-decoration: none;
	font-size: .82rem;
	transition: color .2s;
}

.ft-links a:hover {
	color: #fff;
}

.ft-copy {
	font-size: .78rem;
	color: rgba(255, 255, 255, .55);
}
.ft-copy a {
	color: rgba(255, 255, 255, .55);
	text-decoration: none;
	transition: color .2s;
}
.ft-copy a:hover {
	color: #fff;
}

/* =============================================================================
   Buttons: .btn, .btn-brand, .btn-outline, .btn-white
   ============================================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .65rem 1.4rem;
	border-radius: 10px;
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: all .22s;
}

.btn-brand {
	background: var(--grad-brand);
	color: #fff;
	box-shadow: 0 4px 18px rgba(112, 89, 240, .28);
}

.btn-brand:hover {
	box-shadow: 0 8px 26px rgba(112, 89, 240, .42);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	/* Leicht abgedunkeltes Lila (#6A52E6, 4,95:1 auf Beige) fuer WCAG-AA-Kontrast;
	   --purple (#7059F0) bleibt fuer Brand/Gradients unveraendert. */
	color: #6A52E6;
	border: 2px solid #6A52E6;
}

.btn-outline:hover {
	background: rgba(112, 89, 240, .07);
}

.btn-white {
	background: #fff;
	color: var(--purple);
	font-weight: 800;
	padding: .9rem 2.2rem;
	border-radius: 12px;
	font-size: .95rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	transition: all .22s;
}

.btn-white:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* =============================================================================
   Section-Primitives: .sec, .si (max-width 1200px), .sec-tag, .sec-h2, .sec-intro, .sec-centered
   ============================================================================= */

.sec {
	padding: 5rem 6%;
}

.si {
	max-width: 1200px;
	margin: 0 auto;
}

.sec-tag {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-bottom: .7rem;
	display: block;
	background: var(--grad-h);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.sec-h2 {
	font-size: clamp(1.7rem, 2.6vw, 2.4rem);
	font-weight: 900;
	color: var(--navy);
	line-height: 1.16;
	margin-bottom: 1rem;
	letter-spacing: -.02em;
	/* Gleichmaessige Umbrueche unabhaengig von <br> im Content. */
	text-wrap: balance;
}

.sec-intro {
	font-size: 1rem;
	color: var(--muted);
	max-width: 640px;
	line-height: 1.75;
	margin-bottom: 3.5rem;
}

.sec-centered .sec-tag,
.sec-centered .sec-h2 {
	text-align: center;
}

.sec-centered .sec-intro {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* === Shared Primitives: .pills, .pill, .fg (Form-Groups) === */

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1rem;
}

.pill {
	padding: .35rem .85rem;
	background: rgba(112, 89, 240, .08);
	border-radius: 6px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--purple);
}

.fg {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.fg label {
	font-size: .78rem;
	font-weight: 700;
	color: var(--navy);
	letter-spacing: .03em;
}

.fg input,
.fg textarea,
.fg select {
	padding: .7rem 1rem;
	border: 1.5px solid var(--border);
	border-radius: 8px;
	font-size: .88rem;
	font-family: inherit;
	transition: border-color .2s;
	background: var(--white);
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
	outline: none;
	border-color: var(--purple);
}

.fg textarea {
	min-height: 120px;
	resize: vertical;
}

.fg-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* =============================================================================
   Fluent Forms - an Design-Tokens angleichen
   ============================================================================= */

.frm-fluent-form .ff-el-group {
	margin-bottom: 1.1rem;
}

.frm-fluent-form .ff-el-input--label label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: .35rem;
}

.frm-fluent-form .ff-el-form-control {
	width: 100%;
	padding: .72rem 1rem;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: .88rem;
	font-family: inherit;
	color: var(--text);
	background: var(--beige);
	transition: border-color .2s, background .2s;
}

.frm-fluent-form .ff-el-form-control:focus {
	outline: none;
	border-color: var(--purple);
	background: var(--white);
	box-shadow: 0 0 0 3px rgba(112, 89, 240, .08);
}

.frm-fluent-form textarea.ff-el-form-control {
	min-height: 110px;
	resize: vertical;
}

/* "Dein Name" + "Deine E-Mail" nebeneinander (2-spaltig) wie im Design.
   container_class "mo-ff-half" wird im Formular auf beide Felder gesetzt. */
.frm-fluent-form .ff-el-group.mo-ff-half {
	float: left;
	width: calc(50% - .5rem);
}

.frm-fluent-form .ff-el-group.mo-ff-half + .ff-el-group.mo-ff-half {
	margin-left: 1rem;
}

.frm-fluent-form .ff-el-group.mo-ff-half ~ .ff-el-group:not(.mo-ff-half) {
	clear: both;
}

@media (max-width: 540px) {
	.frm-fluent-form .ff-el-group.mo-ff-half {
		float: none;
		width: 100%;
	}
	.frm-fluent-form .ff-el-group.mo-ff-half + .ff-el-group.mo-ff-half {
		margin-left: 0;
	}
}

/* Submit: Full-Width Gradient-Button (btn-brand) wie im Design */
.frm-fluent-form .ff-el-group.ff_submit_btn_wrapper {
	clear: both;
}

.frm-fluent-form .ff-btn-submit {
	width: 100%;
	justify-content: center;
	text-align: center;
	background: var(--grad-brand);
	color: #fff;
	font-weight: 700;
	padding: 1rem;
	border-radius: 12px;
	border: none;
	font-size: .95rem;
	box-shadow: 0 4px 18px rgba(112, 89, 240, .28);
	transition: box-shadow .22s, transform .22s;
}

.frm-fluent-form .ff-btn-submit:hover {
	box-shadow: 0 8px 26px rgba(112, 89, 240, .42);
	transform: translateY(-2px);
}

/* =============================================================================
   Complianz Cookie-Banner — an MO/OM-Design angleichen.
   Der Banner ist vollstaendig ueber --cmplz_*-Custom-Properties themebar
   (Quelle: complianz-gdpr/cookiebanner/css/cookiebanner.css). Wir setzen die
   Properties auf .cmplz-cookiebanner + den Manage-Consent-Tab (hoehere
   Spezifitaet als das Plugin-:root -> gewinnt unabhaengig von der Ladereihenfolge).
   Der Akzeptieren-Button nutzt background-color -> Gradient via Selektor-Override.
   ============================================================================= */

body .cmplz-cookiebanner,
body #cmplz-manage-consent .cmplz-manage-consent {
	--cmplz_banner_background_color: var(--white);
	--cmplz_banner_border_color: var(--border);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 20px;
	--cmplz_text_color: var(--text);
	--cmplz_hyperlink_color: var(--purple);
	--cmplz_title_font_size: 1.05rem;
	--cmplz_text_font_size: .9rem;
	--cmplz_link_font_size: .82rem;
	--cmplz_button_border_radius: 9px;
	--cmplz_button_font_size: .9rem;
	/* Akzeptieren (primaer) — Fallback-Farbe; Gradient via Selektor unten */
	--cmplz_button_accept_background_color: var(--purple);
	--cmplz_button_accept_border_color: transparent;
	--cmplz_button_accept_text_color: #fff;
	/* Ablehnen + Einstellungen (sekundaer) */
	--cmplz_button_deny_background_color: var(--beige);
	--cmplz_button_deny_border_color: var(--border);
	--cmplz_button_deny_text_color: var(--navy);
	--cmplz_button_settings_background_color: var(--beige);
	--cmplz_button_settings_border_color: var(--border);
	--cmplz_button_settings_text_color: var(--navy);
	/* Kategorie-Toggles */
	--cmplz_slider_active_color: var(--purple);
	--cmplz_slider_inactive_color: #ccc;
	--cmplz_slider_bullet_color: #fff;
	--cmplz_category_header_always_active_color: var(--purple);
}

/* Banner-Box: weiche Schatten wie die Design-Karten */
body .cmplz-cookiebanner {
	box-shadow: 0 8px 40px rgba(27, 42, 74, .14);
}

/* Titel kraeftig + Navy (Design nutzt fette Headlines) */
body .cmplz-cookiebanner .cmplz-title {
	font-weight: 800;
	color: var(--navy);
}

/* Akzeptieren: MO/OM-Gradient (background-color kann keinen Gradient tragen) */
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
	background: var(--grad-brand);
	border-color: transparent;
	box-shadow: 0 3px 12px rgba(112, 89, 240, .25);
	transition: box-shadow .2s, transform .2s;
}

body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	box-shadow: 0 6px 20px rgba(112, 89, 240, .38);
	transform: translateY(-1px);
}

/* Sekundaere Buttons dezent anheben */
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover,
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-manage-options:hover {
	border-color: var(--purple);
}

/* Manage-Consent-Tab (Floating, „Consent verwalten") im Marken-Look */
body #cmplz-manage-consent .cmplz-manage-consent {
	font-weight: 700;
	color: var(--navy);
}

/* =============================================================================
   Plugin-Box: Platzhalter-Hinweis fuer noch nicht konfigurierte Plugins/Dienste.
   Global, da mehrere Blocks (reviews-grid, logo-loop, kontakt-methods) sie nutzen.
   ============================================================================= */

.plugin-box {
	border: 1.5px dashed rgba(112, 89, 240, .35);
	background: rgba(112, 89, 240, .05);
	border-radius: 10px;
	padding: 1.4rem 1.8rem;
	text-align: center;
	color: var(--muted);
	font-size: .88rem;
	line-height: 1.6;
}

.plugin-box strong {
	color: var(--purple);
}

/* =============================================================================
   Prose / Rechtstext-Seiten (page-legal.php: Impressum, Datenschutz)
   ============================================================================= */

.si-prose {
	max-width: 760px;
}

.prose h2 {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--navy);
	margin: 2rem 0 .8rem;
}

.prose h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--navy);
	margin: 1.5rem 0 .6rem;
}

.prose p {
	margin-bottom: 1.1rem;
	color: var(--text);
}

.prose a {
	color: var(--purple);
}

.prose ul,
.prose ol {
	margin: 0 0 1.1rem 1.4rem;
}

.prose li {
	margin-bottom: .4rem;
}


/* =============================================================================
   Responsive: @media (max-width: 960px) und @media (max-width: 600px)
   ============================================================================= */

@media (max-width: 960px) {
	.nav-toggle {
		display: flex;
	}

	.nav-collapse {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.4rem;
		padding: 1.5rem 6% 2rem;
		background: rgba(250, 247, 240, 0.98);
		backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
	}

	nav.is-open .nav-collapse {
		display: flex;
	}

	.nav-collapse .nav-links {
		flex-direction: column;
		gap: 1.2rem;
		width: 100%;
	}

	/* Dropdown im mobilen Overlay: statisch + immer sichtbar */
	.nav-links .menu-item-has-children > a::after {
		display: none;
	}

	.nav-links .sub-menu {
		position: static;
		top: auto;
		left: auto;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: .3rem 0 0 1rem;
		min-width: 0;
	}

	.nav-links .sub-menu a {
		padding: .35rem .5rem;
		margin: 0;
		border-radius: 6px;
		font-size: .84rem;
	}

	/* Hamburger -> X im offenen Zustand */
	nav.is-open .nav-toggle-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	nav.is-open .nav-toggle-bar:nth-child(2) {
		opacity: 0;
	}

	nav.is-open .nav-toggle-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.social-sidebar {
		display: none;
	}
}

@media (max-width: 600px) {
	.fg-row {
		grid-template-columns: 1fr;
	}
}
