/*
Theme Name: Müggelschlößchen-Schule
Theme URI: https://ms-schule.de/
Author: IT-Service & Consulting Aegerter
Description: Schlankes, schnelles Schul-Theme für die Müggelschlößchen-Schule. Klassischer Seitenkopf mit Begrüßung und Logo, Menüleiste in Petrol mit Dropdown-Untermenüs und Suchfeld, Inhalt mit rechter Seitenleiste und dunkle Fußzeile. Übersichtliche Beitragslisten mit Vorschaubild, Datum und Auszug, ähnliche Beiträge unter jedem Beitrag, barrierearme Navigation per Tastatur und Touch, Skip-Link und gut sichtbarer Fokus. Ohne jQuery, ohne externe Schriften und ohne Baukasten – alle Farben und Abstände stehen fest im Code. Logo, Website-Icon, Menüs und Widgets werden wie gewohnt im WordPress-Backend gepflegt.
Version: 1.0.11
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: msschule
Update URI: false
*/

/* ==========================================================================
   Farben und Grundwerte (übernommen von der bisherigen Seite)
   ========================================================================== */

:root {
	--ms-text: #57463e;          /* Fließtext */
	--ms-ueberschrift: #2b2b2b;  /* Überschriften, Widget-Titel */
	--ms-gedaempft: #6b6b6b;     /* Datum, Metadaten */
	--ms-petrol: #4a7b8a;        /* Menüleiste und Links; bisher #4d8090, minimal dunkler für Kontrast 4,5:1 */
	--ms-link-hover: #bd4e5a;
	--ms-primaer: #bd4e5a;       /* Knöpfe, aktive Seitenzahl */
	--ms-linie: #ececec;
	--ms-linie-mittel: rgba(0, 0, 0, .22);
	--ms-schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Basis
   ========================================================================== */

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
	margin: 0;
	background: #fff;
	color: var(--ms-text);
	font-family: var(--ms-schrift);
	font-size: 16px;
	line-height: 1.618;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	margin: 0 0 .5408em;
	color: var(--ms-ueberschrift);
	font-family: var(--ms-schrift);
	font-weight: 400;
}
h1 { font-size: 2.2em; line-height: 1.216; }
h2 { font-size: 1.8em; line-height: 1.216; }
h3 { font-size: 1.55em; line-height: 1.3; }
h4 { font-size: 1.35em; line-height: 1.3; }
h5 { font-size: 1.15em; line-height: 1.3; }
h6 { font-size: 1em; line-height: 1.3; }
h2 + h3 { border-top: 1px solid var(--ms-linie); padding-top: .5408em; }
/* Überschriften im Inhalt kleiner als der Seitentitel (h1 in der Titelleiste: 1.35em) */
.entry-content h2 { font-size: 1.25em; line-height: 1.3; }
.entry-content h3 { font-size: 1.1em; line-height: 1.35; }
.entry-content h4 { font-size: 1em; line-height: 1.4; font-weight: 600; }

p { margin: 0 0 1.41575em; }
ul, ol { margin: 0 0 1.618em 2.618em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; margin-left: 2.618em; }
dt { font-weight: 700; }
dd { margin: 0 0 1.618em; }
hr { height: 1px; margin: 0 0 1.618em; border: 0; background: var(--ms-linie); }
img { max-width: 100%; height: auto; }
figure { margin: 1em 0; }
iframe { max-width: 100%; }
blockquote, cite, em, i, dfn { font-style: italic; }
b, strong { font-weight: 700; }

a {
	color: var(--ms-petrol);
	text-decoration: none;
	transition: color .14s ease-out;
}
a:hover, a:focus { color: var(--ms-link-hover); }

table { width: 100%; max-width: 100%; margin-bottom: 2.29em; border-collapse: collapse; }
th, td { padding: .65em 1em; border-bottom: 1px solid var(--ms-linie); font-size: .9em; text-align: left; vertical-align: top; }
th { border-bottom-width: 2px; color: var(--ms-ueberschrift); font-weight: 600; }
/* Spalten richten sich nach dem Inhalt, auch bei Tabellen mit „feste Breite“ aus dem Editor. */
.entry-content .wp-block-table table { table-layout: auto; }
.entry-content .wp-block-table { overflow-x: auto; margin-bottom: 2em; }
.entry-content .wp-block-table table { margin-bottom: 0; }

pre { max-width: 100%; overflow: auto; padding: 1.618em; background: #f9f9f9; }
code, kbd { padding: .15em .54em; border-radius: 2px; background: #f4f4f4; font-family: Monaco, Consolas, "Andale Mono", monospace; }

/* Barrierefreiheit: Text nur für Screenreader, Skip-Link, Fokus */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: var(--ms-ueberschrift);
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
:focus-visible {
	outline: 2px solid var(--ms-petrol);
	outline-offset: 2px;
}
#inhalt:focus { outline: 0; }

/* Formulare */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], select, textarea {
	width: 100%;
	max-width: 100%;
	height: 2.6em;
	padding: 0 .75em;
	border: 1px solid var(--ms-linie-mittel);
	border-radius: 3px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
	color: var(--ms-text);
	font: inherit;
}
textarea { min-height: 130px; padding: .575em .875em; }
input:focus, select:focus, textarea:focus { border-color: rgba(0, 0, 0, .5); }
label { color: var(--ms-text); }

button[type="submit"]:not(.suchknopf), input[type="submit"], input[type="button"],
.wp-block-button__link:not(.has-background) {
	background: var(--ms-primaer);
}
button[type="submit"]:not(.suchknopf), input[type="submit"], input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6em;
	padding: 0 1.3em;
	border: 0;
	border-radius: 3px;
	color: #fff;
	font: inherit;
	font-weight: 500;
	line-height: 2.5em;
	cursor: pointer;
}
.wp-block-button__link:not(.has-text-color) { color: #fff; }
.wp-block-button__link:hover { background-image: linear-gradient(rgba(255, 255, 255, .13), rgba(255, 255, 255, .13)); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid; background: transparent; color: inherit; }

/* Suchformular (allgemein) */
.suchformular { position: relative; display: flex; max-width: 100%; margin-bottom: 2em; }
.suchformular .suchfeld { padding-right: 3em; }
.suchknopf {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	padding: 0 14px;
	border: 0;
	background: transparent;
	color: var(--ms-gedaempft);
	cursor: pointer;
}
.suchknopf:hover { color: var(--ms-text); }
.suchknopf .icon { width: 18px; height: 18px; }

/* ==========================================================================
   Raster und Inhaltsbereich
   ========================================================================== */

.container {
	max-width: 1248px;
	margin: 0 auto;
	padding: 0 2em;
}

.site-content { background: #fff; }
.inhalt-raster { display: flex; flex-wrap: wrap; margin: 0 -1em; }
.content-area,
.sidebar-primary {
	min-width: 0;
	padding: 2.617924em 1em;
}
.content-area { flex: 0 0 100%; max-width: 100%; }
.mit-seitenleiste .content-area { flex-basis: 75%; max-width: 75%; }
.sidebar-primary { flex: 0 0 25%; max-width: 25%; }

@media (min-width: 768px) {
	.mit-seitenleiste .content-area { border-right: 1px solid var(--ms-linie); }
	.mit-seitenleiste .content-inner { padding-right: 1em; }
	.sidebar-inner { padding-left: 1em; }
}
@media (max-width: 767px) {
	.container { padding: 0 1em; }
	.mit-seitenleiste .content-area,
	.sidebar-primary { flex-basis: 100%; max-width: 100%; }
	.sidebar-primary { padding-top: 0; }
}

/* Titelleiste unter dem Menü (Seiten und Archive) */
.titelleiste {
	padding: 21px 0 22px;
	border-bottom: 1px solid var(--ms-linie);
	word-break: break-word;
}
.titelleiste-titel { margin: 0; font-size: 1.35em; line-height: 1.3; }

/* Überschrift im Inhalt (Suche, 404) */
.page-title { word-wrap: break-word; }
.seitenkopf .page-title {
	margin-bottom: 35px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ms-linie);
}

/* ==========================================================================
   Seitenkopf
   ========================================================================== */

.kopf-oben {
	position: relative;
	z-index: 2;
	background: #fff;
	box-shadow: 0 1px 2px 0 #e1e5ea;
}
.kopf-oben-innen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	min-height: 80px;
}
.kopf-text {
	margin: 0;
	color: var(--ms-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}
.kopf-logo { flex: 0 0 auto; line-height: 0; }
.kopf-logo { padding: 6px 0; }
.kopf-logo img { display: block; width: auto; height: auto; max-height: 96px; } /* Kopf kompakter, weniger Leerraum */

/* Menüleiste */
.kopf-leiste { position: relative; z-index: 50; background: var(--ms-petrol); color: #fff; }
.kopf-leiste-innen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-height: 55px;
}
.kopf-leiste :focus-visible { outline-color: #fff; }

.menue-knopf {
	display: none;
	align-items: center;
	gap: .6em;
	margin: 0 auto;
	padding: 10px 14px;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
}
.menue-knopf-symbol,
.menue-knopf-symbol::before,
.menue-knopf-symbol::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transition: transform .2s ease, background-color .2s ease;
}
.menue-knopf-symbol { position: relative; }
.menue-knopf-symbol::before,
.menue-knopf-symbol::after { position: absolute; left: 0; content: ""; }
.menue-knopf-symbol::before { top: -7px; }
.menue-knopf-symbol::after { top: 7px; }
.menue-knopf[aria-expanded="true"] .menue-knopf-symbol { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-knopf-symbol::before { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf-symbol::after { transform: translateY(-7px) rotate(-45deg); }

.hauptmenue-bereich { display: flex; flex: 1 1 auto; align-items: center; gap: 1em; min-width: 0; }
.hauptmenue { flex: 1 1 auto; min-width: 0; }
.hauptmenue ul { margin: 0; padding: 0; list-style: none; }
.hauptmenue .menu { display: flex; flex-wrap: wrap; }
.hauptmenue li { position: relative; display: flex; flex-wrap: wrap; margin: 0; }
.hauptmenue a { display: block; }

/* Erste Ebene */
.hauptmenue .menu > li > a {
	position: relative;
	padding: 12px 13px;
	color: #fff;
	font-size: .85em;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}
.hauptmenue .menu > li.menu-item-has-children > a { padding-right: 4px; }
/* Unterstrich bei aktivem Eintrag und beim Überfahren */
.hauptmenue .menu > li > a::before {
	position: absolute;
	bottom: 6px;
	left: 13px;
	width: 0;
	height: 2px;
	background: currentColor;
	content: "";
	transition: width .3s ease;
}
.hauptmenue .menu > li:hover > a::before,
.hauptmenue .menu > li > a:focus::before,
.hauptmenue .menu > .current-menu-item > a::before,
.hauptmenue .menu > .current-menu-ancestor > a::before { width: calc(100% - 26px); }
.hauptmenue .menu > li.menu-item-has-children:hover > a::before,
.hauptmenue .menu > li.menu-item-has-children > a:focus::before,
.hauptmenue .menu > .current-menu-ancestor.menu-item-has-children > a::before,
.hauptmenue .menu > .current-menu-item.menu-item-has-children > a::before { width: calc(100% - 17px); }

/* Untermenü-Knopf (kleiner Pfeil) */
.untermenue-knopf {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 13px 0 5px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.untermenue-knopf::before {
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border: solid currentColor;
	border-width: 0 1px 1px 0;
	content: "";
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.ist-offen > .untermenue-knopf::before { margin-top: 3px; transform: rotate(-135deg); }

/* Untermenüs (Desktop) */
.hauptmenue .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 99;
	width: 14em;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .1), 0 4px 15px 0 rgba(0, 0, 0, .1);
	text-align: left;
	visibility: hidden;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hauptmenue .sub-menu .sub-menu { top: 0; left: 100%; }
.hauptmenue .ist-offen > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.hauptmenue .sub-menu li { width: 100%; flex-wrap: nowrap; }
.hauptmenue .sub-menu a {
	flex: 1 1 auto;
	padding: 9px 15px;
	color: #666;
	font-size: .9em;
	line-height: 1.5;
	transition: background-color .15s ease-out, color .15s ease-out;
}
.hauptmenue .sub-menu a:hover,
.hauptmenue .sub-menu a:focus { background: rgba(0, 0, 0, .03); color: #222; }
.hauptmenue .sub-menu .current-menu-item > a { color: #222; }
.hauptmenue .sub-menu .untermenue-knopf { padding: 0 12px; color: #666; }
.hauptmenue .sub-menu .untermenue-knopf::before { margin: 0; transform: rotate(-45deg); }
.hauptmenue .sub-menu :focus-visible { outline-color: var(--ms-petrol); outline-offset: -2px; }

@media (min-width: 1025px) and (hover: hover) {
	.hauptmenue li:hover > .sub-menu { visibility: visible; opacity: 1; transform: none; }
}

/* Suchfeld in der Menüleiste */
.kopf-suche { flex: 0 1 220px; min-width: 150px; margin-left: auto; }
.kopf-suche .suchformular { margin: 0; }
.kopf-suche .suchfeld {
	height: 2.25em;
	border-color: rgba(255, 255, 255, .6);
	background: rgba(255, 255, 255, .14);
	box-shadow: none;
	color: #fff;
}
.kopf-suche .suchfeld::placeholder { color: rgba(255, 255, 255, .9); opacity: 1; }
.kopf-suche .suchfeld:focus { border-color: #fff; background: rgba(255, 255, 255, .22); }
.kopf-suche .suchknopf { color: #fff; }

/* Tablet und Handy: Menü-Knopf, ausklappbares Menü */
@media (max-width: 1024px) {
	.kopf-logo { display: none; }
	.kopf-oben-innen { justify-content: center; text-align: center; }

	.js .menue-knopf { display: inline-flex; }
	.hauptmenue-bereich { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
	.js .hauptmenue-bereich { display: none; }
	.js .hauptmenue-bereich.ist-offen { display: flex; }

	.hauptmenue .menu { display: block; margin: 0 -1em; }
	.hauptmenue li { border-top: 1px solid rgba(255, 255, 255, .15); }
	.hauptmenue .menu > li > a,
	.hauptmenue .sub-menu a {
		flex: 1 1 0%;
		padding: 13px 1em;
		color: #fff;
		font-size: .95em;
		line-height: 1.3;
	}
	.hauptmenue .menu > li.menu-item-has-children > a { padding-right: 1em; }
	.hauptmenue .menu > li > a::before { display: none; }
	.hauptmenue .untermenue-knopf,
	.hauptmenue .sub-menu .untermenue-knopf {
		flex: 0 0 52px;
		padding: 0;
		border-left: 1px solid rgba(255, 255, 255, .15);
		color: #fff;
	}
	.hauptmenue .sub-menu .untermenue-knopf::before { margin-top: -3px; transform: rotate(45deg); }
	.hauptmenue .sub-menu .ist-offen > .untermenue-knopf::before { margin-top: 3px; transform: rotate(-135deg); }

	.hauptmenue .sub-menu,
	.hauptmenue .sub-menu .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		width: auto;
		border-radius: 0;
		background: rgba(0, 0, 0, .12);
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}
	.hauptmenue .ist-offen > .sub-menu,
	html:not(.js) .hauptmenue .sub-menu { display: block; }
	.hauptmenue .sub-menu li { flex-wrap: wrap; }
	.hauptmenue .sub-menu a { padding-left: 2em; }
	.hauptmenue .sub-menu .sub-menu a { padding-left: 3em; }
	.hauptmenue .sub-menu a:hover,
	.hauptmenue .sub-menu a:focus,
	.hauptmenue .sub-menu .current-menu-item > a { background: rgba(0, 0, 0, .08); color: #fff; }
	.hauptmenue .sub-menu :focus-visible { outline-color: #fff; }

	.kopf-suche { flex: 0 0 auto; width: 100%; min-width: 0; margin: 0; padding: 12px 0 16px; }
	.titelleiste { padding: 19px 0 20px; }
}

@media (max-width: 568px) {
	.kopf-oben-innen { min-height: 33px; }
	.kopf-text { margin: 20px; }
	.titelleiste { padding: 18px 0 20px; }
}

/* ==========================================================================
   Seiteninhalt und Blöcke
   ========================================================================== */

.entry-content > * { margin-left: auto; margin-right: auto; }
.entry-content > :not(.alignwide):not(.alignfull) { max-width: var(--wp--style--global--content-size, 863px); }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content ul:not(:is(ul, ol) ul),
.entry-content ol:not(:is(ul, ol) ol) { margin-top: 1.5em; margin-bottom: 1.5em; list-style-position: outside; }
.entry-content > div[class*="wp-block-"] { margin-bottom: var(--wp--style--block-gap, 0); }

/* Ausrichtung (klassischer Editor und Blöcke) */
.alignleft { float: left; margin: .3em 1.41575em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.41575em; }
/* Umflossene Bilder im Inhalt: mehr Luft zum Text, runde Ecken und leichter Schatten */
.entry-content .alignright, .entry-content .wp-block-image .alignright { margin: .35em 0 1.2em 2em; }
.entry-content .alignleft, .entry-content .wp-block-image .alignleft { margin: .35em 2em 1.2em 0; }
.entry-content :is(.alignright, .alignleft) img { border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); }
@media (max-width: 600px) { .entry-content :is(.alignright, .alignleft) { float: none; margin: 1em auto; } }
/* Spaltenblöcke: fester Abstand (blockGap ist im theme.json aus), Bilder darin wie umflossene Bilder */
.entry-content .wp-block-columns { gap: 2em; }
.entry-content .wp-block-column > .wp-block-image img { border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); }
/* Fotos in Beiträgen und Seiten: runde Ecken und leichter Schatten wie auf der Startseite (nur JPG/WebP, Logos und Grafiken bleiben flach) */
.entry-content .wp-block-image :is(img[src*=".jpg"], img[src*=".jpeg"], img[src*=".webp"]) { border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); }
.entry-content .wp-block-gallery .wp-block-image :is(img[src*=".jpg"], img[src*=".jpeg"], img[src*=".webp"]) { border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--ms-gedaempft); font-size: .875em; }

.wp-block-image img { display: block; }
.wp-block-gallery:not(.components-placeholder) { margin: 1.5em auto; }
/* Galerie-Abstand: ohne gültigen Wert rechnet WordPress die Spaltenbreite (50 % minus Abstand) nicht, dann wird jedes Bild volle Breite. */
body .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 16px; gap: 16px; }

.wp-block-table { display: block; overflow-x: auto; }
.wp-block-table td, .wp-block-table th { padding: .75em .85em; border: 0; border-bottom: 1px solid var(--ms-linie); }
.wp-block-table thead { border-bottom: 2px solid var(--ms-linie-mittel); }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f9f9f9; }

.wp-block-list li { margin-bottom: 6px; margin-left: 1em; }
.wp-block-separator { max-width: 100px; margin: 3em auto; border: 0; border-bottom: 2px solid var(--ms-linie); }
.wp-block-separator.is-style-wide { max-width: none; }
.wp-block-embed.is-type-video > .wp-block-embed__wrapper { position: relative; height: 0; padding-top: 56.25%; }
.wp-block-embed.is-type-video > .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-block-image.is-style-rounded img { border-radius: 12px; }

/* Zitate: Karte mit großen Anführungszeichen vorne und hinten */
blockquote,
.wp-block-quote {
	position: relative;
	margin: 2em 0;
	padding: 1.5em 3em;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #eef5f6 0%, #faf4f2 100%);
	font-size: 1.15em;
	font-weight: 300;
	line-height: 1.6;
}
blockquote::before,
blockquote::after {
	position: absolute;
	font: 700 4.2em/1 Georgia, "Times New Roman", serif;
	pointer-events: none;
	opacity: .45;
}
blockquote::before { content: "\201C"; top: .08em; left: .18em; color: var(--ms-petrol); }
blockquote::after { content: "\201D"; bottom: -.38em; right: .18em; color: var(--ms-primaer); }
blockquote > * { margin-left: 0; margin-right: 0; }
blockquote p:last-of-type { margin-bottom: 0; }
/* Quellenangabe: cite oder kleiner Absatz am Ende */
blockquote cite,
blockquote > p.has-small-font-size:last-child {
	display: block;
	margin-top: .9em;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	color: var(--ms-gedaempft);
	letter-spacing: .02em;
}
blockquote cite::before,
blockquote > p.has-small-font-size:last-child::before { content: "\2014\00a0"; color: var(--ms-primaer); }
.wp-block-pullquote { padding: 3em 0; border-top: 4px solid var(--ms-linie); border-bottom: 4px solid var(--ms-linie); text-align: center; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; background: none; }
.wp-block-pullquote blockquote::before,
.wp-block-pullquote blockquote::after { content: none; }
@media (max-width: 600px) {
	blockquote, .wp-block-quote { padding: 1.3em 1.9em; }
	blockquote::before, blockquote::after { font-size: 3.2em; }
}
.has-small-font-size { font-size: 13px; }

/* Startseite: Leitbild-Zitat ausgewogen umbrechen; der Zeilenumbruch im Text bleibt (sonst kleben Wörter zusammen) */
.home .entry-content > .wp-block-quote { font-size: 1.1em; }
.home .entry-content > .wp-block-quote p { text-wrap: balance; }

/* Startseite: Abschnittskopf „Aktuelles“ direkt vor der Beitragsliste */
.home .entry-content > :is(h2, h3):has(+ .wp-block-latest-posts) {
	margin-top: 2.5em;
	margin-bottom: .6em;
	padding-top: .6em;
	border-top: 2px solid var(--ms-petrol);
	font-size: 1.25em;
}
.home .entry-content > :is(h2, h3):has(+ .wp-block-latest-posts) a { color: inherit; }
.home .entry-content > :is(h2, h3):has(+ .wp-block-latest-posts) a::after { margin-left: .35em; color: var(--ms-petrol); content: "→"; }
.home .entry-content > :is(h2, h3):has(+ .wp-block-latest-posts) a:hover { color: var(--ms-link-hover); }

/* ==========================================================================
   Beitragslisten: Block „Neueste Beiträge“ und Aktuelles/Archive/Suche (gleiche Optik)
   ========================================================================== */

.beitragsliste { margin-bottom: 2em; }
.eintrag,
.entry-content .wp-block-latest-posts:not(.is-grid) > li {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 16px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.eintrag:first-child,
.entry-content .wp-block-latest-posts:not(.is-grid) > li:first-child { padding-top: 0; }
.eintrag.hat-bild { grid-template-columns: 160px 1fr; }
.eintrag-bild,
.entry-content .wp-block-latest-posts__featured-image { display: block; line-height: 0; }
.eintrag-bild img,
.entry-content .wp-block-latest-posts:not(.is-grid) .wp-block-latest-posts__featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	object-fit: cover;
}
.eintrag-titel { margin: 0 0 .15em; font-size: 1.15em; font-weight: 600; line-height: 1.3; }
.eintrag-titel a { color: var(--ms-ueberschrift); }
.eintrag-titel a:hover, .eintrag-titel a:focus { color: var(--ms-link-hover); }
.eintrag-datum { margin: 0 0 .3em; color: var(--ms-gedaempft); font-size: .8em; }
.eintrag-art {
	display: inline-block;
	margin-right: .5em;
	padding: 0 .5em;
	border-radius: 3px;
	background: #f1f1f1;
	color: var(--ms-text);
	font-size: .9em;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.eintrag-auszug p { margin: 0; }
.eintrag-auszug,
.entry-content .wp-block-latest-posts__post-excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	color: var(--ms-gedaempft);
	font-size: .95em;
}

/* Block „Neueste Beiträge“: Bild links über alle Zeilen, Text rechts */
.entry-content .wp-block-latest-posts:not(.is-grid) { margin: 0; padding: 0; list-style: none; }
.entry-content .wp-block-latest-posts:not(.is-grid) > li:has(> .wp-block-latest-posts__featured-image) {
	grid-template-columns: 160px 1fr;
	grid-template-rows: auto auto 1fr;
}
.entry-content .wp-block-latest-posts:not(.is-grid) > li > * { grid-column: -2; }
.entry-content .wp-block-latest-posts:not(.is-grid) .wp-block-latest-posts__featured-image {
	grid-column: 1;
	grid-row: 1 / span 3;
	float: none;
	margin: 0;
}
.entry-content .wp-block-latest-posts__post-title { color: var(--ms-ueberschrift); font-size: 1.15em; font-weight: 600; line-height: 1.3; }
.entry-content .wp-block-latest-posts__post-title:hover,
.entry-content .wp-block-latest-posts__post-title:focus { color: var(--ms-link-hover); }
.entry-content .wp-block-latest-posts__post-date { display: block; margin: .15em 0 .3em; color: var(--ms-gedaempft); font-size: .8em; }
.entry-content .wp-block-latest-posts__post-excerpt { margin: 0; }

@media (max-width: 568px) {
	.eintrag.hat-bild,
	.entry-content .wp-block-latest-posts:not(.is-grid) > li:has(> .wp-block-latest-posts__featured-image) { grid-template-columns: 96px 1fr; column-gap: 12px; }
	.eintrag-titel,
	.entry-content .wp-block-latest-posts__post-title { font-size: 1.05em; }
}

/* Seitennummerierung */
.pagination { margin: 2em 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .nav-links > * {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--ms-linie-mittel);
	border-radius: 3px;
	color: var(--ms-gedaempft);
	font-weight: 500;
	letter-spacing: .8px;
	text-transform: uppercase;
}
.pagination .nav-links .current,
.pagination .nav-links a:hover,
.pagination .nav-links a:focus { border-color: var(--ms-primaer); background: var(--ms-primaer); color: #fff; }
.pagination .nav-links .dots { border-color: transparent; }

/* ==========================================================================
   Einzelner Beitrag
   ========================================================================== */

.entry-single > * { margin-bottom: 1.41575em; }
.entry-single > :last-child { margin-bottom: 0; }
.entry-single .entry-title { margin-bottom: .5408em; font-size: 1.8em; line-height: 1.216; word-wrap: break-word; }

.entry-meta,
.post-navigation .meta-nav,
.aehnlich-datum {
	color: var(--ms-gedaempft);
	font-size: .72em;
	line-height: 1.2;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.entry-meta .meta-item { display: inline-block; padding: 5px 0; }
.entry-meta .sep { margin: 0 8px; }
.entry-meta a { color: var(--ms-gedaempft); }
.entry-meta a:hover, .entry-meta a:focus { color: var(--ms-link-hover); }
.icon { display: inline-block; vertical-align: -.125em; }

.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.entry-tags .icon { color: var(--ms-gedaempft); }
.entry-tags-label { color: var(--ms-gedaempft); font-size: .9em; }
.entry-tags .thema {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 6px 3px 12px; border: 1px solid #c9d6da; border-radius: 999px;
	background: #f4f8f9; color: var(--ms-petrol); font-size: .9em; text-decoration: none;
}
.entry-tags .thema:hover, .entry-tags .thema:focus { border-color: var(--ms-petrol); background: var(--ms-petrol); color: #fff; }
.thema-anzahl { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ms-gedaempft); font-size: .8em; line-height: 1; box-sizing: border-box; }
.archiv-hinweis { color: var(--ms-gedaempft); }

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2%;
	padding: 16px 0 15px;
	border-top: 1px solid var(--ms-linie);
	border-bottom: 1px solid var(--ms-linie);
}
.post-navigation .nav-previous,
.post-navigation .nav-next { width: 49%; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation a { display: flex; align-items: center; gap: 12px; color: inherit; }
.post-navigation .nav-next a { flex-direction: row-reverse; }
.post-navigation .nav-bild { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.post-navigation .nav-text { min-width: 0; }
.post-navigation a:hover .post-title, .post-navigation a:focus .post-title { color: var(--ms-link-hover); }
.post-navigation .meta-nav { display: block; margin-bottom: 5px; }
.post-navigation .post-title { display: block; font-size: 1.05em; line-height: 1.3; color: var(--ms-petrol); }
.post-navigation .nav-datum { display: block; margin-top: 3px; color: var(--ms-gedaempft); font-size: .8em; }

/* Ähnliche Beiträge */
.aehnliche-titel { margin-bottom: .41575em; font-size: 1.35em; line-height: 1.3; }
.aehnliche-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2em; }
.aehnlich { margin-bottom: 1em; }
.aehnlich-bild { display: block; margin-bottom: .5em; line-height: 0; }
.aehnlich-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.aehnlich-platzhalter { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(135deg, #eef5f6, #faf4f2); color: var(--ms-petrol); font: 700 3em/1 Georgia, serif; opacity: .8; }
.aehnlich-titel { margin: 0 0 .3em; font-size: 1.1em; line-height: 1.3; }
.aehnlich-titel a { color: inherit; }
.aehnlich-titel a:hover, .aehnlich-titel a:focus { color: var(--ms-link-hover); }
.aehnlich-datum { margin: 0; }
@media (max-width: 568px) {
	.aehnliche-raster { grid-template-columns: 1fr; }
	.post-navigation .nav-links { display: block; }
	.post-navigation .nav-previous,
	.post-navigation .nav-next { width: auto; text-align: left; }
	.post-navigation .nav-next { margin-top: 1em; }
}

.page-links { margin: 2em 0; font-weight: 500; }
.page-links a, .page-links > span { margin: 0 2px; padding: 5px 12px; border: 1px solid var(--ms-linie); }

/* Kommentare (schlicht) */
.kommentare { margin-top: 2.5em; }
.kommentarliste { margin: 0 0 2em; list-style: none; }
.kommentarliste .children { list-style: none; }
.kommentarliste .comment-body { padding: 1em 0; border-bottom: 1px solid var(--ms-linie); }
.kommentarliste .avatar { float: left; margin-right: .75em; border-radius: 50%; }
.kommentarliste .comment-meta { font-size: .85em; }
.comment-form p { margin-bottom: 1em; }
.comment-form label { display: block; font-size: .9em; }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* ==========================================================================
   Seitenleiste und Widgets
   ========================================================================== */

.widget { margin-bottom: 2em; }
/* Seitenleiste: Partner/Sponsoren-Blöcke durch eine Linie von Terminen und Hinweisen absetzen */
.sidebar-inner > .widget:not(.widget_block) + .widget_block,
.sidebar-inner > .widget_block:has(h2) { padding-top: 1.6em; border-top: 1px solid var(--ms-linie); }
@media (min-width: 1025px) {
	.sidebar-inner > .widget:last-child { margin-bottom: 0; }
}
.widget-title,
.widget_block h1, .widget_block h2, .widget_block h3,
.widget_block h4, .widget_block h5, .widget_block h6 {
	margin-bottom: 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: inherit;
	text-transform: uppercase;
}
.widget-title { color: var(--ms-ueberschrift); }
.widget_block h1, .widget_block h2, .widget_block h3,
.widget_block h4, .widget_block h5, .widget_block h6 { color: currentColor; }
.widget_block h1 { font-size: 18px; }
.widget_block h3 { font-size: 15px; }
.widget_block h4, .widget_block h5, .widget_block h6 { font-size: 14px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget ul li { margin: 0 0 .6em; }
.widget > :last-child,
.widget .wp-block-image { margin-bottom: 0; }

/* ==========================================================================
   Fußzeile
   ========================================================================== */

.site-footer { position: relative; z-index: 10; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer .widget:last-child { margin-bottom: 0; }
.fuss-oben { padding: 2.5em 0; background: #303030; }
.fuss-unten { padding: 1.5em 0; background: #1a1a1a; font-size: .875em; }
.copyright { margin: 0; }
@media (max-width: 568px) {
	.fuss-unten { text-align: center; }
}
