/* Metzingen-BEST – Gestaltung nach Theme-Entwurf v2 (E-M-012). Mobil zuerst. */

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

:root {
	--red: #cc0000;
	--red-text: #b00000;
	--red-dark: #7d0a18;
	--red-soft: #fbe9e9;
	--petrol: #394545;
	--petrol-soft: #e7ecec;
	--ink: #111111;
	--text: #1f2424;
	--muted: #5c6363;
	--ground: #f4f4f2;
	--card: #ffffff;
	--line: #e3e3df;
	--line-soft: #efefec;
	--green: #2e7d5b;
	--radius: 16px;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.6 Inter, Arial, sans-serif; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--red-text); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.25rem; font-weight: 700; }
.mbt-h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mbt-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.mbt-skip:focus { left: 8px; }

.mbt-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.mbt-stack { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.mbt-section { display: flex; flex-direction: column; gap: 12px; }
.mbt-layout { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; padding-bottom: 40px; align-items: flex-start; }
.mbt-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mbt-side { flex: 1 1 320px; min-width: 0; }
.mbt-icon.is-red { color: var(--red); }
.mbt-icon.is-green { color: var(--green); }

/* Kopf */
.mbt-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.mbt-header__inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mbt-logo img { display: block; height: 22px; width: auto; }
.mbt-nav__search { display: flex; gap: 8px; margin-top: 8px; }
.mbt-nav__search input { flex: 1; height: 44px; border: 1px solid #9aa1a1; border-radius: 10px; padding: 0 12px; font: inherit; }
.mbt-nav__search button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) {
	.mbt-header__inner { min-height: 72px; }
	.mbt-logo img { height: 26px; }
	.mbt-nav__search { margin: 0; }
	.mbt-nav__search input { width: 200px; }
}

/* Hero */
.mbt-hero { background: var(--petrol); color: #fff; padding: 14px 0 24px; }
.mbt-hero .mbt-wrap { display: flex; flex-direction: column; gap: 14px; }
.mbt-hero__title { color: #fff; font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.mbt-hero__title.is-large { font-size: 2rem; }
.mbt-hero__lead { color: #dfe6e6; font-size: 1.05rem; margin: 0; }
.mbt-kicker { margin: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #c9d3d3; }
.mbt-crumbs { font-size: 13px; color: #c9d3d3; }
.mbt-crumbs a { color: #dfe6e6; }
.mbt-crumbs .separator { margin: 0 4px; }
.mbt-hero__store { display: flex; gap: 14px; align-items: center; }
.mbt-hero__store > div { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) {
	.mbt-hero { padding: 24px 0 40px; }
	.mbt-hero__title { font-size: 2.25rem; }
	.mbt-hero__title.is-large { font-size: 2.75rem; }
}

/* Monogramm */
.mbt-mono { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--petrol); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.mbt-mono.is-xl { width: 76px; height: 76px; border-radius: 18px; background: #fff; color: var(--petrol); font-size: 28px; box-shadow: inset 0 -6px 0 var(--red); }
.mbt-mono.is-icon { background: var(--petrol-soft); color: var(--petrol); }

/* Pills und Chips */
.mbt-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.mbt-pill.is-active, .mbt-pill:hover { background: #fff; color: var(--petrol); }
.mbt-pill--light { align-self: flex-start; min-height: 32px; background: #fff; color: var(--petrol); border: 0; font-size: 13px; }
.mbt-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.mbt-pills.is-light .mbt-pill { color: var(--text); border-color: #c9cdcd; background: #fff; }
.mbt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mbt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; background: #fff; border: 1px solid #c9cdcd; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }

/* Schnellinfos im Store-Kopf */
.mbt-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.mbt-quick__item { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; }

/* Entfernung (Umkreis) */
.mbt-distance { background: #fff; color: var(--text); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.mbt-distance__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.mbt-distance__top > div { display: flex; flex-direction: column; }
.mbt-distance__label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.mbt-distance__km { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mbt-distance__min { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--petrol); }
.mbt-radius { display: flex; gap: 6px; }
.mbt-radius span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.mbt-radius span.is-on { background: var(--red); }
.mbt-radius__legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* Karten und Fakten */
.mbt-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mbt-facts dl { margin: 0; }
.mbt-fact { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.mbt-fact__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.mbt-fact dt { font-size: 12px; color: var(--muted); }
.mbt-fact dd { margin: 0; font-size: 15px; font-weight: 600; }
.mbt-hours__d { display: inline-block; width: 2em; color: var(--muted); font-weight: 600; }
.mbt-facts__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 14px 16px; }
.mbt-facts__checked { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 16px 14px; font-size: 13px; color: var(--muted); }

.mbt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid #c9cdcd; background: #fff; color: var(--text); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.mbt-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.mbt-btn--red:hover { background: #a80000; color: #fff; }

.mbt-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: #fff4e5; border: 1px solid #f0c27a; color: #5a3b00; }
.mbt-banner p { margin: 0; }

.mbt-figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.mbt-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.mbt-lead { font-size: 1.05rem; margin: 0; }
.mbt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.mbt-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; }
.mbt-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Fließtext */
.mbt-prose { max-width: 72ch; }
.mbt-prose h2 { margin-top: 1.4em; }
.mbt-prose ul { padding-left: 1.2em; }

/* Tabellen (Fließtext und Fußweg-Tabelle) */
.mbt-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mbt-prose table, .mbt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mbt-prose table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mbt-prose tr:last-child td { border-bottom: 0; }
.mbt-tablewrap > table { border: 0 !important; border-radius: 0 !important; margin: 0; }
.mbt-prose .mbt-tablewrap table { min-width: 100%; }
@media (max-width: 600px) { .mbt-tablewrap td, .mbt-tablewrap th { min-width: 7em; } }
.mbt-prose th, .mbt-prose td, .mbt-table th, .mbt-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.mbt-prose thead th, .mbt-table thead th { background: var(--petrol-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.mbt-table td.is-num, .mbt-table th.is-num { text-align: right; white-space: nowrap; }
.mbt-table td.is-good { color: var(--green); font-weight: 600; }
.mbt-table caption { caption-side: bottom; text-align: left; padding: 8px 10px; font-size: 12px; color: var(--muted); }

/* Lageplan / Umkreiskarte */
.mbt-mapcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px 6px; }
.mbt-mapcard__head h2 { font-size: 1.05rem; margin: 0; }
.mbt-mapcard__head span { font-size: 12px; color: var(--muted); }
.mbt-mapcard .mb-map { display: block; width: 100%; height: auto; font-family: Inter, Arial, sans-serif; }
.mbt-mapcard__foot { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-weight: 700; color: var(--petrol); }
.mbt-mapcard.is-wide { max-width: 640px; }
.mb-map a:hover circle { fill: var(--red); }

/* Listen */
.mbt-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mbt-list li + li { border-top: 1px solid var(--line-soft); }
.mbt-list li[hidden] { display: none; }
.mbt-row { min-height: 68px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
a.mbt-row:hover .mbt-row__title { color: var(--red-text); }
.mbt-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mbt-row__title { font-weight: 600; font-size: 15px; }
.mbt-row__sub { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.mbt-row__chev { color: var(--red-text); }
.mbt-row__km { font-weight: 800; font-size: 14px; white-space: nowrap; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.mbt-bar { height: 6px; border-radius: 3px; background: var(--line-soft); display: flex; max-width: 240px; }
.mbt-bar span { border-radius: 3px; background: var(--red); }
.mbt-letter { display: flex; flex-direction: column; gap: 8px; }
.mbt-letter[hidden] { display: none; }
.mbt-letter__h { font-size: 1.4rem; font-weight: 800; color: var(--red-text); margin: 0; }
.mbt-letters { display: flex; gap: 4px; overflow-x: auto; padding: 2px 0; }
.mbt-letters a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.mbt-letters a:hover { background: var(--red); color: #fff; }
.mbt-empty { color: var(--muted); }

/* Kacheln */
.mbt-tiles { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mbt-tile { flex: 0 0 150px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.mbt-tile__title { font-weight: 700; font-size: 14px; }
.mbt-tile__sub { font-size: 12px; color: var(--muted); }

.mbt-wg { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.mbt-wg.is-scroll { display: flex; overflow-x: auto; padding-bottom: 4px; }
.mbt-wg.is-scroll .mbt-wg__item { flex: 0 0 96px; }
.mbt-wg__item { min-height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.mbt-wg__item:hover { border-color: var(--red); }

.mbt-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mbt-entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.mbt-entry strong { font-size: 1.1rem; color: var(--ink); }
.mbt-entry span:last-child { font-size: 15px; color: #4a5151; }
.mbt-entry__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.mbt-entry__icon.is-solid { background: var(--red); color: #fff; }

.mbt-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mbt-plan__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.mbt-plan__item strong { color: var(--ink); }
.mbt-plan__item span:last-child { font-size: 14px; color: #4a5151; }
.mbt-plan__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--petrol-soft); color: var(--petrol); display: flex; align-items: center; justify-content: center; }

.mbt-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mbt-area { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.mbt-area span:last-child { font-size: 14px; color: var(--muted); }
.mbt-area__icon { color: var(--red); }

/* Startseite */
.mbt-home { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 32px !important; align-items: center; }
.mbt-home__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mbt-home__map { flex: 1 1 380px; min-width: 0; color: var(--text); }
.mbt-search { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.mbt-search label { font-weight: 600; font-size: 15px; }
.mbt-search__row { display: flex; gap: 8px; flex-wrap: wrap; }
.mbt-search input { flex: 1 1 240px; height: 52px; border: 0; border-radius: 12px; padding: 0 16px; font: inherit; color: var(--text); }
.mbt-stats { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.mbt-stats div { display: flex; flex-direction: column; }
.mbt-stats strong { font-size: 1.75rem; font-weight: 800; }
.mbt-stats span { font-size: 14px; color: #c9d3d3; }
.mbt-stats.is-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.mbt-stats.is-compact div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px; }
.mbt-stats.is-compact strong { font-size: 1.4rem; }

/* Anzeigen: nur nach dem Hauptinhalt (E-M-008) */
.mbt-ad { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.mbt-ad__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Fuß */
.mbt-footer { background: var(--petrol); color: #e9eded; }
.mbt-footer__inner { padding: 28px 16px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.mbt-footer__brand { max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.mbt-footer__brand img { height: 20px; width: auto; align-self: flex-start; }
.mbt-footer__brand p { margin: 0; font-size: 13px; color: #c4cccc; }
.mbt-footer__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 4px 24px; }
.mbt-footer__list a { color: #fff; display: flex; align-items: center; min-height: 36px; font-size: 14px; }
.mbt-stack .mbt-search input, .mbt-search.is-inline input { border: 1px solid #9aa1a1; }
.mbt-hero .mbt-search.is-inline input { border: 0; }

/* In der Nähe (Store-Seite) */
.mbt-nearby { padding: 16px; margin-top: 16px; }
.mbt-nearby h2 { font-size: 18px; margin: 0 0 8px; }
.mbt-nearby h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 12px 0 4px; color: var(--muted); }
.mbt-nearby ul { list-style: none; margin: 0; padding: 0; }
.mbt-nearby li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.mbt-nearby li span { color: var(--muted); white-space: nowrap; }
.mbt-nearby__note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* Navigation: Beschriftung am Menüsymbol, Schnellzugriff */
.mbt-quicknav { border-top: 1px solid var(--line-soft); background: #fff; }
.mbt-quicknav ul { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: var(--wrap, 1180px); }
.mbt-quicknav ul::-webkit-scrollbar { display: none; }
.mbt-quicknav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; white-space: nowrap; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.mbt-quicknav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }
@media (min-width: 900px) { .mbt-quicknav { display: none; } .mbt-nav__label { display: none; } }
/* Externer Link am Seitenende */
.mbt-weblink { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.mbt-weblink a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); }
.mbt-weblink a:hover { color: var(--red); border-color: var(--red); }
@media (min-width: 900px) { .mbt-nav__list a { padding: 0 8px; font-size: 14px; } }
@media (min-width: 900px) and (max-width: 1279px) { .mbt-nav__search { display: none; } }

/* Markenlogos statt Initialen */
.mbt-mono.has-logo { background: #fff; border: 1px solid var(--line); padding: 5px; width: 64px; }
.mbt-mono.has-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mbt-mono.has-logo.is-xl { width: 128px; padding: 10px 12px 14px; }
.mbt-tile .mbt-mono.has-logo { width: 88px; height: 48px; }

/* ---------- Mitlaufender Kopf mit Hauptmenü ---------- */
html { scroll-padding-top: calc(var(--hdr, 100px) + 56px); }
.mbt-header { position: sticky; top: 0; z-index: 50; }
body.admin-bar .mbt-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .mbt-header { top: 32px; } }
@media (max-width: 600px) { body.admin-bar .mbt-header { top: 0; } }
/* ---------- Mitlaufendes Inhaltsverzeichnis auf langen Seiten ---------- */
.mbt-toc { position: sticky; top: var(--hdr, 100px); z-index: 20; display: flex; align-items: center; gap: 8px; margin: 0 -16px 20px; padding: 8px 16px; background: rgba(244,244,242,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.mbt-toc__label { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mbt-toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mbt-toc ul::-webkit-scrollbar { display: none; }
.mbt-toc a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.mbt-toc a[aria-current="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
@media (max-width: 600px) { .mbt-toc__label { display: none; } }
/* A–Z: Buchstabenleiste läuft mit */
.mbt-letters { position: sticky; top: var(--hdr, 100px); z-index: 20; background: rgba(244,244,242,.96); backdrop-filter: blur(6px); padding: 8px 0; }
@media (min-width: 900px) {
	.mbt-toc { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
}

/* ---------- Hauptmenü (Theme 0.1.15, Pflege unter Design → Menüs) ---------- */
.mbt-nav-toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.mbt-nav-toggle:hover, .mbt-nav-toggle[aria-expanded="true"] { background: var(--ground); }
.mbt-menu__top, .mbt-menu__sub { list-style: none; margin: 0; padding: 0; }
.mbt-menu__row { display: flex; align-items: center; }
.mbt-menu__link { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text); font-weight: 700; }
.mbt-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 10px; }
.mbt-menu__caret { transform: rotate(90deg); transition: transform .15s; }
.mbt-menu__toggle[aria-expanded="true"] .mbt-menu__caret { transform: rotate(270deg); }
.mbt-menu__sub a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text); font-size: 15px; }
.mbt-menu a:hover { color: var(--red); }
.mbt-menu a[aria-current="page"] { color: var(--red); font-weight: 700; }
.mbt-menu a:focus-visible, .mbt-menu__toggle:focus-visible, .mbt-nav-toggle:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* Handy und Tablet: Menü klappt unter dem Kopf auf, Bereiche als Akkordeon */
@media (max-width: 899px) {
	.mbt-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; max-height: calc(100vh - var(--hdr, 100px)); max-height: calc(100dvh - var(--hdr, 100px)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
	.mbt-menu.is-open { display: block; }
	body.mbt-menu-open { overflow: hidden; }
	.mbt-menu__item { border-bottom: 1px solid var(--line-soft); }
	.mbt-menu__link { flex: 1; font-size: 16px; }
	.mbt-menu__sub { display: none; padding: 0 0 8px 12px; margin-bottom: 4px; border-left: 2px solid var(--line-soft); }
	.mbt-menu__item.is-open > .mbt-menu__sub { display: block; }
	.mbt-nav__search { margin-top: 16px; }
}

/* Desktop: Leiste rechts neben dem Logo, Untermenüs als Aufklappfeld */
@media (min-width: 900px) {
	.mbt-nav-toggle { display: none; }
	.mbt-menu { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
	.mbt-menu__top { display: flex; gap: 2px; }
	.mbt-menu__item { position: relative; }
	.mbt-menu__row { border-radius: 10px; }
	.mbt-menu__item:hover > .mbt-menu__row, .mbt-menu__item.is-open > .mbt-menu__row { background: var(--ground); }
	.mbt-menu__link { padding: 0 4px 0 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
	.mbt-menu__item:not(.has-sub) .mbt-menu__link { padding-right: 12px; }
	.mbt-menu__item.is-current > .mbt-menu__row { box-shadow: inset 0 -2px 0 var(--red); border-radius: 10px 10px 0 0; }
	.mbt-menu__toggle { width: 28px; margin-right: 4px; }
	.mbt-menu__caret { opacity: .7; }
	.mbt-menu__sub { position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.12);
		visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility 0s linear .25s; }
	/* kleine Brücke, damit das Feld beim Wechsel mit der Maus nicht zuklappt */
	.mbt-menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
	.mbt-menu__item:last-child .mbt-menu__sub { left: auto; right: 0; }
	.mbt-menu__item:hover > .mbt-menu__sub, .mbt-menu__item.is-open > .mbt-menu__sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.mbt-menu__item:hover .mbt-menu__caret { transform: rotate(270deg); }
	.mbt-menu__sub a { padding: 0 12px; border-radius: 8px; min-height: 40px; font-size: 14px; }
	.mbt-menu__sub a:hover { background: var(--ground); }
	.mbt-nav__search { margin: 0; }
}
@media (min-width: 900px) and (max-width: 1279px) { .mbt-nav__search { display: none; } }
