/*
Theme Name: burger media 2026
Theme URI: https://www.burgermedia.de/
Author: burger media Veranstaltungstechnik
Description: Block-Theme für burger media Veranstaltungstechnik. Dunkles Bühnen-Design im CI-Blau #007CC2, Open Sans, Schriften lokal eingebunden (DSGVO).
Version: 0.9.0
Requires at least: 6.6
Tested up to: 6.8
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: burgermedia26
*/

/* Kleine Überzeile über Überschriften */
.bm-eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-light);
}
.bm-light .bm-eyebrow { color: var(--wp--preset--color--accent-dark); }

.bm-lead { font-size: var(--wp--preset--font-size--large); color: #D4D7DC; box-sizing: border-box; padding-right: max(0px, calc(min(100%, 1280px) - 680px)); }

/* Sprungziele nicht unter der festen Kopfzeile verstecken */
[id] { scroll-margin-top: 110px; }
.bm-muted { color: var(--wp--preset--color--muted); }

/* Abschnitte */
.bm-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.bm-band { background: #121418; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.bm-light { background: var(--wp--preset--color--light); color: var(--wp--preset--color--ink); }
.bm-light a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--ink); }
.bm-light p.bm-muted, .bm-light .bm-muted { color: #444A52; }
.bm-surface { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* Kopfzeile */
.bm-header { padding-top: 14px; padding-bottom: 14px; position: sticky; top: 0; z-index: 50; background: rgba(14, 16, 19, 0.92); border-bottom: 1px solid var(--wp--preset--color--line); }
header.wp-block-template-part:has(.bm-header) { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part:has(.bm-header) { top: 32px; }
.bm-logo { margin: 0; }
.bm-logo img { height: auto !important; display: block; }
.bm-header { transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease; }
.bm-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; background: rgba(10, 11, 14, 0.96); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.bm-header .bm-logo img { transition: width .25s ease, transform .25s ease; }
.bm-header.is-scrolled .bm-logo img { width: 72px !important; }
.bm-header .bm-logo a:hover img { transform: scale(1.05); }

/* Menü: Versalien, Unterstrich in CI-Blau wächst von der Mitte */
.bm-header .wp-block-navigation { gap: 6px; }
.bm-header .wp-block-navigation a.wp-block-navigation-item__content { position: relative; display: inline-block; padding: 10px 14px; color: var(--wp--preset--color--text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: color .2s ease; }
.bm-header .wp-block-navigation a.wp-block-navigation-item__content::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--wp--preset--color--accent-light); box-shadow: 0 0 12px rgba(58, 166, 234, 0.9); transform: scaleX(0); transition: transform .25s ease; }
.bm-header .wp-block-navigation a.wp-block-navigation-item__content:hover,
.bm-header .wp-block-navigation a.wp-block-navigation-item__content.is-active { color: #fff; text-shadow: 0 0 18px rgba(58, 166, 234, 0.55); }
.bm-header .wp-block-navigation a.wp-block-navigation-item__content:hover::after,
.bm-header .wp-block-navigation a.wp-block-navigation-item__content.is-active::after { transform: scaleX(1); }

/* Anfrage-Button in der Kopfzeile: hebt sich beim Überfahren mit Lichtschein */
.bm-header .wp-block-button__link { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.bm-header .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 124, 194, 0.55); }
@media (prefers-reduced-motion: reduce) {
	.bm-header, .bm-header * { transition: none !important; }
}

/* Hero: Verlauf von unten, damit Text auf jedem Foto lesbar bleibt */
.bm-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(to top, rgba(14,16,19,0.97) 0%, rgba(14,16,19,0.6) 40%, rgba(14,16,19,0.15) 75%) !important;
}
.bm-hero .wp-block-cover__image-background { object-position: center 35%; }
.bm-hero.wp-block-cover { padding-left: 24px; padding-right: 24px; }
.bm-hero.wp-block-cover .wp-block-cover__inner-container { width: 100% !important; max-width: none; }

/* Outline-Button */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--text); border: 1px solid #6B727C; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent-light); color: var(--wp--preset--color--accent-light); }
.bm-light .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--accent-dark); color: #fff; }

/* Stärken-Leiste */
.bm-fact h3 { font-size: 1.25rem; margin: 0; }
.bm-fact p { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* Kundenlogo-Laufband: eine Reihe, gleiche Höhe, einheitlich weiß, Ränder weich ausgeblendet */
.bm-marquee { overflow: hidden; margin-top: 20px; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.bm-marquee-track { display: flex; width: max-content; gap: 0; animation: bm-marquee 60s linear infinite; will-change: transform; backface-visibility: hidden; }
.bm-marquee-set { display: flex; align-items: center; gap: 48px; padding-right: 48px; margin: 0 !important; }
.bm-marquee-set > * { margin: 0 !important; flex: none; }
/* Alle Logos sind 2:1. Feste Maße, damit das Band beim Nachladen der Bilder nicht seine Breite ändert und springt. */
.bm-marquee img { height: 84px !important; width: 168px !important; aspect-ratio: 2 / 1; object-fit: contain; max-width: none; display: block; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity .2s; }
.bm-marquee img:hover { opacity: 0.95; }
/* Zweite Reihe (Vereine) läuft in die andere Richtung, Logos farbig auf hellen Kacheln, ruhend in Graustufen */
.bm-marquee-reverse .bm-marquee-track { animation-direction: reverse; animation-duration: 70s; }
.bm-marquee-vereine { margin-top: 28px; }
.bm-marquee.bm-marquee-vereine img { height: 76px !important; width: 152px !important; border-radius: 8px; filter: grayscale(1) contrast(1.05); opacity: 0.92; transition: filter .3s, opacity .3s; }
.bm-marquee.bm-marquee-vereine img:hover { filter: none; opacity: 1; }
@keyframes bm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.bm-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.bm-marquee-set:last-child { display: none; }
}

/* Leistungs-Karten */
.bm-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; }
.bm-card .wp-block-image { margin: 0; }
.bm-card .wp-block-image img { width: 100%; height: 240px !important; object-fit: cover; display: block; }
.bm-card-body { padding: 26px 26px 28px; }
.bm-card-body h3 { margin: 0; }
.bm-card-body p { color: #B3B8BF; font-size: 1rem; }
.bm-card-body a { font-weight: 600; text-decoration: none; }

/* Ablauf */
.bm-step { border-top: 3px solid var(--wp--preset--color--ink); padding-top: 22px; }
.bm-step-no { font-family: var(--wp--preset--font-family--display); font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--wp--preset--color--accent-dark); margin: 0; }

/* Projekt-Kacheln */
.bm-project { border-radius: 6px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); }
.bm-project .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(to top, rgba(10,11,14,0.94) 0%, rgba(10,11,14,0.35) 55%, rgba(10,11,14,0) 100%) !important;
}
.bm-project h3 { margin: 0.25rem 0; }
.bm-project p { margin: 0; }

/* Kundenstimmen */
.bm-quote { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; line-height: 1.3; font-weight: 600; margin: 0; }
.bm-quote-by { margin-top: 1rem; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* Kontakt */
.bm-formbox { background: #fff; border: 1px solid #DCD8D0; border-radius: 6px; padding: 32px; }
.bm-contact-lines a { font-weight: 600; text-decoration: none; }

/* Fußzeile */
.bm-footer { background: #0A0B0E; border-top: 1px solid var(--wp--preset--color--line); font-size: 0.9375rem; }
.bm-footer a { color: var(--wp--preset--color--text); text-decoration: none; }
.bm-footer a:hover { color: var(--wp--preset--color--accent-light); }
.bm-footer-label { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8E949D; margin-bottom: 0.5rem; }

/* Mietpark */
.bm-rent { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; }
.bm-rent .wp-block-image { margin: 0; background: #fff; }
.bm-rent .wp-block-image img { width: 100%; height: 200px !important; object-fit: contain; display: block; }
.bm-rent-body { padding: 22px 24px 26px; }
.bm-rent-body h3 { margin: 0; font-size: 1.375rem; }
.bm-rent-type { margin: 0.25rem 0 0; color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.bm-specs { list-style: none; padding: 0; margin: 1rem 0; font-size: 0.9375rem; color: #C9CDD3; }
.bm-specs li { padding: 6px 0; border-top: 1px solid var(--wp--preset--color--line); }
.bm-specs strong { color: var(--wp--preset--color--text); }
.bm-rent-body a { font-weight: 700; text-decoration: none; }

/* Dokumente */
.bm-docs { list-style: none; padding: 0; margin: 0; columns: 2 280px; column-gap: 32px; }
.bm-docs li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--wp--preset--color--line); }
.bm-docs a { font-weight: 600; text-decoration: none; }

/* Über uns */
.bm-about-img img { border-radius: 6px; width: 100%; height: auto; display: block; }

/* 360°-Rundgang */
.bm-pano { border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; background: var(--wp--preset--color--surface); }
.bm-pano-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--wp--preset--color--line); }
.bm-pano-tab { appearance: none; border: 0; border-radius: 4px; background: transparent; color: var(--wp--preset--color--muted); font: 700 0.8125rem/1 var(--wp--preset--font-family--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.bm-pano-tab:hover { color: var(--wp--preset--color--text); }
.bm-pano-tab[aria-selected="true"] { background: var(--wp--preset--color--accent); color: #fff; }
.bm-pano-stage { position: relative; aspect-ratio: 4 / 3; width: 100%; background: #0A0B0E; }
.bm-pano-hint { margin-top: 10px; font-size: 0.875rem; }
.bm-pano .pnlm-load-box { background: rgba(10, 11, 14, 0.85); border-radius: 6px; }

/* ===== Bewegung ===== */

/* Hero: langsamer Kamerazoom und zwei Scheinwerferkegel in CI-Blau, die über das Bild schwenken */
.bm-hero { overflow: hidden; }
.bm-hero .wp-block-cover__image-background { animation: bm-kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.bm-hero::before, .bm-hero::after { content: ""; position: absolute; z-index: 1; top: -20%; width: 70vw; height: 140%; pointer-events: none; mix-blend-mode: screen; filter: blur(16px); opacity: 0.8; }
.bm-hero::before { left: -10vw; background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(58, 166, 234, 0.55) 14deg, transparent 30deg); transform-origin: 50% 0%; animation: bm-beam-a 9s ease-in-out infinite alternate; }
.bm-hero::after { right: -10vw; background: conic-gradient(from 170deg at 50% 0%, transparent 0deg, rgba(0, 124, 194, 0.6) 12deg, transparent 26deg); transform-origin: 50% 0%; animation: bm-beam-b 11s ease-in-out infinite alternate; }
.bm-hero .wp-block-cover__inner-container { z-index: 2; }
.bm-hero .bm-hero-slide { opacity: 0; transition: opacity 1.8s ease; animation: none; }
.bm-hero .bm-hero-slide.is-active { opacity: 1; animation: bm-kenburns 9s ease-out both; }
@keyframes bm-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
@keyframes bm-beam-a { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
@keyframes bm-beam-b { from { transform: rotate(20deg); } to { transform: rotate(-14deg); } }

/* Hero-Text kommt beim Laden gestaffelt herein */
.bm-hero .wp-block-cover__inner-container > * { animation: bm-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.bm-hero .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: .12s; }
.bm-hero .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: .24s; }
.bm-hero .wp-block-cover__inner-container > *:nth-child(4) { animation-delay: .36s; }
@keyframes bm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Wechselndes Wort in der Überschrift */
.bm-rotate { display: inline-block; color: var(--wp--preset--color--accent-light); text-shadow: 0 0 28px rgba(58, 166, 234, 0.45); transition: opacity .25s ease, transform .25s ease, filter .25s ease; }
.bm-rotate.is-out { opacity: 0; transform: translateY(-0.35em); filter: blur(6px); }

/* Scroll-Hinweis am unteren Rand des Hero */
.bm-scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(242, 241, 238, 0.6); border-radius: 14px; }
.bm-scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: bm-cue 1.6s ease-in-out infinite; }
@media (max-width: 781px) { .bm-scroll-cue { display: none; } }
@keyframes bm-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Inhalte gleiten beim Scrollen herein (nur wenn JavaScript läuft) */
.bm-motion .bm-reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.bm-motion .bm-reveal.is-visible { opacity: 1; transform: none; }

/* Karten und Projekte: Bild zoomt, Karte hebt sich mit blauem Schein */
.bm-card, .bm-rent, .bm-project { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.bm-card img, .bm-project .wp-block-cover__image-background { transition: transform .5s ease-out; }
.bm-card:hover, .bm-rent:hover, .bm-project:hover { transform: translateY(-6px); border-color: rgba(58, 166, 234, 0.6); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(58, 166, 234, 0.25), 0 0 40px rgba(0, 124, 194, 0.25); }
/* Tiefeneffekt: Bild etwas größer, damit beim Verschieben keine Kante sichtbar wird */
.bm-card .wp-block-image img, .bm-project .wp-block-cover__image-background { transform: translateY(var(--bm-py, 0)) scale(var(--bm-s, 1.18)); will-change: transform; }
.bm-card:hover, .bm-project:hover { --bm-s: 1.26; }
.bm-card .wp-block-image { overflow: hidden; }
.bm-motion .bm-card.is-visible:hover, .bm-motion .bm-rent.is-visible:hover, .bm-motion .bm-project.is-visible:hover { transform: translateY(-6px); }

/* Ablauf-Nummern mit Lauflicht-Linie */
.bm-step { position: relative; }
.bm-step::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--wp--preset--color--accent); transition: width 1.2s cubic-bezier(.2, .7, .2, 1) .3s; }
.bm-motion .bm-step.is-visible::before { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.bm-hero::before, .bm-hero::after, .bm-hero .wp-block-cover__image-background, .bm-hero .wp-block-cover__inner-container > *, .bm-scroll-cue::after { animation: none !important; }
	.bm-card, .bm-rent, .bm-project, .bm-card img, .bm-gal-item, .bm-gal-item img, .bm-lightbox { transition: none !important; }
}

/* ===== Projektseite ===== */

/* Kleinerer Foto-Kopf als auf der Startseite */
.bm-hero-sub.wp-block-cover { min-height: min(560px, 70vh) !important; }

/* Filter */
.bm-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.bm-filter-btn { padding: 10px 18px; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: transparent; color: var(--wp--preset--color--muted); font: inherit; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.bm-filter-btn:hover { color: var(--wp--preset--color--text); border-color: rgba(58, 166, 234, 0.6); }
.bm-filter-btn[aria-pressed="true"] { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: #fff; box-shadow: 0 0 24px rgba(0, 124, 194, 0.45); }
.bm-filter-btn:focus-visible { outline: 2px solid var(--wp--preset--color--accent-light); outline-offset: 3px; }

/* Galerie im Mauerwerk-Raster */
.bm-gallery { columns: 3 340px; column-gap: 20px; transition: opacity .2s ease; }
.bm-gallery.is-filtering { opacity: 0; }
.bm-gallery > .bm-gal-item { position: relative; break-inside: avoid; margin: 0 0 20px; overflow: hidden; border-radius: 6px; border: 1px solid var(--wp--preset--color--line); cursor: zoom-in; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.bm-gallery > .bm-gal-item[hidden] { display: none !important; }
.bm-gal-item img { display: block; width: 100%; height: auto; transition: transform .6s ease-out, filter .6s ease-out; }
.bm-gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 48px 20px 18px; background: linear-gradient(to top, rgba(10, 11, 14, 0.92), rgba(10, 11, 14, 0)); color: var(--wp--preset--color--accent-light); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-align: left; }
.bm-gal-item figcaption strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.125rem; letter-spacing: 0; text-transform: none; }
.bm-gal-item:hover, .bm-gal-item:focus-visible { transform: translateY(-6px); border-color: rgba(58, 166, 234, 0.6); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 124, 194, 0.3); outline: none; }
.bm-gal-item:hover img, .bm-gal-item:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }
.bm-motion .bm-gal-item.is-visible:hover { transform: translateY(-6px); }

/* Großansicht */
.bm-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(6, 7, 9, 0.94); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; }
.bm-lightbox.is-open { opacity: 1; }
.bm-lightbox[hidden] { display: none; }
.bm-lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.bm-lb-figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.bm-lb-figure figcaption { margin-top: 14px; color: var(--wp--preset--color--accent-light); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.bm-lb-figure figcaption strong { display: block; color: #fff; font-size: 1.125rem; letter-spacing: 0; text-transform: none; }
.bm-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid rgba(242, 241, 238, 0.25); border-radius: 50%; background: rgba(22, 26, 31, 0.8); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.bm-lightbox button:hover { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }
.bm-lb-close { top: 18px; right: 18px; }
.bm-lb-prev { left: 14px; top: 50%; margin-top: -26px; }
.bm-lb-next { right: 14px; top: 50%; margin-top: -26px; }
.bm-lb-open, .bm-lb-open body { overflow: hidden; }
@media (max-width: 781px) {
	.bm-lightbox { padding: 64px 12px; }
	.bm-lb-prev, .bm-lb-next { top: auto; bottom: 14px; margin-top: 0; }
}

/* Abschluss der Projektseite */
.bm-cta { text-align: left; }

/* ===== Chat-Knopf (Tidio lädt erst auf Klick) ===== */
.bm-chat { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bm-chat[hidden] { display: none; }
.bm-chat-btn { order: 2; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--wp--preset--color--accent); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 124, 194, 0.45); transition: transform .2s ease, background-color .2s ease; }
.bm-chat-btn:hover { transform: scale(1.06); background: #006AA6; }
.bm-chat-btn:focus-visible, .bm-chat-start:focus-visible { outline: 2px solid var(--wp--preset--color--accent-light); outline-offset: 3px; }
.bm-chat.is-loading .bm-chat-btn { animation: bm-chat-pulse 1s ease-in-out infinite; }
@keyframes bm-chat-pulse { 50% { transform: scale(0.92); opacity: .7; } }
.bm-chat-hint { order: 1; width: min(300px, calc(100vw - 40px)); box-sizing: border-box; padding: 18px; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); font-size: 0.875rem; line-height: 1.5; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.bm-chat-hint[hidden] { display: none; }
.bm-chat-hint strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.bm-chat-hint span { display: block; color: var(--wp--preset--color--muted); }
.bm-chat-hint a { color: var(--wp--preset--color--accent-light); }
.bm-chat-start { margin-top: 14px; width: 100%; padding: 11px 16px; border: 0; border-radius: 4px; background: var(--wp--preset--color--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bm-chat-start:hover { background: #006AA6; }

/* Fokus sichtbar halten */
a:focus-visible, .wp-element-button:focus-visible { outline: 2px solid var(--wp--preset--color--accent-light); outline-offset: 3px; }

/* Anfrageformular */
.bm-anfrage { display: grid; gap: 24px; color: var(--wp--preset--color--ink); }
.bm-anfrage fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.bm-anfrage legend { font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; padding: 0; }
.bm-anfrage .bm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bm-anfrage .bm-row-3 { grid-template-columns: 1fr 1fr 1.4fr; }
.bm-anfrage .bm-field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; min-width: 0; }
.bm-anfrage input:not([type=checkbox]):not([type=radio]), .bm-anfrage select, .bm-anfrage textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--wp--preset--color--ink); background: #fff; border: 1px solid #C9C4BA; border-radius: 6px; padding: 11px 12px; width: 100%; box-sizing: border-box; min-height: 46px; }
.bm-anfrage textarea { resize: vertical; }
.bm-anfrage input:focus, .bm-anfrage select:focus, .bm-anfrage textarea:focus { outline: 2px solid var(--wp--preset--color--accent-dark); outline-offset: 1px; border-color: transparent; }
.bm-anfrage .bm-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-anfrage .bm-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.bm-anfrage .bm-checks .bm-check { border: 1px solid #C9C4BA; border-radius: 999px; padding: 8px 14px; transition: border-color .2s, background .2s; }
.bm-anfrage .bm-checks .bm-check:has(input:checked) { border-color: var(--wp--preset--color--accent-dark); background: rgba(61, 155, 255, .1); }
.bm-anfrage .bm-check input { accent-color: var(--wp--preset--color--accent-dark); width: 18px; height: 18px; margin: 0; }
.bm-anfrage .bm-consent { align-items: flex-start; font-size: .92rem; }
.bm-anfrage .bm-consent input { margin-top: 2px; flex: none; }
.bm-anfrage button { cursor: pointer; border: 0; font: inherit; }
.bm-anfrage .bm-small { font-size: .85rem; margin: 0; }
.bm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-anfrage-fehler { background: #FDECEC; border-left: 4px solid #C62828; padding: 12px 14px; margin: 0; }
.bm-anfrage-danke { padding: 8px 0; }
.bm-anfrage-danke strong { font-size: 1.3rem; display: block; margin-bottom: 8px; }
@media (max-width: 640px) {
	.bm-anfrage .bm-row, .bm-anfrage .bm-row-3 { grid-template-columns: 1fr; }
	.bm-formbox { padding: 20px; }
}

/* Google-Bewertungen */
.bm-stars { color: #FBBC04; letter-spacing: .08em; }
h2 .bm-stars { margin-right: .4em; font-size: .7em; vertical-align: .08em; }
.bm-review { background: var(--wp--preset--color--bg); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; }
.bm-review .bm-stars { margin: 0 0 12px; font-size: 1.1rem; }
.bm-review-text { font-size: 1.0625rem; line-height: 1.6; margin: 0; flex: 1; }
.bm-review .bm-quote-by { margin-top: 18px; }
.bm-review-more { margin-top: 28px; }
.bm-review-more a { color: var(--wp--preset--color--accent-light); font-weight: 600; text-decoration: none; }
.bm-reviews.wp-block-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .bm-reviews.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bm-reviews.wp-block-group { grid-template-columns: 1fr; } }
/* Anfrageformular in Schritten */
.bm-anfrage { gap: 20px; }
.bm-steps { display: none; list-style: none; margin: 0; padding: 0; counter-reset: bmstep; gap: 8px; }
.bm-anfrage.is-steps .bm-steps { display: flex; }
.bm-steps li { flex: 1; counter-increment: bmstep; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A8F97; padding-top: 10px; border-top: 3px solid #DCD8D0; transition: color .3s, border-color .3s; }
.bm-steps li::before { content: counter(bmstep) ". "; }
.bm-steps li.is-active { color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--accent-dark); }
.bm-steps li.is-done { color: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); }
.bm-anfrage.is-steps .bm-step:not([hidden]) { animation: bm-step-in .35s ease; }
@keyframes bm-step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.bm-anfrage .bm-step[hidden] { display: none; }
.bm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bm-tile { position: relative; cursor: pointer; }
.bm-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bm-tile span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border: 1px solid #C9C4BA; border-radius: 6px; font-size: .95rem; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.bm-tile:hover span { border-color: var(--wp--preset--color--accent-dark); }
.bm-tile input:checked + span { background: var(--wp--preset--color--accent-dark); border-color: var(--wp--preset--color--accent-dark); color: #fff; }
.bm-tile input:focus-visible + span { outline: 2px solid var(--wp--preset--color--accent-dark); outline-offset: 2px; }
.bm-more { border-top: 1px solid #E4E0D8; padding-top: 12px; }
.bm-more summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--wp--preset--color--accent-dark); }
.bm-more[open] summary { margin-bottom: 14px; }
.bm-more > * + * { margin-top: 14px; }
.bm-nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.bm-nav [hidden] { display: none !important; }
.bm-back { margin-right: auto; background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 600; color: var(--wp--preset--color--ink); cursor: pointer; }
.bm-anfrage .bm-consent { margin-top: 6px; }
.bm-anfrage-danke { text-align: center; padding: 48px 16px; animation: bm-step-in .4s ease; outline: none; }
.bm-danke-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--wp--preset--color--accent-dark); color: #fff; font-size: 2rem; margin-bottom: 16px; }
.bm-anfrage-danke p { margin: 0 auto; max-width: 420px; }

/* Kopfbanner der Unterseiten (Impressum, Datenschutz, AGB …) */
.bm-page-head { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 120px 24px 48px; background: linear-gradient(180deg, rgba(14, 16, 19, .55) 0%, rgba(14, 16, 19, .92) 100%), url(assets/images/hero.jpg) center 40% / cover no-repeat; border-bottom: 1px solid var(--wp--preset--color--line); margin-top: 0 !important; }
.bm-page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--wp--preset--color--accent) 0%, transparent 60%); }
.bm-page-head .wp-block-post-title { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
.bm-page-body { padding-top: 56px; }
@media (max-width: 640px) { .bm-page-head { min-height: 220px; padding: 96px 16px 32px; } }

/* Mobiles Menü: Vollbild, dunkel. Der Weichzeichner sitzt auf ::before, weil backdrop-filter am Header
   das fixierte Overlay sonst auf die Header-Höhe einsperrt. */
.bm-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.bm-header .wp-block-navigation__responsive-container-open,
.bm-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--text); }
.bm-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; height: 100dvh; padding: 24px; background: rgba(10, 11, 14, 0.98) !important; color: var(--wp--preset--color--text) !important; z-index: 100000; }
.admin-bar .bm-header .wp-block-navigation__responsive-container.is-menu-open { top: var(--wp-admin--admin-bar--height, 46px); height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px)); }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { top: 20px; right: 20px; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px; align-items: stretch; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { justify-content: flex-start; align-items: flex-start; text-align: left; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px; align-items: flex-start; width: 100%; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.bm-header .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content { display: block; width: 100%; padding: 18px 4px; font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; letter-spacing: .04em; color: var(--wp--preset--color--text); text-shadow: none; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content::after { display: none; }
@media (max-width: 600px) {
	.bm-header .wp-block-buttons .wp-block-button__link { padding: 10px 14px; font-size: .75rem; }
}

/* Pegelanzeige am rechten Rand (nur Computer) */
.bm-meter { position: fixed; right: 14px; top: 50%; z-index: 40; display: flex; gap: 3px; padding: 6px 5px; border-radius: 4px; background: rgba(10, 11, 14, 0.55); border: 1px solid var(--wp--preset--color--line); transform: translate(12px, -50%); opacity: 0; transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.bm-meter.is-visible { opacity: 1; transform: translate(0, -50%); }
.bm-meter-ch { display: flex; flex-direction: column-reverse; gap: 3px; }
.bm-meter-ch span { display: block; width: 6px; height: 10px; border-radius: 1px; opacity: 0.16; transition: opacity .08s linear; }
.bm-meter-ch .is-green { background: #3fd26b; }
.bm-meter-ch .is-yellow { background: #e6d23c; }
.bm-meter-ch .is-orange { background: #ff9a2e; }
.bm-meter-ch span.is-on, .bm-meter-ch span.is-peak { opacity: 1; box-shadow: 0 0 6px currentColor; }
.bm-meter-ch .is-green.is-on, .bm-meter-ch .is-green.is-peak { color: rgba(63, 210, 107, 0.6); }
.bm-meter-ch .is-yellow.is-on, .bm-meter-ch .is-yellow.is-peak { color: rgba(230, 210, 60, 0.6); }
.bm-meter-ch .is-orange.is-on, .bm-meter-ch .is-orange.is-peak { color: rgba(255, 154, 46, 0.6); }
@media (max-width: 781px) { .bm-meter { display: none; } }
@media (prefers-reduced-motion: reduce) { .bm-meter { display: none; } }
