/* =================================================================
   BG Rein – Bereichsseiten, Standardseiten, Kategorie-Archive, Team
   Präfix .bgb- (Bereich) / .bgt- (Team)
   Optik angelehnt an den Einzelbeitrag „Magazin" (einzelbeitrag.css):
   Cormorant-Headlines, Helvetica/Arial-Fließtext, Bereichsfarbe via --cat.
   --cat-text  = lesbare Schriftfarbe AUF --cat (hell/dunkel)
   --cat-ink   = für Text auf Weiß geeignete (ggf. abgedunkelte) --cat
   Beide werden in inc/bereiche.php je Bereich erzeugt.
   ================================================================= */

/* Breite der Beschriftungsspalte in Fakten- und Karten-Listen (1.9.7b) */
.bgb { --bgb-listspalte: minmax(120px, 180px); }
.bgb {
	--ink: #000;
	--muted: #000;
	--soft: #000;
	--line: #E6E6E6;
	--display: var(--font-display);
	--sans: var(--font-ui);
	--cat-fallback: #4A6580;
	/* volle Breite erzwingen: .site-content ist bei GP ein Flex-Container */
	width: 100%;
	box-sizing: border-box;
	flex: 1 1 100%;
	max-width: var(--content-max-width, 1200px);
	margin: 0 auto;
	padding: 54px 50px 90px;
	font-family: var(--font-serif, Georgia, serif);
	color: var(--color-text, #000);
}

.bgb a { color: inherit; }

/* ── Kopf ─────────────────────────────────────────────────────── */
.bgb-header > * { max-width: 860px; }

.bgb-crumbs {
	font-family: var(--sans);
	font-size: var(--fs-mini);
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
}
.bgb-crumbs a { text-decoration: none; transition: color .2s; }
.bgb-crumbs a:hover { color: var(--cat-ink, var(--ink)); }
.bgb-crumbs .sep { opacity: .5; }

.bgb-badge {
	display: inline-block;
	padding: 7px 18px;
	border-radius: 30px;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	background: var(--cat, var(--cat-fallback));
	color: var(--cat-text, #fff);
	margin-bottom: 4px;
}

.bgb-title {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	line-height: 1.08;
	color: var(--ink);
	letter-spacing: .3px;
	margin: 14px 0 0;
	text-wrap: balance;
	position: relative;
	padding-bottom: 22px;
}
.bgb-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 65px;
	height: 3px;
	background: var(--cat, var(--color-blue-link, #3498DB));
	border-radius: 2px;
}

.bgb-lead {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--soft);
	margin: 22px 0 0;
}

/* ── Button-Leiste ────────────────────────────────────────────── */
.bgb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 34px 0 0;
}

.bgb-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: var(--radius-pill, 30px);
	background: #fff;
	color: var(--ink) !important;
	border: 2px solid var(--cat, var(--cat-fallback));
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0,0,0,.06);
	transition: transform var(--transition-base, .3s ease), box-shadow var(--transition-base, .3s ease), background .2s, color .2s;
	cursor: pointer;
	line-height: 1.2;
}
.bgb-button svg { flex: 0 0 auto; transition: transform .25s; }
.bgb-button:hover,
.bgb-button:focus-visible,
.bgb-button.is-current {
	background: var(--cat, var(--cat-fallback));
	color: var(--cat-text, #fff) !important;
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.bgb-button:hover svg { transform: translateX(3px); }
.bgb-button[href^="#"]:hover svg { transform: translateY(3px); }
.bgb-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ── Körper: Haupt + rechte Spalte ────────────────────────────── */
.bgb-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 60px;
	align-items: start;
	margin-top: 46px;
}
.bgb-body--solo { grid-template-columns: minmax(0, 1fr); }
.bgb-main { min-width: 0; }

.bgb-aside {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.admin-bar .bgb-aside { top: 122px; }

/* ── Fließtext (Block-Editor-Inhalt) ──────────────────────────── */
.bgb-content {
	font-size: var(--fs-text); /* Skala in style.css (1.9.7) */
	color: #000;
	line-height: var(--lh-text);
	max-width: 780px;
}
.bgb-body--solo .bgb-content { max-width: 860px; }
.bgb-content > p:first-child { font-size: var(--fs-lead); color: var(--ink); line-height: 1.65; }
.bgb-content p { margin-bottom: 1.3em; }
.bgb-content h2 {
	font-family: var(--display);
	font-weight: 600;
	font-size: var(--fs-h2);
	color: var(--ink);
	margin: 2.2em 0 .6em;
	line-height: 1.2;
	scroll-margin-top: 110px;
}
.bgb-content > h2:first-child { margin-top: 0; }
.bgb-content h3 { font-family: var(--display); font-weight: 600; font-size: var(--fs-h3); color: var(--ink); margin: 1.8em 0 .5em; }
.bgb-content ul, .bgb-content ol { margin: 0 0 1.4em 1.2em; }
.bgb-content li { margin-bottom: .5em; }
.bgb-content li::marker { color: var(--cat-ink, var(--cat)); }
.bgb-content strong { color: var(--ink); }
.bgb-content a:not(.wp-block-button__link) { color: var(--cat-ink, var(--ink)); text-underline-offset: 3px; }
.bgb-content img { border-radius: 10px; height: auto; }
.bgb-content .wp-block-button__link {
	border-radius: 30px;
	background: var(--cat, var(--cat-fallback));
	color: var(--cat-text, #fff);
	font-family: var(--sans);
	font-weight: 600;
	font-size: 15px;
	padding: 12px 24px;
	text-decoration: none;
}
.bgb-content .wp-block-file { font-family: var(--sans); font-size: 15px; }
.bgb-content .wp-block-file__button { border-radius: 20px; background: var(--cat, var(--cat-fallback)); color: var(--cat-text, #fff); }
.bgb-content .wp-block-quote { border-left: 4px solid var(--cat); padding: 6px 0 6px 28px; margin: 2em 0; font-style: italic; }
.bgb-content--intro { margin-bottom: 10px; }

/* Infokasten: Block „Gruppe" mit Stil/Klasse bgb-info */
.bgb-content .bgb-info,
.bgb-content .is-style-bgb-info {
	background: #fff;
	border-left: 4px solid var(--cat, var(--cat-fallback));
	border-radius: 10px;
	padding: 22px 26px;
	box-shadow: var(--shadow-card, 0 5px 25px rgba(0,0,0,.08));
	margin: 1.8em 0;
}
.bgb-content .bgb-info > :last-child { margin-bottom: 0; }

.bgb-figure { margin: 0 0 34px; }
.bgb-figure img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 14px; display: block; }

/* ── Abschnittstitel ──────────────────────────────────────────── */
.bgb-section-title {
	font-family: var(--display);
	font-weight: 600;
	font-size: var(--fs-h2);
	color: var(--ink);
	margin: 64px 0 26px;
	line-height: 1.15;
	display: flex;
	align-items: center;
	gap: 18px;
	scroll-margin-top: 110px;
}
.bgb-section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}
.bgb-main > .bgb-section-title:first-child { margin-top: 0; }

.bgb-empty {
	font-family: var(--sans);
	font-size: 15px;
	color: var(--muted);
	font-style: italic;
	background: #fff;
	border: 1px dashed #d5d8dc;
	border-radius: 10px;
	padding: 18px 22px;
}

/* ── Fach-Kacheln (Farbflächen) ───────────────────────────────── */
.bgb-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
}
.bgb-tiles li { margin: 0; }

.bgb-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 128px;
	padding: 18px 20px;
	border-radius: var(--radius-md, 10px);
	background: var(--tile);
	color: #fff !important;
	text-decoration: none;
	overflow: hidden;
	box-shadow: var(--shadow-card, 0 5px 25px rgba(0,0,0,.08));
	transition: transform var(--transition-smooth, .4s), box-shadow var(--transition-smooth, .4s);
	isolation: isolate;
}
/* dezente Struktur: Lichtkante + Kreis */
.bgb-tile::before {
	content: '';
	position: absolute;
	right: -38px;
	top: -38px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	z-index: -1;
	transition: transform .5s;
}
.bgb-tile:hover,
.bgb-tile:focus-visible {
	transform: translateY(-6px);
	box-shadow: var(--shadow-card-hover, 0 15px 45px rgba(0,0,0,.15));
}
.bgb-tile:hover::before { transform: scale(1.35); }
.bgb-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.bgb-tile__name {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.45rem;
	line-height: 1.15;
}
.bgb-tile__count {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	opacity: .85;
	margin-top: 6px;
}

/* ── Einzeilige Beitragskacheln ───────────────────────────────── */
.bgb-rows { display: flex; flex-direction: column; gap: 14px; }

.bgb-row {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	background: #fff;
	border-radius: var(--radius-md, 10px);
	box-shadow: 0 3px 16px rgba(0,0,0,.06);
	padding: 12px 24px 12px 12px;
	text-decoration: none;
	color: inherit;
	border-left: 4px solid var(--chip, var(--cat));
	transition: transform var(--transition-smooth, .4s), box-shadow var(--transition-smooth, .4s);
}
.bgb-row:hover,
.bgb-row:focus-visible {
	transform: translateX(6px);
	box-shadow: 0 10px 30px rgba(0,0,0,.11);
}
.bgb-row:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.bgb-row__img {
	display: block;
	width: 168px;
	height: 108px;
	border-radius: 7px;
	background-size: cover;
	background-position: center;
	background-color: #eef0f2;
}
.bgb-row__img--empty {
	background: var(--chip, var(--cat));
	opacity: .9;
	background-image: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
}

.bgb-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bgb-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: var(--sans);
	font-size: var(--fs-mini);
	color: var(--muted);
}
.bgb-chip {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 20px;
	background: var(--chip-bg, var(--chip, var(--cat)));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
}
.bgb-row__title {
	font-family: var(--display);
	font-weight: 600;
	font-size: var(--fs-h4);
	line-height: 1.2;
	color: var(--ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bgb-row__excerpt {
	font-size: var(--fs-small);
	line-height: 1.5;
	color: var(--soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bgb-row__arrow { color: var(--muted); transition: transform .25s, color .25s; }
.bgb-row:hover .bgb-row__arrow { transform: translateX(4px); color: var(--ink); }

/* Pagination */
.bgb-pagination { margin-top: 30px; font-family: var(--sans); }
.bgb-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.bgb-pagination a,
.bgb-pagination span {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	background: #fff;
	text-decoration: none;
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--ink);
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.bgb-pagination .current { background: var(--cat, var(--cat-fallback)); color: var(--cat-text, #fff); }
.bgb-pagination a:hover { background: var(--ink); color: #fff; }

/* ── Termine (nutzt .bgrein-termine aus sections.css) ─────────── */
.bgb-termine { margin-top: 56px; border-top-color: var(--cat, var(--color-green-mid)); }
.bgb-main > .bgb-termine:first-child { margin-top: 0; }
.bgb-termine .bgrein-termine__date { background: var(--cat, var(--color-accent-green)); color: var(--cat-text, #fff); }
.bgb-termine a.bgrein-termine__link:hover .bgrein-termine__summary { color: var(--cat-ink, var(--color-green-mid)); }
.bgb-termin__info { font-family: var(--sans); font-size: var(--fs-small); color: var(--soft); margin-top: 3px; }

/* ── Rechte Spalte: Boxen ─────────────────────────────────────── */
.bgb-box {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: var(--shadow-card, 0 5px 25px rgba(0,0,0,.08));
	border-top: 4px solid var(--cat, var(--cat-fallback));
}
.bgb-box__title {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: var(--muted);
	margin: 0 0 14px;
}
.bgb-box__more {
	display: inline-block;
	margin-top: 16px;
	font-family: var(--sans);
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--cat-ink, var(--ink)) !important;
	text-decoration: none;
}
.bgb-box__more:hover { text-decoration: underline; text-underline-offset: 3px; }

.bgb-people { list-style: none; margin: 0; padding: 0; }
.bgb-person {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	margin: 0;
}
.bgb-person:first-child { border-top: none; padding-top: 0; }
.bgb-person__img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 18%;
	background: #eef0f2;
}
.bgb-person__img--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sans);
	font-weight: 700;
	color: var(--ink);
}
.bgb-person__text { display: flex; flex-direction: column; min-width: 0; }
.bgb-person__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; color: var(--ink); }
.bgb-person__role { font-family: var(--sans); font-size: var(--fs-mini); color: var(--muted); margin-top: 3px; line-height: 1.35; }

.bgb-mail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f1f3f5;
	color: var(--ink) !important;
	transition: background .2s, color .2s, transform .2s;
}
.bgb-mail:hover,
.bgb-mail:focus-visible { background: var(--cat, var(--cat-fallback)); color: var(--cat-text, #fff) !important; transform: scale(1.06); }

.bgb-contact-mail {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 15px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bgb-people:empty + .bgb-contact-mail,
.bgb-box__title + .bgb-contact-mail { border-top: none; padding-top: 0; margin-top: 0; }
.bgb-contact-mail__label { font-weight: 700; color: var(--ink); }
.bgb-contact-mail a { color: var(--cat-ink, var(--ink)) !important; word-break: break-all; text-underline-offset: 3px; }

/* Ansprechpersonen der verknüpften Unterseite (z. B. Musik → „Musikschule ProRe“) */
.bgb-people--sub { margin-top: 8px; }
.bgb-people--sub + a { margin-top: 6px; }
.bgb-contact-mail .bgb-mail { color: var(--ink) !important; word-break: normal; }
.bgb-contact-mail .bgb-mail:hover,
.bgb-contact-mail .bgb-mail:focus-visible { color: var(--cat-text, #fff) !important; }


/* =================================================================
   TEAM-SEITE
   ================================================================= */
.bgt-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.bgt-switch {
	display: inline-flex;
	background: #fff;
	border-radius: 30px;
	padding: 5px;
	box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.bgt-switch__btn {
	border: 0;
	background: transparent;
	padding: 10px 20px;
	border-radius: 24px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	transition: background .2s, color .2s;
}
.bgt-switch__btn[aria-selected="true"] { background: var(--color-accent-green, #005959); color: #fff; }
.bgt-switch__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bgt-switch__count { font-weight: 400; opacity: .7; margin-left: 4px; }

.bgt-searchwrap {
	position: relative;
	flex: 1 1 280px;
	max-width: 440px;
}
.bgt-search {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border-radius: 30px;
	padding: 0 18px;
	box-shadow: 0 3px 14px rgba(0,0,0,.07);
	color: var(--muted);
}
.bgt-search input {
	flex: 1;
	border: 0 !important;
	background: transparent !important;
	padding: 13px 0 !important;
	font-family: var(--sans);
	font-size: 16px;
	color: var(--ink);
	outline: none;
	box-shadow: none !important;
	min-width: 0;
}
.bgt-search:focus-within { box-shadow: 0 0 0 3px rgba(0,89,89,.25), 0 3px 14px rgba(0,0,0,.07); }

.bgt-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bgt-reset-link {
	border: 0;
	background: none;
	font-family: var(--sans);
	font-size: var(--fs-small);
	color: var(--muted);
	text-decoration: underline;
	cursor: pointer;
	padding: 4px 6px;
}
.bgt-status { font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); margin: 0 0 14px; min-height: 1em; }

/* ── Personenkarten: Maße 1:1 aus der bisherigen team.html ─────────
   (Tailwind: rounded-lg, shadow-md, space-y-4, p-4/p-5, text-xl/2xl,
   Foto mobil volle Breite max. 480px, ab 640px 200px links). */
.bgt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bgt-list[hidden], .bgt-card[hidden], .bgt-empty[hidden], .bgt-filters[hidden] { display: none !important; }

.bgt-card {
	--bgt-sans: var(--font-ui);
	position: relative;
	display: block;
	margin: 0;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
	transition: box-shadow .3s;
	font-family: var(--bgt-sans);
}
.bgt-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }

/* mobil: Foto oben, volle Breite */
.bgt-card__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	object-position: center 15%;
	background: #eef0f2;
}
.bgt-card__img--empty {
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: 700;
	color: #9ca3af;
}

.bgt-card__body { padding: 16px 16px 72px; }
.bgt-card__name {
	font-family: var(--bgt-sans);
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: #1f2937;
	margin: 0;
	letter-spacing: 0;
}
.bgt-card__meta {
	font-family: var(--bgt-sans);
	font-size: var(--fs-small);
	line-height: 20px;
	color: #4b5563;
	margin: 4px 0 24px;
}
.bgt-card__meta:empty { display: none; }
.bgt-card__meta:empty + .bgt-tags { margin-top: 24px; }

.bgt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bgt-tags:last-of-type { margin-bottom: 0; }
.bgt-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	border-radius: 9999px;
	padding: 4px 12px;
	font-family: var(--bgt-sans, sans-serif);
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #fff;
	cursor: pointer;
	transition: box-shadow .2s;
	text-transform: none;
	letter-spacing: 0;
}
.bgt-tag:hover { text-decoration: underline; }
.bgt-tag.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f2937; }
.bgt-tag:focus-visible { outline: 2px solid #1f2937; outline-offset: 2px; }
/* Barrierefreiheit: Flächen mit Kontrast ≥ 4.5:1 zu weißer Schrift */
.bgt-tag--fach { background: #20764f; }
.bgt-tag--team { background: #1d6f8f; }
.bgt-tag--info { background: #197575; cursor: default; }
.bgt-filters .bgt-tag { font-size: 12px; line-height: 16px; padding: 4px 8px; }

/* Kontakt-Knöpfe rechts unten (bottom-4 right-4, p-2, bg-gray-200) */
.bgt-card__actions { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.bgt-card .bgt-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 8px;
	border-radius: 9999px;
	background: #e5e7eb;
	color: #000 !important;
	transition: background .2s;
	transform: none;
}
.bgt-card .bgt-action:hover, .bgt-card .bgt-action:focus-visible { background: #d1d5db; color: #000 !important; transform: none; }
.bgt-card .bgt-action svg { width: 20px; height: 20px; }


/* ab 640px: Foto 200px links, Text rechts */
@media (min-width: 640px) {
	.bgt-card { display: flex; }
	.bgt-card__img {
		flex: 0 0 200px;
		width: 200px;
		max-height: none;
		height: auto;
		align-self: stretch;
		object-position: top;
	}
	.bgt-card__img--empty { height: auto; min-height: 200px; }
	.bgt-card__body { flex: 1; min-width: 0; padding: 20px 20px 56px; }
	.bgt-card__name { font-size: 24px; line-height: 32px; margin-bottom: 4px; }
	.bgt-card__meta { margin: 0 0 16px; }
	.bgt-card__meta:empty + .bgt-tags { margin-top: 0; }
}

.bgt-empty { text-align: center; padding: 50px 20px; font-family: var(--sans); color: var(--soft); }


/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
	.bgb-body { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}

@media (max-width: 900px) {
	.bgb { padding: 34px 22px 70px; }
	.bgb-body { grid-template-columns: 1fr; gap: 44px; margin-top: 34px; }
	.bgb-aside { position: static; }
}

@media (max-width: 640px) {
	.bgb-buttons { gap: 10px; }
	.bgb-button { flex: 1 1 100%; justify-content: space-between; }
	.bgb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bgb-tile { min-height: 108px; padding: 14px 16px; }
	.bgb-tile__name { font-size: 1.2rem; }
	.bgb-section-title { margin-top: 48px; }

	.bgb-row { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; }
	.bgb-row__img { width: 92px; height: 72px; }
	.bgb-row__arrow { display: none; }
	.bgb-row__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.bgb-row__excerpt { display: none; }

	.bgt-toolbar { flex-direction: column; align-items: stretch; }
	.bgt-switch { align-self: flex-start; }
	.bgt-searchwrap { max-width: none; flex: 0 0 auto; width: 100%; }
	.bgt-search { width: 100%; box-sizing: border-box; }
	.bgt-page .bgb { padding-left: 16px; padding-right: 16px; }
	.bgt-switch__btn { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.bgb-tile, .bgb-row, .bgb-button, .bgb-tile::before { transition: none; }
	.bgb-tile:hover, .bgb-row:hover, .bgb-button:hover { transform: none; }
}

/* Redaktions-Hinweise (Absatz mit Klasse „bgb-redaktion"): nur für
   angemeldete Benutzer sichtbar – Besucher sehen sie nie. */
.bgb-content .bgb-redaktion { display: none; }
.logged-in .bgb-content .bgb-redaktion {
	display: block;
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	color: #6b5800;
	background: #fff8d6;
	border: 1px dashed #d9b300;
	border-radius: 8px;
	padding: 10px 14px;
}

@media (max-width: 640px) {
	.bgb-termine { padding: 24px 20px; }
}

/* =================================================================
   PERSONEN-RASTER (Musikschule) – angelehnt an Musikschule_Team.html:
   runde Fotos, Name 18px/500, Untertitel 13px, E-Mail-Symbol.
   ================================================================= */
.bgm-grid {
	list-style: none;
	margin: 1.6em 0 2.4em;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 40px 28px;
}
.bgm-person { margin: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bgm-person__img {
	width: 100%;
	max-width: 200px;
	aspect-ratio: 1;
	height: auto;
	border-radius: 50% !important;
	object-fit: cover;
	object-position: center 20%;
	background: #eef0f2;
	box-shadow: 0 6px 22px rgba(0,0,0,.10);
}
.bgm-person__img--empty { display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 40px; font-weight: 700; color: #9ca3af; }
.bgb-content .bgm-person__name {
	font-family: var(--sans);
	font-size: 18px;
	line-height: 22px;
	font-weight: 500;
	color: #3e4555;
	margin: 22px 0 4px;
}
.bgb-content .bgm-person__role {
	font-family: var(--sans);
	font-size: var(--fs-mini);
	line-height: 20px;
	color: #000;
	margin: 0 0 12px;
	min-height: 20px;
}
.bgm-person__actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; }
.bgm-more {
	border: 2px solid var(--cat, var(--cat-fallback));
	background: #fff;
	color: var(--ink);
	border-radius: 30px;
	padding: 7px 16px;
	font-family: var(--sans);
	font-size: var(--fs-mini);
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.bgm-more:hover, .bgm-more:focus-visible { background: var(--cat, var(--cat-fallback)); color: var(--cat-text, #fff); }

.bgm-dialog {
	border: 0;
	border-radius: 16px;
	padding: 0;
	width: min(720px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	box-shadow: 0 30px 80px rgba(0,0,0,.3);
	text-align: left;
}
.bgm-dialog::backdrop { background: rgba(28,38,50,.55); }
.bgm-dialog__inner { position: relative; padding: 34px 38px 30px; font-family: var(--font-ui); font-size: var(--fs-text); line-height: 1.75; color: #000; }
.bgm-dialog .bgm-dialog__close {
	position: absolute; top: 14px; right: 14px;
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; margin: 0;
	border-radius: 50%; border: 0;
	background: #f1f3f5; color: #000;
	line-height: 1; cursor: pointer;
}
.bgm-dialog .bgm-dialog__close svg { display: block; width: 18px; height: 18px; }
.bgm-dialog .bgm-dialog__close:focus-visible { outline: 3px solid #2C3E50; outline-offset: 2px; }
.bgm-dialog .bgm-dialog__close:hover { background: #e2e5e9; color: #000; }
.bgm-dialog__head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; padding-right: 40px; }
.bgm-dialog__head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.bgb .bgm-dialog__title { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: #000; margin: 0; }
.bgb .bgm-dialog__role { font-family: var(--font-ui); font-size: var(--fs-small); color: #000; margin: 4px 0 0; }
.bgm-dialog__bio h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #000; margin: 1.2em 0 .4em; }
.bgm-dialog__bio ul { margin: 0 0 1em 1.2em; }
.bgm-dialog__bio p { margin: 0 0 1em; }
.bgm-dialog__bio a { color: #000; text-underline-offset: 3px; }

@media (max-width: 640px) {
	.bgm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.bgm-person__img { max-width: 140px; }
	.bgb-content .bgm-person__name { font-size: 16px; line-height: 20px; margin-top: 14px; }
	.bgm-person__actions { flex-wrap: wrap; }
	.bgm-dialog__inner { padding: 26px 20px 20px; }
	.bgm-dialog__head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.bgm-dialog__head img { width: 80px; height: 80px; }
}


/* =================================================================
   GESTALTUNGS-BAUSTEINE FÜR INFOSEITEN
   (Klassen am Block „Gruppe"/„Liste"/„Tabelle" – Editor: Block →
   Erweitert → Zusätzliche CSS-Klasse)
   ================================================================= */

/* ── Fakten-Kacheln ── .bgb-facts > .bgb-fact > p.bgb-fact__label + p.bgb-fact__value */
.bgb-content .bgb-facts,
.bgb-content .bgb-facts > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	gap: 14px;
	margin: 1.8em 0 2.2em;
}
.bgb-content .bgb-fact {
	background: #fff;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 3px 16px rgba(0,0,0,.06);
	border-left: 4px solid var(--cat, var(--cat-fallback));
	margin: 0;
}
.bgb-content .bgb-fact > *, .bgb-content .bgb-fact > .wp-block-group__inner-container > * { margin: 0; }
.bgb-content .bgb-fact .bgb-fact__label {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
	line-height: 1.3;
}
.bgb-content .bgb-fact .bgb-fact__value {
	/* Inhalt = Lesetext (1.9.7b; vorher Cormorant – wirkte neben Karten fremd) */
	font-family: var(--sans);
	font-weight: 600;
	font-size: var(--fs-text);
	line-height: 1.5;
	hyphens: manual;
	overflow-wrap: break-word;
	color: var(--ink);
}
.bgb-content .bgb-facts--list .bgb-fact .bgb-fact__value { font-weight: 400; line-height: 1.6; }
.bgb-content .bgb-fact a { color: var(--ink); text-decoration-color: var(--cat, currentColor); }

/* ── Karten ── .bgb-cards > .bgb-card (h3 + Inhalt) */
.bgb-content .bgb-cards,
.bgb-content .bgb-cards > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
	gap: 16px;
	margin: 1.6em 0 2.2em;
}
.bgb-content .bgb-card {
	background: #fff;
	border-radius: 14px;
	padding: 20px 20px 18px;
	hyphens: manual; /* keine Silbentrennung mitten im Lesetext (1.9.7b) */
	overflow-wrap: break-word;
	box-shadow: 0 4px 20px rgba(0,0,0,.06);
	border-top: 4px solid var(--cat, var(--cat-fallback));
	margin: 0;
	font-size: var(--fs-text); /* wie der Lesetext (1.9.7, vorher 16 px) */
	line-height: 1.65;
}
.bgb-content .bgb-card h3 {
	font-size: var(--fs-h3); /* Cormorant wirkt kleiner – eine Stufe größer als h4 (1.9.7b) */
	margin: 0 0 .45em;
	line-height: 1.2;
}
.bgb-content .bgb-card > :last-child, .bgb-content .bgb-card .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.bgb-content .bgb-card h3:first-child, .bgb-content .bgb-card .wp-block-group__inner-container > h3:first-child { margin-top: 0; }
.bgb-content .bgb-card p { margin-bottom: .7em; }
.bgb-content .bgb-card ul { margin: 0 0 0 1.1em; }
.bgb-content .bgb-card li { margin-bottom: .35em; }
.bgb-content .bgb-card .wp-block-buttons { margin-top: 12px; }
.bgb-content .bgb-card .bgb-downloads { margin-top: 6px; }

/* ── Download-/Linkliste ── ul.bgb-downloads */
.bgb-content ul.bgb-downloads {
	list-style: none;
	margin: 1em 0 1.8em;
	padding: 0;
	display: grid;
	gap: 10px;
}
.bgb-content ul.bgb-downloads li {
	position: relative;
	margin: 0;
	padding: 13px 18px 13px 54px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.45;
	color: var(--soft);
	transition: box-shadow .2s, transform .2s;
}
.bgb-content ul.bgb-downloads li:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); transform: translateX(3px); }
.bgb-content ul.bgb-downloads li::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat, var(--ink);
}
/* Datei-Links (PDF, Word …) bekommen ein Download-Symbol */
.bgb-content ul.bgb-downloads li:has(a[href$=".pdf"])::before,
.bgb-content ul.bgb-downloads li:has(a[href$=".docx"])::before,
.bgb-content ul.bgb-downloads li:has(a[href$=".doc"])::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / 15px no-repeat, var(--ink);
}
.bgb-content ul.bgb-downloads a {
	font-weight: 600;
	color: var(--ink) !important;
	text-decoration: none;
}
.bgb-content ul.bgb-downloads a::after { content: ''; position: absolute; inset: 0; } /* ganze Zeile klickbar */
.bgb-content ul.bgb-downloads a:hover { color: var(--cat-ink, var(--ink)) !important; }
.bgb-content ul.bgb-downloads li::marker { content: none; }

/* ── Nummerierte Schritte ── ol.bgb-steps */
.bgb-content ol.bgb-steps {
	list-style: none;
	counter-reset: bgbstep;
	margin: 1.2em 0 2em;
	padding: 0;
}
.bgb-content ol.bgb-steps li {
	counter-increment: bgbstep;
	position: relative;
	padding: 2px 0 14px 54px;
	margin: 0;
	min-height: 40px;
}
.bgb-content ol.bgb-steps li::before {
	content: counter(bgbstep);
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cat, var(--cat-fallback));
	color: var(--cat-text, #fff);
	font-family: var(--sans);
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bgb-content ol.bgb-steps li:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 17px;
	top: 40px;
	bottom: 2px;
	width: 2px;
	background: var(--line);
}

/* ── Tabellen ── */
.bgb-content .wp-block-table { margin: 1.2em 0 2em; overflow-x: auto; }
.bgb-content .wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 3px 16px rgba(0,0,0,.06);
	font-family: var(--sans);
	font-size: var(--fs-small);
	line-height: 1.4;
	table-layout: auto;
}
.bgb-content .wp-block-table thead th {
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	text-align: center;
	padding: 11px 10px;
	border: 0;
	white-space: nowrap;
}
.bgb-content .wp-block-table thead th:first-child { text-align: left; padding-left: 18px; }
.bgb-content .wp-block-table td {
	padding: 9px 10px;
	border: 0;
	border-top: 1px solid #eef0f2;
	text-align: center;
	color: var(--soft);
}
.bgb-content .wp-block-table td:first-child { text-align: left; padding-left: 18px; color: var(--ink); }
.bgb-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f8f9fa; }
.bgb-content .wp-block-table.is-style-stripes { border-bottom: 0; }
.bgb-content .wp-block-table tbody tr:last-child:has(strong) td { background: color-mix(in srgb, var(--cat, #4A6580) 12%, #fff); color: var(--ink); }
.bgb-content .wp-block-table figcaption { font-family: var(--sans); font-size: var(--fs-mini); color: var(--muted); }

/* ── Buttons in Inhalten ── */
.bgb-content .wp-block-buttons { gap: 10px; margin: 1em 0 1.6em; }
.bgb-content .wp-block-button__link:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
	.bgb-content .bgb-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
	.bgb-content .bgb-fact { padding: 14px 14px; }
	.bgb-content .bgb-cards { grid-template-columns: 1fr; }
	.bgb-content .wp-block-table td, .bgb-content .wp-block-table th { padding: 8px 6px; }
	.bgb-content .wp-block-table td:first-child, .bgb-content .wp-block-table thead th:first-child { padding-left: 10px; }
}
@media (max-width: 400px) {
	.bgb-content .bgb-facts { grid-template-columns: 1fr; }
}

/* Klassisches Theme: Gruppen haben einen inneren Container – nur dieser wird
   zum Raster, der äußere bleibt ein schlichter Block ohne eigenen Abstand. */
.bgb-content .bgb-facts:has(> .wp-block-group__inner-container),
.bgb-content .bgb-cards:has(> .wp-block-group__inner-container) { display: block; }
.bgb-content .bgb-facts > .wp-block-group__inner-container,
.bgb-content .bgb-cards > .wp-block-group__inner-container { margin: 0; }
.bgb-content .bgb-info > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.bgb-content .bgb-fact .wp-block-group__inner-container > .bgb-fact__label { margin-bottom: 6px; }
@media (max-width: 640px) {
	.bgb-content .bgb-facts > .wp-block-group__inner-container { grid-template-columns: 1fr 1fr; gap: 10px; }
	.bgb-content .bgb-cards > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
	.bgb-content .bgb-facts > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}

/* Buttons im Inhalt: GeneratePress-Standardfarbe überschreiben */
.bgb-content .wp-block-button .wp-block-button__link {
	background: var(--cat, var(--cat-fallback)) !important;
	color: var(--cat-text, #fff) !important;
	border-radius: 30px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 15px;
	padding: 12px 24px;
	text-decoration: none;
}


/* ── Einzeilige Kacheln ── .bgb-cards.bgb-cards--list: eine Kachel pro Zeile,
   Titel links, Text rechts (mobil untereinander) */
.bgb-content .bgb-cards.bgb-cards--list,
.bgb-content .bgb-cards.bgb-cards--list > .wp-block-group__inner-container {
	grid-template-columns: 1fr;
	gap: 12px;
}
.bgb-content .bgb-cards.bgb-cards--list:has(> .wp-block-group__inner-container) { display: block; }
.bgb-content .bgb-cards--list .bgb-card {
	border-top: 0;
	border-left: 4px solid var(--cat, var(--cat-fallback));
	padding: 18px 20px;
	border-radius: 12px;
}
.bgb-content .bgb-cards--list .bgb-card,
.bgb-content .bgb-cards--list .bgb-card > .wp-block-group__inner-container {
	display: grid;
	/* gleiche Spalten wie die Fakten-Liste – beide Bausteine fluchten (1.9.7b) */
	grid-template-columns: var(--bgb-listspalte) minmax(0, 1fr);
	column-gap: 24px;
	align-items: baseline;
}
.bgb-content .bgb-cards--list .bgb-card:has(> .wp-block-group__inner-container) { display: block; }
.bgb-content .bgb-cards--list .bgb-card h3 {
	/* Linke Spalte wie die Beschriftung der Fakten-Liste (1.9.7b) */
	grid-column: 1;
	margin: 0;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: var(--muted);
	line-height: 1.3;
}
.bgb-content .bgb-cards--list .bgb-card h3 ~ * { grid-column: 2; }
.bgb-content .bgb-cards--list .bgb-card p { margin-bottom: .5em; }

/* ── Fakten als Matrix (2 Spalten) ── */
.bgb-content .bgb-facts.bgb-facts--matrix,
.bgb-content .bgb-facts.bgb-facts--matrix > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bgb-content .bgb-facts.bgb-facts--matrix:has(> .wp-block-group__inner-container) { display: block; }

/* ── Info-Tabelle ── table.bgb-kv (Thema | Information) */
.bgb-content .wp-block-table.bgb-kv table { table-layout: fixed; }
.bgb-content .wp-block-table.bgb-kv td { text-align: left; padding: 12px 18px; vertical-align: top; font-size: var(--fs-text); line-height: 1.6; }
.bgb-content .wp-block-table.bgb-kv td:first-child {
	width: 32%;
	font-weight: 700;
	color: var(--ink);
	background: color-mix(in srgb, var(--cat, #4A6580) 8%, #fff);
	border-right: 3px solid var(--cat, var(--cat-fallback));
}
.bgb-content .wp-block-table.bgb-kv tr:first-child td { border-top: 0; }
.bgb-content .wp-block-table.bgb-kv a { color: var(--ink); }

@media (max-width: 640px) {
	.bgb-content .bgb-cards--list .bgb-card,
	.bgb-content .bgb-cards--list .bgb-card > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.bgb-content .bgb-cards--list .bgb-card h3 ~ * { grid-column: 1; }
	.bgb-content .bgb-cards--list .bgb-card h3 { margin-bottom: .4em; }
	.bgb-content .bgb-facts.bgb-facts--matrix > .wp-block-group__inner-container { grid-template-columns: 1fr 1fr; }
	.bgb-content .wp-block-table.bgb-kv td { display: block; width: auto; border-right: 0; padding: 8px 14px; }
	.bgb-content .wp-block-table.bgb-kv td:first-child { width: auto; border-right: 0; border-top: 1px solid #eef0f2; padding-bottom: 4px; }
	.bgb-content .wp-block-table.bgb-kv tr:first-child td:first-child { border-top: 0; }
	.bgb-content .wp-block-table.bgb-kv td:last-child { border-top: 0; }
}

/* Zweispaltige Text-Tabellen linksbündig (Zahlentabellen bleiben zentriert) */
.bgb-content .wp-block-table table:not(:has(td:nth-child(3))) th,
.bgb-content .wp-block-table table:not(:has(td:nth-child(3))) td { text-align: left; padding-left: 18px; }

/* ── Fakten einzeilig ── .bgb-facts.bgb-facts--list: eine Kachel pro Zeile,
   Beschriftung links, Wert rechts (mobil untereinander) */
.bgb-content .bgb-facts.bgb-facts--list,
.bgb-content .bgb-facts.bgb-facts--list > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 10px; }
.bgb-content .bgb-facts.bgb-facts--list:has(> .wp-block-group__inner-container) { display: block; }
.bgb-content .bgb-facts--list .bgb-fact,
.bgb-content .bgb-facts--list .bgb-fact > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: var(--bgb-listspalte) minmax(0, 1fr);
	column-gap: 24px;
	align-items: baseline;
}
.bgb-content .bgb-facts--list .bgb-fact:has(> .wp-block-group__inner-container) { display: block; }
.bgb-content .bgb-facts--list .bgb-fact .bgb-fact__label { margin-bottom: 0; }
@media (max-width: 640px) {
	.bgb-content .bgb-facts.bgb-facts--list > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.bgb-content .bgb-facts--list .bgb-fact,
	.bgb-content .bgb-facts--list .bgb-fact > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.bgb-content .bgb-facts--list .bgb-fact .bgb-fact__label { margin-bottom: 4px; }
}
@media (max-width: 420px) {
	.bgb-content .bgb-facts.bgb-facts--matrix,
	.bgb-content .bgb-facts.bgb-facts--matrix > .wp-block-group__inner-container { grid-template-columns: 1fr; }
}

/* Stand-Zeile (z. B. Datenschutzerklärung) */
.bgb-content .bgb-stand { font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); margin-top: 2em; }
.bgb-content .bgc-open-btn { cursor: pointer; }


/* ── Team-Suche: Autocomplete (max. 5 Vorschläge, assets/js/team.js) ── */
.bgt-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 50;
	list-style: none;
	margin: 0;
	padding: 6px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.bgt-suggest[hidden] { display: none; }
.bgt-suggest__opt {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 10px;
	cursor: pointer;
	border-left: 3px solid transparent;
}
.bgt-suggest__opt[aria-selected="true"] {
	background: #EEF4F0;
	border-left-color: var(--color-brand-green, #044D1E);
}
.bgt-suggest__icon {
	flex: 0 0 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #E7EEF6;
	color: #2E5E8C;
}
.bgt-suggest__opt--fach .bgt-suggest__icon { background: #F3ECE3; color: #7A5C2E; }
.bgt-suggest__opt--team .bgt-suggest__icon { background: #E4EFEF; color: #005959; }
.bgt-suggest__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bgt-suggest__label {
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bgt-suggest__label mark { background: rgba(4,77,30,.13); color: inherit; border-radius: 3px; padding: 0 1px; }
.bgt-suggest__sub {
	font-family: var(--sans);
	font-size: 12.5px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bgt-suggest__type {
	flex: 0 0 auto;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid #e3e3e3;
	border-radius: 20px;
	padding: 2px 8px;
}
@media (max-width: 480px) { .bgt-suggest__type { display: none; } }

/* ── Preisliste (z. B. Service › Schulbuffet) ───────────────────
   Gruppe „bgb-preisliste“ mit Tabellen der Klasse „bgb-preise“:
   Rubriken nebeneinander, Preise rechtsbündig mit Ziffern gleicher Breite. */
/* Grid am inneren Container (GeneratePress gibt Gruppen mit
   .wp-block-group__inner-container aus), sonst direkt an der Gruppe. */
.bgb-content .bgb-preisliste > .wp-block-group__inner-container,
.bgb-content .bgb-preisliste:not(:has(> .wp-block-group__inner-container)) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 0 24px;
	align-items: start;
}
.bgb-content .bgb-preisliste { margin-bottom: 1.2em; }
.bgb-content .bgb-preisliste .wp-block-table { margin: 0 0 24px; }
.bgb-content .bgb-preise table { table-layout: auto; }
.bgb-content .bgb-preise thead th:last-child,
.bgb-content .bgb-preise td:last-child {
	text-align: right;
	padding-right: 18px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	width: 1%;
}
.bgb-content .bgb-preise td:last-child { color: var(--ink); font-weight: 600; }

/* Logo einer Auszeichnung neben dem Text */
.bgb-content .bgb-award-logo { margin: 0 0 1em 1.5em; }
.bgb-content .bgb-award-logo img { border-radius: 0; }
@media (max-width: 600px) {
	.bgb-content .bgb-award-logo { float: none; margin: 0 0 1em; }
}

/* ── Einleitung mit Logo ── Gruppe .bgb-intro: Bild-Block .bgb-intro__logo
   + Absätze (erster mit .bgb-intro__lead). Desktop: Logo links, Text rechts;
   Handy: Logo zentriert über dem Text. (Nachhaltigkeit, seit 1.9.1) */
.bgb-content .bgb-intro,
.bgb-content .bgb-intro > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(120px, 170px) 1fr;
	column-gap: 34px;
	align-items: center;
	align-content: center;
}
.bgb-content .bgb-intro {
	background: #fff;
	border-radius: 14px;
	padding: 26px 30px;
	box-shadow: 0 4px 20px rgba(0,0,0,.06);
	margin: 0 0 2.2em;
}
.bgb-content .bgb-intro:has(> .wp-block-group__inner-container) { display: block; }
.bgb-content .bgb-intro > .wp-block-group__inner-container { margin: 0; }
.bgb-content .bgb-intro .bgb-intro__logo {
	grid-column: 1;
	grid-row: 1 / span 4;
	margin: 0;
	align-self: center;
}
.bgb-content .bgb-intro .bgb-intro__logo img {
	display: block;
	width: 100%;
	max-width: 170px;
	height: auto;
	border-radius: 0;
	margin: 0 auto;
}
.bgb-content .bgb-intro > p,
.bgb-content .bgb-intro > .wp-block-group__inner-container > p { grid-column: 2; margin: 0 0 .7em; }
.bgb-content .bgb-intro > p:last-child,
.bgb-content .bgb-intro > .wp-block-group__inner-container > p:last-child { margin-bottom: 0; }
.bgb-content .bgb-intro .bgb-intro__lead {
	font-size: var(--fs-lead); /* wie jede Einleitung (1.9.7, vorher Cormorant) */
	line-height: 1.6;
	color: var(--ink);
}
/* Einleitung ohne Logo (z. B. Bibliothek, ab 1.9.3): einspaltig */
.bgb-content .bgb-intro:not(:has(.bgb-intro__logo)),
.bgb-content .bgb-intro:not(:has(.bgb-intro__logo)) > .wp-block-group__inner-container { grid-template-columns: 1fr; }
.bgb-content .bgb-intro:not(:has(.bgb-intro__logo)) > p,
.bgb-content .bgb-intro:not(:has(.bgb-intro__logo)) > .wp-block-group__inner-container > p { grid-column: 1; }
@media (max-width: 640px) {
	.bgb-content .bgb-intro,
	.bgb-content .bgb-intro > .wp-block-group__inner-container { grid-template-columns: 1fr; }
	.bgb-content .bgb-intro { padding: 22px 20px; text-align: left; }
	.bgb-content .bgb-intro .bgb-intro__logo { grid-row: auto; margin-bottom: 18px; }
	.bgb-content .bgb-intro .bgb-intro__logo img { max-width: 140px; }
	.bgb-content .bgb-intro > p,
	.bgb-content .bgb-intro > .wp-block-group__inner-container > p { grid-column: 1; }
}

/* ── Fotostreifen (ab 1.9.3) ───────────────────────────────────────
   Galerie-Block mit Klasse „bgb-fotostreifen“: eine Zeile, seitlich
   wischen/scrollen, Pfeil-Knöpfe per bereiche.js, Klick = Lightbox.
   Redaktion: Bilder im Galerie-Block hinzufügen/entfernen/sortieren. */
.bgb-strip { position: relative; margin: 1.5rem 0 2rem; }
.bgb-content .wp-block-gallery.bgb-fotostreifen {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 12px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	padding: 0 0 10px;
	margin: 0;
	scrollbar-width: thin;
}
.bgb-content .wp-block-gallery.bgb-fotostreifen > figure.wp-block-image {
	flex: 0 0 auto !important;
	width: auto !important;
	height: 280px;
	margin: 0 !important;
	scroll-snap-align: start;
	border-radius: 6px;
	overflow: hidden;
}
.bgb-content .wp-block-gallery.bgb-fotostreifen > figure.wp-block-image img {
	height: 100% !important;
	width: auto !important;
	max-width: none;
	object-fit: cover;
	display: block;
}
.bgb-content .wp-block-gallery.bgb-fotostreifen figcaption {
	font-family: var(--sans);
	font-size: var(--fs-mini);
	line-height: 1.35;
	padding: 28px 10px 8px !important;
	color: #fff;
	text-align: left;
	background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)) !important;
}
.bgb-strip__btn {
	position: absolute;
	top: 140px;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: #000;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	padding: 0;
}
.bgb-strip__btn:hover, .bgb-strip__btn:focus { background: #fff; color: #000; }
.bgb-strip__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bgb-strip__btn[disabled] { opacity: 0; pointer-events: none; }
.bgb-strip__btn--prev { left: 8px; }
.bgb-strip__btn--next { right: 8px; }
@media (max-width: 640px) {
	.bgb-content .wp-block-gallery.bgb-fotostreifen > figure.wp-block-image { height: 220px; }
	.bgb-strip__btn { top: 110px; }
}

/* Erasmus+-Logo am Seitenende */
.bgb-content .bgb-logo-ende { max-width: 320px; margin: 2rem auto 0; }

/* ── Instagram-Hinweis ── [bgr_instagram konto="…"] (ab 1.9.4, z. B. Bibliothek)
   Reiner Link (keine Daten von Instagram), gut sichtbar unter der Einleitung. */
.bgb-content .bgb-insta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 1.6em 0 2em;
	padding: 20px 22px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 5px 25px rgba(0,0,0,.08);
	border-left: 4px solid #D62976;
	line-height: 1.45;
}
.bgb-insta__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5 100%);
}
.bgb-insta__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bgb-insta__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--fs-h4);
	line-height: 1.15;
	color: var(--ink, #000);
}
.bgb-insta__text { font-size: var(--fs-small); color: var(--ink, #000); }
.bgb-content .bgb-insta__link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 30px;
	background: #000;
	color: #fff;
	font-family: var(--font-ui);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease;
}
.bgb-content .bgb-insta__link:hover,
.bgb-content .bgb-insta__link:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.bgb-content .bgb-insta__link:focus-visible { outline: 3px solid #D62976; outline-offset: 3px; }
@media (max-width: 640px) {
	.bgb-content .bgb-insta { flex-wrap: wrap; padding: 18px; gap: 14px; }
	.bgb-insta__icon { width: 48px; height: 48px; border-radius: 14px; }
	.bgb-insta__body { flex-basis: calc(100% - 62px); }
	.bgb-content .bgb-insta__link { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.bgb-content .bgb-insta__link { transition: none; }
	.bgb-content .bgb-insta__link:hover { transform: none; }
}

/* ── Fehlerseite 404 (ab 1.9.6) ── Schnellwege als Strichcode-Zeilen,
   gleiche Farben/Symbole wie die Navigation. */
.bgr-404 { max-width: 780px; }
.bgr-404__suche { margin-top: 8px; }
.bgr-404__wege {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}
.bgr-404__wege li { margin: 0; }
.bgr-404__weg {
	display: flex;
	align-items: center;
	min-height: 56px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0,0,0,.06);
	color: var(--ink, #000);
	text-decoration: none;
	font-family: var(--font-ui);
	font-size: 17px;
	font-weight: 600;
	transition: transform .2s ease, box-shadow .2s ease;
}
.bgr-404__balken {
	flex: 0 0 48px;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--weg);
	color: #fff;
}
.bgr-404__balken svg { display: block; }
.bgr-404__label { flex: 1 1 auto; padding: 0 12px 0 16px; }
.bgr-404__pfeil { flex: 0 0 auto; margin-right: 14px; color: #bbb; transition: transform .2s ease, color .2s ease; }
.bgr-404__weg:hover,
.bgr-404__weg:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.bgr-404__weg:hover .bgr-404__pfeil,
.bgr-404__weg:focus-visible .bgr-404__pfeil { color: var(--weg); transform: translateX(3px); }
.bgr-404__weg:focus-visible { outline: 3px solid var(--ink, #000); outline-offset: 3px; }
.bgr-404__hinweis { margin-top: 2.5em; font-size: var(--fs-small); line-height: 1.6; }
.bgr-404__hinweis a { color: inherit; text-decoration-color: var(--color-green-mid, #27AE60); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.bgr-404__weg, .bgr-404__pfeil { transition: none; }
	.bgr-404__weg:hover, .bgr-404__weg:focus-visible { transform: none; }
}
/* Suchfeld breit, Knopf schmal (sonst greift am Handy .bgb-button 100 %) */
.bgr-404__suche input[type="search"] { flex: 1 1 auto; min-width: 0; }
.bgr-404__suche .bgb-button { flex: 0 0 auto; justify-content: center; }
/* Handy: Karten-Liste mit gleichem Innenabstand wie die Fakten-Liste (1.9.7b) */
@media (max-width: 640px) {
	.bgb-content .bgb-cards--list .bgb-card { padding: 14px 14px; }
}
