/* =====================================================================
   MBK Legal – Styles (Frontend + Block-Editor)
   Alle Klassen beginnen mit "mbk-".
   1. Schrift + Tokens   2. Header, Menü-Panel, Footer   3. Grundgerüst
   4. Bausteine          5. Sektionen                    6. Drawer + Popup
   7. Responsive
   ===================================================================== */

/* ---------- 1. Schrift (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
	/* Palette aus dem Design (5 Farben) */
	--mbk-navy: #293d53;
	--mbk-orange: #fd8c3b;
	--mbk-tint-1: #dfeef6;
	--mbk-tint-2: #edf5f9;
	--mbk-white: #ffffff;
	--mbk-blue: #4fadd9;

	/* Rollen – im CSS werden nur diese verwendet */
	--mbk-bg: var(--mbk-white);          /* Seiten-, Karten- und Panelflächen */
	--mbk-ink: var(--mbk-navy);          /* aller Text, kräftige Linien */
	--mbk-ink: #000;          /* aller Text, kräftige Linien */
	--mbk-muted: #586878;                /* Nebentexte (Navy aufgehellt, 5,6 : 1 auf Weiß) */
	--mbk-line: #d4d8dd;                 /* dünne Trennlinien (Navy, 20 %) */
	--mbk-dark: var(--mbk-navy);         /* dunkle Flächen: Header, Hero */
	--mbk-on-dark: var(--mbk-white);     /* Text auf dunklen Flächen */
	--mbk-muted-on-dark: #b4bbc3;        /* Nebentexte auf Navy (5,7 : 1) */
	--mbk-line-on-dark: #506072;         /* Linien auf Navy */
	--mbk-accent: var(--mbk-orange);     /* Akzent – nur auf Navy, auf Weiß zu wenig Kontrast */
	--mbk-focus: var(--mbk-navy);        /* Fokusrahmen (auf dunklen Flächen Orange) */

	/* Nur fürs Wireframe – entfallen mit den echten Inhalten */
	--mbk-ph: var(--mbk-tint-2);         /* Fläche hinter Platzhalterbildern */
	--mbk-ph-2: #c9d9e2;                 /* Rahmen der Platzhalter-Avatare */
	--mbk-note: #2f55ff;                 /* offene Stellen [ergänzen] */
	--mbk-note-bg: #eef2ff;

	--mbk-max: 1440px;
	--mbk-gut: clamp(16px, 4vw, 40px);
	--mbk-hdr: 68px;
	--mbk-pad: clamp(72px, 10vw, 140px);
	--mbk-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mbk-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--mbk-ease: cubic-bezier(.2, .7, .2, 1);
}



body a:hover{
	color: var(--mbk-blue);
}


html { scroll-behavior: smooth; }
body.mbk-site {
	font-family: var(--mbk-font);
	background: var(--mbk-bg);
	overflow-x: clip; /* statt "hidden": sonst funktioniert der Sticky Header nicht */
}
html.mbk-drawer-open,
html:has(.mbk-dialog[open]) { overflow: hidden; }

/* =====================================================================
   2. Header, Menü-Panel, Footer  (parts/header-mbk.php, parts/footer-mbk.php)
   ===================================================================== */
.mbk-hdr,
.mbk-hdr *,
.mbk-footer,
.mbk-footer * { box-sizing: border-box; }

.mbk-hdr {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	background: var(--mbk-dark);
	font-family: var(--mbk-font);
	color: var(--mbk-on-dark);
}
.mbk-hdr-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--mbk-max);
	height: var(--mbk-hdr);
	margin: 0 auto;
	padding: 0 var(--mbk-gut);
}
.mbk-hdr .mbk-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--mbk-on-dark);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.mbk-hdr .mbk-logo:hover,
.mbk-hdr .mbk-logo:focus { color: var(--mbk-on-dark); }
.mbk-hdr .mbk-logo-mark {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--mbk-accent);
	color: var(--mbk-accent);
	font-family: var(--mbk-mono);
	font-size: 9px;
	font-weight: 500;
	letter-spacing: .04em;
}
.mbk-hdr .mbk-logo--image a { display: block; }
.mbk-hdr .mbk-logo--image img { display: block; width: auto; max-height: 40px; }

/* Hamburger – Astra stylt <button> global, daher alles explizit zurücksetzen */
.mbk-hdr .mbk-hamburger,
.mbk-hdr .mbk-hamburger:hover,
.mbk-hdr .mbk-hamburger:focus {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5.5px;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0 -7px 0 0;
	padding: 0 7px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--mbk-on-dark);
	cursor: pointer;
}
.mbk-hdr .mbk-hamburger:focus-visible,
.mbk-hdr .mbk-logo:focus-visible { outline: 2px solid var(--mbk-accent); outline-offset: 2px; }
.mbk-hdr .mbk-line {
	display: block;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background-color: var(--mbk-on-dark);
	transition: transform .3s ease;
}
.mbk-hdr .mbk-hamburger:hover .mbk-line:nth-child(2) { transform: translateX(4px); }

/* =====================================================================
   2b. Transparenter Header: Logo und Hamburger bleiben stehen und
       passen ihre Farbe der Fläche darunter an (Klasse is-on-light,
       gesetzt von assets/js/mbk.js)
   ===================================================================== */
.mbk-hdr {
	background: transparent;
	pointer-events: none; /* Klicks gehen an den Inhalt darunter … */
}
.mbk-hdr .mbk-logo,
.mbk-hdr .mbk-hamburger { pointer-events: auto; } /* … außer auf Logo und Icon */

/* Auf Seiten mit Hero liegt der Header über dem Hero */
body:has(.mbk-hero) .mbk-hdr { margin-bottom: calc(-1 * var(--mbk-hdr)); }
body:has(.mbk-hero) .mbk-section.mbk-hero { padding-top: calc(var(--mbk-hdr) + clamp(56px, 8vw, 104px)); }

/* Ohne JavaScript bleibt der Header sicherheitshalber Navy */
html:not(.mbk-js) .mbk-hdr { background: var(--mbk-dark); pointer-events: auto; }

/* Logo: zwei SVG-Varianten übereinander, eine wird ausgeblendet */
.mbk-hdr .mbk-logo--svg { position: relative; display: block; line-height: 0; }
.mbk-hdr .mbk-logo-img { display: block; width: auto; height: var(--mbk-logo-h); max-width: none; transition: opacity .25s; }
.mbk-hdr .mbk-logo-img--on-light { position: absolute; top: 0; left: 0; opacity: 0; }
/* nur wenn beide Varianten vorhanden sind (Klasse mbk-logo--switch) */
.mbk-hdr .mbk-logo--switch.is-on-light .mbk-logo-img--on-dark { opacity: 0; }
.mbk-hdr .mbk-logo--switch.is-on-light .mbk-logo-img--on-light { opacity: 1; }

/* Text-Platzhalter und Hamburger auf hellen Flächen in Navy */
.mbk-hdr .mbk-logo { transition: color .25s; }
.mbk-hdr .mbk-line { transition: background-color .25s, transform .3s ease; }
.mbk-hdr .mbk-logo.is-on-light,
.mbk-hdr .mbk-logo.is-on-light:hover,
.mbk-hdr .mbk-logo.is-on-light:focus { color: var(--mbk-navy); }
.mbk-hdr .mbk-hamburger.is-on-light .mbk-line { background-color: var(--mbk-navy); }
.mbk-hdr .mbk-logo.is-on-light:focus-visible,
.mbk-hdr .mbk-hamburger.is-on-light:focus-visible { outline-color: var(--mbk-navy); }

/* Menü-Panel */
.mbk-drawer--menu { width: min(640px, 100%); display: flex; flex-direction: column; }
.mbk-drawer .mbk-menu-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	padding: clamp(16px, 3vw, 32px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px);
}
.mbk-drawer .mbk-menu-links { margin: 0; padding: 0; list-style: none; counter-reset: mbkm; }
.mbk-drawer .mbk-menu-links li { margin: 0; padding: 0; border-bottom: 1px solid var(--mbk-line); counter-increment: mbkm; }
.mbk-drawer .mbk-menu-links a {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: baseline;
	gap: 8px;
	padding: clamp(14px, 2.2vh, 22px) 0;
	color: var(--mbk-ink);
	font-size: clamp(1rem, 4.6vw, 3rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.03em;
	text-decoration: none;
	transition: color .2s, padding .25s;
}
.mbk-drawer .mbk-menu-links a::before {
	content: counter(mbkm, decimal-leading-zero);
	font-family: var(--mbk-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--mbk-muted);
}
.mbk-drawer .mbk-menu-links a::after { content: "→"; font-size: .6em; opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .2s; }
.mbk-drawer .mbk-menu-links a:hover,
.mbk-drawer .mbk-menu-links a.is-active { color: var(--mbk-ink); }
.mbk-drawer .mbk-menu-links a:hover { padding-left: 6px; }
.mbk-drawer .mbk-menu-links a:hover::after,
.mbk-drawer .mbk-menu-links a.is-active::after { opacity: 1; transform: none; }
/* Kontakt links, Logo rechts; wird es zu eng, rutscht das Logo unter die Kontaktdaten */
.mbk-drawer .mbk-menu-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 10%;
	font-size: 15px;
	line-height: 1.6;
	color: var(--mbk-muted);
}
.mbk-drawer .mbk-menu-contact-data { display: grid; gap: 4px; flex: 1 1 0; }
.mbk-drawer .mbk-menu-contact-data a { width: fit-content; color: var(--mbk-ink); font-weight: 500; text-decoration: none; }
.mbk-drawer .mbk-menu-contact-data a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mbk-drawer .mbk-menu-contact-data p { margin: 8px 0 0; }
.mbk-drawer .mbk-menu-logo { flex: 0 0 auto; display: block; line-height: 0; }
.mbk-drawer .mbk-menu-logo img { display: block; width: auto; height: var(--mbk-logo-h); }

@media (max-width: 480px) {
	.mbk-drawer .mbk-menu-contact { gap: 20px; font-size: 14px; }
	.mbk-drawer .mbk-menu-logo img { height: 28px; }
}
/* Footer */
.mbk-footer {
	padding: 40px 0 48px;
	border-top: 1px solid var(--mbk-line);
	background: var(--mbk-bg);
	color: var(--mbk-muted);
	font-family: var(--mbk-font);
	font-size: 16px;
	line-height: 1.6;
}
.mbk-footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
	max-width: var(--mbk-max);
	margin: 0 auto;
	padding: 0 var(--mbk-gut);
}
.mbk-footer strong { color: var(--mbk-ink); font-weight: 600; }
.mbk-footer .mbk-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.mbk-footer .mbk-footer-links li { margin: 0; }
.mbk-footer .mbk-footer-links a { color: var(--mbk-muted); text-decoration: none; }
.mbk-footer .mbk-footer-links a:hover,
.mbk-footer .mbk-footer-links a:focus { color: var(--mbk-blue); }

/* =====================================================================
   3. Grundgerüst der Sektionen
   ===================================================================== */
.mbk-section,
.mbk-section *,
.mbk-drawer,
.mbk-drawer *,
.mbk-dialog,
.mbk-dialog * { box-sizing: border-box; }

/* Classic-Themes ohne theme.json bekommen einen zusätzlichen Wrapper um Gruppen-Inhalte */
.mbk-section .wp-block-group__inner-container { display: contents; }

body .mbk-section {
	position: relative;
	padding: var(--mbk-pad) 0;
	border-top: 0px solid var(--mbk-line);
	background: var(--mbk-bg);
	scroll-margin-top: var(--mbk-hdr);
}
body .mbk-section.alignfull,
body .entry-content > .mbk-section.alignfull { max-width: none; margin-top: 0; margin-bottom: 0; }

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) {
	color: var(--mbk-ink);
	font-family: var(--mbk-font);
	font-size: 20px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Editor: Blöcke in den Sektionen nicht auf die Editor-Standardbreite begrenzen */
.mbk-section .wp-block { max-width: none; margin-left: 0; margin-right: 0; }

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) :is(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, cite, table, td, th, details, summary) { margin: 0; padding: 0; }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .wp-block-group { margin: 0; }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) :is(h1, h2, h3, h4) {
	font-family: inherit;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.25;
	color: inherit;
	text-transform: none;
}
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) h1 { font-size: clamp(2.5rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em; }
.mbk-drawer-head h2.mbk-drawer-name { font-size: clamp(2rem, 4.2vw, 2.6rem); line-height: 1.06; letter-spacing: -.03em; padding-bottom: 6px; margin: 0 !important; }
#partner h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; margin: 15px 0 4px !important;}
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) p { margin: 0 0 1em; font-size: inherit; line-height: inherit; }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) :is(ul, ol) { list-style: none; }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) a { color: var(--mbk-blue); text-decoration: underline; text-underline-offset: 3px; }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) a:hover,
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) a:focus { color: var(--mbk-orange); }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) strong { font-weight: 600; }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) :focus-visible { outline: 2px solid var(--mbk-focus); outline-offset: 3px; }

body .mbk-section .wp-block-image { margin: 0; }
body .mbk-section .wp-block-image img { display: block; width: 100%; height: auto; }
body .mbk-section .wp-block-columns { margin: 0; gap: clamp(32px, 6vw, 96px); }

body .mbk-section .mbk-wrap { max-width: var(--mbk-max); margin: 0 auto; padding: 0 var(--mbk-gut); }

body .mbk-section .mbk-grid { display: grid; gap: clamp(24px, 4vw, 56px); }
body .mbk-section .mbk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .mbk-section .mbk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =====================================================================
   4. Wiederkehrende Bausteine
   ===================================================================== */
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-kicker {
	margin: 0 0 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mbk-muted);
}
body .mbk-section .mbk-lead { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.4; letter-spacing: -.01em; color: var(--mbk-ink); }
body .mbk-section .mbk-muted { color: var(--mbk-muted); }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-tbd {
	font-family: var(--mbk-mono);
	font-size: .78em;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--mbk-note);
	background: var(--mbk-note-bg);
	padding: 1px 6px;
	border-radius: 3px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	overflow-wrap: anywhere;
}

/* Strich-Liste */
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-dash li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--mbk-line); }
body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-dash li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 23px;
	width: 14px;
	height: 1.5px;
	background: var(--mbk-ink);
}

/* Chips */
body :is(.mbk-section, .mbk-drawer) .mbk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body :is(.mbk-section, .mbk-drawer) .mbk-chips li { padding: 7px 14px; border: 1px solid var(--mbk-line); background: var(--mbk-bg); font-size: 14.5px; line-height: 1.4; }

/* Karten */
body .mbk-section .mbk-card { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--mbk-line); background: var(--mbk-bg); }

/* Ansprechpartner */
body .mbk-section .mbk-contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 50px;
	margin-top: 40px;
	padding: 0 0 40px 0;
    border-bottom: 1.5px solid var(--mbk-ink);
}


body .mbk-section .mbk-contacts .mbk-kicker { margin: 0; }
body .mbk-section .mbk-person { display: flex; align-items: center; gap: 16px; }
body .mbk-section .mbk-avatar { flex: none; width: 48px; }
body .mbk-section .mbk-avatar img { width: 48px; height: 48px; border: 1px solid var(--mbk-ph-2); border-radius: 50%; object-fit: cover; }
body .mbk-section .mbk-person-name { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
body .mbk-section .mbk-person-name a { text-decoration: none; }
body .mbk-section .mbk-person-name a:hover { text-decoration: none;  color: var(--mbk-orange) !important; border-bottom: 1.5px solid var(--mbk-orange) !important; }
body .mbk-section .mbk-person-role { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--mbk-muted); }

/* Details-Blöcke: eigener Marker statt Dreieck */
body :is(.mbk-section, .mbk-drawer) details > summary { list-style: none; cursor: pointer; }
body :is(.mbk-section, .mbk-drawer) details > summary::-webkit-details-marker { display: none; }

/* =====================================================================
   5. Sektionen
   ===================================================================== */

/* ---------- Hero ---------- */
body .mbk-section.mbk-hero {
	--mbk-focus: var(--mbk-accent);
	padding: clamp(56px, 8vw, 104px) 0 0;
	border-top: 0;
	background: var(--mbk-dark);
	color: var(--mbk-on-dark);
}
body .mbk-hero .mbk-hero-title { color: var(--mbk-accent); }
body .mbk-hero .mbk-hero-title { font-size: clamp(2.6rem, 7.2vw, 6.25rem); line-height: .98; letter-spacing: -.045em; }
body .mbk-hero .mbk-hero-areas {
	margin: .55em 0 0;
	font-size: clamp(1.3rem, 2.5vw, 2.1rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--mbk-accent);
}
body .mbk-hero .mbk-hero-media { margin-top: clamp(32px, 5vw, 56px); background: var(--mbk-ph); }
body .mbk-hero .mbk-hero-media img { height: clamp(220px, 32vw, 480px); object-fit: cover; object-position: 70% 100%; }
body.home .mbk-hero .mbk-hero-sub { max-width: 760px ; }
body .mbk-hero .mbk-hero-sub { max-width: 760px; margin: clamp(36px, 5vw, 64px) 0 0; color: var(--mbk-on-dark); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; }
/* Zwei Kacheln in den hellen Blautönen, randlos über die volle Breite */
body .mbk-hero .mbk-hero-entries {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	width: 100vw;
	margin: clamp(48px, 7vw, 96px) 0 0 calc(50% - 50vw);
}
body .mbk-hero .mbk-entry {
	--mbk-focus: var(--mbk-navy);
	position: relative;
	min-height: clamp(160px, 24vw, 300px);
	padding: clamp(28px, 4.5vw, 56px) clamp(24px, 5vw, 64px);
	background: var(--mbk-tint-1);
	color: var(--mbk-ink);
	transition: background .25s;
}
body .mbk-hero .mbk-entry + .mbk-entry { background: var(--mbk-tint-2); }
body .mbk-hero .mbk-entry:hover { background: color-mix(in srgb, var(--mbk-tint-1) 88%, var(--mbk-navy)); }
body .mbk-hero .mbk-entry-title {
	display: flex;
	justify-content: flex-start;
	align-items: baseline;
	gap: .6em;
	margin: 0;
	font-size: clamp(1.5rem, 2.8vw, 2.2rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.015em;
}
body .mbk-hero .mbk-entry-title::after { content: "↘"; font-size: .8em; transition: transform .25s; }
body .mbk-hero .mbk-entry:hover .mbk-entry-title::after { transform: translate(3px, 3px); }
body .mbk-hero .mbk-entry-title a { text-decoration: none; color: #fff !important}
/* Ganze Kachel klickbar – nur im Frontend, damit sie im Editor bearbeitbar bleibt */
.entry-content .mbk-hero .mbk-entry-title a::before { content: ""; position: absolute; inset: 0; }
body .mbk-hero .mbk-entry-meta { margin: 10px 0 0; font-size: 14px; color: var(--mbk-muted); }

/* ---------- Wann ---------- */
body .mbk-wann .mbk-lead { margin-top: 32px; }
body .mbk-section .mbk-motion img { aspect-ratio: 4 / 5; object-fit: cover; }
body .mbk-section .mbk-principles { margin-top: clamp(56px, 8vw, 96px); }
body .mbk-section .mbk-principle { padding-top: 20px; border-top: 1.5px solid var(--mbk-ink); }
body .mbk-section .mbk-principle h3 { margin: 10px 0 12px; font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -.03em; }
body .mbk-section .mbk-principle p { margin: 0; color: var(--mbk-ink); }

/* ---------- Rechtsgebiete ---------- */
body .mbk-section .mbk-claim { margin-top: 20px; margin-bottom: 0; }
body .mbk-section .mbk-area-head .mbk-muted { margin-bottom: 0; }
body .mbk-section .mbk-audiences { margin-top: clamp(56px, 7vw, 88px); gap: clamp(24px, 4vw, 48px); }
body .mbk-section .mbk-aud { border-top: 3px solid var(--mbk-ink); }
body .mbk-section .mbk-who { margin: 8px 0 22px; font-size: 14.5px; color: var(--mbk-muted); }
body .mbk-section .mbk-services { margin-top: clamp(56px, 7vw, 88px); gap: 0 clamp(24px, 4vw, 48px); }
body .mbk-section .mbk-service { padding: 20px 0 36px; border-top: 1.5px solid var(--mbk-ink); }
body .mbk-section .mbk-service h3 { margin: 8px 0; }
body .mbk-section .mbk-service p { margin: 0; font-size: 15.5px; color: var(--mbk-ink); }
body .mbk-section .mbk-for-whom { margin-top: 16px; gap: clamp(24px, 5vw, 72px);}
  
body .mbk-section .mbk-for-whom .wp-block-column{ align-items: center;
  display: flex;}
  
body .mbk-section .mbk-for-whom .mbk-kicker { margin: 8px 0 0; }

/* ---------- Partner ---------- */
body .mbk-section .mbk-split .wp-block-column + .wp-block-column .mbk-lead { margin-bottom: 0; }
body .mbk-section .mbk-partners { margin-top: clamp(48px, 6vw, 80px); gap: clamp(20px, 3vw, 40px); }
body .mbk-section .mbk-partner { display: flex; flex-direction: column; scroll-margin-top: var(--mbk-hdr); }
/* body .mbk-section .mbk-portrait img { aspect-ratio: 3 / 4; object-fit: cover; background: var(--mbk-ph); } */
body .mbk-section .mbk-partner-name { margin-top: 24px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.025em; }
body .mbk-section .mbk-role { margin: 4px 0 1em; font-size: 14px; color: var(--mbk-muted); }
body .mbk-section .mbk-profile { margin-top: auto; }
body .mbk-section .mbk-profile > summary {
	display: flex;
	justify-content: space-between;
	padding: 14px 0 0;
	border-top: 1.5px solid var(--mbk-ink);
	font-size: 17px;
	font-weight: 600;
}
body .mbk-section .mbk-profile > summary::after { content: "+"; display: inline-block; transition: transform .2s; }
body .mbk-section .mbk-profile > summary:hover::after { transform: rotate(90deg); }
body .mbk-section .mbk-profile[open] > summary::after { content: "−"; transform: none; }
body .mbk-section .mbk-profile[open] > summary { margin-bottom: 8px; }

/* Profilinhalte (aufgeklappter Details-Block und Drawer) */
body :is(.mbk-section, .mbk-drawer) .mbk-profile-intro { margin: 24px 0 0; font-size: 1.05rem; color: var(--mbk-ink); }
body :is(.mbk-section, .mbk-drawer) .mbk-profile-label {
	margin: 45px 0 16px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--mbk-muted);
	border-bottom: 1px solid var(--mbk-muted);
  padding-bottom: 5px;
}
.mbk-drawer-body  .mbk-profile-label{
	margin: 35px 0 15px !important;
}

body :is(.mbk-section, .mbk-drawer) .mbk-timeline { margin: 0; overflow: visible; }
body :is(.mbk-section, .mbk-drawer) .mbk-timeline table { width: 100%; border: 0; border-collapse: collapse; table-layout: auto; }
body :is(.mbk-section, .mbk-drawer) .mbk-timeline td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--mbk-line);
	background: none;
	vertical-align: top;
	font-size: 15px;
	line-height: 1.5;
}
body :is(.mbk-section, .mbk-drawer) .mbk-timeline td:first-child {
	width: 110px;
	padding: 12px 16px 10px 0;
	font-family: var(--mbk-mono);
	font-size: 13px;
	white-space: nowrap;
	color: var(--mbk-muted);
}
body :is(.mbk-section, .mbk-drawer) .mbk-profile-contact { margin: 36px 0 0; padding: 20px; border: 1px solid var(--mbk-line); background: var(--mbk-bg); font-size: 15px; }
body :is(.mbk-section, .mbk-drawer) .mbk-profile-contact a { font-weight: 600; text-decoration: none; }

/* ---------- Kanzlei ---------- */
body .mbk-section .mbk-statement {
	margin-top: clamp(56px, 8vw, 104px);
	padding: clamp(32px, 5vw, 56px) 0;
	gap: clamp(24px, 5vw, 72px);
	border-top: 1.5px solid var(--mbk-ink);
	border-bottom: 1px solid var(--mbk-line);
}
body .mbk-section .mbk-statement-big { margin: 0; font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
body .mbk-section .mbk-statement p:not(.mbk-statement-big) { margin: 0; color: var(--mbk-ink); }
body .mbk-section .mbk-numbers { margin-top: clamp(40px, 5vw, 64px); gap: clamp(20px, 4vw, 48px); }
body .mbk-section .mbk-number { padding-top: 16px; border-top: 1px solid var(--mbk-line); }
body .mbk-section .mbk-number-value { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
body .mbk-section .mbk-number-label { margin: 0; font-size: 14.5px; color: var(--mbk-muted); }
body .mbk-section .mbk-triad { margin: clamp(40px, 5vw, 64px) 0 0; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--mbk-muted); }
body .mbk-section .mbk-triad strong { color: var(--mbk-ink); }

/* ---------- Team ---------- */
body .mbk-section .mbk-h2-small { font-size: clamp(1.7rem, 3vw, 2.4rem); }
body .mbk-section .mbk-team {/*  margin-top: clamp(40px, 5vw, 64px); */ gap: 0 clamp(20px, 3vw, 40px); }
body .mbk-section .mbk-member { padding: 16px 0 55px; border-top: 0px solid var(--mbk-line); }
body .mbk-section .mbk-member-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
body .mbk-section .mbk-member-role { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mbk-muted); }

/* ---------- Publicity ---------- */
body .mbk-section .mbk-press { margin-top: clamp(40px, 5vw, 64px); border-bottom: 1.5px solid var(--mbk-navy); }
body .mbk-section .mbk-press-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px clamp(24px, 5vw, 72px);
	padding: clamp(22px, 2.6vw, 32px) 0;
	border-top: 2px solid var(--mbk-line);
}
body .mbk-section .mbk-press-title { margin: 0; font-size: clamp(1.3rem, 2.3vw, 1.85rem); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
body .mbk-section .mbk-press-source { margin: 8px 0 0; font-size: 14px; color: var(--mbk-muted); }
body .mbk-section .mbk-press-more { justify-self: end; }
body .mbk-section .mbk-press-more > summary {
	display: inline-block;
	padding: 0 0 2px;
	border-bottom: 1.5px solid var(--mbk-ink);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: padding .2s;
}
body .mbk-section .mbk-press-more > summary:hover { padding-right: 6px; color: var(--mbk-orange) !important; border-bottom: 1.5px solid var(--mbk-orange) !important; }
/* ohne JavaScript (und im Editor) klappt der Beitrag in der Zeile auf */
body .mbk-section .mbk-press-more[open] { grid-column: 1 / -1; justify-self: stretch; }
body .mbk-section .mbk-press-more[open] > summary { margin-bottom: 20px; }

/* Beitragstexte (aufgeklappt und im Popup) */
body :is(.mbk-section, .mbk-dialog) .mbk-press-more p,
body .mbk-dialog .mbk-dialog-body p { color: var(--mbk-ink); font-size: 1.06rem; }
body :is(.mbk-section, .mbk-dialog) .mbk-article-sub { color: var(--mbk-ink); font-weight: 600; }
body :is(.mbk-section, .mbk-dialog) .mbk-article-link a { color: var(--mbk-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--mbk-ink); }
body :is(.mbk-section, .mbk-dialog) .mbk-dash { margin: 4px 0 24px; }
body :is(.mbk-section, .mbk-dialog) .mbk-dash strong { color: var(--mbk-ink); }

/* Zitate */
body :is(.mbk-section, .mbk-dialog) .wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	font-style: normal;
	quotes: none;
}
body :is(.mbk-section, .mbk-dialog) .wp-block-quote::before,
body :is(.mbk-section, .mbk-dialog) .wp-block-quote::after { content: none; }
body :is(.mbk-section, .mbk-dialog) .mbk-article-quote { margin: 28px 0; padding-left: 20px; border-left: 1.5px solid var(--mbk-ink); }
body :is(.mbk-section, .mbk-dialog) .mbk-article-quote p { margin: 0; color: var(--mbk-ink); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
body :is(.mbk-section, .mbk-dialog) .mbk-article-quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--mbk-muted); }

/* ---------- Kontakt ---------- */
body .mbk-section .mbk-contact { gap: clamp(40px, 6vw, 96px); }
body .mbk-section .mbk-contact .mbk-lead { margin: 20px 0 0; color: var(--mbk-ink); }
body .mbk-section .mbk-direct { margin: 0 0 6px; }
body .mbk-section .mbk-direct a { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid transparent; }
body .mbk-section .mbk-direct a:hover { border-bottom-color: var(--mbk-orange); color:  var(--mbk-orange); }
body .mbk-section .mbk-address { margin: 34px 0 0; line-height: 1.7; }
body .mbk-section .mbk-route { margin: 0 0; }
body .mbk-section .mbk-route a { font-size: 18px; font-weight: 600; text-decoration: none; /* border-bottom: 1.5px solid var(--mbk-ink); */ }
body .mbk-section .mbk-route a:hover {  border-bottom: 1.5px solid var(--mbk-orange); color: var(--mbk-orange); }

/* =====================================================================
   6. Drawer (Menü + Partnerprofil) und Popup (Publicity)
   ===================================================================== */
.mbk-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9990;
	background: rgba(41, 61, 83, .55);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
html.mbk-drawer-open .mbk-backdrop { opacity: 1; pointer-events: auto; }
.mbk-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9991;
	width: min(800px, 100%);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--mbk-bg);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .38s var(--mbk-ease), visibility 0s linear .38s;
}
.admin-bar .mbk-drawer { top: var(--wp-admin--admin-bar--height, 0px); }
.mbk-drawer.is-open { transform: none; visibility: visible; transition: transform .38s var(--mbk-ease); box-shadow: -20px 0 60px rgba(41, 61, 83, .18); }

body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-top {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px clamp(20px, 4vw, 48px);
	border-bottom: 1px solid var(--mbk-line);
	background: var(--mbk-bg);
}
body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-top .mbk-kicker { margin: 0; }
body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close,
body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close:focus {
	min-height: 0;
	padding: 6px 14px;
	border: 1.5px solid var(--mbk-ink);
	border-radius: 0;
	background: none !important;
	box-shadow: none;
	color: var(--mbk-ink);
	font: 500 14px/1.4 var(--mbk-font);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background .2s, color .2s;
}
body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close:hover { background: var(--mbk-ink); color: var(--mbk-blue); border-color: var(--mbk-ink); }

body .mbk-drawer .mbk-drawer-body { padding: clamp(24px, 4vw, 48px); }
body .mbk-drawer .mbk-drawer-head { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: end; }
body .mbk-drawer .mbk-drawer-head img { display: block; width: 75%; height: auto; /* aspect-ratio: 3 / 4; object-fit: cover; */ background: var(--mbk-ph); }
body .mbk-drawer .mbk-drawer-name { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; }
body .mbk-drawer .mbk-drawer-role { margin: 4px 0 0; font-size: 14.5px; color: var(--mbk-muted); }

.mbk-dialog {
	width: min(760px, calc(100% - 32px));
	max-width: none;
	max-height: min(88vh, 920px);
	margin: auto;
	padding: 0;
	border: 0;
	background: var(--mbk-bg);
	color: var(--mbk-ink);
	box-shadow: 0 30px 90px rgba(41, 61, 83, .28);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.mbk-dialog::backdrop { background: rgba(41, 61, 83, .55); }
.mbk-dialog[open] { animation: mbk-dlg-in .3s var(--mbk-ease); }
@keyframes mbk-dlg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body .mbk-dialog .mbk-dialog-body { padding: clamp(24px, 4vw, 48px); }
body .mbk-dialog .mbk-dialog-meta { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mbk-muted); }
body .mbk-dialog .mbk-dialog-title { margin: 0 0 28px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }

/* =====================================================================
   6b. Flächenfarben je Sektion
   Rhythmus aus dem Design: Navy – Hellblau – Weiß.
   Dunkle Flächen definieren Text-, Nebentext- und Linienfarbe um,
   dadurch passen sich alle Elemente darin automatisch an.
   ===================================================================== */

/* Hellblau: die Farben der beiden Hero-Kacheln führen in ihre Abschnitte */
body .mbk-section.mbk-vergaberecht { background: var(--mbk-tint-1); }
body .mbk-section.mbk-baurecht { background: var(--mbk-tint-2); }

/* Navy: Kanzlei, Kontakt, Footer, Menü-Panel */
body .mbk-section:is(.mbk-kanzlei, .mbk-kontakt),
.mbk-footer,
.mbk-drawer--menu {
	--mbk-ink: var(--mbk-on-dark);
	--mbk-muted: var(--mbk-muted-on-dark);
	--mbk-line: var(--mbk-line-on-dark);
	--mbk-focus: var(--mbk-accent);
	background: var(--mbk-dark);
	color: var(--mbk-on-dark);
}
body .mbk-kanzlei .mbk-statement-big { color: var(--mbk-accent); }
.mbk-footer { color: var(--mbk-muted); }

/* Keine Trennlinie, wo ohnehin die Fläche wechselt */
body .mbk-section:is(.mbk-vergaberecht, .mbk-baurecht, .mbk-kanzlei, .mbk-kontakt),
body :is(.mbk-hero, .mbk-vergaberecht, .mbk-baurecht, .mbk-kanzlei) + .mbk-section { border-top: 0; }

/* Menü-Panel in Navy wie der Header, aktiver Punkt in Orange */
body .mbk-drawer--menu .mbk-drawer-top { background: var(--mbk-dark); }
.mbk-drawer--menu .mbk-menu-links a { color: var(--mbk-on-dark); }
.mbk-drawer--menu .mbk-menu-links a:hover,
.mbk-drawer--menu .mbk-menu-links a.is-active { color: var(--mbk-accent); }
body .mbk-drawer--menu .mbk-drawer-close:hover { color: var(--mbk-blue) !important; }

/* =====================================================================
   7. Responsive
   ===================================================================== */
@media (max-width: 820px) {
	body .mbk-hero .mbk-hero-entries { grid-template-columns: minmax(0, 1fr); }
	body .mbk-section .mbk-grid-2,
	body .mbk-section .mbk-grid-3:not(.mbk-team) { grid-template-columns: minmax(0, 1fr); }
	body .mbk-section .mbk-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .mbk-section .mbk-motion img { aspect-ratio: 16 / 10; }
	body .mbk-section .mbk-press-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	body .mbk-section .mbk-press-more { justify-self: start; }
	body .mbk-drawer .mbk-drawer-head { grid-template-columns: 88px 1fr; gap: 16px; }
	body :is(.mbk-section, .mbk-drawer) .mbk-timeline td:first-child { width: 88px; }
	.mbk-drawer .mbk-menu-links a { grid-template-columns: 36px 1fr auto; }
}
@media (max-width: 600px) {
	.admin-bar .mbk-hdr { top: 0; }
}
@media (max-width: 480px) {
	body :is(.mbk-section, .mbk-drawer, .mbk-dialog) { font-size: 16px; }
	body .mbk-section .mbk-team { grid-template-columns: minmax(0, 1fr); }
	body :is(.mbk-section, .mbk-drawer) .mbk-timeline td:first-child { white-space: normal; }
	.mbk-hdr .mbk-logo-text { font-size: 16px; }
	:root { --mbk-logo-h: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mbk-section *, .mbk-drawer, .mbk-backdrop, .mbk-dialog, .mbk-hdr * { transition: none !important; animation: none !important; }
}











/* EIGENE ANFANG =========================================================================================================================================
==========================================================================================================================================================
=========================================================================================================================================
======================================================================================================================================== */

body:not(.home) h1{
	margin-bottom: 40px !important;
}

h2, h3, h4, h5, h6{
		color: var(--mbk-navy) !important;
}


body:not(.home) h2, h3, h4, h5, h6{
/* 		font-weight: bold; */
		margin: 10px 0 20px !important;
}


body, .wp-block-paragraph{
	font-size: 20px;
}

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) h2{
	 font-size: clamp(2rem, 2vw, 3.5rem); 
	 line-height: 1.15; ; 
	 padding: 20px 0;
}

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) h3.wp-block-accordion-heading { 
font-size: clamp(1.25rem, 1.1vw, 1.5rem); line-height: 1.25; 
	 padding: 10px 0;
	 color: var(--mbk-blue) !important;
}


.wp-block-accordion-panel{
	margin: 0 0 20px;
}
button:focus, .menu-toggle:hover, button:hover, .ast-button:hover, .ast-custom-button:hover .button:hover, .ast-custom-button:hover, input[type="reset"]:hover, input[type="reset"]:focus, input#submit:hover, input#submit:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover, form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:focus, body .wp-block-file .wp-block-file__button:hover, body .wp-block-file .wp-block-file__button:focus{
	background: var(--mbk-navy) !important;
}

h3.wp-block-accordion-heading button:hover { 
	 color: var(--mbk-navy) !important;
	 background: #fff !important;
	 text-decoration: none !important;
}

.wp-block-accordion-item{
	margin-top: 15px !important;
}

.entry-content > .wp-block-group, .entry-content > .wp-block-cover, .entry-content > .wp-block-columns{
/* 	padding: 0 var(--mbk-gut); */
}

.entry-content[data-ast-blocks-layout] > *{
	max-width: 100%;
	margin: 0;
}
.ast-container, .ast-container-fluid{
	padding-left:  0;
	padding-right: 0;
}
.wp-block-column.is-vertically-aligned-bottom{
	align-self: auto;
}

#kanzlei h2,
body #kanzlei .mbk-muted{
	color: #fff !important;
}

body .mbk-section .mbk-numbers{
	margin-top: clamp(40px, 5vw, 94px);
}



body .mbk-section.alignfull, body .entry-content > .mbk-section.alignfull{
/* 	padding: 6% 0; */
}

body .mbk-section.alignfull{
	padding: 10% 0;
}

body .mbk-section .mbk-number{
	border-top: 1.5px solid #fff;
}

#hero{
	padding: 21vh 0 0 !important;
	overflow: auto;
}


.ast-plain-container.ast-no-sidebar #primary{
	margin: 0 !important;
}

.mbk-hdr .mbk-logo-img{
	width: 250px !important;
	margin: 15px 0;
}

.mbk-hdr-inner{
	padding-top: 50px
}

.mbk-hdr .mbk-line{
	height: 6px;
}

/*
.mbk-hdr .mbk-hamburger{
	gap: 7px;
	width: 55px;
}
*/


/* Größe gilt auch beim Hovern/Fokus, sonst greift die Grundregel (44 px) und alles springt */
.mbk-hdr .mbk-hamburger,
.mbk-hdr .mbk-hamburger:hover,
.mbk-hdr .mbk-hamburger:focus{
	gap: 7px;
	width: 55px;
}



.mbk-drawer{
	width: 100vw;
}

.mbk-drawer .mbk-menu-links a::before{
	content: '';
}

body .mbk-section .mbk-statement {
	border: 0;
}


body .mbk-drawer--menu .mbk-drawer-top{
	justify-content: end;
	border: 0;
	padding: 16px clamp(20px, 4vw, 4vw);
	
}

.mbk-drawer .mbk-menu-panel{
	padding: clamp(16px, 3vw, 6vh) clamp(20px, 4vw, 4vw) clamp(28px, 4vw, 4vh);
}

body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close, body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close:focus{
	font: 700 44px/1.4 var(--mbk-font);
		border: 0;

}

body .mbk-hero .mbk-entry-title{
	font-size: clamp(1.5rem, 2.8vw, 3rem);
}


body .mbk-hero .mbk-entry{
	background: var(--mbk-blue);
	color: #fff !important;
}

body .mbk-hero .mbk-entry + .mbk-entry{
	background: var(--mbk-blue);
		background: color-mix(in srgb, var(--mbk-blue) 85%, #fff); 

	color: #fff !important;
/* 	border-left: 2px solid #fff;  */
}

body .mbk-hero .mbk-entry-meta{
	font-size: 20px;
		color: #fff !important;
		min-height: clamp(160px, 24vw, 270px);
}

body .mbk-hero .mbk-hero-media img{
	height: auto;
}

body .mbk-hero .mbk-entry:hover { 
background: color-mix(in srgb, var(--mbk-blue) 30%, var(--mbk-navy)); 
}

body .mbk-section .mbk-muted { 
color: var(--mbk-blue); 
color: var(--mbk-navy); 
font-size: 22px;
}

body .mbk-section.mbk-vergaberecht,
body .mbk-section.mbk-baurecht
{
	background: #fff;
}

body .mbk-section.mbk-partner-section{
	background: var(--mbk-navy);
	color: #fff !important;
}


body .mbk-section.mbk-partner-section h2,
#kontakt h2{
	color: var(--mbk-orange) !important;
}


body .mbk-section.mbk-partner-section .mbk-lead,
body .mbk-section.mbk-partner-section .mbk-kicker,
body .mbk-section.mbk-partner-section .wp-block-heading,
body .mbk-section .mbk-partner-name,
body .mbk-section .mbk-role,
#kontakt .mbk-kicker
{
		color: #fff !important;

}

body .mbk-section .mbk-role{
	font-size: 18px;
}


body .mbk-hero .mbk-hero-title{
	font-size: clamp(2.6rem, 7.2vw, 4.5rem);
	letter-spacing: 0;
}

body .mbk-hero .mbk-hero-sub{
	font-size: clamp(1.15rem, 3.8vw, 2rem);
	margin: 6% 0 17% 0;
}



body .mbk-section .mbk-service p{
	font-size: 20px;
}
body .mbk-section .mbk-for-whom{
	gap: clamp(24px, 5vw, 25px);
}

.mbk-kicker{
/* 	color: var(--mbk-blue) !important; */
}

body .mbk-section .mbk-press-more > summary{
		color: var(--mbk-blue) !important;
border-bottom: 1.5px solid var(--mbk-blue);
}



body .mbk-section .mbk-press-source{
	color: #000;
	font-size: 20px;
}


body .mbk-section .mbk-number-label,
body .mbk-section .mbk-who{
		color: #fff;
	font-size: 20px;

}

body .mbk-section .mbk-press-row{
	border-top: 1.5px solid var(--mbk-navy);
}


body .mbk-section .mbk-member-name{
		font-size: 24px;
}

body .mbk-section .mbk-member-role{
		font-size: 19px;
  color: #000;
  margin-top: 8px;
  line-height: 1.7;
}


body .mbk-section .mbk-member{
/*
	padding: 15px 0 67px;
	border-top: 1.5px solid var(--mbk-navy);
*/
	padding: 60px 0 20px;
  border-bottom: 1.5px solid var(--mbk-navy);
  border-top: 0;
}

body .mbk-section .mbk-member img{
	width: 150px;
  height: 150px;
  border: 1px solid var(--mbk-ph-2);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 20px;
}

body :is(.mbk-section, .mbk-drawer) .mbk-chips li{
	background: var(--mbk-tint-1);
	color: var(--mbk-navy) !important;
	border: 0;
	font-size: 18px;	
	color: #fff;
}

body .mbk-section .mbk-aud{
	border: 0;
}
body .mbk-section .mbk-card{
	background: var(--mbk-navy);
	color: #fff !important;
}
body .mbk-section .mbk-card h3{
	color: #fff !important;
	padding-bottom: 25px;
}

body .mbk-section .mbk-card h4{
	color: #fff !important;
	margin: 35px 0 12px !important;
	font-size: 1.55555555556rem;
}

body .mbk-section .mbk-card h4:first-child {
    margin-top: 5px !important;
}

body .mbk-section .mbk-who{
		color: #fff !important;
}


body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-dash li::before{
			background: var(--mbk-orange);
}

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-dash li{
	border-top: solid 1px rgba(255,255,255,.2);
}


.mbk-drawer--menu .mbk-menu-links a:hover, .mbk-drawer--menu .mbk-menu-links a.is-active{
	color: var(--mbk-blue);
}

#ast-scroll-top{
				background: var(--mbk-navy);

}
#ast-scroll-top:hover{
				background: var(--mbk-blue);

}

body .mbk-section .mbk-number-value{
	font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}

body .mbk-section .mbk-h2-small{
	color: var(--mbk-navy);
}

/*
#page .site-content{
	margin-top: 10vh;
}
header{height: 10vh;}
.home #page .site-content{
	margin-top: 0;
}
*/

/* =====================================================================
   2d. Header als Navy-Leiste: so hoch wie sein Inhalt,
       #content beginnt direkt darunter
   ===================================================================== */
:root { --mbk-hdr-pad: 12px; } /* Abstand über und unter dem Logo */
.mbk-hdr { background: var(--mbk-navy); pointer-events: auto; }
body:has(.mbk-hero) .mbk-hdr { margin-bottom: 0; }
body:has(.mbk-hero) .mbk-section.mbk-hero { padding-top: clamp(56px, 8vw, 104px); }
.mbk-hdr-inner { height: auto; padding-block: var(--mbk-hdr-pad); }
/* body:not(.home) #content { margin-top: 10vh; } */
/* Hamburger auf Höhe des Logos */
html.mbk-js .mbk-hdr .mbk-hdr-tools { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--mbk-hdr-pad) + (var(--mbk-logo-h) - 44px) / 2); }
@media (max-width: 600px) {
	html.mbk-js .admin-bar .mbk-hdr .mbk-hdr-tools { top: calc(var(--mbk-hdr-pad) + (var(--mbk-logo-h) - 44px) / 2); }
}



body .mbk-section .mbk-profile > summary{
	color: var(--mbk-blue);
	border-top: 1.5px solid var(--mbk-blue);	
}

body .mbk-section .mbk-profile > summary:hover{
		color: var(--mbk-orange);
	border-top: 1.5px solid var(--mbk-orange);	

}



.mbk-drawer {
	width: 80%;
}

body .mbk-drawer .mbk-drawer-role{
	color: #000;
	font-size: 18px;
}

body :is(.mbk-section, .mbk-drawer) .mbk-profile-contact{
		font-size: 20px;
/* 			color: var(--mbk-blue); */
}

body .mbk-drawer .mbk-drawer-head{
	grid-template-columns: 220px 1fr;
}


body :is(.mbk-section, .mbk-drawer) .mbk-timeline td{
	font-size: 16px;
}

body :is(.mbk-section, .mbk-drawer) .mbk-timeline td:first-child{
	font-size: 15px;
}

body :is(.mbk-section, .mbk-drawer) .mbk-profile-contact{
	background: var(--mbk-navy);
	color: #fff !important;
}

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-dash li::before{
	top: 28px;
}


body .mbk-section .mbk-motion img{
	aspect-ratio: auto;
}


.mbk-dialog{
	width: min(900px, calc(100% - 32px));
}
body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close, body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close:focus{
	font-size: 30px !important;
}

.high{
	color:  var(--mbk-orange) !important;
}

body .mbk-section .mbk-avatar{
	width: 150px;
}
body .mbk-section .mbk-avatar img{
	width: 150px;
	height: 150px;
}

body .mbk-section .mbk-person-name{
	font-size: 21px;
}
body .mbk-section .mbk-person-role{
	font-size: 18px;
	color: var(--mbk-navy);
}

body :is(.mbk-section, .mbk-drawer, .mbk-dialog) .mbk-kicker{
	font-size: 16px;
}

body .mbk-hero .mbk-hero-areas{
	color: #fff;
}

#mbk-menu-panel{
	border-left: 2px solid #fff;
}

.mbk-hdr{
	position: inherit;
}


.logo-aside{
	width: 230px !important;
	height: auto;
}

.mbk-drawer .mbk-menu-contact{
	font-size: 18px;
	color: #fff;
}

.mbk-drawer .mbk-menu-contact a:hover{
	color: var(--mbk-blue);
	text-decoration: none;
}

aside .mbk-menu-logo{
	width: 230px !important;
	height: auto;
}



body aside#mbk-menu-panel .mbk-drawer-close{
	font-size: 44px !important;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{
	color: var(--mbk-orange);
}


@media (max-width: 800px) {

#hero{
	padding-top: 18vh !important;
}

body .mbk-hero .mbk-entry-meta{
	min-height: clamp(110px, 20vw, 170px);
}

body, body .mbk-section .mbk-number-label, body .mbk-section .mbk-who,
body :is(.mbk-section, .mbk-drawer, .mbk-dialog),
body .mbk-section .mbk-service p
{
font-size: 18px;
}

.mbk-drawer{
	width: 100%;
	
}

body .mbk-drawer .mbk-drawer-head{
	grid-template-columns: 1fr;
	justify-items: flex-start;
}
body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close, body :is(.mbk-drawer, .mbk-dialog) .mbk-drawer-close:focus{
	font-size: 22px;
}

/*
.mbk-hdr .mbk-hamburger{
	gap: 6px;
  width: 45px;
}
*/

.mbk-hdr .mbk-hamburger,
.mbk-hdr .mbk-hamburger:hover,
.mbk-hdr .mbk-hamburger:focus{
	gap: 6px;
  width: 45px;
}


.mbk-hdr .mbk-line{
  height: 4px;
}
.mbk-hdr .mbk-logo-img{
	height: 48px;
	width: auto !important;
}
body .mbk-section .mbk-numbers{
	gap: clamp(20px, 8vw, 48px);
}



}


/* =====================================================================
   Partnerprofil zweispaltig (ab 768 px)
   links Bild, Name, Beschreibung, Schwerpunkte, Kontakt –
   rechts Stationen, Zulassung, Ausbildung, Veröffentlichungen, Mitgliedschaften
   ===================================================================== */
.mbk-drawer--profile { width: min(70vw, 100%); }
@media (min-width: 768px) {
	body .mbk-drawer .mbk-profile-cols {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: clamp(32px, 5vw, 64px);
		align-items: start;
	}
	body .mbk-drawer .mbk-profile-cols.is-single { grid-template-columns: minmax(0, 1fr); }
	body .mbk-drawer .mbk-profile-main .mbk-drawer-head { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
/* 	body .mbk-drawer .mbk-profile-main .mbk-drawer-head img { aspect-ratio: 4 / 5; } */
	body .mbk-drawer .mbk-profile-cv > .mbk-profile-label:first-child { margin-top: 0; }
}


.mbk-profile-main{
	background: var(--mbk-tint-2);
	padding: 25px 25px 35px 35px;
	
}


/* =====================================================================
   2c. Nur Hamburger und Sprachumschalter bleiben stehen, das Logo scrollt mit der Seite weg
       (beide stecken in .mbk-hdr-tools, Position hier einstellen)
   ===================================================================== */
.mbk-hdr { position: relative; top: auto; }
html.mbk-js .mbk-hdr .mbk-hdr-tools {
	position: fixed;
	top: 40px;
	right: 40px;
}
html.mbk-js .mbk-hdr .mbk-hamburger { margin-right: 0; }
@media (max-width: 600px) {
	html.mbk-js .admin-bar .mbk-hdr .mbk-hdr-tools { top: calc((var(--mbk-hdr) - 44px) / 2); }
}


/* Hamburger: nie eine Hintergrundfläche (auch nicht durch Astra-Button-Styles),
   beim Hovern färben sich nur die drei Striche */
.mbk-hdr .mbk-hamburger,
.mbk-hdr .mbk-hamburger:is(:hover, :focus, :focus-visible, :active) {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
	.mbk-hdr .mbk-hamburger:hover .mbk-line,
	.mbk-hdr .mbk-hamburger.is-on-light:hover .mbk-line { background-color: var(--mbk-blue); }
}



/* EIGENE ENDE ===================================================================== */


/* =====================================================================
   Sprachumschalter DE | EN neben dem Hamburger (inc/i18n.php)
   Farbe wechselt wie beim Hamburger je nach Fläche darunter (Klasse is-on-light).
   ===================================================================== */
.mbk-hdr .mbk-hdr-tools {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 28px);
}
/* Die Lücke zwischen Umschalter und Hamburger lässt Klicks zum Inhalt durch */
html.mbk-js .mbk-hdr .mbk-hdr-tools { pointer-events: none; }
html.mbk-js .mbk-hdr .mbk-hdr-tools > * { pointer-events: auto; }

.mbk-hdr .mbk-lang {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--mbk-on-dark);
	font: 600 20px/1 var(--mbk-font);
	letter-spacing: .06em;
	transition: color .25s;
}
.mbk-hdr .mbk-lang a {
	padding: 6px 2px;
	color: inherit;
	opacity: .55;
	text-decoration: none;
	transition: opacity .2s, color .2s;
}
.mbk-hdr .mbk-lang a.is-current { opacity: 1; }
.mbk-hdr .mbk-lang a:hover,
.mbk-hdr .mbk-lang a:focus-visible { opacity: 1; color: var(--mbk-blue); }
.mbk-hdr .mbk-lang a:focus-visible { outline: 2px solid var(--mbk-accent); outline-offset: 2px; }
.mbk-hdr .mbk-lang-sep { opacity: .55; font-weight: 400; }
.mbk-hdr .mbk-lang.is-on-light { color: var(--mbk-navy); }
.mbk-hdr .mbk-lang.is-on-light a:focus-visible { outline-color: var(--mbk-navy); }

@media (max-width: 800px) {
	.mbk-hdr .mbk-lang { font-size: 17px; }
}
/* Schmale Handys: nur die jeweils andere Sprache zeigen, sonst wird es neben dem Logo zu eng */
@media (max-width: 480px) {
	.mbk-hdr .mbk-hdr-tools { gap: 12px; }
	.mbk-hdr .mbk-lang a.is-current,
	.mbk-hdr .mbk-lang-sep { display: none; }
	.mbk-hdr .mbk-lang a { opacity: 1; }
}

