/* ==========================================================
   Ordination Mieten — child theme overrides
   ========================================================== */

/* -------- Color tokens: rebind medizentrum's palette to green/teal -------- */
:root {
	--c-purple-deep: #004438;   /* dark sections (CTA, members heading bg) */
	--c-purple:      #004438;   /* eyebrows on light backgrounds */
	--c-blue:        #00eac1;   /* primary buttons / accents (teal) */
	--c-blue-light:  #00eac1;   /* light accents on dark backgrounds */
	--c-bg-light:    #f6fefd;

	--om-dark:  #004438;
	--om-teal:  #00eac1;
	--om-ink:   #241a17;
}

/* Parent's .mz-btn hover defaults to a blue (#0f8de6) that clashes with the teal accent.
   Keep teal CTAs on hover, just darken slightly. */
.mz-btn:hover,
.mz-btn:focus-visible {
	background: #00c9a6;
}

/* -------- Section head center modifier (used by all three new sections) -------- */
.mz-section-head--center {
	text-align: center;
	margin-bottom: 56px;
}

/* -------- Benefits (Figma 91-109) — stacked rows, title-left / text-right -------- */
.om-benefits {
	background: var(--c-bg-light);
}

.om-benefits__list {
	display: grid;
	gap: 64px;
}

.om-benefits__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px 80px;
	align-items: start;
}

.om-benefits__head h3 {
	font-family: var(--ff-display);
	font-size: clamp(24px, 2.6vw, 37px);
	font-weight: 500;
	line-height: 1.25;
	margin: 8px 0 0;
	color: var(--om-ink);
}

.om-benefits__body {
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 19px;
	line-height: 1.39;
	color: var(--om-ink);
}

.om-benefits__body ul {
	padding-left: 1.4em;
	list-style: disc;
}

@media (max-width: 768px) {
	.om-benefits__list { gap: 40px; }
	.om-benefits__row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.om-benefits__body { font-size: 17px; }
}

/* -------- Service (Figma 91-108) — dark rounded card, 2-col items -------- */
.om-service {
	background: transparent;
}

.om-service__card {
	background: var(--om-dark);
	color: #fff;
	border-radius: var(--radius);
	padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 96px);
}

.om-service__card h2 { color: #fff; }
.om-eyebrow--teal { color: var(--om-teal); }

.om-service__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-flow: column;
	grid-template-rows: repeat(4, auto);
	gap: 36px 80px;
}

.om-service__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.om-service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--om-teal);
	flex: 0 0 40px;
}

.om-service__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.om-service__item h3 {
	font-family: var(--ff-display);
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #fff;
}

.om-service__item p {
	margin: 0;
	font-family: 'Poppins', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.39;
	color: rgba(255, 255, 255, .92);
}

@media (max-width: 768px) {
	.om-service__grid {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		grid-template-rows: none;
		gap: 28px;
	}
}

/* -------- Video (Figma 91-110) — 16:9 frame, centered head -------- */
.om-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: #eef2f0;
}

.om-video__frame > video,
.om-video__frame > iframe,
.om-video__frame > .om-video__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.om-video__placeholder {
	display: grid;
	place-items: center;
	overflow: hidden;
}

.om-video__placeholder img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.om-video__play {
	position: relative;
	z-index: 2;
	transition: transform .2s ease;
}

.om-video__placeholder:hover .om-video__play { transform: scale(1.06); }

.om-video__trigger {
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
.om-video__trigger:focus-visible {
	outline: 2px solid #004438;
	outline-offset: 2px;
}

/* -------- Video modal -------- */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}
.video-modal__content {
	position: relative;
	z-index: 1;
	width: min(1082px, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius, 12px);
	overflow: hidden;
}
.video-modal__embed,
.video-modal__embed iframe {
	width: 100%;
	height: 100%;
	display: block;
}
.video-modal__embed iframe { border: 0; }
.video-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #000;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.video-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mz-side-by-side--center { align-items: center; }

/* -------- Testimonials slider — adapted from centrum-aestheticum block-testimonials -------- */
.om-testimonials {
	background: var(--c-bg-light);
	padding: 80px 0;
}

.om-testimonials__inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.om-testimonials__slider {
	position: relative;
}

.om-testimonials__viewport {
	overflow: hidden;
}

.om-testimonials__track {
	display: flex;
	transition: transform .5s ease;
	will-change: transform;
}

.om-testimonials__slide {
	flex: 0 0 100%;
	min-width: 0;
	padding: 0 8px;
	box-sizing: border-box;
}

.om-testimonials__card {
	background: #fff;
	padding: 36px 29px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	min-height: 260px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 68, 56, 0.04);
}

.om-testimonials__stars {
	display: flex;
	gap: 4px;
	color: #F3B200;
}

.om-testimonials__stars svg {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
}

.om-testimonials__text {
	margin: 0;
	font-family: var(--ff-display, 'Poppins', system-ui, sans-serif);
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.45;
	color: var(--om-ink);
}

.om-testimonials__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: var(--om-dark);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 68, 56, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.om-testimonials__btn:hover { background: var(--om-teal); color: var(--om-dark); }
.om-testimonials__btn:focus-visible { outline: 2px solid var(--om-dark); outline-offset: 2px; }
.om-testimonials__btn--prev { left: -8px; }
.om-testimonials__btn--next { right: -8px; }

.om-testimonials__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.om-testimonials__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background: #cfd8d5;
	padding: 0;
	cursor: pointer;
}
.om-testimonials__dot[aria-current="true"] {
	background: var(--om-dark);
}

@media (min-width: 700px) {
	.om-testimonials__slide { flex-basis: 50%; }
	.om-testimonials__btn--prev { left: -22px; }
	.om-testimonials__btn--next { right: -22px; }
}

@media (min-width: 1024px) {
	.om-testimonials { padding: 100px 0; }
	.om-testimonials__slide { flex-basis: 33.3333%; }
}
