/* ==========================================================================
   Stütz · Metallbau- und Schließtechnik-Strang
   Die Seiten nutzen die Webflow-Komponenten aus stuetz-de.css (Bestand).
   Diese Datei ergänzt nur: Navigation ohne Webflow-JS, Fokus, Brotkrumen,
   FAQ, Tabelle, Bezirke, Fallkarten. Alle Regeln sind auf body.is-metallbau begrenzt.
   ========================================================================== */

.is-metallbau {
  --mb-blue: var(--blue-primary, #1a3580);
  --mb-text: var(--text, #232527);
  --mb-grey: var(--soft-grey, #f2f2f2);
  --mb-line: #d9dce3;
  --mb-muted: #5b616b;
  --mb-yellow: var(--yellow, #f7ec19);
  --mb-magenta: var(--megenta, #e20065);
}
.is-metallbau [id] { scroll-margin-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.is-metallbau) { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .is-metallbau .btn-std, .is-metallbau .help-card { transition: none !important; transform: none !important; } }
.is-metallbau main:focus { outline: none; }

/* ---------- Skip-Link & Fokus ---------- */
.mb-skip { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--mb-yellow); color: var(--mb-blue); padding: .75rem 1rem; font-weight: 700; text-decoration: none; }
.mb-skip:focus { top: 1rem; }
.is-metallbau a:focus-visible, .is-metallbau button:focus-visible, .is-metallbau summary:focus-visible, .is-metallbau [tabindex="0"]:focus-visible {
  outline: 3px solid var(--mb-magenta); outline-offset: 3px;
}

/* ---------- Navigation: native Buttons statt Webflow-Runtime ---------- */
.is-metallbau button.uui-navbar08_dropdown-toggle { background: none; border: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; display: flex; align-items: center; }
.is-metallbau .uui-navbar08_dropdown-toggle.mb-section-current { color: #1a3680; }
.is-metallbau .uui-navbar08_menu-button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: none; }
.is-metallbau .uui-navbar08_dropdown-toggle[aria-expanded="true"] .uui-dropdown-icon { transform: rotate(180deg); }
.is-metallbau .w-dropdown-list.w--open { display: block; }
.no-js .is-metallbau .uui-navbar08_menu-dropdown:hover .w-dropdown-list,
.no-js .is-metallbau .uui-navbar08_menu-dropdown:focus-within .w-dropdown-list { display: block; }
@media screen and (max-width: 991px) {
  .is-metallbau .w-nav-menu.is-open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; z-index: 1000; padding-bottom: 1rem; }
  .is-metallbau .w-nav-menu.is-open .w-dropdown-list { position: static; }
  html.mb-nav-open, html.mb-nav-open body { overflow: hidden; }
}

/* ---------- Titelbereich mit Brotkrumen ---------- */
.is-metallbau .mb-title .udesly-container { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
.mb-crumbs ol { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; color: #fff; }
.mb-crumbs li + li::before { content: "›"; margin-right: .5rem; opacity: .7; }
.mb-crumbs a { color: #fff; font-weight: 400; }
.mb-crumbs [aria-current="page"] { opacity: .85; }
@media screen and (max-width: 991px) {
  .is-metallbau .udesly-section.center-title-section.mb-title { height: auto; min-height: 520px; padding-top: 30px; }
  .is-metallbau .mb-title .center-title-grid { margin-top: 220px; }
}
@media screen and (max-width: 479px) {
  .is-metallbau .mb-title .center-title-text-wrapper { width: 100%; }
  .is-metallbau .mb-title .center-h1-subline { font-size: 1.15rem; }
  .is-metallbau .mb-title .headline.h1.center-title { font-size: 1.85rem; }
}

/* ---------- Karten im Bestandsraster ---------- */
.is-metallbau .mb-stretch { align-self: stretch; }
.is-metallbau .mb-span-all { grid-column: 1 / -1; }
.is-metallbau .mb-card-inner { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: .75rem; }
.is-metallbau .mb-card-text { margin-top: .25rem; line-height: 1.45; }
.is-metallbau .mb-card-link { margin-top: auto; }
.is-metallbau .help-card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.is-metallbau .mb-white { color: #fff; }
.is-metallbau .mb-team-text { margin: .5rem 0 1rem; font-size: 1.1rem; line-height: 1.45; max-width: 26rem; }
.is-metallbau .mb-para { margin-top: .75rem; line-height: 1.5; }
.is-metallbau .leistung-left-right-text-wrapper .leistung-bullet-list { margin-top: 1rem; }
.is-metallbau .paragraph a, .is-metallbau .leistung-checkbullet-text a, .is-metallbau .vorteil-row-text a, .is-metallbau .intro-text-center a, .is-metallbau .mb-case-dl a, .is-metallbau .mb-districts a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.is-metallbau .mb-editorial { flex-wrap: wrap; }

/* Fallkarten */
.mb-case-dl { margin: .75rem 0 0; display: grid; grid-template-columns: 1fr; gap: .15rem; line-height: 1.45; }
.mb-case-dl dt { font-weight: 700; color: var(--mb-blue); margin-top: .5rem; }
.mb-case-dl dd { margin: 0; }

/* CTA-Hinweis */
.is-metallbau .mb-cta-note { color: #fff; opacity: .85; font-size: .95rem; margin: .75rem 0 0; max-width: 34rem; }

/* ---------- Bezirke ---------- */
.mb-districts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mb-districts li { background: #fff; padding: 1.25rem 1.25rem 1.4rem; border-top: 4px solid var(--mb-blue); }
.mb-districts li.is-home { border-top-color: var(--mb-yellow); }
.mb-districts h3 { font-family: "Subset Sourcesans 3", Arial, sans-serif; color: var(--mb-blue); font-size: 1.3rem; margin: 0 0 .4rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mb-home-tag { background: var(--mb-yellow); color: var(--mb-blue); font-size: .75rem; text-transform: uppercase; padding: .15rem .45rem; font-weight: 700; }
.mb-district-parts { font-size: .92rem; color: var(--mb-muted); margin: 0 0 .6rem; line-height: 1.4; }
.mb-districts p { margin: 0; line-height: 1.45; }

/* ---------- Tabelle ---------- */
.mb-table-wrap { overflow-x: auto; max-width: 100%; }
.mb-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 1.05rem; line-height: 1.45; }
.mb-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mb-table th, .mb-table td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--mb-line); }
.mb-table thead th { background: var(--mb-blue); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; }
.mb-table tbody th { font-weight: 700; color: var(--mb-blue); width: 30%; }
.mb-table a { color: var(--mb-blue); }

/* ---------- FAQ ---------- */
.mb-faq { border-top: 1px solid var(--mb-line); max-width: 56rem; }
.mb-faq details { border-bottom: 1px solid var(--mb-line); }
.mb-faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.75rem 1.2rem 0; position: relative; font-family: "Subset Sourcesans 3", Arial, sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--mb-blue); line-height: 1.3; }
.mb-faq summary::-webkit-details-marker { display: none; }
.mb-faq summary::after { content: "+"; position: absolute; right: 0; top: .7rem; width: 2rem; height: 2rem; line-height: 2rem; text-align: center; background: var(--mb-yellow); color: var(--mb-blue); font-size: 1.4rem; font-weight: 700; }
.mb-faq details[open] summary::after { content: "–"; }
.mb-faq-answer { padding: 0 0 1.25rem; max-width: 46rem; line-height: 1.6; font-size: 1.1rem; }
.mb-faq-answer p { margin: 0 0 .75rem; }
.mb-faq-answer a { color: var(--mb-blue); text-decoration: underline; }

/* ---------- Ratgeber ---------- */
.is-metallbau .mb-stand { color: var(--mb-muted); font-size: .95rem; margin: .75rem 0 0; }
.is-metallbau .mb-richtext ul { padding-left: 1.25rem; }
.is-metallbau .mb-richtext li { margin-bottom: .4rem; line-height: 1.55; }
.is-metallbau .mb-template { background: var(--mb-grey); border-left: 6px solid var(--mb-yellow); padding: 1.25rem 1.5rem; line-height: 1.55; font-size: 1.05rem; }
.is-metallbau .mb-template p { margin: 0 0 .6rem; }

/* ---------- Responsiv ---------- */
@media screen and (max-width: 991px) {
  .mb-districts, .is-metallbau .help-card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .mb-districts, .is-metallbau .help-card-grid.four { grid-template-columns: 1fr; }
  .mb-table { font-size: .98rem; }
  .mb-table thead { display: none; }
  .mb-table, .mb-table tbody, .mb-table tr, .mb-table th, .mb-table td { display: block; width: auto; }
  .mb-table tr { border-bottom: 2px solid var(--mb-line); padding: .5rem 0; }
  .mb-table tbody th { border: 0; padding: .6rem 1rem 0; }
  .mb-table td { border: 0; padding: .35rem 1rem; }
  .mb-table td::before { content: attr(data-label); display: block; font-size: .78rem; text-transform: uppercase; font-weight: 700; color: var(--mb-muted); }
  .mb-faq summary { font-size: 1.1rem; }
}
@media print { .uui-navbar08_component, .spacer-nav, .flat-cta, footer, .mb-skip { display: none !important; } }

/* Illustrationen in „Passende Leistungen“: Bestand setzt keine Höhe – Attribute width/height dürfen nicht verzerren */
.is-metallbau .service-vert-icon-image { width: 100%; height: auto; }

@media screen and (max-width: 479px) {
  .is-metallbau .service-vert-icon-wrapper { width: 64px; min-width: 64px; }
  .is-metallbau .service-vert-row { gap: .75rem; }
  .is-metallbau .service-vert-left { gap: .75rem; min-width: 0; }
  .is-metallbau .service-vert-title { font-size: 1.05rem; overflow-wrap: anywhere; }
}
.is-metallbau .mb-richtext, .is-metallbau .mb-faq, .is-metallbau .mb-case-dl { overflow-wrap: break-word; hyphens: auto; }
.is-metallbau .headline, .is-metallbau .intro-text-center, .is-metallbau .paragraph, .is-metallbau .leistung-checkbullet-text { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Illustrationen (isometrisch, Stil der Stütz-Leistungsgrafiken) ---------- */
.mb-ill { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.mb-ill-figure { margin: 0; background: #fff; padding: 1.5rem; box-shadow: 4px 4px 0 0 var(--mb-yellow); }
.mb-bg-grey .mb-ill-figure, .bg-grey .mb-ill-figure { background: #fff; }
.mb-iso-svg { display: block; width: 100%; height: auto; }
.mb-iso-svg [data-part] { transition: opacity .2s ease; }
.mb-ill.has-active .mb-iso-svg [data-part]:not(.is-on):not(.mb-pin) { opacity: .2; }
.mb-pin { cursor: pointer; }
.mb-pin circle { fill: var(--mb-blue); stroke: #fff; stroke-width: 2.5; }
.mb-pin.is-on circle { fill: var(--mb-magenta); }
.mb-pin text, .mb-stage text { fill: #fff; font: 700 14px "Subset Sourcesans 3", Arial, sans-serif; text-anchor: middle; pointer-events: none; }
.mb-ill-hint { font-size: .9rem; color: var(--mb-muted); margin: 0 0 .75rem; }
.mb-ill-legend ol { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--mb-blue); }
.mb-ill-item { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--mb-line); padding: .9rem 0; cursor: pointer; font: inherit; color: var(--mb-text); }
.mb-ill-item:hover .mb-ill-no, .mb-ill-item[aria-pressed="true"] .mb-ill-no { background: var(--mb-magenta); }
.mb-ill-no { width: 2rem; height: 2rem; border-radius: 50%; background: var(--mb-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mb-ill-txt strong { display: block; color: var(--mb-blue); font-size: 1.1rem; margin-bottom: .2rem; }
.mb-ill-txt span { display: block; line-height: 1.45; }
.no-js .mb-ill-hint { display: none; }

/* Vignetten */
.mb-vig-img { background: #fff; padding: 1rem 1.25rem .5rem; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.mb-vig-img .mb-iso-svg { max-height: 100%; width: auto; max-width: 100%; }
.mb-vig .mb-vig-text { gap: .6rem; }
.bg-grey .mb-vig-img { background: #fff; }
.udesly-section:not(.bg-grey) .mb-vig-img { background: var(--mb-grey); }

/* Zugang für Zugang */
.mb-access .help-card-text-wrapper { border-top: 4px solid var(--mb-blue); }
.mb-access .leistung-bullet-list { gap: 6px; }
.mb-access .leistung-checkbullet-text { font-size: .98rem; line-height: 1.35; }

@media screen and (max-width: 991px) {
  .mb-ill { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media screen and (max-width: 767px) {
  .mb-ill-figure { padding: .75rem; }
}
.is-metallbau .mb-vig .mb-vig-text { justify-content: flex-start; }
.is-metallbau .mb-vig .mb-vig-text .paragraph { flex: 0 1 auto; }
.is-metallbau .mb-vig .mb-card-link { margin-top: auto; }
.udesly-section:not(.bg-grey) .mb-vig-img { background: #fff; border: 1px solid var(--mb-line); border-bottom: 0; }

/* ---- rc5: Grafiken kompakter ---- */
.mb-ill { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 3rem; }
.mb-ill-figure { padding: 1rem; max-width: 420px; }
.mb-ill-item { padding: .7rem 0; }
.mb-ill-txt strong { font-size: 1.02rem; }
.mb-ill-txt span { font-size: .95rem; }
.mb-vig-img { aspect-ratio: auto; height: 132px; padding: .75rem 1rem .25rem; }
.mb-vig-img .mb-iso-svg { height: 100%; width: auto; max-height: 112px; }
@media screen and (max-width: 991px) {
  .mb-ill { grid-template-columns: 1fr; }
  .mb-ill-figure { max-width: 360px; width: 100%; margin: 0 auto; }
}
@media screen and (max-width: 479px) {
  .mb-ill-figure { max-width: 300px; }
  .mb-vig-img { height: 110px; }
}
.is-metallbau .mb-inline-btn { display: inline-flex; align-self: flex-start; width: auto; }

/* ---- rc5: Bezirke und Stadtteile ---- */
.mb-bezirk { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.mb-bezirk-main { display: flex; flex-direction: column; gap: 1rem; }
.mb-bezirk-text { font-size: 1.125rem; line-height: 1.5; }
.mb-bezirk-sub { font-family: inherit; color: var(--mb-blue); font-size: 1.1rem; font-weight: 700; margin: .5rem 0 .25rem; }
.mb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mb-chips li { background: #fff; border: 1px solid var(--mb-line); padding: .3rem .65rem; font-size: .92rem; line-height: 1.3; }
.bg-grey .mb-chips li { background: #fff; }
.udesly-section:not(.bg-grey) .mb-chips li { background: var(--mb-grey); border-color: transparent; }
.mb-bezirk-box { background: #fff; border-top: 4px solid var(--mb-blue); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 4px 4px 0 0 var(--mb-yellow); }
.udesly-section:not(.bg-grey) .mb-bezirk-box { background: var(--mb-grey); }
.mb-bezirk-links { display: flex; flex-direction: column; gap: .5rem; }
.mb-bezirk-box .btn-std { align-self: flex-start; font-size: 1rem; }
.mb-idx-label { display: block; font-weight: 700; color: var(--mb-blue); margin-bottom: .4rem; font-size: 1.05rem; }
.mb-idx-input { width: 100%; max-width: 480px; border: 2px solid var(--mb-blue); padding: .7rem .9rem; font: inherit; font-size: 1.05rem; background: #fff; }
.mb-idx-input:focus { outline: 3px solid var(--mb-magenta); outline-offset: 2px; }
.mb-idx-hint { color: var(--mb-muted); font-size: .92rem; margin: .5rem 0 1.25rem; }
.mb-idx-groups { columns: 4 200px; column-gap: 2rem; }
.mb-idx-group { break-inside: avoid; margin-bottom: 1rem; }
.mb-idx-letter { font-family: inherit; font-size: 1rem; font-weight: 900; color: var(--mb-magenta); margin: 0 0 .25rem; border-bottom: 1px solid var(--mb-line); }
.mb-idx-group ul { list-style: none; margin: 0; padding: 0; }
.mb-idx-group li a { display: block; padding: .2rem 0; color: var(--mb-text); text-decoration: none; font-weight: 500; line-height: 1.3; }
.mb-idx-group li a span { color: var(--mb-muted); font-weight: 400; font-size: .85rem; }
.mb-idx-group li a:hover, .mb-idx-group li a:focus { color: var(--mb-blue); text-decoration: underline; }
.mb-idx-group[hidden], .mb-idx-group li[hidden] { display: none; }
.mb-note { color: var(--mb-muted); font-size: .92rem; margin-top: 1rem; }
:target > .udesly-container { scroll-margin-top: 110px; }
.is-metallbau [id^="bezirk-"] { scroll-margin-top: 100px; }
@media screen and (max-width: 991px) {
  .mb-bezirk { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media screen and (max-width: 479px) {
  .mb-idx-groups { columns: 2 130px; column-gap: 1rem; }
  .mb-bezirk-box { padding: 1rem; }
}
/* ---- rc8: Check-Angebot ---- */
.mb-check { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media screen and (max-width: 991px) { .mb-check { grid-template-columns: 1fr; gap: 1.5rem; } }
.mb-rg-figure { max-width: 340px; margin: 0 auto; text-align: center; }
.mb-rg-figure .mb-iso-svg { background: #fff; }

/* ---- rc10: Stadtteil-Profile und Gebäudetypen ---- */
.mb-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mb-bt { width: 64px; height: 64px; display: block; }
.mb-bt-lg { width: 100%; height: 116px; }
.mb-bt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb-bt-cards .mb-case-dl { margin: .25rem 0 0; }
.mb-lage { background: #fff; padding: .5rem; border: 1px solid var(--mb-line); }
.mb-lage .mb-iso-svg { max-height: 150px; width: 100%; }
.mb-st-head { margin-top: 2.5rem !important; font-size: 1.35rem !important; }
.mb-st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 1rem; }
.mb-st-group { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; background: #fff; border-top: 3px solid var(--mb-blue); padding: 1.1rem 1.1rem 1.25rem; }
.udesly-section:not(.bg-grey) .mb-st-group { background: var(--mb-grey); }
.mb-st-fig { display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.mb-st-fig .mb-bt { width: 78px; height: 78px; }
.mb-st-fig .mb-bt + .mb-bt { width: 54px; height: 54px; opacity: .85; }
.mb-st-title { color: var(--mb-blue); font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; line-height: 1.25; }
.mb-st-names { font-weight: 600; margin: 0 0 .45rem; line-height: 1.45; }
.mb-st-names span { scroll-margin-top: 170px; }
.mb-st-names span:target { background: var(--mb-yellow); outline: 3px solid var(--mb-yellow); }
.mb-st-text { margin: 0 0 .6rem; line-height: 1.5; }
.mb-st-tasks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.mb-st-tasks li { font-size: .85rem; background: var(--mb-grey); border: 1px solid var(--mb-line); padding: .2rem .55rem; }
.udesly-section:not(.bg-grey) .mb-st-tasks li { background: #fff; }
@media screen and (max-width: 991px) {
  .mb-st-grid, .mb-bt-cards { grid-template-columns: 1fr; }
}
@media screen and (max-width: 479px) {
  .mb-st-group { grid-template-columns: 56px minmax(0, 1fr); padding: .9rem; }
  .mb-st-fig .mb-bt { width: 56px; height: 56px; }
  .mb-st-fig .mb-bt + .mb-bt { display: none; }
}
.mb-bt-cards .mb-vig-text { justify-content: flex-start; gap: .5rem; }
.mb-bt-cards .headline.h3 { flex: 0 0 auto; }
/* ---- rc11: Zielgruppen ---- */
.mb-three .compact-video-textbox.relative.two-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media screen and (max-width: 991px) { .mb-three .compact-video-textbox.relative.two-grid { grid-template-columns: 1fr; } }
.mb-steps-list { margin: 0; padding-left: 1.4rem; display: grid; gap: .6rem; max-width: 760px; }
.mb-steps-list li { line-height: 1.5; padding-left: .25rem; }
.mb-branchen .mb-card-inner { gap: .75rem; }
.is-metallbau .mb-vig .headline.h3, .is-metallbau .mb-branchen .headline.h3 { flex: 0 1 auto; min-width: 0; }

}

/* ---- rc13: Leistungen im Detail, kundenorientiert ---- */
.mb-lv { border-top: 3px solid var(--mb-blue); }
.mb-lv-title { border-bottom: 1px solid var(--mb-line); background: #fff; }
.mb-lv-title summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; }
.mb-lv-title summary::-webkit-details-marker { display: none; }
.mb-lv-sum { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mb-lv-name { font-family: "Subset Sourcesans 3", Arial, sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--mb-blue); }
.mb-lv-lead { font-size: .98rem; line-height: 1.4; color: var(--mb-text); }
.mb-lv-count { font-size: .85rem; white-space: nowrap; color: var(--mb-muted); }
.mb-lv-title[open] summary { background: var(--mb-blue); }
.mb-lv-title[open] .mb-lv-name, .mb-lv-title[open] .mb-lv-lead, .mb-lv-title[open] .mb-lv-count { color: #fff; }
.mb-lv-list { list-style: none; margin: 0; padding: .25rem 1.25rem 0; }
.mb-lv-list > li.mb-lv-item { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--mb-line); scroll-margin-top: 170px; }
.mb-lv-list > li.mb-lv-item:last-child { border-bottom: 0; }
.mb-lv-item[hidden] { display: none; }
.mb-lv-item:target { background: #fffbd1; box-shadow: 0 0 0 .75rem #fffbd1; }
.mb-lv-ptitle { margin: 0; font-family: "Subset Sourcesans 3", Arial, sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--mb-blue); line-height: 1.25; }
.mb-lv-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .55rem 0 0; padding: 0; }
.mb-lv-tags li { font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border: 1px solid var(--mb-blue); color: var(--mb-blue); background: #fff; }
.mb-lv-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mb-magenta); margin-bottom: .3rem; }
.mb-lv-sit { margin: .9rem 0 0; font-size: 1.08rem; line-height: 1.5; max-width: 52rem; }
.mb-lv-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem 2rem; margin-top: 1rem; }
.mb-lv-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.mb-lv-steps ol li { counter-increment: s; position: relative; padding: 0 0 .55rem 2.1rem; line-height: 1.5; }
.mb-lv-steps ol li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.45rem; height: 1.45rem; display: grid; place-items: center; background: var(--mb-blue); color: #fff; font-size: .8rem; font-weight: 700; }
.mb-lv-side { display: flex; flex-direction: column; gap: .75rem; }
.mb-lv-res { margin: 0; padding: .75rem .9rem; background: #fffbd1; border-left: 4px solid var(--mb-yellow); line-height: 1.5; font-weight: 600; }
.mb-lv-res .mb-lv-label { color: var(--mb-blue); }
.mb-lv-hint { margin: 0; padding: .75rem .9rem; background: var(--mb-grey); border-left: 4px solid var(--mb-blue); font-size: .95rem; line-height: 1.5; }
.bg-grey .mb-lv-hint { background: #fff; }
.mb-lv-hint .mb-lv-label { color: var(--mb-blue); }
.mb-lv-ask { align-self: flex-start; font-weight: 700; color: var(--mb-blue); text-decoration: underline; text-underline-offset: 3px; }
.mb-lv-ask::after { content: " →"; }
.mb-lv-link { padding: 1rem 1.25rem 1.25rem; }
.mb-lv-note { color: var(--mb-muted); font-size: .95rem; margin: 1rem 0 0; max-width: 46rem; }
.mb-lv-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }
.mb-lv-filter[hidden] { display: none; }
.mb-lv-filter-label { font-weight: 700; color: var(--mb-blue); }
.mb-lv-filter [role="group"] { display: flex; flex-wrap: wrap; gap: .5rem; }
.mb-lv-filter button { font: inherit; font-size: .95rem; padding: .45rem .9rem; border: 2px solid var(--mb-blue); background: #fff; color: var(--mb-blue); cursor: pointer; }
.mb-lv-filter button[aria-pressed="true"] { background: var(--mb-blue); color: #fff; }
@media screen and (max-width: 767px) {
  .mb-lv-title summary { grid-template-columns: 1fr; gap: .35rem; padding: 1rem; }
  .mb-lv-list { padding: .25rem 1rem 0; }
  .mb-lv-cols { grid-template-columns: 1fr; }
  .mb-lv-ptitle { font-size: 1.18rem; }
}

/* rc13: Kurz erklärt */
.mb-gl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.mb-gl-item { padding: .85rem 0; border-top: 1px solid var(--mb-line); }
.mb-gl dt { font-weight: 700; color: var(--mb-blue); margin: 0 0 .2rem; }
.mb-gl dd { margin: 0; line-height: 1.5; }
@media screen and (max-width: 767px) { .mb-gl { grid-template-columns: 1fr; } }

/* rc15 */
.mb-st-label { font-weight: 700; color: var(--mb-blue); }
p.mb-st-label { margin: .6rem 0 .2rem; font-size: .92rem; }

/* rc16: Vorlagen */
.mb-dl-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.mb-dl-card { border-top: 4px solid var(--mb-blue); background: var(--mb-grey); padding: 1.25rem 1.4rem 1.4rem; }
.mb-dl-card .headline.h3 { margin: 0 0 .5rem; color: var(--mb-blue); }
.mb-dl-card p { margin: 0 0 .6rem; line-height: 1.5; }
.mb-dl-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.mb-dl-fmt { font-weight: 400; opacity: .85; }

/* ---- rc17: Leistungen im Detail – offen und grafisch ---- */
.mb-lv { border-top: 0; }
.lv-nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.lv-nav li[hidden] { display: none; }
.lv-nav a { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; align-items: center; padding: .85rem 1rem; background: #fff; border: 1px solid var(--mb-line); border-top: 4px solid var(--mb-blue); text-decoration: none; color: var(--mb-blue); height: 100%; transition: box-shadow .15s, transform .15s; }
.lv-nav a:hover, .lv-nav a:focus-visible { box-shadow: 0 6px 18px rgba(26,53,128,.15); transform: translateY(-2px); }
.lv-nav-ic { grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--mb-yellow); display: grid; place-items: center; }
.lv-nav-ic svg { width: 1.4rem; height: 1.4rem; color: var(--mb-blue); }
.lv-nav-t { font-weight: 700; line-height: 1.2; }
.lv-nav-n { font-size: .82rem; color: var(--mb-muted); }
.mb-lv-area { margin-top: 2.5rem; scroll-margin-top: 150px; }
.mb-lv-area[hidden] { display: none; }
.lv-area-head { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; align-items: center; background: var(--mb-blue); color: #fff; padding: 1rem 1.5rem; margin-bottom: 1rem; }
.lv-area-vig { background: #fff; padding: .4rem; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.lv-area-vig svg { width: 100%; height: 100%; display: block; }
.lv-area-title { font-family: "Subset Sourcesans 3", Arial, sans-serif; font-size: 1.6rem; line-height: 1.15; margin: 0 0 .3rem; color: #fff; }
.lv-area-txt p { margin: 0; line-height: 1.45; }
.lv-area-meta { margin-top: .5rem !important; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.lv-area-meta .mb-lv-count { color: var(--mb-yellow); font-weight: 700; }
.lv-area-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lvc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.lvc-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.lvc { background: #fff; border: 1px solid var(--mb-line); border-left: 5px solid var(--mb-yellow); padding: 1.15rem 1.35rem 1.25rem; scroll-margin-top: 150px; display: flex; flex-direction: column; gap: .75rem; }
.lvc[hidden] { display: none; }
.lvc:target { box-shadow: 0 0 0 3px var(--mb-magenta); }
.bg-grey .lvc { background: #fff; }
.lvc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; justify-content: space-between; }
.lvc-title { margin: 0; font-family: "Subset Sourcesans 3", Arial, sans-serif; font-size: 1.25rem; line-height: 1.25; color: var(--mb-blue); font-weight: 700; }
.lvc-compact .lvc-title { font-size: 1.12rem; }
.lvc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.lvc-tags li { font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #e8ecf6; color: var(--mb-blue); }
.lvc-tags li.mb-zg-p { background: #fff6b3; }
.lvc-tags li.mb-zg-g { background: #fde3ee; color: #9a0045; }
.lvc-ic { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; margin-top: .1rem; }
.lvc-sit, .lvc-res, .lvc-gut { display: flex; gap: .6rem; margin: 0; line-height: 1.5; }
.lvc-sit { font-size: 1.04rem; }
.lvc-sit .lvc-ic { color: var(--mb-magenta); }
.lvc-lbl { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mb-magenta); }
.lvc-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; counter-reset: none; }
.lvc-flow li { position: relative; padding-top: 2.6rem; line-height: 1.45; font-size: .95rem; }
.lvc-flow li::after { content: ""; position: absolute; top: 1rem; left: 2.4rem; right: -1rem; border-top: 2px dashed #9fb0d6; }
.lvc-flow li:last-child::after { display: none; }
.lvc-no { position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mb-blue); color: #fff; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.lvc-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: stretch; margin-top: .25rem; }
.lvc-res { background: #fffbd1; padding: .7rem .85rem; font-weight: 600; }
.lvc-res .lvc-ic { color: #1f7a3a; }
.lvc-gut { background: var(--mb-grey); padding: .7rem .85rem; font-size: .93rem; }
.lvc-gut .lvc-ic { color: var(--mb-blue); }
.lvc-ask { align-self: center; justify-self: start; background: var(--mb-yellow); color: var(--mb-blue); font-weight: 700; padding: .65rem 1rem; text-decoration: none; white-space: nowrap; }
.lvc-ask:hover, .lvc-ask:focus-visible { background: var(--mb-blue); color: #fff; }
.lvc-compact .lvc-res { margin-top: auto; }
.lvc-more { font-weight: 700; color: var(--mb-blue); text-decoration: underline; text-underline-offset: 3px; }
@media screen and (max-width: 991px) {
  .lv-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvc-foot { grid-template-columns: 1fr 1fr; }
  .lvc-ask { grid-column: 1 / -1; }
}
@media screen and (max-width: 767px) {
  .lv-nav ul { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .lv-nav a { grid-template-columns: 2.2rem minmax(0, 1fr); padding: .6rem .7rem; column-gap: .5rem; }
  .lv-nav-ic { width: 2.2rem; height: 2.2rem; }
  .lv-nav-t { font-size: .92rem; }
  .lv-area-head { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .9rem; padding: .85rem 1rem; }
  .lv-area-title { font-size: 1.3rem; }
  .lv-area-txt > p:not(.lv-area-meta) { font-size: .92rem; }
  .lvc { padding: 1rem; }
  .lvc-flow { grid-template-columns: 1fr; gap: .9rem; }
  .lvc-flow li { padding: .2rem 0 0 2.8rem; min-height: 2rem; }
  .lvc-flow li::after { top: 2.2rem; bottom: -1rem; left: 1rem; right: auto; border-top: 0; border-left: 2px dashed #9fb0d6; }
  .lvc-foot { grid-template-columns: 1fr; }
  .lvc-ask { justify-self: stretch; text-align: center; white-space: normal; }
}
.lv-nav a, .lv-nav-t { min-width: 0; }
.lv-nav-t { hyphens: auto; overflow-wrap: break-word; }
@media screen and (max-width: 420px) { .lv-nav ul { grid-template-columns: 1fr; } }

/* rc18: einheitlicher Abstand für Sprungziele unter dem festen Header */
.is-metallbau main [id] { scroll-margin-top: 130px; }

/* rc18: Messgrafik */
.mb-mess-fig { margin: 0; }
.mb-mess { width: 100%; height: auto; display: block; border: 1px solid var(--mb-line); background: #fff; }
.mb-rg-figure.mb-mess-fig { max-width: 760px; }
.mb-mess-fig figcaption { margin-top: .5rem; }

/* rc20: Anfrage-Assistent */
.mb-ask { background: #fff; border-top: 4px solid var(--mb-blue); padding: 1.5rem; display: grid; gap: 1.25rem; max-width: 64rem; }
.mb-ask fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mb-ask legend, .mb-ask label[for] { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--mb-blue); margin-bottom: .6rem; padding: 0; font-size: 1.05rem; }
.mb-ask-no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--mb-yellow); color: var(--mb-blue); font-size: .9rem; flex: 0 0 1.8rem; }
.mb-ask-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mb-ask-chip { position: relative; cursor: pointer; }
.mb-ask-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mb-ask-chip span { display: inline-block; padding: .5rem .85rem; border: 2px solid var(--mb-blue); color: var(--mb-blue); background: #fff; font-size: .95rem; line-height: 1.25; }
.mb-ask-chip input:checked + span { background: var(--mb-blue); color: #fff; }
.mb-ask-chip input:focus-visible + span { outline: 3px solid var(--mb-magenta); outline-offset: 2px; }
.mb-ask-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem; }
.mb-ask input[type=text], .mb-ask textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 2px solid var(--mb-line); background: #fff; color: var(--mb-text); }
.mb-ask input[type=text]:focus, .mb-ask textarea:focus { border-color: var(--mb-blue); outline: none; }
.mb-ask-opt { font-weight: 400; color: var(--mb-muted); }
.mb-ask-hint, .mb-ask-privacy { font-size: .88rem; color: var(--mb-muted); margin: .4rem 0 0; }
.mb-ask-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mb-ask-send { border: 0; cursor: pointer; font: inherit; font-weight: 700; text-transform: uppercase; }
.mb-ask-status:empty { display: none; }
.mb-ask-status { margin: 0; font-weight: 600; }
@media screen and (max-width: 767px) { .mb-ask { padding: 1rem; } .mb-ask-row { grid-template-columns: 1fr; } .mb-ask-actions > * { flex: 1 1 100%; text-align: center; } }

/* rc21: Bezirksseiten */
.mb-bz-nav-h { font-weight: 700; color: var(--mb-blue); margin: 0 0 .6rem; }
.mb-bz-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; }
.mb-bz-nav a { display: flex; flex-direction: column; padding: .6rem .8rem; border: 2px solid var(--mb-blue); background: #fff; text-decoration: none; color: var(--mb-blue); height: 100%; }
.mb-bz-nav a:hover, .mb-bz-nav a:focus-visible { background: var(--mb-blue); color: #fff; }
.mb-bz-nav a[aria-current] { background: var(--mb-yellow); border-color: var(--mb-yellow); }
.mb-bz-n { font-weight: 700; }
.mb-bz-c { font-size: .82rem; opacity: .85; }
.mb-bz-teile a { color: var(--mb-blue); }
.mb-bezirk-main .btn-std { margin-top: 1rem; }

/* rc21: Ratgeber-Übersicht, Kontextlinks */
.mb-rgf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .6rem; }
.mb-rgf a { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem; background: #fff; border-left: 6px solid var(--mb-yellow); text-decoration: none; color: inherit; box-shadow: 0 1px 0 rgba(0,0,0,.08); height: 100%; }
.mb-rgf a:hover, .mb-rgf a:focus-visible { background: var(--mb-blue); color: #fff; }
.mb-rgf-to { font-weight: 700; color: var(--mb-blue); display: flex; align-items: center; gap: .35rem; font-size: .92rem; }
.mb-rgf a:hover .mb-rgf-to, .mb-rgf a:focus-visible .mb-rgf-to { color: var(--mb-yellow); }
.mb-rg-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mb-rg-jump a { display: inline-block; padding: .45rem .8rem; border: 2px solid var(--mb-blue); color: var(--mb-blue); text-decoration: none; font-weight: 700; }
.mb-rg-jump a span { font-weight: 400; opacity: .8; }
.mb-rg-jump a:hover, .mb-rg-jump a:focus-visible { background: var(--mb-blue); color: #fff; }
.mb-rg-lead { max-width: 46rem; margin: .6rem auto 0; text-align: center; }
.mb-rg-all { justify-content: center; }
.mb-autolink { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.mb-bzl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.mb-bzl { background: #fff; border-top: 6px solid var(--mb-yellow); padding: 1rem 1.1rem 1.2rem; box-shadow: 0 1px 0 rgba(0,0,0,.08); min-width: 0; }
.mb-bzl-h { font-size: 1.15rem; margin: 0 0 .4rem; hyphens: auto; }
.mb-bzl-h a { color: var(--mb-blue); text-decoration: none; }
.mb-bzl-h a:hover { text-decoration: underline; }
.mb-bzl p { margin: 0 0 .6rem; font-size: .95rem; }
.mb-bzl ul { margin: 0; padding-left: 1.1rem; }
.mb-bzl li { margin: .2rem 0; }
.mb-bzl li a { color: var(--mb-blue); }
