/*
Theme Name: BERMEH
Theme URI: https://bermeh.example
Author: BERMEH
Description: Block-Theme für BERMEH Akustikkabinen: 3D-Aufbau beim Scrollen, 3D-Konfigurator, Angebotsformular, Einrichtungs-Assistent, SEO und Mehrsprachigkeit mit Polylang. Ohne externe Dienste.
Version: 1.2.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bermeh
Tags: block-patterns, full-site-editing, translation-ready
*/

/* ---------- Grundlagen ---------- */
:root {
	--bm-pearl: var(--wp--preset--color--pearl, #f3f1ec);
	--bm-pearl-2: var(--wp--preset--color--pearl-2, #e9e6df);
	--bm-grey: var(--wp--preset--color--vision-grey, #5d6064);
	--bm-grey-2: var(--wp--preset--color--grey-light, #8a8d90);
	--bm-ink: var(--wp--preset--color--ink, #1c1d1f);
	--bm-line: var(--wp--preset--color--line, #d6d3cc);
	--bm-ease: cubic-bezier(.22, .61, .24, 1);
	--bm-dur: .9s;
	--bm-gutter: clamp(20px, 4.5vw, 64px);
	--bm-head: 76px;
	--bm-box: 1400px;
	--bm-frame: 0px;
	--bm-outer: #dcd8cf;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bm-head) + 16px); -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }

/* ---------- Boxed: gerahmter Kasten auf ruhigem Grund ---------- */
@media (min-width: 1180px) { :root { --bm-frame: 24px; } }
html, body { background: var(--bm-outer) !important; }
.wp-site-blocks { max-width: var(--bm-box); margin: var(--bm-frame) auto; background: var(--bm-pearl); box-shadow: 0 0 0 1px #cfcac1; border-radius: 4px; overflow: clip; position: relative; }
@media (max-width: 1179px) { .wp-site-blocks { border-radius: 0; box-shadow: none; } }
.wp-site-blocks > .wp-block-template-part:first-child, .wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; margin: 0; }
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child, .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; } }
img, video, canvas { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
em, .bm-serif, h1 em, h2 em, h3 em {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; background: var(--bm-pearl); padding: 12px 16px; }

.bm-label, .is-style-bm-label {
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	line-height: 1.4 !important;
	color: var(--bm-grey);
	margin: 0 0 14px;
}
.is-style-bm-leise, .bm-lead { color: var(--bm-grey); }
.bm-ph { color: var(--bm-grey-2); }
.bm-note { font-size: 13px; color: var(--bm-grey); border-top: 1px solid currentColor; padding-top: 8px; margin-top: 24px; display: inline-block; opacity: .85; }

/* Buttons */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .6em;
	min-height: 48px; text-decoration: none;
	transition: background-color .3s var(--bm-ease), color .3s var(--bm-ease), border-color .3s var(--bm-ease);
}
.wp-element-button > span[aria-hidden] { transition: transform .3s var(--bm-ease); }
.wp-element-button:hover > span[aria-hidden] { transform: translateX(4px); }
.wp-element-button.is-ghost, .is-style-outline .wp-block-button__link {
	background: transparent !important; color: var(--bm-ink) !important; border: 1px solid var(--bm-ink) !important;
}
.wp-element-button.is-ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--bm-ink) !important; color: var(--bm-pearl) !important; }

/* Bänder (Gruppen mit voller Breite) */
.bm-band { padding-block: var(--wp--preset--spacing--60); }
.bm-band.has-rule, .bm-rule { border-top: 1px solid var(--bm-line); }
.is-style-bm-dunkel { background: var(--bm-ink); color: var(--bm-pearl); }
.is-style-bm-dunkel .bm-label, .is-style-bm-dunkel .is-style-bm-leise { color: #a9aaab; }
.is-style-bm-dunkel .wp-element-button:not(.is-ghost), .is-style-bm-dunkel .wp-block-button__link { background: var(--bm-pearl); color: var(--bm-ink); border-color: var(--bm-pearl); }
.is-style-bm-dunkel .wp-element-button:not(.is-ghost):hover { background: transparent; color: var(--bm-pearl); }
.is-style-bm-grau { background: var(--bm-grey); color: var(--bm-pearl); }
.is-style-bm-grau .bm-label, .is-style-bm-grau .is-style-bm-leise { color: #d3d4d4; }

/* Redaktionelles Raster: Beschriftung links, Inhalt rechts */
.bm-split { display: grid !important; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px) !important; }
.bm-split > :first-child { position: sticky; top: calc(var(--bm-head) + 32px); align-self: start; }
@media (max-width: 781px) { .bm-split { grid-template-columns: 1fr; } .bm-split > :first-child { position: static; } }

/* ---------- Kopfzeile ---------- */
.bm-head {
	position: relative; z-index: 50; height: var(--bm-head); margin: 0 !important;
	padding-inline: var(--bm-gutter) !important;
	gap: 28px !important;
	border-bottom: 1px solid transparent;
	transition: background-color .4s var(--bm-ease), border-color .4s var(--bm-ease);
}
.bm-head.is-solid, body:not(.bm-has-hero) .bm-head { background: color-mix(in srgb, var(--bm-pearl) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-color: var(--bm-line); }
.bm-head { background: transparent; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group { margin-top: 0 !important; }
.bm-marke { font-weight: 600; font-size: 21px; letter-spacing: .16em; text-decoration: none; color: inherit; line-height: 1; }
.bm-marke .bm-logo-img { max-height: 34px; width: auto; display: block; }
.bm-head .wp-block-navigation { margin-left: auto; font-size: 15px; gap: 26px; }
.bm-head .wp-block-navigation-item__content { text-decoration: none; position: relative; padding-block: 6px; }
.bm-head .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--bm-ease); }
.bm-head .wp-block-navigation-item__content:hover::after, .bm-head .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.bm-head .wp-block-navigation__submenu-container { border: 1px solid var(--bm-line) !important; background: var(--bm-pearl) !important; padding: 8px 0; min-width: 220px !important; }
.bm-head .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px; }
.bm-head .wp-block-navigation__responsive-container.is-menu-open { background: var(--bm-pearl) !important; padding: 96px var(--bm-gutter) 40px; }
.bm-head .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 30px; }
.bm-lang { display: flex; gap: 2px; font-size: 13px; }
.bm-lang a, .bm-lang span { padding: 10px 6px; color: var(--bm-grey); text-decoration: none; }
.bm-lang [aria-current] { color: var(--bm-ink); font-weight: 600; }
.bm-cta { min-height: 42px !important; padding: 0 18px !important; font-size: 15px !important; }
@media (max-width: 980px) { .bm-head .bm-cta { display: none; } }

/* ---------- Hero mit 3D-Aufbau ---------- */
.bm-hero { position: relative; height: 340vh; margin-block: calc(-1 * var(--bm-head)) 0 !important; background: linear-gradient(#f3f1ec, #ebe8e2); max-width: none !important; }
.bm-hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.bm-hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.bm-hero-poster { position: absolute; right: 9vw; bottom: 6vh; height: 72%; width: auto; max-width: 42vw; object-fit: cover; border-radius: 2px; }
.bm-hero.has-3d .bm-hero-poster { display: none; }
.bm-hero-copy { position: absolute; left: var(--bm-gutter); top: clamp(120px, 18vh, 200px); max-width: min(660px, 46vw); }
.bm-hero-copy h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.bm-hero-copy p { font-size: clamp(17px, 1.4vw, 20px); margin-top: 22px; color: var(--bm-grey); max-width: 46ch; }
.bm-hero-cta { position: absolute; left: var(--bm-gutter); bottom: clamp(28px, 6vh, 64px); display: flex; gap: 12px; flex-wrap: wrap; }
.bm-steps { position: absolute; right: var(--bm-gutter); bottom: clamp(28px, 6vh, 64px); list-style: none; margin: 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bm-pearl) 82%, transparent); backdrop-filter: blur(6px); font-size: 14px; color: var(--bm-grey-2); display: grid; gap: 4px; text-align: right; }
.bm-steps li { transition: color .4s var(--bm-ease); }
.bm-steps li span { margin-right: .9em; font-variant-numeric: tabular-nums; }
.bm-steps li.is-on { color: var(--bm-ink); }
.bm-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bm-ink); transform: scaleX(0); transform-origin: left; }
.bm-hero:not(.has-3d) .bm-steps, .bm-hero:not(.has-3d) .bm-meter { display: none; }
.bm-hero:not(.has-3d) { height: 100vh; height: 100svh; }
.bm-hero.is-preview { height: 640px; }
.bm-hero.is-preview .bm-hero-stick { position: relative; height: 640px; }
@media (max-width: 760px) {
	.bm-hero { height: 260vh; }
	.bm-hero-copy { max-width: none; right: var(--bm-gutter); top: 100px; }
	.bm-hero-cta { top: 330px; bottom: auto; }
	.bm-steps { display: none; }
	.bm-hero-poster { right: var(--bm-gutter); left: var(--bm-gutter); max-width: none; width: calc(100% - 2 * var(--bm-gutter)); height: 42%; bottom: 4vh; }
}
.bm-fx-aus .bm-hero { height: 100vh; height: 100svh; }

/* ---------- Referenzen ---------- */
.bm-refs { display: flex; align-items: center; gap: 40px; padding: 40px var(--bm-gutter) !important; border-block: 1px solid var(--bm-line); overflow: hidden; margin-block: 0 !important; }
.bm-refs .bm-label { margin: 0; flex: none; }
.bm-marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bm-marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: bm-run 40s linear infinite; }
.bm-marquee:hover .bm-marquee-track { animation-play-state: paused; }
.bm-logo img { height: 34px; width: auto; filter: grayscale(1); opacity: .8; }
.bm-logo-ph { height: 34px; width: 132px; border: 1px dashed #bdb9b0; border-radius: 4px; display: grid; place-items: center; font-size: 12px; color: var(--bm-grey-2); flex: none; }
@keyframes bm-run { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .bm-refs { flex-direction: column; align-items: flex-start; gap: 18px; } .bm-marquee { width: 100%; } }

/* ---------- Modelle ---------- */
.bm-modelle { padding-block: var(--wp--preset--spacing--60); }
/* Einheitlicher Abschnittskopf: Beschriftung links, Titel und Einleitung rechts */
.bm-sec-head { margin-bottom: clamp(40px, 5vw, 72px) !important; }
.bm-sec-head h2, .bm-split h2 { margin: 0 0 18px; max-width: 22ch; }
.bm-sec-head .bm-lead, .bm-split > :last-child > .is-style-bm-leise:first-of-type { font-size: 19px; line-height: 1.55; max-width: 56ch; margin: 0; }
.bm-modelle-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 90px); }
.bm-stage { position: sticky; top: calc(var(--bm-head) + 20px); height: calc(100vh - var(--bm-head) - 60px); max-height: 860px; align-self: start; overflow: hidden; }
.bm-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--bm-ease); overflow: hidden; }
.bm-stage figure.is-on { opacity: 1; }
.bm-stage img { width: 100%; height: 100%; object-fit: cover; }
.bm-tag, .bm-count { position: absolute; background: var(--bm-pearl); padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.bm-tag { left: 16px; bottom: 16px; }
.bm-count { right: 16px; top: 16px; font-variant-numeric: tabular-nums; }
.bm-model { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; border-top: 1px solid var(--bm-line); }
.bm-model:first-child { border-top: 0; }
.bm-model-size { font-size: 15px; color: var(--bm-grey); }
.bm-model h3 { font-size: clamp(40px, 4vw, 64px); letter-spacing: -.03em; margin: .1em 0 .35em; }
.bm-model h3 em { font-size: .55em; color: var(--bm-grey); margin-left: .25em; }
.bm-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 22px 0 30px; padding: 18px 0; border-block: 1px solid var(--bm-line); font-size: 15px; }
.bm-spec dt { color: var(--bm-grey); } .bm-spec dd { margin: 0; }
.bm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bm-model-inline { display: none; }
@media (max-width: 900px) {
	.bm-modelle-grid { grid-template-columns: 1fr; }
	.bm-stage { display: none; }
	.bm-model { min-height: 0; padding: 56px 0; }
	.bm-model-inline { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 24px; }
}

/* ---------- Horizontale Reihe (Einsatzbereiche, Projekte) ---------- */
.is-style-bm-reihe { display: flex !important; flex-wrap: nowrap !important; gap: 24px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; align-items: stretch !important; }
.is-style-bm-reihe::-webkit-scrollbar { display: none; }
.is-style-bm-reihe > * { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; margin: 0 !important; display: flex !important; flex-direction: column; }
@media (max-width: 1000px) { .is-style-bm-reihe > * { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .is-style-bm-reihe > * { flex-basis: 84%; } }
.is-style-bm-reihe .wp-block-image { overflow: hidden; aspect-ratio: 4 / 5; margin: 0 0 18px !important; width: 100%; }
.is-style-bm-reihe .wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.is-style-bm-reihe h3 { font-size: 20px; margin: 0 0 6px !important; letter-spacing: -.01em; }
.is-style-bm-reihe p { font-size: 15px; color: var(--bm-grey); margin: 0 !important; max-width: 34ch; }
.bm-rowctl { display: flex; align-items: center; gap: 8px; margin: 32px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--bm-line); }
.bm-rowctl .bm-count-row { margin-right: auto; font-size: 14px; color: var(--bm-grey); font-variant-numeric: tabular-nums; }
.bm-rowctl button[disabled] { opacity: .3; cursor: default; }
.bm-rowctl button { all: unset; cursor: pointer; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s; }
.bm-rowctl button:hover { background: var(--bm-ink); color: var(--bm-pearl); }
.bm-rowctl button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Konfigurator ---------- */
.bm-cfg { background: var(--bm-pearl-2); color: var(--bm-ink); padding-block: var(--wp--preset--spacing--60); margin-block: 0 !important; border-block: 1px solid var(--bm-line); }
.bm-cfg-inner { max-width: 1272px; margin: 0 auto; }
.bm-cfg-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.bm-viewer { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 40%, #f6f4ef, #d9d6cf); border-radius: 4px; overflow: hidden; touch-action: none; color: var(--bm-ink); }
.bm-viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.bm-viewer-poster { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.bm-cfg.has-3d .bm-viewer-poster { display: none; }
.bm-cfg:not(.has-3d) .bm-vbar, .bm-cfg:not(.has-3d) .bm-hint { display: none; }
.bm-hint { position: absolute; right: 14px; top: 12px; font-size: 13px; color: var(--bm-grey); }
.bm-vbar { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.bm-vbar button { all: unset; cursor: pointer; background: rgba(243, 241, 236, .94); color: var(--bm-ink); font-size: 14px; padding: 10px 14px; border-radius: 999px; }
.bm-vbar button[aria-pressed="true"] { background: var(--bm-ink); color: var(--bm-pearl); }
.bm-vbar button:focus-visible { outline: 2px solid var(--bm-ink); outline-offset: 2px; }
.bm-opts fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.bm-opts legend { font-size: 14px; color: var(--bm-grey); margin-bottom: 10px; display: flex; justify-content: space-between; width: 100%; padding: 0; }
.bm-opts legend span { color: var(--bm-ink); }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-chips label { position: relative; }
.bm-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.bm-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(28, 29, 31, .25); border-radius: 999px; font-size: 15px; }
.bm-chips input:checked + .bm-chip { background: var(--bm-ink); color: var(--bm-pearl); border-color: var(--bm-ink); }
.bm-chips input:focus-visible + .bm-chip, .bm-chips input:focus-visible + .bm-sw { outline: 2px solid var(--bm-ink); outline-offset: 3px; }
.bm-sw { display: block; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 3px var(--bm-pearl-2); }
.bm-chips input:checked + .bm-sw { box-shadow: inset 0 0 0 3px var(--bm-pearl-2), 0 0 0 2px var(--bm-ink); }
.bm-summary { border-top: 1px solid var(--bm-line); padding-top: 18px; font-size: 15px; margin: 0 0 22px; min-height: 2.6em; }
.bm-viewer { background: radial-gradient(120% 90% at 50% 40%, #faf9f6, #e4e0d8) !important; }
@media (max-width: 900px) { .bm-cfg-head, .bm-cfg-grid { grid-template-columns: 1fr; } .bm-viewer { aspect-ratio: 1 / 1; } }

/* ---------- Formular ---------- */
.bm-anfrage form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.bm-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; opacity: .9; }
.bm-full { grid-column: 1 / -1; }
.bm-f input, .bm-f select, .bm-f textarea { font: 16px/1.4 var(--wp--preset--font-family--sans); color: inherit; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); padding: 12px 0; border-radius: 0; width: 100%; }
.bm-f select option { color: var(--bm-ink); }
.bm-f input:focus, .bm-f select:focus, .bm-f textarea:focus { outline: 0; border-color: currentColor; }
.bm-consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.bm-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: currentColor; flex: none; }
.bm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-sent { min-height: 1.5em; font-size: 15px; margin: 0; }
.bm-anfrage button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 700px) { .bm-anfrage form { grid-template-columns: 1fr; } }

/* ---------- Produktseite ---------- */
.bm-modell-kopf { padding-top: clamp(40px, 6vw, 90px); }
.bm-modell-kopf h1 { font-size: clamp(56px, 9vw, 140px); letter-spacing: -.04em; margin: 0 0 .2em; }
.bm-modell-kopf h1 em { display: block; font-size: .32em; color: var(--bm-grey); margin-top: .3em; letter-spacing: 0; }
.bm-modell-kopf .bm-lead { font-size: clamp(17px, 1.4vw, 21px); max-width: 52ch; }
.bm-technik { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); }
.bm-technik dl { margin: 0; }
.bm-technik dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--bm-line); }
.bm-technik dl > div:last-child { border-bottom: 1px solid var(--bm-line); }
.bm-technik dt { color: var(--bm-grey); } .bm-technik dd { margin: 0; }
.bm-downloads ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bm-downloads a { text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 781px) { .bm-technik { grid-template-columns: 1fr; } .bm-technik dl > div { grid-template-columns: 1fr; gap: 4px; } }
.bm-kontakt { margin: 0; display: grid; gap: 20px; }
.bm-kontakt dt { color: var(--bm-grey); font-size: 14px; } .bm-kontakt dd { margin: 0; font-size: 20px; }
.bm-kontakt a { text-decoration: none; }

/* Galerie und Bilder */
.wp-block-gallery.has-nested-images figure.wp-block-image img { object-fit: cover; }
.wp-block-image img { border-radius: 2px; }
.bm-clips { gap: 20px !important; }
.bm-clips .wp-block-video video { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; background: var(--bm-pearl-2); }
.bm-clips figcaption, .wp-block-video figcaption { text-align: left; font-size: 15px; margin-top: 12px; }
.bm-todo { aspect-ratio: 9 / 16; display: grid !important; place-items: center; text-align: center; padding: 24px; border: 1px dashed #bdb9b0; color: var(--bm-grey); font-size: 15px; }
.bm-schritte > * { border-top: 1px solid currentColor; padding-top: 14px; }
.bm-schritte h3 { font-size: 17px !important; font-weight: 500; letter-spacing: 0; margin: 0 0 6px; }
.bm-schritte p { font-size: 15px; color: var(--bm-grey); margin: 0; }

/* FAQ */
.wp-block-details { padding: 0; margin: 0 !important; }
.wp-block-details:last-child, .wp-block-details + :not(.wp-block-details) { border-bottom: 1px solid var(--bm-line); }
.wp-block-details summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 20px; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--bm-ease); }
.wp-block-details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.wp-block-details > :not(summary) { color: var(--bm-grey); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* Blog */
.bm-posts .wp-block-post { border-top: 1px solid var(--bm-line); padding-top: 18px; }
.bm-posts .wp-block-post-featured-image { overflow: hidden; margin-bottom: 16px; }
.bm-posts .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--bm-ease); }
.bm-posts .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.bm-posts .wp-block-post-title a { text-decoration: none; }
.wp-block-post-content > h2 { margin-top: 1.8em; }
.wp-block-post-content a { text-underline-offset: .18em; }

/* ---------- Fußzeile ---------- */
.bm-fuss { padding: 80px var(--bm-gutter) 40px; font-size: 15px; border-top: 1px solid var(--bm-line); overflow: hidden; }
.bm-fuss-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.bm-fuss p { color: var(--bm-grey); margin: 14px 0 0; max-width: 34ch; }
.bm-fuss .bm-label { margin: 0 0 12px; }
.bm-fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bm-fuss a { text-decoration: none; } .bm-fuss a:hover { text-decoration: underline; }
.bm-foot-big { font-size: clamp(64px, 15vw, 230px); letter-spacing: .06em; font-weight: 500; line-height: .9; margin-top: 64px; will-change: transform; }
.bm-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--bm-line); color: var(--bm-grey); font-size: 14px; }
@media (max-width: 800px) { .bm-fuss-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Bewegung ---------- */
.bm-js .bm-reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.bm-js .bm-reveal { transition: opacity var(--bm-dur) var(--bm-ease), transform var(--bm-dur) var(--bm-ease); }
.bm-fx-dezent .bm-reveal:not(.is-in) { transform: none; }
.bm-js .is-style-bm-maske.bm-reveal img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--bm-ease); }
.bm-js .is-style-bm-maske.bm-reveal.is-in img { clip-path: inset(0 0 0 0); }
.bm-js .is-style-bm-maske.bm-reveal:not(.is-in) { opacity: 1; transform: none; }
.bm-fx-aus .bm-marquee-track { animation: none; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--bm-ease); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.bm-js .bm-reveal:not(.is-in) { opacity: 1; transform: none; }
	.bm-hero { height: 100vh; height: 100svh; }
	@view-transition { navigation: none; }
}

/* ---------- Editor ---------- */
.editor-styles-wrapper .bm-head { position: relative; }
.editor-styles-wrapper .bm-hero { height: auto; }
.editor-styles-wrapper .bm-hero-stick { position: relative; height: 640px; }
.editor-styles-wrapper .bm-stage { position: relative; top: 0; height: 520px; }
.bm-editor-block { pointer-events: auto; }
.bm-editor-block a, .bm-editor-block button, .bm-editor-block input, .bm-editor-block select { pointer-events: none; }

/* ---------- Ränder für volle Breite und schmale Raster ---------- */
.bm-cfg { padding-inline: var(--bm-gutter); }
@media (max-width: 900px) {
	.bm-clips, .bm-schritte { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
	.bm-schritte { grid-template-columns: 1fr !important; }
	.bm-chips { gap: 6px; }
	.bm-sw { width: 36px; height: 36px; }
}
.bm-posts .wp-block-post-title, .wp-block-post-template .wp-block-post-title { font-size: clamp(20px, 1.6vw, 24px) !important; letter-spacing: -.01em; line-height: 1.2; margin-top: 8px; }
.wp-block-gallery.is-cropped .wp-block-image img { aspect-ratio: 3 / 4; height: auto !important; }
.wp-block-gallery { margin-top: var(--wp--preset--spacing--50) !important; gap: 16px !important; }
.bm-kontakt { margin-block: 40px 56px !important; padding-block: 24px; border-block: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.bm-modell-kopf { margin-bottom: 0; }
.bm-head .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; background: transparent !important; padding: 0 0 8px !important; min-width: 0 !important; }
.bm-head .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 20px; padding: 4px 0; color: var(--bm-grey); }
@media (min-width: 761px) and (orientation: portrait) {
	.bm-hero-copy { max-width: min(640px, 80vw); }
}
