.bar {
	filter: drop-shadow(0px 3px 30px rgba(0, 0, 0, 0.6));
    width: 100%;
	height: auto;
    background-color: white;
	padding: clamp(20px, 2.1vw, 30px);
    margin-bottom: 0px; /*min. space between this and next div*/
    margin-top: 0px;
}


/* WordPress block content can hold wide images, tables and embeds; without a
   containing block they push the page sideways on phones. */
.bar img,
.bar video,
.bar iframe,
.bar figure {
	max-width: 100%;
	height: auto;
}

.bar table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* The page title — and any Heading block given the "Wie Seitentitel" style
   (inc/seitentitel.php), which is meant to look exactly like it. */
.p-bar,
.p-bar-text .is-style-seitentitel {
	font-size: clamp(28px, 2.8vw, 40px);
	font-family: 'DIN Alternate Bold';
	text-wrap: balance;
	overflow-wrap: break-word;
}

/* The page title was a <div> until October 2026, which left every inner page
   without an <h1> for search engines and screen readers. As a heading it would
   pick up Bootstrap's h1 margin, weight 500 and line-height 1.2; restated to
   what the <div> had, so it looks exactly as before. */
h1.p-bar {
	margin: 0;
	font-weight: normal;
	line-height: 1.5;
}

.ul-bar {
	font-size: 20px;
    font-family: 'DIN Alternate Bold';
}

/*
 * Single-post header: title left, date hard right, sharing a baseline.
 *
 * The date was previously a block of its own between the title and the rule.
 * .hr-bar carries margin-top:-5px — tuned to sit tight under a heading — so the
 * date was pulled into the rule and clipped by it. On one row with the title,
 * the rule keeps its existing relationship to the heading and the date rides
 * along at the same distance.
 */
.p-bar-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px clamp(16px, 2vw, 32px);
}

.p-bar-head .p-bar {
	min-width: 0;
}

.p-bar-meta {
	margin: 0;
	flex: none;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: #5d5d5d;
	white-space: nowrap;
}

/*
 * The optional Untertitel under a page's heading (inc/untertitel.php) — quieter
 * than the heading: the body face at regular weight, in grey (#555, 7.5:1). The
 * bottom margin clears .hr-bar's -5px pull, which is tuned for the rule to sit
 * tight under a heading rather than under this.
 */
.p-bar-subtitle {
	margin: 4px 0 14px;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(17px, 1.5vw, 22px);
	font-weight: 400;
	line-height: 1.35;
	color: #555;
	text-wrap: balance;
}

/*
 * A file download in page content: the Lehrgangsfolder (and, until September
 * 2026, the profiles on Team).
 *
 * WordPress's default file block is a bare blue link beside a dark pill, and on
 * Team the two sat in a row of their own, one wrapped and one not. Here the
 * label is plain text and the button borrows the outline style of the other
 * "go somewhere" buttons on the site (.ieo-more-link, .topbar-home). This lived
 * in team.css, scoped to .ieo-team, until a second page needed it.
 */
.p-bar-text .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 22px 0 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
}

.p-bar-text .wp-block-file a:not(.wp-block-file__button) {
	color: #1c1c1c;
	font-weight: 600;
	text-decoration: none;
}

.p-bar-text .wp-block-file a:not(.wp-block-file__button):hover {
	color: #057e65;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.p-bar-text .wp-block-file .wp-block-file__button {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid #057e65;
	border-radius: 999px;
	background: #fff;
	color: #057e65;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.p-bar-text .wp-block-file .wp-block-file__button:hover,
.p-bar-text .wp-block-file .wp-block-file__button:focus-visible {
	background: #057e65;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.p-bar-text .wp-block-file .wp-block-file__button {
		transition: none;
	}
}

.p-bar-back {
	margin: 28px 0 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
}

.p-bar-back a {
	color: var(--brand-teal-ink);
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.p-bar-back a:hover,
.p-bar-back a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * "Mehr dazu" — a link from a line of page content to the page that covers it
 * in depth; first used from the second point on Beratung to Ethikarbeit
 * entwickeln und gestalten. Put class="ieo-more-link" on the <a> in the editor.
 *
 * A button on its own line under the text it belongs to, drawn like the
 * "Zurück zur Startseite" button (.topbar-home): teal outline on white, filling
 * teal on hover. It began as a plain 15px teal text link, which under 20px body
 * text got lost — the customer's word was "geht unter". Borrowing the one
 * button every inner page already carries makes it read as a way onward
 * without inventing a new style, and without competing with the yellow Anfrage
 * box that follows it on Beratung.
 *
 * #057e65 rather than --brand-teal-ink, for the reason topbar.css gives: the
 * token is 4.31:1 on white, which bold text at this size does not pass. This
 * is the same hue taken to 5.0:1, and white on it on hover is 5.0:1 as well.
 *
 * The arrow is drawn here rather than written into the content as an <i>: the
 * block editor drops empty inline elements when the text around them is edited,
 * and the arrow would quietly disappear.
 */
.ieo-more-link {
	/* flex, sized to its label, so it takes its own line inside the list item
	   rather than running on after the sentence. */
	display: flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	margin-top: 14px;
	padding: 9px 20px;
	min-height: var(--tap);
	/* Pill-shaped on one line (half of the ~46px height); where the label
	   wraps to two lines on a phone it becomes a rounded rectangle rather than
	   a stretched capsule. */
	border-radius: 24px;
	border: 1.5px solid #057e65;
	background-color: #fff;
	color: #057e65;
	font-family: 'Open Sans', sans-serif;
	font-size: clamp(15px, 0.35vw + 12px, 17px);
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ieo-more-link::after {
	flex: none;
	content: '\f061';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 0.85em;
	transition: transform 0.2s ease;
}

/* Colour and decoration restated because Bootstrap's a:hover would otherwise
   turn the label blue and underline it. */
.ieo-more-link:hover,
.ieo-more-link:focus-visible {
	background-color: #057e65;
	color: #fff;
	text-decoration: none;
}

.ieo-more-link:hover::after {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.ieo-more-link,
	.ieo-more-link::after {
		transition: none;
	}
	.ieo-more-link:hover::after {
		transform: none;
	}
}

.hr-bar {
    margin-left: 0px;
    margin-right: 20px;
    margin-top: -5px;
    margin-bottom: 25px;
    border-top-color:black;
}

/*
 * "Wie Seitentitel" (inc/seitentitel.php): a heading in the page content set
 * like the page title — first used for "Mitgliedschaften" on Partner. Its type
 * comes from the .p-bar rule above; this is the rest.
 *
 * Bootstrap gives headings line-height 1.2 and weight 500. Restated to the
 * title's 1.5 and normal weight, so the rule lands at the same distance under
 * the words. The rule is ::after with .hr-bar's -5px pull, its right end 20px
 * short and 25px to the content below — keep the two in step.
 *
 * The space above is the gap between groups on Publikationen.
 */
.p-bar-text .is-style-seitentitel {
	margin: clamp(36px, 4vw, 56px) 0 25px;
	font-weight: normal;
	line-height: 1.5;
}

.p-bar-text .is-style-seitentitel::after {
	content: '';
	display: block;
	margin: -5px 20px 0 0;
	border-top: 1px solid black;
}

.p-bar-text {
	font-size: 20px;
	font-family: 'DIN Alternate Bold';
	/* Editor content contains long URLs, e-mail addresses and UIDs. Without a
	   break opportunity a single one of them widened the document by 76px on a
	   375px screen and produced a horizontal scrollbar. */
	overflow-wrap: break-word;
	text-wrap: pretty;
}

/*
 * An image set beside the text — an Image block with Ausrichtung "rechts" or
 * "links"; first used for the illustration on Ethikarbeit entwickeln und
 * gestalten.
 *
 * Targets figure.alignright / .alignleft, not .wp-block-image: WordPress 7.0
 * renders an aligned Image block as <figure class="alignright size-full">
 * without the block class, so a .wp-block-image selector silently never
 * matched and the image kept floating on a phone.
 *
 * Styled here rather than left to WordPress's block CSS, so the float, its
 * spacing and the phone behaviour belong to the theme. Capped at 300px: the
 * illustrations this is meant for are small hand drawings, and blown up to a
 * share of a wide screen they go soft.
 *
 * On a phone the image stops floating and centres under the text before it. A
 * 300px float on a 390px screen would leave a column of text a few words wide.
 */
.p-bar-text figure.alignright,
.p-bar-text figure.alignleft {
	width: min(40%, 300px);
	margin-top: 6px;
	margin-bottom: 24px;
}

.p-bar-text figure.alignright {
	float: right;
	margin-left: clamp(20px, 3vw, 48px);
	margin-right: 0;
}

.p-bar-text figure.alignleft {
	float: left;
	margin-right: clamp(20px, 3vw, 48px);
	margin-left: 0;
}

.p-bar-text figure.alignright img,
.p-bar-text figure.alignleft img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Contains the float, so a picture beside the last paragraph cannot hang out
   of the bottom of the white card. Scoped with :has() so pages without one
   keep their exact margins. */
.p-bar-text:has(> figure.alignright, > figure.alignleft) {
	display: flow-root;
}

@media (max-width: 640px) {
	.p-bar-text figure.alignright,
	.p-bar-text figure.alignleft {
		float: none;
		width: min(100%, 300px);
		margin: 8px auto 24px;
	}
}

.btn-link {
    color: black !important;
    text-decoration: underline !important;
    font-size: 25px !important;
    font-family: 'DIN Alternate Bold' !important;
    font-weight: 600 !important; 
}