/* ==========================================================================
   MSC Speedway – Haupt-Stylesheet
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald-var.woff") format("woff");
	font-weight: 200 700;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var.woff") format("woff");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--msc-accent: #f5c518;
	--msc-accent-ink: #111111;
	--msc-bg: #0e0f11;
	--msc-surface: #191b1f;
	--msc-surface-2: #22252a;
	--msc-surface-3: #2b2f35;
	--msc-border: #2f333a;
	--msc-text: #ececee;
	--msc-muted: #a3a7af;
	--msc-red: #e0452f;
	--msc-green: #3fb56a;
	--msc-radius: 10px;
	--msc-radius-sm: 6px;
	--msc-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--msc-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
	--msc-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--msc-max: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	overflow-x: clip;
	margin: 0;
	background: var(--msc-bg);
	color: var(--msc-text);
	font-family: var(--msc-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--msc-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--msc-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--msc-accent); color: #111; padding: 8px 14px; border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--msc-accent); outline-offset: 2px; }

.msc-container { width: 100%; max-width: var(--msc-max); margin: 0 auto; padding: 0 20px; }
.msc-section { padding: 56px 0; }
.msc-section--tight { padding: 28px 0; }
.msc-muted { color: var(--msc-muted); }

.msc-h2 {
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	text-transform: uppercase;
	margin-bottom: 18px;
	display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.msc-h2 small { font-family: var(--msc-body); font-size: .85rem; text-transform: none; color: var(--msc-muted); font-weight: 400; letter-spacing: 0; }
.msc-kicker {
	font-family: var(--msc-head); text-transform: uppercase; letter-spacing: .08em;
	color: var(--msc-accent); font-size: .85rem; margin: 0 0 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.msc-icon { flex: none; vertical-align: -4px; }

/* Buttons --------------------------------------------------------------- */
.msc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--msc-accent); color: var(--msc-accent-ink);
	border: 2px solid var(--msc-accent); border-radius: 999px;
	font-family: var(--msc-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
	font-size: 1rem; padding: 10px 22px; line-height: 1.2; cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
	box-shadow: 0 4px 18px rgba(245, 197, 24, .18);
}
.msc-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(245, 197, 24, .3); }
.msc-btn--ghost { background: rgba(0, 0, 0, .35); color: var(--msc-accent); box-shadow: none; }
.msc-btn--ghost:hover { background: var(--msc-accent); color: var(--msc-accent-ink); }
.msc-btn--sm { font-size: .85rem; padding: 7px 14px; }
.msc-btn--block { display: flex; width: 100%; }
.msc-btn .msc-icon { width: 18px; height: 18px; }
.msc-btn--sm .msc-icon { width: 15px; height: 15px; }

.msc-link { font-weight: 600; }

/* Header ------------------------------------------------------------------ */
.msc-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
/* Unschärfe als eigene Ebene: backdrop-filter direkt am Header würde das
   (fixed) Handy-Menü auf die Höhe des Headers begrenzen. */
.msc-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(14, 15, 17, .92);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.admin-bar .msc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .msc-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .msc-header { top: 0; } }

.msc-header__bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.msc-header__logo { flex: none; }
.msc-header__logo img { max-height: 52px; width: auto; }
.msc-textlogo { display: flex; flex-direction: column; color: #fff; line-height: 1; text-decoration: none !important; }
.msc-textlogo__main {
	font-family: var(--msc-head); font-weight: 700; font-style: italic; font-size: 2rem; letter-spacing: .02em;
	background: linear-gradient(180deg, #fff 30%, #c9cbd0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.msc-textlogo__sub { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--msc-muted); margin-top: 3px; }

/* Vereinsname neben dem Wappen (aus dem Vereinsbanner) */
/* ersetzt den früheren Schriftzug aus „Zusätzliches CSS“ */
.msc-header__bar.has-brand .custom-logo-link { display: block !important; }
.msc-header__bar.has-brand .custom-logo-link::before, .msc-header__bar.has-brand .custom-logo-link::after { content: none !important; display: none !important; }
.msc-header__bar.has-brand .msc-header__logo img { width: auto !important; height: auto !important; max-height: 52px !important; }
@media (max-width: 600px) { .msc-header__bar.has-brand .msc-header__logo img { max-height: 44px !important; } }
.msc-brand { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; margin-left: -10px; text-decoration: none !important; min-width: 0; }
.msc-brand__name { font-family: var(--msc-head); font-weight: 600; font-size: 1.28rem; color: #fff; letter-spacing: .01em; white-space: nowrap; }
.msc-brand__sub { display: flex; align-items: baseline; gap: 10px; margin-top: 3px; white-space: nowrap; }
.msc-brand__adac { font-family: var(--msc-body); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--msc-muted); }
.msc-brand__claim { font-family: var(--msc-head); font-style: italic; font-weight: 500; font-size: .98rem; color: var(--msc-accent); transform: skewX(-6deg); }
@media (max-width: 1240px) and (min-width: 1021px) {
	/* Vereinsname bleibt sichtbar – etwas kleiner, Menü rückt zusammen */
	.msc-brand__name { font-size: 1rem; }
	.msc-brand__adac { display: none; }
	.msc-brand__claim { font-size: .82rem; }
	.msc-menu { gap: 0; }
	.msc-menu > li > a { white-space: nowrap; padding: 10px 8px; font-size: .95rem; }
}
@media (max-width: 1020px) { .msc-brand { margin-left: -4px; } .msc-brand__name { font-size: 1.12rem; } }
@media (max-width: 480px) {
	.msc-brand { margin-left: -4px; }
	.msc-brand__name { font-size: .98rem; }
	.msc-brand__sub { gap: 7px; }
	.msc-brand__adac { font-size: .58rem; letter-spacing: .08em; }
	.msc-brand__claim { font-size: .85rem; }
}
@media (max-width: 360px) { .msc-brand__adac { display: none; } .msc-brand__name { font-size: .9rem; } }

.msc-nav { margin-left: auto; }
.msc-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.msc-menu li { position: relative; }
.msc-menu a {
	display: block; padding: 10px 12px; color: var(--msc-text);
	font-family: var(--msc-head); font-size: 1.02rem; font-weight: 500; letter-spacing: .02em;
	border-radius: 6px; text-decoration: none;
}
.msc-menu a:hover, .msc-menu .current-menu-item > a, .msc-menu .current-menu-ancestor > a, .msc-menu .current_page_item > a { color: var(--msc-accent); }
.msc-menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.msc-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: var(--msc-radius);
	box-shadow: var(--msc-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.msc-menu li:hover > .sub-menu, .msc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.msc-menu .sub-menu a { font-family: var(--msc-body); font-size: .95rem; }
.msc-menu .sub-menu a:hover { background: var(--msc-surface-2); }

.msc-header__ticket { flex: none; }
.msc-burger { display: none; }

@media (max-width: 1020px) {
	.msc-header__bar { gap: 12px; min-height: 64px; }
	.msc-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; margin-left: 4px; background: transparent; border: 1px solid var(--msc-border);
		border-radius: 8px; cursor: pointer; padding: 0 11px;
	}
	.msc-burger span { display: block; height: 2px; background: var(--msc-text); border-radius: 2px; transition: .2s; }
	.msc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.msc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.msc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.msc-header__ticket { margin-left: auto; }
	.msc-nav {
		position: fixed; top: var(--msc-head-h, 64px); left: 0; right: 0; bottom: 0; z-index: 49;
		height: calc(100vh - var(--msc-head-h, 64px)); height: calc(100dvh - var(--msc-head-h, 64px));
		background: var(--msc-bg); padding: 16px 20px calc(40px + env(safe-area-inset-bottom)); overflow-y: auto;
		-webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		transform: translateX(100%); transition: transform .25s ease, visibility .25s; margin: 0; visibility: hidden;
	}
	.msc-nav.is-open { transform: none; visibility: visible; }
	.msc-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.msc-menu > li { border-bottom: 1px solid var(--msc-border); }
	.msc-menu a { font-size: 1.25rem; padding: 14px 4px; }
	.msc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 14px; }
	.msc-menu .sub-menu a { font-size: 1rem; padding: 8px 4px; }
	.msc-menu .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 480px) {
	.msc-header__ticket span { display: none; }
	.msc-header__ticket { padding: 9px; }
	.msc-textlogo__main { font-size: 1.6rem; }
	.msc-textlogo__sub { font-size: .55rem; }
}

/* Hero -------------------------------------------------------------------- */
.msc-hero {
	position: relative; overflow: hidden; min-height: min(78vh, 680px);
	display: flex; align-items: center; isolation: isolate;
	background:
		radial-gradient(ellipse 60% 50% at 75% 20%, rgba(255, 244, 200, .18), transparent 60%),
		radial-gradient(ellipse 40% 35% at 20% 10%, rgba(255, 255, 255, .10), transparent 60%),
		linear-gradient(180deg, #1c1f24 0%, #0e0f11 100%);
}
.msc-hero:not(.has-image)::before {
	content: ""; position: absolute; inset: auto -10% -35% -10%; height: 70%; z-index: -1;
	background:
		repeating-radial-gradient(ellipse 70% 55% at 50% 100%, transparent 0 34px, rgba(245, 197, 24, .07) 35px 37px),
		radial-gradient(ellipse 70% 60% at 50% 100%, #4a3424 0%, #2a1e17 45%, transparent 72%);
}
.msc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Wechselnde Titelbilder: sanftes Überblenden + leichter Zoom */
/* Titelbilder: weiches Überblenden (2,5 s). Das alte Bild zoomt beim Wechsel weiter (gleiche Animation bleibt aktiv), dadurch kein Ruckeln. */
.msc-hero.is-slider .msc-hero__img { opacity: 0; transition: opacity 2.5s ease-in-out; z-index: -4; will-change: opacity, transform; }
.msc-hero.is-slider .msc-hero__img.is-prev { opacity: 1; z-index: -3; transition: none; animation: msc-kenburns 16s ease-out both; }
.msc-hero.is-slider .msc-hero__img.is-active { opacity: 1; z-index: -2; animation: msc-kenburns 16s ease-out both; }
@keyframes msc-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.msc-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 45%, rgba(14, 15, 17, .95) 100%);
}
.msc-hero__content { text-align: center; padding-top: 64px; padding-bottom: 110px; }
.msc-hero__title {
	font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 700; text-transform: uppercase; color: #fff;
	text-shadow: 0 4px 30px rgba(0, 0, 0, .6); margin-bottom: 12px;
}
.msc-hero__text { font-size: clamp(1.05rem, 2vw, 1.4rem); color: #e8e8ea; margin: 0 auto 28px; max-width: 720px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.msc-hero__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Nächstes Event / Countdown ---------------------------------------------- */
.msc-next-wrap { position: relative; z-index: 2; margin-top: -78px; }
.msc-next {
	background: linear-gradient(180deg, rgba(30, 32, 36, .97), rgba(20, 22, 25, .97));
	border: 2px solid var(--msc-accent); border-radius: 14px; padding: 20px 26px;
	box-shadow: 0 0 0 4px rgba(245, 197, 24, .08), var(--msc-shadow);
}
.msc-next__title { text-align: center; font-size: clamp(1.1rem, 2.4vw, 1.6rem); text-transform: uppercase; margin-bottom: 14px; }
.msc-next__title span { color: var(--msc-accent); }
.msc-next__title a { color: #fff; }
.msc-next__row { display: flex; align-items: center; gap: 28px; justify-content: space-between; flex-wrap: wrap; }
.msc-next__meta p { margin: 2px 0; display: flex; gap: 8px; align-items: center; color: #dcdde0; }
.msc-next__meta .msc-icon { color: var(--msc-accent); width: 18px; }
.msc-next--off { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.msc-next--off .msc-next__title { margin: 0; text-align: left; }

.msc-countdown { display: flex; gap: 0; }
.msc-countdown > div { text-align: center; padding: 0 18px; border-left: 1px solid var(--msc-border); min-width: 74px; }
.msc-countdown > div:first-child { border-left: 0; padding-left: 0; }
.msc-countdown strong { display: block; font-family: var(--msc-head); font-size: 2.6rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.msc-countdown span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--msc-muted); }
.msc-countdown--inline strong { font-size: 2rem; }

@media (max-width: 760px) {
	.msc-next { padding: 18px; }
	.msc-next__row { flex-direction: column; align-items: stretch; gap: 16px; }
	.msc-countdown { justify-content: center; }
	.msc-countdown > div { padding: 0 12px; min-width: 64px; }
	.msc-countdown strong { font-size: 2.1rem; }
	.msc-next__meta { text-align: center; }
	.msc-next__meta p { justify-content: center; }
	.msc-next__btn { width: 100%; }
}

/* Info-Karten ------------------------------------------------------------- */
.msc-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.msc-info.has-news { grid-template-columns: repeat(4, 1fr); }
.msc-info__card {
	background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: var(--msc-radius);
	padding: 18px; display: flex; flex-direction: column;
}
.msc-info__card h3 { font-size: 1.2rem; text-transform: uppercase; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.msc-info__card h3 .msc-icon { color: var(--msc-accent); }
.msc-schedule, .msc-prices { list-style: none; margin: 0; padding: 0; }
.msc-schedule li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--msc-border); font-size: .93rem; }
.msc-schedule li:last-child, .msc-prices li:last-child { border-bottom: 0; }
.msc-schedule .t { font-family: var(--msc-head); color: var(--msc-accent); font-weight: 500; }
.msc-prices li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--msc-border); font-size: .93rem; }
.msc-prices strong { font-family: var(--msc-head); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.msc-prices .is-hl { color: var(--msc-accent); }
.msc-info__venue { margin: 0 0 12px; font-size: .93rem; }
.msc-map {
	position: relative; aspect-ratio: 4 / 3; border-radius: var(--msc-radius-sm); overflow: hidden; margin-bottom: 12px;
	background:
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
		linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
		#20242a;
}
.msc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.msc-map__load {
	position: absolute; inset: 0; width: 100%; background: transparent; border: 0; color: var(--msc-text); cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; padding: 10px;
}
.msc-map__load .msc-icon { width: 34px; height: 34px; color: var(--msc-red); }
.msc-map__load span { font-weight: 600; }
.msc-map__load small { color: var(--msc-muted); font-size: .72rem; text-align: center; }
.msc-info__card .msc-btn--block { margin-top: auto; }
.msc-news-mini { color: var(--msc-text); display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; }
.msc-news-mini img { border-radius: var(--msc-radius-sm); aspect-ratio: 16/10; object-fit: cover; }
.msc-news-mini strong { font-family: var(--msc-head); font-size: 1.1rem; font-weight: 500; color: #fff; }
.msc-news-mini span { font-size: .88rem; color: var(--msc-muted); }
.msc-news-mini small { font-size: .78rem; color: var(--msc-muted); }
.msc-news-mini:hover strong { color: var(--msc-accent); }

@media (max-width: 1020px) { .msc-info, .msc-info.has-news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .msc-info, .msc-info.has-news { grid-template-columns: 1fr; } }

/* Feature (Jugend / Verein) ---------------------------------------------- */
.msc-feature {
	display: grid; grid-template-columns: 1.1fr 1fr; background: var(--msc-surface);
	border: 1px solid var(--msc-border); border-radius: 14px; overflow: hidden;
}
.msc-feature--flip { grid-template-columns: 1fr 1.1fr; }
.msc-feature--flip .msc-feature__media { order: 2; }
.msc-feature__media { min-height: 280px; position: relative; }
.msc-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.msc-feature__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.msc-feature__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; color: var(--msc-accent); font-weight: 700; margin-bottom: 4px; }
.msc-feature__sub { font-family: var(--msc-head); text-transform: uppercase; font-size: 1.15rem; margin: 0 0 10px; color: #fff; }
.msc-feature__body p { color: #d4d6da; }
.msc-placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background:
		repeating-linear-gradient(135deg, rgba(245,197,24,.05) 0 14px, transparent 14px 28px),
		linear-gradient(135deg, #2a2d33, #1a1c20);
	color: rgba(245, 197, 24, .5);
}
.msc-placeholder .msc-icon { width: 72px; height: 72px; stroke-width: 1.4; }
@media (max-width: 760px) {
	.msc-feature, .msc-feature--flip { grid-template-columns: 1fr; }
	.msc-feature--flip .msc-feature__media { order: 0; }
	.msc-feature__media { min-height: 220px; }
}

/* Sponsoren ---------------------------------------------------------------- */
.msc-sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.msc-sponsors__item > a, .msc-sponsors__item > span {
	display: flex; align-items: center; justify-content: center; height: 92px; padding: 14px;
	background: #fff; border-radius: var(--msc-radius-sm); color: #222; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.msc-sponsors__item > a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.msc-sponsors__item img { max-height: 62px; width: auto; object-fit: contain; }
.msc-sponsors__item.is-premium { grid-column: span 2; }
.msc-sponsors__item.is-premium > a, .msc-sponsors__item.is-premium > span { height: 92px; }
.msc-sponsors__name { font-family: var(--msc-head); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; text-align: center; color: #333; }
.msc-sponsors--large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 24px; }
.msc-sponsors--large .msc-sponsors__item > a, .msc-sponsors--large .msc-sponsors__item > span { height: 120px; }
@media (max-width: 480px) { .msc-sponsors { grid-template-columns: repeat(2, 1fr); } .msc-sponsors__item.is-premium { grid-column: span 2; } }

/* Ergebnisse ---------------------------------------------------------------- */
.msc-results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.msc-results__head .msc-h2 { margin-bottom: 4px; }
.msc-results__event { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--msc-muted); }
.msc-results__event a { color: #fff; }
.msc-results__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.msc-results__class { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 12px; }
.msc-results__note { color: var(--msc-muted); margin-top: -4px; }
.msc-results__updated { font-size: .8rem; color: var(--msc-muted); margin: 16px 0 0; text-align: right; }
.msc-results__credit { margin: 4px 0 0; font-size: .85rem; color: var(--msc-muted); }
.msc-results__source { font-size: .9rem; color: var(--msc-text); margin: 14px 0 0; padding: 10px 14px; background: var(--msc-surface-2); border: 1px solid var(--msc-border); border-left: 3px solid var(--msc-accent); border-radius: var(--msc-radius-sm); }
.msc-results__fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 0; padding: 12px 14px; background: var(--msc-surface-2); border: 1px solid var(--msc-border); border-left: 3px solid var(--msc-red); border-radius: var(--msc-radius-sm); }

.msc-live {
	display: inline-flex; align-items: center; gap: 7px; background: var(--msc-red); color: #fff;
	font-family: var(--msc-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
	padding: 3px 11px; border-radius: 999px; font-size: .82rem;
}
.msc-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: msc-pulse 1.2s infinite; }
@keyframes msc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.msc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--msc-border); }
.msc-tabs__btn {
	background: transparent; border: 0; color: var(--msc-muted); font-family: var(--msc-head); font-size: 1.05rem;
	text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; cursor: pointer;
	border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.msc-tabs__btn:hover { color: #fff; }
.msc-tabs__btn.is-active { color: var(--msc-accent); border-bottom-color: var(--msc-accent); }
.msc-results__panel { display: none; }
.msc-results__panel.is-active { display: block; }

.msc-results__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .msc-results__layout { grid-template-columns: 1fr; } }

.msc-standings {
	background: linear-gradient(180deg, rgba(245, 197, 24, .10), rgba(245, 197, 24, .03));
	border: 1px solid rgba(245, 197, 24, .35); border-radius: 12px; padding: 16px;
	position: sticky; top: 92px;
}
@media (max-width: 960px) { .msc-standings { position: static; } }
.msc-standings__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(245, 197, 24, .3); }
.msc-standings__head h4 { margin: 0; font-size: 1.25rem; text-transform: uppercase; color: var(--msc-accent); }
.msc-standings__head--teams { margin-top: 18px; }
.msc-chip { font-size: .75rem; background: var(--msc-surface-3); color: var(--msc-text); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

.msc-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.msc-table th { text-align: left; font-weight: 600; color: var(--msc-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; }
.msc-table td { padding: 8px; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.msc-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .025); }
.msc-table .c-pos { width: 38px; text-align: right; font-family: var(--msc-head); font-weight: 600; color: var(--msc-muted); }
.msc-table .c-nr { width: 42px; text-align: center; color: var(--msc-muted); font-variant-numeric: tabular-nums; }
.msc-table .c-flag { width: 34px; }
.msc-table .c-scores { color: var(--msc-muted); font-size: .8rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
.msc-table .c-pts { width: 48px; text-align: center; font-family: var(--msc-head); font-weight: 600; font-size: 1.15rem; color: #fff; }
.msc-table .c-name a, .msc-table .c-name { color: #fff; font-weight: 500; }
.msc-table .msc-team { display: block; font-size: .75rem; color: var(--msc-muted); font-weight: 400; line-height: 1.2; }
.msc-table tr.is-top-1 .c-pos { color: #f5c518; }
.msc-table tr.is-top-2 .c-pos { color: #c9ced6; }
.msc-table tr.is-top-3 .c-pos { color: #d08a4a; }
.msc-table tr.is-top-1 td { background: rgba(245, 197, 24, .10) !important; }
@media (max-width: 600px) { .msc-table--standings .c-scores { display: none; } }

.msc-flag { width: 24px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); display: inline-block; object-fit: cover; vertical-align: middle; }

.msc-heats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
@media (max-width: 600px) { .msc-heats { grid-template-columns: 1fr; } }
.msc-heats.is-collapsed [data-hidden] { display: none; }
.msc-heats__more { grid-column: 1 / -1; justify-self: center; }
.msc-heat { background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: 10px; overflow: hidden; }
.msc-heat__head {
	display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px;
	background: linear-gradient(90deg, #1d3a5c, #142a44);
}
.msc-heat__head h5 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; display: flex; gap: 8px; align-items: center; }
.msc-heat__tag { background: var(--msc-accent); color: #111; font-size: .68rem; padding: 2px 7px; border-radius: 4px; }
.msc-heat__time { font-size: .74rem; font-weight: 700; background: rgba(255, 255, 255, .15); color: #fff; padding: 2px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.msc-heat.is-next { border-color: var(--msc-accent); }
.msc-heat.is-next .msc-heat__head { background: linear-gradient(90deg, #4a3d0b, #2c2610); }
.msc-heat.is-extra .msc-heat__head { background: linear-gradient(90deg, #4b2a14, #301b0f); }
.msc-heat__list { list-style: none; margin: 0; padding: 0; }
.msc-heat__row { display: grid; grid-template-columns: 44px 1fr 30px 34px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .06); min-height: 38px; }
.msc-heat__row:first-child { border-top: 0; }
.msc-heat__row:nth-child(even) { background: rgba(255, 255, 255, .02); }
.msc-helmet {
	align-self: stretch; display: flex; align-items: center; justify-content: center;
	background: var(--h-bg, var(--msc-surface-3)); color: var(--h-fg, var(--msc-text));
	font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.msc-helmet.is-split { text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; }
.msc-heat__name { padding: 0 10px; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msc-heat__flag { display: flex; justify-content: center; }
.msc-heat__res { text-align: center; font-family: var(--msc-head); font-weight: 600; font-size: 1.1rem; border-left: 1px solid rgba(255, 255, 255, .06); }
.msc-heat__res.is-code { color: var(--msc-red); font-size: .95rem; }

.msc-empty { color: var(--msc-muted); padding: 14px 0; }

.msc-badge {
	display: inline-block; font-family: var(--msc-body); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	padding: 2px 8px; border-radius: 4px; background: var(--msc-surface-3); color: var(--msc-text); vertical-align: middle;
}
.msc-badge--upcoming { background: rgba(245, 197, 24, .18); color: var(--msc-accent); }
.msc-badge--live { background: var(--msc-red); color: #fff; }
.msc-badge--finished { background: rgba(63, 181, 106, .18); color: var(--msc-green); }
.msc-badge--cancelled { background: rgba(224, 69, 47, .18); color: var(--msc-red); text-decoration: line-through; }
.msc-badge--abandoned { background: rgba(224, 69, 47, .18); color: var(--msc-red); }

/* Absage / Abbruch */
.msc-cancel {
	display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px;
	background: linear-gradient(180deg, rgba(42, 22, 20, .97), rgba(26, 18, 18, .97));
	border: 2px solid var(--msc-red); border-radius: 14px; padding: 18px 24px;
	box-shadow: 0 0 0 4px rgba(224, 69, 47, .1), var(--msc-shadow);
}
.msc-cancel__icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--msc-red); color: #fff; }
.msc-cancel__icon .msc-icon { width: 24px; height: 24px; }
.msc-cancel__body { min-width: 0; }
.msc-cancel__kicker { margin: 0 0 2px; font-family: var(--msc-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--msc-red); font-size: .95rem; }
.msc-cancel__title { margin: 0 0 6px; font-size: 1.5rem; }
.msc-cancel__title a { color: var(--msc-text); }
.msc-cancel__title small { display: block; font-family: var(--msc-body); font-weight: 400; font-size: .9rem; color: var(--msc-muted); margin-top: 2px; }
.msc-cancel__reason { margin: 0; font-size: 1.05rem; }
.msc-cancel__extra { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; color: var(--msc-accent); }
@media (max-width: 600px) {
	.msc-cancel { padding: 16px; gap: 12px; }
	.msc-cancel__icon { width: 38px; height: 38px; }
	.msc-cancel__title { font-size: 1.25rem; }
}
.msc-results__abandoned { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 16px; padding: 12px 14px; background: var(--msc-surface-2); border: 1px solid var(--msc-border); border-left: 3px solid var(--msc-red); border-radius: var(--msc-radius-sm); }
.msc-results__abandoned .msc-icon { color: var(--msc-red); }
.msc-ecard--cancelled { border-left: 4px solid var(--msc-red); }
.msc-ecard--cancelled h3 a { color: var(--msc-muted); text-decoration: line-through; }
.msc-ecard__cancel { margin: 4px 0 0; font-size: .85rem; color: #f0a99e; }

/* Event-Karten (Archiv) ---------------------------------------------------- */
.msc-ecards { display: grid; gap: 12px; margin-bottom: 36px; }
.msc-ecard {
	display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center;
	background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: var(--msc-radius); padding: 14px 18px;
	transition: border-color .15s;
}
.msc-ecard:hover { border-color: #444a52; }
.msc-ecard--upcoming { border-left: 4px solid var(--msc-accent); }
.msc-ecard--live { border-left: 4px solid var(--msc-red); }
.msc-ecard__date { text-align: center; background: var(--msc-surface-2); border-radius: 8px; padding: 8px 4px; line-height: 1.05; }
.msc-ecard__date .d { display: block; font-family: var(--msc-head); font-size: 1.9rem; font-weight: 600; }
.msc-ecard__date .m { display: block; font-size: .78rem; text-transform: uppercase; color: var(--msc-accent); font-weight: 700; letter-spacing: .06em; }
.msc-ecard__date .y { display: block; font-size: .72rem; color: var(--msc-muted); }
.msc-ecard__body h3 { font-size: 1.25rem; margin: 0 0 4px; }
.msc-ecard__body h3 a { color: #fff; }
.msc-ecard__meta { margin: 0; color: var(--msc-muted); font-size: .9rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msc-ecard__classes { margin: 4px 0 0; font-size: .82rem; color: #c7c9ce; }
.msc-ecard__wins { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; }
.msc-ecard__wins li { display: inline-flex; align-items: center; gap: 6px; }
.msc-ecard__wins .msc-icon { width: 16px; height: 16px; color: var(--msc-accent); }
.msc-ecard__wins span { color: var(--msc-muted); }
.msc-recent__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.msc-recent__head .msc-h2 { margin: 0; }
.msc-recent { display: grid; gap: 12px; }
.msc-ecard__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 680px) {
	.msc-ecard { grid-template-columns: 62px 1fr; gap: 12px; padding: 12px; }
	.msc-ecard__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.msc-seasons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.msc-seasons a { padding: 6px 14px; border: 1px solid var(--msc-border); border-radius: 999px; color: var(--msc-text); font-size: .9rem; text-decoration: none; }
.msc-seasons a:hover { border-color: var(--msc-accent); }
.msc-seasons a.is-active { background: var(--msc-accent); color: #111; border-color: var(--msc-accent); font-weight: 600; }

/* Seitenkopf --------------------------------------------------------------- */
.msc-pagehead {
	position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 40px;
	background: linear-gradient(180deg, #1c1f24, var(--msc-bg));
	border-bottom: 1px solid var(--msc-border);
}
.msc-pagehead.has-image { padding: 120px 0 44px; }
.msc-pagehead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.msc-pagehead.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(14,15,17,.95)); }
.msc-pagehead__title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); text-transform: uppercase; margin: 0; color: #fff; }
.msc-pagehead__meta { display: flex; gap: 18px; flex-wrap: wrap; color: #d6d7da; margin: 10px 0 0; }
.msc-pagehead__meta span { display: inline-flex; align-items: center; gap: 7px; }
.msc-pagehead__meta .msc-icon { color: var(--msc-accent); }
.msc-pagehead__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 20px; }
.msc-kicker a { color: var(--msc-accent); }

.msc-rider-head { display: flex; gap: 24px; align-items: center; }
.msc-rider-head__img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid var(--msc-accent); }
.msc-rider-nr { color: var(--msc-accent); margin-right: 8px; }

/* Inhalte ------------------------------------------------------------------ */
.msc-content { max-width: 860px; }
.msc-content > *:first-child { margin-top: 0; }
.msc-content h2 { font-size: 1.7rem; text-transform: uppercase; margin-top: 1.6em; }
.msc-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.msc-content p, .msc-content li { color: #d9dadd; }
.msc-content a { text-decoration: underline; }
.msc-content img { border-radius: var(--msc-radius-sm); }
.msc-content blockquote { border-left: 4px solid var(--msc-accent); margin: 1.5em 0; padding: .4em 1.2em; background: var(--msc-surface); border-radius: 0 8px 8px 0; }
.msc-content table { width: 100%; border-collapse: collapse; }
.msc-content th, .msc-content td { border: 1px solid var(--msc-border); padding: 8px 10px; }
.msc-content .wp-block-button__link { background: var(--msc-accent); color: #111; border-radius: 999px; text-decoration: none; font-family: var(--msc-head); text-transform: uppercase; }
.msc-content .alignwide { max-width: 1200px; }
.msc-content .msc-results, .msc-content .msc-ecards { max-width: none; }
.wp-block-image figcaption, .wp-caption-text { color: var(--msc-muted); font-size: .85rem; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.msc-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.msc-post { background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: var(--msc-radius); overflow: hidden; display: flex; flex-direction: column; }
.msc-post__media { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; }
.msc-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.msc-post:hover .msc-post__media img { transform: scale(1.04); }
.msc-post__media .msc-placeholder .msc-icon { width: 48px; height: 48px; }
.msc-post__body { padding: 18px; }
.msc-post__date { margin: 0 0 4px; color: var(--msc-muted); font-size: .82rem; }
.msc-post__title { font-size: 1.3rem; margin-bottom: 8px; }
.msc-post__title a { color: #fff; }
.msc-post__body p { color: #c8cace; font-size: .95rem; }

.msc-pagination { margin-top: 24px; }
.msc-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.msc-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--msc-border); border-radius: 6px; color: var(--msc-text); }
.msc-pagination .page-numbers.current { background: var(--msc-accent); color: #111; border-color: var(--msc-accent); }
.msc-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--msc-border); }

.msc-riders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.msc-riders a { display: flex; flex-direction: column; gap: 4px; background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: var(--msc-radius); overflow: hidden; color: var(--msc-text); text-decoration: none !important; padding-bottom: 12px; }
.msc-riders img, .msc-placeholder--rider { aspect-ratio: 1; width: 100%; object-fit: cover; position: relative; inset: auto; font-family: var(--msc-head); font-size: 2.4rem; color: var(--msc-accent); }
.msc-riders strong { padding: 6px 12px 0; font-family: var(--msc-head); font-weight: 500; font-size: 1.1rem; }
.msc-riders span { padding: 0 12px; font-size: .82rem; color: var(--msc-muted); display: flex; gap: 6px; align-items: center; }

/* Formulare --------------------------------------------------------------- */
.search-form { display: flex; gap: 8px; margin: 16px 0; max-width: 480px; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="file"], select, textarea {
	background: var(--msc-surface); color: var(--msc-text); border: 1px solid var(--msc-border); border-radius: 8px; padding: 10px 12px; font: inherit; width: 100%; box-sizing: border-box;
}
input[type="date"] { color-scheme: dark; min-height: 47px; }
:root[data-theme="light"] input[type="date"] { color-scheme: light; }
input[type="file"] { padding: 8px 10px; cursor: pointer; }
input[type="file"]::file-selector-button { background: var(--msc-surface-2); color: var(--msc-text); border: 1px solid var(--msc-border); border-radius: 6px; padding: 6px 12px; margin-right: 10px; font: inherit; cursor: pointer; }
select { appearance: auto; min-height: 47px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--msc-accent); outline-offset: 1px; }
.search-submit, input[type="submit"], button.submit {
	background: var(--msc-accent); color: #111; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer;
}

/* Footer ------------------------------------------------------------------- */
.msc-footer { background: #0a0b0c; border-top: 1px solid var(--msc-border); margin-top: 40px; padding-top: 44px; color: #c9cbd0; font-size: .95rem; }
.msc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 28px; padding-bottom: 32px; }
.msc-footer__name { font-family: var(--msc-head); font-size: 1.35rem; color: #fff; text-transform: uppercase; margin: 0 0 6px; }
.msc-footer__title { font-family: var(--msc-head); text-transform: uppercase; color: var(--msc-accent); letter-spacing: .05em; margin: 0 0 10px; }
.msc-footer__menu { list-style: none; margin: 0; padding: 0; }
.msc-footer__menu a, .msc-footer__contact a { color: #c9cbd0; display: inline-flex; gap: 6px; align-items: center; }
.msc-footer__menu a:hover, .msc-footer__contact a:hover { color: var(--msc-accent); }
.msc-footer__menu li { padding: 3px 0; }
.msc-footer__contact { font-style: normal; line-height: 1.9; }
.msc-footer__contact .msc-icon { width: 16px; color: var(--msc-accent); }
.msc-social { display: flex; gap: 10px; margin-top: 14px; }
.msc-social a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--msc-surface-2); color: #fff; }
.msc-social a:hover { background: var(--msc-accent); color: #111; }
.msc-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--msc-border); padding-top: 16px; padding-bottom: 20px; font-size: .82rem; color: var(--msc-muted); }
.msc-totop { color: var(--msc-muted); }
@media (max-width: 860px) { .msc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .msc-footer__grid { grid-template-columns: 1fr; } }

/* Kommentare (Grundformatierung) ------------------------------------------- */
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--msc-surface); border-radius: 8px; padding: 14px; margin-bottom: 12px; }

/* Druck ---------------------------------------------------------------------- */
@media print {
	.msc-header, .msc-footer, .msc-hero, .msc-next-wrap, .msc-results__actions, .msc-tabs, .msc-heats__more { display: none !important; }
	body { background: #fff; color: #000; }
	.msc-results__panel { display: block !important; }
	.msc-heats.is-collapsed [data-hidden] { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	/* Titelbilder auch bei „Bewegung reduzieren“ sanft überblenden – nur Helligkeit, kein Zoom */
	.msc-hero.is-slider .msc-hero__img { transition: opacity 2.5s ease-in-out !important; }
	.msc-hero.is-slider .msc-hero__img.is-prev { transition: none !important; }
}

.msc-results.is-flash .msc-standings { animation: msc-flash 1.2s ease; }
@keyframes msc-flash { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .7); } 100% { box-shadow: 0 0 0 14px rgba(245, 197, 24, 0); } }

/* Dezenter Rennbüro-Zugang im Footer */
.msc-rb-link { margin-left: auto; display: inline-flex; align-items: center; color: var(--msc-muted); opacity: .35; transition: opacity .2s; }
.msc-rb-link:hover, .msc-rb-link:focus-visible { opacity: 1; }

/* Fahrer-Anmeldung (Veranstaltungsseite) */
.msc-reg { background: var(--msc-surface); border: 1px solid var(--msc-border); border-left: 4px solid var(--msc-accent); border-radius: var(--msc-radius); padding: 22px; }
.msc-reg__intro { color: var(--msc-muted); margin: 0 0 18px; }
.msc-reg__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.msc-reg__form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.msc-reg__form label small { color: var(--msc-muted); font-weight: 400; }
.msc-reg__form input[type="text"], .msc-reg__form input[type="email"], .msc-reg__form input[type="file"], .msc-reg__form select { width: 100%; background: var(--msc-surface-2); color: var(--msc-text); border: 1px solid var(--msc-border); border-radius: var(--msc-radius-sm); padding: 11px 12px; font: inherit; font-weight: 400; }
.msc-reg__form input:focus, .msc-reg__form select:focus { outline: 2px solid var(--msc-accent); outline-offset: 1px; }
.msc-reg__check { grid-column: 1 / -1; flex-direction: row !important; align-items: flex-start; font-weight: 400 !important; }
.msc-reg__check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--msc-accent); }
.msc-reg__form .msc-btn { grid-column: 1 / -1; justify-self: start; }
.msc-reg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msc-reg__ok, .msc-reg__err { padding: 12px 14px; border-radius: var(--msc-radius-sm); margin: 0 0 16px; font-weight: 600; }
.msc-reg__ok { background: rgba(63, 181, 106, .15); border: 1px solid var(--msc-green); }
.msc-reg__err { background: rgba(224, 69, 47, .15); border: 1px solid var(--msc-red); }
@media (max-width: 700px) { .msc-reg { padding: 16px; } .msc-reg__form { grid-template-columns: 1fr; } }

/* ==========================================================
   Sprachumschalter (GTranslate) – im Vereinsdesign, kompakt
   ========================================================== */
#gt_float_wrapper { bottom: 16px !important; left: 16px !important; z-index: 900 !important; }
#gt_float_wrapper .gt_float_switcher {
	font-family: var(--msc-head) !important;
	font-size: 13px !important;
	line-height: 1 !important;
	color: var(--msc-text) !important;
	background: rgba(25, 27, 31, .92) !important;
	border: 1px solid var(--msc-border) !important;
	border-radius: 17px !important;
	box-shadow: var(--msc-shadow) !important;
	overflow: hidden;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: border-color .2s;
}
#gt_float_wrapper .gt_float_switcher:hover { border-color: var(--msc-accent) !important; }
#gt_float_wrapper .gt_float_switcher .gt-selected { background: transparent !important; }
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang {
	display: flex !important;
	align-items: center;
	gap: 7px;
	padding: 7px 12px 7px 8px !important;
	color: var(--msc-text) !important;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
#gt_float_wrapper .gt_float_switcher img {
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	border-radius: 50%;
	object-fit: cover;
	vertical-align: middle;
}
#gt_float_wrapper .gt_float_switcher .gt_float_switcher-arrow {
	width: 8px !important;
	height: 8px !important;
	margin: -3px 0 0 2px !important;
	background: none !important;
	border-right: 2px solid var(--msc-accent);
	border-bottom: 2px solid var(--msc-accent);
	transform: rotate(-135deg) !important;
	transition: transform .2s;
}
#gt_float_wrapper .gt_float_switcher .gt_float_switcher-arrow.gt_arrow_rotate { transform: rotate(45deg) !important; margin-top: -6px !important; }
#gt_float_wrapper .gt_float_switcher .gt_options { background: transparent !important; max-height: none !important; }
#gt_float_wrapper .gt_float_switcher .gt_options a {
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 9px 14px 9px 8px !important;
	font-size: 13px !important;
	font-weight: 500;
	letter-spacing: .03em;
	color: var(--msc-text) !important;
	background: transparent !important;
	border-bottom: 1px solid var(--msc-border);
	text-decoration: none;
}
#gt_float_wrapper .gt_float_switcher .gt_options a:hover { color: var(--msc-accent) !important; background: var(--msc-surface-2) !important; }
#gt_float_wrapper .gt_float_switcher .gt_options a.gt-current { display: none !important; }
#gt_float_wrapper .gt_float_switcher a:focus-visible { outline: 2px solid var(--msc-accent); outline-offset: -2px; }

/* Handy: noch kleiner und näher an den Rand */
@media (max-width: 640px) {
	#gt_float_wrapper { bottom: 12px !important; left: 12px !important; }
	#gt_float_wrapper .gt_float_switcher { font-size: 12px !important; }
	#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang { gap: 5px; padding: 5px 9px 5px 6px !important; }
	#gt_float_wrapper .gt_float_switcher img { width: 16px !important; height: 16px !important; }
	#gt_float_wrapper .gt_float_switcher .gt_options a { padding: 8px 12px 8px 6px !important; font-size: 12px !important; }
}

/* ==========================================================
   reCAPTCHA: Google-Logo ausblenden, Hinweis steht im Footer
   (von Google so erlaubt, solange der Hinweistext sichtbar ist)
   ========================================================== */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none; }
.msc-footer__recaptcha {
	margin: 0 auto;
	padding-top: 0 !important;
	padding-bottom: 64px !important; /* Platz für den Sprachumschalter unten links */
	font-size: 11px;
	line-height: 1.5;
	color: var(--msc-muted);
	opacity: .75;
}
.msc-footer__recaptcha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msc-footer__recaptcha a:hover { color: var(--msc-accent); }

/* ==========================================================================
   12.10.2026 – Feinschliff Handy + Hell/Dunkel-Umschalter
   ========================================================================== */

/* Kein seitliches Wischen auf dem Handy (z. B. durch ausgeblendetes reCAPTCHA-Logo) */
html, body { overflow-x: clip; }

/* Countdown passt auch auf kleine Handys (unter 420 px) */
@media (max-width: 420px) {
	.msc-countdown { width: 100%; }
	.msc-countdown > div { flex: 1 1 0; min-width: 0; padding: 0 4px; }
	.msc-countdown strong { font-size: 1.8rem; }
	.msc-countdown span { font-size: .68rem; letter-spacing: .04em; }
}

/* Kleine Footer-Links besser antippbar */
.msc-totop, .msc-rb-link { min-height: 32px; display: inline-flex; align-items: center; }

/* Aktuelles auf der Startseite */
.msc-posts--home .msc-post__title { font-size: 1.2rem; }
/* Aktuelles auf der Startseite: Karten füllen immer die ganze Breite (1 Beitrag = breite Karte wie Jugend/Verein, 2 = halbe-halbe) */
.msc-posts--home { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 760px) {
	.msc-posts--home .msc-post:only-child { flex-direction: row; }
	.msc-posts--home .msc-post:only-child .msc-post__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 320px; }
	.msc-posts--home .msc-post:only-child .msc-post__body { flex: 1; padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
	.msc-posts--home .msc-post:only-child .msc-post__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
	.msc-posts--home .msc-post:only-child .msc-post__body p { font-size: 1.02rem; }
}

/* Umschalter Hell / Dunkel -------------------------------------------------- */
.msc-theme-toggle {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; cursor: pointer;
	background: transparent; color: var(--msc-text);
	border: 1px solid var(--msc-border); border-radius: 999px;
	transition: border-color .15s, color .15s, background .15s;
}
.msc-theme-toggle:hover, .msc-theme-toggle:focus-visible { border-color: var(--msc-accent); color: var(--msc-accent-text); }
.msc-theme-toggle svg { width: 20px; height: 20px; }
.msc-theme-toggle .is-sun { display: none; }
:root[data-theme="light"] .msc-theme-toggle .is-sun { display: block; }
:root[data-theme="light"] .msc-theme-toggle .is-moon { display: none; }
@media (max-width: 1020px) {
	.msc-theme-toggle { width: 44px; height: 44px; margin-left: 4px; }
	.msc-header__ticket + .msc-theme-toggle { margin-left: 0; }
}

/* Helles Design ------------------------------------------------------------- */
:root { --msc-accent-text: var(--msc-accent); }
:root[data-theme="light"] {
	color-scheme: light;
	--msc-accent-text: #806300;
	--msc-bg: #f3f3f0;
	--msc-surface: #ffffff;
	--msc-surface-2: #f0f0ec;
	--msc-surface-3: #e5e5e0;
	--msc-border: #d9d9d3;
	--msc-text: #17181b;
	--msc-muted: #5c606a;
	--msc-shadow: 0 8px 24px rgba(20, 20, 20, .08);
}
/* Bereiche, die auch im hellen Design dunkel bleiben (Fotos) */
:root[data-theme="light"] .msc-hero,
:root[data-theme="light"] .msc-pagehead.has-image,
:root[data-theme="light"] #gt_float_wrapper {
	--msc-accent-text: #f5c518;
	--msc-bg: #0e0f11;
	--msc-surface: #191b1f;
	--msc-surface-2: #22252a;
	--msc-surface-3: #2b2f35;
	--msc-border: #2f333a;
	--msc-text: #ececee;
	--msc-muted: #a3a7af;
}
/* Footer im hellen Design ebenfalls hell */
:root[data-theme="light"] .msc-footer { background: #e9e9e4; color: #3d4048; border-top-color: var(--msc-border); }
:root[data-theme="light"] .msc-footer__name { color: var(--msc-text); }
:root[data-theme="light"] .msc-footer__title,
:root[data-theme="light"] .msc-footer__contact .msc-icon { color: var(--msc-accent-text); }
:root[data-theme="light"] .msc-footer__menu a,
:root[data-theme="light"] .msc-footer__contact a { color: #3d4048; }
:root[data-theme="light"] .msc-footer__menu a:hover,
:root[data-theme="light"] .msc-footer__contact a:hover,
:root[data-theme="light"] .msc-footer__recaptcha a:hover { color: var(--msc-accent-text); }
:root[data-theme="light"] .msc-social a { background: #fff; color: var(--msc-text); box-shadow: 0 0 0 1px var(--msc-border); }
:root[data-theme="light"] .msc-social a:hover { background: var(--msc-accent); color: #111; }
:root[data-theme="light"] .msc-footer__recaptcha { opacity: 1; }

:root[data-theme="light"] .msc-header { border-bottom-color: rgba(0, 0, 0, .08); }
:root[data-theme="light"] .msc-header::before { background: rgba(255, 255, 255, .92); }
:root[data-theme="light"] .msc-textlogo__main { background-image: linear-gradient(180deg, #17181b 30%, #4a4d55); }
:root[data-theme="light"] .msc-textlogo { color: var(--msc-text); }
:root[data-theme="light"] .msc-burger span { background: var(--msc-text); }

:root[data-theme="light"] .msc-btn--ghost { background: #fff; color: var(--msc-accent-ink); }
:root[data-theme="light"] .msc-btn--ghost:hover { background: var(--msc-accent); }
:root[data-theme="light"] .msc-hero .msc-btn--ghost,
:root[data-theme="light"] .msc-pagehead.has-image .msc-btn--ghost { background: rgba(0, 0, 0, .35); color: var(--msc-accent); }

:root[data-theme="light"] .msc-hero__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .55) 100%); }
:root[data-theme="light"] .msc-next { background: #fff; box-shadow: 0 0 0 4px rgba(245, 197, 24, .12), 0 14px 34px rgba(0, 0, 0, .14); }
:root[data-theme="light"] .msc-pagehead { background: linear-gradient(180deg, #e7e7e2, var(--msc-bg)); }
:root[data-theme="light"] .msc-pagehead.has-image .msc-pagehead__title { color: #fff; }
:root[data-theme="light"] .msc-pagehead.has-image .msc-pagehead__meta { color: #d6d7da; }
:root[data-theme="light"] .msc-map { background: linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 22px 22px, #eceee9; }
:root[data-theme="light"] .msc-ecard:hover { border-color: #b9b9b2; }
:root[data-theme="light"] .msc-cancel { background: linear-gradient(180deg, #fff4f2, #fde9e6); }
:root[data-theme="light"] .msc-cancel__icon { color: var(--msc-red); }
:root[data-theme="light"] .msc-sponsors__item > a,
:root[data-theme="light"] .msc-sponsors__item > span { box-shadow: 0 0 0 1px var(--msc-border); }
:root[data-theme="light"] .msc-badge--finished { color: #1f7a43; }
:root[data-theme="light"] .msc-table tr.is-top-1 .c-pos { color: #9a7400; }
:root[data-theme="light"] .msc-table tr.is-top-2 .c-pos { color: #6b7380; }
:root[data-theme="light"] .msc-table tr.is-top-3 .c-pos { color: #a0602a; }
:root[data-theme="light"] .msc-ecard__cancel { color: #b3321f; }
:root[data-theme="light"] .msc-placeholder { color: var(--msc-accent); }

/* Automatisch erzeugt: Textfarben im hellen Design */
:where(:root[data-theme="light"]) a,
:where(:root[data-theme="light"]) .msc-kicker,
:where(:root[data-theme="light"]) .msc-brand__claim,
:where(:root[data-theme="light"]) .msc-menu a:hover,
:where(:root[data-theme="light"]) .msc-next__title span,
:where(:root[data-theme="light"]) .msc-next__meta .msc-icon,
:where(:root[data-theme="light"]) .msc-info__card h3 .msc-icon,
:where(:root[data-theme="light"]) .msc-schedule .t,
:where(:root[data-theme="light"]) .msc-prices .is-hl,
:where(:root[data-theme="light"]) .msc-news-mini:hover strong,
:where(:root[data-theme="light"]) .msc-feature__title,
:where(:root[data-theme="light"]) .msc-standings__head h4,
:where(:root[data-theme="light"]) .msc-badge--upcoming,
:where(:root[data-theme="light"]) .msc-ecard__date .m,
:where(:root[data-theme="light"]) .msc-ecard__wins .msc-icon,
:where(:root[data-theme="light"]) .msc-pagehead__meta .msc-icon,
:where(:root[data-theme="light"]) .msc-kicker a,
:where(:root[data-theme="light"]) .msc-rider-nr,
:where(:root[data-theme="light"]) .msc-riders img {
	color: var(--msc-accent-text);
}
:where(:root[data-theme="light"]) .msc-header {
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
:where(:root[data-theme="light"]) .msc-brand__name,
:where(:root[data-theme="light"]) .msc-next__title a,
:where(:root[data-theme="light"]) .msc-news-mini strong,
:where(:root[data-theme="light"]) .msc-feature__sub,
:where(:root[data-theme="light"]) .msc-results__event a,
:where(:root[data-theme="light"]) .msc-tabs__btn:hover,
:where(:root[data-theme="light"]) .msc-table .c-pts,
:where(:root[data-theme="light"]) .msc-table .c-name a,
:where(:root[data-theme="light"]) .msc-table .c-name,
:where(:root[data-theme="light"]) .msc-ecard__body h3 a,
:where(:root[data-theme="light"]) .msc-pagehead__title,
:where(:root[data-theme="light"]) .msc-post__title a {
	color: var(--msc-text);
}
:where(:root[data-theme="light"]) .msc-next__meta p,
:where(:root[data-theme="light"]) .msc-feature__body p,
:where(:root[data-theme="light"]) .msc-ecard__classes,
:where(:root[data-theme="light"]) .msc-pagehead__meta,
:where(:root[data-theme="light"]) .msc-content p,
:where(:root[data-theme="light"]) .msc-content li,
:where(:root[data-theme="light"]) .msc-post__body p {
	color: #3d4048;
}
:where(:root[data-theme="light"]) .msc-table td,
:where(:root[data-theme="light"]) .msc-heat__row {
	border-top: 1px solid rgba(0, 0, 0, .08);
}
:where(:root[data-theme="light"]) .msc-table tbody tr:nth-child(odd) td,
:where(:root[data-theme="light"]) .msc-heat__row:nth-child(even) {
	background: rgba(0, 0, 0, .025);
}
:where(:root[data-theme="light"]) .msc-heat__res {
	border-left: 1px solid rgba(0, 0, 0, .08);
}

/* Kopfleiste auf schmalen Handys: Platz für den Hell/Dunkel-Knopf */
@media (max-width: 480px) {
	.msc-header__bar { gap: 6px; }
	.msc-theme-toggle { width: 38px; height: 38px; margin-left: 2px; }
	.msc-theme-toggle svg { width: 18px; height: 18px; }
	.msc-burger { margin-left: 2px; }
	.msc-brand__name { font-size: .9rem; }
	.msc-brand__claim { font-size: .8rem; }
}
@media (max-width: 360px) {
	.msc-brand__name { font-size: .82rem; }
	.msc-brand__claim { font-size: .72rem; }
}

/* Aktuelles auf der Startseite: auf dem Handy flachere Bilder, damit die Seite nicht zu lang wird */
@media (max-width: 600px) {
	.msc-posts--home { gap: 14px; }
	.msc-posts--home .msc-post__media { aspect-ratio: 16 / 7; }
	.msc-posts--home .msc-post__body { padding: 14px 16px; }
}

/* Infoblock „Weitere Rennen“ (TrackEntry) */
.msc-more-wrap { margin-top: 18px; }
.msc-more { display: flex; align-items: center; gap: 16px; background: var(--msc-surface); border: 1px solid var(--msc-border); border-left: 4px solid var(--msc-accent); border-radius: var(--msc-radius); padding: 14px 18px; margin: 18px 0 28px; }
.msc-more-wrap .msc-more { margin: 0; }
.msc-more__icon { flex: none; color: var(--msc-accent-text); display: flex; }
.msc-more__icon .msc-icon { width: 28px; height: 28px; }
.msc-more__body { flex: 1; min-width: 0; }
.msc-more__title { font-size: 1.1rem; text-transform: uppercase; margin: 0 0 2px; }
.msc-more__body p { margin: 0; color: var(--msc-muted); font-size: .95rem; }
.msc-more .msc-btn { flex: none; }
@media (max-width: 600px) {
	.msc-more { flex-wrap: wrap; }
	.msc-more .msc-btn { width: 100%; }
}

/* ==========================================================================
   VORSCHAU „App-Stil“ (wie app.mowi-junior.de) – nur sichtbar mit ?vorschau=app
   Beenden mit ?vorschau=aus. Für normale Besucher ohne Wirkung.
   ========================================================================== */
html.msc-vorschau-app {
	--msc-accent: #eded00;
	--msc-bg: #0c0c0d;
	--msc-surface: #17171a;
	--msc-surface-2: #202024;
	--msc-surface-3: #2a2a30;
	--msc-border: #2e2e34;
	--msc-text: #f4f4f5;
	--msc-muted: #9a9aa4;
	--msc-radius: 24px;
	--msc-radius-sm: 14px;
	--msc-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html.msc-vorschau-app[data-theme="light"] { --msc-accent: #eded00; --msc-bg: #f3f3f0; --msc-surface: #fff; --msc-surface-2: #f0f0ec; --msc-border: #e2e2dc; --msc-text: #17181b; --msc-muted: #5c606a; }
html.msc-vorschau-app h1, html.msc-vorschau-app h2, html.msc-vorschau-app h3,
html.msc-vorschau-app .msc-h2, html.msc-vorschau-app .msc-hero__title, html.msc-vorschau-app .msc-feature__title,
html.msc-vorschau-app .msc-pagehead__title, html.msc-vorschau-app .msc-next__title { font-weight: 900; letter-spacing: -.01em; }
html.msc-vorschau-app .msc-btn { font-weight: 800; letter-spacing: .01em; text-transform: none; }
html.msc-vorschau-app .msc-next { border-radius: 28px; border-width: 1px; border-color: rgba(255,255,255,.08); background: rgba(23,23,26,.95); }
html.msc-vorschau-app[data-theme="light"] .msc-next { background: #fff; border-color: var(--msc-border); }
html.msc-vorschau-app .msc-next__title span { color: var(--msc-accent); }
html.msc-vorschau-app .msc-countdown strong { font-weight: 900; }
html.msc-vorschau-app .msc-post, html.msc-vorschau-app .msc-feature, html.msc-vorschau-app .msc-ecard,
html.msc-vorschau-app .msc-info__card, html.msc-vorschau-app .msc-more, html.msc-vorschau-app .msc-results,
html.msc-vorschau-app .msc-standings, html.msc-vorschau-app .msc-heat { border-radius: 24px; overflow: hidden; }
html.msc-vorschau-app .msc-more { border-left-width: 1px; }
html.msc-vorschau-app .msc-sponsors__item > a, html.msc-vorschau-app .msc-sponsors__item > span { border-radius: 16px; }
html.msc-vorschau-app .msc-hero__shade { background: linear-gradient(180deg, rgba(12,12,13,.5) 0%, rgba(12,12,13,.2) 40%, rgba(12,12,13,.96) 100%); }
html.msc-vorschau-app body::before {
	content: "Vorschau: App-Stil"; position: fixed; z-index: 9999; right: 12px; bottom: 12px;
	background: #eded00; color: #111; font: 800 13px/1 system-ui, sans-serif; padding: 9px 14px; border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none;
}
@media (max-width: 480px) { html.msc-vorschau-app .msc-brand__name { font-size: .8rem; } html.msc-vorschau-app .msc-brand__claim { font-size: .72rem; } }

/* „Weitere Rennen“ direkt unter „Letztes Rennen“: kein doppelter Abstand */
.msc-section--more { padding-top: 0; }
.msc-section--more .msc-more-wrap { margin-top: 0; }
.msc-section--more:empty { display: none; }
#letzte-rennen + .msc-section--more { margin-top: -14px; }

/* Facebook-Bereich (Zwei-Klick) */
.msc-fb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 28px; align-items: start; }
.msc-fb__info { display: grid; gap: 12px; justify-items: start; align-content: start; }
.msc-fb__info .msc-h2 { margin: 0; }
.msc-fb__info p { margin: 0; color: var(--msc-muted); max-width: 46ch; }
.msc-fb__box { background: var(--msc-surface); border: 1px solid var(--msc-border); border-radius: var(--msc-radius); min-height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.msc-fb__box.is-loaded { background: #fff; border-color: var(--msc-border); min-height: 0; }
.msc-fb__box iframe { display: block; border: 0; max-width: 100%; }
.msc-fb__consent { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 22px; }
.msc-fb__consent p { margin: 0; }
.msc-fb__logo { width: 44px; height: 44px; color: #1877f2; }
.msc-fb__note { font-size: .85rem; color: var(--msc-muted); max-width: 36ch; }
.msc-fb__remember { font-size: .85rem; color: var(--msc-muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; min-height: 32px; }
@media (max-width: 860px) {
	.msc-fb { grid-template-columns: 1fr; gap: 16px; }
}

/* Beitrags-Überschriften wie die übrigen Kasten-Überschriften (Jugend, Verein): gelb, fett, Großbuchstaben */
.msc-post__title { text-transform: uppercase; font-weight: 700; }
.msc-post__title a, .msc-post__title a:hover { color: var(--msc-accent); }
:where(:root[data-theme="light"]) .msc-post__title a { color: var(--msc-accent-text); }
@media (min-width: 760px) {
	.msc-posts--home .msc-post:only-child .msc-post__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
}

/* =====================================================================
   2.1.0 – Buttons im Text, Beitrags-Karten, Kategorien
   ================================================================== */

/* Links als Button:  >> Link <<  im Beitrag/auf der Seite */
.msc-content a.msc-btn,
.msc-content a.msc-btn:hover { text-decoration: none; color: var(--msc-accent-ink); }
.msc-content a.msc-btn--content { margin: 4px 8px 4px 0; vertical-align: middle; }
.msc-content .msc-btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msc-content .msc-btnrow a.msc-btn--content { margin: 0; }
.msc-content .msc-btnrow br { display: none; }

/* „Weiterlesen“ wie „Mehr zur Jugendgruppe“ */
.msc-post__body { display: flex; flex-direction: column; }
.msc-post__more { align-self: flex-start; margin-top: auto; }
.msc-post__body p:last-of-type { margin-bottom: 14px; }

/* Kategorie auf der Karte */
.msc-post__date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msc-post__cat {
	display: inline-block; padding: 1px 8px; border-radius: 999px;
	border: 1px solid var(--msc-accent); color: var(--msc-accent);
	font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.6;
}
.msc-post__cat:hover { background: var(--msc-accent); color: var(--msc-accent-ink); text-decoration: none; }
:where(:root[data-theme="light"]) .msc-post__cat { color: var(--msc-accent-text); border-color: var(--msc-accent-text); }

/* „Alle Beiträge lesen“ unter den Karten */
.msc-allposts { margin: 18px 0 0; text-align: center; }

/* Kategorie-Auswahl über der Beitragsliste */
.msc-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.msc-cats__item {
	padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
	color: #fff; font-weight: 600; font-size: .9rem;
}
.msc-cats__item:hover { border-color: var(--msc-accent); color: var(--msc-accent); text-decoration: none; }
.msc-cats__item.is-active { background: var(--msc-accent); border-color: var(--msc-accent); color: var(--msc-accent-ink); }
:where(:root[data-theme="light"]) .msc-cats__item { color: #1b1d22; border-color: rgba(0, 0, 0, .18); }
:where(:root[data-theme="light"]) .msc-cats__item.is-active { color: var(--msc-accent-ink); border-color: var(--msc-accent); }

/* Beiträge unten auf einer Seite (z. B. Jugendgruppe) */
.msc-page-posts { padding-top: 0; }

@media (max-width: 600px) {
	.msc-allposts .msc-btn { width: 100%; justify-content: center; }
	.msc-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.msc-cats__item { flex: none; }
}
