/* brainstrand – Infokasten in der Farbe der Kategorie (Website + Editor) */
:root { --c: #1b3a6b; }
.is-style-bs-infobox {
	--box: var(--c, #1b3a6b);
	position: relative;
	margin: 2.2em 0 !important;
	padding: 1.3em 1.5em 1.35em 1.5em !important;
	background: color-mix(in srgb, var(--box) 9%, #fff);
	border: 1px solid color-mix(in srgb, var(--box) 22%, #fff);
	border-left: 5px solid var(--box);
	border-radius: 14px;
	color: #1d2433;
	font-family: "Brainstrand Notiz", "Brainstrand Text", system-ui, sans-serif;
	font-style: italic;
	font-weight: 400;
	font-size: .98em;
	line-height: 1.65;
}
.is-style-bs-infobox strong, .is-style-bs-infobox b { font-weight: 800; }
.is-style-bs-infobox em, .is-style-bs-infobox i { font-style: italic; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
/* Klassische Themes legen einen inneren Container um den Inhalt – beide Fälle abdecken. */
.is-style-bs-infobox > *,
.is-style-bs-infobox > .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: .7em; }
.is-style-bs-infobox > *:last-child,
.is-style-bs-infobox > .wp-block-group__inner-container > *:last-child { margin-bottom: 0 !important; }
.is-style-bs-infobox > *:first-child,
.is-style-bs-infobox > .wp-block-group__inner-container > *:first-child { margin-top: 0 !important; }
.is-style-bs-infobox a { color: color-mix(in srgb, var(--box) 75%, #000); }
.is-style-bs-infobox .bs-infobox__label {
	display: flex;
	align-items: center;
	gap: .55em;
	margin-bottom: .6em !important;
	font: italic 800 1.08rem/1.2 "Brainstrand Notiz", system-ui, sans-serif;
	letter-spacing: .01em;
	color: color-mix(in srgb, var(--box) 85%, #000);
}
.is-style-bs-infobox .bs-infobox__label::before {
	content: "i";
	display: grid;
	place-items: center;
	flex: none;
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	background: var(--box);
	color: #fff;
	font: 700 .95rem/1 Georgia, "Times New Roman", serif;
	letter-spacing: 0;
	text-transform: none;
}
.bs-infobox--wichtig .bs-infobox__label::before { content: "!"; font-family: system-ui, sans-serif; }
.bs-infobox--merke .bs-infobox__label::before { content: "★"; font-size: .8rem; }
.bs-infobox--studie .bs-infobox__label::before { content: "≡"; font-family: system-ui, sans-serif; }
.is-style-bs-infobox h2, .is-style-bs-infobox h3, .is-style-bs-infobox h4 { margin-top: 0 !important; font-size: 1.15em; font-family: "Brainstrand Notiz", system-ui, sans-serif; font-style: italic; font-weight: 800; }
.is-style-bs-infobox ul, .is-style-bs-infobox ol { padding-left: 1.2em; }

/* Silbentrennung auch im Editor (Vorschau wie im Frontend) */
.editor-styles-wrapper p, .editor-styles-wrapper li, .editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6),
.editor-styles-wrapper .editor-post-title, .editor-styles-wrapper blockquote, .is-style-bs-infobox { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
