/**
 * MKS Insider – Zustände und Komponenten, die theme.json nicht abbildet (Gestaltungssystem B2 „Nachthimmel“).
 * Farben nur als Token (--wp--preset--color--*), Gold nur am Kaufknopf, keine Verläufe außer Cover, Vignette, Lasur.
 */

:root {
	--mks-kopf-hoehe: 76px;
	--mks-rand: var(--wp--custom--rand, clamp(20px, 4vw, 48px));
	--mks-mass: calc(32 * var(--wp--preset--font-size--t-1));
	--mks-adminbar: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 999.98px) {
	:root { --mks-kopf-hoehe: 60px; }
}

.wp-site-blocks > * + *,
main.wp-block-group > * + * {
	margin-block-start: 0;
}

html {
	scroll-padding-top: calc(var(--mks-kopf-hoehe) + var(--mks-adminbar) + 16px);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
}

:where(h1, h2, h3, h4, .wp-block-post-title) {
	font-optical-sizing: auto;
}

/* Zahlen in Fraunces mit Versal- und Tabellenziffern (3.6) */
.mks-zahl {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 500;
	font-size: .94em;
	font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------------ Links und Fokus */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: .28em;
	text-decoration-color: var(--wp--preset--color--messing-dunkel);
}

a:hover {
	text-decoration-thickness: 2px;
}

:where([class*="is-style-nacht"], .mks-kopf, .mks-fuss) a {
	text-decoration-color: var(--wp--preset--color--gravur-mittel);
}

:where([class*="is-style-nacht"], .mks-kopf, .mks-fuss) a:hover {
	text-decoration-color: var(--wp--preset--color--messing);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--tinte);
	outline-offset: 3px;
}

:where([class*="is-style-nacht"], .mks-kopf, .mks-fuss, .wp-block-navigation__responsive-container.is-menu-open) :focus-visible {
	outline-color: var(--wp--preset--color--elfenbein);
}

.skip-link.screen-reader-text:focus {
	z-index: 100000;
	top: 12px;
	left: 16px;
	padding: 12px 18px;
	background: var(--wp--preset--color--elfenbein);
	color: var(--wp--preset--color--nacht-tief);
	font: 700 16px/1.2 var(--wp--preset--font-family--atkinson);
	clip-path: none;
}

/* Pfeil-Link (Textlink mit Pfeil, 44 px Zielfläche) */
.mks-pfeil-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: var(--wp--preset--font-size--t-3);
	line-height: 1.35;
}

.mks-pfeil-link svg {
	flex: none;
	transition: transform 150ms;
}

.mks-pfeil-link:hover svg {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------ Rubrikzeile und Marken */

.mks-rubrik {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--wp--preset--font-family--atkinson);
	font-size: 13px;
	line-height: 17px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--messing-dunkel);
}

:where([class*="is-style-nacht"], .mks-kopf, .mks-fuss) .mks-rubrik {
	color: var(--wp--preset--color--messing);
}

.mks-rubrik__skala {
	flex: none;
	display: block;
}

/* Rubrik aus Kategorien (Beitragskopf): Skala vor den Begriffen */
.wp-block-post-terms.mks-rubrik::before {
	content: "";
	flex: none;
	width: 28px;
	height: 7px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 7'%3E%3Cpath d='M0 0.5H28M0.5 0V7M14 0V7M27.5 0V7M7 0V4M21 0V4' stroke='black' stroke-width='1' fill='none'/%3E%3C/svg%3E") center / 28px 7px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 7'%3E%3Cpath d='M0 0.5H28M0.5 0V7M14 0V7M27.5 0V7M7 0V4M21 0V4' stroke='black' stroke-width='1' fill='none'/%3E%3C/svg%3E") center / 28px 7px no-repeat;
}

.wp-block-post-terms.mks-rubrik a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-terms.mks-rubrik .wp-block-post-terms__separator {
	padding: 0 .4em;
}

/* Sichtbare Freigabe-/Platzhalter-Marke */
.mks-marke {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 3px 9px;
	border: 1px dashed var(--wp--preset--color--messing-dunkel);
	border-radius: 2px;
	font-size: 13px;
	line-height: 17px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--wp--preset--color--graphit);
	vertical-align: middle;
}

/* ------------------------------------------------------------------ Knöpfe */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	min-height: 52px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms, color 150ms, border-color 150ms;
}

/* Kaufen: Gold, nur „Master Class kaufen“ und nur auf Nacht (2.3) */
.wp-block-button.is-style-kaufen .wp-block-button__link {
	min-height: 56px;
	padding: 0 26px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--nacht-tief);
	box-shadow: inset 0 1px 0 rgba(255, 246, 222, .55), inset 0 -1px 0 rgba(70, 48, 8, .35);
}

.wp-block-button.is-style-kaufen .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9h12.5M10.5 4.5L15 9l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9h12.5M10.5 4.5L15 9l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 150ms;
}

.wp-block-button.is-style-kaufen .wp-block-button__link:hover {
	background: #EBCB80;
	color: var(--wp--preset--color--nacht-tief);
}

.wp-block-button.is-style-kaufen .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.wp-block-button.is-style-kaufen .wp-block-button__link:active {
	background: #CDA44B;
	box-shadow: inset 0 2px 0 rgba(70, 48, 8, .35);
	transform: translateY(1px);
}

.wp-block-button.is-style-kaufen .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--elfenbein);
}

/* Kontur: Messing auf Nacht (Kopfzeile, Menü) */
.wp-block-button.is-style-kontur .wp-block-button__link {
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--messing);
	background: transparent;
	color: var(--wp--preset--color--messing);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
}

.wp-block-button.is-style-kontur .wp-block-button__link:hover,
.wp-block-button.is-style-kontur .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--nacht-hoch);
	border-color: var(--wp--preset--color--messing-licht);
	color: var(--wp--preset--color--messing-licht);
}

/* ------------------------------------------------------------------ Kopfzeile (7.1, 7.2) */

/* Der Template-Part-Rahmen (<header>) klebt; er ist direktes Kind von .wp-site-blocks */
.mks-kopfbereich {
	position: sticky;
	top: var(--mks-adminbar);
	z-index: 50;
}

.mks-kopfbereich--still {
	position: relative;
	top: auto;
}

.mks-kopf {
	border-bottom: 1px solid var(--wp--preset--color--linie-nacht);
}

.mks-kopf__zeile {
	min-height: calc(var(--mks-kopf-hoehe) - 1px);
	gap: clamp(8px, calc(4.17vw - 20px), 40px) !important;
}

.mks-wortmarke {
	display: inline-flex;
	align-items: center;
	gap: clamp(8px, calc(5.7vw - 10.3px), 12px);
	min-height: 44px;
	flex: none;
	color: var(--wp--preset--color--elfenbein);
	text-decoration: none;
}

.mks-wortmarke:hover {
	color: var(--wp--preset--color--elfenbein);
}

.mks-wortmarke svg {
	flex: none;
	display: block;
	width: clamp(30px, calc(14.3vw - 15.7px), 40px);
	height: auto;
}

.mks-wortmarke__text {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.mks-wortmarke__name {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(15px, calc(2.86vw + 5.85px), 17px);
	line-height: 1;
	font-weight: 600;
	letter-spacing: -.005em;
	white-space: nowrap;
}

.mks-wortmarke__insider {
	font-size: 13px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--messing);
}

@media (min-width: 1000px) {
	.mks-wortmarke svg { width: 56px; }
	.mks-wortmarke__name { font-size: clamp(17px, calc(2.5vw - 15px), 21px); }
}

/* Hauptmenü: ausgeschrieben ab 1000 px, darunter Menü-Knopf (Overlay) */
.mks-hauptmenue {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
}

.mks-hauptmenue .wp-block-navigation__container {
	column-gap: clamp(12px, calc(2.6vw - 11.5px), 26px);
}

.mks-hauptmenue .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	white-space: nowrap;
}

.mks-hauptmenue .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--elfenbein);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--messing);
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
}

.mks-hauptmenue .current-menu-item > .wp-block-navigation-item__content,
.mks-hauptmenue [aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--messing);
	text-underline-offset: 8px;
}

/* Nur im geöffneten Menü: „Mein Bereich“ und die beiden Knöpfe */
.wp-block-navigation__responsive-container:not(.is-menu-open) .mks-nur-menue {
	display: none !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--wp--preset--color--elfenbein);
}

.wp-block-navigation__responsive-container-open:hover {
	background: var(--wp--preset--color--nacht-hoch);
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 16px var(--mks-rand) 32px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--linie-nacht);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 52px;
	font-size: 17px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-buttons.mks-nur-menue {
	width: 100%;
	margin-top: 16px;
	border: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-buttons.mks-nur-menue .wp-block-button {
	flex: 1 1 220px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-buttons.mks-nur-menue .wp-block-button__link {
	width: 100%;
	min-height: 52px;
	font-size: 16px;
}

/* Overlay-Umschaltung schon unter 1000 px (Kern schaltet erst bei 600 px um) */
@media (min-width: 600px) and (max-width: 999.98px) {
	.mks-hauptmenue .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.mks-hauptmenue .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 999.98px) {
	.mks-hauptmenue {
		order: 3;
		flex: none;
	}

	.mks-kopf__aktionen .mks-mein-bereich,
	.mks-kopf__aktionen .wp-block-buttons {
		display: none;
	}
}

.mks-kopf__aktionen {
	flex: none;
	margin-left: auto;
	gap: clamp(0px, calc(5.7vw - 18.3px), 4px) !important;
}

.mks-mein-bereich {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 4px;
	font-size: 15px;
	white-space: nowrap;
	text-decoration: none;
}

.mks-mein-bereich svg {
	flex: none;
	display: block;
}

@media (max-width: 1179.98px) {
	.mks-mein-bereich span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Suche: Icon-Knopf 44 × 44, Feld klappt aus */
.mks-suche .wp-block-search__button {
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--elfenbein);
}

.mks-suche .wp-block-search__button:hover {
	background: var(--wp--preset--color--nacht-hoch);
}

.mks-suche .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.mks-suche .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}

.mks-suche .wp-block-search__input {
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--gravur-mittel);
	border-radius: 3px;
	background: var(--wp--preset--color--nacht-tief);
	color: var(--wp--preset--color--elfenbein);
	font-size: 15px;
}

/* ------------------------------------------------------------------ Fußzeile (7.17) */

.mks-fuss {
	font-size: 15px;
	line-height: 22px;
}

.mks-fuss__oben {
	gap: 36px 48px !important;
}

.mks-fuss__marke {
	flex: 0 1 392px;
	min-width: min(100%, 260px);
}

.mks-fuss__marke p {
	margin: 16px 0 0;
}

.mks-fuss__spalten {
	flex: 0 1 600px;
	gap: 28px 24px !important;
}

.mks-fuss__spalten > .wp-block-group {
	flex: 1 1 150px;
	min-width: 0;
}

.mks-fuss__unten {
	gap: 8px 32px !important;
}

.mks-fuss__unten p {
	margin: 0;
}

.mks-wortmarke--fuss svg {
	width: 44px;
}

.mks-wortmarke--fuss .mks-wortmarke__name {
	font-size: 19px;
}

.mks-fuss__kopf {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 17px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--messing);
}

.mks-fuss__liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mks-fuss__liste li {
	margin: 0;
}

.mks-fuss__liste a,
.mks-fuss__recht a,
.mks-fuss__recht button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	text-decoration: none;
}

.mks-fuss__liste a:hover,
.mks-fuss__recht a:hover,
.mks-fuss__recht button:hover {
	text-decoration: underline;
}

.mks-fuss__recht {
	display: flex;
	flex-wrap: wrap;
	column-gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mks-fuss__recht button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--elfenbein);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.mks-fuss__leise,
.mks-fuss__leise a {
	color: var(--wp--preset--color--mondgrau);
}

.mks-fuss__unten {
	border-top: 1px solid var(--wp--preset--color--linie-nacht);
}

/* ------------------------------------------------------------------ Brotkrumen */

.mks-brotkrumen ol {
	display: flex;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 22px;
}

.mks-brotkrumen li {
	display: flex;
	align-items: center;
	flex: none;
}

.mks-brotkrumen li[aria-current] {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--wp--preset--color--mondgrau);
}

.mks-brotkrumen a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}

.mks-brotkrumen a:hover {
	text-decoration: underline;
}

.mks-brotkrumen__trenner {
	flex: none;
	padding: 0 10px;
	color: var(--wp--preset--color--mondgrau);
}

/* ------------------------------------------------------------------ Artikelkopf (Nacht) */

.mks-artikelkopf {
	position: relative;
	overflow: hidden;
}

.mks-artikelkopf__raster {
	align-items: start;
}

@media (min-width: 1000px) {
	.mks-artikelkopf__raster {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) clamp(280px, 27.2vw, 392px);
		column-gap: 48px;
	}

	/* Ohne Beitragsbild (viele Beiträge von 2014–2016, ihre Bilddateien fehlen) keine leere Spalte. */
	.mks-artikelkopf__raster:not(:has(.mks-artikelkopf__bild)) {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mks-artikelkopf .wp-block-post-title {
	font-size: clamp(40px, calc(31.1px + 2.29vw), 64px);
	line-height: 1.04;
	letter-spacing: -.016em;
}

.mks-artikelkopf .wp-block-post-excerpt__excerpt,
.mks-unterzeile {
	max-width: 31em;
	color: var(--wp--preset--color--mondgrau);
	font-size: var(--wp--preset--font-size--t-1);
	line-height: 1.6;
}

.mks-artikelkopf .wp-block-post-excerpt__more-text {
	display: none;
}

/* Autorzeile: Siegel der Marke, „Redaktion Master Key System Insider“, „Aktualisiert am … · n Minuten Lesezeit“.
   Marke statt Person (ADR 0003): Siegel statt Porträt. */
.mks-autorzeile {
	align-items: center;
}

.mks-siegel {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--gravur-mittel);
	border-radius: 50%;
	background: var(--wp--preset--color--nacht-tief);
	color: var(--wp--preset--color--messing);
}

.mks-siegel svg {
	display: block;
	width: 27px;
	height: 27px;
}

:where(.is-style-papier, .is-style-pergament) .mks-siegel {
	border-color: var(--wp--preset--color--gravur-papier);
	background: var(--wp--preset--color--bogen);
	color: var(--wp--preset--color--messing-dunkel);
}

.mks-autorzeile__text {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--mondgrau);
}

.mks-autorzeile__text .wp-block-post-author-name {
	font-size: 17px;
	line-height: 24px;
	font-weight: 600;
}

.mks-autorzeile__meta {
	display: block !important;
}

.mks-autorzeile__meta > * {
	display: inline;
	white-space: nowrap;
}

.mks-autorzeile__meta > * + *::before {
	content: " · ";
}

/* Titelbild als Tafel mit Passermarken (Plattenrahmen) */
.mks-tafel,
.wp-block-image.is-style-tafel,
.wp-block-post-featured-image.mks-tafel {
	position: relative;
	padding: 12px;
	border: 1px solid var(--wp--preset--color--gravur-mittel);
}

.mks-tafel::before,
.mks-tafel::after,
.wp-block-image.is-style-tafel::before,
.wp-block-image.is-style-tafel::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.mks-tafel::before,
.wp-block-image.is-style-tafel::before {
	top: -7px;
	left: -7px;
	border-top: 1px solid var(--wp--preset--color--messing);
	border-left: 1px solid var(--wp--preset--color--messing);
}

.mks-tafel::after,
.wp-block-image.is-style-tafel::after {
	right: -7px;
	bottom: -7px;
	border-right: 1px solid var(--wp--preset--color--messing);
	border-bottom: 1px solid var(--wp--preset--color--messing);
}

.mks-tafel img,
.wp-block-image.is-style-tafel img {
	display: block;
	width: 100%;
	box-shadow: var(--wp--preset--shadow--nacht);
}

:where(.is-style-papier, .is-style-pergament) .mks-tafel,
:where(.is-style-papier, .is-style-pergament) .wp-block-image.is-style-tafel {
	border-color: var(--wp--preset--color--tinte);
}

:where(.is-style-papier, .is-style-pergament) .mks-tafel::before,
:where(.is-style-papier, .is-style-pergament) .mks-tafel::after,
:where(.is-style-papier, .is-style-pergament) .wp-block-image.is-style-tafel::before,
:where(.is-style-papier, .is-style-pergament) .wp-block-image.is-style-tafel::after {
	border-color: var(--wp--preset--color--messing-dunkel);
}

:where(.is-style-papier, .is-style-pergament) .mks-tafel img,
:where(.is-style-papier, .is-style-pergament) .wp-block-image.is-style-tafel img {
	box-shadow: var(--wp--preset--shadow--papier);
}

/* Tafel auf Papier (Seiteninhalt, z. B. Bilder auf Inhaltsseiten): Rahmen gravur-papier, Passermarken messing-dunkel */
:where(.is-style-papier, .mks-seiteninhalt) .wp-block-image.is-style-tafel {
	border-color: var(--wp--preset--color--gravur-papier);
	background: var(--wp--preset--color--bogen);
}

:where(.is-style-papier, .mks-seiteninhalt) .wp-block-image.is-style-tafel::before,
:where(.is-style-papier, .mks-seiteninhalt) .wp-block-image.is-style-tafel::after {
	border-color: var(--wp--preset--color--messing-dunkel);
}

:where(.mks-seiteninhalt) .wp-block-image.is-style-tafel.alignright {
	margin: 6px 0 24px 32px;
}

@media (max-width: 599.98px) {
	:where(.mks-seiteninhalt) .wp-block-image.is-style-tafel.alignright {
		float: none;
		margin: 6px auto 28px;
	}
}

/* Gestochene Grafiken */
.mks-grafik {
	line-height: 0;
}

.mks-grafik svg {
	display: block;
}

.mks-grafik__kante {
	height: 20px;
}

/* ------------------------------------------------------------------ Artikel (Papier) */

.mks-artikel__raster {
	align-items: start;
}

@media (min-width: 1000px) {
	.mks-artikel__raster {
		display: grid !important;
		grid-template-columns: clamp(220px, calc(42vw - 213px), 392px) minmax(0, 1fr);
		column-gap: clamp(40px, calc(20vw - 160px), 128px);
	}

	.mks-artikel__raster > .mks-artikel__seite {
		align-self: stretch;
	}
}

.mks-lesetext {
	min-width: 0;
}

.mks-lesetext > .wp-block-post-content > * {
	max-width: var(--mks-mass);
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.mks-lesetext > .wp-block-post-content > * + * {
	margin-top: 16px;
}

.wp-block-post-content > h2 {
	margin-top: 64px;
	font-size: clamp(28px, calc(23.5px + .78vw), 34px);
	line-height: 1.2;
	letter-spacing: -.006em;
}

.wp-block-post-content > h3 {
	margin-top: 44px;
	font-size: var(--wp--preset--font-size--d-5);
	line-height: 1.25;
}

.wp-block-post-content > h4 {
	margin-top: 32px;
}

.wp-block-post-content > :is(h2, h3, h4) + * {
	margin-top: 12px;
}

.mks-lesetext .wp-block-post-content > :is(ul, ol) {
	padding-left: 1.2em;
}

.mks-lesetext .wp-block-post-content > :is(ul, ol) > li + li {
	margin-top: 6px;
}

.mks-lesetext .wp-block-post-content img {
	max-width: 100%;
	height: auto;
}

.mks-lesetext .wp-block-post-content :is(figure, .wp-caption) {
	margin-top: 40px;
	margin-bottom: 0;
}

.mks-lesetext .wp-block-post-content .wp-caption-text,
.mks-lesetext .wp-block-post-content figcaption {
	margin-top: 10px;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--graphit);
}

.mks-lesetext .wp-block-post-content > blockquote {
	margin: 48px 0 0;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(22px, calc(16.9px + 1.05vw), 28px);
	line-height: 1.3;
}

.mks-lesetext .wp-block-post-content > blockquote > p {
	margin: 0;
}

.mks-lesetext .wp-block-post-content :is(strong, b) {
	font-weight: 700;
}

/* Inhaltsverzeichnis als senkrechte Skala */
.mks-inhalt__seite {
	display: none;
}

@media (min-width: 1000px) {
	.mks-inhalt__seite {
		display: block;
		position: sticky;
		top: calc(var(--mks-kopf-hoehe) + var(--mks-adminbar) + 32px);
		max-width: 300px;
	}

	.mks-inhalt__klappe {
		display: none;
	}
}

.mks-inhalt__liste {
	position: relative;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-inhalt__eintrag {
	position: relative;
	margin: 0;
	padding-left: 22px;
}

.mks-inhalt__eintrag::before {
	content: "";
	position: absolute;
	left: 0;
	top: 21px;
	width: 12px;
	height: 1px;
	background: var(--wp--preset--color--messing-dunkel);
}

.mks-inhalt__eintrag--h3 {
	padding-left: 34px;
}

.mks-inhalt__eintrag--h3::before {
	width: 6px;
	background: var(--wp--preset--color--gravur-papier);
}

.mks-inhalt__eintrag a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 4px 0;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--tinte);
	text-decoration: none;
	text-wrap: balance;
}

.mks-inhalt__eintrag--h3 a {
	font-weight: 400;
	color: var(--wp--preset--color--graphit);
}

.mks-inhalt__eintrag a:hover {
	text-decoration: underline;
}

.mks-inhalt__klappe {
	max-width: var(--mks-mass);
	margin: 0 0 32px;
	border-top: 1px solid var(--wp--preset--color--gravur-papier);
	border-bottom: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-inhalt__klappe summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	box-sizing: border-box;
	padding: 12px 40px 12px 0;
	list-style: none;
	cursor: pointer;
}

.mks-inhalt__klappe summary::-webkit-details-marker {
	display: none;
}

.mks-inhalt__klappe summary::after {
	content: "+";
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 26px;
	line-height: 1;
	color: var(--wp--preset--color--messing-dunkel);
	transition: transform 150ms;
}

.mks-inhalt__klappe[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.mks-inhalt__klappe .mks-rubrik {
	color: var(--wp--preset--color--tinte);
	font-size: 17px;
	letter-spacing: 0;
	text-transform: none;
}

.mks-inhalt__klappe .mks-rubrik__skala {
	color: var(--wp--preset--color--messing-dunkel);
}

.mks-inhalt__zahl {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--graphit);
}

.mks-inhalt__klappe .mks-inhalt__liste {
	margin-bottom: 16px;
}

.mks-inhalt__klappe .mks-inhalt__eintrag a {
	font-size: 16px;
}

/* Lektion-1-Kasten (mks-core: [mks_newsletter], unter jedem Beitrag) – leise: Pergament, kein Schatten */
.wp-site-blocks .mks-newsletter {
	box-sizing: border-box;
	margin-top: 48px;
	padding: 24px 28px 20px;
	border-top: 1px solid var(--wp--preset--color--gravur-papier);
	background: var(--wp--preset--color--pergament);
	color: var(--wp--preset--color--tinte);
	margin-bottom: 0;
	border-radius: 0;
	scroll-margin-top: calc(var(--mks-kopf-hoehe) + var(--mks-adminbar) + 24px);
}

.wp-site-blocks .mks-newsletter .mks-newsletter__title::after {
	display: none;
}

.wp-site-blocks .mks-newsletter :focus-visible {
	outline: 2px solid var(--wp--preset--color--tinte);
	outline-offset: 3px;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 22px;
	line-height: 28px;
	font-weight: 600;
	letter-spacing: 0;
	text-wrap: balance;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__text {
	margin: 12px 0 0;
	font-size: 17px;
	line-height: 26px;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__form {
	margin: 18px 0 0;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__label {
	display: block;
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-top: 8px;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__input {
	flex: 1 1 240px;
	min-width: 0;
	box-sizing: border-box;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--graphit);
	border-radius: 3px;
	background: #FFFFFF;
	color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--atkinson);
	font-size: 18px;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__input::placeholder {
	color: var(--wp--preset--color--graphit);
	opacity: 1;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__input:hover {
	border-color: var(--wp--preset--color--tinte);
}

.wp-site-blocks .mks-newsletter .mks-newsletter__button {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 3px;
	background: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--elfenbein);
	font-family: var(--wp--preset--font-family--atkinson);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background-color 150ms;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__button:hover {
	background: #22313D;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__button:active {
	background: #0B141C;
}

.wp-site-blocks .mks-newsletter .mks-newsletter__consent {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 21px;
	color: var(--wp--preset--color--graphit);
}

.wp-site-blocks .mks-newsletter .mks-newsletter__consent a {
	color: var(--wp--preset--color--tinte);
}

.wp-site-blocks .mks-newsletter .mks-newsletter__message:empty {
	display: none;
}

/* Autorenbox unter dem Artikel */
.mks-autorenbox {
	max-width: var(--mks-mass);
	padding: 32px 0;
	border-top: 1px solid var(--wp--preset--color--gravur-papier);
	border-bottom: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-autorenbox .mks-tafel {
	padding: 8px;
	border-color: var(--wp--preset--color--tinte);
}

.mks-autorenbox .mks-tafel::before,
.mks-autorenbox .mks-tafel::after {
	width: 12px;
	height: 12px;
	border-color: var(--wp--preset--color--messing-dunkel);
}

.mks-autorenbox .mks-tafel::before {
	top: -6px;
	left: -6px;
}

.mks-autorenbox .mks-tafel::after {
	right: -6px;
	bottom: -6px;
}

/* Kommentare unter dem Artikel (Liste, Seiten, Formular) – ohne Avatare (mks-core zeigt keine Gravatar-Bilder) */
.mks-kommentare {
	max-width: var(--mks-mass);
	margin-top: 56px;
}

.mks-kommentare .wp-block-comments-title,
.mks-kommentare .comment-reply-title {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--d-5);
	line-height: 1.25;
}

.mks-kommentare .wp-block-comment-template,
.mks-kommentare .wp-block-comment-template ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mks-kommentare .wp-block-comment-template ol {
	padding-left: 24px;
	border-left: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-kommentar {
	padding: 20px 0;
	border-top: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-kommentar__kopf {
	gap: 4px 12px;
}

.mks-kommentar .wp-block-comment-author-name {
	font-size: 16px;
	font-weight: 700;
}

.mks-kommentar .wp-block-comment-date {
	color: var(--wp--preset--color--graphit);
	font-size: 14px;
}

.mks-kommentar .wp-block-comment-content > * {
	margin: 8px 0 0;
}

.mks-kommentar .wp-block-comment-reply-link {
	margin-top: 8px;
	font-size: 15px;
}

.mks-kommentare__seiten {
	gap: 12px;
	margin-top: 16px;
}

.mks-kommentare .comment-respond {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-kommentare .comment-form > p {
	margin: 16px 0 0;
}

.mks-kommentare .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 600;
}

.mks-kommentare .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--graphit);
	border-radius: 3px;
	background: #FFFFFF;
	color: var(--wp--preset--color--tinte);
	font: inherit;
	font-size: 18px;
}

.mks-kommentare .comment-form textarea {
	min-height: 160px;
}

.mks-kommentare .comment-form :is(input, textarea):hover {
	border-color: var(--wp--preset--color--tinte);
}

.mks-kommentare .comment-form :is(input, textarea):focus {
	border-color: var(--wp--preset--color--tinte);
	outline: 2px solid var(--wp--preset--color--tinte);
	outline-offset: 2px;
}

/* Absenden: dunkel statt Gold (Gold gehört allein „Master Class kaufen“) */
.mks-kommentare .comment-form .form-submit .wp-element-button,
.mks-kommentare .comment-form .form-submit input[type="submit"] {
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--wp--preset--color--tinte);
	border-radius: 3px;
	background: var(--wp--preset--color--tinte);
	box-shadow: none;
	color: var(--wp--preset--color--papier);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.mks-kommentare .comment-form .form-submit .wp-element-button:hover,
.mks-kommentare .comment-form .form-submit input[type="submit"]:hover {
	background: var(--wp--preset--color--graphit);
	border-color: var(--wp--preset--color--graphit);
}

/* Signet der Marke auf Nacht (statt eines Porträts, ADR 0003) */
.mks-signetflaeche {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--nacht);
	box-shadow: var(--wp--preset--shadow--papier);
	color: var(--wp--preset--color--messing);
	text-align: center;
}

.mks-signetflaeche svg {
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 8px;
}

.mks-signetflaeche__name {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 14px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.005em;
	white-space: nowrap;
	color: var(--wp--preset--color--elfenbein);
}

.mks-signetflaeche__insider {
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--messing);
}

.mks-signetflaeche__seit {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--wp--preset--color--mondgrau);
}

.mks-autorenbox__name {
	font-size: 28px;
	line-height: 34px;
}

/* Weiterlesen: drei Karten mit Linie oben */
.mks-weiterlesen .wp-block-post-template {
	row-gap: 40px;
}

/* Leitseite und „Alle Artikel“ nebeneinander, auf dem Handy untereinander: Die Links sind als Tippziele schon
   44px hoch, daher ohne Zeilenabstand (stärker als die globale Regel von .is-layout-flex nach diesem Stylesheet) */
.mks-weiterlesen .mks-weiterlesen__links {
	gap: 0 28px;
}

.mks-weiterlesen .mks-weiterlesen__links > p {
	margin: 0;
}

.mks-weiterlesen .wp-block-post-template > li {
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--gravur-papier);
}

.mks-weiterlesen .wp-block-post-title {
	margin-top: 8px;
	font-size: var(--wp--preset--font-size--d-5);
	line-height: 30px;
}

.mks-weiterlesen .wp-block-post-title a {
	text-decoration: none;
}

.mks-weiterlesen .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.mks-weiterlesen .wp-block-post-excerpt__excerpt {
	margin-top: 10px;
	font-size: 17px;
	line-height: 26px;
	color: var(--wp--preset--color--graphit);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.mks-weiterlesen .wp-block-post-time-to-read {
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--graphit);
}

/* ------------------------------------------------------------------ Seiten, Archiv, Suche */

.mks-seitenkopf .wp-block-post-title,
.mks-seitenkopf .wp-block-query-title {
	font-size: var(--wp--preset--font-size--d-2);
	line-height: 1.04;
	letter-spacing: -.016em;
}

.mks-liste .wp-block-post-template > li {
	padding: 28px 0;
	border-top: 1px solid var(--wp--preset--color--linie-papier);
}

.mks-liste .wp-block-post-title a {
	text-decoration: none;
}

.mks-liste .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.wp-block-query-pagination {
	gap: 8px 24px;
	font-size: 15px;
}

.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ------------------------------------------------------------------ Kopfzeilen-Varianten */

.mks-kopf__leise {
	margin: 0;
	font-size: 15px;
}

.mks-kopf__leise a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--mondgrau);
}

/* Kasse: Schloss und „Sichere, verschlüsselte Verbindung“ statt Menü */
.mks-kopf__sicher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--mondgrau);
}

.mks-kopf__sicher svg {
	flex: none;
}

/* Schmal: nur das Schloss, der Text bleibt für Screenreader */
@media (max-width: 559.98px) {
	.mks-kopf__sicher span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Mitglieder-Kopfzeile (Lernraum): ab 760 px ausgeschrieben, darunter Person und Menü zum Aufklappen */
.mks-mitgliedermenue {
	display: flex;
	align-items: center;
}

.mks-mitgliedermenue__liste {
	display: flex;
	align-items: center;
	gap: 0 clamp(20px, 2.2vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mks-mitgliedermenue__liste a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--elfenbein);
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.mks-mitgliedermenue__liste a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--messing);
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
}

.mks-mitgliedermenue__icon,
.mks-mitgliedermenue__klappe {
	display: none;
}

@media (max-width: 759.98px) {
	.mks-mitgliedermenue__liste {
		display: none;
	}

	.mks-mitgliedermenue__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		color: var(--wp--preset--color--elfenbein);
		cursor: pointer;
		transition: background-color 150ms;
	}

	.mks-mitgliedermenue__icon:hover {
		background: var(--wp--preset--color--nacht-hoch);
	}

	.mks-mitgliedermenue__klappe {
		display: block;
	}

	.mks-mitgliedermenue__klappe > summary {
		list-style: none;
	}

	.mks-mitgliedermenue__klappe > summary::-webkit-details-marker {
		display: none;
	}

	.mks-mitgliedermenue__klappe:not([open]) .mks-mitgliedermenue__auf,
	.mks-mitgliedermenue__klappe[open] .mks-mitgliedermenue__zu {
		display: none;
	}

	.mks-mitgliedermenue__tafel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 30;
		padding: 4px 20px 20px;
		border-bottom: 1px solid var(--wp--preset--color--linie-nacht);
		background: var(--wp--preset--color--nacht-tief);
		box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7);
	}

	.mks-mitgliedermenue__tafel ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.mks-mitgliedermenue__tafel li {
		border-bottom: 1px solid var(--wp--preset--color--linie-nacht);
	}

	.mks-mitgliedermenue__tafel a {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 52px;
		color: var(--wp--preset--color--elfenbein);
		font-size: 17px;
		text-decoration: none;
	}
}

/* Fußzeile der Mitglieder (Lernraum): Wortmarke und Rechtliches, darunter © */
.mks-fuss__mitglieder {
	gap: 16px 48px;
}

.mks-fuss--schlank .mks-fuss__unten {
	border-top: 0;
}

/* ------------------------------------------------------------------ Pfeil-Links, Autorzeile, Abschluss */

.mks-pfeil-link::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9h12.5M10.5 4.5L15 9l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9h12.5M10.5 4.5L15 9l-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 150ms;
}

.mks-pfeil-link:hover::after {
	transform: translateX(3px);
}

p:has(> .mks-pfeil-link) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 28px;
}

.mks-autorzeile__name {
	margin: 0;
	font-size: 17px;
	line-height: 24px;
	font-weight: 600;
}

.mks-autorzeile__name a {
	display: inline-block;
	padding: 10px 0;
	margin: -10px 0;
}

.mks-autorzeile__meta {
	font-size: 15px;
	line-height: 22px;
}

.mks-aktualisiert::before {
	content: "Aktualisiert am ";
}

.mks-autorenbox__bild {
	flex: 0 0 148px;
	margin: 0;
}

.mks-autorenbox__text {
	flex: 1 1 300px;
	min-width: 0;
}

.mks-autorenbox__text > * + * {
	margin-top: 12px;
}

.mks-autorenbox__text .mks-autorenbox__name {
	margin-top: 8px;
}

.mks-autorenbox__text p {
	font-size: 17px;
	line-height: 26px;
}

.mks-autorenbox__links {
	margin-top: 6px !important;
	font-size: 15px;
}

.mks-abschluss {
	position: relative;
	overflow: hidden;
}

@media (min-width: 1000px) {
	.mks-abschluss__raster {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 380px);
		column-gap: 64px;
		align-items: center;
	}
}

.mks-abschluss__text {
	max-width: 704px;
}

.mks-abschluss__titel {
	margin: 0;
}

.mks-abschluss__vorzeile {
	display: block;
	font-size: var(--wp--preset--font-size--d-4);
	line-height: 1.2;
	letter-spacing: -.006em;
}

.mks-abschluss__hauptzeile {
	display: block;
	margin-top: 6px;
	font-size: clamp(40px, calc(31.1px + 2.29vw), 64px);
	line-height: 1.02;
	letter-spacing: -.016em;
}

.mks-abschluss .mks-unterzeile {
	margin-top: 24px;
}

.mks-preis {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin-top: 32px;
}

.mks-preis p {
	margin: 0;
}

.mks-preis__betrag {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 44px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -.012em;
	font-variant-numeric: lining-nums tabular-nums;
	white-space: nowrap;
}

.mks-preis__zeile {
	font-size: 15px;
	line-height: 1.45;
}

.mks-abschluss__aktion {
	margin-top: 24px;
	gap: 12px 28px !important;
}

.mks-abschluss__aktion p {
	margin: 0;
}

.mks-mikro {
	margin-top: 10px;
	font-size: 15px;
	line-height: 22px;
	color: var(--wp--preset--color--mondgrau);
}

:where(.is-style-papier, .is-style-pergament) .mks-mikro {
	color: var(--wp--preset--color--graphit);
}

.mks-abschluss__objekt {
	max-width: 380px;
	margin: 56px auto 0;
}

@media (min-width: 1000px) {
	.mks-abschluss__objekt {
		margin: 0 0 0 auto;
	}
}

/* Cover als Juwel: Lasur dahinter, Schatten auf Nacht (5.2) */
.mks-juwel {
	position: relative;
}

.mks-juwel::before {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(50% + 48px);
	width: 170%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	background: radial-gradient(closest-side, rgba(216, 191, 122, .12), rgba(216, 191, 122, 0));
	pointer-events: none;
}

.mks-juwel__bild {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	box-shadow: var(--wp--preset--shadow--nacht);
}

/* Liste (Archiv, Suche) */
.mks-liste__eintrag .wp-block-post-title {
	text-wrap: balance;
}

.mks-liste__eintrag .wp-block-post-excerpt {
	max-width: var(--mks-mass);
	color: var(--wp--preset--color--graphit);
}

.mks-liste__eintrag .wp-block-post-excerpt__more-text {
	display: none;
}

.mks-suche-seite {
	max-width: 560px;
}

.mks-suche-seite .wp-block-search__input {
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--gravur-mittel);
	border-radius: 3px;
	background: var(--wp--preset--color--nacht-tief);
	color: var(--wp--preset--color--elfenbein);
	font-size: 17px;
}

.mks-suche-seite .wp-block-search__button {
	min-height: 52px;
	margin-left: 12px;
}

.mks-lesezeit::after {
	content: " Lesezeit";
}

/* Suchknopf auf Nacht: Kontur (Messing) statt dunklem Knopf */
:where([class*="is-style-nacht"]) .mks-suche-seite .wp-block-search__button {
	border: 1px solid var(--wp--preset--color--messing);
	background: transparent;
	color: var(--wp--preset--color--messing);
	font-size: 16px;
	font-weight: 600;
}

:where([class*="is-style-nacht"]) .mks-suche-seite .wp-block-search__button:hover {
	border-color: var(--wp--preset--color--messing-licht);
	background: var(--wp--preset--color--nacht-hoch);
	color: var(--wp--preset--color--messing-licht);
}

/* Widerrufsbelehrung: Muster-Widerrufsformular mit Gedankenstrichen wie im amtlichen Muster (Markup: Seiteninhalt) */
.mks-widerrufsformular {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.mks-widerrufsformular li::before {
	content: "– ";
}

/* ------------------------------------------------------------------ Shop: Kurse als Karte (Cover links, Text rechts) */

.mks-produkte .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mks-produktkarte {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--wp--preset--color--linie-papier);
	background: var(--wp--preset--color--bogen);
	box-shadow: 0 1px 0 rgba(18, 29, 39, .06), 0 18px 36px -20px rgba(18, 29, 39, .35);
}

.mks-produktkarte__cover {
	margin: 0;
}

.mks-produktkarte__cover img {
	box-shadow: 0 0 0 1px var(--wp--preset--color--gravur-papier), 0 18px 32px -16px rgba(18, 29, 39, .45);
}

.mks-produktkarte .wp-block-post-title {
	margin: 0;
}

.mks-produktkarte .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.mks-produktkarte__auszug {
	margin-top: 16px;
	color: var(--wp--preset--color--graphit);
}

.mks-produktkarte .mks-produkt-punkte {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mks-produktkarte .mks-produkt-punkte li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 26px;
	color: var(--wp--preset--color--tinte);
}

.mks-produktkarte .mks-produkt-punkte li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%237A5B1F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5l3 3 6-7'/%3E%3C/svg%3E") no-repeat center / 14px;
}

.mks-produktkarte__preis {
	margin-top: 20px;
	color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 32px;
	font-weight: 600;
	font-variant-numeric: lining-nums tabular-nums;
}

.mks-produktkarte__mehr {
	margin-top: 8px;
}

@media (max-width: 699.98px) {
	.mks-produktkarte {
		grid-template-columns: minmax(0, 1fr);
	}

	.mks-produktkarte__cover {
		max-width: 220px;
	}
}

/* ------------------------------------------------------------------ Lektionsseiten (M8) */

/* Vorige und nächste Lektion als Karten, darunter der Weg zur Übersicht auf der Leitseite */
.mks-lektion-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 16px 24px;
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--linie-papier);
}

.mks-lektion-nav__zurueck,
.mks-lektion-nav__weiter {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--linie-papier);
	color: var(--wp--preset--color--tinte);
	text-decoration: none;
}

.mks-lektion-nav__weiter {
	grid-column: -2;
	text-align: right;
}

.mks-lektion-nav__zurueck:hover,
.mks-lektion-nav__weiter:hover {
	border-color: var(--wp--preset--color--messing-dunkel);
}

.mks-lektion-nav__hinweis {
	font-size: 13px;
	line-height: 17px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--messing-dunkel);
}

.mks-lektion-nav__titel {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 20px;
	line-height: 26px;
}

.mks-lektion-nav__alle {
	grid-column: 1 / -1;
	margin: 0;
}

/* Kernaussage einer Lektion: ein ruhiger Satz in der Schrift der Überschriften, mit Messinglinie */
.mks-lesetext .mks-kernaussage {
	margin: 28px 0;
	padding: 4px 0 4px 22px;
	border-left: 2px solid var(--wp--preset--color--messing-dunkel);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(21px, calc(18.5px + .6vw), 25px);
	line-height: 1.4;
	color: var(--wp--preset--color--tinte);
}
