/* ==========================================================================
   Medi-Fitness Oberschleißheim – Seitenelemente
   Farben: Dunkelblau #253165 · Hellblau #009FE3 · Beige #E8E1D3 · Hell-Beige #F3EEE4
   ========================================================================== */

.mf {
	--mf-blue: #253165;
	--mf-cyan: #009FE3;
	--mf-base: #E8E1D3;
	--mf-light: #F3EEE4;
	--mf-hero: #DACEB7;   /* #CEBEA0 mit 55 % auf Beige */
	--mf-muted: #3A4577;
	--mf-line: #D6CCB8;
	--mf-white: #FFFFFF;
	--mf-head: 'Bebas Neue', 'Oswald', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
	--mf-body: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;

	box-sizing: border-box;
	color: var(--mf-blue);
	font-family: var(--mf-body);
	font-size: 17px;
	line-height: 1.6;
	background: var(--mf-base);
}
.mf *, .mf *::before, .mf *::after { box-sizing: border-box; }

/* Volle Breite innerhalb von Enfold */
.mf.mf-full {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-top: 0;
	margin-bottom: 0;
}
body.mf-page { overflow-x: clip; }
.mf-page #main .container_wrap_first > .container > .content { padding-top: 0; padding-bottom: 0; }
.mf-page #main .container_wrap_first { border-top: 0; }

/* Hintergründe */
.mf-bg-base  { background: var(--mf-base); }
.mf-bg-light { background: var(--mf-light); }
.mf-bg-dark  { background: var(--mf-blue); color: var(--mf-white); }
.mf-hero     { background: var(--mf-hero); }

/* Raster & Abstände */
.mf .mf-inner { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.mf .mf-stack { display: flex; flex-direction: column; gap: 28px; }
.mf .mf-stack-20 { gap: 20px; }
.mf .mf-grid { display: grid; gap: 24px; }
.mf .mf-grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mf .mf-grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mf .mf-grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mf .mf-start { align-items: start; }
.mf .mf-maxw { max-width: 760px; }
.mf .mf-mt { margin-top: 10px; }

/* Typografie */
.mf .mf-h {
	font-family: var(--mf-head);
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 0.95;
	color: inherit;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-wrap: break-word;
	hyphens: auto;
}
.mf .mf-h-hero { font-size: clamp(56px, 7.5vw, 104px); line-height: 0.9; letter-spacing: 2px; }
.mf .mf-h-page { font-size: clamp(54px, 8vw, 96px); letter-spacing: 2px; }
.mf .mf-h2 { font-size: clamp(40px, 5vw, 56px); }
.mf .mf-h3 { font-family: var(--mf-body); font-size: 26px; font-weight: 800; margin: 0; color: inherit; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.mf-bg-light .mf-h, .mf-bg-base .mf-h, .mf-hero .mf-h { color: var(--mf-blue); }
.mf-bg-dark .mf-h { color: var(--mf-white); }
.mf .mf-p { margin: 0; color: inherit; font-size: 17px; line-height: 1.6; }
.mf .mf-p + .mf-p { margin-top: 16px; }
.mf .mf-lead { font-size: 18px; }
.mf .mf-small { font-size: 15px; }
.mf .mf-strong { font-weight: 700; }
.mf .mf-muted { color: var(--mf-muted); }
.mf-bg-dark .mf-muted { color: #E8E1D3; }
.mf .mf-sub { margin-top: -16px; color: var(--mf-muted); }
.mf .mf-eyebrow {
	display: block;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mf-blue);
}
.mf .mf-a, .mf a.mf-a { color: var(--mf-blue); text-decoration: underline; }
.mf .mf-a:hover { color: #007BB0; }
.mf .mf-link { color: var(--mf-blue); font-weight: 800; font-size: 16px; text-decoration: none; padding: 12px 0; }
.mf .mf-link:hover { color: #007BB0; text-decoration: underline; }

/* Bilder */
.mf img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
.mf .mf-photo { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }
.mf .mf-photo-tall { height: 420px; border-radius: 16px; }
.mf .mf-banner { height: 300px; border-radius: 16px; }

/* Buttons */
.mf .mf-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.mf .mf-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 24px;
	border-radius: 999px; border: 2px solid var(--mf-blue);
	background: var(--mf-blue); color: var(--mf-white);
	font-family: var(--mf-body); font-weight: 800; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.mf .mf-btn:hover, .mf .mf-btn:focus-visible { background: #1A2350; border-color: #1A2350; color: var(--mf-white); }
.mf .mf-btn-outline { background: transparent; color: var(--mf-blue); }
.mf .mf-btn-outline:hover { background: var(--mf-blue); color: var(--mf-white); }
.mf .mf-btn-light { background: #F7F3EB; border-color: #F7F3EB; color: var(--mf-blue); align-self: flex-start; }
.mf .mf-btn-light:hover { background: var(--mf-white); color: var(--mf-blue); }
.mf :focus-visible { outline: 3px solid var(--mf-cyan); outline-offset: 2px; }

/* Karten */
.mf .mf-card { background: var(--mf-white); color: var(--mf-blue); border-radius: 16px; }
.mf .mf-card-pad { padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.mf .mf-note {
	background: var(--mf-white); color: var(--mf-blue);
	border-left: 6px solid var(--mf-cyan); border-radius: 10px;
	padding: 14px 18px; font-size: 16px; font-weight: 700; line-height: 1.5;
}
.mf .mf-note-normal { font-weight: 400; }
.mf .mf-chip-note { background: var(--mf-light); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.mf .mf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mf-cyan); flex: none; }
.mf .mf-dot-sm { width: 7px; height: 7px; }

/* --------------------------------------------------------------------------
   Aktuelles
   -------------------------------------------------------------------------- */
.mf .mf-hero-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-top: 56px; padding-bottom: 64px; }
.mf .mf-hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.mf .mf-hero-meta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.mf .mf-badge {
	background: var(--mf-white); color: var(--mf-blue);
	border-left: 6px solid var(--mf-cyan); border-radius: 10px;
	padding: 10px 22px; font-family: var(--mf-head); font-size: 34px; letter-spacing: 2px; line-height: 1;
	text-transform: uppercase;
}
.mf .mf-hero-info { font-size: 17px; font-weight: 700; }
.mf .mf-offer { background: var(--mf-white); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.mf .mf-offer-item { display: flex; gap: 16px; align-items: flex-start; }
.mf .mf-check { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mf-cyan); display: flex; align-items: center; justify-content: center; }
.mf .mf-offer-title { font-weight: 800; font-size: 18px; line-height: 1.35; }
.mf .mf-offer-text { font-size: 16px; color: var(--mf-muted); }
.mf .mf-offer-foot { font-size: 14px; color: var(--mf-muted); border-top: 1px solid var(--mf-line); padding-top: 14px; }
.mf .mf-hero-photos { flex: 1.15 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(200px, 1fr)); gap: 14px; }
.mf .mf-hero-photos .mf-photo { height: 100%; }
.mf .mf-lead { max-width: 560px; }

/* --------------------------------------------------------------------------
   Philosophie / Split
   -------------------------------------------------------------------------- */
.mf .mf-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.mf .mf-split-top { align-items: stretch; gap: 40px; }
.mf .mf-split-media { flex: 1 1 360px; min-width: 0; }
.mf .mf-split-media.mf-wide { flex: 1.3 1 460px; }
.mf .mf-split-text { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */
.mf .mf-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mf .mf-head-text { max-width: 460px; color: #E8E1D3; }
.mf-bg-base .mf-head-text, .mf-bg-light .mf-head-text { color: var(--mf-muted); }
.mf .mf-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* --------------------------------------------------------------------------
   Preise
   -------------------------------------------------------------------------- */
.mf .mf-group { display: flex; flex-direction: column; gap: 16px; }
.mf .mf-group + .mf-group { margin-top: 16px; }
.mf .mf-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.mf .mf-price-row { border-top: 1px solid var(--mf-line); padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.mf .mf-price { font-family: var(--mf-head); font-size: 44px; line-height: 1; letter-spacing: 1px; }
.mf .mf-price-xl { font-size: 56px; }

/* --------------------------------------------------------------------------
   Kurs-Übersicht
   -------------------------------------------------------------------------- */
.mf .mf-course-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mf .mf-course { margin: 0; background: var(--mf-white); border: 1px solid var(--mf-line); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 18px; line-height: 1.3; }

/* --------------------------------------------------------------------------
   Öffnungszeiten
   -------------------------------------------------------------------------- */
.mf .mf-hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.mf .mf-hours { gap: 10px; font-size: 17px; background: #F7F3EB; }
.mf .mf-card-white.mf-hours { background: var(--mf-white); }
.mf .mf-hours-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.mf .mf-hours-row + .mf-hours-row { border-top: 1px solid #E3DACA; padding-top: 10px; }
.mf .mf-hours-media { display: flex; min-height: 320px; }
.mf .mf-photo-fill { height: 100%; min-height: 320px; border-radius: 16px; }

.mf-footer-hours { background: transparent; color: inherit; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.5; }
.mf-footer-hours-title { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Videotraining – Vorschau
   -------------------------------------------------------------------------- */
.mf a.mf-tcard { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--mf-blue); transition: transform .15s ease, box-shadow .15s ease; }
.mf a.mf-tcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 49, 101, .15); }
.mf .mf-tcard-img { display: block; width: 100%; height: 200px; object-fit: cover; }
.mf .mf-tcard-empty { background: #DDD4C3; }
.mf .mf-tcard-body { padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mf .mf-tcard-title { font-weight: 800; font-size: 20px; }
.mf .mf-arrow { color: var(--mf-blue); font-weight: 800; }

/* --------------------------------------------------------------------------
   Kontakt / Karte
   -------------------------------------------------------------------------- */
.mf .mf-contact-text { flex: 1 1 340px; font-size: 18px; }
.mf .mf-map { flex: 1.4 1 400px; min-width: 0; min-height: 340px; border-radius: 16px; overflow: hidden; background: #DDE8EF; border: 1px solid #C9D6E0; position: relative; }
.mf .mf-map-consent { height: 100%; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--mf-blue); }
.mf .mf-map-consent .mf-small { max-width: 420px; }
.mf .mf-map-addr { font-size: 18px; }
.mf .mf-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   Kursplan
   -------------------------------------------------------------------------- */
.mf .mf-filter, .mf .mf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mf .mf-filter[hidden], .mf .mf-tabs[hidden] { display: none; }
.mf .mf-pill {
	min-height: 44px; padding: 10px 18px; border-radius: 999px;
	font-family: var(--mf-body); font-size: 15px; font-weight: 800; line-height: 1.2;
	border: 2px solid var(--mf-blue); background: var(--mf-white); color: var(--mf-blue); cursor: pointer;
}
.mf .mf-pill.is-active { background: var(--mf-blue); color: var(--mf-white); }
.mf .mf-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: start; }
.mf .mf-plan-col { display: flex; flex-direction: column; gap: 14px; }
.mf .mf-plan-col:empty { display: none; }
.mf .mf-day { padding: 18px 16px 8px; }
.mf .mf-day[hidden] { display: none; }
.mf .mf-day-title { font-size: clamp(22px, 2.2vw, 30px); overflow-wrap: normal; hyphens: manual; text-align: center; margin-bottom: 8px; color: var(--mf-blue); }
.mf .mf-slot { border-top: 1px solid #E3DACA; padding: 14px 4px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.mf .mf-slot-time { font-size: 14px; font-weight: 700; color: var(--mf-muted); }
.mf .mf-slot-course { font-size: 17px; font-weight: 800; line-height: 1.25; }
.mf .mf-slot-trainer { font-size: 15px; color: var(--mf-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.mf .mf-slot-note { margin-top: 6px; background: var(--mf-light); border-radius: 8px; padding: 6px 8px; font-size: 13px; line-height: 1.4; }
.mf .mf-plan-grid.is-single { grid-template-columns: minmax(0, 420px); }

/* --------------------------------------------------------------------------
   Sauna
   -------------------------------------------------------------------------- */
.mf-sauna .mf-inner { padding-top: 56px; padding-bottom: 40px; }
.mf-sauna-times .mf-inner { padding-top: 64px; }
.mf .mf-cta { background: var(--mf-blue); color: var(--mf-white); gap: 10px; }
.mf .mf-cta-title { font-size: 32px; color: var(--mf-white); }
.mf .mf-cta-text { font-size: 16px; color: #F1E9DA; }

/* --------------------------------------------------------------------------
   Videotraining – Seite
   -------------------------------------------------------------------------- */
.mf .mf-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mf .mf-tab {
	display: flex; align-items: center; gap: 14px; padding: 12px; min-height: 44px;
	border-radius: 14px; border: 2px solid var(--mf-white); background: var(--mf-white); color: var(--mf-blue);
	font-family: var(--mf-body); text-align: left; cursor: pointer;
}
.mf .mf-tab.is-active { background: var(--mf-blue); border-color: var(--mf-blue); color: var(--mf-white); }
.mf .mf-tab-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.mf .mf-tab-text { display: flex; flex-direction: column; gap: 2px; }
.mf .mf-tab-name { font-family: var(--mf-head); font-size: 28px; letter-spacing: 1px; line-height: 1; text-transform: uppercase; }
.mf .mf-tab-meta { font-size: 14px; font-weight: 600; }
.mf .mf-panel { display: flex; flex-direction: column; gap: 28px; }
.mf .mf-panel[hidden] { display: none; }
.mf .mf-panel + .mf-panel { margin-top: 40px; }
.mf.js-tabs .mf-panel + .mf-panel { margin-top: 0; }
.mf .mf-trainer { overflow: hidden; display: flex; flex-wrap: wrap; }
.mf .mf-trainer-img { flex: 1 1 380px; min-width: 0; width: 100%; height: 300px; object-fit: cover; }
.mf .mf-trainer-text { flex: 1.2 1 380px; min-width: 0; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mf .mf-h-trainer { font-size: 64px; line-height: 1; }
.mf .mf-series { display: flex; flex-direction: column; gap: 12px; }
.mf .mf-series .mf-h3 { font-size: 24px; }
.mf .mf-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.mf .mf-video { background: var(--mf-white); border-radius: 12px; }
.mf .mf-video summary, .mf .mf-video-soon { list-style: none; padding: 14px 16px; display: flex; align-items: center; gap: 14px; min-height: 44px; cursor: pointer; }
.mf .mf-video summary::-webkit-details-marker { display: none; }
.mf .mf-video-soon { cursor: default; opacity: .7; }
.mf .mf-play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mf-cyan); display: flex; align-items: center; justify-content: center; }
.mf .mf-video-soon .mf-play { background: #9AA3C2; }
.mf .mf-video[open] .mf-play { background: var(--mf-blue); }
.mf .mf-video-text { display: flex; flex-direction: column; gap: 2px; }
.mf .mf-video-title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.mf .mf-video-note { font-size: 13px; color: var(--mf-muted); }
.mf .mf-video[open] { grid-column: 1 / -1; }
.mf .mf-player, .mf .mf-yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 0 0 12px 12px; background: #000; }
.mf .mf-yt { padding: 0 16px 16px; }
.mf .mf-yt iframe { border-radius: 8px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Handy
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.mf .mf-inner { padding: 48px 16px; }
	.mf .mf-hero-grid { padding-top: 40px; padding-bottom: 48px; }
	.mf .mf-hero-photos { grid-template-rows: repeat(2, 160px); }
	.mf .mf-card-pad { padding: 22px 20px; }
	.mf .mf-offer { padding: 22px 20px; }
	.mf .mf-photo-tall { height: 280px; }
	.mf .mf-banner { height: 200px; }
	.mf .mf-h-trainer { font-size: 48px; }
	.mf .mf-trainer-text { padding: 24px 20px; }
	.mf .mf-map, .mf .mf-map-consent { min-height: 300px; }
	.mf .mf-hours-grid, .mf .mf-grid-300 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
	.mf .mf-plan-grid { grid-template-columns: minmax(0, 1fr); }
	.mf .mf-h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.mf *, .mf *::before, .mf *::after { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Vorrang vor Enfold-Überschriften (Enfold setzt Schrift und Farbe sehr spezifisch)
   -------------------------------------------------------------------------- */
#top .mf .mf-h,
#top .mf .mf-day-title,
#top .mf .mf-h-trainer,
#top .mf .mf-tab-name,
#top .mf .mf-price,
#top .mf .mf-badge,
#top .mf .mf-cta-title {
	font-family: var(--mf-head) !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	font-style: normal !important;
}
#top .mf .mf-h { letter-spacing: 1px !important; line-height: 0.95 !important; }
#top .mf .mf-h-hero { line-height: 0.9 !important; letter-spacing: 2px !important; }
#top .mf-bg-light .mf-h,
#top .mf-bg-base .mf-h,
#top .mf-hero .mf-h,
#top .mf .mf-card .mf-h { color: var(--mf-blue) !important; }
#top .mf-bg-dark .mf-h,
#top .mf .mf-cta .mf-h { color: var(--mf-white) !important; }
#top .mf .mf-h3 {
	font-family: var(--mf-body) !important;
	font-weight: 800 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: inherit !important;
}
#top .mf,
#top .mf p,
#top .mf li,
#top .mf button,
#top .mf summary { font-family: var(--mf-body); }
#top .mf strong, #top .mf b { color: inherit; }
#top .mf a.mf-btn { color: var(--mf-white); text-decoration: none; }
#top .mf a.mf-btn-outline { color: var(--mf-blue); }
#top .mf a.mf-btn-outline:hover { color: var(--mf-white); }
#top .mf a.mf-btn-light { color: var(--mf-blue); }
