/* BAIRLE Media Solutions – Theme
   Maße stammen aus dem Screendesign (1920 px breit, Inhaltsbreite 1260 px). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); }

:root {
    --red: #ed1a2a;
    --red-dark: #c9101f;
    --navy: #131420;
    --black: #06070a;
    --beige: #f3f0ee;
    --grey: #e5e3e2;
    --white: #fff;
    --text: #0a0a0a;
    --container: 1260px;
    --gutter: 24px;
    --gap: 40px;
    --sec-pad: clamp(72px, 8.4vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 16px/1.25 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; font-style: normal; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sec--hero :focus-visible, .sec--dark :focus-visible, .sec--navy :focus-visible, .site-header :focus-visible, .site-footer__main :focus-visible { outline-color: var(--white); }

.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--text); font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- Buttons */
.btn, .hero-button a {
    display: inline-block; padding: 11px 20px; border: 2px solid var(--red); background: transparent; color: var(--white);
    font-weight: 600; font-size: 18px; line-height: 1.1; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover, .hero-button a:hover { background: var(--red); }
.btn--white { border-color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--red); }

/* ---------------------------------------------------------------- Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; padding-top: 37px; color: var(--white); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { flex: none; display: block; width: clamp(200px, 22vw, 315px); }
.main-nav ul.level_1 { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 52px); }
/* Untermenü als Dropdown */
.main-nav li { position: relative; }
.main-nav ul.level_2 { position: absolute; left: 0; top: 100%; z-index: 5; min-width: 300px; padding: 8px 0; background: var(--navy); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.main-nav li:hover > ul.level_2, .main-nav li:focus-within > ul.level_2 { opacity: 1; visibility: visible; transform: none; }
.main-nav ul.level_2 a, .main-nav ul.level_2 strong { margin: 0; padding: 11px 18px; white-space: normal; }
.main-nav ul.level_1 > li:last-child > ul.level_2 > li > * { margin-right: 0; }
.main-nav a, .main-nav strong { display: block; padding: 7px 10px; font-size: 16px; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.main-nav ul.level_1 > li:last-child > a, .main-nav ul.level_1 > li:last-child > strong { margin-right: -10px; }
.main-nav a:hover { background: rgba(237, 26, 42, .35); }
.main-nav strong, .main-nav a.trail { background: var(--red); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- Abschnitte */
.sec { position: relative; padding-block: var(--sec-pad); }
.sec--white { background: var(--white); }
.sec--beige { background: var(--beige); }
.sec--navy { background: var(--navy); color: var(--white); padding-block: clamp(48px, 3.2vw, 60px); }
.sec--dark { background: var(--black) url("../img/bg-hex-left.jpg") left center / cover no-repeat; color: var(--white); padding-block: clamp(72px, 6.8vw, 130px); }
.sec--hero { z-index: 2; background: var(--black) url("../img/bg-hex-right.jpg") center top / cover no-repeat; color: var(--white); padding: clamp(150px, 11.2vw, 215px) 0 0; }
.sec--hero-small { padding-bottom: clamp(48px, 5vw, 90px); }
.sec--text .container { max-width: calc(900px + 2 * var(--gutter)); }

/* ---------------------------------------------------------------- Typografie */
.hero-headline, h1 { font-size: clamp(26px, 2.4vw + 16px, 50px); overflow-wrap: break-word; hyphens: auto; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.hero-text { margin-top: clamp(20px, 2vw, 36px); max-width: 830px; font-size: clamp(16px, .4vw + 13px, 19px); line-height: 1.3; }
.hero-text p { text-wrap: pretty; }
.sec--hero:not(.sec--hero-split) .hero-headline + .hero-text:has(+ .hero-button) { max-width: 720px; }
.hero-text p + p { margin-top: clamp(24px, 2.4vw, 46px); }
.hero-text strong { font-weight: 700; }
.hero-button { margin-top: clamp(24px, 2.2vw, 38px); }
.bms-kicker { color: var(--red); font-size: clamp(14px, .3vw + 12px, 18px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bms-title { margin-top: 6px; font-size: clamp(28px, 1.9vw + 14px, 48px); line-height: 1.2; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.bms-heading { margin-bottom: clamp(40px, 4.7vw, 90px); }
.bms-heading--center { text-align: center; }
.bms-heading--center .bms-title { text-wrap: pretty; }
.rte p + p, .rte p + ul, .rte ul + p { margin-top: 1.25em; }
.rte a { color: var(--red); }
.sec--text .rte { font-size: 17px; line-height: 1.55; }
.sec--text .rte h2 { margin: 1.6em 0 .5em; font-size: 26px; }

/* Icons: SVG als Maske, damit die Farbe per CSS gesteuert werden kann */
.bms-icon { display: block; width: 80px; height: 72px; margin-inline: auto; background: var(--red); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* ---------------------------------------------------------------- Leistungskarten */
.bms-cards { position: relative; z-index: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(56px, 6vw, 116px); }
.bms-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
.hero-text + .bms-cards { margin-top: clamp(48px, 3.4vw, 64px); }
.bms-card { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 360px; padding: 56px 22px 44px; background: var(--navy); color: var(--white); text-align: center; text-decoration: none; }
.bms-cards--cols-4 .bms-card { min-height: 322px; padding: 44px 12px 36px; }
a.bms-card { top: 0; transition: top .2s; }
a.bms-card:hover { top: -6px; }
.bms-card--highlight { background: var(--red); }
.bms-card--highlight .bms-icon { background: var(--white); }
.bms-card__title { margin-top: 40px; font-size: 18px; line-height: 1.2; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.bms-cards--cols-4 .bms-card__title { margin-top: 28px; max-width: 12em; }
.bms-card__text { margin-top: 18px; font-size: 18px; line-height: 1.22; text-wrap: balance; }
.bms-cards--cols-4 .bms-card__text { margin-top: 12px; }
/* Roter Winkel hinter einer Kachel */
.bms-cards--deco-br .bms-card:not(.bms-cta):last-child::after,
.bms-cards--deco-bl .bms-card:nth-child(4)::after { content: ""; position: absolute; z-index: -1; background: var(--red); top: 68%; bottom: -22px; }
.bms-cards--deco-br .bms-card:last-child::after { left: 0; right: -26px; }
.bms-cards--deco-bl .bms-card:nth-child(4)::after { left: -20px; right: 0; }

/* Rote Kontakt-Kachel / Kontakt-Box */
.bms-cta { background: var(--red); color: var(--white); align-items: flex-start; text-align: left; padding: 54px 28px 44px; }
.bms-cta__title { font-size: clamp(21px, .5vw + 16px, 25px); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.bms-cta__text { margin-top: 20px; font-size: 16px; line-height: 1.22; }
.bms-cta .btn { margin-top: 28px; }

/* ---------------------------------------------------------------- Bild mit Text */
.bms-intro { display: grid; grid-template-columns: minmax(0, 610fr) minmax(0, 610fr); gap: var(--gap); align-items: center; }
.bms-intro__media { position: relative; z-index: 0; }
.bms-intro__media::before { content: ""; position: absolute; z-index: -1; left: -21px; bottom: -21px; width: 71%; height: 33%; background: var(--red); }
.bms-intro__media img { width: 100%; }
.bms-intro .rte { margin-top: clamp(20px, 2.2vw, 40px); max-width: 600px; }
.bms-intro__action { margin-top: 30px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.bms-intro--image-right .bms-intro__media { order: 2; }
.bms-intro--screenshot .bms-intro__media::before { display: none; }
.bms-intro--screenshot .bms-intro__media img { border: 1px solid #dcd9d6; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); }
.bms-intro--screenshot .bms-title { font-size: clamp(24px, 1.2vw + 14px, 36px); }
.bms-intro + .bms-intro { margin-top: clamp(64px, 6.2vw, 120px); }
.bms-heading + .content-text, .content-text + .bms-intro { margin-top: 0; }
.sec:not(.sec--hero) .container > .content-text { max-width: 860px; margin-inline: auto; font-size: 18px; line-height: 1.45; text-align: center; }
.sec .container > .bms-heading + .content-text { margin-top: clamp(-70px, -3.4vw, -20px); margin-bottom: clamp(40px, 4.7vw, 90px); }
.sec--text .container > .content-text { text-align: left; margin-inline: 0; }
.content-hyperlink.btn-center { margin-top: 36px; text-align: center; }
.content-hyperlink.btn-center a { display: inline-block; padding: 11px 20px; border: 2px solid var(--red); color: inherit; font-weight: 600; font-size: 18px; line-height: 1.1; text-decoration: none; transition: background-color .2s, color .2s; }
.content-hyperlink.btn-center a:hover { background: var(--red); color: var(--white); }
/* Rote Kontakt-Box als Inhaltselement (z. B. Preis-Hinweis) */
.mod_article .bms-cta--box { max-width: 860px; margin: 0 auto; padding: clamp(32px, 3.4vw, 56px); text-align: center; align-items: center; }
.mod_article .bms-cta--box .bms-cta__text { font-size: 18px; line-height: 1.4; }

/* ---------------------------------------------------------------- Team */
.bms-team { display: grid; grid-template-columns: minmax(0, 470fr) minmax(0, 750fr); gap: var(--gap); align-items: center; }
.bms-team__intro p:not(.bms-kicker) { margin-top: 22px; max-width: 470px; }
.bms-team__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bms-member { text-align: center; }
.bms-member__photo { width: 122px; height: 122px; margin-inline: auto; border-radius: 50%; border: 2px solid var(--white); object-fit: cover; }
.bms-member__name { margin-top: 36px; color: var(--red); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.bms-member__role { margin-top: 10px; font-size: 14px; }
.bms-member__contact { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }
.bms-contact-icon { display: block; width: 24px; height: 24px; background: center / contain no-repeat; transition: opacity .2s; }
.bms-contact-icon:hover { opacity: .7; }
.bms-contact-icon--phone { background-image: url("../../icons/phone.svg"); }
.bms-contact-icon--mail { background-image: url("../../icons/mail.svg"); }

/* ---------------------------------------------------------------- Vorteile-Raster */
.bms-features { position: relative; z-index: 0; }
.bms-features::before, .bms-features::after { content: ""; position: absolute; z-index: -1; width: 200px; height: 200px; background: var(--red); }
.bms-features::before { left: -16px; top: -16px; }
.bms-features::after { right: -18px; bottom: -15px; }
.bms-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.bms-feature { min-height: 293px; padding: 56px 8px 40px; background: var(--feature-light, var(--beige)); text-align: center; }
.bms-feature:nth-child(8n+1), .bms-feature:nth-child(8n+3), .bms-feature:nth-child(8n+6), .bms-feature:nth-child(8n+8) { background: var(--grey); }
.bms-feature__title { margin-top: 36px; font-size: clamp(15px, .4vw + 11px, 18px); font-weight: 700; text-transform: uppercase; }
.bms-feature__text { margin: 14px auto 0; max-width: 17em; font-size: 16px; line-height: 1.22; text-wrap: balance; }

/* ---------------------------------------------------------------- Slider */
.bms-slider { --per-view: 4; --slide-gap: 40px; }
.bms-slider__viewport { overflow: hidden; }
.bms-slider__track { display: flex; gap: var(--slide-gap); will-change: transform; touch-action: pan-y; }
.bms-slider__slide { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view)); min-width: 0; }
.bms-slider:not(.is-ready) .bms-slider__viewport { overflow-x: auto; }
.bms-slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: clamp(40px, 4.2vw, 80px); }
.bms-slider__dot { width: 26px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.bms-slider__dot::before { content: ""; display: block; height: 3px; background: #c9c7c6; transition: background-color .2s; }
.bms-slider__dot[aria-current="true"]::before { background: var(--red); }

.bms-project { display: block; text-decoration: none; text-align: center; color: inherit; }
.bms-project img { width: 100%; aspect-ratio: 285 / 264; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.bms-slider__slide.is-focus .bms-project img { filter: none; }
.bms-project:hover img, .bms-project__image:focus-visible img { filter: none; }
.bms-project__image { display: block; cursor: zoom-in; }
.bms-project__title a { color: inherit; text-decoration: none; }
.bms-project__title a:hover { color: var(--red); }

/* Lightbox */
.bms-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(19, 20, 32, .94); color: #fff; }
.bms-lightbox::backdrop { background: transparent; }
.bms-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bms-lightbox__img { max-width: min(92%, 1500px); max-height: calc(100% - 130px); width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.bms-lightbox__caption { margin-top: 18px; font-size: 16px; font-weight: 700; text-align: center; }
.bms-lightbox button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: 400 30px/1 Arial, sans-serif; cursor: pointer; transition: background .2s; }
.bms-lightbox button:hover, .bms-lightbox button:focus-visible { background: var(--red); }
.bms-lightbox__close { top: 18px; right: 18px; }
.bms-lightbox__prev { left: 18px; top: 50%; margin-top: -26px; }
.bms-lightbox__next { right: 18px; top: 50%; margin-top: -26px; }
@media (max-width: 640px) {
    .bms-lightbox button { width: 42px; height: 42px; font-size: 24px; }
    .bms-lightbox__prev { left: 6px; } .bms-lightbox__next { right: 6px; }
}
.bms-project__title { margin-top: 22px; font-size: 16px; font-weight: 700; }

.bms-testimonials { --per-view: 3; --slide-gap: 0px; max-width: 1065px; margin-inline: auto; }
.bms-testimonials .bms-slider__viewport { overflow-x: clip; overflow-y: visible; }
.bms-testimonials:not(.is-ready) .bms-slider__viewport { overflow-x: auto; }
.bms-testimonials .bms-slider__track { align-items: center; }
.bms-testimonial { padding: 44px 26px 40px; background: var(--white); box-shadow: 0 0 22px rgba(0, 0, 0, .13); text-align: center; font-size: 14px; line-height: 1.25; transition: transform .45s ease; }
.bms-slider__slide.is-center { position: relative; z-index: 2; }
.bms-slider__slide.is-center .bms-testimonial { transform: scale(1.18); }
.bms-stars { color: var(--red); font-size: 30px; line-height: 1; letter-spacing: 2px; }
.bms-testimonial blockquote { margin-top: 26px; text-wrap: balance; }
.bms-testimonial figcaption { margin-top: 20px; font-weight: 700; text-wrap: balance; }

/* ---------------------------------------------------------------- Ablauf in Schritten */
.bms-steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.bms-steps__list--3 { grid-template-columns: repeat(3, 1fr); }
.bms-step { position: relative; padding: 56px 14px 46px; background: var(--white); box-shadow: 0 0 20px rgba(0, 0, 0, .12); text-align: center; }
.bms-step:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: var(--gap); height: 6px; margin-top: -3px; background: var(--red); }
.bms-step__title { margin-top: 30px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.bms-step__text { margin: 16px auto 0; max-width: 18em; font-size: 14px; line-height: 1.25; text-wrap: balance; }

/* ---------------------------------------------------------------- Kontakt: Text links, Formular rechts */
.sec--hero-split { padding-bottom: 0; }
.sec--hero-split > .container { display: grid; grid-template-columns: minmax(0, 610fr) minmax(0, 610fr); grid-template-rows: 1fr auto auto 1.6fr; column-gap: var(--gap); }
.sec--hero-split .hero-headline { grid-area: 2 / 1; }
.sec--hero-split .hero-text { grid-area: 3 / 1; }
.hero-form { grid-area: 1 / 2 / 5 / 3; margin-top: 20px; margin-bottom: -145px; padding: 28px 27px 0; background: var(--navy); }
.sec--hero-split + .sec { padding-top: calc(var(--sec-pad) + 145px); }
.hero-form h2 { font-size: clamp(22px, .8vw + 13px, 28px); font-weight: 700; text-transform: uppercase; }
.hero-form .formbody { display: grid; grid-template-columns: 0.72fr 1fr; gap: 26px 40px; margin-top: 22px; }
.hero-form .widget { grid-column: 1 / -1; }
.hero-form .field-first { grid-column: 1; }
.hero-form .field-last { grid-column: 2; }
.hero-form label { display: block; margin-bottom: 7px; font-size: 15px; }
.hero-form span.mandatory { margin-left: 2px; color: var(--red); }
.hero-form input.text, .hero-form textarea { display: block; width: 100%; padding: 8px 12px; border: 2px solid transparent; border-radius: 0; background: var(--beige); color: var(--text); font-size: 15px; }
.hero-form input.text { height: 36px; }
.hero-form textarea { height: 162px; resize: vertical; }
.hero-form ::placeholder { color: #b9b6b3; opacity: 1; }
.hero-form input.text:focus-visible, .hero-form textarea:focus-visible { outline: none; border-color: var(--red); }
.hero-form fieldset { margin: 0; padding: 0; border: 0; }
.hero-form legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-form .checkbox_container > span { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.hero-form input.checkbox { appearance: none; width: 14px; height: 14px; margin: 1px 0 0; border: 2px solid var(--white); border-radius: 50%; background: transparent; cursor: pointer; }
.hero-form input.checkbox:checked { background: var(--red); box-shadow: inset 0 0 0 2px var(--navy); }
.hero-form .field-consent label { margin: 0; font-size: 12.5px; line-height: 1.3; cursor: pointer; }
.hero-form p.error { margin-bottom: 6px; color: #ff8a93; font-size: 13px; font-weight: 600; }
.hero-form .field-submit { margin: 8px -27px 0; }
.hero-form button.submit { display: block; width: 100%; height: 53px; border: 0; background: var(--red); color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; transition: background-color .2s; }
.hero-form button.submit:hover { background: var(--red-dark); }
.hero-form > p, .hero-form .tl_confirm, .hero-form > div:not(.formbody) { padding-block: 24px 40px; font-size: 17px; line-height: 1.4; }

/* ---------------------------------------------------------------- Footer */
.site-footer__main { position: relative; background: var(--black) url("../img/bg-hex-left.jpg") left center / cover no-repeat; color: var(--white); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 827fr) minmax(0, 393fr); gap: var(--gap); align-items: stretch; min-height: 300px; }
.bms-footer-info { display: grid; grid-template-columns: minmax(0, 394fr) minmax(0, 393fr); gap: var(--gap); align-items: center; padding-block: 60px 50px; }
.bms-footer-info__brand img { width: min(315px, 100%); }
.bms-footer-info__tagline { margin-top: 26px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.bms-footer-info__address { font-size: 16px; line-height: 1.22; }
.bms-footer-info__address p + p { margin-top: 20px; }
.bms-footer-info__address p:last-child { margin-top: 10px; }
.bms-footer-info__address a { text-decoration: none; }
.bms-footer-info__address a:hover { text-decoration: underline; }
.bms-cta--box { margin-top: -32px; padding: 40px 30px 36px; display: flex; flex-direction: column; justify-content: center; }
.site-footer__bar { background: var(--white); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 48px; padding-block: 10px; font-size: 16px; }
.footer-nav ul { display: flex; gap: 46px; }
.footer-nav a, .footer-nav strong { font-weight: 400; text-decoration: none; }
.footer-nav a:hover, .footer-nav strong { text-decoration: underline; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
    :root { --gap: 28px; }
    .bms-cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .bms-steps__list { grid-template-columns: repeat(2, 1fr); }
    .bms-steps__list--3 { grid-template-columns: repeat(3, 1fr); }
    .bms-steps__list:not(.bms-steps__list--3) .bms-step:nth-child(2n)::after { display: none; }
    .bms-features__grid { grid-template-columns: repeat(2, 1fr); }
    .bms-feature:nth-child(n) { background: var(--feature-light, var(--beige)); }
    .bms-feature:nth-child(4n+1), .bms-feature:nth-child(4n+4) { background: var(--grey); }
    .bms-team { grid-template-columns: 1fr; }
    .bms-projects { --per-view: 3; --slide-gap: 28px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 0; }
    .bms-cta--box { margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}
@media (max-width: 980px) {
    /* Navigation als ausklappbares Menü */
    .site-header { padding-top: 22px; }
    .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 2px solid var(--white); background: transparent; cursor: pointer; position: relative; z-index: 31; }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .2s, background-color .2s; }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -7px; }
    .nav-toggle__bars::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
    .site-nav { position: fixed; inset: 0; z-index: 30; display: none; padding: 110px var(--gutter) 40px; background: rgba(6, 7, 10, .97); overflow-y: auto; }
    .site-nav.is-open { display: block; }
    .main-nav ul.level_1 { flex-direction: column; align-items: stretch; gap: 6px; }
    .main-nav a, .main-nav strong { padding: 14px 16px; font-size: 20px; white-space: normal; }
    .main-nav ul.level_1 > li:last-child > a, .main-nav ul.level_1 > li:last-child > strong { margin-right: 0; }
    .main-nav ul.level_2 { position: static; min-width: 0; padding: 0 0 6px 18px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .main-nav ul.level_2 a, .main-nav ul.level_2 strong { padding: 10px 16px; font-size: 17px; }

    .bms-cards, .bms-cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .bms-cards--deco-bl .bms-card:nth-child(4)::after { display: none; }
    .bms-intro { grid-template-columns: 1fr; gap: 56px; }
    .bms-intro--image-right .bms-intro__media { order: 0; }
    .bms-intro--screenshot { gap: 32px; }
    .bms-intro__media { max-width: 610px; }
    .sec--hero-split > .container { display: block; }
    .hero-form { margin-top: 48px; }
    .bms-testimonials { --per-view: 1; max-width: 420px; }
    .bms-slider__slide.is-center .bms-testimonial { transform: none; }
}
@media (max-width: 640px) {
    :root { --gutter: 20px; --gap: 20px; }
    .bms-cards, .bms-cards--cols-4, .bms-steps__list, .bms-steps__list--3 { grid-template-columns: 1fr; }
    .bms-card, .bms-cards--cols-4 .bms-card { min-height: 0; padding: 40px 20px 36px; }
    .bms-card__title, .bms-cards--cols-4 .bms-card__title { margin-top: 26px; }
    .bms-cards--deco-br .bms-card:last-child::after { right: -10px; bottom: -12px; }
    .bms-step::after { display: none; }
    .bms-step { padding: 40px 16px 34px; }
    .bms-features::before, .bms-features::after { width: 120px; height: 120px; }
    .bms-features::before { left: -8px; top: -8px; }
    .bms-features::after { right: -8px; bottom: -8px; }
    .bms-feature { min-height: 0; padding: 36px 10px 30px; }
    .bms-feature__title { font-size: 14px; hyphens: auto; }
    .bms-feature__text { font-size: 14px; }
    .bms-icon { width: 64px; height: 58px; }
    .bms-team__list { grid-template-columns: 1fr; gap: 40px; }
    .bms-member__name { margin-top: 20px; }
    .bms-projects { --per-view: 1; }
    .bms-intro__media::before { left: -10px; bottom: -10px; }
    .hero-form { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
    .hero-form .formbody { grid-template-columns: 1fr; gap: 20px; }
    .hero-form .field-first, .hero-form .field-last { grid-column: 1; }
    .hero-form .field-submit { margin-inline: calc(-1 * var(--gutter)); }
    .bms-footer-info { grid-template-columns: 1fr; padding-block: 48px 40px; }
    .site-footer__bar-inner { font-size: 14px; }
    .footer-nav ul { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
}

/* Feste Zeilenumbrüche in Überschriften gelten nur auf großen Bildschirmen */
@media (max-width: 980px) { h1 br, .bms-title br { display: none; } h1, .bms-title { text-wrap: balance; } }

/* Produkt-Teaser ohne Bild (Text-Element mit Überschrift) */
.sec .container > .content-text.product-teaser { margin-top: clamp(64px, 6.2vw, 120px); }
.content-text.product-teaser h2 { margin-bottom: 20px; font-size: clamp(24px, 1.2vw + 14px, 36px); line-height: 1.2; text-transform: uppercase; }

/* Eigene Produkte auf der Startseite: Kacheln auf hellem Grund */
.bms-heading + .bms-cards { margin-top: 0; }

/* Fehlerseiten (404 / 403) */
.sec--error { display: flex; align-items: center; min-height: min(78vh, 900px); padding-bottom: clamp(72px, 7vw, 130px); }
.sec--error > .container { width: 100%; }
.bms-error { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(32px, 5vw, 90px); }
.bms-error__code { display: flex; gap: .04em; font-size: clamp(110px, 17vw, 260px); line-height: .85; font-weight: 800; letter-spacing: -.04em; }
.bms-error__code span { color: transparent; -webkit-text-stroke: 3px var(--white); }
.bms-error__code span:nth-child(2) { color: var(--red); -webkit-text-stroke: 0; animation: bms-error-pulse 3.2s ease-in-out infinite; }
@keyframes bms-error-pulse { 0%, 100% { text-shadow: 0 0 0 rgba(237, 26, 42, 0); } 50% { text-shadow: 0 0 60px rgba(237, 26, 42, .75); } }
.bms-error__title { margin-top: 6px; font-size: clamp(28px, 1.9vw + 14px, 48px); }
.bms-error__text { margin-top: 20px; max-width: 560px; font-size: clamp(16px, .4vw + 13px, 19px); line-height: 1.4; }
.bms-error__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 980px) {
    .bms-error { grid-template-columns: 1fr; }
    .sec--error { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .bms-error__code span { animation: none !important; } }

/* Bestätigungsseite nach dem Absenden des Formulars */
.bms-thanks { max-width: 760px; }
.bms-thanks .hero-button { display: flex; flex-wrap: wrap; gap: 12px; }

/* Unsichtbarer Spamschutz (ALTCHA) nimmt keinen Platz ein */
.hero-form .widget-altcha.altcha-hidden { margin: 0; padding: 0; min-height: 0; }

/* Produkt-Kacheln: Kontakt-Box in voller Breite unter den Kacheln */
.bms-cards--cta-wide .bms-cta { grid-column: 1 / -1; min-height: 0; align-items: center; text-align: center; padding-block: clamp(36px, 3.4vw, 56px); }

/* „Mehr erfahren“ unter verlinkten Kacheln */
.bms-card__more { margin-top: auto; padding-top: 22px; color: var(--red); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.bms-card__more::after { content: " \203A"; display: inline-block; margin-left: 4px; transition: transform .2s; }
a.bms-card:hover .bms-card__more::after { transform: translateX(4px); }
.bms-card--highlight .bms-card__more { color: var(--white); }

/* Aufzählungen in Bild-mit-Text-Blöcken */
.bms-intro .rte ul { margin: 1.1em 0 0; padding: 0; list-style: none; }
.bms-intro__zoom { display: block; cursor: zoom-in; }
/* Bild mit Text: Animation der Leistungsbereiche */
.bms-services { display: block; width: 100%; height: auto; font-family: inherit; }
.bms-services .sv-scene { opacity: 0; transition: opacity .5s ease; }
.bms-services .sv-scene.is-active { opacity: 1; }
.bms-services .sv-num { fill: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.bms-services .sv-label { fill: #fff; font-size: 28px; font-weight: 800; letter-spacing: .01em; }
.bms-services .sv-a, .bms-services .sv-w, .bms-services .sv-pop, .bms-services .sv-press, .bms-services .sv-knob, .bms-services .sv-track { transform-box: fill-box; transform-origin: 50% 50%; }
.bms-services .sv-w, .bms-services .sv-track { transform-origin: 0 50%; }
.bms-services .sv-fly { opacity: 0; }
.bms-services .sv-draw { stroke-dasharray: 1; }
.bms-services .is-active .sv-a { animation: sv-rise .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.bms-services .is-active .sv-w { animation: sv-grow .5s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.bms-services .is-active .sv-pop { animation: sv-pop .5s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s) both; }
.bms-services .is-active .sv-draw { animation: sv-draw var(--t, 1.2s) ease-in-out var(--d, 0s) both; }
.bms-services .is-active .sv-press { animation: sv-press .35s ease 1.25s both; }
.bms-services .is-active .sv-fly { animation: sv-fly .75s cubic-bezier(.5, 0, .4, 1) 1.4s both; }
.bms-services .is-active .sv-knob { animation: sv-knob 1.1s ease-in-out 1.9s both; }
.bms-services .is-active .sv-track { animation: sv-track 1.1s ease-in-out 1.9s both; }
.bms-services .is-active .sv-up { animation: sv-up 1.2s cubic-bezier(.6, 0, .3, 1) 1.9s both; }
.bms-services .is-active .sv-down { animation: sv-down 1.2s cubic-bezier(.6, 0, .3, 1) 1.9s both; }
.bms-services .is-active .sv-led { animation: sv-led 1.3s steps(1) var(--b, 0s) infinite; }
@keyframes sv-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes sv-grow { from { opacity: 0; transform: scaleX(0); } }
@keyframes sv-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes sv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sv-press { 50% { transform: scale(.93); } }
@keyframes sv-fly { 0% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(213px, -80px); } }
@keyframes sv-knob { from { transform: translateX(-90px); } }
@keyframes sv-track { from { transform: scaleX(.18); } }
@keyframes sv-up { from { transform: translateY(168px); } }
@keyframes sv-down { from { transform: translateY(-56px); } }
@keyframes sv-led { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bms-services * { animation: none !important; transition: none !important; } }

/* Bild mit Text: langsamer Zoom ins Bild */
.bms-intro__kenburns { display: block; overflow: hidden; }
.bms-intro__kenburns img { display: block; transform-origin: 50% 42%; animation: bms-kenburns 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes bms-kenburns { from { transform: scale(1); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .bms-intro__kenburns img { animation: none; } }
.bms-intro .rte li { position: relative; padding-left: 22px; }
.bms-intro .rte li + li { margin-top: .6em; }
.bms-intro .rte li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--red); }

/* Zwei Buttons nebeneinander im Seitenkopf */
.hero-button { display: inline-block; margin-right: 12px; }

/* Eingebetteter Beispielkatalog */
.bms-katalog-embed iframe, iframe[title^="Beispielkatalog"] { display: block; width: 100%; height: min(720px, 80vh); border: 0; background: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); }

/* Hauptmenü zweizeilig (Desktop) */
@media (min-width: 981px) {
    .main-nav ul.level_1 { gap: clamp(8px, 1.6vw, 30px); }
    .main-nav ul.level_1 > li > a, .main-nav ul.level_1 > li > strong { padding: 8px 12px; line-height: 1.25; text-align: center; }
    .main-nav .nav-line { display: block; }
    .main-nav .nav-line:first-child { font-weight: 700; }
    .main-nav .nav-line + .nav-line { font-size: 14px; font-weight: 400; opacity: .85; }
}

/* Mitlaufender Seitenkopf: beim Scrollen kompakter, mit dunklem Hintergrund und kleinerem Logo */
.site-header { position: fixed; padding-bottom: 0; transition: padding .25s, background-color .25s, box-shadow .25s; }
.site-logo { transition: width .25s; }
.site-header.is-scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(19, 20, 32, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.site-header.is-scrolled .site-logo { width: clamp(130px, 13vw, 170px); }
@media (min-width: 981px) {
    .site-header.is-scrolled .main-nav ul.level_1 > li > a, .site-header.is-scrolled .main-nav ul.level_1 > li > strong { padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .site-logo { transition: none; } }

/* Projekt-Wand: volle Seitenbreite, lückenlos, 1 bis 6 pro Reihe */
.sec--wall { padding: 0; background: var(--navy); }
.sec--wall > .container { max-width: none; padding: 0; }
.bms-wall { --wall-cols: 1; display: flex; flex-wrap: wrap; }
.bms-wall__item { position: relative; flex: 0 0 calc(100% / var(--wall-cols)); display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--navy); cursor: zoom-in; }
.bms-wall__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .9s ease, transform .5s; }
.bms-wall__item.is-lit img { filter: none; }
.bms-wall__item:hover img { transition-duration: .3s, .5s; }
.bms-wall__name { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(19, 20, 32, .92), rgba(19, 20, 32, 0)); color: var(--white); font-size: 16px; font-weight: 700; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.bms-wall__item:hover img, .bms-wall__item:focus-visible img { filter: none; transform: scale(1.04); }
.bms-wall__item:hover .bms-wall__name, .bms-wall__item:focus-visible .bms-wall__name { opacity: 1; transform: none; }
.bms-wall__item:focus-visible { outline-offset: -3px; }
.bms-wall__cta { flex: 1 1 calc(100% / var(--wall-cols)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 20px 44px; background: var(--navy); color: var(--white); text-align: center; }
.bms-wall__cta-title { font-size: clamp(18px, .5vw + 14px, 24px); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
@media (hover: none) { .bms-wall__name { opacity: 1; transform: none; } }
@media (hover: none) and (prefers-reduced-motion: reduce) { .bms-wall__item img { filter: none; } }
@media (min-width: 480px)  { .bms-wall { --wall-cols: 2; } }
@media (min-width: 760px)  { .bms-wall { --wall-cols: 3; } }
@media (min-width: 1040px) { .bms-wall { --wall-cols: 4; } }
@media (min-width: 1320px) { .bms-wall { --wall-cols: 5; } }
@media (min-width: 1600px) { .bms-wall { --wall-cols: 6; } }
@media (prefers-reduced-motion: reduce) { .bms-wall__item img, .bms-wall__name { transition: none; } }

/* Projekt-Bühne: ein Projekt groß in Farbe, alle als Vorschau daneben */
.bms-stage { display: grid; background: var(--navy); }
.sec--wall:has(.bms-stage) { padding-bottom: clamp(36px, 4vw, 72px); }
.bms-stage__view { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--black); color: var(--white); cursor: zoom-in; }
.bms-stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.bms-stage__img.is-on { opacity: 1; }
.bms-stage__caption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 6px; padding: clamp(70px, 9vw, 150px) clamp(20px, 2.6vw, 48px) clamp(18px, 2.2vw, 40px); background: linear-gradient(to top, rgba(19, 20, 32, .94), rgba(19, 20, 32, 0)); }
.bms-stage__count { align-self: flex-start; padding: 5px 10px; background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.bms-stage__count b { font-weight: 700; }
.bms-stage__name { font-size: clamp(22px, 1.5vw + 12px, 44px); line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.bms-stage__zoom { position: absolute; top: clamp(14px, 1.6vw, 28px); right: clamp(14px, 1.6vw, 28px); width: 46px; height: 46px; border-radius: 50%; background: rgba(19, 20, 32, .7); transition: background .2s; }
.bms-stage__zoom::before, .bms-stage__zoom::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--white); }
.bms-stage__zoom::after { transform: rotate(90deg); }
.bms-stage__view:hover .bms-stage__zoom, .bms-stage__view:focus-visible .bms-stage__zoom { background: var(--red); }
.bms-stage__view:focus-visible { outline-offset: -3px; }
.bms-stage__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); }
.bms-stage__thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--black); cursor: pointer; }
.bms-stage__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .55; transition: filter .5s ease, opacity .5s ease; }
.bms-stage__thumb::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--red); opacity: 0; transition: opacity .3s; }
.bms-stage__thumb.is-active img, .bms-stage__thumb:hover img, .bms-stage__thumb:focus-visible img { filter: none; opacity: 1; }
.bms-stage__thumb.is-active::after { opacity: 1; }
.bms-stage__thumb:focus-visible { outline-offset: -3px; }
.bms-stage__cta { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 16px 8px; color: var(--white); text-align: center; }
.bms-stage__cta-title { font-size: clamp(14px, .5vw + 10px, 20px); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.bms-stage__cta .btn { padding: 10px 16px; font-size: 14px; }
@media (min-width: 600px) {
    .bms-stage__thumbs { grid-template-columns: repeat(6, 1fr); }
    .bms-stage__cta { grid-column: span var(--rest6); padding: 16px; }
}
@media (min-width: 600px) and (max-width: 1099px) { .bms-stage__view { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) {
    /* 5 : 6 – bei fünf Vorschau-Reihen sind Bühne und Raster exakt gleich hoch */
    .bms-stage { grid-template-columns: 5fr 6fr; }
    .bms-stage__view { min-height: 100%; }
    .bms-stage__thumbs { grid-auto-rows: 1fr; }
    .bms-stage__thumb { aspect-ratio: auto; min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .bms-stage__img, .bms-stage__thumb img, .bms-stage__thumb::after { transition: none; } }

/* Viele Slider-Punkte: auf schmalen Bildschirmen umbrechen */
.bms-slider__dots { flex-wrap: wrap; row-gap: 0; }

/* Maximale Seitenbreite: darüber schwarzer Rand links und rechts */
html { background: #000; }
body { max-width: 2600px; margin-inline: auto; }
.site-header { left: 0; right: 0; max-width: 2600px; margin-inline: auto; }

/* Überschrift über der Projekt-Wand (dunkler Grund, volle Breite) */
.sec--wall .bms-wall-heading { margin: 0; padding: clamp(56px, 6vw, 110px) var(--gutter) clamp(36px, 3.6vw, 64px); color: var(--white); }

.bms-intro .rte ul + p { margin-top: 1.25em; }
.bms-intro .rte a { color: var(--red); font-weight: 700; }

/* Lebendiger Hintergrund in den dunklen Sechseck-Bereichen */
.bms-fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.sec--hero > .container, .sec--dark > .container { position: relative; z-index: 1; }
.sec--hero::before, .sec--dark::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 75% at 82% 32%, rgba(237, 26, 42, .34), rgba(237, 26, 42, 0) 70%); mix-blend-mode: screen; animation: bms-glow 7s ease-in-out infinite; }
.sec--dark::before { background: radial-gradient(60% 75% at 14% 40%, rgba(237, 26, 42, .30), rgba(237, 26, 42, 0) 70%); animation-delay: -3s; }
@keyframes bms-glow { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sec--hero::before, .sec--dark::before { animation: none; opacity: 0; } }

/* Vorteile-Raster auf beigem Grund: helle Kacheln weiß statt beige, damit sie sich abheben */
.sec--beige .bms-features { --feature-light: var(--white); }

/* Überschrift mit wechselndem Wort (Tipp-Effekt) */
.bms-rotating__prefix, .bms-rotating__line { display: block; }
.bms-rotating__line { min-height: 1.2em; }
.bms-rotating__word { display: inline-block; transition: opacity .6s ease, transform .6s ease; }
.bms-rotating__word.is-out { opacity: 0; transform: translateY(.18em); }
@media (max-width: 640px) { .bms-rotating__line { min-height: 2.4em; } }
