/**
 * Meurologic — moderne Optik-Schicht (Suffice bleibt).
 * Navy #213d93, ohne Hexagon-Icons und ohne grauen Seitentitel-Balken.
 */

:root {
	--ml-navy: #213d93;
	--ml-navy-hover: #1a3075;
	--ml-ink: #1a1c22;
	--ml-text: #2c3038;
	--ml-muted: #5c6370;
	--ml-surface: #eef1f8;
	--ml-card: #ffffff;
	--ml-line: #d5dae6;
	--ml-radius: 10px;
	--ml-shadow: 0 10px 28px rgba(33, 61, 147, 0.07);
	--ml-font-body: "Open Sans", Helvetica, Arial, sans-serif;
	--ml-font-display: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
}

/* Grauer Titelbalken unter der Nav (Theme-Breadcrumbs-Page) */
.breadcrumbs-page,
.breadcrumbs .breadcrumbs-page {
	display: none !important;
}

nav.breadcrumbs:has(.breadcrumbs-page:only-child),
nav.breadcrumbs:not(:has(.breadcrumbs-trail)):not(:has(a)) {
	display: none !important;
}

/* Fallback: leere Breadcrumb-Leiste ausblenden */
nav.breadcrumbs .container:empty {
	display: none;
}

body {
	font-family: var(--ml-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ml-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .icon-box-title {
	font-family: var(--ml-font-display);
	font-weight: 600;
	color: var(--ml-ink);
	text-transform: none;
	line-height: 1.25;
}

h1 {
	letter-spacing: -0.035em;
}

h2 {
	letter-spacing: -0.028em;
}

.meurologic-hero h1,
.meurologic-page-hero h1 {
	font-weight: 700;
	font-size: clamp(1.75rem, 3.4vw, 2.65rem);
	line-height: 1.15;
	max-width: 22ch;
	letter-spacing: -0.04em;
}

.meurologic-page-hero h1 {
	max-width: 34ch;
}

/* Nav: keine Versalien, Navy statt Cyan */
.navigation-default .menu-primary > ul > li > a,
.navigation-default .primary-menu > ul > li > a {
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	padding: 22px 14px;
	color: var(--ml-text);
}

.navigation-default .menu-primary > ul > li > a::before,
.navigation-default .primary-menu > ul > li > a::before {
	background: var(--ml-navy);
}

.navigation-default .menu-primary > ul > li:hover > a,
.navigation-default .menu-primary > ul > li.focus > a,
.navigation-default .primary-menu > ul > li:hover > a,
.navigation-default .primary-menu > ul > li.focus > a,
.navigation-default .menu-primary > ul > li.current-menu-item > a,
.navigation-default .menu-primary > ul > li.current_page_item > a,
.navigation-default .primary-menu > ul > li.current-menu-item > a,
.navigation-default .primary-menu > ul > li.current_page_item > a {
	color: var(--ml-navy);
}

.wp-custom-logo .site-branding .site-description {
	color: var(--ml-navy);
}

/* Buttons / CTAs */
.meurologic-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.25rem 0 2rem;
}

.meurologic-hero-cta a,
.wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 0.8rem 1.35rem;
	background: var(--ml-navy) !important;
	color: #fff !important;
	text-decoration: none;
	border-radius: var(--ml-radius);
	font-weight: 600;
	border: 2px solid var(--ml-navy) !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.meurologic-hero-cta a:hover,
.wpcf7 input[type="submit"]:hover {
	background: var(--ml-navy-hover) !important;
	border-color: var(--ml-navy-hover) !important;
	color: #fff !important;
}

.meurologic-hero-cta a.cta-secondary {
	background: #fff !important;
	color: var(--ml-navy) !important;
}

.meurologic-hero-cta a.cta-secondary:hover {
	background: var(--ml-surface) !important;
	color: var(--ml-navy) !important;
}

/* Start: Hero-Bild oben, Text darunter — kein Negativ-Margin-Überhang */
body.home #heading,
body.front-page #heading {
	position: relative;
	overflow: hidden;
	margin-bottom: 0;
	line-height: 0;
	height: auto !important;
	min-height: 0 !important;
}

/* WP Custom Header nutzt oft Padding-Aspect + absolute img — das erzeugen wir ab */
body.home #heading .wp-custom-header,
body.front-page #heading .wp-custom-header,
body.home #wp-custom-header,
body.front-page #wp-custom-header {
	position: relative !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.home #heading::after,
body.front-page #heading::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 35%;
	background: linear-gradient(
		to top,
		rgba(33, 61, 147, 0.28) 0%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 1;
}

body.home #heading .wp-custom-header img,
body.front-page #heading .wp-custom-header img,
body.home #wp-custom-header img,
body.front-page #wp-custom-header img {
	position: static !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-height: min(42vh, 420px);
	object-fit: cover;
	object-position: center 28%;
}

body.home .meurologic-hero,
body.front-page .meurologic-hero {
	position: relative;
	z-index: 2;
	margin: 1.75rem 0 2rem;
	padding: 0;
	max-width: 44rem;
	color: var(--ml-text);
	border-radius: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.home .meurologic-hero h1,
body.front-page .meurologic-hero h1 {
	color: var(--ml-ink);
	margin: 0 0 0.75rem;
	text-shadow: none;
}

body.home .meurologic-hero .hero-overlay-note,
body.front-page .meurologic-hero .hero-overlay-note {
	color: var(--ml-muted);
	max-width: 40rem;
	margin: 0 0 1rem;
	text-shadow: none;
}

body.home .meurologic-hero .meurologic-eyebrow,
body.front-page .meurologic-hero .meurologic-eyebrow {
	color: var(--ml-navy);
}

body.home .meurologic-hero .meurologic-hero-cta,
body.front-page .meurologic-hero .meurologic-hero-cta {
	margin-bottom: 0;
}

@media (max-width: 700px) {
	body.home #heading .wp-custom-header img,
	body.front-page #heading .wp-custom-header img {
		max-height: 220px;
	}

	body.home .meurologic-hero,
	body.front-page .meurologic-hero {
		margin-top: 1.1rem;
		padding: 1.15rem 1rem;
	}

	body.home .meurologic-hero h1,
	body.front-page .meurologic-hero h1 {
		font-size: 1.55rem;
	}

	.meurologic-hero-cta a {
		width: 100%;
		text-align: center;
	}
}

/* Leistungsgruppen — editorial, keine Bootstrap-Karten */
.meurologic-group {
	margin: 0;
	padding: 3rem 0 2.5rem;
	border-top: 1px solid var(--ml-line);
}

.meurologic-group-head {
	max-width: none;
	margin: 0 0 1.75rem;
	display: grid;
	gap: 0.35rem 2.5rem;
}

@media (min-width: 900px) {
	.meurologic-group-head {
		grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.4fr);
		align-items: end;
	}

	.meurologic-group-head .meurologic-eyebrow {
		grid-column: 1;
		grid-row: 1;
	}

	.meurologic-group-head > h2 {
		grid-column: 1;
		grid-row: 2;
		margin: 0;
	}

	.meurologic-group-head .meurologic-group-lead {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: end;
		max-width: none;
		margin: 0;
		padding-bottom: 0.15rem;
	}
}

.meurologic-group-head .meurologic-eyebrow {
	color: var(--ml-navy);
	margin-bottom: 0.35rem;
}

.meurologic-group > h2,
.meurologic-group-head > h2 {
	font-size: clamp(1.65rem, 2.8vw, 2.15rem);
	margin: 0 0 0.55rem;
	padding: 0;
	border: 0;
	color: var(--ml-ink);
	letter-spacing: -0.03em;
}

.meurologic-group.is-lead > h2,
.meurologic-group.is-lead .meurologic-group-head > h2 {
	font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.meurologic-group-lead {
	max-width: 40rem;
	margin: 0;
	color: var(--ml-muted);
	font-size: 1.08rem;
	line-height: 1.55;
}

.meurologic-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
}

.meurologic-services article,
.meurologic-services .ml-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 1.35rem 0 1.35rem 1.15rem;
	border-left: 2px solid var(--ml-navy);
	margin: 0;
}

.meurologic-group.is-lead .meurologic-services {
	grid-template-columns: 1fr;
}

.meurologic-group.is-lead .meurologic-services article {
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left-width: 3px;
}

@media (min-width: 800px) {
	.meurologic-group:not(.is-lead) .meurologic-services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2.75rem;
		row-gap: 0.25rem;
	}
}

.meurologic-services h3,
.meurologic-services h2 {
	font-size: 1.15rem;
	margin: 0 0 0.4rem;
	color: var(--ml-ink);
	letter-spacing: -0.015em;
}

.meurologic-services p {
	margin: 0;
	color: var(--ml-muted);
	max-width: 34rem;
}

.meurologic-services article p + p {
	margin-top: 0.65rem;
}

.meurologic-services a {
	color: var(--ml-navy);
	font-weight: 600;
	text-decoration: none;
}

.meurologic-services a:hover {
	text-decoration: underline;
}

.meurologic-group-more {
	margin: 1.35rem 0 0;
}

.meurologic-group-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--ml-navy);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.98rem;
}

.meurologic-group-more a::after {
	content: "→";
	transition: transform 0.2s ease;
}

.meurologic-group-more a:hover::after {
	transform: translateX(3px);
}

.meurologic-intro {
	max-width: 42rem;
	margin: 0 0 1.5rem;
	color: var(--ml-muted);
	font-size: 1.05rem;
}

.meurologic-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ml-navy);
}

.meurologic-page-hero .meurologic-eyebrow {
	color: var(--ml-navy);
}

.meurologic-page-hero {
	margin: 0 0 2rem;
	max-width: 44rem;
}

.meurologic-page-hero h1 {
	margin: 0 0 0.75rem;
}

.meurologic-interest {
	margin: 0 0 0.5rem;
	padding: 2rem 0 2.5rem;
	background: transparent;
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--ml-line);
}

.meurologic-interest h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	color: var(--ml-ink);
	letter-spacing: -0.025em;
}

.meurologic-interest p {
	margin: 0;
	max-width: 46rem;
	color: var(--ml-muted);
	font-size: 1.05rem;
}

.meurologic-proof {
	margin: 0 0 0.5rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--ml-line);
}

.meurologic-proof ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.75rem;
}

.meurologic-proof li {
	padding: 0;
	background: transparent;
	border-radius: 0;
	color: var(--ml-muted);
	font-size: 0.95rem;
}

.meurologic-proof strong {
	color: var(--ml-ink);
	display: inline;
	font-size: inherit;
	margin: 0;
}

.meurologic-toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	margin: 0 0 2.5rem;
	padding: 1rem 0;
	border-top: 1px solid var(--ml-line);
	border-bottom: 1px solid var(--ml-line);
}

.meurologic-toc a {
	display: inline-block;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ml-navy);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.meurologic-toc a:hover {
	background: transparent;
	border-bottom-color: var(--ml-navy);
}

.meurologic-close {
	margin: 3rem 0 1.5rem;
	padding: 1.75rem 1.5rem;
	background: var(--ml-navy);
	border-radius: var(--ml-radius);
	color: #fff;
}

.meurologic-close h2 {
	margin: 0 0 0.5rem;
	color: #fff;
}

.meurologic-close p {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.9);
	max-width: 36rem;
}

.meurologic-close .meurologic-hero-cta {
	margin: 0;
}

.meurologic-close .meurologic-hero-cta a.cta-secondary {
	background: transparent !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.7) !important;
}

.meurologic-close .meurologic-hero-cta a.cta-secondary:hover {
	background: rgba(255, 255, 255, 0.12) !important;
}

.meurologic-close .meurologic-hero-cta a:not(.cta-secondary) {
	background: #fff !important;
	color: var(--ml-navy) !important;
	border-color: #fff !important;
}

.meurologic-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	margin: 0 0 2.5rem;
}

.meurologic-contact-card {
	padding: 1.35rem 1.4rem;
	background: var(--ml-surface);
	border-radius: var(--ml-radius);
}

.meurologic-contact-card h2 {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	color: var(--ml-navy);
}

.meurologic-trust {
	margin: 3rem 0 1.5rem;
	padding: 2rem 0 0;
	border-top: 1px solid var(--ml-line);
}

.meurologic-trust h2 {
	margin-top: 0;
}

body.home .meurologic-hero .meurologic-eyebrow,
body.front-page .meurologic-hero .meurologic-eyebrow {
	color: var(--ml-navy);
}

/* Top-Leiste ausblenden (Theme-Mod + Fallback) */
.header-top-bar,
.top-header,
.header-top {
	display: none !important;
}

@media (min-width: 901px) {
	.menu-primary > ul > li.menu-item-meurologic-tel,
	.primary-menu > ul > li.menu-item-meurologic-tel {
		margin-left: 0.35rem;
	}

	.menu-primary > ul > li.menu-item-meurologic-tel > a,
	.primary-menu > ul > li.menu-item-meurologic-tel > a {
		display: inline-block;
		padding: 0.45rem 0.85rem !important;
		margin-top: 14px;
		border: 2px solid var(--ml-navy);
		border-radius: var(--ml-radius);
		color: var(--ml-navy) !important;
		font-weight: 600;
		font-size: 13px;
		line-height: 1.3;
		letter-spacing: 0;
		background: transparent;
		transition: background 0.2s ease, color 0.2s ease;
	}

	.menu-primary > ul > li.menu-item-meurologic-tel > a:hover,
	.primary-menu > ul > li.menu-item-meurologic-tel > a:hover,
	.menu-primary > ul > li.menu-item-meurologic-tel > a:focus,
	.primary-menu > ul > li.menu-item-meurologic-tel > a:focus {
		background: var(--ml-navy);
		color: #fff !important;
	}

	.menu-primary > ul > li.menu-item-meurologic-tel > a::before,
	.primary-menu > ul > li.menu-item-meurologic-tel > a::before {
		display: none;
	}
}

/* Breiterer Content: weniger leerer Rand links/rechts */
body.boxed .site,
body.boxed #page {
	max-width: min(1320px, 94vw) !important;
	width: 100%;
}

body.boxed .container,
body.boxed .inner-wrap {
	max-width: 100%;
}

@media (min-width: 1200px) {
	body.boxed .site-content,
	body.boxed .entry-content {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* Hexagon-Iconboxen (falls noch irgendwo) ausblenden — nur Icon, Text bleibt sichtbar wenn Legacy */
.icon-box-hexagon .icon-box-icon,
.icon-box .icon-box-icon {
	display: none !important;
}

.icon-box.icon-box-center {
	text-align: left !important;
}

.icon-box-title {
	text-transform: none !important;
	font-size: 1.15rem !important;
}

.wpcf7 label {
	display: block;
	margin: 0.75rem 0 0.25rem;
	font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	max-width: 36rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid #c8cad0;
	border-radius: var(--ml-radius);
}

.wpcf7 textarea {
	min-height: 8rem;
}

/* Primär-Button im Content (PDF-Download etc.) */
.entry-content a.ml-btn,
.entry-content .ml-btn {
	display: inline-block;
	padding: 0.7rem 1.15rem;
	border-radius: var(--ml-radius);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.entry-content a.ml-btn-primary,
.entry-content .ml-btn-primary {
	background: var(--ml-navy);
	color: #fff !important;
	border: 2px solid var(--ml-navy);
}

.entry-content a.ml-btn-primary:hover,
.entry-content .ml-btn-primary:hover {
	background: var(--ml-navy-hover);
	border-color: var(--ml-navy-hover);
	color: #fff !important;
}

/* Blog: Notfall-Checkliste (Ransomware u. a.) */
.entry-content .ml-checklist {
	margin: 2.5rem 0 1.5rem;
	padding: 1.5rem 1.35rem 1.35rem;
	background: var(--ml-surface);
	border: 1px solid var(--ml-line);
	border-left: 3px solid var(--ml-navy);
	border-radius: var(--ml-radius);
}

.entry-content .ml-checklist-label {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ml-navy);
}

.entry-content .ml-checklist-label::before {
	content: "";
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	margin-right: 0.45rem;
	vertical-align: -0.05rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 8H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm0 10H5v-8h14v8zm-4-13H9V3H7v2H5c-1.1 0-2 .9-2 2v1h18V7c0-1.1-.9-2-2-2h-2V3h-2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 8H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm0 10H5v-8h14v8zm-4-13H9V3H7v2H5c-1.1 0-2 .9-2 2v1h18V7c0-1.1-.9-2-2-2h-2V3h-2v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.entry-content .ml-checklist > h2 {
	margin-top: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.entry-content .ml-checklist-download {
	margin: 1rem 0 1.25rem;
}

.entry-content .ml-checklist-items {
	list-style: none;
	margin: 0 0 1.15rem;
	padding: 0;
}

.entry-content .ml-checklist-items li {
	position: relative;
	margin: 0;
	padding: 0.45rem 0 0.45rem 1.85rem;
	border-bottom: 1px solid var(--ml-line);
	color: var(--ml-text);
}

.entry-content .ml-checklist-items li:last-child {
	border-bottom: 0;
}

.entry-content .ml-checklist-items li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 1.05rem;
	height: 1.05rem;
	border: 1.5px solid var(--ml-navy);
	border-radius: 3px;
	background: #fff;
}

@media print {
	.entry-content .ml-checklist {
		break-inside: avoid;
		border: 1px solid #999;
		background: #fff;
	}

	.entry-content .ml-checklist-download {
		display: none;
	}
}

