/*
###################################################################
##   [KSK] Multigaming eSports Clan e.V. – Design                 ##
##   „Einsatzzentrale“: dunkel, ruhig, Gelb nur als Akzent        ##
###################################################################

Schriften: Big Shoulders Display (Überschriften, Menü) + Lato (Text), lokal aus ../fonts.
Farben:    --ksk-accent kommt aus Admin → Einstellungen (color_primary).
Form:      abgeschrägte Ecke oben rechts an Karten und Buttons (--ksk-cut).
*/

@font-face {
	font-family: 'Big Shoulders Display';
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url('../fonts/big-shoulders-display-latin.woff') format('woff');
}
/* Eckige Klammern ([KSK] …) in Versalhöhe statt mit Unterlänge: eigene kleine Schrift nur für [ und ],
   gilt automatisch überall, wo Big Shoulders Display verwendet wird */
@font-face {
	font-family: 'Big Shoulders Display';
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url('../fonts/big-shoulders-display-klammern.woff') format('woff');
	unicode-range: U+005B, U+005D;
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/lato-400-latin.woff') format('woff');
}
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/lato-700-latin.woff') format('woff');
}

:root {
	--ksk-accent: #faffa9;
	--ksk-bg: #0f0f10;
	--ksk-bg-2: #151517;
	--ksk-panel: #18181a;
	--ksk-panel-2: #222225;
	--ksk-line: #2a2a2d;
	--ksk-text: #e9e9e6;
	--ksk-muted: #a3a39d;
	--ksk-live: #e0483e;
	--ksk-red: #b3261e; /* Hervorhebung im Menü wie in v7 */
	--ksk-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--ksk-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ksk-header: 76px;
	--ksk-cut: 18px;
}

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

html {
	scroll-padding-top: calc(var(--ksk-header) + 16px);
}

body.ksk-site {
	margin: 0;
	background: var(--ksk-bg);
	color: var(--ksk-text);
	font-family: var(--ksk-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

:where(.ksk-site) a {
	color: var(--ksk-accent);
	text-decoration: none;
}

/* :where() = keine zusätzliche Gewichtung, alte Klassen (layout/full.php) behalten ihre Linkfarben */
:where(.ksk-site) a:hover {
	color: #fff;
}

:where(.ksk-site) img {
	max-width: 100%;
}

.ksk-sr,
.ksk-site .sr-only,
.ksk-skip:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ksk-skip:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ksk-accent);
	color: #111 !important;
}

.ksk-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.ksk-site :focus-visible {
	outline: 2px solid var(--ksk-accent);
	outline-offset: 2px;
}

/* ---------- Kopfbereich ----------
   Gelber Balken (Akzentfarbe) mit Lichtkante oben und Schatten unten, dunkle Schrift.
   Untermenüs mit Bereichen (Admin → Navigation: „Spalte im Dropdown“) öffnen als breites gelbes Panel,
   einfache Untermenüs als kleines Dropdown unter dem Menüpunkt. */
.ksk-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ksk-accent);
	border-bottom: 3px solid #111;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .75),
		inset 0 -10px 14px -8px rgba(80, 80, 20, .35),
		0 10px 24px rgba(0, 0, 0, .6);
}

.ksk-header.is-open {
	z-index: 10020; /* über der Info-Leiste am rechten Rand (sidebar.css: bis 10010) */
}

.ksk-header :focus-visible {
	outline-color: #111;
}

.ksk-header-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: var(--ksk-header);
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Logo hängt als Abzeichen in den Slider, beim Scrollen schrumpft es in den Balken */
.ksk-logo {
	position: relative;
	flex: 0 0 156px;
	align-self: stretch;
	transition: flex-basis .3s ease;
}

.ksk-logo img {
	position: absolute;
	left: 0;
	top: 6px;
	width: 156px;
	height: 156px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .85));
	transition: width .3s ease, height .3s ease;
}

.ksk-header.is-scrolled .ksk-logo {
	flex-basis: 62px;
}

.ksk-header.is-scrolled .ksk-logo img {
	width: 62px;
	height: 62px;
	top: 7px;
}

.ksk-logo span {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	line-height: var(--ksk-header);
	color: #111;
}

.ksk-nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
}

.ksk-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-menu-item {
	position: relative;
}

.ksk-menu-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 0;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	color: #2a2a22 !important;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: .05em;
	white-space: nowrap;
	text-transform: uppercase;
	vertical-align: middle;
	cursor: pointer;
}

.ksk-menu-link i {
	font-size: 10px;
	opacity: .75;
	transition: transform .2s;
}

.ksk-menu-link:hover {
	color: #000 !important;
	border-bottom-color: #111;
}

.ksk-menu-link.is-active,
.ksk-menu-item.is-open > .ksk-menu-link {
	color: var(--ksk-red) !important;
	border-bottom-color: var(--ksk-red);
}

.ksk-menu-item.is-open > .ksk-menu-link i {
	transform: rotate(180deg);
}

/* Untermenü im Stil von v7: gelbe Fläche direkt unter dem Balken, Spalten mit fetter Überschrift
   und kurzem roten Strich, Einträge in normaler Schrift mit Icon wie im Admin-Menü, dünne Trennlinien zwischen den Spalten.
   Einfache Untermenüs: eine Spalte ohne Überschrift. Kurzbeschreibung (navigation_sub.description) klein darunter. */
.ksk-sub {
	position: absolute;
	top: calc(100% + 19px); /* bis zur Unterkante des Balkens (76 px Balken, 44 px Menüpunkt, 3 px Linie) */
	left: -24px; /* Icon steht bündig unter dem Menüpunkt */
	z-index: 60;
	display: none;
	padding: 16px 30px 16px 24px; /* rechts etwas mehr: die Icons sitzen mittig in ihrem 20-px-Platz, links wirkt dadurch mehr Luft (optischer Ausgleich) */
	background: var(--ksk-accent);
	box-shadow: 0 18px 32px rgba(0, 0, 0, .5);
	font-family: var(--ksk-body);
}

/* Untermenü mit Spalten-Überschriften: mehr Luft, Spalten mit Mindestbreite */
.ksk-menu-item.is-mega > .ksk-sub {
	padding: 28px 34px 26px 28px; /* optischer Ausgleich wie oben */
}

.ksk-menu-item:not(.is-mega) .ksk-sub-col {
	min-width: 0;
}

/* unsichtbare Brücke über die Lücke zwischen Menüpunkt und Fläche */
.ksk-sub::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -19px;
	height: 19px;
}

.ksk-menu-item.is-open > .ksk-sub {
	display: block;
	animation: ksk-sub-in .18s ease-out;
}

@keyframes ksk-sub-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

.ksk-sub-inner {
	display: flex;
	align-items: stretch;
}

.ksk-sub-col {
	min-width: 190px;
}

.ksk-sub-col + .ksk-sub-col {
	margin-left: 40px;
	padding-left: 40px;
	border-left: 1px solid rgba(17, 17, 17, .14);
}

.ksk-sub ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-sub-title {
	margin: 0 0 18px;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	color: #111;
	white-space: nowrap;
}

.ksk-sub-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 10px;
	background: var(--ksk-red);
}

.ksk-sub a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	color: #1a1a14 !important;
	font-size: 17px;
	line-height: 1.4;
	white-space: nowrap;
	transition: color .15s;
}

/* Icon vor dem Eintrag wie im Admin-Menü (Font Awesome; aus Admin → Navigation, sonst passend zur Seite) */
.ksk-sub-icon {
	flex: 0 0 20px;
	width: 20px;
	text-align: center;
	color: #4a4a3a;
	font-size: 15px;
	transition: color .15s;
}

.ksk-sub a:hover .ksk-sub-icon,
.ksk-sub a[aria-current="page"] .ksk-sub-icon {
	color: var(--ksk-red);
}

.ksk-sub-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ksk-sub-text strong {
	font-weight: 400;
}

.ksk-sub a:hover,
.ksk-sub a[aria-current="page"] {
	color: var(--ksk-red) !important;
}

.ksk-sub a[aria-current="page"] .ksk-sub-text strong {
	font-weight: 700;
}

/* Rechts: Suche, Login bzw. Nutzer-Menü */
.ksk-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ksk-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: rgba(24, 24, 26, .8);
	border: 1px solid #333336;
	color: #cfcfca !important;
	cursor: pointer;
}

.ksk-icon-btn:hover {
	border-color: var(--ksk-accent);
	color: var(--ksk-accent) !important;
}

.ksk-header .ksk-icon-btn {
	background: rgba(17, 17, 17, .06);
	border-color: rgba(17, 17, 17, .3);
	color: #111 !important;
}

.ksk-header .ksk-icon-btn:hover {
	background: #111;
	border-color: #111;
	color: var(--ksk-accent) !important;
}

.ksk-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	min-height: 44px;
	padding: 0 18px;
	background: #111;
	border: 1px solid #111;
	color: var(--ksk-accent) !important;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ksk-login:hover {
	color: #fff !important;
}

.ksk-usermenu {
	position: relative;
}

.ksk-user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 10px 0 4px;
	background: none;
	border: 0;
	color: #111;
	font-family: var(--ksk-body);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.15;
	text-align: left;
	cursor: pointer;
}

.ksk-user img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(17, 17, 17, .35);
}

.ksk-user small {
	display: block;
	color: #4a4a3c;
	font-weight: 400;
	font-size: 12px;
}

.ksk-user > i {
	font-size: 10px;
	transition: transform .2s;
}

.ksk-user:hover,
.ksk-usermenu.is-open > .ksk-user {
	background: #111;
	color: #e9e9e6;
}

.ksk-user:hover small,
.ksk-usermenu.is-open > .ksk-user small {
	color: #a3a39d;
}

.ksk-usermenu.is-open > .ksk-user img {
	border-color: var(--ksk-accent);
}

.ksk-usermenu.is-open > .ksk-user > i {
	transform: rotate(180deg);
}

.ksk-usermenu-list {
	position: absolute;
	top: calc(100% + 15px);
	right: 0;
	z-index: 60;
	display: none;
	min-width: 240px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--ksk-accent);
	border: 1px solid rgba(17, 17, 17, .2);
	border-top: 3px solid #111;
	box-shadow: 0 20px 36px rgba(0, 0, 0, .6);
}

.ksk-usermenu.is-open .ksk-usermenu-list {
	display: block;
}

.ksk-usermenu-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px;
	color: #1a1a14 !important;
	font-weight: 700;
	font-size: 15px;
}

.ksk-usermenu-list a i {
	width: 16px;
	text-align: center;
}

.ksk-usermenu-list a:hover {
	background: #111;
	color: var(--ksk-accent) !important;
}

.ksk-usermenu-list .is-sep {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid rgba(17, 17, 17, .2);
}

/* Suche im Balken (Lupe öffnet das Feld, Vorschläge darunter) */
.ksk-qs {
	position: relative;
	display: none;
	flex: 1 1 auto;
	max-width: 760px;
	margin: 0;
}

.ksk-header.is-searching .ksk-qs {
	display: flex;
}

.ksk-header.is-searching .ksk-menu,
.ksk-header.is-searching .ksk-search-toggle {
	display: none;
}

.ksk-qs-field {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 14px;
	margin: 0; /* Bootstrap: label */
	background: #fffff2;
	border: 2px solid #111;
	color: #111;
}

.ksk-qs-field input {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0 !important; /* alte Seiten-CSS (z. B. news.css) gestalten input global */
	outline: 0;
	background: none;
	font-family: var(--ksk-body);
	font-size: 16px;
	color: #111;
}

.ksk-qs-close {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	background: #111;
	border: 0;
	color: var(--ksk-accent);
	cursor: pointer;
}

.ksk-qs-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 46px;
	z-index: 61;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fffff2;
	border: 2px solid #111;
	border-top: 0;
	box-shadow: 0 20px 36px rgba(0, 0, 0, .6);
}

.ksk-qs-list[hidden] {
	display: none;
}

.ksk-qs-list a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 16px;
	color: #111 !important;
	font-weight: 700;
	font-size: 15px;
}

.ksk-qs-list a span {
	flex: 0 0 auto;
	font-weight: 400;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #6a6a58;
}

.ksk-qs-list a:hover,
.ksk-qs-list a.is-active {
	background: #111;
	color: var(--ksk-accent) !important;
}

.ksk-qs-list a:hover span,
.ksk-qs-list a.is-active span {
	color: #a3a39d;
}

.ksk-qs-list .ksk-qs-all a {
	justify-content: flex-start;
	font-weight: 400;
	font-size: 14px;
	color: #4a4a3a !important;
}

.ksk-burger {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 12px 10px;
	flex-direction: column;
	justify-content: space-between;
	background: none;
	border: 1px solid rgba(17, 17, 17, .35);
	cursor: pointer;
}

.ksk-burger > span:not(.ksk-sr) {
	display: block;
	height: 2px;
	background: #111;
	transition: transform .2s, opacity .2s;
}

/* ---------- Kopfbereich: Tablet / Handy ---------- */
@media (max-width: 1279px) {
	.ksk-burger {
		display: flex;
	}

	/* Logo hängt wie am Desktop über den Balken in den Slider, beim Scrollen und bei offenem Menü klein im Balken */
	.ksk-logo {
		flex-basis: 124px;
	}

	.ksk-logo img {
		width: 124px;
		height: 124px;
		top: 6px;
	}

	.ksk-header.is-scrolled .ksk-logo,
	.ksk-header.is-open .ksk-logo {
		flex-basis: 58px;
	}

	.ksk-header.is-scrolled .ksk-logo img,
	.ksk-header.is-open .ksk-logo img {
		width: 58px;
		height: 58px;
		top: 9px;
	}

	/* Aufgeklapptes Menü: gelbe Fläche unter dem Balken */
	.ksk-nav {
		position: fixed;
		top: calc(var(--ksk-header) + 3px);
		left: 0;
		right: 0;
		bottom: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 16px 20px 0;
		overflow-y: auto;
		background: var(--ksk-accent);
	}

	.ksk-header.is-open .ksk-nav {
		display: flex;
	}

	.ksk-header.is-open .ksk-burger {
		background: #111;
		border-color: #111;
	}

	.ksk-header.is-open .ksk-burger > span:not(.ksk-sr) {
		background: var(--ksk-accent);
	}

	.ksk-header.is-open .ksk-burger > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.ksk-header.is-open .ksk-burger > span:nth-child(2) { opacity: 0; }
	.ksk-header.is-open .ksk-burger > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	/* Suche immer oben im Menü */
	.ksk-qs {
		display: flex;
		flex: 0 0 auto;
		max-width: none;
		margin-bottom: 10px;
	}

	.ksk-qs-close,
	.ksk-search-toggle {
		display: none !important;
	}

	.ksk-qs-list {
		right: 0;
	}

	.ksk-header.is-searching .ksk-menu {
		display: flex;
	}

	.ksk-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.ksk-menu-item {
		border-bottom: 1px solid rgba(17, 17, 17, .18);
	}

	.ksk-menu-link {
		width: 100%;
		justify-content: space-between;
		min-height: 52px;
		font-size: 24px;
		border-bottom: 0;
	}

	.ksk-menu-link:hover,
	.ksk-menu-link.is-active,
	.ksk-menu-item.is-open > .ksk-menu-link {
		border-bottom: 0;
	}

	/* Untermenü mit feiner Linie links, Zwischenüberschriften mit kleinem Querstrich an der Linie,
	   aktuelle Seite mit rotem Strich auf der Linie. Entwurf C (ohne schwarze Schilder) auf der Canvas
	   „Handy-Menü · Untermenü“ */
	.ksk-sub {
		display: none;
	}

	.ksk-sub,
	.ksk-menu-item.is-mega > .ksk-sub {
		position: static;
		margin: 0 0 14px 4px;
		padding: 2px 0 6px 18px;
		background: none;
		border-left: 1px solid rgba(17, 17, 17, .28);
		box-shadow: none;
	}

	.ksk-menu-item.is-open > .ksk-sub {
		animation: none;
	}

	.ksk-sub::after {
		display: none;
	}

	.ksk-sub-inner {
		flex-direction: column;
		gap: 10px;
	}

	.ksk-sub-col + .ksk-sub-col {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.ksk-sub-title {
		position: relative;
		margin: 10px 0 2px;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .16em;
		text-transform: uppercase;
		color: #6b6b52;
	}

	.ksk-sub-title::before {
		content: "";
		position: absolute;
		top: 50%;
		left: -19px;
		width: 10px;
		border-top: 1px solid rgba(17, 17, 17, .28);
	}

	.ksk-sub-title::after,
	.ksk-sub-icon {
		display: none;
	}

	.ksk-sub a {
		padding: 7px 0;
		font-size: 16px;
		font-weight: 700;
	}

	/* aktuelle Seite: rot, roter Strich auf der Linie */
	.ksk-sub a[aria-current="page"] {
		position: relative;
		color: var(--ksk-red);
	}

	.ksk-sub a[aria-current="page"]::before {
		content: "";
		position: absolute;
		top: 6px;
		bottom: 6px;
		left: -20px;
		width: 3px;
		background: var(--ksk-red);
	}

	/* Menüpunkte nicht zusammenstauchen: die Liste wächst, das Menü scrollt */
	.ksk-menu {
		flex: 0 0 auto;
	}

	/* Login bzw. Nutzer unten in einer schwarzen Leiste – am Ende der Liste, nicht angeheftet,
	   damit sie aufgeklappte Untermenüs (z. B. Rechtliches) nicht verdeckt */
	.ksk-actions {
		position: static;
		flex-wrap: wrap;
		margin: auto -20px 0;
		padding: 14px 20px 20px;
		background: #111;
	}

	.ksk-header .ksk-actions .ksk-login {
		flex: 1 1 auto;
		justify-content: center;
		min-height: 50px;
		border: 1px solid #3a3a36;
		font-family: var(--ksk-display);
		font-weight: 800;
		font-size: 19px;
		letter-spacing: .08em;
	}

	.ksk-usermenu {
		flex: 1 1 100%;
	}

	.ksk-user {
		width: 100%;
		color: #e9e9e6;
		pointer-events: none;
	}

	.ksk-user small {
		color: #a3a39d;
	}

	.ksk-user > i {
		display: none;
	}

	.ksk-usermenu-list {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		min-width: 0;
		margin-top: 10px;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
	}

	.ksk-usermenu-list li {
		flex: 1 1 auto;
	}

	.ksk-usermenu-list a,
	.ksk-usermenu-list .is-sep a {
		justify-content: center;
		min-height: 44px;
		padding: 0 12px;
		border: 1px solid #3a3a36;
		color: var(--ksk-accent) !important;
		font-size: 14px;
	}

	.ksk-usermenu-list .is-sep {
		margin: 0;
		padding: 0;
		border: 0;
	}
}

/* ---------- Slider ----------
   Alle Folien liegen im selben Rasterfeld übereinander: der Slider ist immer so hoch wie die
   höchste Folie und springt beim Wechsel nicht (die Seite darunter „wandert“ nicht mehr). */
.ksk-slider {
	position: relative;
	display: grid;
	overflow: hidden;
	min-height: 640px;
	background: #121214;
	border-bottom: 1px solid #26262a;
}

.ksk-slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	align-items: flex-end;
	min-height: 640px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}

.ksk-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s ease;
}

.ksk-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	transition: transform 7s ease-out;
}

.ksk-slide.is-active .ksk-slide-bg {
	transform: none;
}

/* Abdunklung: links kräftig für die Schrift, unten weicher Übergang in den Seitenhintergrund */
.ksk-slide-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, var(--ksk-bg) 0%, rgba(15, 15, 16, 0) 30%),
		linear-gradient(90deg, rgba(12, 12, 13, .92) 0%, rgba(12, 12, 13, .6) 50%, rgba(12, 12, 13, .25) 100%);
}

.ksk-slide-content {
	position: relative;
	padding-top: 150px;
	padding-bottom: 120px;
}

.ksk-slide-content > * {
	max-width: 720px;
}

.ksk-slide.is-active .ksk-slide-content {
	animation: ksk-fade .7s ease-out both;
}

.ksk-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #b4b4ae;
}

.ksk-kicker span {
	width: 28px;
	height: 2px;
	background: var(--ksk-accent);
}

.ksk-slide-title {
	margin: 16px 0 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(48px, 7vw, 96px);
	line-height: .92;
	letter-spacing: .01em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	color: #fff;
}

.ksk-slide-sub {
	margin-top: 10px;
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: clamp(22px, 2.6vw, 30px);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-slide-text {
	margin: 16px 0 0;
	font-size: 18px;
	color: #d0d0ca;
}

.ksk-slider-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 36px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.ksk-dots {
	display: flex;
	gap: 6px;
}

.ksk-dot {
	width: 34px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.ksk-dot span {
	display: block;
	height: 4px;
	background: #4a4a46;
	transition: background .3s;
}

.ksk-dot.is-active span,
.ksk-dot:hover span {
	background: var(--ksk-accent);
}

.ksk-counter {
	white-space: nowrap;
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .1em;
	color: #8f8f89;
}

/* ---------- Buttons ---------- */
.ksk-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	margin-top: 30px;
	padding: 0 28px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .08em;
	text-transform: uppercase;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
	transition: filter .2s, box-shadow .2s;
}

.ksk-btn-primary {
	background: var(--ksk-accent);
	color: #111 !important;
}

.ksk-btn-primary:hover {
	filter: brightness(1.08);
	color: #111 !important;
}

.ksk-btn-dark {
	margin-top: 0;
	background: #111;
	color: var(--ksk-accent) !important;
}

.ksk-btn-dark:hover {
	color: #fff !important;
}

/* „Akte öffnen“ für den Slider-Button: bei jedem Folienwechsel neu */
.ksk-slide.is-active .ksk-file {
	position: relative;
	animation: ksk-file-open .6s cubic-bezier(.65, 0, .35, 1) .35s backwards;
}

.ksk-slide.is-active .ksk-file::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -5px;
	width: 5px;
	background: #fff;
	box-shadow: 0 0 14px var(--ksk-accent);
	opacity: 0;
	animation: ksk-file-bar .6s cubic-bezier(.65, 0, .35, 1) .35s both, ksk-file-bar-out .25s ease-out .95s both;
}

/* ---------- Seitenkopf (Unterseiten im neuen Design) ----------
   Oben genug Luft für das hängende Logo; Hintergrund: Raster + gelber Schimmer rechts */
.ksk-pagehead {
	position: relative;
	overflow: hidden;
	padding: 128px 0 44px;
	background:
		radial-gradient(ellipse 60% 120% at 100% 0%, color-mix(in srgb, var(--ksk-accent) 9%, transparent), transparent 70%),
		linear-gradient(0deg, var(--ksk-bg) 0%, rgba(15, 15, 16, 0) 60%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 80px),
		var(--ksk-bg-2);
	border-bottom: 1px solid #26262a;
}

.ksk-pagehead .ksk-kicker {
	margin-bottom: 14px;
}

.ksk-h1 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(44px, 6vw, 76px);
	line-height: .95;
	letter-spacing: .01em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	color: #fff;
	animation: ksk-fade .6s ease-out both;
}

.ksk-lead {
	max-width: 720px;
	margin: 14px 0 0;
	font-size: 18px;
	color: #c4c4be;
}

.ksk-pagehead + .ksk-section {
	padding-top: 56px;
}

/* Kachel-Zähler, z. B. „6 Teams“ */
.ksk-count {
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

/* ---------- Kennzahlen ---------- */
.ksk-stats {
	background: var(--ksk-bg-2);
	border-bottom: 1px solid #26262a;
}

.ksk-stats-row {
	display: flex;
	flex-wrap: wrap;
}

.ksk-stat {
	flex: 1 1 200px;
	padding: 26px 24px;
	border-right: 1px solid #26262a;
}

.ksk-stat:first-child {
	padding-left: 0;
}

.ksk-stat:last-child {
	border-right: 0;
}

.ksk-stat strong {
	display: block;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
	color: #fff;
}

.ksk-stat strong.is-accent {
	color: var(--ksk-accent);
}

.ksk-stat span {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

/* ---------- Abschnitte ---------- */
.ksk-section {
	padding-top: 88px;
}

.ksk-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 26px;
}

.ksk-h2 {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
}

.ksk-h2::before {
	content: "";
	width: 6px;
	height: .85em;
	background: var(--ksk-accent);
}

.ksk-h2-sm {
	font-size: 32px;
}

.ksk-more {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ksk-muted {
	color: var(--ksk-muted);
}

/* ---------- Karten (News) ---------- */
.ksk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ksk-panel);
	border: 1px solid var(--ksk-line);
	color: var(--ksk-text) !important;
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	transition: transform .2s ease, background-color .2s ease;
}

.ksk-card:hover {
	transform: translateY(-4px);
	background: #1d1d20;
}

/* Glanz beim Darüberfahren (wie die Medaillen im Profil) */
.ksk-card::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -120%;
	width: 40%;
	opacity: 0;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .1) 45%, rgba(250, 255, 169, .14) 50%, rgba(255, 255, 255, .1) 55%, transparent);
	transform: skewX(-18deg);
	pointer-events: none;
}

.ksk-card:hover::after {
	left: 140%;
	opacity: 1;
	transition: left .7s ease-out;
}

.ksk-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--ksk-panel-2);
	overflow: hidden;
}

.ksk-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.ksk-card:hover .ksk-card-media img {
	transform: scale(1.04);
}

.ksk-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 22px;
}

.ksk-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-tag {
	padding: 3px 8px;
	background: var(--ksk-accent);
	color: #111;
	font-weight: 700;
}

.ksk-card-title {
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-card-text {
	color: #b9b9b3;
}

.ksk-news {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto auto;
	gap: 24px;
}

.ksk-news-card.is-main {
	grid-row: span 2;
	--ksk-cut: 24px;
}

.ksk-news-card.is-main .ksk-card-title {
	font-size: 34px;
}

.ksk-news-card:not(.is-main) .ksk-card-media {
	aspect-ratio: 16 / 7;
}

/* ---------- Teams (Bild aus Admin → Teams, sonst dunkle Kachel) ---------- */
.ksk-teams {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.ksk-team {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 72px;
	overflow: hidden;
	background: var(--ksk-panel);
	border: 1px solid var(--ksk-line);
	color: #fff !important;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.ksk-team.has-image {
	aspect-ratio: 16 / 9;
}

.ksk-team img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease, filter .3s ease;
	filter: saturate(.85) brightness(.8);
}

.ksk-team.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 10, 11, .92) 0%, rgba(10, 10, 11, .35) 45%, rgba(10, 10, 11, 0) 70%);
	z-index: 1;
}

.ksk-team-name {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	border-left: 3px solid #3a3a36;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: border-color .2s;
}

.ksk-team-name i {
	font-size: 12px;
	color: #b4b4ae;
	transition: transform .2s, color .2s;
}

.ksk-team:hover img {
	transform: scale(1.05);
	filter: saturate(1) brightness(.95);
}

.ksk-team:hover .ksk-team-name {
	border-left-color: var(--ksk-accent);
}

.ksk-team:hover .ksk-team-name i {
	color: var(--ksk-accent);
	transform: translateX(3px);
}

/* ---------- Forum + Community ---------- */
.ksk-split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 24px;
}

.ksk-split-main {
	flex: 3 1 520px;
	min-width: 0;
}

.ksk-split-side {
	flex: 2 1 320px;
	min-width: 0;
}

.ksk-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--ksk-line);
}

.ksk-list li + li {
	border-top: 1px solid #242427;
}

.ksk-list a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	padding: 16px 20px;
	background: var(--ksk-panel);
	color: var(--ksk-text) !important;
	transition: background-color .2s;
}

.ksk-list a:hover {
	background: #1d1d20;
}

.ksk-list-main {
	flex: 1 1 260px;
	min-width: 0;
}

.ksk-list-main strong {
	display: block;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ksk-list-main span,
.ksk-list-time {
	color: var(--ksk-muted);
	font-size: 14px;
}

.ksk-community {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ksk-community-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--ksk-panel);
	border: 1px solid var(--ksk-line);
	color: var(--ksk-text) !important;
	transition: border-color .2s;
}

.ksk-community-item:hover {
	border-color: #45453f;
}

.ksk-community-item strong {
	display: block;
	color: #fff;
}

.ksk-community-item small {
	color: var(--ksk-muted);
	font-size: 14px;
}

.ksk-community-icon {
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--ksk-panel-2);
	color: var(--ksk-accent);
	font-size: 20px;
}

.ksk-community-icon.is-live {
	color: var(--ksk-live);
}

.ksk-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.ksk-social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--ksk-panel);
	border: 1px solid var(--ksk-line);
	color: #cfcfca !important;
	font-size: 18px;
}

.ksk-social a:hover {
	border-color: var(--ksk-accent);
	color: var(--ksk-accent) !important;
}

/* ---------- Mitmachen ---------- */
.ksk-join {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 44px 48px;
	background: var(--ksk-accent);
	color: #111;
	clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}

.ksk-join h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(36px, 5vw, 52px);
	line-height: .95;
	text-transform: uppercase;
}

.ksk-join p {
	margin: 10px 0 0;
	font-size: 17px;
	color: #2b2b22;
}

/* ---------- Fußbereich (layout/_footer.php aus v7) ---------- */
.ksk-site .ksk-footer {
	margin-top: var(--ksk-content-bottom, 96px);
	background: #0b0b0c;
	border-top: 3px solid var(--ksk-accent);
	font-family: var(--ksk-body);
}

.ksk-site .ksk-footer strong,
.ksk-site .ksk-footer-title {
	font-family: var(--ksk-display);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ksk-site .ksk-footer-bottom {
	background: #0b0b0c;
	border-top: 1px solid #1f1f22;
}

.ksk-site .ksk-footer .container,
.ksk-site .ksk-footer-bottom .container {
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- Animationen ---------- */
@keyframes ksk-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes ksk-file-open {
	from { clip-path: inset(0 100% 0 0); }
	to   { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
}

@keyframes ksk-file-bar {
	from { left: -5px; opacity: 1; }
	to   { left: calc(100% - 5px); opacity: 1; }
}

@keyframes ksk-file-bar-out {
	from { left: calc(100% - 5px); opacity: 1; }
	to   { left: calc(100% - 5px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ksk-site *,
	.ksk-site *::before,
	.ksk-site *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1279px) {
	.ksk-news {
		grid-template-columns: 1fr;
	}

	.ksk-news-card.is-main {
		grid-row: auto;
	}
}

@media (max-width: 640px) {
	.ksk-slider,
	.ksk-slide {
		min-height: 560px;
	}

	.ksk-slide-content {
		padding-top: 110px;
		padding-bottom: 110px;
	}

	.ksk-slider-controls {
		gap: 8px;
	}

	.ksk-dot {
		width: 22px;
	}

	.ksk-stat {
		flex-basis: 50%;
		padding: 20px 16px;
	}

	.ksk-stat:nth-child(odd) {
		padding-left: 0;
	}

	.ksk-stat:nth-child(2) {
		border-right: 0;
	}

	.ksk-stat:nth-child(-n+2) {
		border-bottom: 1px solid #26262a;
	}

	.ksk-stat strong {
		font-size: 36px;
	}

	.ksk-section {
		padding-top: 64px;
	}

	.ksk-h2 {
		font-size: 32px;
	}

	.ksk-join {
		padding: 32px 24px;
	}
}

@media (max-width: 1279px) {
	.ksk-pagehead {
		padding-top: 56px;
	}
}

@media (max-width: 640px) {
	.ksk-pagehead {
		padding: 40px 0 32px;
	}

	.ksk-lead {
		font-size: 16px;
	}
}

/* Slider auf Tablet/Handy: Text oben ausrichten, damit Überschrift und Kicker beim Folienwechsel
   an derselben Stelle bleiben (unten ausgerichtet wanderten sie je nach Textlänge);
   rechts Platz für die Info-Leiste (Icons am rechten Rand) */
@media (max-width: 1279px) {
	.ksk-slide {
		align-items: flex-start;
	}

	.ksk-slide-content {
		padding-bottom: 130px; /* Platz für Pfeile und Balken unten */
	}
}

@media (max-width: 900px) {
	.ksk-slide-content,
	.ksk-slider-controls {
		padding-right: 72px;
	}
}

/* ======================================================================
   Wählbare Kopfzeilen (Auswahl im Footer, BaseController::HEADER_STYLES)
   .ksk-kopf-standard  bisheriger Balken
   .ksk-kopf-info      schwarze Infozeile oben, Suchfeld offen im Balken
   .ksk-kopf-keil      schwarzer Keil rechts hinter Lupe und Nutzer-Menü
   .ksk-kopf-zellen    Menüpunkte als Zellen mit Trennlinien und Nummern
   .ksk-kopf-leiste    graue Unterleiste mit den Seiten des aktuellen Bereichs
   Unter 1280 px sehen alle Varianten gleich aus (Handy-Menü).
   ====================================================================== */

.ksk-topline,
.ksk-subbar {
	display: none;
}

@media (min-width: 1280px) {
	/* ---------- 1 · Infozeile ---------- */
	.ksk-kopf-info .ksk-topline {
		display: block;
		max-height: 36px;
		overflow: hidden;
		background: #0c0c0d;
		box-shadow: inset 0 -1px 0 #000;
		transition: max-height .3s ease;
	}

	.ksk-kopf-info.is-scrolled .ksk-topline {
		max-height: 0;
	}

	.ksk-topline-inner {
		max-width: 1440px;
		height: 36px;
		margin: 0 auto;
		padding: 0 24px 0 204px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		font-size: 13px;
		color: #a3a39d;
	}

	.ksk-topline ul {
		display: flex;
		align-items: center;
		gap: 22px;
		margin: 0;
		padding: 0;
		list-style: none;
		white-space: nowrap;
	}

	.ksk-topline li {
		display: flex;
		align-items: center;
		gap: 7px;
	}

	.ksk-topline a {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		color: #cfcfca !important;
	}

	.ksk-topline a:hover {
		color: var(--ksk-accent) !important;
	}

	.ksk-topline strong {
		color: #fff;
	}

	.ksk-topline-left a strong {
		color: var(--ksk-accent);
	}

	.ksk-topline img {
		width: 22px;
		height: 22px;
		border-radius: 50%;
		object-fit: cover;
		border: 1px solid #555;
	}

	.ksk-dot-on {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: #4caf50;
	}

	.ksk-kopf-info .ksk-usermenu,
	.ksk-kopf-info .ksk-login,
	.ksk-kopf-info .ksk-search-toggle,
	.ksk-kopf-info .ksk-qs-close {
		display: none !important;
	}

	/* Suchfeld immer offen, rechts im Balken */
	.ksk-kopf-info .ksk-menu { order: 1; }
	.ksk-kopf-info .ksk-qs { order: 2; display: flex; flex: 0 1 300px; margin-left: auto; }
	.ksk-kopf-info .ksk-actions { order: 3; }

	.ksk-kopf-info .ksk-qs-field {
		height: 42px;
		background: rgba(17, 17, 17, .07);
		border: 1px solid rgba(17, 17, 17, .35);
	}

	.ksk-kopf-info .ksk-qs-field:focus-within {
		background: #fffff2;
		border-color: #111;
	}

	.ksk-kopf-info .ksk-qs-list {
		right: 0;
	}

	/* ---------- 2 · Keil ----------
	   Schwarzer Keil nur hinter Lupe und Login bzw. Nutzer-Menü, damit das Menü genug Platz hat.
	   Die Lupe öffnet die Suche wie beim Standard (anstelle des Menüs). */
	.ksk-kopf-keil {
		overflow-x: clip;
	}

	.ksk-kopf-keil .ksk-nav {
		align-self: stretch;
	}

	.ksk-kopf-keil .ksk-qs {
		align-self: center;
	}

	.ksk-kopf-keil .ksk-actions {
		position: relative;
		align-self: stretch;
		padding-left: 110px; /* Keil beginnt deutlich links der Lupe */
	}

	.ksk-kopf-keil .ksk-actions::before {
		content: "";
		position: absolute;
		z-index: -1;
		top: 0;
		bottom: 0;
		left: 0;
		right: -100vw;
		background: #111;
		clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%);
	}

	/* offene Suche: Keil reicht bis kurz vor das Feld, Feld dunkel */
	.ksk-kopf-keil.is-searching .ksk-qs {
		position: relative;
		margin-right: 0;
	}

	.ksk-kopf-keil.is-searching .ksk-qs::before {
		content: "";
		position: absolute;
		z-index: -1;
		top: -19px; /* (76 px Balken − 38 px Feld) / 2 */
		bottom: -19px;
		left: -62px;
		right: -100vw;
		background: #111;
		clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%);
	}

	.ksk-kopf-keil .ksk-qs-field {
		background: #1f1f20;
		border: 1px solid #3a3a3a;
		color: #a3a39d;
	}

	.ksk-kopf-keil .ksk-qs-field:focus-within {
		border-color: var(--ksk-accent);
	}

	.ksk-kopf-keil .ksk-qs-field input {
		color: #fff;
	}

	.ksk-kopf-keil .ksk-qs-close {
		background: #1f1f20;
		border: 1px solid #3a3a3a;
		border-left: 0;
	}

	.ksk-kopf-keil .ksk-search-toggle {
		background: #1f1f20;
		border-color: #3a3a3a;
		color: #cfcfca !important;
	}

	.ksk-kopf-keil .ksk-search-toggle:hover {
		background: #1f1f20;
		border-color: var(--ksk-accent);
		color: var(--ksk-accent) !important;
	}

	.ksk-kopf-keil .ksk-user {
		color: #e9e9e6;
	}

	.ksk-kopf-keil .ksk-user small {
		color: #9a9a94;
	}

	.ksk-kopf-keil .ksk-user img {
		border-color: var(--ksk-accent);
	}

	.ksk-kopf-keil .ksk-user:hover,
	.ksk-kopf-keil .ksk-usermenu.is-open > .ksk-user {
		background: #222225;
	}

	.ksk-kopf-keil .ksk-login {
		background: var(--ksk-accent);
		border-color: var(--ksk-accent);
		color: #111 !important;
	}

	.ksk-kopf-keil .ksk-usermenu-list {
		top: calc(100% + 15px);
	}

	/* aktiver Punkt: roter Unterstrich wie bei den anderen Varianten (kein Quadrat davor) */
	.ksk-kopf-keil .ksk-menu-link:hover {
		color: var(--ksk-red) !important;
	}

	/* ---------- 3 · Zellen ---------- */
	.ksk-kopf-zellen .ksk-header-inner {
		padding-right: 0;
	}

	.ksk-kopf-zellen .ksk-nav {
		align-self: stretch;
		align-items: stretch;
	}

	.ksk-kopf-zellen .ksk-qs {
		align-self: center;
	}

	.ksk-kopf-zellen .ksk-menu {
		align-items: stretch;
		gap: 0;
		border-left: 1px solid rgba(17, 17, 17, .2);
		counter-reset: ksk-kopf;
	}

	.ksk-kopf-zellen .ksk-menu-item {
		display: flex;
		counter-increment: ksk-kopf;
	}

	.ksk-kopf-zellen .ksk-menu-link {
		position: relative;
		min-height: var(--ksk-header);
		padding: 16px 24px 0;
		border-bottom: 0;
		border-right: 1px solid rgba(17, 17, 17, .2);
		font-size: 20px;
	}

	.ksk-kopf-zellen .ksk-menu-link::before {
		content: counter(ksk-kopf, decimal-leading-zero);
		position: absolute;
		left: 24px;
		top: 14px;
		font-family: var(--ksk-body);
		font-weight: 700;
		font-size: 11px;
		line-height: 1;
		letter-spacing: .14em;
		color: #77775f;
	}

	.ksk-kopf-zellen .ksk-menu-link:hover {
		background: rgba(17, 17, 17, .05);
		color: var(--ksk-red) !important;
	}

	.ksk-kopf-zellen .ksk-menu-link.is-active,
	.ksk-kopf-zellen .ksk-menu-item.is-open > .ksk-menu-link {
		background: rgba(17, 17, 17, .08);
		box-shadow: inset 0 -4px 0 var(--ksk-red);
	}

	.ksk-kopf-zellen .ksk-menu-link.is-active::before,
	.ksk-kopf-zellen .ksk-menu-item.is-open > .ksk-menu-link::before {
		color: var(--ksk-red);
	}

	/* Untermenü direkt unter der Zelle, Icons bündig mit dem Text */
	.ksk-kopf-zellen .ksk-sub {
		top: calc(100% + 3px);
		left: 0;
	}

	.ksk-kopf-zellen .ksk-sub::after {
		top: -3px;
		height: 3px;
	}

	.ksk-kopf-zellen .ksk-actions {
		align-self: stretch;
		gap: 0;
	}

	.ksk-kopf-zellen .ksk-search-toggle {
		width: var(--ksk-header);
		height: auto;
		align-self: stretch;
		background: none;
		border: 0;
		border-left: 1px solid rgba(17, 17, 17, .2);
	}

	.ksk-kopf-zellen .ksk-usermenu {
		display: flex;
	}

	.ksk-kopf-zellen .ksk-user {
		padding: 0 24px;
		background: #111;
		color: #e9e9e6;
	}

	.ksk-kopf-zellen .ksk-user small {
		color: #9a9a94;
	}

	.ksk-kopf-zellen .ksk-user img {
		border-color: var(--ksk-accent);
	}

	.ksk-kopf-zellen .ksk-user:hover,
	.ksk-kopf-zellen .ksk-usermenu.is-open > .ksk-user {
		background: #222225;
	}

	.ksk-kopf-zellen .ksk-usermenu-list {
		top: calc(100% + 3px);
	}

	.ksk-kopf-zellen .ksk-login {
		min-height: 0;
		align-self: stretch;
		padding: 0 28px;
	}

	/* ---------- 4 · Unterleiste ---------- */
	.ksk-kopf-leiste.has-subbar {
		border-bottom: 1px solid #3a3a3a;
		box-shadow:
			inset 0 2px 0 rgba(255, 255, 255, .75),
			0 10px 24px rgba(0, 0, 0, .6);
	}

	.ksk-kopf-leiste.has-subbar .ksk-header-inner {
		box-shadow: inset 0 -10px 14px -8px rgba(80, 80, 20, .35);
	}

	.ksk-kopf-leiste .ksk-subbar {
		display: block;
		background: #2a2a2b;
		border-top: 3px solid #111;
	}

	.ksk-subbar-inner {
		max-width: 1440px;
		height: 46px;
		margin: 0 auto;
		padding: 0 24px 0 204px;
		display: flex;
		align-items: stretch;
		justify-content: space-between;
		gap: 24px;
		transition: padding-left .3s ease;
	}

	.ksk-kopf-leiste.is-scrolled .ksk-subbar-inner {
		padding-left: 110px;
	}

	.ksk-subbar-nav {
		display: flex;
		align-items: stretch;
		gap: 26px;
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ksk-subbar-nav a {
		display: flex;
		align-items: center;
		white-space: nowrap;
		font-size: 15px;
		color: #c9c9c3 !important;
	}

	.ksk-subbar-nav a:hover {
		color: #fff !important;
	}

	.ksk-subbar-nav a[aria-current="page"] {
		color: #fff !important;
		font-weight: 700;
		box-shadow: inset 0 -3px 0 var(--ksk-red);
	}

	.ksk-subbar-path {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 13px;
		color: #8a8a84;
		white-space: nowrap;
	}

	.ksk-subbar-path a {
		color: #8a8a84 !important;
	}

	.ksk-subbar-path a:hover {
		color: #fff !important;
	}

	.ksk-subbar-path span {
		color: #555;
	}

	.ksk-subbar-path strong {
		font-weight: 400;
		color: var(--ksk-accent);
	}
}

@media (min-width: 1280px) and (max-width: 1439px) {
	.ksk-subbar-path {
		display: none;
	}
}

/* Suchfeld im Kopf: kein zweiter Fokus-Rahmen um das Eingabefeld, das Feld hat schon einen */
.ksk-qs-field input:focus,
.ksk-qs-field input:focus-visible {
	outline: 0;
	box-shadow: none;
}

/* Geöffnete Suche (Desktop, alle Kopfzeilen): kompakt rechts bei der Lupe statt über die ganze Breite */
@media (min-width: 1280px) {
	.ksk-header.is-searching .ksk-qs {
		flex: 0 1 460px;
		margin-left: auto;
	}

	.ksk-header .ksk-qs-field {
		height: 42px;
		gap: 10px;
		padding: 0 12px;
	}

	.ksk-header .ksk-qs-field input {
		font-size: 15px;
	}

	.ksk-header .ksk-qs-close {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.ksk-header .ksk-qs-list {
		right: 42px;
	}

	.ksk-kopf-info .ksk-qs-list {
		right: 0; /* ohne Schließen-Knopf */
	}
}

/* Handy: hängendes Logo etwas kleiner */
@media (max-width: 640px) {
	.ksk-logo {
		flex-basis: 108px;
	}

	.ksk-logo img {
		width: 108px;
		height: 108px;
	}
}

/* Startseite als Haus-Symbol im Menü (Test); im Handy-Menü mit Text */
.ksk-menu-home .ksk-menu-link i {
	font-size: 18px;
	opacity: 1;
}

.ksk-menu-home-text {
	display: none;
}

@media (max-width: 1279px) {
	.ksk-menu-home .ksk-menu-link {
		justify-content: flex-start;
		gap: 12px;
	}

	.ksk-menu-home-text {
		display: inline;
	}
}

@media (min-width: 1280px) {
	/* Zellen: Haus ohne Nummer, die Zählung beginnt bei News mit 01 */
	.ksk-kopf-zellen .ksk-menu-home {
		counter-increment: none;
	}

	.ksk-kopf-zellen .ksk-menu-home .ksk-menu-link {
		padding-top: 0;
	}

	.ksk-kopf-zellen .ksk-menu-home .ksk-menu-link::before {
		content: none;
	}
}

/* Keil: bei schmalen Desktop-Breiten weniger Vorlauf, damit das Menü Platz behält */
@media (min-width: 1280px) and (max-width: 1439px) {
	.ksk-kopf-keil .ksk-actions {
		padding-left: 64px;
	}
}

/* Menüpunkte etwas weiter vom Logo weg (Standard und Infozeile; Keil, Zellen und Unterleiste eigene Werte) */
@media (min-width: 1280px) {
	.ksk-menu {
		margin-left: 15px;
	}

	.ksk-kopf-keil .ksk-menu {
		margin-left: 10px;
	}
}

/* Zellen: Menü 10 px weiter links als bei den anderen Kopfzeilen */
@media (min-width: 1280px) {
	.ksk-kopf-zellen .ksk-menu {
		margin-left: -5px;
	}
}

@media (min-width: 1280px) {
	/* Infozeile: flacheres Suchfeld */
	.ksk-kopf-info .ksk-qs-field {
		height: 36px;
	}

	/* Unterleiste: Menü weiter rechts */
	.ksk-kopf-leiste .ksk-menu {
		margin-left: 25px;
	}

	/* Standard, Keil, Unterleiste: Lupe, Login und geöffnetes Suchfeld flacher (38 px) */
	.ksk-kopf-standard .ksk-search-toggle,
	.ksk-kopf-keil .ksk-search-toggle,
	.ksk-kopf-leiste .ksk-search-toggle {
		width: 38px;
		height: 38px;
	}

	.ksk-kopf-standard .ksk-login,
	.ksk-kopf-keil .ksk-login,
	.ksk-kopf-leiste .ksk-login {
		min-height: 38px;
		padding: 0 16px;
	}

	.ksk-kopf-standard .ksk-qs-field,
	.ksk-kopf-keil .ksk-qs-field,
	.ksk-kopf-leiste .ksk-qs-field {
		height: 38px;
	}

	.ksk-kopf-standard .ksk-qs-close,
	.ksk-kopf-keil .ksk-qs-close,
	.ksk-kopf-leiste .ksk-qs-close {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}

	.ksk-kopf-standard .ksk-qs-list,
	.ksk-kopf-keil .ksk-qs-list,
	.ksk-kopf-leiste .ksk-qs-list {
		right: 38px;
	}
}

/* ======================================================================
   Ergänzungen aus v10 (Slider-Einstellungen, Team-Logos, Sprachauswahl, Hinweise)
   ====================================================================== */

/* Slider: Bildausschnitt, Zoom und Textposition aus Admin → Slider */
.ksk-slide-media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.ksk-slide-blur {
	filter: blur(28px) brightness(.7);
	transform: scale(1.15);
}

.ksk-slide.is-active .ksk-slide-blur {
	transform: scale(1.15);
}

.ksk-slide.is-text-center .ksk-slide-content {
	text-align: center;
}

.ksk-slide.is-text-center .ksk-slide-content > * {
	margin-left: auto;
	margin-right: auto;
}

.ksk-slide.is-text-right .ksk-slide-content {
	text-align: right;
}

.ksk-slide.is-text-right .ksk-slide-content > * {
	margin-left: auto;
}

.ksk-slide.is-text-center .ksk-slide-shade {
	background:
		linear-gradient(0deg, var(--ksk-bg) 0%, rgba(15, 15, 16, 0) 30%),
		rgba(12, 12, 13, .6);
}

.ksk-slide.is-text-right .ksk-slide-shade {
	background:
		linear-gradient(0deg, var(--ksk-bg) 0%, rgba(15, 15, 16, 0) 30%),
		linear-gradient(270deg, rgba(12, 12, 13, .92) 0%, rgba(12, 12, 13, .6) 50%, rgba(12, 12, 13, .25) 100%);
}

/* Team ohne Bild, aber mit Logo: Logo ganz zeigen */
.ksk-team.has-logo {
	aspect-ratio: 16 / 9;
}

.ksk-team img.ksk-team-logo {
	inset: 12px 12px 56px;
	width: calc(100% - 24px);
	height: calc(100% - 68px);
	object-fit: contain;
}

.ksk-team:hover img.ksk-team-logo {
	transform: scale(1.03);
}

/* Sprachauswahl im Kopf (nur bei mehreren Sprachen) */
.ksk-lang {
	position: relative;
}

.ksk-lang > summary {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid rgba(17, 17, 17, .3);
	background: rgba(17, 17, 17, .06);
	color: #111;
	font-weight: 700;
	font-size: 13px;
	list-style: none;
	cursor: pointer;
}

.ksk-lang > summary::-webkit-details-marker {
	display: none;
}

.ksk-lang > summary i {
	font-size: 9px;
	transition: transform .15s;
}

.ksk-lang[open] > summary,
.ksk-lang > summary:hover {
	background: #111;
	border-color: #111;
	color: var(--ksk-accent);
}

.ksk-lang[open] > summary i {
	transform: rotate(180deg);
}

.ksk-lang-flag {
	flex: 0 0 auto;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

.ksk-lang ul {
	position: absolute;
	top: calc(100% + 19px);
	right: 0;
	z-index: 60;
	min-width: 180px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--ksk-accent);
	border-top: 3px solid #111;
	box-shadow: 0 20px 36px rgba(0, 0, 0, .6);
}

.ksk-lang ul a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	color: #1a1a14 !important;
	font-weight: 700;
	font-size: 15px;
}

.ksk-lang ul a:hover,
.ksk-lang ul a.is-active {
	color: var(--ksk-red) !important;
}

.ksk-kopf-keil .ksk-lang > summary {
	border-color: #3a3a3a;
	background: #1f1f20;
	color: #e9e9e6;
}

.ksk-kopf-zellen .ksk-lang {
	display: flex;
	align-self: stretch;
}

.ksk-kopf-zellen .ksk-lang > summary {
	height: auto;
	padding: 0 18px;
	border: 0;
	border-left: 1px solid rgba(17, 17, 17, .2);
	background: none;
}

.ksk-kopf-zellen .ksk-lang ul {
	top: calc(100% + 3px);
}

@media (max-width: 1279px) {
	/* im Handy-Menü sitzt die Auswahl in der schwarzen Leiste unten: Liste öffnet nach oben */
	.ksk-lang > summary {
		border-color: #3a3a3a;
		background: #1f1f20;
		color: #e9e9e6;
	}

	.ksk-lang ul {
		top: auto;
		right: auto;
		left: 0; /* sitzt links in der Leiste: nach rechts aufklappen, sonst ragt die Liste aus dem Menü */
		bottom: calc(100% + 8px);
		border-top: 0;
		border-bottom: 3px solid #111;
	}
}

/* Hinweis oben (z. B. Formular zu groß) */
.ksk-toast {
	position: fixed;
	top: 96px;
	left: 50%;
	z-index: 10050;
	transform: translateX(-50%);
	width: min(640px, calc(100% - 32px));
	padding: 14px 48px 14px 18px;
	background: #b3261e;
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

.ksk-toast-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

/* Handy-Menü: Login und Sprachauswahl in der schwarzen Leiste gleich hoch, Login gelb */
@media (max-width: 1279px) {
	.ksk-actions {
		align-items: center;
		align-content: center;
		gap: 10px;
	}

	.ksk-lang > summary {
		height: 44px;
	}

	.ksk-header .ksk-actions .ksk-login {
		flex: 1 1 auto;
		height: 44px;
		min-height: 44px;
		padding: 0 18px;
		background: var(--ksk-accent);
		border-color: var(--ksk-accent);
		color: #111 !important;
		font-size: 18px;
	}

	.ksk-header .ksk-actions .ksk-login:hover {
		background: #fff;
		border-color: #fff;
	}
}

/* Fußzeile unten: Copyright klein wie die übrigen Angaben */
.ksk-site .ksk-footer-bottom p.copp {
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 640px) {
	.ksk-site .ksk-footer-bottom p.copp {
		font-size: 13px;
	}
}

/* ======================================================================
   Login (Views/login.php): links Bild mit Begrüßung, rechts Formular
   ====================================================================== */
.ksk-auth {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: calc(100vh - var(--ksk-header) - 3px);
}

.ksk-auth-visual {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: 200px 64px 72px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 80px),
		#202024;
}

.ksk-auth-visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ksk-auth-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(12, 12, 13, .95) 0%, rgba(12, 12, 13, .45) 55%, rgba(12, 12, 13, .25) 100%);
}

.ksk-auth-visual-text {
	position: relative;
	z-index: 1;
	max-width: 520px;
}

.ksk-auth-hello {
	margin: 14px 0 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(56px, 6.5vw, 96px);
	line-height: 1.04; /* genug Platz für die Punkte von Ü/Ä/Ö in der zweiten Zeile */
	text-transform: uppercase;
	color: #fff;
}

.ksk-auth-sub {
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 1.55;
	color: #c4c4be;
}

.ksk-auth-panel {
	display: flex;
	align-items: flex-start; /* Überschrift auf allen Konto-Seiten auf derselben Höhe (nicht mittig je nach Formularlänge) */
	justify-content: center;
	padding: 120px 48px 0; /* unten kein eigener Abstand: Abstand zum Fußbereich kommt wie überall aus --ksk-content-bottom */
}

.ksk-auth-form {
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ksk-auth-title {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 46px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
}

.ksk-auth-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 12px;
	background: var(--ksk-red);
}

.ksk-auth-alert {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	background: rgba(179, 38, 30, .18);
	border-left: 3px solid var(--ksk-red);
	color: #f2d4d1;
	font-size: 15px;
	line-height: 1.45;
}

.ksk-auth-alert.is-ok {
	background: rgba(111, 220, 111, .12);
	border-left-color: #6fdc6f;
	color: #d6f5d6;
}

.ksk-auth-alert i {
	margin-top: 3px;
}

.ksk-auth-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ksk-auth-field label,
.ksk-auth-label-row label {
	margin: 0;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #a3a39d;
}

.ksk-auth-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ksk-auth-label-row a {
	font-size: 14px;
	color: #a3a39d !important;
}

.ksk-auth-label-row a:hover {
	color: var(--ksk-accent) !important;
}

.ksk-auth-field input,
.ksk-auth-pass {
	height: 52px;
	background: transparent;
	border: 0;
	border-bottom: 2px solid #3a3a3a;
	transition: border-color .2s;
}

.ksk-auth-field input {
	width: 100%;
	padding: 0 2px;
	outline: 0;
	font-family: var(--ksk-body);
	font-size: 18px;
	color: #fff;
}

.ksk-auth-field input::placeholder {
	color: #6f6f69;
}

.ksk-auth-field input:focus,
.ksk-auth-pass:focus-within {
	border-bottom-color: var(--ksk-accent);
}

/* Kein Rahmen um das Eingabefeld: der gelbe Unterstrich zeigt den Fokus
   (sonst greift .ksk-site :focus-visible und zeichnet einen Kasten um das Kennwortfeld) */
.ksk-site .ksk-auth-field input:focus,
.ksk-site .ksk-auth-field input:focus-visible {
	outline: 0;
	box-shadow: none;
}

.ksk-auth-pass {
	display: flex;
	align-items: center;
}

.ksk-auth-pass input {
	flex: 1 1 auto;
	height: 100%;
	border: 0;
}

.ksk-auth-eye {
	flex: 0 0 44px;
	height: 44px;
	background: none;
	border: 0;
	color: #a3a39d;
	font-size: 17px;
	cursor: pointer;
}

.ksk-auth-eye:hover,
.ksk-auth-eye[aria-pressed="true"] {
	color: var(--ksk-accent);
}

/* „Angemeldet bleiben“ als Schalter (echte Checkbox, nur anders gezeichnet) */
.ksk-auth-switch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 15px;
	color: #d9d9d4;
	cursor: pointer;
}

.ksk-auth-switch input {
	position: absolute;
	opacity: 0;
	width: 44px;
	height: 24px;
	margin: 0;
	cursor: pointer;
}

.ksk-auth-switch-track {
	position: relative;
	flex: 0 0 44px;
	height: 24px;
	border-radius: 12px;
	background: #333336;
	transition: background .2s;
}

.ksk-auth-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #a3a39d;
	transition: transform .2s, background .2s;
}

.ksk-auth-switch input:checked + .ksk-auth-switch-track {
	background: var(--ksk-accent);
}

.ksk-auth-switch input:checked + .ksk-auth-switch-track::after {
	transform: translateX(20px);
	background: #111;
}

.ksk-auth-switch input:focus-visible + .ksk-auth-switch-track {
	outline: 2px solid var(--ksk-accent);
	outline-offset: 2px;
}

.ksk-auth-switch small {
	display: block;
	font-size: 13px;
	color: #8a8a84;
}

.ksk-auth-submit {
	justify-content: center;
	margin-top: 4px;
	min-height: 56px;
	border: 0;
	font-size: 22px;
	cursor: pointer;
}

.ksk-auth-alt {
	margin: 0;
	font-size: 15px;
	color: #a3a39d;
}

.ksk-auth-alt a {
	font-weight: 700;
	color: var(--ksk-accent) !important;
}

@media (max-width: 1023px) {
	.ksk-auth {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.ksk-auth-visual {
		min-height: 300px;
		padding: 150px 24px 36px;
	}

	.ksk-auth-panel {
		padding: 40px 24px 0;
	}
}

@media (max-width: 640px) {
	.ksk-auth-hello {
		font-size: 52px;
		line-height: 1;
	}

	/* Vereinsname über der Begrüßung: kleiner, damit er in eine Zeile passt; sonst sauber umbrechen */
	.ksk-auth-visual .ksk-kicker {
		align-items: flex-start;
		font-size: 11px;
		letter-spacing: .12em;
		line-height: 1.5;
	}

	.ksk-auth-visual .ksk-kicker span {
		flex: 0 0 auto;
		margin-top: .7em;
	}
}

/* =================================================================
   Unterseiten (Entwurf A): Seitenkopf mit Brotkrümeln, Lesespalte, Seitenkasten
   layout/_pagehead.php, layout/_areanav.php, page.php, legal.php
   ================================================================= */

.ksk-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--ksk-muted);
}

.ksk-crumbs a {
	color: var(--ksk-muted) !important;
}

.ksk-crumbs a:hover {
	color: var(--ksk-accent) !important;
}

.ksk-crumbs strong {
	color: var(--ksk-text);
	font-weight: 700;
}

.ksk-pagehead-page .ksk-lead {
	margin-top: 18px;
	font-size: 20px;
	line-height: 1.5;
}

/* Mit Bild: Bildband, Text unten auf dem Bild */
.ksk-pagehead.has-image {
	display: flex;
	align-items: flex-end;
	min-height: 440px;
	padding-bottom: 56px;
	background: var(--ksk-bg-2);
}

.ksk-pagehead.has-image .ksk-wrap {
	position: relative;
	z-index: 1;
}

.ksk-pagehead-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ksk-pagehead.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, var(--ksk-bg) 0%, rgba(15, 15, 16, .6) 50%, rgba(15, 15, 16, .25) 100%);
}

.ksk-pagehead.has-image .ksk-lead {
	color: #d6d6d0;
}

/* Inhalt: Lesespalte, rechts Kasten + Bereich */
.ksk-page {
	padding-top: 56px;
	padding-bottom: 24px;
}

.ksk-page.has-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 64px;
	align-items: start;
}

.ksk-page-aside {
	position: sticky;
	top: calc(var(--ksk-header-h, 79px) + 24px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Text aus dem Admin (HTML) */
.ksk-prose {
	max-width: 760px;
	min-width: 0;
	font-size: 18px;
	line-height: 1.7;
	color: #d4d4ce;
	overflow-wrap: break-word;
}

.ksk-prose > :first-child {
	margin-top: 0;
}

.ksk-prose p,
.ksk-prose ul,
.ksk-prose ol,
.ksk-prose table,
.ksk-prose figure {
	margin: 0 0 22px;
}

.ksk-prose h2,
.ksk-prose h3,
.ksk-prose h4 {
	margin: 44px 0 14px;
	font-family: var(--ksk-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
}

.ksk-prose h2 { font-size: 40px; }
.ksk-prose h3 { font-size: 28px; }
.ksk-prose h4 { font-size: 22px; }

.ksk-prose strong,
.ksk-prose b {
	color: #fff;
}

.ksk-prose a {
	color: var(--ksk-accent) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

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

.ksk-prose ul,
.ksk-prose ol {
	padding-left: 24px;
}

.ksk-prose li {
	margin-bottom: 6px;
}

.ksk-prose ul li::marker {
	color: var(--ksk-red);
}

.ksk-prose blockquote {
	margin: 32px 0;
	padding: 22px 28px;
	background: var(--ksk-panel);
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.2;
	color: var(--ksk-accent);
}

.ksk-prose blockquote p {
	margin: 0;
}

.ksk-prose img {
	max-width: 100%;
	height: auto;
}

.ksk-prose hr {
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--ksk-line);
}

.ksk-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.ksk-prose th,
.ksk-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--ksk-line);
	text-align: left;
	vertical-align: top;
}

.ksk-prose th {
	color: #fff;
}

.ksk-prose-updated {
	margin-top: 36px !important;
	padding-top: 14px;
	border-top: 1px solid var(--ksk-line);
	font-size: 14px;
	color: var(--ksk-muted);
}

/* Seitenkasten (Admin → Eigene Seiten → Seitenkasten), z. B. Steckbrief */
.ksk-infobox {
	padding: 26px 26px 28px;
	background: var(--ksk-panel);
	border-top: 4px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	font-size: 15px;
	line-height: 1.55;
	color: #d4d4ce;
}

.ksk-infobox > :first-child {
	margin-top: 0;
}

.ksk-infobox > :last-child {
	margin-bottom: 0;
}

.ksk-infobox h2,
.ksk-infobox h3 {
	margin: 0 0 16px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	text-transform: uppercase;
	color: #fff;
}

.ksk-infobox dl {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px 18px;
	margin: 0 0 6px;
}

.ksk-infobox dt {
	color: var(--ksk-muted);
}

.ksk-infobox dd {
	margin: 0;
	font-weight: 700;
	color: #fff;
}

.ksk-infobox p {
	margin: 0 0 12px;
}

.ksk-infobox .ksk-btn {
	width: 100%;
	justify-content: center;
	margin-top: 18px;
	min-height: 48px;
}

/* „Im Bereich …“ */

@media (max-width: 1023px) {
	.ksk-page.has-aside {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	/* Handy/Tablet: Kasten über den Text, Bereichsliste ans Ende */
	.ksk-page-aside {
		display: contents;
	}

	.ksk-infobox {
		order: -1;
		align-self: stretch;
	}

	.ksk-pagehead.has-image {
		min-height: 320px;
	}
}

@media (max-width: 640px) {
	.ksk-page {
		padding-top: 32px;
	}

	.ksk-prose {
		font-size: 16px;
	}

	.ksk-prose h2 { font-size: 32px; }
	.ksk-prose h3 { font-size: 24px; }

	.ksk-prose blockquote {
		padding: 16px 18px;
		font-size: 24px;
	}

	.ksk-pagehead-page .ksk-lead {
		font-size: 17px;
	}

	.ksk-pagehead.has-image {
		min-height: 280px;
		padding-bottom: 28px;
	}
}

/* ---------- Fußzeile auf dem Handy: nichts einzeln umbrechen ---------- */
/* Vereinsname in einer Zeile, Schrift wird auf schmalen Handys etwas kleiner */
.ksk-site .ksk-footer-brand strong {
	white-space: nowrap;
}

/* Copyright: „Copyright 2001 - 2026 by“ und „[KSK] … e.V.“ brechen je für sich nicht um */
.ksk-copy-part {
	white-space: nowrap;
}

.ksk-footer-lang-code {
	display: none;
}

@media (max-width: 640px) {
	.ksk-site .ksk-footer-brand strong {
		font-size: clamp(12px, 3.9vw, 16px);
		letter-spacing: .03em;
	}

	.ksk-site .ksk-footer-tagline {
		text-wrap: balance;
	}

	/* Zwei Zeilen untereinander statt „e.V.“ allein in der zweiten Zeile */
	.ksk-copy-part {
		display: block;
	}

	/* Sprachen nur mit Flagge und Kürzel (DE EN FR ES), damit sie in eine Zeile passen;
	   der volle Name bleibt für Screenreader erhalten */
	.ksk-footer-lang {
		flex-wrap: nowrap;
		gap: 16px;
	}

	.ksk-footer-lang-name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ksk-footer-lang-code {
		display: inline;
	}

	.ksk-footer-lang a {
		min-height: 32px;
	}
}

/* Copyright ohne einzelnes Wort in der letzten Zeile, auch wenn der Text nicht geteilt werden kann */
.ksk-site .ksk-footer-bottom p.copp {
	text-wrap: balance;
}

/* Bis Tablet-Breite die beiden Teile untereinander (dazwischen passte es nicht in eine Zeile) */
@media (max-width: 991px) {
	.ksk-copy-part {
		display: block;
	}
}

/* ---------- Alte Seiteninhalte (aus v7/CI3) in der Lesespalte ----------
   Viele Seiten sind noch mit Bootstrap-Tabellen aufgebaut: <table class="table"><tr><td class="table-text"><h6>Überschrift</h6>…
   Diese Layout-Tabellen werden zu normalem Textfluss, h5/h6 sehen aus wie Zwischenüberschriften. */
.ksk-prose :where(div, table, img, iframe, video, figure) {
	max-width: 100%;
}

.ksk-prose table:has(td.table-text),
.ksk-prose table:has(td.table-text) > tbody,
.ksk-prose table:has(td.table-text) > tbody > tr,
.ksk-prose table:has(td.table-text) td {
	display: block;
	width: auto !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: none;
}

.ksk-prose table:has(td.table-text) td + td {
	margin-top: 16px;
}

.ksk-prose h5,
.ksk-prose h6,
.ksk-prose .hp-history-ueberschrift,
.ksk-prose .ueberschrift {
	display: block;
	margin: 44px 0 14px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
}

/* Nur die allererste Überschrift ganz oben ohne Abstand */
.ksk-prose > :where(h2, h3, h5, h6, .hp-history-ueberschrift, .ueberschrift):first-child,
.ksk-prose > table:first-child > tbody > tr:first-child > td:first-child > :where(h5, h6, .hp-history-ueberschrift, .ueberschrift):first-child {
	margin-top: 0;
}

/* Leere Absätze und doppelte Zeilenumbrüche aus dem alten Editor nicht als großen Abstand zeigen */
.ksk-prose p:empty,
.ksk-prose :where(table, tbody, tr, td) > br:first-child {
	display: none;
}

/* =================================================================
   Seitentext in Abschnitten: Bild und Text im Wechsel (page.php, Libraries\PageSections)
   ================================================================= */
.ksk-story {
	display: flex;
	flex-direction: column;
	gap: 88px;
	padding-top: 72px;
}

.ksk-story-intro {
	max-width: 760px;
}

.ksk-story-sec {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px;
	align-items: center;
}

.ksk-story-sec.is-text .ksk-story-text {
	grid-column: 1 / -1;
	max-width: 760px;
}

.ksk-story-sec.is-flip .ksk-story-text {
	order: 2;
}

.ksk-story-text {
	max-width: none;
	font-size: 17px;
	color: #c9c9c3;
}

.ksk-story-text > p:last-child {
	margin-bottom: 0;
}

.ksk-prose .ksk-story-kicker,
.ksk-story-kicker {
	margin: 0 0 16px;
	font-family: var(--ksk-body);
	font-weight: 400;
	font-size: 13px;
	letter-spacing: .18em;
	line-height: 1.4;
	color: #b4b4ae;
}

.ksk-story-kicker span {
	background: var(--ksk-red);
}

.ksk-story-lead {
	margin: 0 0 22px !important;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(36px, 4.4vw, 54px);
	line-height: 1.04;
	text-transform: uppercase;
	color: #fff;
}

.ksk-story-lead strong,
.ksk-story-lead b {
	color: var(--ksk-accent);
}

.ksk-prose .ksk-story-title {
	margin: 0;
	font-size: 40px;
}

.ksk-story-rule {
	display: block;
	width: 56px;
	height: 3px;
	margin: 16px 0 22px;
	background: var(--ksk-red);
}

.ksk-story-media {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ksk-story-img {
	position: relative;
	overflow: hidden;
	background: var(--ksk-panel);
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.ksk-story-img img {
	display: block;
	width: 100%;
	height: auto;
}

.ksk-story-badge {
	position: absolute;
	left: 0;
	top: 0;
	padding: 8px 14px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .08em;
	color: #111;
}

.ksk-story-media figcaption {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #8b8b85;
}

.ksk-story-media figcaption::before {
	content: "";
	flex: 0 0 18px;
	height: 2px;
	background: var(--ksk-red);
}

.ksk-story-note {
	display: flex;
	align-items: center;
	min-height: 220px;
	padding: 36px 40px;
	background: var(--ksk-accent);
	color: #111;
	clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.ksk-story-note p {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 32px;
	line-height: 1.12;
	text-transform: uppercase;
}

.ksk-story-note a {
	color: #111 !important;
	text-decoration: underline;
}

.ksk-story-after {
	display: grid;
	grid-template-columns: minmax(0, 420px);
	gap: 24px;
	padding-top: 88px;
	align-items: start;
}

.ksk-story-after.has-both {
	grid-template-columns: repeat(2, minmax(0, 420px));
}

@media (max-width: 900px) {
	.ksk-story {
		gap: 56px;
		padding-top: 40px;
	}

	.ksk-story-sec {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	/* Handy: Bild immer über dem Text */
	.ksk-story-sec .ksk-story-text,
	.ksk-story-sec.is-flip .ksk-story-text {
		order: 2;
	}

	.ksk-story-note {
		order: 3;
		min-height: 0;
		padding: 26px 24px;
	}

	.ksk-story-note p {
		font-size: 24px;
	}

	.ksk-story-after,
	.ksk-story-after.has-both {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 56px;
	}
}

/* =================================================================
   Seitenkopf K2 „Schatten-Titel“ (layout/_pagehead.php)
   Menübereich der Seite groß als Kontur im Hintergrund, rechts bündig mit dem Inhalt.
   --ghost-chars (Anzahl Buchstaben) verkleinert lange Wörter (RECHTLICHES, INFOCENTER),
   damit sie neben dem Titel bleiben.
   ================================================================= */
.ksk-pagehead.ksk-ph-k2 {
	overflow: hidden;
}

.ksk-ph-ghost {
	position: absolute;
	right: max(24px, calc((100% - 1240px) / 2 + 24px));
	bottom: -.12em;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: min(15vw, 240px, calc(min(52vw, 640px) / (var(--ghost-chars, 6) * .42)));
	line-height: .82;
	text-transform: uppercase;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--ksk-accent) 16%, transparent);
	-webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
	pointer-events: none;
	user-select: none;
}

.ksk-ph-k2 .ksk-wrap {
	position: relative;
	z-index: 1;
}

.ksk-ph-dot {
	color: var(--ksk-accent);
}

/* Handy (TEST): Kontur-Schrift noch blasser und nur halb im Bild am rechten Rand */
@media (max-width: 760px) {
	.ksk-ph-ghost {
		right: 0;
		bottom: -.1em;
		font-size: 120px;
		transform: translateX(45%);
		-webkit-text-stroke: 1px color-mix(in srgb, var(--ksk-accent) 9%, transparent);
	}
}

/* =================================================================
   Rechtliche Seiten (legal.php): Karten (Impressum) bzw. Paragrafen mit Inhaltsverzeichnis (AGB, Datenschutz …)
   ================================================================= */
.ksk-legal {
	padding-top: 56px;
}

/* Text aus dem alten Editor: eingerückte Absätze und doppelte Abstände angleichen */
.ksk-legal-text > :first-child {
	margin-top: 0 !important;
}

.ksk-legal-text > :last-child {
	margin-bottom: 0 !important;
}

.ksk-legal-text :where(p, div, span)[style*="margin-left"],
.ksk-legal-text :where(p, div, span)[style*="padding-left"],
.ksk-legal-text > blockquote {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.ksk-legal-text > blockquote {
	padding: 0;
	background: none;
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.ksk-legal-text p {
	margin: 0 0 14px;
}

.ksk-legal-text strong,
.ksk-legal-text b {
	color: #fff;
}

.ksk-legal-intro {
	max-width: 760px;
	margin-bottom: 40px;
}

/* Paragrafen */
.ksk-legal-toc {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: 16px;
	margin-bottom: 48px;
	padding: 18px 20px;
	background: var(--ksk-bg-2);
	border-left: 3px solid var(--ksk-red);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

/* Punkte in einer Flucht: umbrechende Zeilen beginnen unter dem ersten Punkt, nicht unter „Inhalt“ */
.ksk-legal-toc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ksk-legal-toc-title {
	display: flex;
	align-items: center;
	min-height: 36px;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-legal-toc a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	background: var(--ksk-panel);
	font-size: 14px;
	color: var(--ksk-text) !important;
}

.ksk-legal-toc a b {
	color: var(--ksk-accent);
}

.ksk-legal-toc a:hover {
	background: #26262a;
	color: var(--ksk-accent) !important;
}

.ksk-legal-sec {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 48px;
	margin-bottom: 20px;
	padding: 36px 40px 40px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-legal-sec a {
	color: var(--ksk-accent) !important;
}

.ksk-legal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 6px;
	background: #222225;
	font-size: 18px;
	color: var(--ksk-accent);
}

.ksk-legal-head {
	align-self: start;
	position: sticky;
	top: calc(var(--ksk-header-h, 79px) + 24px);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ksk-legal-num {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
	color: var(--ksk-accent);
}

.ksk-legal-head h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-legal-sec .ksk-legal-text {
	max-width: 760px;
	font-size: 17px;
}

.ksk-legal-updated {
	margin: 32px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ksk-line);
	font-size: 14px;
	color: var(--ksk-muted);
}

@media (max-width: 900px) {
	.ksk-legal-sec {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 26px 22px 28px;
	}

	.ksk-legal-toc {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 8px;
	}

	.ksk-legal-icon {
		width: 36px;
		height: 36px;
		margin-bottom: 0;
		font-size: 15px;
	}

	.ksk-legal-head {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}

	.ksk-legal-num {
		font-size: 30px;
	}

	.ksk-legal-head h2 {
		font-size: 24px;
	}
}

/* Seitentitel: lange Wörter (DATENSCHUTZERKLÄRUNG) nicht mitten im Wort umbrechen, sondern die Schrift
   so weit verkleinern, dass das längste Wort in eine Zeile passt (--title-chars aus _pagehead.php) */
.ksk-ph-title {
	overflow-wrap: normal;
	word-break: normal;
	font-size: min(clamp(44px, 6vw, 76px), calc((100vw - 48px) / (var(--title-chars, 8) * .46)));
}

/* Bilder im Seitentext gedämpft, beim Überfahren in voller Helligkeit (wirkt auf dem dunklen Grund weniger grell) */
.ksk-story-img img {
	filter: brightness(.7) saturate(.8);
	transition: filter .45s ease, transform .6s ease;
}

.ksk-story-img:hover img {
	filter: none;
	transform: scale(1.02);
}

/* Geräte ohne Maus (Handy, Tablet): nur leicht gedämpft, ein Überfahren gibt es dort nicht */
@media (hover: none) {
	.ksk-story-img img {
		filter: brightness(.85) saturate(.9);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ksk-story-img img {
		transition: none;
	}

	.ksk-story-img:hover img {
		transform: none;
	}
}

/* Fußzeile unten bis Tablet-Breite untereinander und mittig: Copyright, Sprachen, „Nach oben“.
   (Vorher erst unter 576 px; dazwischen rutschte „Nach oben“ an den rechten Rand und
   verschwand dort hinter anderen Elementen.) Mit 44 px hoher Klickfläche fürs Handy. */
@media (max-width: 991px) {
	.ksk-site .ksk-footer-bottom .container {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.ksk-site .ksk-footer-bottom .ksk-footer-top {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		padding: 0 12px;
		font-size: 13px;
	}
}

/* =================================================================
   Einheitlicher Abstand zwischen Seitenkopf und Inhalt – für ALLE Unterseiten
   Neue Seiten: Inhalt direkt nach layout/_pagehead als .ksk-section, .ksk-page, .ksk-legal
   oder .ksk-story (oder mit der Klasse .ksk-content) – dann gilt dieser Abstand automatisch.
   ================================================================= */
:root {
	--ksk-content-top: 40px;
}

@media (max-width: 900px) {
	:root {
		--ksk-content-top: 32px;
	}
}

@media (max-width: 640px) {
	:root {
		--ksk-content-top: 24px;
	}

	.ksk-pagehead.ksk-ph-k2 {
		padding-bottom: 24px;
	}
}

.ksk-pagehead + :is(.ksk-section, .ksk-page, .ksk-legal, .ksk-story, .ksk-content),
.ksk-stats-strip + :is(.ksk-section, .ksk-page, .ksk-legal, .ksk-story, .ksk-content) {
	padding-top: var(--ksk-content-top);
}

/* Abstand unter dem Inhaltsverzeichnis wie zwischen den Abschnitten */
.ksk-legal-toc {
	margin-bottom: 20px;
}

/* =================================================================
   Kennzahlen-Leiste unter dem Seitenkopf (layout/_stats.php, Version A: dunkel, Werte gelb, Button gelb)
   ================================================================= */
.ksk-stats-strip {
	background: var(--ksk-panel);
	border-bottom: 1px solid #26262a;
}

.ksk-stats-strip-inner {
	display: flex;
	align-items: stretch;
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 24px;
}

.ksk-stats-strip-list {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(var(--stats-count, 4), minmax(0, 1fr));
	margin: 0;
}

.ksk-stats-strip-item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: center;
	gap: 6px;
	padding: 22px 24px;
	border-left: 1px solid var(--ksk-line);
}

.ksk-stats-strip-item:first-child {
	padding-left: 0;
	border-left: 0;
}

.ksk-stats-strip-item dt {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-stats-strip-item dd {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	color: var(--ksk-accent);
}

.ksk-stats-strip-item.is-long dd {
	font-size: 26px;
	line-height: 1.2;
	color: #fff;
}

.ksk-stats-strip-btn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 36px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111 !important;
	transition: filter .2s;
}

.ksk-stats-strip-btn:hover {
	filter: brightness(1.08);
}

.ksk-stats-strip-btn i {
	font-size: 16px;
	transition: transform .2s;
}

.ksk-stats-strip-btn:hover i {
	transform: translateX(3px);
}

/* Tablet/Handy: Felder als 2 × 2-Raster, Button darunter über die volle Breite */
@media (max-width: 900px) {
	.ksk-stats-strip-inner {
		flex-direction: column;
		padding-left: 0;
	}

	.ksk-stats-strip-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ksk-stats-strip-item,
	.ksk-stats-strip-item:first-child {
		padding: 16px 20px;
		border-left: 0;
		border-bottom: 1px solid var(--ksk-line);
	}

	.ksk-stats-strip-item:nth-child(odd) {
		border-right: 1px solid var(--ksk-line);
	}

	.ksk-stats-strip-item dd {
		font-size: 32px;
	}

	.ksk-stats-strip-item.is-long dd {
		font-size: 20px;
	}

	.ksk-stats-strip-btn {
		justify-content: center;
		min-height: 52px;
		font-size: 20px;
	}
}

/* =================================================================
   News (news/index.php, news/show.php)
   ================================================================= */
/* Infozeile unter dem Titel im Seitenkopf (News-Artikel) */
.ksk-ph-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin-top: 18px;
	font-size: 14px;
	color: #b4b4ae;
}

.ksk-ph-meta a {
	color: #b4b4ae !important;
}

.ksk-ph-meta a:hover {
	color: var(--ksk-accent) !important;
}

.ksk-news-cat {
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-news-cat.is-solid {
	padding: 4px 10px;
	background: var(--ksk-accent);
	color: #111;
}

/* Kategorien + Suche */
.ksk-news-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.ksk-news-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ksk-news-cats a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	background: var(--ksk-panel);
	font-size: 14px;
	color: var(--ksk-text) !important;
}

.ksk-news-cats a:hover {
	background: #26262a;
	color: var(--ksk-accent) !important;
}

.ksk-news-cats a[aria-current="page"] {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111 !important;
}

.ksk-news-search {
	position: relative;
	flex: 0 1 340px;
	display: flex;
	align-items: center;
}

.ksk-news-search i {
	position: absolute;
	left: 16px;
	font-size: 14px;
	color: var(--ksk-muted);
	pointer-events: none;
}

.ksk-news-search input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 42px;
	background: var(--ksk-bg);
	border: 1px solid #3a3a3a;
	outline: 0;
	font: 15px var(--ksk-body);
	color: #fff;
}

.ksk-news-search input:focus {
	border-color: var(--ksk-accent);
}

.ksk-site .ksk-search-info {
	margin: 0 0 24px;
	color: var(--ksk-muted);
}

.ksk-site .ksk-search-info a {
	margin-left: 12px;
	color: var(--ksk-accent) !important;
}

/* gemeinsame Teile der Karten */
.ksk-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
	color: var(--ksk-muted);
}

.ksk-news-stats {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #8b8b85;
}

.ksk-news-stats i {
	margin-right: 4px;
}

.ksk-news-badge {
	position: absolute;
	left: 0;
	top: 0;
	padding: 8px 14px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #111;
}

.ksk-news-top img,
.ksk-news-item img,
.ksk-news-related img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.75) saturate(.85);
	transition: filter .45s ease, transform .6s ease;
}

.ksk-news-top:hover img,
.ksk-news-item:hover img {
	filter: none;
	transform: scale(1.03);
}

/* Top-News */
.ksk-news-top {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	margin-bottom: 24px;
	background: var(--ksk-panel);
	color: var(--ksk-text) !important;
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.ksk-news-top-media {
	position: relative;
	overflow: hidden;
	min-height: 380px;
	background: #222225;
}

.ksk-news-top-media img {
	position: absolute;
	inset: 0;
}

.ksk-news-top-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 40px;
}

.ksk-news-top-title {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(32px, 3.4vw, 44px);
	line-height: 1.02;
	text-transform: uppercase;
	color: #fff;
}

.ksk-news-top:hover .ksk-news-top-title {
	color: var(--ksk-accent);
}

.ksk-news-top-sub {
	font-size: 17px;
	line-height: 1.6;
	color: #c9c9c3;
}

/* Raster */
.ksk-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ksk-news-item {
	display: flex;
	flex-direction: column;
	background: var(--ksk-panel);
	color: var(--ksk-text) !important;
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-news-item-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #222225;
}

.ksk-news-item-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 22px;
}

.ksk-news-item-title {
	flex: 1;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.08;
	text-transform: uppercase;
	color: #fff;
}

.ksk-news-item:hover .ksk-news-item-title {
	color: var(--ksk-accent);
}

/* Seitenlinks (pager/seitenlinks.php) im neuen Layout */
.ksk-site .seitenlinks {
	margin-top: 40px;
}

.ksk-site .seitenlinks .pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-site .seitenlinks .page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	background: var(--ksk-panel);
	color: var(--ksk-text) !important;
}

.ksk-site .seitenlinks .page-link:hover {
	background: #26262a;
	color: var(--ksk-accent) !important;
}

.ksk-site .seitenlinks .active .page-link {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111 !important;
}

/* Artikel */
.ksk-news-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 64px;
	align-items: start;
}

.ksk-news-body > p:first-child {
	font-size: 21px;
	line-height: 1.6;
	color: #fff;
}

.ksk-news-aside {
	position: sticky;
	top: calc(var(--ksk-header-h, 79px) + 24px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ksk-news-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
}

.ksk-news-box-title {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8b8b85;
}

.ksk-news-like {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	background: var(--ksk-bg);
	border: 1px solid #3a3a3a;
	font: 700 16px var(--ksk-body);
	color: #fff;
	cursor: pointer;
}

.ksk-news-like i {
	color: var(--ksk-live);
}

.ksk-news-like:hover:not(:disabled) {
	border-color: var(--ksk-accent);
}

.ksk-news-like.is-liked {
	cursor: default;
	color: var(--ksk-muted);
}

.ksk-news-share {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.ksk-news-share a,
.ksk-news-share button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	background: #222225;
	border: 0;
	font-size: 16px;
	color: #fff !important;
	cursor: pointer;
}

.ksk-news-share a:hover,
.ksk-news-share button:hover,
.ksk-news-share button.is-done {
	background: var(--ksk-accent);
	color: #111 !important;
}

.ksk-news-related {
	display: flex;
	flex-direction: column;
	padding: 18px 22px;
	background: var(--ksk-bg-2);
}

.ksk-news-related a {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ksk-line);
	font-size: 15px;
	line-height: 1.35;
	color: var(--ksk-text) !important;
}

.ksk-news-related a:last-child {
	border-bottom: 0;
}

.ksk-news-related a:hover {
	color: var(--ksk-accent) !important;
}

.ksk-news-related-img {
	flex: 0 0 72px;
	height: 52px;
	overflow: hidden;
	background: #2a2a2d;
}

/* Kommentare */
.ksk-news-comments {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 760px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--ksk-line);
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-news-comments h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 32px;
	text-transform: uppercase;
	color: #fff;
}

.ksk-news-comments h2 span {
	color: var(--ksk-accent);
}

.ksk-news-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: #2a2a2d;
}

.ksk-news-form,
.ksk-news-comment {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.ksk-news-form-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ksk-news-form-body label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-news-form-body textarea {
	width: 100%;
	padding: 10px 0;
	background: transparent;
	border: 0;
	border-bottom: 2px solid #3a3a3a;
	outline: 0;
	resize: vertical;
	font: 16px/1.6 var(--ksk-body);
	color: #fff;
}

.ksk-news-form-body textarea:focus {
	border-bottom-color: var(--ksk-accent);
}

.ksk-news-form-body .ksk-btn {
	align-self: flex-end;
	min-height: 44px;
	margin-top: 4px;
	font-size: 18px;
}

.ksk-news-login {
	margin: 0;
	color: var(--ksk-muted);
}

.ksk-news-login a {
	color: var(--ksk-accent) !important;
}

.ksk-news-comment-body {
	flex: 1;
	min-width: 0;
	padding: 16px 20px;
	background: var(--ksk-panel);
}

.ksk-news-comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	font-size: 13px;
	color: #8b8b85;
}

.ksk-news-comment-head strong {
	color: #fff;
}

.ksk-news-comment-head form {
	margin-left: auto;
}

.ksk-news-delete {
	background: none;
	border: 0;
	padding: 0;
	font-size: 13px;
	color: #8b8b85;
	cursor: pointer;
}

.ksk-news-delete:hover {
	color: var(--ksk-live);
}

.ksk-news-comment-body p {
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: #d4d4ce;
	overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
	.ksk-news-article {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	/* Handy/Tablet: Gefällt mir und Teilen direkt unter dem Kopf, weitere News nach den Kommentaren */
	.ksk-news-aside {
		position: static;
		display: contents;
	}

	.ksk-news-box {
		order: -1;
	}

	.ksk-news-related {
		order: 2;
	}

	.ksk-news-top {
		grid-template-columns: minmax(0, 1fr);
	}

	.ksk-news-top-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.ksk-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ksk-news-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ksk-news-top-text {
		padding: 24px 20px;
	}

	.ksk-news-search {
		flex-basis: 100%;
	}

	.ksk-news-body > p:first-child {
		font-size: 18px;
	}

	.ksk-news-box {
		padding: 16px;
	}
}

.ksk-news-form-body .ksk-btn {
	border: 0;
	cursor: pointer;
}

/* Kopf am Desktop: mehr Luft zwischen Sprachauswahl/Suche und Profil bzw. Login (wie bisher auf der News-Seite) */
@media (min-width: 1280px) {
	.ksk-header:not(.ksk-kopf-zellen) .ksk-actions > :is(.ksk-usermenu, .ksk-login) {
		margin-left: 26px;
	}
}

/* Abschnitte im Seitentext (Über uns usw.) als Kästen wie auf den rechtlichen Seiten:
   grauer Hintergrund, gelbe Oberkante, abgeschrägte Ecke, 20 px Abstand untereinander */
.ksk-story {
	gap: 20px;
}

.ksk-story-sec {
	padding: 40px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-story-intro {
	margin-bottom: 20px;
}

@media (max-width: 900px) {
	.ksk-story {
		gap: 20px;
	}

	.ksk-story-sec {
		padding: 22px 20px 26px;
	}
}

/* =================================================================
   Team-Seite (team_details.php, Entwurf T2: sortierbare Liste im Kasten)
   ================================================================= */
.ksk-tm {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ksk-tm-info {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	padding: 32px 40px 36px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-tm-info h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.ksk-tm-info .ksk-prose > :first-child { margin-top: 0; }
.ksk-tm-info .ksk-prose > :last-child { margin-bottom: 0; }

.ksk-tm-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ksk-tm-count {
	font-size: 14px;
	color: var(--ksk-muted);
}

.ksk-tm-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 320px;
	max-width: 100%;
	height: 46px;
	padding: 0 16px;
	background: var(--ksk-panel);
	border: 1px solid #3a3a3a;
	color: var(--ksk-muted);
}

.ksk-tm-search:focus-within {
	border-color: var(--ksk-accent);
}

.ksk-tm-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	background: none;
	border: 0;
	outline: none;
	font: inherit;
	font-size: 15px;
	color: #fff;
}

.ksk-tm-table {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-tm-head,
.ksk-tm-row {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) 120px;
	align-items: center;
	gap: 16px;
	padding: 0 24px;
}

.ksk-tm-head {
	min-height: 56px;
}

.ksk-tm-sort,
.ksk-tm-head-social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ksk-muted);
	cursor: pointer;
	text-align: left;
}

.ksk-tm-head-social {
	justify-content: flex-end;
	cursor: default;
}

.ksk-tm-sort:hover,
.ksk-tm-sort.is-active {
	color: var(--ksk-accent);
}

.ksk-tm-sort i {
	font-size: 11px;
	opacity: .7;
}

.ksk-tm-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-tm-row {
	min-height: 72px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid var(--ksk-line);
	cursor: pointer;
	transition: background .2s, opacity .3s;
}

.ksk-tm-row:hover {
	background: #1f1f22;
}

.ksk-tm-member {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ksk-tm-avatar {
	position: relative;
	flex: 0 0 48px;
	height: 48px;
}

.ksk-tm-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-tm-avatar::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #55554f;
	box-shadow: 0 0 0 2px var(--ksk-panel);
}

.ksk-tm-avatar.is-online::after { background: #4caf50; }
.ksk-tm-avatar.is-recent::after { background: var(--ksk-red, #b3261e); }

.ksk-tm-name {
	overflow: hidden;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ksk-tm-row:hover .ksk-tm-name {
	color: var(--ksk-accent);
}

.ksk-tm-pos {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-tm-since,
.ksk-tm-last {
	font-size: 15px;
	color: #c9c9c3;
}

.ksk-tm-label {
	display: none;
}

.ksk-tm-social {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
}

.ksk-tm-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--ksk-panel-2);
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-tm-social a:hover {
	background: var(--ksk-accent);
	color: #111;
}

.ksk-tm-empty {
	margin: 0;
	padding: 24px;
	border-top: 1px solid var(--ksk-line);
}

/* Klick auf eine Zeile: die anderen blenden aus */
.ksk-tm-table.is-leaving .ksk-tm-row:not(.is-chosen) {
	opacity: .25;
}

.ksk-tm-row.is-chosen {
	background: #1f1f22;
}

@media (max-width: 900px) {
	.ksk-tm-info {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding: 24px 20px 26px;
	}

	.ksk-tm-tools {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.ksk-tm-search {
		width: auto;
	}

	/* Spaltenköpfe werden zu Sortier-Schaltflächen */
	.ksk-tm-head {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		padding: 16px;
		min-height: 0;
	}

	.ksk-tm-sort {
		min-height: 36px;
		padding: 0 12px;
		background: var(--ksk-panel-2);
		letter-spacing: .06em;
		color: #e9e9e6;
	}

	.ksk-tm-sort.is-active {
		background: var(--ksk-accent);
		color: #111;
	}

	.ksk-tm-head-social {
		display: none;
	}

	.ksk-tm-row {
		grid-template-columns: 52px minmax(0, 1fr);
		grid-template-areas:
			"avatar name"
			"avatar pos"
			"avatar meta";
		column-gap: 14px;
		row-gap: 2px;
		padding: 14px 16px;
	}

	.ksk-tm-member {
		display: contents;
	}

	.ksk-tm-avatar {
		grid-area: avatar;
		align-self: center;
		width: 52px;
		height: 52px;
	}

	.ksk-tm-name { grid-area: name; font-size: 16px; }
	.ksk-tm-pos { grid-area: pos; font-size: 12px; }

	.ksk-tm-since,
	.ksk-tm-last {
		grid-area: meta;
		font-size: 13px;
		color: var(--ksk-muted);
	}

	.ksk-tm-since { justify-self: start; }
	.ksk-tm-last { justify-self: end; }

	.ksk-tm-label {
		display: inline;
	}

	.ksk-tm-social {
		display: none;
	}
}

/* =================================================================
   Chronik (chronik.php): Sprungleiste + Zeitleiste, Einträge abwechselnd links/rechts.
   Jeder Eintrag belegt zwei Rasterzeilen, die Seiten versetzt um eine Zeile: so rücken die Kästen ineinander, ohne sich zu überlappen.
   ================================================================= */
.ksk-chr-years {
	position: sticky;
	top: var(--ksk-header-h, 79px);
	z-index: 30;
	background: rgba(15, 15, 16, .94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--ksk-line);
}

.ksk-chr-years-inner {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 14px;
	padding-bottom: 14px;
	overflow-x: auto;
	scrollbar-width: none;
}

.ksk-chr-years-inner::-webkit-scrollbar { display: none; }

.ksk-chr-years-label {
	flex: none;
	margin-right: 10px;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-chr-years a {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	background: var(--ksk-panel-2);
	font-size: 15px;
	color: #e9e9e6;
	transition: background .2s, color .2s;
}

.ksk-chr-years a:hover {
	color: var(--ksk-accent);
}

.ksk-chr-years a[aria-current] {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111;
}

.ksk-chr-years + .ksk-chr {
	padding-top: calc(var(--ksk-content-top) + 8px);
}

.ksk-chr {
	padding-bottom: 0;
}

.ksk-chr-line {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 96px;
	row-gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Linie in der Mitte */
.ksk-chr-line::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background: linear-gradient(var(--ksk-accent), rgba(250, 255, 169, .12));
}

.ksk-chr-entry {
	position: relative;
	grid-row: var(--chr-row) / span 2;
	padding-bottom: 40px;
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 90px);
}

.ksk-chr-entry.is-left { grid-column: 1; }
.ksk-chr-entry.is-right { grid-column: 2; }

/* Raute auf der Linie */
.ksk-chr-mark {
	position: absolute;
	top: 14px;
	width: 18px;
	height: 18px;
	background: var(--ksk-accent);
	transform: rotate(45deg);
	box-shadow: 0 0 0 6px var(--ksk-bg, #0f0f10);
}

.ksk-chr-entry.is-left .ksk-chr-mark { right: -57px; }
.ksk-chr-entry.is-right .ksk-chr-mark { left: -57px; }

.ksk-chr-period {
	display: block;
	margin-bottom: 14px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 52px;
	line-height: 1;
	color: var(--ksk-accent);
}

.ksk-chr-period.is-long {
	font-size: 38px;
}

.ksk-chr-entry.is-left .ksk-chr-period {
	text-align: right;
}

.ksk-chr-card {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-chr-images {
	display: grid;
	overflow: hidden;
}

.ksk-chr-images.is-double {
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}

.ksk-chr-images a {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.ksk-chr-images img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center; /* Kopf der alten Homepages bleibt sichtbar, abgeschnitten wird unten */
	transform-origin: top center;
	filter: brightness(.7) saturate(.8);
	transition: filter .35s, transform .5s;
}

.ksk-chr-images a:hover img {
	filter: none;
	transform: scale(1.02);
}

@media (hover: none) {
	.ksk-chr-images img { filter: brightness(.85) saturate(.9); }
}

.ksk-chr-body {
	padding: 26px 30px 30px;
}

.ksk-chr-body h2 {
	margin: 0 0 12px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.ksk-chr-body .ksk-prose > :first-child { margin-top: 0; }
.ksk-chr-body .ksk-prose > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	.ksk-chr-line {
		grid-template-columns: minmax(0, 1fr);
		padding-left: 34px;
	}

	.ksk-chr-line::before {
		left: 9px;
		margin-left: 0;
	}

	.ksk-chr-entry,
	.ksk-chr-entry.is-left,
	.ksk-chr-entry.is-right {
		grid-column: 1;
		grid-row: auto;
		padding-bottom: 32px;
	}

	.ksk-chr-entry.is-left .ksk-chr-mark,
	.ksk-chr-entry.is-right .ksk-chr-mark {
		left: -31px;
		right: auto;
		top: 10px;
		width: 14px;
		height: 14px;
	}

	.ksk-chr-entry.is-left .ksk-chr-period {
		text-align: left;
	}

	.ksk-chr-period { font-size: 36px; margin-bottom: 10px; }
	.ksk-chr-period.is-long { font-size: 30px; }

	.ksk-chr-body { padding: 18px 18px 22px; }
	.ksk-chr-body h2 { font-size: 24px; }
}

/* Chronik: der letzte Eintrag belegt nur eine Rasterzeile (sonst bleibt unten eine leere Zeile), der Abstand unter dem letzten Kasten fällt weg */
.ksk-chr-entry:last-child {
	grid-row: var(--chr-row) / span 1;
}

.ksk-chr-line {
	margin-bottom: -40px;
}

@media (max-width: 900px) {
	.ksk-chr-line { margin-bottom: -32px; }
}

/* =================================================================
   Abstand zwischen Inhalt und Fußbereich: überall gleich, auch für künftige Seiten (Gegenstück zu --ksk-content-top)
   ================================================================= */
:root {
	--ksk-content-bottom: 80px;
}

@media (max-width: 900px) {
	:root { --ksk-content-bottom: 64px; }
}

@media (max-width: 640px) {
	:root { --ksk-content-bottom: 48px; }
}

/* =================================================================
   Profil (profile.php, Entwurf P1 „Akte“)
   ================================================================= */
/* Kopf nutzt .ksk-pagehead (gleicher Abstand unter dem Logo wie alle Unterseiten) und die Konturschrift .ksk-ph-ghost */
.ksk-pf-head .ksk-wrap {
	position: relative;
}

.ksk-pf-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}

.ksk-pf-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ksk-muted);
}

.ksk-pf-back:hover { color: var(--ksk-accent); }

.ksk-pf-edit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #3a3a3a;
	font-size: 14px;
	font-weight: 700;
	color: #e9e9e6;
	transition: border-color .2s, color .2s;
}

.ksk-pf-edit:hover {
	border-color: var(--ksk-accent);
	color: var(--ksk-accent);
}

.ksk-pf-hero {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.ksk-pf-avatar {
	position: relative;
	flex: none;
	width: 170px;
	height: 170px;
}

.ksk-pf-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
	box-shadow: 0 0 0 4px var(--ksk-bg-2), 0 0 0 6px var(--ksk-accent);
}

.is-from-team .ksk-pf-avatar img {
	view-transition-name: ksk-profile-avatar;
}

.ksk-pf-online {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #4caf50;
	box-shadow: 0 0 0 4px var(--ksk-bg-2);
}

.ksk-pf-identity {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.ksk-pf-name {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: clamp(44px, 6vw, 76px);
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
	overflow-wrap: anywhere;
}

.ksk-pf-realname {
	margin-top: -4px;
	font-size: 18px;
	color: #c9c9c3;
}

.ksk-pf-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-pf-tags li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: var(--ksk-panel-2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #e9e9e6;
}

.ksk-pf-tags li.is-role:first-child,
.ksk-pf-tags li.is-current {
	background: var(--ksk-accent);
	color: #111;
}

.ksk-pf-tags li.is-country {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.ksk-pf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksk-pf-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--ksk-panel-2);
	font-size: 16px;
	color: #e9e9e6;
}

.ksk-pf-social a:hover {
	background: var(--ksk-accent);
	color: #111;
}

.ksk-pf-rank {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 170px;
	padding: 20px 26px;
	background: rgba(0, 0, 0, .35);
	border: 1px solid var(--ksk-line);
	text-align: center;
}

.ksk-pf-rank-img {
	width: 84px;
	height: 84px;
	object-fit: contain;
}

.ksk-pf-rank-label {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-pf-rank-name {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

/* Kennzahl „Online“ grün statt gelb */
.ksk-stats-strip-item.is-online dd {
	color: #4caf50;
}

/* Inhalt: links Orden + Über mich, rechts Teams + Hardware */
.ksk-pf {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.ksk-pf.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.ksk-pf-main,
.ksk-pf-aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.ksk-pf-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 26px 28px 28px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-pf-aside .ksk-pf-box {
	padding: 22px 24px 14px;
}

.ksk-pf-box h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-pf-box h2 span {
	color: var(--ksk-accent);
}

.ksk-pf-box .ksk-muted {
	margin: 0;
}

.ksk-pf-medals {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 20px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-pf-medal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	animation: ksk-pf-medal .5s calc(var(--i, 0) * 60ms) both;
}

@keyframes ksk-pf-medal {
	from { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
	.ksk-pf-medal { animation: none; }
}

.ksk-pf-medal-img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	transition: transform .25s;
}

.ksk-pf-medal:hover .ksk-pf-medal-img {
	transform: scale(1.08);
}

.ksk-pf-medal-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.ksk-pf-medal-date {
	font-size: 12px;
	color: #8b8b85;
}

.ksk-pf-about {
	font-size: 17px;
	line-height: 1.7;
	color: #d4d4ce;
	overflow-wrap: anywhere;
}

.ksk-pf-tags li.is-more {
	padding: 0;
	background: none;
}

.ksk-pf-tags li.is-more a {
	display: inline-flex;
	align-items: center;
	height: 100%;
	padding: 4px 9px;
	border: 1px dashed #3a3a3a;
	color: #c9c9c3;
}

.ksk-pf-tags li.is-more a:hover {
	border-color: var(--ksk-accent);
	color: var(--ksk-accent);
}

/* Kasten Teams: nach Position gruppiert, Teams als Schildchen */
#teams {
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-pf-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 0;
	border-top: 1px solid #26262a;
}

.ksk-pf-group-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-pf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksk-pf-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	background: var(--ksk-panel-2);
	font-size: 14px;
	color: #e9e9e6;
	transition: background .2s, color .2s;
}

.ksk-pf-chips a:hover {
	color: var(--ksk-accent);
}

.ksk-pf-chips a.is-current {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111;
}

.ksk-pf-hardware {
	margin: 0;
}

.ksk-pf-hardware div {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid #26262a;
	font-size: 14px;
}

.ksk-pf-hardware dt { color: #8b8b85; }
.ksk-pf-hardware dd { margin: 0; color: #e9e9e6; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
	.ksk-pf-hero { flex-wrap: wrap; }
	.ksk-pf-rank { flex-direction: row; min-width: 0; padding: 10px 16px; text-align: left; }
	.ksk-pf-rank-img { width: 40px; height: 40px; }
	.ksk-pf-rank-label { display: none; }
	.ksk-pf-identity { flex-basis: calc(100% - 210px); }
}

@media (max-width: 900px) {
	.ksk-pf { grid-template-columns: minmax(0, 1fr); }
	.ksk-pf-box,
	.ksk-pf-aside .ksk-pf-box { padding: 20px 18px 22px; }
}

@media (max-width: 760px) {
	.ksk-pf-hero { align-items: center; }
	.ksk-pf-topline { margin-bottom: 18px; }
	.ksk-pf-hero { flex-direction: column; gap: 14px; text-align: center; }
	.ksk-pf-avatar { width: 120px; height: 120px; }
	.ksk-pf-online { right: 6px; bottom: 6px; width: 18px; height: 18px; }
	.ksk-pf-identity { align-items: center; gap: 12px; flex-basis: auto; }
	.ksk-pf-name { font-size: 40px; }
	.ksk-pf-tags,
	.ksk-pf-social { justify-content: center; }
	.ksk-pf-tags li { font-size: 12px; padding: 4px 9px; }
	.ksk-pf-medals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ksk-pf-medal-img { width: 60px; height: 60px; }
}

/* Chronik: Linie endet an der Unterkante des letzten Kastens (nicht im Abstand darunter) */
.ksk-chr-line::before {
	bottom: 40px;
}

@media (max-width: 900px) {
	.ksk-chr-line::before { bottom: 32px; }
}

/* Seitenkopf auf Tablet/Handy: Abstand nach oben so, dass das hängende Logo nicht an Brotkrümel/„Zurück zu …“ stößt.
   Logo ragt unter den Balken (79 px): Desktop 156 px → 83 px, Tablet 124 px → 51 px, Handy 108 px → 35 px. */
@media (max-width: 1279px) {
	.ksk-pagehead {
		padding-top: 92px;  /* 51 px Logo + 41 px Luft */
	}
}

@media (max-width: 640px) {
	.ksk-pagehead {
		padding-top: 68px;  /* 35 px Logo + 33 px Luft */
	}
}

/* Suchfelder (Team-Liste, News): nur der Rahmen um das ganze Feld zeigt den Fokus, kein zweiter Kasten um das Eingabefeld */
.ksk-tm-search input:focus,
.ksk-tm-search input:focus-visible,
.ksk-news-search input:focus,
.ksk-news-search input:focus-visible {
	outline: none;
	box-shadow: none;
}

.ksk-tm-search:focus-within {
	border-color: var(--ksk-accent);
	box-shadow: 0 0 0 1px var(--ksk-accent);
}

/* Mitglied suchen: ausgefilterte Zeilen wirklich ausblenden (display: grid überschreibt sonst das hidden-Attribut) */
.ksk-tm-row[hidden] {
	display: none !important;
}

/* News-Suche beim Tippen: Ergebnisse kurz abblenden, während neu geladen wird */
.ksk-news-results {
	transition: opacity .2s;
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-news-results.is-loading {
	opacity: .45;
}

/* =================================================================
   Join Us (joinus.php, Entwurf J1): links Blöcke, rechts Bewerbung (bleibt beim Scrollen stehen)
   ================================================================= */
.ksk-ju {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 500px;
	gap: 32px;
	align-items: start;
}

.ksk-ju-blocks {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.ksk-ju-block,
.ksk-ju-form {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-ju-block-img {
	overflow: hidden;
	aspect-ratio: 3 / 1;
}

.ksk-ju-block-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.7) saturate(.8);
	transition: filter .35s, transform .5s;
}

.ksk-ju-block:hover .ksk-ju-block-img img {
	filter: none;
	transform: scale(1.02);
}

@media (hover: none) {
	.ksk-ju-block-img img { filter: brightness(.85) saturate(.9); }
}

.ksk-ju-block-body {
	padding: 26px 30px 30px;
}

.ksk-ju-block-body h2,
.ksk-ju-form h2 {
	margin: 0 0 12px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.ksk-ju-block-body .ksk-prose > :first-child { margin-top: 0; }
.ksk-ju-block-body .ksk-prose > :last-child { margin-bottom: 0; }

.ksk-ju-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px 30px 30px;
}

.ksk-ju-form h2 {
	margin: 0;
	font-size: 34px;
}

.ksk-ju-form form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ksk-ju-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ksk-ju-field[hidden] {
	display: none;
}

.ksk-ju-field > span,
.ksk-ju-field legend {
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-ju-field legend {
	margin-bottom: 10px;
}

.ksk-ju-field small {
	font-size: 13px;
	color: #8b8b85;
}

.ksk-ju-field input[type="text"],
.ksk-ju-field input[type="email"],
.ksk-ju-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: var(--ksk-bg);
	border: 1px solid #3a3a3a;
	border-radius: 0;
	font: inherit;
	font-size: 15px;
	color: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.ksk-ju-field textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

.ksk-ju-field input::placeholder,
.ksk-ju-field textarea::placeholder {
	color: #6f6f6a;
}

.ksk-ju-field input:focus,
.ksk-ju-field textarea:focus {
	outline: none;
	border-color: var(--ksk-accent);
	box-shadow: 0 0 0 1px var(--ksk-accent);
}

/* „Bewerbung für“ als Schildchen */
.ksk-ju-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksk-ju-chip {
	position: relative;
	cursor: pointer;
}

.ksk-ju-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ksk-ju-chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 13px;
	background: var(--ksk-panel-2);
	font-size: 14px;
	color: #e9e9e6;
	transition: background .2s, color .2s;
}

.ksk-ju-chip:hover span {
	color: var(--ksk-accent);
}

.ksk-ju-chip input:checked + span {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111;
}

.ksk-ju-chip input:checked + span::before {
	content: "\2713";
}

.ksk-ju-chip input:focus-visible + span {
	outline: 2px solid var(--ksk-accent);
	outline-offset: 2px;
}

.ksk-ju-submit {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 50px;
	padding: 0 28px;
	background: var(--ksk-accent);
	border: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111;
	cursor: pointer;
	transition: filter .2s;
}

.ksk-ju-submit:hover {
	filter: brightness(1.08);
}

.ksk-ju .g-recaptcha {
	min-height: 78px;
}

@media (max-width: 1100px) {
	.ksk-ju { grid-template-columns: minmax(0, 1fr) 420px; }
}

@media (max-width: 900px) {
	.ksk-ju { grid-template-columns: minmax(0, 1fr); }
	.ksk-ju-form { position: static; padding: 22px 18px 24px; }
	.ksk-ju-block-body { padding: 20px 18px 22px; }
	.ksk-ju-block-body h2 { font-size: 26px; }
	.ksk-ju-submit { align-self: stretch; justify-content: center; }
}

/* Bewerbung bleibt nur stehen, wenn das Fenster hoch genug für das ganze Formular ist */
@media (min-width: 901px) and (min-height: 1000px) {
	.ksk-ju-form {
		position: sticky;
		top: calc(var(--ksk-header-h, 79px) + 24px);
	}
}

/* Suche beim Tippen (listsearch.js): Ergebnisse kurz abblenden */
[data-live-results] {
	transition: opacity .2s;
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

[data-live-results].is-loading {
	opacity: .45;
}

/* =================================================================
   Termine / Events (event.php)
   ================================================================= */
.ksk-ev {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ksk-ev-next,
.ksk-ev-box {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-ev-next {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-ev-next-media {
	position: relative;
	min-height: 340px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 80% at 50% 50%, color-mix(in srgb, var(--ksk-accent) 8%, transparent), transparent 70%),
		var(--ksk-bg-2);
}

.ksk-ev-next-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.65) saturate(.85);
}

/* ohne Event-Bild: Logo des Spiels (Admin → Spiele) groß und ganz */
.ksk-ev-next-media img.is-logo {
	inset: 15%;
	width: 70%;
	height: 70%;
	object-fit: contain;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6));
}

.ksk-ev-flag {
	position: absolute;
	left: 0;
	top: 0;
	padding: 8px 14px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #111;
}

.ksk-ev-countdown {
	position: absolute;
	left: 24px;
	bottom: 22px;
	display: flex;
	gap: 10px;
}

.ksk-ev-countdown span {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 66px;
	padding: 8px 6px;
	background: rgba(15, 15, 16, .85);
}

.ksk-ev-countdown b {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	color: var(--ksk-accent);
}

.ksk-ev-countdown small {
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-ev-next-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px 32px;
	min-width: 0;
}

.ksk-ev-next-title {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ksk-ev-next-title h2 {
	margin: 0 0 6px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 38px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-ev-date {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 82px;
	background: var(--ksk-accent);
	color: #111;
}

.ksk-ev-date b {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 40px;
	line-height: .9;
}

.ksk-ev-date small {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ksk-ev-date.is-big { width: 96px; height: 104px; }
.ksk-ev-date.is-big b { font-size: 52px; }

.ksk-ev-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	font-size: 14px;
	color: var(--ksk-muted);
}

.ksk-ev-game {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ksk-ev-game img {
	border-radius: 3px;
}

.ksk-ev-text {
	font-size: 16px;
}

.ksk-ev-text > :first-child { margin-top: 0; }
.ksk-ev-text > :last-child { margin-bottom: 0; }

/* Zusage-Balken */
.ksk-ev-bar {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ksk-ev-bar-text {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--ksk-muted);
}

.ksk-ev-bar-text b {
	color: #fff;
}

.ksk-ev-bar-track {
	height: 6px;
	background: #26262a;
}

.ksk-ev-bar-track span {
	display: block;
	height: 100%;
	background: var(--ksk-accent);
}

.ksk-ev-bar.is-open .ksk-ev-bar-track span {
	width: 100% !important;
	background: #3a3a3a;
}

.ksk-ev-avatars {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.ksk-ev-avatars img {
	width: 30px;
	height: 30px;
	margin-left: -8px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
	box-shadow: 0 0 0 2px var(--ksk-panel);
}

.ksk-ev-avatars img:first-child { margin-left: 0; }

.ksk-ev-avatars span {
	margin-left: 8px;
	font-size: 13px;
	color: var(--ksk-muted);
}

.ksk-ev-who summary,
.ksk-ev-more summary {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	list-style: none;
	font-size: 13px;
	color: var(--ksk-muted);
}

.ksk-ev-who summary::-webkit-details-marker,
.ksk-ev-more summary::-webkit-details-marker { display: none; }

.ksk-ev-who summary:hover,
.ksk-ev-more summary:hover { color: var(--ksk-accent); }

.ksk-ev-names {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #d4d4ce;
}

.ksk-ev-names p { margin: 0 0 4px; }

.ksk-ev-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.ksk-ev-next .ksk-ev-actions { justify-content: flex-start; }

.ksk-ev-actions form { margin: 0; }

.ksk-ev-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	background: var(--ksk-accent);
	border: 1px solid var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111 !important;
	cursor: pointer;
}

.ksk-ev-btn.is-ghost {
	background: transparent;
	border-color: #3a3a3a;
	color: #e9e9e6 !important;
}

.ksk-ev-btn.is-ghost:hover { border-color: var(--ksk-accent); color: var(--ksk-accent) !important; }
.ksk-ev-btn:disabled { opacity: .5; cursor: not-allowed; }

.ksk-ev-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ksk-ev-state.is-yes { background: #1f3a22; color: #6fcf73; }
.ksk-ev-state.is-no { background: #3a1f1f; color: #e07a73; }

.ksk-ev-undo {
	padding: 0;
	background: none;
	border: 0;
	font-size: 13px;
	color: var(--ksk-muted);
	text-decoration: underline;
	cursor: pointer;
}

.ksk-ev-undo:hover { color: var(--ksk-accent); }

/* weitere Termine */
.ksk-ev-box > h2 {
	margin: 0;
	padding: 22px 24px 16px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	text-transform: uppercase;
	color: #fff;
}

.ksk-ev-box > h2 span { color: var(--ksk-accent); }

.ksk-ev-row {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) 240px auto;
	align-items: center;
	gap: 14px 24px;
	padding: 18px 24px;
	border-top: 1px solid #26262a;
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-ev-row-title {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ksk-ev-row-title strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-ev-row .ksk-ev-btn {
	min-height: 38px;
	padding: 0 16px;
	font-size: 16px;
}

.ksk-ev-more {
	grid-column: 2 / -1;
}

.ksk-ev-more[open] summary i { transform: rotate(180deg); }
.ksk-ev-more .ksk-ev-text { margin-top: 10px; }
.ksk-ev-more .ksk-ev-actions { justify-content: flex-start; margin-top: 12px; }

.ksk-ev-empty p {
	margin: 0;
	padding: 28px 30px;
	color: var(--ksk-muted);
}

/* vergangene Termine */
.ksk-ev-past {
	padding: 22px 24px 10px;
	background: var(--ksk-bg-2);
	border: 1px solid #26262a;
}

.ksk-ev-past h2 {
	margin: 0 0 6px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-ev-past ul { margin: 0; padding: 0; list-style: none; }

.ksk-ev-past > ul > li {
	border-top: 1px solid #26262a;
}

.ksk-ev-past-row {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	font-size: 14px;
	color: #8b8b85;
}

.ksk-ev-past-row span:nth-child(2) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #e9e9e6;
}

.ksk-ev-past summary {
	cursor: pointer;
	list-style: none;
}

.ksk-ev-past summary::-webkit-details-marker { display: none; }

.ksk-ev-past summary:hover span:nth-child(2),
.ksk-ev-past details[open] summary span:nth-child(2) { color: var(--ksk-accent); }

.ksk-ev-past summary i {
	margin-left: 6px;
	font-size: 11px;
	transition: transform .2s;
}

.ksk-ev-past details[open] summary i { transform: rotate(180deg); }

.ksk-ev-past-more {
	padding: 0 0 16px 116px;
}

.ksk-ev-past-more .ksk-muted { margin: 0; }

.ksk-ev-people {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksk-ev-people a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 4px 4px;
	background: var(--ksk-panel-2);
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-ev-people a:hover { color: var(--ksk-accent); }

.ksk-ev-people img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.ksk-ev-past-more .ksk-ev-text { margin-top: 12px; font-size: 15px; }

@media (max-width: 1000px) {
	.ksk-ev-next { grid-template-columns: minmax(0, 1fr); }
	.ksk-ev-next-media { min-height: 220px; }
	.ksk-ev-row { grid-template-columns: 76px minmax(0, 1fr); }
	.ksk-ev-row .ksk-ev-bar,
	.ksk-ev-row > .ksk-ev-actions { grid-column: 1 / -1; }
	.ksk-ev-row > .ksk-ev-actions { justify-content: flex-start; }
	.ksk-ev-more { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.ksk-ev-next-body { padding: 20px 18px 22px; }
	.ksk-ev-next-title h2 { font-size: 28px; }
	.ksk-ev-date.is-big { width: 76px; height: 82px; }
	.ksk-ev-date.is-big b { font-size: 40px; }
	.ksk-ev-countdown { left: 14px; bottom: 14px; }
	.ksk-ev-countdown span { min-width: 54px; }
	.ksk-ev-countdown b { font-size: 24px; }
	.ksk-ev-next .ksk-ev-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.ksk-ev-next .ksk-ev-actions .ksk-ev-btn { width: 100%; justify-content: center; }
	.ksk-ev-row { padding: 16px; }
	.ksk-ev-row-title strong { font-size: 21px; }
	.ksk-ev-past-row { grid-template-columns: 1fr; gap: 2px; }
	.ksk-ev-past-more { padding-left: 0; }
}

/* =================================================================
   Matches (matches.php, matches_card.php, matches_show.php)
   ================================================================= */
.ksk-mt {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ksk-mt-results {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ksk-mt-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.ksk-mt-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksk-mt-filter a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 14px;
	background: var(--ksk-panel-2);
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-mt-filter a:hover { color: var(--ksk-accent); }

.ksk-mt-filter a[aria-current] {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111;
}

.ksk-mt-filter img { border-radius: 3px; }

.ksk-mt-box {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-mt-box > h2 {
	margin: 0;
	padding: 22px 24px 4px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	text-transform: uppercase;
	color: #fff;
}

.ksk-mt-box > h2 span { color: var(--ksk-accent); }

.ksk-mt-row {
	display: grid;
	grid-template-columns: 110px 190px minmax(0, 1fr) 150px minmax(0, 1fr) 130px;
	align-items: center;
	gap: 16px;
	padding: 14px 24px 14px 20px;
	border-top: 1px solid #26262a;
	border-left: 4px solid transparent;
}

.ksk-mt-row.is-win { border-left-color: #4caf50; }
.ksk-mt-row.is-lose { border-left-color: var(--ksk-red); }
.ksk-mt-row.is-draw { border-left-color: #6f6f6a; }
.ksk-mt-row.is-upcoming { border-left-color: var(--ksk-accent); }

.ksk-mt-head {
	padding-top: 16px;
	padding-bottom: 14px;
	border-top: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8b8b85;
}

.ksk-mt-head .is-home { text-align: right; }
.ksk-mt-head .ksk-mt-score { text-align: center; }

.ksk-mt-date {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	color: #c9c9c3;
}

.ksk-mt-date small,
.ksk-mt-game small {
	font-size: 12px;
	color: #8b8b85;
}

.ksk-mt-game {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ksk-mt-game > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ksk-mt-game strong {
	font-size: 14px;
	color: #fff;
}

.ksk-mt-game-icon {
	flex: none;
	border-radius: 4px;
}

.ksk-mt-team {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	font-weight: 700;
	color: #fff;
}

.ksk-mt-team.is-home {
	justify-content: flex-end;
	text-align: right;
}

.ksk-mt-name {
	overflow-wrap: anywhere;
}

.ksk-mt-logo {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--ksk-panel-2);
	font-size: 12px;
	font-weight: 700;
	color: var(--ksk-accent);
}

.ksk-mt-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ksk-mt-logo.is-opp.is-empty { color: #8b8b85; }

.ksk-mt-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.ksk-mt-score b {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 34px;
	line-height: 1;
	white-space: nowrap;
}

.ksk-mt-score small {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.is-win .ksk-mt-score { color: #4caf50; }
.is-lose .ksk-mt-score { color: #e0483e; }
.is-draw .ksk-mt-score { color: var(--ksk-muted); }
.is-upcoming .ksk-mt-score { color: var(--ksk-accent); }

.ksk-mt-links {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
}

.ksk-mt-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #3a3a3a;
	font-size: 13px;
	font-weight: 700;
	color: #e9e9e6;
}

.ksk-mt-links a:hover { border-color: var(--ksk-accent); color: var(--ksk-accent); }

/* Detailseite: Zeile groß */
.ksk-mt-row.is-detail {
	border-top: 0;
	padding-top: 22px;
	padding-bottom: 22px;
}

.ksk-mt-row.is-detail .ksk-mt-score b { font-size: 46px; }
.ksk-mt-row.is-detail .ksk-mt-logo { width: 56px; height: 56px; }

.ksk-mt-report {
	padding: 28px 32px 32px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-mt-report h2 {
	margin: 0 0 14px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	text-transform: uppercase;
	color: #fff;
}

.ksk-mt-back { margin: 0; }
.ksk-mt-back a { color: var(--ksk-muted); }
.ksk-mt-back a:hover { color: var(--ksk-accent); }

@media (max-width: 1000px) {
	.ksk-mt-head { display: none; }

	/* Zeile wird zur Karte: oben Spiel + Datum, Mitte Teams mit Ergebnis, unten Links */
	.ksk-mt-row {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas:
			"game game date"
			"home score opp"
			"links links links";
		gap: 12px;
		padding: 16px 16px 16px 14px;
	}

	.ksk-mt-game { grid-area: game; }
	.ksk-mt-date { grid-area: date; align-items: flex-end; text-align: right; }
	.ksk-mt-team.is-home { grid-area: home; flex-direction: column-reverse; align-items: center; justify-content: flex-start; text-align: center; gap: 6px; }
	.ksk-mt-team.is-opp { grid-area: opp; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
	.ksk-mt-score { grid-area: score; }
	.ksk-mt-links { grid-area: links; justify-content: center; }
	.ksk-mt-links:empty { display: none; }
	.ksk-mt-tools { flex-direction: column-reverse; align-items: stretch; }
	.ksk-mt-tools .ksk-tm-search { width: auto; }
	.ksk-mt-report { padding: 22px 18px 24px; }
}
.ksk-ev-who summary { flex-wrap: wrap; row-gap: 6px; }

.ksk-ju-field legend small {
	margin-left: 6px;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: none;
	color: #8b8b85;
}

/* Paragraphzeichen in Regeln/Satzung so hoch wie die Ziffer: in der Display-Schrift ragt „§“ unter die Grundlinie
   und ist ca. 27 % höher als eine Ziffer. Verkleinert und angehoben steht es genau auf Ziffernhöhe. */
.ksk-legal-par {
	display: inline-block;
	margin-right: .04em;
	font-size: .784em;
	vertical-align: .21em;
}

/* =================================================================
   Schutz für Kopf und Fuß: alte Seiten-CSS (job.css, kontakt.css, joinus.css …) gestalten button/input global
   (float: right, Großbuchstaben, eigene Abstände). Mit höherer Spezifität bleiben Kopf und Fuß auf allen Seiten gleich,
   auch auf künftigen, die noch im alten Layout laufen.
   ================================================================= */
.ksk-site .ksk-header button,
.ksk-site .ksk-footer button,
.ksk-site .ksk-footer-bottom button {
	float: none;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}

.ksk-site .ksk-header .ksk-user {
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}

.ksk-site .ksk-header .ksk-qs-field input {
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	font-size: 16px !important;
	color: #111;
}

@media (min-width: 1280px) {
	.ksk-site .ksk-header.ksk-kopf-keil .ksk-qs-field input {
		color: #fff;
	}
}

/* =================================================================
   Jobs / Aufgaben (job.php) – Formular wie Join Us (ksk-ju-*), links Aufgaben zum Aufklappen
   ================================================================= */
.ksk-job {
	background: var(--ksk-panel);
	border-top: 3px solid #3a3a3a;
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
	transition: border-color .2s;
}

.ksk-job[open] {
	border-top-color: var(--ksk-accent);
}

.ksk-job summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 28px;
	cursor: pointer;
	list-style: none;
}

.ksk-job summary::-webkit-details-marker { display: none; }

.ksk-job summary h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.ksk-job summary:hover h2 { color: var(--ksk-accent); }

.ksk-job summary i {
	margin-top: 6px;
	color: var(--ksk-accent);
	transition: transform .2s;
}

.ksk-job[open] summary i { transform: rotate(45deg); }

.ksk-job-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 28px;
	padding: 16px 0 26px;
	border-top: 1px solid #26262a;
}

.ksk-job-body .ksk-prose > :first-child { margin-top: 0; }
.ksk-job-body .ksk-prose > :last-child { margin-bottom: 0; }

.ksk-job-apply {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--ksk-accent);
	font-size: 14px;
	font-weight: 700;
	color: var(--ksk-accent) !important;
	transition: background .2s, color .2s;
}

.ksk-job-apply:hover {
	background: var(--ksk-accent);
	color: #111 !important;
}

.ksk-job-initiative {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 28px;
	background: var(--ksk-bg-2);
	border: 1px dashed #3a3a3a;
	color: var(--ksk-muted) !important;
	transition: border-color .2s;
}

.ksk-job-initiative:hover { border-color: var(--ksk-accent); }

.ksk-job-initiative > i {
	font-size: 28px;
	color: var(--ksk-accent);
}

.ksk-job-initiative span {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 15px;
	line-height: 1.5;
}

.ksk-job-initiative strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

@media (max-width: 900px) {
	.ksk-job summary { padding: 20px 18px; }
	.ksk-job summary h2 { font-size: 24px; }
	.ksk-job-body { margin: 0 18px; }
	.ksk-job-initiative { padding: 18px; }
}

/* =================================================================
   Kontakt (kontakt.php) – links „Andere Wege zu uns“ als ein Kasten, rechts Formular (ksk-ju-*), beide gleich hoch
   ================================================================= */
.ksk-kontakt {
	align-items: stretch;
}

.ksk-kontakt-box {
	display: flex;
	flex-direction: column;
	padding: 28px 30px 12px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-kontakt-title {
	margin: 0 0 12px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 34px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-kontakt-ways {
	display: flex;
	flex-direction: column;
}

.ksk-kontakt-way {
	display: flex;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid #26262a;
	color: inherit !important;
}

.ksk-kontakt-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--ksk-panel-2);
	font-size: 20px;
	color: var(--ksk-accent);
}

.ksk-kontakt-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ksk-kontakt-text strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-kontakt-text > span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ksk-muted);
}

.ksk-kontakt-text em {
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	color: var(--ksk-accent);
	overflow-wrap: anywhere;
}

a.ksk-kontakt-way:hover strong { color: var(--ksk-accent); }

/* Handy/Tablet: Kasten löst sich auf, die Wege werden zu vier Kacheln über dem Formular */
@media (max-width: 900px) {
	.ksk-kontakt-box {
		padding: 0;
		background: none;
		border-top: 0;
		clip-path: none;
	}

	.ksk-kontakt-title { display: none; }

	.ksk-kontakt-ways {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.ksk-kontakt-way {
		flex-direction: column;
		gap: 8px;
		padding: 14px;
		background: var(--ksk-panel);
		border-top: 3px solid var(--ksk-accent);
		clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
	}

	.ksk-kontakt-icon { width: 36px; height: 36px; font-size: 16px; }
	.ksk-kontakt-text strong { font-size: 19px; }
	.ksk-kontakt-text > span { display: none; }
	.ksk-kontakt-text em { font-size: 12px; }
}

/* =================================================================
   Forum (forum/*.php) – Übersicht, Unterforum, Thema, Archiv, Suche, Formular.
   forum.css bleibt für Editor (pell), Beitragstext und Signatur geladen; Aufbau und Listen kommen von hier.
   ================================================================= */
.ksk-fo {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ksk-fo-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ksk-fo-tools-left,
.ksk-fo-tools-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ksk-fo-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--ksk-muted) !important;
}

.ksk-fo-back:hover { color: var(--ksk-accent) !important; }

.ksk-fo-btn,
.ksk-site .ksk-fo button.ksk-fo-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	background: var(--ksk-accent);
	border: 1px solid var(--ksk-accent);
	border-radius: 0;
	float: none;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111 !important;
	cursor: pointer;
	list-style: none;
}

.ksk-fo-btn.is-ghost {
	background: transparent;
	border-color: #3a3a3a;
	color: #e9e9e6 !important;
}

.ksk-fo-btn.is-ghost:hover { border-color: var(--ksk-accent); color: var(--ksk-accent) !important; }
.ksk-fo-btn:not(.is-ghost):hover { filter: brightness(1.08); }

.ksk-fo-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

.ksk-fo-box {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-fo-box-title {
	margin: 0;
	padding: 20px 24px 14px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.ksk-fo-empty {
	margin: 0;
	padding: 24px;
	color: var(--ksk-muted);
}

.ksk-fo-note {
	margin: 0;
	padding: 14px 18px;
	background: var(--ksk-bg-2);
	border-left: 3px solid #3a3a3a;
	font-size: 15px;
	color: var(--ksk-muted);
}

.ksk-fo-note i { margin-right: 6px; }

/* Zahlen-Spalte (Themen, Antworten, Aufrufe) */
.ksk-fo-num {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ksk-fo-num b {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	color: #fff;
}

.ksk-fo-num.is-dim b { color: #c9c9c3; }

.ksk-fo-num small {
	margin-top: 4px;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8b8b85;
}

/* Letzter Beitrag mit Profilbild */
.ksk-fo-last {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ksk-fo-last img {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-fo-last > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ksk-fo-last a,
.ksk-fo-last b {
	overflow: hidden;
	font-size: 14px;
	color: #e9e9e6;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ksk-fo-last a:hover { color: var(--ksk-accent); }

.ksk-fo-last small {
	font-size: 12px;
	color: #8b8b85;
}

.ksk-fo-last small b {
	font-size: 12px;
	color: #c9c9c3;
}

/* ---------- Übersicht ---------- */
.ksk-fo-index {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 24px;
	align-items: start;
}

.ksk-fo-main,
.ksk-fo-aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.ksk-fo-board {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 80px 250px;
	align-items: center;
	gap: 16px;
	padding: 14px 24px;
	border-top: 1px solid #26262a;
}

.ksk-fo-board-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: var(--ksk-panel-2);
	font-size: 17px;
	color: var(--ksk-accent);
}

.ksk-fo-board-name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ksk-fo-board-name a {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.ksk-fo-board-name a:hover { color: var(--ksk-accent); }

.ksk-fo-board-name small {
	font-size: 13px;
	color: #8b8b85;
}

.ksk-fo-archive {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 24px;
	background: var(--ksk-bg-2);
	border: 1px dashed #3a3a3a;
	color: var(--ksk-muted) !important;
}

.ksk-fo-archive:hover { border-color: var(--ksk-accent); }

.ksk-fo-archive span {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ksk-fo-archive strong { color: #e9e9e6; }
.ksk-fo-archive small { font-size: 13px; color: #8b8b85; }

.ksk-fo-archive b {
	font-family: var(--ksk-display);
	font-size: 22px;
	color: #8b8b85;
}

.ksk-fo-side {
	padding-bottom: 10px;
}

.ksk-fo-side .ksk-fo-box-title {
	padding: 20px 22px 12px;
	font-size: 24px;
}

.ksk-site .ksk-fo-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 22px 8px;
	background: none;
}

.ksk-site .ksk-fo-tabs button {
	min-height: 34px;
	padding: 0 12px;
	background: var(--ksk-panel-2);
	border: 0;
	font-family: var(--ksk-body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #e9e9e6;
}

.ksk-site .ksk-fo-tabs button.active {
	background: var(--ksk-accent);
	font-weight: 700;
	color: #111;
}

.ksk-fo-recent {
	padding: 0 22px;
}

.ksk-fo-recent a {
	display: flex;
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid #26262a;
}

.ksk-fo-recent img {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-fo-recent span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ksk-fo-recent b {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: #e9e9e6;
}

.ksk-fo-recent a:hover b { color: var(--ksk-accent); }

.ksk-fo-recent small {
	font-size: 12px;
	color: #8b8b85;
}

.ksk-fo-online {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 22px;
	list-style: none;
}

.ksk-fo-online a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-top: 1px solid #26262a;
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-fo-online a:hover span { color: var(--ksk-accent); }

.ksk-fo-online span.is-now::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #4caf50;
	vertical-align: 1px;
}

.ksk-fo-online small {
	flex: none;
	font-size: 12px;
	color: #8b8b85;
}

.ksk-fo-online-more summary {
	padding: 8px 22px 4px;
	font-size: 13px;
	color: var(--ksk-muted);
	cursor: pointer;
}

.ksk-fo-online-more summary:hover { color: var(--ksk-accent); }

/* „Wer war online?“: Desktop 12 Namen, Handy 8 (forum/index.php) */
.ksk-fo-side .is-mobile-only { display: none; }

@media (max-width: 760px) {
	.ksk-fo-side .is-desk-only { display: none; }
	.ksk-fo-side .is-mobile-only { display: revert; }
	.ksk-fo-side li.is-mobile-only { display: list-item; }
	.ksk-fo-side details.is-mobile-only { display: block; }
}

/* ---------- Unterforum / Archiv: Themen ---------- */
.ksk-fo-topic {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 90px 90px 220px;
	align-items: center;
	gap: 16px;
	padding: 14px 24px 14px 20px;
	border-top: 1px solid #26262a;
	border-left: 4px solid transparent;
}

.ksk-fo-box > .ksk-fo-topic:first-child { border-top: 0; }

.ksk-fo-topic.is-pinned {
	background: #1c1c19;
	border-left-color: var(--ksk-accent);
}

.ksk-fo-topic.is-closed .ksk-fo-topic-title a { color: #c9c9c3; }

.ksk-fo-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-fo-topic-title {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ksk-fo-topic-title a {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.ksk-fo-topic-title a:hover { color: var(--ksk-accent); }

.ksk-fo-topic-title small {
	font-size: 13px;
	color: #8b8b85;
}

.ksk-fo-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksk-fo-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ksk-fo-tag.is-pinned { background: var(--ksk-accent); color: #111; }
.ksk-fo-tag.is-closed { background: #3a1f1f; color: #e07a73; }

.ksk-fo-last.is-text > span { gap: 2px; }

/* Spaltenköpfe über Themen- und Unterforen-Listen (gleiche Spalten wie die Zeilen) */
.ksk-fo-cols {
	display: grid;
	align-items: end;
	gap: 16px;
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-fo-cols.is-topic {
	grid-template-columns: 40px minmax(0, 1fr) 90px 90px 220px;
	padding: 14px 24px 12px 20px;
	border-left: 4px solid transparent;
	background: #1a1a1d;
	border-bottom: 1px solid #2c2c30;
}

.ksk-fo-cols.is-topic > span:first-child { grid-column: 1 / 3; }

.ksk-fo-cols.is-board {
	grid-template-columns: 42px minmax(0, 1fr) 80px 250px;
	padding: 20px 24px 14px;
}

.ksk-fo-cols.is-board .ksk-fo-box-title { grid-column: 1 / 3; padding: 0; }

.ksk-fo-cols > span:not(:first-child) { text-align: center; }
.ksk-fo-cols > span:last-child { text-align: left; }

.ksk-fo-cols + .ksk-fo-topic { border-top: 0; }

/* Mit Spaltenköpfen braucht es die kleinen Bezeichnungen unter den Zahlen nicht mehr */
@media (min-width: 1101px) {
	.ksk-fo-box .ksk-fo-cols ~ .ksk-fo-topic .ksk-fo-num small,
	.ksk-fo-box .ksk-fo-cols ~ .ksk-fo-board .ksk-fo-num small { display: none; }
	.ksk-fo-cols ~ .ksk-fo-topic .ksk-fo-last.is-text small { display: none; }
}

/* Schmal ändern sich die Spalten: dort Köpfe ausblenden, Bezeichnungen stehen unter den Zahlen */
@media (max-width: 1100px) {
	.ksk-fo-cols.is-topic { display: none; }
	.ksk-fo-cols.is-board { display: block; }
	.ksk-fo-cols.is-board > span { display: none; }
}

@media (max-width: 760px) {
	.ksk-fo-cols.is-board { padding: 18px 16px 12px; }
}

/* ---------- Suche ---------- */
.ksk-fo-result {
	display: flex;
	gap: 14px;
	padding: 16px 24px;
	border-top: 1px solid #26262a;
}

.ksk-fo-box > .ksk-fo-result:first-child { border-top: 0; }

.ksk-fo-result > i {
	margin-top: 4px;
	color: var(--ksk-accent);
}

.ksk-fo-result > span {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ksk-fo-result a {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.ksk-fo-result a:hover { color: var(--ksk-accent); }
.ksk-fo-result small { font-size: 13px; color: #8b8b85; }

.ksk-fo-snippet {
	font-size: 14px;
	line-height: 1.55;
	color: #c9c9c3;
}

/* ---------- Thema: Beiträge ---------- */
.ksk-fo-posts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ksk-fo-post {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	background: var(--ksk-panel);
	border-top: 3px solid #2a2a2d;
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	scroll-margin-top: calc(var(--ksk-header-h, 79px) + 16px);
}

.ksk-fo-post.is-first { border-top-color: var(--ksk-accent); }

.ksk-fo-post:target { box-shadow: inset 0 0 0 1px var(--ksk-accent); }

.ksk-fo-author {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 24px 16px;
	border-right: 1px solid #26262a;
	text-align: center;
}

.ksk-fo-author-img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-fo-author-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.ksk-fo-author-name {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	overflow-wrap: anywhere;
}

.ksk-fo-author-rank {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-fo-rank-img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.ksk-fo-author-info small {
	font-size: 12px;
	color: #8b8b85;
}

.ksk-fo-post-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ksk-fo-post-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 24px;
	border-bottom: 1px solid #26262a;
}

.ksk-fo-post-meta {
	font-size: 13px;
	color: #8b8b85;
}

.ksk-fo-post-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksk-fo-post-actions form { margin: 0; }

.ksk-fo-act,
.ksk-site .ksk-fo button.ksk-fo-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	background: none;
	border: 1px solid #3a3a3a;
	border-radius: 0;
	float: none;
	font-family: var(--ksk-body);
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	color: #c9c9c3 !important;
	cursor: pointer;
}

.ksk-fo-act:hover,
.ksk-site .ksk-fo button.ksk-fo-act:hover {
	border-color: var(--ksk-accent);
	color: var(--ksk-accent) !important;
}

.ksk-fo-post-text {
	flex: 1;
	padding: 20px 24px;
	font-size: 16px;
	line-height: 1.7;
	color: #d4d4ce;
	overflow-wrap: anywhere;
}

.ksk-fo-post-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 24px;
	border-top: 1px solid #26262a;
}

.ksk-fo-post-foot form { margin: 0; }

.ksk-fo-like,
.ksk-site .ksk-fo button.ksk-fo-like {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 14px;
	background: none;
	border: 1px solid var(--ksk-accent);
	border-radius: 0;
	float: none;
	font-family: var(--ksk-body);
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	color: var(--ksk-accent);
	cursor: pointer;
}

.ksk-site .ksk-fo button.ksk-fo-like:hover {
	background: var(--ksk-accent);
	color: #111;
}

.ksk-fo-like.is-static {
	border-color: transparent;
	padding-left: 0;
	color: #8b8b85;
	cursor: default;
}

.ksk-fo-likers {
	font-size: 12px;
	color: #8b8b85;
}

.ksk-fo-signature {
	margin: 0 24px 16px;
	padding-top: 12px;
	border-top: 1px dashed #2a2a2d;
	font-size: 13px;
	color: #8b8b85;
}

/* Moderation: aufklappbares Menü */
.ksk-fo-mod {
	position: relative;
}

.ksk-fo-mod summary::-webkit-details-marker { display: none; }
.ksk-fo-mod summary .fa-chevron-down { font-size: 11px; transition: transform .2s; }
.ksk-fo-mod[open] summary .fa-chevron-down { transform: rotate(180deg); }

.ksk-fo-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
	display: flex;
	flex-direction: column;
	min-width: 260px;
	padding: 6px;
	background: #1d1d20;
	border: 1px solid #3a3a3a;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

.ksk-fo-menu form { margin: 0; }

.ksk-site .ksk-fo button.ksk-fo-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	background: none;
	border: 0;
	border-radius: 0;
	float: none;
	font-family: var(--ksk-body);
	font-size: 14px;
	font-weight: 400;
	text-align: left;
	text-transform: none;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-fo button.ksk-fo-menu-item:hover {
	background: var(--ksk-panel-2);
	color: var(--ksk-accent);
}

.ksk-site .ksk-fo button.ksk-fo-menu-item.is-accent { color: var(--ksk-accent); }

.ksk-fo-move {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 12px;
	border-top: 1px solid #2a2a2d;
	border-bottom: 1px solid #2a2a2d;
}

.ksk-fo-move label {
	font-size: 13px;
	color: var(--ksk-muted);
}

/* Antworten / Formular */
.ksk-fo-reply {
	padding-bottom: 24px;
}

.ksk-fo-reply form,
.ksk-fo-reply > .ksk-fo-note {
	margin: 0 24px;
}

.ksk-fo-reply > form:first-child {
	padding-top: 24px;
}

.ksk-fo-denied p {
	margin: 0 24px 12px;
	color: #d4d4ce;
}

.ksk-fo-denied .ksk-fo-buttons {
	justify-content: flex-start;
	margin: 16px 24px 24px;
}

@media (max-width: 1100px) {
	.ksk-fo-index { grid-template-columns: minmax(0, 1fr); }
	.ksk-fo-board { grid-template-columns: 42px minmax(0, 1fr) 70px; }
	.ksk-fo-board .ksk-fo-last { grid-column: 2 / -1; }
	.ksk-fo-topic { grid-template-columns: 40px minmax(0, 1fr) 80px 80px; }
	.ksk-fo-topic .ksk-fo-last { display: none; }
}

@media (max-width: 760px) {
	.ksk-fo-tools-right { width: 100%; }
	.ksk-fo-tools-right .ksk-tm-search { flex: 1 1 100%; width: auto; }
	.ksk-fo-board { padding: 14px 16px; gap: 12px; }
	.ksk-fo-topic { grid-template-columns: 36px minmax(0, 1fr) 64px; padding: 12px 16px 12px 12px; gap: 12px; }
	.ksk-fo-topic .ksk-fo-num.is-dim { display: none; }
	.ksk-fo-avatar { width: 36px; height: 36px; }

	.ksk-fo-post { grid-template-columns: minmax(0, 1fr); }
	.ksk-fo-author {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 14px 16px;
		border-right: 0;
		border-bottom: 1px solid #26262a;
		text-align: left;
	}
	.ksk-fo-author-img { width: 44px; height: 44px; }
	.ksk-fo-author-info { align-items: flex-start; gap: 2px; }
	.ksk-fo-author-rank { flex-direction: row; }
	.ksk-fo-rank-img { width: 20px; height: 20px; }
	.ksk-fo-post-head,
	.ksk-fo-post-text,
	.ksk-fo-post-foot { padding-left: 16px; padding-right: 16px; }
	.ksk-fo-signature { margin: 0 16px 14px; }
	.ksk-fo-menu { left: 0; right: auto; }
	.ksk-fo-reply form,
	.ksk-fo-reply > .ksk-fo-note { margin: 0 16px; }
}

/* =========================================================
   Downloads (Views/downloads.php)
   ========================================================= */
.ksk-dl-results {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ksk-dl-cols,
.ksk-dl-row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 120px 110px 160px;
	align-items: center;
	gap: 18px;
	padding: 16px 24px;
}

.ksk-dl-cols {
	align-items: end;
	padding: 20px 24px 14px;
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-dl-cols .ksk-fo-box-title { grid-column: 1 / 3; padding: 0; }
.ksk-dl-cols > span:nth-of-type(2) { text-align: center; }

.ksk-dl-count {
	margin-left: 6px;
	font-size: 22px;
	color: var(--ksk-accent);
}

.ksk-dl-row { border-top: 1px solid #26262a; }
.ksk-dl-row:hover { background: #1c1c1f; }

.ksk-dl-type {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 64px;
	background: var(--ksk-panel-2);
	border-top: 3px solid #8b8b85;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 16px;
	color: #c9c9c3;
}

.ksk-dl-type.is-archive { border-top-color: #e0a84a; color: #e0a84a; }
.ksk-dl-type.is-doc     { border-top-color: #e07a73; color: #e07a73; }
.ksk-dl-type.is-image   { border-top-color: #4caf50; color: #6cc070; }
.ksk-dl-type.is-video   { border-top-color: #5b9bd5; color: #7fb2e0; }
.ksk-dl-type.is-audio   { border-top-color: #b48ce0; color: #c3a3e6; }
.ksk-dl-type.is-app     { border-top-color: var(--ksk-accent); color: var(--ksk-accent); }

.ksk-dl-name {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ksk-dl-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.ksk-dl-title strong {
	font-size: 16px;
	color: #fff;
	overflow-wrap: anywhere;
}

.ksk-dl-lock {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 7px;
	background: #3a1f1f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #e07a73;
}

.ksk-dl-desc {
	font-size: 13px;
	line-height: 1.5;
	color: #8b8b85;
}

.ksk-dl-meta-sm { display: none; font-size: 12px; color: #8b8b85; }

.ksk-dl-size {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: #a3a39d;
}

.ksk-dl-size b {
	font-size: 15px;
	color: #e9e9e6;
}

.ksk-dl-action { text-align: right; }

.ksk-dl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
}

.ksk-dl-btn:hover,
.ksk-dl-btn:focus-visible { background: #fff; color: #111; }

.ksk-dl-btn.is-missing,
.ksk-dl-btn.is-missing:hover {
	background: #2a2a2d;
	color: #8b8b85;
	cursor: not-allowed;
}

.ksk-dl-row.is-missing .ksk-dl-title strong { color: #a3a39d; }

@media (max-width: 1100px) {
	.ksk-dl-cols,
	.ksk-dl-row { grid-template-columns: 56px minmax(0, 1fr) 110px 150px; }
	.ksk-dl-hits,
	.ksk-dl-cols > span:nth-of-type(2) { display: none; }
}

@media (max-width: 760px) {
	.ksk-dl-cols { display: block; padding: 18px 16px 12px; }
	.ksk-dl-cols > span { display: none; }
	.ksk-dl-row {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 12px;
		padding: 14px 16px;
	}
	.ksk-dl-type { width: 44px; height: 50px; font-size: 13px; }
	.ksk-dl-size { display: none; }
	.ksk-dl-desc { display: none; }
	.ksk-dl-meta-sm { display: block; }
	.ksk-dl-title strong { font-size: 15px; }
	.ksk-dl-btn {
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 50%;
	}
	.ksk-dl-btn span { display: none; }
}

/* =========================================================
   Galerie (Views/gallery.php, gallery_details.php)
   ========================================================= */
.ksk-ga {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.ksk-ga .ksk-news-tools { margin-bottom: -12px; }
.ksk-ga .ksk-news-cats small { margin-left: 4px; font-size: 12px; color: #8b8b85; }
.ksk-ga .ksk-news-cats a[aria-current="page"] small { color: #555; }

/* Neuestes Album */
.ksk-ga-latest {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	color: #e9e9e6;
}

.ksk-ga-latest[hidden] { display: none; }

.ksk-ga-latest-media {
	position: relative;
	min-height: 380px;
	overflow: hidden;
	background: var(--ksk-panel-2);
}

.ksk-ga-latest-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.ksk-ga-latest:hover .ksk-ga-latest-media img { transform: scale(1.03); }

.ksk-ga-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 5px 10px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111;
}

.ksk-ga-latest-text {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px 30px 28px;
}

.ksk-ga-kicker {
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #a3a39d;
}

.ksk-ga-latest-text strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 48px;
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
	overflow-wrap: anywhere;
}

.ksk-ga-latest-meta { font-size: 15px; color: #c9c9c3; }

.ksk-ga-latest-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin-top: auto;
}

.ksk-ga-latest-thumbs img {
	width: 100%;
	height: 64px;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-ga-btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 20px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
}

.ksk-ga-latest:hover .ksk-ga-btn { background: #fff; }

/* Gruppen mit Albumkarten */
.ksk-ga-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ksk-ga-group[hidden] { display: none; }

.ksk-ga-group-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #26262a;
}

.ksk-ga-group-head h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-ga-group-count {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	color: var(--ksk-accent);
}

.ksk-site .ksk-ga-more {
	float: none;
	margin: 0 0 0 auto;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 14px;
	text-transform: none;
	color: #c9c9c3;
	cursor: pointer;
}

.ksk-site .ksk-ga-more:hover { color: var(--ksk-accent); }
.ksk-ga-more i { margin-left: 4px; transition: transform .2s; }
.ksk-ga-group.is-open .ksk-ga-more i { transform: rotate(180deg); }

.ksk-ga-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.ksk-ga-group.is-limited:not(.is-open) .ksk-ga-card:nth-child(n+5) { display: none; }
body.ksk-ga-searching .ksk-ga-group.is-limited .ksk-ga-card:not([hidden]) { display: block; }
.ksk-ga-searching .ksk-ga-more { visibility: hidden; }
.ksk-ga-card[hidden] { display: none !important; }

.ksk-ga-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ksk-panel-2);
	color: #fff;
}

.ksk-ga-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.85) saturate(.92);
	transition: transform .4s ease, filter .4s ease;
}

.ksk-ga-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 11, .92));
}

.ksk-ga-card:hover img,
.ksk-ga-card:focus-visible img { transform: scale(1.05); filter: none; }

.ksk-ga-card:focus-visible { outline: 3px solid var(--ksk-accent); outline-offset: 2px; }

.ksk-ga-count {
	position: absolute;
	z-index: 1;
	top: 10px;
	right: 10px;
	padding: 3px 8px;
	background: rgba(15, 15, 16, .8);
	font-size: 12px;
	font-weight: 700;
	color: #e9e9e6;
}

.ksk-ga-card-text {
	position: absolute;
	z-index: 1;
	left: 16px;
	right: 16px;
	bottom: 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ksk-ga-card-text strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	/* Immer eine Zeile, lange Namen mit „…“ (voller Name im title und auf der Albumseite) */
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding-bottom: 1px;
}

.ksk-ga-card:hover .ksk-ga-card-text strong { color: var(--ksk-accent); }
.ksk-ga-card-text small { font-size: 13px; color: #c9c9c3; }

/* Albumseite */
.ksk-ga-album { gap: 24px; }

.ksk-ga-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 14px;
	color: #a3a39d;
}

.ksk-ga-meta b { color: #fff; }
.ksk-ga-meta i { margin-right: 4px; }

.ksk-ga-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ksk-ga-pager {
	display: flex;
	gap: 8px;
	min-width: 0;
}

.ksk-ga-pager a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	max-width: 260px;
	padding: 0 14px;
	background: #222225;
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-ga-pager a span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ksk-ga-pager a:hover { background: var(--ksk-accent); color: #111; }

.ksk-ga-photos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-auto-rows: 160px;
	grid-auto-flow: dense;
	gap: 8px;
}

.ksk-ga-photo {
	position: relative;
	overflow: hidden;
	background: var(--ksk-panel-2);
}

.ksk-ga-photo[hidden] { display: none; }
.ksk-ga-photo.is-big { grid-column: span 2; grid-row: span 2; }
.ksk-ga-photo.is-wide { grid-column: span 2; }

.ksk-ga-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease, filter .3s ease;
}

.ksk-ga-photo:hover img { transform: scale(1.04); filter: brightness(1.08); }
.ksk-ga-photo:focus-visible { outline: 3px solid var(--ksk-accent); outline-offset: 2px; }

.ksk-ga-loadmore { display: flex; justify-content: center; }

.ksk-site .ksk-ga-loadbtn {
	float: none;
	min-height: 44px;
	padding: 0 22px;
	background: transparent;
	border: 1px solid #3a3a3a;
	font: inherit;
	font-size: 15px;
	text-transform: none;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-ga-loadbtn:hover { border-color: var(--ksk-accent); color: var(--ksk-accent); }

/* Bildansicht */
html.ksk-ga-noscroll { overflow: hidden; }

.ksk-ga-viewer {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	grid-template-rows: 64px minmax(0, 1fr) 104px;
	background: rgba(8, 8, 9, .97);
	color: #e9e9e6;
}

.ksk-ga-viewer[hidden] { display: none; }

.ksk-ga-viewer-bar {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 0 24px;
	border-bottom: 1px solid #222225;
}

.ksk-ga-viewer-count {
	flex: none;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	color: var(--ksk-accent);
}

.ksk-ga-viewer-count span + span { color: #6f6f6a; }

.ksk-ga-viewer-title {
	overflow: hidden;
	font-size: 15px;
	color: #c9c9c3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ksk-ga-viewer-actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.ksk-site .ksk-ga-viewer-actions a,
.ksk-site .ksk-ga-viewer-actions button {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	background: #222225;
	border: 0;
	font: inherit;
	font-size: 14px;
	text-transform: none;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-ga-viewer-actions a:hover,
.ksk-site .ksk-ga-viewer-actions button:hover { background: #2f2f33; color: var(--ksk-accent); }

.ksk-site .ksk-ga-viewer-actions .ksk-ga-viewer-close {
	width: 40px;
	justify-content: center;
	padding: 0;
	background: var(--ksk-accent);
	font-size: 20px;
	color: #111;
}

.ksk-site .ksk-ga-viewer-actions .ksk-ga-viewer-close:hover { background: #fff; color: #111; }

.ksk-ga-viewer-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 24px 104px;
}

.ksk-ga-viewer-stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
	user-select: none;
}

.ksk-site .ksk-ga-viewer-nav {
	float: none;
	position: absolute;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	background: rgba(34, 34, 37, .9);
	border: 0;
	font-size: 22px;
	color: #fff;
	cursor: pointer;
}

.ksk-site .ksk-ga-viewer-nav:hover { background: var(--ksk-accent); color: #111; }
.ksk-ga-viewer-nav.is-prev { left: 28px; }
.ksk-ga-viewer-nav.is-next { right: 28px; }

.ksk-ga-viewer-strip {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 0 24px;
	border-top: 1px solid #222225;
	scrollbar-width: thin;
}

.ksk-site .ksk-ga-viewer-strip button {
	float: none;
	flex: none;
	width: 96px;
	height: 64px;
	margin: 0;
	padding: 0;
	background: var(--ksk-panel-2);
	border: 0;
	opacity: .45;
	cursor: pointer;
	transition: opacity .2s;
}

.ksk-ga-viewer-strip button:hover { opacity: .8; }
.ksk-ga-viewer-strip button.is-active { opacity: 1; outline: 3px solid var(--ksk-accent); outline-offset: -3px; }

.ksk-ga-viewer-strip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1100px) {
	.ksk-ga-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ksk-ga-group.is-limited:not(.is-open) .ksk-ga-card:nth-child(n+4) { display: none; }
	.ksk-ga-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ksk-ga-latest { grid-template-columns: minmax(0, 1fr); }
	.ksk-ga-latest-media { min-height: 300px; }
}

@media (max-width: 760px) {
	.ksk-ga { gap: 28px; }
	.ksk-ga-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ksk-ga-group.is-limited:not(.is-open) .ksk-ga-card:nth-child(n+4) { display: block; }
	.ksk-ga-group.is-limited:not(.is-open) .ksk-ga-card:nth-child(n+5) { display: none; }
	.ksk-ga-card-text { left: 10px; right: 10px; bottom: 9px; }
	.ksk-ga-card-text strong { font-size: 17px; }
	.ksk-ga-card-text small { font-size: 11px; }
	.ksk-ga-count { top: 6px; right: 6px; font-size: 11px; }
	.ksk-ga-group-head h2 { font-size: 24px; }
	.ksk-ga-latest-media { min-height: 210px; }
	.ksk-ga-latest-text { padding: 18px 16px 20px; gap: 10px; }
	.ksk-ga-latest-text strong { font-size: 32px; }
	.ksk-ga-latest-thumbs { display: none; }
	.ksk-ga-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 110px; gap: 4px; }
	.ksk-ga-photo.is-wide { grid-column: span 1; }
	.ksk-ga-pager a span { display: none; }
	.ksk-ga-viewer { grid-template-rows: 56px minmax(0, 1fr) 76px; }
	.ksk-ga-viewer-bar { gap: 10px; padding: 0 12px; }
	.ksk-ga-viewer-title { display: none; }
	.ksk-ga-viewer-actions a span,
	.ksk-ga-viewer-actions button span { display: none; }
	.ksk-ga-viewer-stage { padding: 8px 0; }
	.ksk-site .ksk-ga-viewer-nav { width: 44px; height: 44px; background: rgba(34, 34, 37, .7); }
	.ksk-ga-viewer-nav.is-prev { left: 6px; }
	.ksk-ga-viewer-nav.is-next { right: 6px; }
	.ksk-site .ksk-ga-viewer-strip button { width: 64px; height: 44px; }
	.ksk-ga-viewer-strip { padding: 0 12px; }
}

/* Downloads: Kategorien – Vereins-Schildchen + Auswahlfeld für Spiele */
.ksk-dl-tools {
	display: grid;
	grid-template-columns: 360px minmax(0, 340px) 1fr;
	align-items: start;
	gap: 14px 12px;
	margin-bottom: 8px;
}

.ksk-dl-filters { display: contents; }
.ksk-dl-filters .ksk-news-cats { grid-column: 1 / -1; }
.ksk-dl-filters .ksk-news-cats small { margin-left: 4px; font-size: 12px; color: #8b8b85; }
.ksk-dl-filters .ksk-news-cats a[aria-current="page"] small { color: #555; }
.ksk-dl-tools .ksk-news-search { grid-column: 2; width: 100%; }
.ksk-dl-tools:not(.has-pick) .ksk-news-search { grid-column: 1; }

.ksk-dl-pick {
	position: relative;
	grid-column: 1;
}

.ksk-dl-pick summary {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px;
	background: var(--ksk-panel);
	border: 1px solid #3a3a3a;
	font-size: 15px;
	color: #c9c9c3;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.ksk-dl-pick summary::-webkit-details-marker { display: none; }
.ksk-dl-pick summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ksk-dl-pick summary:hover,
.ksk-dl-pick[open] summary { border-color: var(--ksk-accent); color: #fff; }
.ksk-dl-pick.is-set summary { border-color: var(--ksk-accent); background: #222219; color: var(--ksk-accent); font-weight: 700; }
.ksk-dl-pick-arrow { color: var(--ksk-accent); transition: transform .2s; }
.ksk-dl-pick[open] .ksk-dl-pick-arrow { transform: rotate(180deg); }

.ksk-dl-pick-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #1c1c1f;
	border: 1px solid #3a3a3a;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}

.ksk-dl-pick-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 14px;
	border-bottom: 1px solid #2c2c30;
	color: #8b8b85;
}

.ksk-site .ksk-dl-pick-search input {
	flex: 1;
	height: 42px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	outline: 0;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	color: #fff;
}

.ksk-dl-pick-panel ul {
	max-height: 360px;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	list-style: none;
	scrollbar-width: thin;
}

.ksk-dl-pick-panel li[hidden] { display: none; }

.ksk-dl-pick-panel a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 14px;
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-dl-pick-panel a small { flex: none; color: #8b8b85; }
.ksk-dl-pick-panel a:hover,
.ksk-dl-pick-panel a:focus-visible { background: #2a2a2d; color: var(--ksk-accent); outline: 0; }
.ksk-dl-pick-panel a[aria-current="page"] { background: var(--ksk-accent); color: #111; font-weight: 700; }
.ksk-dl-pick-panel a[aria-current="page"] small { color: #444; }
.ksk-dl-pick-panel a.is-reset { color: #a3a39d; font-style: italic; border-bottom: 1px solid #2c2c30; }

.ksk-dl-pick-none {
	margin: 0;
	padding: 10px 14px 14px;
	font-size: 14px;
	color: #8b8b85;
}

@media (max-width: 900px) {
	.ksk-dl-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ksk-dl-pick { grid-column: 1; }
	.ksk-dl-tools .ksk-news-search { grid-column: 2; }
}

@media (max-width: 640px) {
	.ksk-dl-tools { grid-template-columns: minmax(0, 1fr); }
	.ksk-dl-pick,
	.ksk-dl-tools .ksk-news-search,
	.ksk-dl-tools:not(.has-pick) .ksk-news-search { grid-column: 1; }
}

/* =========================================================
   Videos (Views/videos.php) und Twitch-Streams (Views/stream.php)
   ========================================================= */
.ksk-vd,
.ksk-st {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* gemeinsamer Player-Kasten */
.ksk-vd-stage,
.ksk-st-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	scroll-margin-top: 100px;
}

.ksk-vd-screen,
.ksk-st-screen {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.ksk-vd-screen > img,
.ksk-st-screen > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.42) blur(1px);
	transform: scale(1.02);
}

.ksk-vd-screen iframe,
.ksk-st-screen iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ksk-vd-consent,
.ksk-st-consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 12%;
	text-align: center;
}

.ksk-vd-consent strong,
.ksk-st-consent strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
}

.ksk-vd-consent p,
.ksk-st-consent p {
	max-width: 520px;
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #c9c9c3;
}

.ksk-vd-consent a,
.ksk-st-consent a { color: #fff; text-decoration: underline; }

.ksk-site .ksk-vd-bigplay,
.ksk-site .ksk-st-bigplay {
	float: none;
	width: 84px;
	height: 84px;
	margin: 0;
	padding: 0 0 0 6px;
	border: 0;
	border-radius: 50%;
	background: var(--ksk-accent);
	font-size: 30px;
	color: #111;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
	transition: transform .2s ease, background .2s ease;
}

.ksk-site .ksk-st-bigplay { background: #9146ff; color: #fff; }
.ksk-site .ksk-vd-bigplay:hover,
.ksk-site .ksk-st-bigplay:hover { transform: scale(1.08); }

/* Videos: rechte Spalte */
.ksk-vd-info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 26px;
}

.ksk-vd-kicker {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #a3a39d;
}

.ksk-vd-title {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 34px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	overflow-wrap: anywhere;
}

.ksk-vd-hint { margin: 0; font-size: 14px; line-height: 1.6; color: #a3a39d; }

.ksk-vd-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.ksk-site .ksk-vd-btn {
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	background: var(--ksk-accent);
	border: 1px solid var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
	cursor: pointer;
}

.ksk-site .ksk-vd-btn:hover { background: #fff; border-color: #fff; color: #111; }
.ksk-site .ksk-vd-btn.is-ghost { background: transparent; border-color: #3a3a3a; font-family: inherit; font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: #e9e9e6; }
.ksk-site .ksk-vd-btn.is-ghost:hover { border-color: var(--ksk-accent); color: var(--ksk-accent); background: transparent; }
.ksk-vd-stage.is-playing .ksk-vd-actions [data-vd-play] { display: none; }

.ksk-vd-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #26262a;
}

.ksk-vd-head h2,
.ksk-st-head h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-vd-head h2 span,
.ksk-st-head h2 span { margin-left: 8px; font-size: 24px; color: var(--ksk-accent); }

.ksk-vd-results { display: flex; flex-direction: column; gap: 20px; }
.ksk-vd-results.is-loading { opacity: .5; }

.ksk-vd-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 18px;
}

.ksk-site .ksk-vd-card {
	float: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	text-align: left;
	text-transform: none;
	color: #fff;
	cursor: pointer;
}

.ksk-vd-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ksk-panel-2);
}

.ksk-vd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(.82);
	transition: transform .4s ease, filter .3s ease;
}

.ksk-vd-card:hover .ksk-vd-thumb img,
.ksk-vd-card:focus-visible .ksk-vd-thumb img { transform: scale(1.05); filter: none; }

.ksk-vd-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 3px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--ksk-accent);
	font-size: 16px;
	color: #111;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

.ksk-vd-now,
.ksk-st-now-tag {
	position: absolute;
	top: 10px;
	display: none;
	padding: 3px 8px;
	background: var(--ksk-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111;
}

.ksk-vd-now { left: 10px; }
.ksk-st-now-tag { right: 10px; }
.ksk-vd-card.is-playing .ksk-vd-now,
.ksk-st-card.is-playing .ksk-st-now-tag { display: block; }
.ksk-vd-card.is-playing .ksk-vd-thumb { outline: 3px solid var(--ksk-accent); outline-offset: -3px; }
.ksk-vd-card:focus-visible { outline: 3px solid var(--ksk-accent); outline-offset: 3px; }

.ksk-vd-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.ksk-vd-card:hover .ksk-vd-name { color: var(--ksk-accent); }

/* Streams */
.ksk-stats-strip:has(+ .ksk-st) .ksk-stats-strip-item:first-child dd { color: #e0453a; } /* „gerade live“ rot */

.ksk-st-main { display: flex; flex-direction: column; min-width: 0; }

.ksk-st-now {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border-bottom: 1px solid #26262a;
}

.ksk-st-now-text { display: flex; flex-direction: column; min-width: 0; }
.ksk-st-now-text strong { font-size: 16px; color: #fff; }
.ksk-st-now-text small { overflow: hidden; font-size: 13px; color: #a3a39d; text-overflow: ellipsis; white-space: nowrap; }
.ksk-st-now .ksk-st-badge { margin-left: auto; flex: none; }

.ksk-st-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ksk-panel-2);
}

.ksk-st-avatar.is-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #3a3a3e;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	color: #fff;
}

.ksk-st-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ksk-st-badge[hidden] { display: none; }
.ksk-st-badge.is-live { background: #b3261e; color: #fff; }
.ksk-st-badge i,
.ksk-st-dot { font-size: .6em; color: inherit; }
.ksk-st-head .ksk-st-dot,
.ksk-st-filter .ksk-st-dot { color: #e0453a; vertical-align: middle; }

.ksk-st-chat {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-left: 1px solid #26262a;
}

.ksk-st-chat-head {
	padding: 14px 16px;
	border-bottom: 1px solid #26262a;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
}

.ksk-st-chat-body {
	position: relative;
	flex: 1;
	display: flex;
	align-items: flex-end;
	min-height: 0;
	padding: 16px;
	font-size: 13px;
	color: #8b8b85;
}

.ksk-st-chat-body p { margin: 0; padding: 10px 12px; border: 1px solid #3a3a3a; width: 100%; }
.ksk-st-stage.is-loaded .ksk-st-chat-body { padding: 0; }
.ksk-st-chat-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ksk-site .ksk-st-chat-toggle { display: none; }

.ksk-st-note {
	margin: 0;
	padding: 12px 16px;
	background: var(--ksk-panel);
	border-left: 3px solid #3a3a3a;
	font-size: 14px;
	color: #a3a39d;
}

.ksk-st-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -8px; }

.ksk-site .ksk-st-filter button {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	margin: 0;
	padding: 0 14px;
	background: #222225;
	border: 0;
	font: inherit;
	font-size: 14px;
	text-transform: none;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-st-filter button:hover { color: var(--ksk-accent); }
.ksk-site .ksk-st-filter button.is-active { background: var(--ksk-accent); color: #111; font-weight: 700; }

.ksk-st-group { display: flex; flex-direction: column; gap: 18px; }
.ksk-st-group.is-filtered { display: none; }

.ksk-st-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #26262a;
}

.ksk-st-head-hint { font-size: 13px; color: #8b8b85; }

.ksk-st-live {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ksk-st-card {
	display: flex;
	flex-direction: column;
	background: var(--ksk-panel);
}

.ksk-st-card.is-playing { outline: 3px solid var(--ksk-accent); outline-offset: -3px; }

.ksk-site .ksk-st-thumb {
	float: none;
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--ksk-panel-2);
	border: 0;
	cursor: pointer;
}

.ksk-st-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.ksk-st-thumb:hover img { transform: scale(1.04); }
.ksk-st-thumb .ksk-st-badge { position: absolute; left: 10px; top: 10px; }

.ksk-st-viewers {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 3px 8px;
	background: rgba(15, 15, 16, .85);
	font-size: 12px;
	color: #e9e9e6;
}

.ksk-st-card-body {
	display: flex;
	gap: 12px;
	padding: 14px 16px 16px;
}

.ksk-st-card-body > span {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ksk-st-card-body strong { font-size: 16px; color: #fff; }
.ksk-st-card-title { font-size: 13px; line-height: 1.4; color: #c9c9c3; overflow-wrap: anywhere; }
.ksk-st-game { font-size: 12px; color: var(--ksk-accent); }

.ksk-st-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	margin-top: auto;
	background: #26262a;
	border-top: 1px solid #26262a;
}

.ksk-site .ksk-st-card-actions button,
.ksk-st-card-actions a {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 11px;
	background: var(--ksk-panel);
	border: 0;
	font: inherit;
	font-size: 14px;
	text-transform: none;
	color: #c9c9c3;
	cursor: pointer;
}

.ksk-site .ksk-st-card-actions button { font-weight: 700; color: var(--ksk-accent); }
.ksk-site .ksk-st-card-actions button:hover,
.ksk-st-card-actions a:hover { background: #222225; color: #fff; }

.ksk-st-offline {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.ksk-st-row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 10px 12px 14px;
	background: var(--ksk-panel);
}

.ksk-st-row.is-missing { opacity: .55; }
.ksk-st-row-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ksk-st-row-text strong { overflow: hidden; font-size: 15px; color: #e9e9e6; text-overflow: ellipsis; white-space: nowrap; }
.ksk-st-row-text small { overflow: hidden; font-size: 12px; color: #8b8b85; text-overflow: ellipsis; white-space: nowrap; }
.ksk-st-row-text small i { font-size: .6em; vertical-align: middle; }

.ksk-site .ksk-st-icon {
	float: none;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	background: #222225;
	border: 0;
	font-size: 13px;
	color: #c9c9c3;
	cursor: pointer;
}

.ksk-site .ksk-st-icon:hover { background: var(--ksk-accent); color: #111; }

@media (max-width: 1100px) {
	.ksk-vd-stage { grid-template-columns: minmax(0, 1fr); }
	.ksk-vd-actions { flex-direction: row; flex-wrap: wrap; }
	.ksk-vd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ksk-st-stage { grid-template-columns: minmax(0, 1fr) 280px; }
	.ksk-st-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ksk-st-offline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.ksk-st-stage { grid-template-columns: minmax(0, 1fr); }
	.ksk-st-chat { display: none; height: 420px; border-left: 0; border-top: 1px solid #26262a; }
	.ksk-st-stage.chat-open .ksk-st-chat { display: flex; }
	.ksk-site .ksk-st-chat-toggle {
		float: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 12px 16px;
		background: var(--ksk-panel);
		border: 0;
		border-top: 1px solid #26262a;
		font: inherit;
		font-size: 14px;
		text-transform: none;
		color: #e9e9e6;
		cursor: pointer;
	}
	.ksk-st-chat-toggle i { color: var(--ksk-accent); transition: transform .2s; }
	.ksk-st-stage.chat-open .ksk-st-chat-toggle i { transform: rotate(180deg); }
	.ksk-st-offline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ksk-vd-info { padding: 16px; gap: 10px; }
	.ksk-vd-title { font-size: 26px; }
	.ksk-vd-hint { display: none; }
	.ksk-vd-head .ksk-news-search { flex: 1 1 100%; }
	.ksk-vd-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ksk-site .ksk-vd-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 12px; }
	.ksk-vd-play { width: 32px; height: 32px; font-size: 12px; }
	.ksk-vd-name { font-size: 14px; }
	.ksk-vd-now { top: 4px; left: 4px; font-size: 9px; padding: 2px 5px; }
	.ksk-vd-consent,
	.ksk-st-consent { gap: 8px; padding: 0 16px; }
	.ksk-vd-consent p,
	.ksk-st-consent p { font-size: 11px; line-height: 1.45; }
	.ksk-site .ksk-vd-bigplay,
	.ksk-site .ksk-st-bigplay { width: 60px; height: 60px; font-size: 22px; }
	.ksk-vd-consent strong,
	.ksk-st-consent strong { font-size: 20px; }
	.ksk-st-now { padding: 10px 12px; }
	.ksk-st-live { grid-template-columns: minmax(0, 1fr); }
	.ksk-st-offline { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Link Us (Views/linkus.php)
   ========================================================= */
.ksk-lu { display: flex; flex-direction: column; gap: 28px; }

.ksk-lu-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.ksk-lu-note { font-size: 15px; color: #a3a39d; }
.ksk-lu-note b { color: #fff; }

.ksk-lu-back {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px;
	background: var(--ksk-panel);
	border-left: 3px solid var(--ksk-accent);
	font-size: 14px;
	line-height: 1.6;
	color: #c9c9c3;
}

.ksk-lu-back strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-lu-back-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ksk-lu-back-links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; background: #222225; font-size: 14px; color: #e9e9e6; }
.ksk-lu-back-links a.is-main { background: var(--ksk-accent); color: #111; font-weight: 700; }
.ksk-lu-back-links a:hover { background: #fff; color: #111; }
.ksk-lu-back-links i { font-size: 10px; }

.ksk-lu-banners {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.ksk-lu-card.is-wide:first-child:not(:only-child) { grid-column: 1; }

.ksk-lu-card,
.ksk-lu-logo {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-lu-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	padding: 20px 24px 14px;
}

.ksk-lu-head h2,
.ksk-lu-logo h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 28px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-lu-size {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	color: var(--ksk-accent);
}

.ksk-lu-head small { margin-left: auto; font-size: 13px; color: #8b8b85; }

.ksk-lu-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 130px;
	margin: 0 24px;
	padding: 20px;
	background-color: #1b1b1e;
	background-image:
		linear-gradient(45deg, #222226 25%, transparent 25%),
		linear-gradient(-45deg, #222226 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #222226 75%),
		linear-gradient(-45deg, transparent 75%, #222226 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.ksk-lu-preview img { max-width: 100%; height: auto; }

.ksk-lu-code { display: flex; flex-direction: column; padding: 18px 24px 22px; }

.ksk-lu-tabs { display: flex; gap: 2px; }

.ksk-site .ksk-lu-tabs button {
	float: none;
	margin: 0 0 -1px;
	padding: 8px 14px;
	background: #222225;
	border: 1px solid transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	color: #a3a39d;
	cursor: pointer;
}

.ksk-site .ksk-lu-tabs button[aria-selected="true"] {
	position: relative;
	background: #0f0f10;
	border-color: #2c2c30;
	border-bottom-color: #0f0f10;
	color: var(--ksk-accent);
}

.ksk-site .ksk-lu-code textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	resize: none;
	background: #0f0f10;
	border: 1px solid #2c2c30;
	box-shadow: none;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 13px;
	line-height: 1.55;
	color: #c9c9c3;
	word-break: break-all;
}

.ksk-lu-code textarea[hidden] { display: none; }
.ksk-site .ksk-lu-code textarea:focus { outline: 0; border-color: var(--ksk-accent); }

.ksk-lu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.ksk-site .ksk-lu-btn {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	background: var(--ksk-accent);
	border: 1px solid var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
	cursor: pointer;
}

.ksk-site .ksk-lu-btn:hover { background: #fff; border-color: #fff; color: #111; }
.ksk-site .ksk-lu-btn.is-ghost { background: transparent; border-color: #3a3a3a; font-family: inherit; font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: #e9e9e6; }
.ksk-site .ksk-lu-btn.is-ghost:hover { border-color: var(--ksk-accent); color: var(--ksk-accent); background: transparent; }
.ksk-site .ksk-lu-btn.is-done,
.ksk-site .ksk-lu-btn.is-done:hover { background: #6cc070; border-color: #6cc070; color: #111; }

.ksk-lu-logo {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 22px 24px;
}

.ksk-lu-logo .ksk-lu-preview { margin: 0; min-height: 180px; }
.ksk-lu-logo .ksk-lu-preview img { max-width: 150px; }
.ksk-lu-logo-text p { margin: 10px 0 0; font-size: 14px; color: #c9c9c3; }

@media (max-width: 1100px) {
	.ksk-lu-intro { grid-template-columns: minmax(0, 1fr); }
	.ksk-lu-banners { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.ksk-lu-head { padding: 14px 16px 10px; }
	.ksk-lu-head h2,
	.ksk-lu-logo h2 { font-size: 22px; }
	.ksk-lu-preview { margin: 0 16px; padding: 14px 8px; min-height: 90px; }
	.ksk-lu-code { padding: 14px 16px 16px; }
	.ksk-lu-actions .ksk-lu-btn { flex: 1 1 100%; justify-content: center; }
	.ksk-lu-logo { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}

/* =========================================================
   Serverhardware (Views/serverhardware.php)
   ========================================================= */
.ksk-sv { display: flex; flex-direction: column; gap: 24px; }

.ksk-sv-card {
	background: var(--ksk-panel);
	border-top: 3px solid #3a3a3a;
}

.ksk-sv-card.is-main {
	border-top-color: var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-sv-top {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
}

.ksk-sv-card.is-main .ksk-sv-top { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); }
.ksk-sv-card.is-main.no-photo .ksk-sv-top { grid-template-columns: minmax(0, 1fr); }

.ksk-sv-media { display: flex; flex-direction: column; gap: 8px; padding: 24px; }

.ksk-sv-photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #ededeb; /* Produktfotos mit weißem Hintergrund */
}

.ksk-sv-photo img { width: 100%; height: 100%; object-fit: contain; }

.ksk-sv-count {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 3px 8px;
	background: rgba(15, 15, 16, .85);
	font-size: 12px;
	color: #e9e9e6;
}

.ksk-sv-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }

.ksk-site .ksk-sv-thumbs button {
	float: none;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #ededeb;
	border: 0;
	opacity: .7;
	cursor: pointer;
	transition: opacity .2s;
}

.ksk-sv-thumbs button:hover { opacity: 1; }
.ksk-sv-thumbs button.is-active { opacity: 1; outline: 2px solid var(--ksk-accent); outline-offset: -2px; }
.ksk-sv-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.ksk-sv-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #141416;
	font-size: 56px;
	color: #3a3a3e;
}

.ksk-sv-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 24px 26px;
}

.ksk-sv-card.is-main .ksk-sv-info { padding-left: 4px; }
.ksk-sv-card.is-main.no-photo .ksk-sv-info { padding-left: 26px; }

.ksk-sv-badge {
	padding: 4px 10px;
	background: #222225;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #c9c9c3;
}

.ksk-sv-card.is-main .ksk-sv-badge { background: var(--ksk-accent); color: #111; }

.ksk-sv-info h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 32px;
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
}

.ksk-sv-card.is-main .ksk-sv-info h2 { font-size: 44px; }
.ksk-sv-info p { margin: 0; font-size: 16px; line-height: 1.6; color: #c9c9c3; }

.ksk-sv-services { display: flex; flex-wrap: wrap; gap: 6px; }
.ksk-sv-services span { padding: 5px 10px; background: #222225; font-size: 13px; color: #e9e9e6; }

.ksk-sv-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.ksk-sv-card.is-main .ksk-sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ksk-sv-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: var(--ksk-bg, #0f0f10);
	border-left: 3px solid var(--ksk-accent);
}

.ksk-sv-tile span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8b8b85; }
.ksk-sv-tile span i { margin-right: 4px; }
.ksk-sv-tile b { font-family: var(--ksk-display); font-weight: 800; font-size: 26px; line-height: 1; color: #fff; }
.ksk-sv-tile small { font-size: 12px; color: #a3a39d; }

.ksk-sv-specs { border-top: 1px solid #26262a; }

.ksk-sv-specs summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	list-style: none;
}

.ksk-sv-specs summary::-webkit-details-marker { display: none; }
.ksk-sv-specs summary i { color: var(--ksk-accent); transition: transform .2s; }
.ksk-sv-specs[open] summary i { transform: rotate(180deg); }
.ksk-sv-specs summary:hover { color: var(--ksk-accent); }

.ksk-sv-specs dl {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	margin: 0;
	padding: 0 24px 20px;
	font-size: 14px;
}

.ksk-sv-specs dt,
.ksk-sv-specs dd { margin: 0; padding: 10px 0; border-top: 1px solid #26262a; line-height: 1.5; }
.ksk-sv-specs dt { color: #8b8b85; }
.ksk-sv-specs dd { color: #e9e9e6; }

.ksk-sv-live { display: flex; flex-direction: column; gap: 16px; }

.ksk-sv-live-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #26262a;
}

.ksk-sv-live-head h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	text-transform: uppercase;
	color: #fff;
}

.ksk-sv-live-head span { font-size: 13px; color: #8b8b85; }

.ksk-sv-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.ksk-sv-links a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: var(--ksk-panel);
	color: #e9e9e6;
}

.ksk-sv-links a > i:first-child { font-size: 22px; color: var(--ksk-accent); width: 26px; text-align: center; }
.ksk-sv-links a span { display: flex; flex-direction: column; min-width: 0; }
.ksk-sv-links b { font-size: 15px; color: #fff; }
.ksk-sv-links small { font-size: 12px; color: #8b8b85; }
.ksk-sv-arrow { margin-left: auto; font-size: 12px; color: var(--ksk-accent); }
.ksk-sv-links a:hover { background: #222225; }
.ksk-sv-links a:hover b { color: var(--ksk-accent); }

@media (max-width: 1100px) {
	.ksk-sv-card.is-main .ksk-sv-top { grid-template-columns: minmax(0, 1fr); }
	.ksk-sv-card.is-main .ksk-sv-info { padding: 0 24px 24px; }
	.ksk-sv-card.is-main .ksk-sv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ksk-sv-links { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
	.ksk-sv-top { grid-template-columns: minmax(0, 1fr); }
	.ksk-sv-placeholder { display: none; }
	.ksk-sv-media { padding: 0; }
	.ksk-sv-thumbs { display: flex; gap: 4px; padding: 0 6px 6px; overflow-x: auto; }
	.ksk-site .ksk-sv-thumbs button { flex: none; width: 64px; }
	.ksk-sv-info,
	.ksk-sv-card.is-main .ksk-sv-info { padding: 16px; gap: 10px; }
	.ksk-sv-info h2 { font-size: 26px; }
	.ksk-sv-card.is-main .ksk-sv-info h2 { font-size: 32px; }
	.ksk-sv-tiles,
	.ksk-sv-card.is-main .ksk-sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.ksk-sv-tile { padding: 10px 12px; }
	.ksk-sv-tile b { font-size: 22px; }
	.ksk-sv-specs summary { padding: 12px 16px; font-size: 16px; }
	.ksk-sv-specs dl { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
	.ksk-sv-specs dd { padding-top: 0; border-top: 0; }
}

/* Serverhardware: Bildansicht – Produktfotos mit weißem Hintergrund auf hellem Grund */

.ksk-ga-viewer-nav[hidden],
.ksk-ga-viewer-strip[hidden] { display: none !important; }
.ksk-sv-photo { cursor: zoom-in; }

/* =========================================================
   Partner & Links (Views/partner.php)
   ========================================================= */
.ksk-pa { display: flex; flex-direction: column; gap: 28px; }

.ksk-pa-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ksk-pa-card {
	display: flex;
	flex-direction: column;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	color: #e9e9e6;
	transition: transform .2s ease;
}

.ksk-pa-card:hover { transform: translateY(-3px); }
.ksk-pa-card:focus-visible { outline: 3px solid var(--ksk-accent); outline-offset: 2px; }

.ksk-pa-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 2 / 1;
	padding: 24px 32px;
	background: #ededeb; /* heller Grund: transparente Logos mit dunkler Schrift bleiben lesbar */
}

.ksk-pa-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform .3s ease;
}

.ksk-pa-card:hover .ksk-pa-logo img { transform: scale(1.04); }

.ksk-pa-initial {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 72px;
	line-height: 1;
	color: #b9b9b3;
}

.ksk-pa-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.ksk-pa-body strong {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-pa-card:hover .ksk-pa-body strong { color: var(--ksk-accent); }
.ksk-pa-text { font-size: 14px; line-height: 1.6; color: #c9c9c3; }
.ksk-pa-host { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ksk-accent); }
.ksk-pa-host i { margin-left: 4px; font-size: 11px; }

.ksk-pa-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 24px;
	background: var(--ksk-panel);
	text-align: center;
}

.ksk-pa-empty i { font-size: 48px; color: #3a3a3e; }
.ksk-pa-empty p { margin: 0; font-size: 17px; color: #a3a39d; }

.ksk-pa-join {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	padding: 26px 28px;
	background: var(--ksk-panel);
	border-left: 3px solid var(--ksk-accent);
}

.ksk-pa-join > div { flex: 1 1 420px; }

.ksk-pa-join h2 {
	margin: 0 0 8px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-pa-join p { margin: 0; font-size: 15px; line-height: 1.6; color: #c9c9c3; }
.ksk-pa-join-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ksk-pa-join-links a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: #222225; font-size: 14px; color: #e9e9e6; }
.ksk-pa-join-links a.is-main { background: var(--ksk-accent); color: #111; font-weight: 700; }
.ksk-pa-join-links a:hover { background: #fff; color: #111; }
.ksk-pa-join-links i { font-size: 10px; }

@media (max-width: 1100px) {
	.ksk-pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ksk-pa-grid { grid-template-columns: minmax(0, 1fr); }
	.ksk-pa-join { padding: 20px 18px; }
	.ksk-pa-join h2 { font-size: 24px; }
	.ksk-pa-join-links a { flex: 1 1 100%; justify-content: center; }
}

/* Gemeinsame Bildansicht (js/imageviewer.js): Bilder in Texten sind anklickbar */
.ksk-zoomable { cursor: zoom-in; }
.ksk-ga-viewer-count[hidden] { display: none; }

/* =========================================================
   Sponsoren (Views/sponsors.php) – Hinweis- und „Sponsor werden“-Kasten wie bei Partner (.ksk-pa-*)
   ========================================================= */
.ksk-sp { display: flex; flex-direction: column; gap: 24px; }

.ksk-sp-card {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-sp-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 32px;
	background: #ededeb; /* transparente Logos mit dunkler Schrift bleiben lesbar */
}

.ksk-sp-logo img {
	max-width: 100%;
	max-height: 180px;
	object-fit: contain;
	transition: transform .3s ease;
}

a.ksk-sp-logo:hover img { transform: scale(1.04); }

.ksk-sp-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 26px 28px;
}

.ksk-sp-body h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 38px;
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
}

.ksk-sp-host { font-size: 13px; letter-spacing: .08em; color: var(--ksk-accent); }
.ksk-sp-text { font-size: 15px; }

.ksk-sp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

.ksk-sp-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	background: #222225;
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-sp-links a.is-main {
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
}

.ksk-sp-links a.is-main i { font-size: 12px; }
.ksk-sp-links a.is-icon { width: 40px; padding: 0; font-size: 16px; }
.ksk-sp-links a:hover { background: #fff; color: #111; }

@media (max-width: 900px) {
	.ksk-sp-card { grid-template-columns: minmax(0, 1fr); }
	.ksk-sp-logo { min-height: 170px; }
}

@media (max-width: 640px) {
	.ksk-sp-body { padding: 18px 16px 20px; }
	.ksk-sp-body h2 { font-size: 30px; }
}

/* =========================================================
   Gameserver Stats (Views/serverstats.php)
   ========================================================= */
.ksk-gs { display: flex; flex-direction: column; gap: 22px; }

.ksk-gs-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}

.ksk-gs-filter { display: flex; flex-wrap: wrap; gap: 6px; }

.ksk-site .ksk-gs-filter button {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	margin: 0;
	padding: 0 14px;
	background: #222225;
	border: 0;
	font: inherit;
	font-size: 14px;
	text-transform: none;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-gs-filter button:hover { color: var(--ksk-accent); }
.ksk-site .ksk-gs-filter button.is-active { background: var(--ksk-accent); color: #111; font-weight: 700; }
.ksk-gs-dot { font-size: .6em; color: #6cc070; }
.ksk-gs-time { font-size: 13px; color: #8b8b85; }

.ksk-gs-group {
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
}

.ksk-gs-group[hidden],
.ksk-gs-server[hidden] { display: none; }

.ksk-gs-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 18px 24px 12px;
}

.ksk-gs-head h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-gs-head h2 span { margin-left: 6px; font-size: 22px; color: var(--ksk-accent); }
.ksk-gs-head small { font-size: 13px; color: #8b8b85; }

.ksk-gs-cols,
.ksk-gs-row {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) 190px 130px 120px 170px;
	align-items: center;
	gap: 16px;
	padding: 14px 24px;
}

.ksk-gs-cols {
	padding-top: 8px;
	padding-bottom: 8px;
	border-top: 1px solid #26262a;
	font-family: var(--ksk-display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-gs-server { border-top: 1px solid #26262a; }
.ksk-gs-server[open] { background: #141416; }

summary.ksk-gs-row { cursor: pointer; list-style: none; }
summary.ksk-gs-row::-webkit-details-marker { display: none; }
summary.ksk-gs-row:hover { background: #1c1c1f; }

.ksk-gs-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #222225;
	font-size: 22px;
	color: #3a3a3e;
}

.ksk-gs-img img { width: 100%; height: 100%; object-fit: cover; }

.ksk-gs-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ksk-gs-name strong { font-size: 16px; color: #fff; }
.ksk-gs-name small { overflow: hidden; font-size: 13px; color: #8b8b85; text-overflow: ellipsis; white-space: nowrap; }

.ksk-gs-addr { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ksk-gs-addr code { overflow: hidden; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #e9e9e6; text-overflow: ellipsis; white-space: nowrap; }
.ksk-gs-status { font-size: 12px; }
.ksk-gs-status i { font-size: .7em; vertical-align: middle; }
.ksk-gs-status.is-on { color: #6cc070; }
.ksk-gs-status.is-off { color: #e07a73; }
.ksk-gs-status.is-static { color: #8b8b85; }

.ksk-gs-map { overflow: hidden; font-size: 13px; color: #c9c9c3; text-overflow: ellipsis; white-space: nowrap; }

.ksk-gs-players { display: flex; flex-direction: column; gap: 5px; }
.ksk-gs-count { font-size: 14px; color: #8b8b85; }
.ksk-gs-count b { font-family: var(--ksk-display); font-weight: 800; font-size: 22px; color: #8b8b85; }
.ksk-gs-count.is-busy b { color: #fff; }
.ksk-gs-bar { display: block; height: 4px; background: #2a2a2d; }
.ksk-gs-bar span { display: block; height: 100%; background: var(--ksk-accent); }
.ksk-gs-max { font-size: 14px; color: #8b8b85; }
.ksk-gs-max b { color: #fff; }

.ksk-gs-action { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ksk-gs-arrow { width: 14px; font-size: 12px; color: var(--ksk-accent); transition: transform .2s; }
.ksk-gs-server[open] .ksk-gs-arrow { transform: rotate(180deg); }

.ksk-site .ksk-gs-btn {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	margin: 0;
	padding: 0 12px;
	background: transparent;
	border: 1px solid #3a3a3a;
	font: inherit;
	font-size: 13px;
	text-transform: none;
	white-space: nowrap;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-gs-btn:hover { border-color: var(--ksk-accent); color: var(--ksk-accent); }
.ksk-site .ksk-gs-btn.is-main { background: var(--ksk-accent); border-color: var(--ksk-accent); font-weight: 700; color: #111; }
.ksk-site .ksk-gs-btn.is-main:hover { background: #fff; border-color: #fff; color: #111; }
.ksk-site .ksk-gs-btn.is-done { background: #6cc070; border-color: #6cc070; color: #111; }

.ksk-gs-list { padding: 0 24px 16px 140px; }

.ksk-gs-list-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(2, 110px);
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid #26262a;
	font-size: 14px;
	color: #a3a39d;
}

.ksk-gs-list-row span:first-child { color: #fff; overflow-wrap: anywhere; }
.ksk-gs-list-row span:not(:first-child) { text-align: right; }

.ksk-gs-list-row.is-head {
	border-top: 0;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-gs-list-row.is-head span:first-child { color: var(--ksk-accent); }

@media (max-width: 1100px) {
	.ksk-gs-cols,
	.ksk-gs-row { grid-template-columns: 80px minmax(0, 1fr) 170px 110px 150px; }
	.ksk-gs-cols span:nth-child(4),
	.ksk-gs-map { display: none; }
	.ksk-gs-list { padding-left: 120px; }
}

@media (max-width: 760px) {
	.ksk-gs-cols { display: none; }
	.ksk-gs-head { padding: 14px 16px 10px; }
	.ksk-gs-row {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas: "img name players" "addr addr addr" "action action action";
		gap: 8px 12px;
		padding: 12px 16px;
	}
	.ksk-gs-img { grid-area: img; }
	.ksk-gs-name { grid-area: name; }
	.ksk-gs-name small { display: none; }
	.ksk-gs-players { grid-area: players; align-items: flex-end; }
	.ksk-gs-bar { width: 60px; }
	.ksk-gs-addr { grid-area: addr; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
	.ksk-gs-action { grid-area: action; justify-content: stretch; }
	.ksk-site .ksk-gs-btn { flex: 1; justify-content: center; }
	.ksk-gs-list { padding: 0 16px 14px; }
	.ksk-gs-list-row { grid-template-columns: minmax(0, 1fr) repeat(2, 72px); }
}

/* Forum: Sprung zur Kategorie aus den Brotkrümeln nicht unter der Kopfleiste verstecken */
.ksk-fo-cat { scroll-margin-top: 110px; }

/* Forum-Thema: Infozeile im Seitenkopf (Variante 1 „ruhiger“) */
.ksk-ph-meta .ksk-fo-meta-sub {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ksk-accent) !important;
}

.ksk-ph-meta .ksk-fo-meta-sub:hover { color: #fff !important; }

.ksk-fo-meta-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border: 1px solid currentColor;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ksk-fo-meta-tag.is-pinned { color: var(--ksk-accent); }
.ksk-fo-meta-tag.is-pinned i { transform: rotate(30deg); }
.ksk-fo-meta-tag.is-closed { color: #e07a73; }
.ksk-fo-meta-tag.is-archived { color: #a3a39d; }

.ksk-fo-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.ksk-fo-meta-item i { font-size: 13px; color: #6f6f6a; }
.ksk-gs-img:has(.fa-discord) { background: #5865f2; color: #fff; font-size: 26px; }
/* Gameserver: Knöpfe gleich breit und bündig, Pfeil-Platz auch ohne Spielerliste */
.ksk-site .ksk-gs-action .ksk-gs-btn { min-width: 136px; justify-content: center; }
.ksk-gs-arrow.is-empty { visibility: hidden; }
@media (max-width: 760px) {
	.ksk-site .ksk-gs-action .ksk-gs-btn { min-width: 0; }
	.ksk-gs-arrow.is-empty { display: none; }
}

/* Forum: Gelesen-Status (Libraries\ForumReads) – gelb gefüllt = neue Beiträge, sonst grau */
.ksk-fo-board-icon { color: #6f6f6a; transition: background .2s, color .2s; }
.ksk-fo-board-icon.is-new { background: var(--ksk-accent); color: #111; }
.ksk-fo-board:has(.is-new) .ksk-fo-board-name a { color: #fff; }
.ksk-fo-markread { margin: 0; }
.ksk-fo-new {
	display: inline-block;
	margin-right: 4px;
	padding: 1px 6px;
	background: var(--ksk-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	vertical-align: 2px;
	color: #111;
}
.ksk-fo-topic.is-new .ksk-fo-topic-title a { color: #fff; }
.ksk-fo-topic:not(.is-new) .ksk-fo-topic-title a { font-weight: 400; color: #d4d4ce; }
.ksk-site .ksk-fo button.ksk-fo-btn.is-ghost { background: transparent; border-color: #3a3a3a; color: #e9e9e6 !important; }
.ksk-site .ksk-fo button.ksk-fo-btn.is-ghost:hover { border-color: var(--ksk-accent); color: var(--ksk-accent) !important; }
.ksk-fo-markread .ksk-fo-btn { min-height: 40px; font-size: 16px; }

/* =========================================================
   TeamSpeak und Discord Viewer (Views/teamspeak_viewer.php, discord_viewer.php)
   ========================================================= */
.ksk-vw {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ksk-vw > .ksk-vw-error { grid-column: 1 / -1; }
.ksk-vw-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.ksk-vw-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 22px 22px;
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
}

.ksk-vw-box h2 {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.ksk-vw-box h2 span { margin-left: 6px; color: var(--ksk-accent); }

.ksk-vw-addr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 8px 8px 12px;
	background: var(--ksk-bg, #0f0f10);
	border: 1px solid #2c2c30;
}

.ksk-vw-addr code { overflow: hidden; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: #fff; text-overflow: ellipsis; white-space: nowrap; }

.ksk-site .ksk-vw-addr button,
.ksk-site .ksk-vw-more,
.ksk-site .ksk-vw-foot button {
	float: none;
	flex: none;
	margin: 0;
	padding: 4px 6px;
	background: none;
	border: 0;
	font: inherit;
	font-size: 13px;
	text-transform: none;
	color: #a3a39d;
	cursor: pointer;
}

.ksk-site .ksk-vw-addr button:hover,
.ksk-site .ksk-vw-more:hover,
.ksk-site .ksk-vw-foot button:hover { color: var(--ksk-accent); }
.ksk-site .ksk-vw-addr button.is-done { color: #6cc070; }
.ksk-site .ksk-vw-foot button { padding: 0; text-decoration: underline; }

.ksk-site .ksk-vw-nick input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	background: var(--ksk-bg, #0f0f10);
	border: 1px solid #3a3a3a;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	color: #fff;
}

.ksk-site .ksk-vw-nick input:focus { outline: 0; border-color: var(--ksk-accent); }

.ksk-vw-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 16px;
	background: var(--ksk-accent);
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 19px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111 !important;
}

.ksk-vw-btn:hover { background: #fff; }
.ksk-vw-btn.is-discord { background: #5865f2; color: #fff !important; }
.ksk-vw-btn.is-discord:hover { background: #6d78f5; }

.ksk-vw-hint { font-size: 12px; line-height: 1.5; color: #8b8b85; }
.ksk-vw-hint a { color: #c9c9c3; text-decoration: underline; }
.ksk-vw-empty { margin: 0; font-size: 14px; color: #8b8b85; }
.ksk-vw-error { margin: 0; padding: 18px 22px; background: var(--ksk-panel); border-left: 3px solid #e07a73; color: #c9c9c3; }

.ksk-vw-server { display: flex; align-items: center; gap: 12px; }
.ksk-vw-server > span:last-child { display: flex; flex-direction: column; }
.ksk-vw-server b { font-size: 16px; color: #fff; }
.ksk-vw-server small { font-size: 13px; color: #6cc070; }
.ksk-vw-server small i { font-size: .6em; vertical-align: middle; }
.ksk-vw-logo { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #5865f2; font-size: 26px; color: #fff; }

/* Personen */
.ksk-vw-avatar {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #3a3a3e;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 14px;
	color: #fff;
}

.ksk-vw-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.ksk-vw-avatar.has-dot::after {
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid var(--ksk-panel);
	background: #6cc070;
}

.ksk-vw-avatar.is-idle::after { background: #e0a84a; }
.ksk-vw-avatar.is-dnd::after { background: #e0453a; }

.ksk-vw-people { margin: 0; padding: 0; list-style: none; }

.ksk-vw-people li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #26262a;
}

.ksk-vw-people li[hidden] { display: none; }
.ksk-vw-people li > span:not(.ksk-vw-avatar) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ksk-vw-people b { overflow: hidden; font-size: 14px; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.ksk-vw-people small { font-size: 12px; color: #8b8b85; }

.ksk-vw-state { font-size: 12px; color: #8b8b85; }
.ksk-vw-state.is-talk { color: #6cc070; }
.ksk-vw-state.is-mute { color: #e07a73; }

/* Kanäle */
.ksk-vw-main { gap: 0; padding: 0; }

.ksk-vw-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 22px 12px;
	border-bottom: 1px solid #26262a;
}

.ksk-vw-head small { font-size: 13px; color: #8b8b85; }
.ksk-vw-toggle { display: flex; gap: 6px; }

.ksk-site .ksk-vw-toggle button {
	float: none;
	margin: 0;
	padding: 7px 12px;
	background: #222225;
	border: 0;
	font: inherit;
	font-size: 13px;
	text-transform: none;
	color: #e9e9e6;
	cursor: pointer;
}

.ksk-site .ksk-vw-toggle button.is-active { background: var(--ksk-accent); color: #111; font-weight: 700; }

.ksk-vw-sections { padding: 0 10px 12px; }

.ksk-vw-section h3 {
	margin: 0;
	padding: 16px 12px 6px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

.ksk-vw-tree,
.ksk-vw-users { margin: 0; padding: 0; list-style: none; }

.ksk-vw-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 8px calc(12px + var(--depth, 0) * 18px);
	border-top: 1px solid #222225;
	font-size: 14px;
	color: #a3a39d;
}

.ksk-vw-row > i { font-size: 12px; color: #6f6f6a; }
a.ksk-vw-row:hover { background: #1f1f22; color: #fff; }
.ksk-vw-name { min-width: 0; overflow-wrap: anywhere; }
.ksk-vw-channel.is-busy > .ksk-vw-row { background: #1c1c19; font-weight: 700; color: #fff; }
.ksk-vw-channel.is-busy > .ksk-vw-row > i { color: var(--ksk-accent); }

.ksk-vw-count {
	margin-left: auto;
	padding: 1px 8px;
	background: var(--ksk-accent);
	font-size: 12px;
	font-weight: 700;
	color: #111;
}

.ksk-vw-join { margin-left: auto; font-size: 12px; color: #4a4a4e; }
a.ksk-vw-row:hover .ksk-vw-join { color: var(--ksk-accent); }

.ksk-vw-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 12px 5px calc(34px + var(--depth, 0) * 18px);
	background: #1c1c19;
	font-size: 14px;
	color: #e9e9e6;
}

.ksk-vw-uname { min-width: 0; overflow-wrap: anywhere; }
.ksk-vw-uname small { font-size: 12px; color: #8b8b85; }
.ksk-vw-flags { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ksk-vw-flags img { width: 16px; height: 16px; }

/* Nur belegte Kanäle */
.only-busy .ksk-vw-channel:not(.is-busy),
.only-busy .ksk-vw-section:not(.is-busy) { display: none; }
.ksk-vw-main:not(.only-busy) [data-vw-note] { display: none; }

.ksk-vw-foot { margin: 0; padding: 12px 22px 16px; border-top: 1px solid #26262a; font-size: 13px; color: #8b8b85; }

@media (max-width: 960px) {
	.ksk-vw { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.ksk-vw-box { padding: 16px; }
	.ksk-vw-head { padding: 14px 16px 10px; }
	.ksk-vw-sections { padding: 0 4px 8px; }
}

/* ==========================================================================
   Shop (Views/shop/*) – Übersicht, Artikel, Warenkorb, Kasse, Bestellungen
   ========================================================================== */
.ksk-shop { display: flex; flex-direction: column; gap: 24px; }

.ksk-shop-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ksk-line); }
.ksk-shop-tabs a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-bottom: -1px;
	border-bottom: 3px solid transparent; font-size: 15px; font-weight: 700; color: var(--ksk-muted) !important;
}
.ksk-shop-tabs a:hover { color: #fff !important; }
.ksk-shop-tabs a[aria-current="page"] { border-bottom-color: var(--ksk-accent); color: #fff !important; }
.ksk-shop-tabs a.is-cart { margin-left: auto; }
.ksk-shop-badge { min-width: 22px; padding: 1px 7px; background: var(--ksk-accent); font-size: 12px; line-height: 18px; text-align: center; color: #111; }

.ksk-shop-notice {
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; padding: 14px 18px;
	background: color-mix(in srgb, var(--ksk-accent) 6%, var(--ksk-panel)); border: 1px solid color-mix(in srgb, var(--ksk-accent) 25%, transparent);
	font-size: 15px;
}
.ksk-shop-notice > i { color: var(--ksk-accent); }
.ksk-shop-notice .ksk-shop-btn { margin-left: auto; }
.ksk-shop-alert { margin: 0; }

/* Knöpfe */
.ksk-shop-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
	background: var(--ksk-accent); border: 0; cursor: pointer;
	font-family: var(--ksk-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #111 !important;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
	transition: filter .2s;
}
.ksk-shop-btn:hover { filter: brightness(1.08); }
.ksk-shop-btn:disabled { opacity: .5; cursor: not-allowed; }
.ksk-shop-btn.is-small { min-height: 40px; padding: 0 16px; font-size: 16px; }
.ksk-shop-btn.is-wide { width: 100%; }
.ksk-shop-btn.is-ghost { background: transparent; border: 1px solid #3a3a3a; color: var(--ksk-text) !important; clip-path: none; }
.ksk-shop-btn.is-ghost:hover { border-color: var(--ksk-accent); color: var(--ksk-accent) !important; }
.ksk-shop-btn.is-paypal { background: #ffc439; }
.ksk-shop-iconbtn {
	width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid #2c2c30; color: #8b8b85; cursor: pointer;
}
.ksk-shop-iconbtn:hover { border-color: var(--ksk-red); color: #fff; background: var(--ksk-red); }

/* Werkzeuge: Kategorien + Suche */
.ksk-shop-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.ksk-shop-tools .ksk-news-cats { margin: 0; }
.ksk-shop-tools .ksk-news-cats small { margin-left: 6px; font-size: 12px; color: #8b8b85; }
.ksk-shop-tools .ksk-news-cats a[aria-current="page"] small { color: #555; }
.ksk-shop-tools .ksk-news-search { flex: 0 1 300px; }

/* Raster und Karten */
.ksk-shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ksk-shop-card { display: flex; flex-direction: column; background: var(--ksk-panel); border: 1px solid #232326; color: var(--ksk-text) !important; transition: border-color .2s, transform .2s; }
.ksk-shop-card[hidden] { display: none; }
.ksk-shop-card:hover { border-color: color-mix(in srgb, var(--ksk-accent) 55%, transparent); transform: translateY(-2px); }
.ksk-shop-card-img {
	position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
	background: radial-gradient(circle at 50% 45%, #2a2a2c 0, var(--ksk-panel) 70%);
}
.ksk-shop-card-img img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; transition: opacity .3s, transform .3s; }
.ksk-shop-card-img > i { font-size: 48px; color: #3a3a3a; }
.ksk-shop-card-img img.is-back { opacity: 0; }
.ksk-shop-card:hover .ksk-shop-card-img.has-back img:not(.is-back) { opacity: 0; }
.ksk-shop-card:hover .ksk-shop-card-img.has-back img.is-back { opacity: 1; }
.ksk-shop-card:hover .ksk-shop-card-img:not(.has-back) img { transform: scale(1.04); }
.ksk-shop-card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid #232326; }
.ksk-shop-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ksk-muted); }
.ksk-shop-card-title { font-size: 16px; line-height: 1.3; color: #fff; }
.ksk-shop-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 4px; }
.ksk-shop-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.ksk-shop-sizes span { padding: 1px 6px; border: 1px solid #2c2c30; font-size: 11px; color: var(--ksk-muted); }
.ksk-shop-price { margin-left: auto; font-family: var(--ksk-display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--ksk-accent); white-space: nowrap; }
.ksk-shop-price.is-big { margin: 0; font-size: 48px; }
.ksk-shop-footnote { margin: 0; font-size: 13px; color: #8b8b85; }
.ksk-shop-none { margin: 0; }

/* Artikel */
.ksk-shop-product { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; align-items: start; }
.ksk-shop-gallery { display: flex; flex-direction: column; gap: 14px; }
.ksk-shop-stage {
	position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 45%, #2c2c2e 0, #151517 72%); border: 1px solid #232326;
}
.ksk-shop-stage > i { font-size: 80px; color: #3a3a3a; }
.ksk-shop-main { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.ksk-shop-main[hidden] { display: none; }
.ksk-shop-main img { width: 84%; height: 84%; object-fit: contain; }
.ksk-shop-zoom { position: absolute; right: 14px; top: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(15, 15, 16, .8); font-size: 13px; pointer-events: none; }
.ksk-shop-side { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; background: var(--ksk-accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #111; pointer-events: none; }
.ksk-shop-thumbs { display: flex; gap: 12px; }
.ksk-shop-thumbs button { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--ksk-panel); border: 1px solid #2c2c30; cursor: pointer; }
.ksk-shop-thumbs button.is-active { border: 2px solid var(--ksk-accent); }
.ksk-shop-thumbs img { width: 80px; height: 80px; object-fit: contain; }

.ksk-shop-buy {
	position: sticky; top: calc(var(--ksk-header) + 20px);
	display: flex; flex-direction: column; gap: 20px; padding: 26px 28px 28px;
	background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent);
}
.ksk-shop-pricebox { display: flex; flex-direction: column; gap: 6px; }
.ksk-shop-pricebox small { font-size: 13px; color: var(--ksk-muted); }
.ksk-shop-text { font-size: 15px; }
.ksk-shop-text > :first-child { margin-top: 0; }
.ksk-shop-text > :last-child { margin-bottom: 0; }
.ksk-shop-add { display: flex; flex-direction: column; gap: 18px; }
.ksk-shop-sizepick { margin: 0; padding: 0; border: 0; }
.ksk-shop-sizepick legend, .ksk-shop-sizeinfo > span:first-child {
	margin-bottom: 10px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ksk-muted);
}
.ksk-shop-sizeinfo { display: flex; flex-direction: column; }
.ksk-shop-sizepick > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ksk-shop-sizepick label { position: relative; }
.ksk-shop-sizepick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ksk-shop-sizepick span {
	min-width: 52px; height: 46px; padding: 0 12px; display: flex; align-items: center; justify-content: center;
	background: #141416; border: 1px solid #2c2c30; cursor: pointer;
	font-family: var(--ksk-display); font-weight: 800; font-size: 18px; color: #fff;
}
.ksk-shop-sizepick span:hover { border-color: var(--ksk-accent); }
.ksk-shop-sizepick input:checked + span { background: var(--ksk-accent); border-color: var(--ksk-accent); color: #111; }
.ksk-shop-sizepick input:focus-visible + span { outline: 2px solid var(--ksk-accent); outline-offset: 2px; }
.ksk-shop-addrow { display: flex; gap: 10px; align-items: stretch; }
.ksk-shop-addrow .ksk-shop-btn { flex: 1; }

.ksk-shop-qty { display: inline-flex; align-items: stretch; background: #141416; border: 1px solid #2c2c30; }
.ksk-shop-qty button { width: 40px; display: flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; color: var(--ksk-muted); font-size: 12px; cursor: pointer; }
.ksk-shop-qty button:hover { color: var(--ksk-accent); }
.ksk-shop-qty input {
	width: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; outline: 0; text-align: center;
	font-family: var(--ksk-display); font-weight: 800; font-size: 20px; color: #fff; -moz-appearance: textfield; appearance: textfield;
}
.ksk-shop-qty input::-webkit-outer-spin-button, .ksk-shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ksk-shop-qty:focus-within { border-color: var(--ksk-accent); }

.ksk-shop-facts { list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ksk-line); font-size: 14px; color: #c9c9c3; }
.ksk-shop-facts li { display: flex; gap: 12px; }
.ksk-shop-facts i { width: 18px; margin-top: 3px; text-align: center; color: var(--ksk-accent); }

.ksk-shop-related { margin-top: 32px; }
.ksk-shop-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ksk-shop-sechead h2 { margin: 0; font-family: var(--ksk-display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: #fff; }
.ksk-shop-sechead a { font-size: 14px; color: var(--ksk-muted) !important; }
.ksk-shop-sechead a:hover { color: var(--ksk-accent) !important; }

/* Schritte */
.ksk-shop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; counter-reset: none; }
.ksk-shop-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ksk-panel); color: #8b8b85; font-family: var(--ksk-display); font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.ksk-shop-step-no { font-size: 22px; }
.ksk-shop-steps li.is-done { background: #232326; color: #6cc070; }
.ksk-shop-steps li.is-done span:last-child { color: var(--ksk-text); }
.ksk-shop-steps li.is-current { background: var(--ksk-accent); color: #111; }

/* Kästen und Zweispalter */
.ksk-shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ksk-shop-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ksk-shop-box { background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent); min-width: 0; }
.ksk-shop-box h2, .ksk-shop-boxhead h2 { margin: 0; font-family: var(--ksk-display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: #fff; }
.ksk-shop-box h2 span { margin-left: 6px; color: var(--ksk-accent); }
.ksk-shop-boxhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 12px; }
.ksk-shop-boxhead small, .ksk-shop-boxhead a { font-size: 13px; color: #8b8b85 !important; }
.ksk-shop-boxhead a:hover { color: var(--ksk-accent) !important; }
.ksk-shop-boxfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--ksk-line); font-size: 14px; }
.ksk-shop-boxfoot a { color: var(--ksk-muted) !important; }
.ksk-shop-boxfoot a:hover { color: var(--ksk-accent) !important; }
.ksk-shop-boxfoot [hidden] { display: none; }

.ksk-shop-rows { list-style: none; margin: 0; padding: 0; }
.ksk-shop-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 120px 40px; gap: 18px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--ksk-line); }
.ksk-shop-row form { margin: 0; }
.ksk-shop-thumb { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; background: #141416; color: #3a3a3a !important; }
.ksk-shop-thumb img { width: 76px; height: 76px; object-fit: contain; }
.ksk-shop-row-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ksk-shop-row-name a { font-size: 16px; font-weight: 700; color: #fff !important; }
.ksk-shop-row-name a:hover { color: var(--ksk-accent) !important; }
.ksk-shop-row-name small { font-size: 13px; color: var(--ksk-muted); }
.ksk-shop-row-sum { text-align: right; font-family: var(--ksk-display); font-weight: 800; font-size: 22px; color: #fff; white-space: nowrap; }

.ksk-shop-sum { position: sticky; top: calc(var(--ksk-header) + 20px); display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px; }
.ksk-shop-totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; font-size: 15px; }
.ksk-shop-totals dd { padding-left: 12px; }
.ksk-shop-totals dt { color: #c9c9c3; }
.ksk-shop-totals dd { margin: 0; text-align: right; white-space: nowrap; }
.ksk-shop-totals .is-total { padding-top: 12px; border-top: 1px solid #2c2c30; font-family: var(--ksk-display); font-weight: 800; text-transform: uppercase; color: #fff; }
.ksk-shop-totals dt.is-total { font-size: 20px; align-self: end; }
.ksk-shop-totals dd.is-total { font-size: 30px; line-height: 1; color: var(--ksk-accent); }
.ksk-shop-totals .is-small { font-size: 12px; color: #8b8b85; }
.ksk-shop-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ksk-shop-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ksk-line); font-size: 14px; }
.ksk-shop-mini li span { display: flex; flex-direction: column; min-width: 0; }
.ksk-shop-mini small { font-size: 12px; color: var(--ksk-muted); }
.ksk-shop-mini b { white-space: nowrap; }
.ksk-shop-back { align-self: center; font-size: 14px; color: var(--ksk-muted) !important; }
.ksk-shop-back:hover { color: var(--ksk-accent) !important; }
.ksk-shop-hint { margin: 0; font-size: 13px; line-height: 1.5; color: #8b8b85; }
.ksk-shop-hint a, .ksk-shop-terms a { color: var(--ksk-accent) !important; text-decoration: underline; }

/* Formular (Kasse) */
.ksk-shop-form { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 24px; }
.ksk-shop-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ksk-shop-fields .is-full { grid-column: 1 / -1; }
.ksk-shop-fields textarea { min-height: 96px !important; }
.ksk-ju-field input[type="tel"],
.ksk-ju-field select {
	width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ksk-bg); border: 1px solid #3a3a3a; border-radius: 0;
	font: inherit; font-size: 15px; color: #fff;
}
.ksk-ju-field input[type="tel"]:focus, .ksk-ju-field select:focus { outline: none; border-color: var(--ksk-accent); box-shadow: 0 0 0 1px var(--ksk-accent); }
.ksk-shop-methods { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ksk-shop-methods label { position: relative; }
.ksk-shop-methods input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ksk-shop-methods span {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px;
	background: #141416; border: 1px solid #2c2c30; cursor: pointer; font-weight: 700; color: #fff;
}
.ksk-shop-methods span i { font-size: 20px; color: var(--ksk-muted); }
.ksk-shop-methods span:hover { border-color: var(--ksk-accent); }
.ksk-shop-methods input:checked + span { border-color: var(--ksk-accent); box-shadow: inset 0 0 0 1px var(--ksk-accent); background: color-mix(in srgb, var(--ksk-accent) 8%, #141416); }
.ksk-shop-methods input:checked + span i { color: var(--ksk-accent); }
.ksk-shop-methods input:focus-visible + span { outline: 2px solid var(--ksk-accent); outline-offset: 2px; }
.ksk-shop-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.ksk-shop-terms input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ksk-accent); }
.ksk-shop-pay p { margin: 0; }
.ksk-shop-pay .ksk-shop-btn { align-self: flex-start; }
.ksk-shop-ref { font-size: 14px; color: var(--ksk-muted); }
.ksk-shop-ref i { color: var(--ksk-accent); }
.ksk-shop-address { margin: 0; line-height: 1.6; }

/* Bestellungen */
.ksk-shop-orderlist { list-style: none; margin: 0; padding: 0; }
.ksk-shop-orderlist li { display: grid; grid-template-columns: 90px 110px minmax(0, 1fr) auto 120px 110px; gap: 18px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--ksk-line); font-size: 14px; }
.ksk-shop-order-no { font-family: var(--ksk-display); font-weight: 800; font-size: 20px; color: #fff !important; }
.ksk-shop-order-no:hover { color: var(--ksk-accent) !important; }
.ksk-shop-order-date, .ksk-shop-order-method { color: var(--ksk-muted); }
.ksk-shop-order-sum { text-align: right; font-family: var(--ksk-display); font-weight: 800; font-size: 20px; color: #fff; white-space: nowrap; }
.ksk-shop-order-link { text-align: right; color: var(--ksk-muted) !important; }
.ksk-shop-order-link:hover { color: var(--ksk-accent) !important; }
.ksk-shop-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ksk-shop-tag { padding: 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #111; }
.ksk-shop-tag.is-paid { background: #6cc070; }
.ksk-shop-tag.is-open { background: #e0a84a; }
.ksk-shop-tag.is-sent { background: var(--ksk-accent); }
.ksk-pagehead .ksk-ph-meta .ksk-shop-tags { margin-top: 4px; }

@media (max-width: 1100px) {
	.ksk-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ksk-shop-product { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
	.ksk-shop-orderlist li { grid-template-columns: 80px 100px minmax(0, 1fr) auto 110px; }
	.ksk-shop-order-method { display: none; }
}

@media (max-width: 900px) {
	.ksk-shop-product, .ksk-shop-layout { grid-template-columns: 1fr; }
	.ksk-shop-buy, .ksk-shop-sum { position: static; }
	.ksk-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 640px) {
	.ksk-shop-tools .ksk-news-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -24px; padding-right: 24px; }
	.ksk-shop-tools .ksk-news-cats a { flex: none; }
	.ksk-shop-tools .ksk-news-search { flex-basis: 100%; }
	.ksk-shop-card-body { padding: 10px 12px 12px; }
	.ksk-shop-card-title { font-size: 14px; }
	.ksk-shop-card .ksk-shop-sizes { display: none; }
	.ksk-shop-price { font-size: 20px; }
	.ksk-shop-price.is-big { font-size: 40px; }
	.ksk-shop-buy { padding: 20px; }
	.ksk-shop-steps li { flex-direction: column; gap: 2px; padding: 10px 6px; font-size: 13px; text-align: center; }
	.ksk-shop-steps li.is-done span:last-child, .ksk-shop-steps li:not(.is-current) span:last-child { color: inherit; }
	.ksk-shop-row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img name del" "img qty sum"; gap: 10px 14px; padding: 14px 16px; }
	.ksk-shop-row .ksk-shop-thumb { grid-area: img; width: 64px; height: 64px; }
	.ksk-shop-row .ksk-shop-thumb img { width: 56px; height: 56px; }
	.ksk-shop-row-name { grid-area: name; }
	.ksk-shop-row .ksk-shop-qty { grid-area: qty; justify-self: start; }
	.ksk-shop-row-sum { grid-area: sum; justify-self: end; font-size: 19px; }
	.ksk-shop-row form { grid-area: del; }
	.ksk-shop-fields { grid-template-columns: 1fr; }
	.ksk-shop-boxhead, .ksk-shop-boxfoot, .ksk-shop-form, .ksk-shop-sum { padding-left: 16px; padding-right: 16px; }
	.ksk-shop-orderlist li { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no date sum" "tags tags link"; gap: 8px 12px; padding: 12px 16px; }
	.ksk-shop-order-no { grid-area: no; }
	.ksk-shop-order-date { grid-area: date; }
	.ksk-shop-orderlist .ksk-shop-tags { grid-area: tags; }
	.ksk-shop-order-sum { grid-area: sum; }
	.ksk-shop-order-link { grid-area: link; }
	.ksk-shop-order-method { display: none; }
	.ksk-shop-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.ksk-shop-tabs a { flex: none; padding: 0 10px; font-size: 14px; }
	.ksk-shop-tabs a.is-cart { margin-left: 0; }
	.ksk-shop-addrow .ksk-shop-btn { padding: 0 14px; font-size: 17px; white-space: nowrap; }
	.ksk-shop-boxhead h2 { white-space: nowrap; }
	.ksk-shop-boxhead small { display: none; }
}

/* ==========================================================================
   Seite nicht gefunden (Views/not_found.php)
   ========================================================================== */
.ksk-nf { display: flex; flex-direction: column; gap: 40px; }
.ksk-nf-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px 40px; background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent); }
.ksk-nf-code {
	font-family: var(--ksk-display); font-weight: 800; font-size: 200px; line-height: .8; letter-spacing: .02em;
	color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ksk-accent) 60%, transparent); user-select: none;
}
.ksk-nf-code span { color: var(--ksk-accent); -webkit-text-stroke: 0; }
.ksk-nf-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ksk-nf-path { margin: 0; font-size: 15px; color: var(--ksk-muted); }
.ksk-nf-path code { display: inline-block; max-width: 100%; margin-top: 4px; padding: 2px 8px; background: var(--ksk-bg); border: 1px solid #2c2c30; font: 14px ui-monospace, Consolas, monospace; color: #fff; overflow-wrap: anywhere; }
.ksk-nf-search { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ksk-nf-search label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ksk-muted); }
.ksk-nf-search > div { position: relative; display: flex; gap: 8px; }
.ksk-nf-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ksk-muted); pointer-events: none; }
.ksk-nf-search input {
	flex: 1; min-width: 0; height: 52px; padding: 0 16px 0 42px; background: var(--ksk-bg); border: 1px solid #3a3a3a; border-radius: 0; outline: 0;
	font: 16px var(--ksk-body); color: #fff;
}
.ksk-nf-search input:focus { border-color: var(--ksk-accent); box-shadow: 0 0 0 1px var(--ksk-accent); }
.ksk-nf-search .ksk-shop-btn { min-height: 52px; }
.ksk-nf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ksk-nf-actions [hidden] { display: none; }

.ksk-nf-areas h2 { margin: 0 0 18px; font-family: var(--ksk-display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: #fff; }
.ksk-nf-areas > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ksk-nf-areas a {
	display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--ksk-panel); border: 1px solid #232326;
	color: var(--ksk-text) !important; transition: border-color .2s, transform .2s;
}
.ksk-nf-areas a:hover { border-color: color-mix(in srgb, var(--ksk-accent) 55%, transparent); transform: translateY(-2px); }
.ksk-nf-areas a > i:first-child { width: 28px; font-size: 22px; text-align: center; color: var(--ksk-accent); }
.ksk-nf-areas a span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ksk-nf-areas b { font-size: 16px; color: #fff; }
.ksk-nf-areas small { font-size: 13px; color: var(--ksk-muted); }
.ksk-nf-arrow { color: #55554f; transition: color .2s, transform .2s; }
.ksk-nf-areas a:hover .ksk-nf-arrow { color: var(--ksk-accent); transform: translateX(3px); }

@media (max-width: 900px) {
	.ksk-nf-box { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
	.ksk-nf-code { font-size: 130px; }
	.ksk-nf-areas > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.ksk-nf-box { padding: 24px 18px; }
	.ksk-nf-code { font-size: 96px; }
	.ksk-nf-search > div { flex-direction: column; }
	.ksk-nf-search input { flex: none; width: 100%; }
	.ksk-nf-search i { top: 26px; }
	.ksk-nf-search .ksk-shop-btn { width: 100%; }
	.ksk-nf-actions .ksk-shop-btn { flex: 1; }
	.ksk-nf-areas > div { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Registrieren (Views/register.php) – ergänzt den Abschnitt „Login“
   ========================================================================== */
.ksk-auth-intro { margin: 14px 0 0; font-size: 15px; color: var(--ksk-muted); }
.ksk-auth-field small { font-size: 13px; color: #8b8b85; }
.ksk-auth-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ksk-auth-pair .ksk-auth-field { min-width: 0; }
.ksk-auth-passhint { margin: -10px 0 0; font-size: 13px; color: #8b8b85; }
.ksk-auth-passhint.is-ok { color: #6fdc6f; }
.ksk-auth-passhint.is-bad { color: #f08a83; }
.ksk-auth-question { padding: 14px 16px 16px; background: var(--ksk-panel); border-left: 3px solid var(--ksk-accent); }
.ksk-auth-q { margin: -2px 0 2px; font-size: 16px; font-weight: 700; color: #fff; }
.ksk-auth-captcha { min-height: 78px; }
.ksk-auth-terms { margin: -6px 0 0; font-size: 13px; color: #8b8b85; }

.ksk-auth-perks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ksk-auth-perks li { display: flex; gap: 14px; align-items: flex-start; }
.ksk-auth-perks i { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(250, 255, 169, .12); color: var(--ksk-accent); font-size: 17px; }
.ksk-auth-perks span { display: flex; flex-direction: column; font-size: 14px; color: #c4c4be; }
.ksk-auth-perks b { font-size: 16px; color: #fff; }
.ksk-auth-register .ksk-auth-sub a { font-weight: 700; color: var(--ksk-accent) !important; }

.ksk-auth-closed { display: flex; gap: 14px; padding: 18px 20px; background: var(--ksk-panel); border-left: 3px solid var(--ksk-accent); }
.ksk-auth-closed > i { margin-top: 4px; color: var(--ksk-accent); }
.ksk-auth-closed .ksk-prose > :first-child { margin-top: 0; }
.ksk-auth-closed .ksk-prose > :last-child { margin-bottom: 0; }

.ksk-auth-done { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--ksk-panel); border-top: 3px solid #6fdc6f; }
.ksk-auth-done-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(111, 220, 111, .14); color: #6fdc6f; font-size: 24px; }
.ksk-auth-done p { margin: 0; font-size: 16px; line-height: 1.55; color: #fff; }
.ksk-auth-done small { font-size: 13px; color: #8b8b85; }

@media (max-width: 1023px) {
	.ksk-auth-register .ksk-auth-perks { display: none; }
}

@media (max-width: 480px) {
	.ksk-auth-pair { grid-template-columns: 1fr; }
	.ksk-auth-captcha { transform: scale(.92); transform-origin: left top; }
}

/* Konto-Seiten: Kennwort vergessen, neues Kennwort, E-Mail bestätigen, Abmelden (Ergänzung zu „Login“/„Registrieren“) */
.ksk-auth-done.is-error { border-top-color: var(--ksk-red); }
.ksk-auth-done.is-error .ksk-auth-done-icon { background: rgba(179, 38, 30, .2); color: #f08a83; }
.ksk-auth-done p { font-size: 15px; }
.ksk-auth-who { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--ksk-panel); border-left: 3px solid var(--ksk-accent); }
.ksk-auth-who-avatar { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ksk-accent); font-family: var(--ksk-display); font-weight: 800; font-size: 22px; color: #111; }
.ksk-auth-who span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ksk-auth-who small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ksk-muted); }
.ksk-auth-who b { font-size: 18px; color: #fff; overflow-wrap: anywhere; }
.ksk-auth-form > .ksk-auth-intro { margin: 0; }

/* ==========================================================================
   Suche über die ganze Website (Views/search/index.php)
   ========================================================================== */
.ksk-sr-page { display: flex; flex-direction: column; gap: 28px; }
.ksk-sr-form { position: relative; display: flex; gap: 10px; align-items: stretch; margin: 0; }
.ksk-sr-form > i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--ksk-muted); pointer-events: none; }
.ksk-sr-form input {
	flex: 1; min-width: 0; height: 60px; padding: 0 52px 0 52px; background: var(--ksk-panel); border: 1px solid #3a3a3a; border-radius: 0; outline: 0;
	font: 18px var(--ksk-body); color: #fff;
}
.ksk-sr-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ksk-sr-form input:focus { border-color: var(--ksk-accent); box-shadow: 0 0 0 1px var(--ksk-accent); }
.ksk-sr-clear { position: absolute; right: 150px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ksk-muted) !important; }
.ksk-sr-clear:hover { color: #fff !important; }
.ksk-sr-form .ksk-shop-btn { min-height: 60px; min-width: 130px; }

.ksk-sr-empty { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--ksk-panel); border-left: 3px solid var(--ksk-accent); }
.ksk-sr-empty > i { margin-top: 3px; font-size: 20px; color: var(--ksk-accent); }
.ksk-sr-empty b { font-size: 17px; color: #fff; }
.ksk-sr-empty p { margin: 4px 0 0; color: var(--ksk-muted); }

.ksk-sr-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ksk-sr-areas a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--ksk-panel); border: 1px solid #232326; color: var(--ksk-text) !important; transition: border-color .2s, transform .2s; }
.ksk-sr-areas a:hover { border-color: color-mix(in srgb, var(--ksk-accent) 55%, transparent); transform: translateY(-2px); }
.ksk-sr-areas a > i:first-child { width: 26px; font-size: 20px; text-align: center; color: var(--ksk-accent); }
.ksk-sr-areas b { flex: 1; font-size: 16px; color: #fff; }
.ksk-sr-arrow { color: #55554f; transition: color .2s, transform .2s; }
.ksk-sr-areas a:hover .ksk-sr-arrow { color: var(--ksk-accent); transform: translateX(3px); }

.ksk-sr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ksk-sr-layout.has-jump { grid-template-columns: 240px minmax(0, 1fr); }
.ksk-sr-jump { position: sticky; top: calc(var(--ksk-header) + 20px); display: flex; flex-direction: column; padding: 6px 0; background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent); }
.ksk-sr-jump a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 15px; font-weight: 700; color: var(--ksk-muted) !important; }
.ksk-sr-jump a:hover { background: #232326; color: #fff !important; }
.ksk-sr-jump i { width: 18px; text-align: center; color: var(--ksk-accent); }
.ksk-sr-jump span { flex: 1; }
.ksk-sr-jump small { min-width: 26px; padding: 1px 7px; background: #232326; font-size: 12px; text-align: center; color: var(--ksk-text); }

.ksk-sr-sections { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ksk-sr-box { background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent); scroll-margin-top: calc(var(--ksk-header) + 20px); }
.ksk-sr-boxhead { padding: 16px 22px 12px; }
.ksk-sr-boxhead h2 { margin: 0; font-family: var(--ksk-display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: #fff; }
.ksk-sr-boxhead h2 i { margin-right: 6px; font-size: 18px; color: var(--ksk-accent); }
.ksk-sr-boxhead h2 span { margin-left: 6px; color: var(--ksk-accent); }
.ksk-sr-list { list-style: none; margin: 0; padding: 0; }
.ksk-sr-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 22px; border-top: 1px solid var(--ksk-line); color: var(--ksk-text) !important; }
.ksk-sr-list a:hover { background: #1d1d20; }
.ksk-sr-list a:hover .ksk-sr-title { color: var(--ksk-accent); }
.ksk-sr-title { font-size: 17px; font-weight: 700; color: #fff; }
.ksk-sr-meta { font-size: 13px; color: var(--ksk-muted); }
.ksk-sr-snippet { font-size: 14px; line-height: 1.55; color: #c9c9c3; }
.ksk-sr-list mark { padding: 0 2px; background: color-mix(in srgb, var(--ksk-accent) 28%, transparent); color: #fff; }
.ksk-sr-more { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--ksk-line); font-size: 14px; font-weight: 700; color: var(--ksk-accent) !important; }

@media (max-width: 900px) {
	.ksk-sr-layout.has-jump { grid-template-columns: minmax(0, 1fr); }
	.ksk-sr-jump { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 0; scrollbar-width: none; }
	.ksk-sr-jump a { flex: none; padding: 10px 14px; }
	.ksk-sr-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.ksk-sr-form { flex-wrap: wrap; }
	.ksk-sr-form > i { top: 30px; }
	.ksk-sr-form input { flex: 1 1 100%; padding-right: 44px; }
	.ksk-sr-clear { right: 8px; top: 30px; }
	.ksk-sr-form .ksk-shop-btn { width: 100%; }
	.ksk-sr-areas { grid-template-columns: 1fr; }
	.ksk-sr-list a, .ksk-sr-boxhead, .ksk-sr-more { padding-left: 16px; padding-right: 16px; }
}

/* ==========================================================================
   Mein Profil / Profil bearbeiten (Views/profile_edit.php)
   ========================================================================== */
.ksk-pe { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.ksk-pe-side { position: sticky; top: calc(var(--ksk-header-h, var(--ksk-header)) + 20px); display: flex; flex-direction: column; gap: 16px; }
.ksk-pe-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px; background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent); text-align: center; }
.ksk-pe-card-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ksk-accent); background: #232326; }
.ksk-pe-card b { font-size: 18px; color: #fff; overflow-wrap: anywhere; }
.ksk-pe-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ksk-pe-badges span { padding: 2px 8px; background: #232326; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ksk-accent); }
.ksk-pe-badges .is-rank { background: var(--ksk-red); color: #fff; }
.ksk-pe-card a { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ksk-accent) !important; }
.ksk-pe-nav { display: flex; flex-direction: column; padding: 6px 0; background: var(--ksk-panel); }
.ksk-pe-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 15px; font-weight: 700; color: var(--ksk-muted) !important; }
.ksk-pe-nav a i { width: 18px; text-align: center; color: #6f6f6a; }
.ksk-pe-nav a:hover { background: #1f1f22; color: #fff !important; }
.ksk-pe-nav a.is-active { background: #232326; color: #fff !important; box-shadow: inset 3px 0 0 var(--ksk-accent); }
.ksk-pe-nav a.is-active i { color: var(--ksk-accent); }

.ksk-pe-main, .ksk-pe-form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ksk-pe-box { background: var(--ksk-panel); border-top: 3px solid var(--ksk-accent); scroll-margin-top: calc(var(--ksk-header-h, var(--ksk-header)) + 20px); min-width: 0; }
.ksk-pe-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 24px 4px; }
.ksk-pe-head h2 { margin: 0; font-family: var(--ksk-display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: #fff; }
.ksk-pe-head small { font-size: 13px; color: #8b8b85; }
.ksk-pe-body { display: flex; flex-direction: column; gap: 16px; padding: 14px 24px 24px; }
.ksk-pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ksk-pe-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ksk-pe-hint { display: flex; gap: 10px; margin: 0; font-size: 13px; line-height: 1.5; color: #8b8b85; }
.ksk-pe-hint i { margin-top: 3px; }
.ksk-pe-hint b { color: var(--ksk-text); }
.ksk-pe-stack { display: flex; flex-direction: column; gap: 16px; }
.ksk-pe-stack .ksk-shop-btn { align-self: flex-start; }

/* Eingaben mit Symbol (nutzt die Feldoptik von Join Us/Kontakt) */
.ksk-pe .ksk-ju-field input[type="password"],
.ksk-pe .ksk-ju-field input[type="number"] {
	width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ksk-bg); border: 1px solid #3a3a3a; border-radius: 0; font: inherit; font-size: 15px; color: #fff;
}
.ksk-pe .ksk-ju-field input[type="password"]:focus { outline: none; border-color: var(--ksk-accent); box-shadow: 0 0 0 1px var(--ksk-accent); }
.ksk-pe-ico { position: relative; display: block; }
.ksk-pe-ico > i, .ksk-pe-ico > .ksk-pe-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; text-align: center; color: var(--ksk-muted); pointer-events: none; }
.ksk-pe-ico > .ksk-pe-flag img { display: block; margin: 0 auto; }
.ksk-pe-ico input, .ksk-pe-ico select { padding-left: 44px !important; }
.ksk-pe .ksk-ju-field textarea { min-height: 120px; }
.ksk-pe-count { display: flex; justify-content: space-between; gap: 12px; }
.ksk-pe-kopf .ksk-kopfkachel { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 0; }
.ksk-pe-kopf .ksk-kopfkachel-item { border-radius: 0; border-color: #2c2c30; background: #141416; }
.ksk-pe-kopf .ksk-kopfkachel-item:has(input:checked) { border-color: var(--ksk-accent); }
.ksk-pe-kopf .ksk-kopfkachel-name { color: var(--ksk-muted); letter-spacing: 0; text-transform: none; font-size: 13px; }
.ksk-pe-kopf .ksk-kopfkachel-item:has(input:checked) .ksk-kopfkachel-name { color: #fff; }
.ksk-pe-kopf .ksk-kopfkachel-name i { color: var(--ksk-accent); }
.ksk-pe-kopf .ksk-kopfkachel-item:has(input:focus-visible) { outline-color: var(--ksk-accent); }

.ksk-pe-more { border-top: 1px solid var(--ksk-line); padding-top: 14px; }
.ksk-pe-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ksk-accent); list-style: none; }
.ksk-pe-more summary::-webkit-details-marker { display: none; }
.ksk-pe-more[open] summary { margin-bottom: 16px; }
.ksk-pe-more[open] summary i { transform: rotate(45deg); }
.ksk-pe-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--ksk-accent); }
.ksk-pe-link:hover { text-decoration: underline; }

/* Profilbild */
.ksk-pe-avatar { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.ksk-pe-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.ksk-pe-preview-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ksk-accent); background: #232326; }
.ksk-pe-preview-img[hidden] { display: none; }
.ksk-pe-preview-cap, .ksk-pe-preview-note { font-size: 12px; text-align: center; color: #8b8b85; }
.ksk-pe-crop { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ksk-pe-crop[hidden] { display: none; }
.ksk-pe-crop-stage { position: relative; width: 200px; height: 200px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 3px var(--ksk-accent); background: #0f0f10; cursor: grab; touch-action: none; }
.ksk-pe-crop-stage.is-dragging { cursor: grabbing; }
.ksk-pe-crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; }
.ksk-pe-crop-stage:focus-visible { outline: 2px solid var(--ksk-accent); outline-offset: 4px; }
.ksk-pe-zoom { display: flex; align-items: center; gap: 10px; width: 200px; color: var(--ksk-muted); }
.ksk-pe-zoom input { flex: 1; accent-color: var(--ksk-accent); }
.ksk-pe-avatar-forms { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ksk-pe-upload { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ksk-pe-upload .ksk-shop-btn { align-self: flex-start; }
.ksk-pe-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ksk-pe-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px;
	background: #141416; border: 2px dashed #3a3a3a; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.ksk-pe-drop:hover, .ksk-pe-drop.is-over { border-color: var(--ksk-accent); background: color-mix(in srgb, var(--ksk-accent) 5%, #141416); }
.ksk-pe-file:focus-visible + .ksk-pe-drop { outline: 2px solid var(--ksk-accent); outline-offset: 2px; }
.ksk-pe-drop > i { font-size: 30px; color: var(--ksk-accent); }
.ksk-pe-drop b { font-size: 16px; color: #fff; }
.ksk-pe-drop b u { color: var(--ksk-accent); }
.ksk-pe-drop .profile-file-name { font-size: 13px; color: var(--ksk-muted); }
.ksk-pe-drop.has-file .profile-file-name { font-weight: 700; color: #fff; }
.ksk-pe-drop small { font-size: 12px; color: #8b8b85; }
.ksk-pe-avatar-forms form[data-confirm] { margin: 0; }

/* Speichern-Leiste */
.ksk-pe-savebar {
	position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px;
	background: #232326; border-left: 3px solid #3a3a3a; box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.ksk-pe-savebar > span:first-child { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ksk-muted); }
.ksk-pe-savebar > span:first-child i { font-size: 8px; color: #55554f; }
.ksk-pe-savebar.is-dirty { border-left-color: var(--ksk-accent); }
.ksk-pe-savebar.is-dirty > span:first-child { color: #fff; }
.ksk-pe-savebar.is-dirty > span:first-child i { color: var(--ksk-accent); }
.ksk-pe-savebar-btns { display: flex; gap: 10px; }
.ksk-pe-savebar-btns [hidden] { display: none; }

/* Beitrag, Punkte, Tabellen */
.ksk-pe-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ksk-pe-tiles > div { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #141416; border-left: 3px solid #2c2c30; }
.ksk-pe-tiles small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ksk-muted); }
.ksk-pe-tiles b { font-family: var(--ksk-display); font-weight: 800; font-size: 28px; line-height: 1.05; color: #fff; }
.ksk-pe-tiles .is-ok { border-left-color: #6cc070; } .ksk-pe-tiles .is-ok b { color: #6cc070; }
.ksk-pe-tiles .is-warn { border-left-color: #e0a84a; } .ksk-pe-tiles .is-warn b { color: #e0a84a; }
.ksk-pe-tiles .is-bad { border-left-color: var(--ksk-red); } .ksk-pe-tiles .is-bad b { color: #f08a83; }
.ksk-pe-status { display: flex; gap: 10px; margin: 0; font-size: 15px; color: var(--ksk-text); }
.ksk-pe-status i { margin-top: 3px; color: var(--ksk-muted); }
.ksk-pe-status.is-ok i { color: #6cc070; } .ksk-pe-status.is-warn i { color: #e0a84a; } .ksk-pe-status.is-bad i { color: #f08a83; }
.ksk-pe-table { overflow-x: auto; }
.ksk-pe-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ksk-pe-table th { padding: 8px 10px 8px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; color: var(--ksk-muted); }
.ksk-pe-table td { padding: 9px 10px 9px 0; border-top: 1px solid var(--ksk-line); vertical-align: top; }
.ksk-pe-table .is-num { text-align: right; white-space: nowrap; padding-right: 18px; }
.ksk-pe-table .is-date { white-space: nowrap; color: var(--ksk-muted); }
.ksk-pe-table .is-plus { font-weight: 700; color: #6cc070; } .ksk-pe-table .is-minus { font-weight: 700; color: #f08a83; }
.ksk-pe-points { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.ksk-pe-points b { font-family: var(--ksk-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--ksk-accent); }
.ksk-pe-points span { font-size: 15px; color: var(--ksk-muted); }
.ksk-pe-progress { height: 8px; background: #232326; }
.ksk-pe-progress span { display: block; height: 100%; background: var(--ksk-accent); }

.ksk-pe-divider { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.ksk-pe-divider h2 { margin: 0; font-family: var(--ksk-display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: #fff; }
.ksk-pe-divider::after { content: ""; flex: 1; height: 1px; background: var(--ksk-line); }

.ksk-pe-current { margin: 0; font-size: 14px; color: var(--ksk-muted); overflow-wrap: anywhere; }
.ksk-pe-current b { color: #fff; }
.ksk-pe-pending { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: rgba(224, 168, 74, .1); border-left: 3px solid #e0a84a; font-size: 14px; }
.ksk-pe-pending p { margin: 0; }
.ksk-pe-pending form { margin: 0; }

@media (max-width: 1100px) {
	.ksk-pe { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
	.ksk-pe-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.ksk-pe { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.ksk-pe-side { top: var(--ksk-header-h, var(--ksk-header)); z-index: 30; margin: 0 -24px; }
	.ksk-pe-card { display: none; }
	.ksk-pe-nav { flex-direction: row; overflow-x: auto; padding: 8px 16px; gap: 8px; background: rgba(15, 15, 16, .96); border-bottom: 1px solid var(--ksk-line); scrollbar-width: none; }
	.ksk-pe-nav a { flex: none; padding: 8px 14px; background: var(--ksk-panel); font-size: 14px; }
	.ksk-pe-nav a.is-active { background: var(--ksk-accent); color: #111 !important; box-shadow: none; }
	.ksk-pe-nav a.is-active i { color: #111; }
	.ksk-pe-box { scroll-margin-top: calc(var(--ksk-header-h, var(--ksk-header)) + 70px); }
	.ksk-pe-avatar { grid-template-columns: 1fr; justify-items: center; }
	.ksk-pe-avatar-forms { width: 100%; }
}

@media (max-width: 640px) {
	.ksk-pe-head, .ksk-pe-body { padding-left: 16px; padding-right: 16px; }
	.ksk-pe-grid, .ksk-pe-grid.is-3 { grid-template-columns: 1fr; }
	.ksk-pe-tiles { grid-template-columns: 1fr; }
	.ksk-pe-savebar { flex-wrap: wrap; margin: 0 -24px; padding: 10px 16px; }
	.ksk-pe-savebar > span:first-child { flex: 1 1 100%; }
	.ksk-pe-savebar-btns { width: 100%; }
	.ksk-pe-savebar-btns .ksk-shop-btn { flex: 1; }
	.ksk-pe-drop { min-height: 120px; }
}
.ksk-pe .ksk-ju-field input, .ksk-pe .ksk-ju-field select, .ksk-pe .ksk-ju-field textarea { font-weight: 400; }
@media (max-width: 640px) {
	.ksk-pe-savebar:not(.is-dirty) > span:first-child { display: none; }
}
.ksk-pe-stack.is-security { gap: 24px; }

/* Unterzeile im Seitenkopf: keine einzelnen Wörter in der letzten Zeile (Chrome/Edge/Firefox) */
.ksk-pagehead .ksk-lead { text-wrap: pretty; }

/* =====================================================================
   Startseite: News mit Top-News, Shop-Auswahl, Partner & Sponsoren (Views/home.php)
   ===================================================================== */
.ksk-home-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ksk-accent);
}

/* ---- Top-News-Band direkt unter dem Slider ---- */
.ksk-topband {
	display: grid;
	grid-template-columns: auto 132px minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	min-height: 112px;
	margin-bottom: 24px; /* Luft zur Kennzahlen-Leiste darunter */
	padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px));
	background: var(--ksk-panel);
	border-top: 3px solid var(--ksk-accent);
	border-bottom: 1px solid #26262a;
	color: var(--ksk-text) !important;
	transition: background-color .2s;
}

.ksk-topband:hover {
	background: #1d1d20;
}

.ksk-topband-label {
	display: flex;
	align-items: center;
	gap: 10px;
	align-self: stretch;
	padding: 0 76px 0 max(24px, calc((100vw - 1240px) / 2 + 24px));
	background: var(--ksk-accent);
	color: #111;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
	/* gleicher Winkel wie der schwarze Keil in der Kopfzeile (46 px auf 76 px Höhe): 112 × 46 / 76 ≈ 68 px */
	clip-path: polygon(0 0, 100% 0, calc(100% - 68px) 100%, 0 100%);
}

.ksk-topband-img {
	display: block;
	width: 132px;
	height: 84px;
	margin: 14px 0;
	object-fit: cover;
	filter: brightness(.85);
}

.ksk-topband-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ksk-topband-meta {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ksk-muted);
}

.ksk-topband-meta b {
	color: var(--ksk-accent);
}

.ksk-topband-title {
	overflow: hidden;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1.05;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #fff;
}

.ksk-topband-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ksk-accent);
	white-space: nowrap;
}

.ksk-topband:hover .ksk-topband-more i {
	transform: translateX(4px);
	transition: transform .2s;
}

/* ---- Shop: drei Artikel + Karte „Alle Artikel“ ---- */
.ksk-home-shop-all {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	padding: 28px;
	background: var(--ksk-accent);
	color: #111 !important;
	font-size: 15px;
	line-height: 1.5;
	clip-path: polygon(0 0, calc(100% - var(--ksk-cut)) 0, 100% var(--ksk-cut), 100% 100%, 0 100%);
	transition: filter .2s, transform .2s;
}

.ksk-home-shop-all:hover {
	filter: brightness(.95);
	transform: translateY(-2px);
}

.ksk-home-shop-all-title {
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 40px;
	line-height: .95;
	text-transform: uppercase;
}

.ksk-home-shop-all-go {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ---- Partner & Sponsoren (Sponsoren-Slider) ---- */
.ksk-home-partner {
	margin-top: 88px;
	padding: 72px 0;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 80px), var(--ksk-bg-2);
	border-top: 1px solid #26262a;
	border-bottom: 1px solid #26262a;
}

.ksk-home-partner-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ksk-home-partner-count {
	margin-right: 8px;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 22px;
	color: var(--ksk-muted);
}

.ksk-home-partner-count b {
	color: var(--ksk-accent);
}

.ksk-home-partner-btn {
	width: 48px;
	height: 48px;
	border: 1px solid #3a3a3a;
	background: none;
	color: var(--ksk-text);
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}

.ksk-home-partner-btn:hover,
.ksk-home-partner-btn:focus-visible {
	border-color: var(--ksk-accent);
}

.ksk-home-partner-btn.is-next {
	border-color: var(--ksk-accent);
	background: var(--ksk-accent);
	color: #111;
}

.ksk-home-partner-slide {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	background: var(--ksk-bg);
	border: 1px solid #26262a;
}

.ksk-home-partner-slide[hidden] {
	display: none;
}

.ksk-home-partner-slide.is-active {
	animation: ksk-home-partner-in .35s ease;
}

@keyframes ksk-home-partner-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.ksk-home-partner-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ksk-panel-2);
}

.ksk-home-partner-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ksk-home-partner-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	padding: 40px;
}

.ksk-home-partner-body .ksk-home-kicker {
	margin: 0;
}

.ksk-home-partner-title {
	margin: 0;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 42px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
	text-wrap: balance;
}

.ksk-home-partner-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #c9c9c3;
}

.ksk-home-partner-body .ksk-btn {
	margin-top: 8px;
}

.ksk-home-partner-dots {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.ksk-home-partner-dot {
	width: 48px;
	height: 16px;
	padding: 6px 0;
	border: 0;
	background: #3a3a3a content-box;
	cursor: pointer;
}

.ksk-home-partner-dot.is-active {
	background-color: var(--ksk-accent);
}

@media (max-width: 1279px) {
	.ksk-home-partner-slide {
		grid-template-columns: minmax(0, 1fr);
	}

	.ksk-topband {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.ksk-topband-img {
		display: none;
	}
}

@media (max-width: 640px) {
	.ksk-topband {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0 14px;
		min-height: 0;
		margin-bottom: 16px;
		padding: 12px 16px 14px;
	}

	.ksk-topband-label {
		grid-column: 1 / -1;
		justify-self: start;
		margin: -12px 0 10px -16px;
		padding: 8px 32px 8px 16px;
		font-size: 15px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); /* 33 × 46 / 76 ≈ 20 px */
	}

	.ksk-topband-title {
		font-size: 22px;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.ksk-topband-more {
		font-size: 0;
		gap: 0;
	}

	.ksk-topband-more i {
		font-size: 20px;
	}

	/* zwei Spalten: nur zwei Artikel, darunter „Alle Artikel“ über die volle Breite */
	.ksk-home-shop .ksk-shop-card:nth-of-type(3) {
		display: none;
	}

	.ksk-home-shop-all {
		grid-column: 1 / -1;
		padding: 22px;
	}

	.ksk-home-shop-all-title {
		font-size: 30px;
	}

	.ksk-home-partner {
		margin-top: 64px;
		padding: 48px 0;
	}

	.ksk-home-partner-nav .ksk-home-partner-count {
		display: none;
	}

	.ksk-home-partner-body {
		padding: 20px;
	}

	.ksk-home-partner-title {
		font-size: 28px;
	}
}

/* Eingebettete Inhalte in Texten: Hinweis mit Knopf, iframe lädt erst nach Klick (Libraries\PageTokens::embedConsent) */
.ksk-embed {
	position: relative;
	display: block;
	max-width: 100%;
	min-height: 220px;
	margin: 1em 0;
	background: #111;
}

.ksk-embed iframe {
	display: block;
	max-width: 100%;
	border: 0;
}

.ksk-embed:not(.is-loaded) iframe {
	visibility: hidden;
}

.ksk-embed.is-loaded .ksk-embed-consent {
	display: none;
}

.ksk-embed-consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 10%;
	text-align: center;
	color: #c9c9c3;
}

.ksk-embed-consent p {
	max-width: 520px;
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

.ksk-embed-consent a {
	color: #fff;
	text-decoration: underline;
}

.ksk-site .ksk-embed-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	background: var(--ksk-accent);
	color: #111;
	font-family: var(--ksk-display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ==========================================================================
   Zwei-Faktor-Anmeldung (Mein Profil → #zwei-faktor, login/zwei-faktor)
   ========================================================================== */
.ksk-tf-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: #232326; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8b8b85; }
.ksk-tf-state.is-on { background: var(--ksk-accent); color: #111; }
.ksk-pe-hint.is-warn { color: var(--ksk-accent); }
.ksk-tf h3 { margin: 0 0 8px; font-family: var(--ksk-display); font-weight: 800; font-size: 19px; text-transform: uppercase; color: #fff; }
.ksk-tf-codes { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #141416; border: 1px dashed var(--ksk-accent); }
.ksk-tf-codes p { margin: 0; font-size: 14px; color: var(--ksk-accent); }
.ksk-tf-codes ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding-left: 24px; color: #6f6f6a; }
.ksk-tf-codes code { font-size: 17px; letter-spacing: .08em; color: #fff; }
.ksk-tf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ksk-tf-actions .is-done { border-color: var(--ksk-accent); color: var(--ksk-accent) !important; }
.ksk-tf-devices ul { display: flex; flex-direction: column; margin: 0 0 10px; padding: 0; list-style: none; }
.ksk-tf-devices li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ksk-line); }
.ksk-tf-devices li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ksk-tf-devices b { color: #fff; }
.ksk-tf-devices em { font-style: normal; font-size: 12px; color: var(--ksk-accent); }
.ksk-tf-devices small { font-size: 13px; color: #8b8b85; }
.ksk-tf-devices form { margin: 0; }
.ksk-tf-steps { display: flex; flex-direction: column; gap: 18px; margin: 0; padding-left: 22px; color: var(--ksk-text); }
.ksk-tf-steps li::marker { font-family: var(--ksk-display); font-weight: 800; color: var(--ksk-accent); }
.ksk-tf-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 12px; }
.ksk-tf-qr-img { width: 200px; max-width: 100%; padding: 0; background: #fff; }
.ksk-tf-qr-img svg { display: block; width: 100%; height: auto; }
.ksk-tf-qr > div:last-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ksk-tf-qr small { font-size: 13px; color: #8b8b85; }
.ksk-tf-secret { display: block; padding: 10px 12px; background: #141416; border: 1px solid #3a3a3a; font-size: 16px; letter-spacing: .08em; color: #fff; overflow-wrap: anywhere; user-select: all; }
.ksk-tf-confirm { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ksk-pe .ksk-tf-code, .ksk-auth-field .ksk-auth-code { min-height: 48px; padding: 10px 14px; background: var(--ksk-bg); border: 1px solid #3a3a3a; border-radius: 0; font: inherit; font-size: 22px; letter-spacing: .3em; color: #fff; }
.ksk-pe .ksk-tf-code { width: 180px; }
.ksk-pe .ksk-tf-code:focus { outline: none; border-color: var(--ksk-accent); box-shadow: 0 0 0 1px var(--ksk-accent); }
.ksk-auth-field .ksk-auth-code { text-align: center; }
@media (max-width: 560px) {
	.ksk-tf-codes ol { grid-template-columns: 1fr; }
	.ksk-tf-qr-img { width: 100%; max-width: 240px; }
}
