/*
 * Teufelskerle Süd – Stile, die theme.json nicht abdeckt.
 *
 * Gestaltungsidee „Stammtisch-Sticker“: dicke schwarze Kontur wie im Wappen,
 * harter Schatten wie bei einem Aufkleber, Fraktur nur als Akzent.
 */

:root {
	--tkt-rot: var(--wp--preset--color--rot, #E3001B);
	--tkt-teufelsrot: var(--wp--preset--color--teufelsrot, #B21622);
	--tkt-schwarz: var(--wp--preset--color--schwarz, #111);
	--tkt-papier: var(--wp--preset--color--papier, #F4F1EE);
	--tkt-mass: var(--wp--preset--color--mass, #FAF046);
	--tkt-text: var(--wp--preset--color--text, #3B3431);
	--tkt-leise: var(--wp--preset--color--text-leise, #4A4441);
	--tkt-linie: var(--wp--preset--color--linie, #D9D2CC);
	--tkt-kontur: 3px solid var(--tkt-schwarz);
	--tkt-radius: 18px;
	--tkt-schatten: 6px 6px 0 var(--tkt-schwarz);
	--tkt-breite: 1200px;
	--tkt-rand: clamp(16px, 4vw, 24px);
	--tkt-luft: clamp(56px, 8vw, 96px);
}

body { margin: 0; }

/* Abschnitte stoßen ohne Lücke aneinander. */
.wp-site-blocks > * + *,
.tkt-main > * + * { margin-block-start: 0; }

.wp-site-blocks { padding: 0; }

:where(.tkt-inner) {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--tkt-breite) + 2 * var(--tkt-rand));
	margin-inline: auto !important;
	padding-inline: var(--tkt-rand);
}

.tkt-abschnitt { position: relative; padding-block: var(--tkt-luft); }
.tkt-abschnitt--rot { background: var(--tkt-rot); color: #fff; }
.tkt-abschnitt--schwarz { background: var(--tkt-schwarz); color: #fff; }
.tkt-abschnitt--papier { background: var(--tkt-papier); }
.tkt-abschnitt--kontur { border-block: var(--tkt-kontur); }

.tkt-abschnitt--rot a:not(.wp-element-button),
.tkt-abschnitt--schwarz a:not(.wp-element-button):not(.tkt-spiel__knopf) { color: #fff; }

/* Überschriften und Fraktur-Akzent */
.tkt-kicker {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraktur);
	font-size: clamp(1.6rem, 3vw, 2rem);
	line-height: 1.1;
	color: var(--tkt-rot);
}

.tkt-abschnitt--schwarz .tkt-kicker { color: var(--tkt-mass); }
.tkt-abschnitt--rot .tkt-kicker { color: #fff; }

.tkt-abschnitt h2 { margin-block: 0.25em 0; }

.tkt-leise { color: var(--tkt-text); }
.tkt-abschnitt--schwarz .tkt-leise { color: #CFC8C3; }

.tkt-pfeil a,
a.tkt-pfeil { font-weight: 800; text-decoration: none; }

/* Knöpfe: Varianten zu theme.json */
.wp-element-button { transition: transform .12s ease, box-shadow .12s ease; }
.wp-element-button:hover { transform: translate(-1px, -1px); }
.wp-element-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--tkt-schwarz) !important; }

.wp-block-button.is-style-weiss .wp-block-button__link {
	background: #fff;
	color: var(--tkt-schwarz);
}

.wp-block-button.is-style-umriss .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: #fff;
	box-shadow: none;
}

.wp-block-button.is-style-schwarz .wp-block-button__link {
	background: var(--tkt-schwarz);
	color: #fff;
	box-shadow: 5px 5px 0 var(--tkt-rot);
}

.tkt-knopf {
	display: inline-block;
	padding: .75rem 1.5rem;
	border: var(--tkt-kontur);
	border-radius: 12px;
	background: var(--tkt-rot);
	color: #fff;
	font: 800 1rem/1.2 var(--wp--preset--font-family--inter);
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
	cursor: pointer;
	text-decoration: none;
}

.tkt-knopf:hover { background: var(--tkt-teufelsrot); color: #fff; }

/* Sticker-Flächen */
.tkt-sticker {
	box-sizing: border-box;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: var(--tkt-schatten);
	padding: clamp(20px, 3vw, 28px);
	background: #fff;
	color: var(--tkt-schwarz);
}

/* ---------- Kopfzeile ---------- */
.tkt-kopf {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: var(--tkt-kontur);
}

.tkt-kopf__inner { padding-block: 10px; gap: 12px; }

.tkt-marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.tkt-kopf .tkt-marke__wappen { width: 60px !important; height: 60px !important; max-width: none; display: block; }
.tkt-kopf .tkt-marke__schriftzug { height: 22px !important; width: auto !important; max-width: none; display: block; }

/* Hauptmenü (Design › Menüs, Ort „primary-menu“) */
.tkt-kopf__inner { flex-wrap: nowrap !important; align-items: center; }

.tkt-hauptmenue { position: relative; font-weight: 700; font-size: 15px; }

.tkt-hauptmenue ul { list-style: none; margin: 0; padding: 0; }

.tkt-hauptmenue__liste { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 4px; }

.tkt-hauptmenue__liste > li { position: relative; }

.tkt-hauptmenue a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 10px;
	border-radius: 10px;
	color: var(--tkt-schwarz);
	text-decoration: none;
	white-space: nowrap;
}

.tkt-hauptmenue a:hover,
.tkt-hauptmenue a:focus-visible { color: var(--tkt-rot); }

.tkt-hauptmenue a:focus-visible { outline: 3px solid var(--tkt-rot); outline-offset: 1px; }

.tkt-hauptmenue__liste > .current-menu-item > a,
.tkt-hauptmenue__liste > .current-menu-ancestor > a,
.tkt-hauptmenue__liste > .current_page_item > a { box-shadow: inset 0 -4px 0 var(--tkt-rot); border-radius: 0; }

/* Pfeil an Punkten mit Untermenü */
.tkt-hauptmenue__liste > .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -4px 2px 0 2px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s ease;
}

.tkt-hauptmenue .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 220px;
	padding: 8px;
	background: #fff;
	border: var(--tkt-kontur);
	border-radius: 14px;
	box-shadow: 5px 5px 0 var(--tkt-schwarz);
	visibility: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}

.tkt-hauptmenue .sub-menu a { padding: 9px 12px; font-weight: 600; }
.tkt-hauptmenue .sub-menu a:hover { background: var(--tkt-papier); color: var(--tkt-rot); }
.tkt-hauptmenue .sub-menu .current-menu-item > a { background: var(--tkt-papier); color: var(--tkt-rot); }

.tkt-hauptmenue__liste > li:hover > .sub-menu,
.tkt-hauptmenue__liste > li:focus-within > .sub-menu,
.tkt-hauptmenue__liste > li.ist-offen > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

/* Die letzten Punkte klappen nach links auf, damit nichts aus dem Bild ragt. */
.tkt-hauptmenue__liste > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }

/* Login-Eintrag (kommt aus einem Code-Snippet der Website) */
.tkt-hauptmenue .tks-login-item > a,
.tkt-hauptmenue .tkt-hauptmenue__anmelden > a {
	margin-left: 6px;
	padding: 8px 14px;
	border: var(--tkt-kontur);
	border-radius: 10px;
	background: var(--tkt-rot);
	color: #fff;
	font-weight: 800;
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
}

.tkt-hauptmenue .tks-login-item > a:hover,
.tkt-hauptmenue .tks-login-item > a:focus-visible,
.tkt-hauptmenue .tkt-hauptmenue__anmelden > a:hover { background: var(--tkt-teufelsrot); color: #fff; }

.tkt-hauptmenue .tks-login-item > a::after { border-color: #fff; }
.tkt-hauptmenue .tks-login-item svg { flex: none; }

.tkt-hauptmenue .tks-login-form { padding: 6px; }
.tkt-hauptmenue .tks-login-item .sub-menu { min-width: 250px; }
.tkt-hauptmenue .tks-login-form form p { margin: 0 0 10px; }
.tkt-hauptmenue .tks-login-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }

.tkt-hauptmenue .tks-login-form input[type="text"],
.tkt-hauptmenue .tks-login-form input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	padding: 9px 11px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 8px;
	font: 400 15px/1.3 var(--wp--preset--font-family--inter);
}

.tkt-hauptmenue .tks-login-form input[type="submit"] {
	width: 100%;
	padding: 10px 14px;
	border: var(--tkt-kontur);
	border-radius: 10px;
	background: var(--tkt-rot);
	color: #fff;
	font: 800 15px/1.2 var(--wp--preset--font-family--inter);
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
	cursor: pointer;
}

/* Menü-Knopf: nur auf kleinen Bildschirmen */
.tkt-hauptmenue__knopf {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border: var(--tkt-kontur);
	border-radius: 10px;
	background: #fff;
	color: var(--tkt-schwarz);
	font: 800 15px/1 var(--wp--preset--font-family--inter);
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
	cursor: pointer;
}

.tkt-hauptmenue__striche,
.tkt-hauptmenue__striche::before,
.tkt-hauptmenue__striche::after {
	display: block;
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .15s ease, opacity .15s ease;
}

.tkt-hauptmenue__striche { position: relative; }
.tkt-hauptmenue__striche::before,
.tkt-hauptmenue__striche::after { content: ""; position: absolute; left: 0; }
.tkt-hauptmenue__striche::before { top: -6px; }
.tkt-hauptmenue__striche::after { top: 6px; }

.tkt-hauptmenue.ist-offen .tkt-hauptmenue__striche { background: transparent; }
.tkt-hauptmenue.ist-offen .tkt-hauptmenue__striche::before { transform: translateY(6px) rotate(45deg); }
.tkt-hauptmenue.ist-offen .tkt-hauptmenue__striche::after { transform: translateY(-6px) rotate(-45deg); }

/* Schmale Desktops: Schriftzug kleiner bzw. nur das Wappen, damit das Menü
   einzeilig bleibt (angemeldet stehen bis zu acht Punkte nebeneinander). */
@media (min-width: 1024px) and (max-width: 1359px) {
	.tkt-kopf .tkt-marke__schriftzug { height: 16px !important; }
	.tkt-hauptmenue a { padding-inline: 8px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.tkt-kopf .tkt-marke__schriftzug { display: none; }
}

@media (max-width: 1023px) {
	.tkt-kopf { position: sticky; top: 0; }
	.admin-bar .tkt-kopf { top: var(--wp-admin--admin-bar--height, 0px); }

	.tkt-hauptmenue { position: static; }
	.tkt-hauptmenue--js .tkt-hauptmenue__knopf { display: inline-flex; }

	.tkt-hauptmenue__liste {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 10px var(--tkt-rand) 18px;
	}

	.tkt-hauptmenue--js .tkt-hauptmenue__liste {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: calc(100vh - 90px);
		overflow-y: auto;
		background: #fff;
		border-bottom: var(--tkt-kontur);
		box-shadow: 0 8px 0 rgba(17, 17, 17, .12);
	}

	.tkt-hauptmenue.ist-offen .tkt-hauptmenue__liste { display: flex; }

	.tkt-hauptmenue a { padding: 13px 10px; font-size: 17px; white-space: normal; }
	.tkt-hauptmenue__liste > li + li { border-top: 1px solid var(--tkt-linie); }
	.tkt-hauptmenue__liste > .current-menu-item > a,
	.tkt-hauptmenue__liste > .current-menu-ancestor > a,
	.tkt-hauptmenue__liste > .current_page_item > a { box-shadow: inset 4px 0 0 var(--tkt-rot); padding-left: 16px; }
	.tkt-hauptmenue__liste > .menu-item-has-children > a { justify-content: space-between; }
	.tkt-hauptmenue__liste > li.ist-offen > a::after { transform: rotate(-135deg); }

	.tkt-hauptmenue .sub-menu,
	.tkt-hauptmenue__liste > li:nth-last-child(-n+2) > .sub-menu {
		position: static;
		min-width: 0;
		margin: 0 0 10px;
		padding: 4px;
		border: 0;
		border-left: 4px solid var(--tkt-rot);
		border-radius: 0;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}

	.tkt-hauptmenue--js .sub-menu { display: none; }
	.tkt-hauptmenue--js .ist-offen > .sub-menu { display: block; }

	.tkt-hauptmenue .tks-login-item > a,
	.tkt-hauptmenue .tkt-hauptmenue__anmelden > a { margin: 10px 0 0; justify-content: center; }
	.tkt-hauptmenue__liste > li.tks-login-item,
	.tkt-hauptmenue__liste > li.tkt-hauptmenue__anmelden { border-top: 0; }
	.tkt-hauptmenue .tks-login-item .sub-menu { margin-top: 10px; }
}

@media (max-width: 599px) {
	.tkt-hauptmenue__knopf { padding: 11px 10px; }
	.tkt-hauptmenue__wort {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (max-width: 599px) {
	.tkt-kopf .tkt-marke__wappen { width: 48px !important; height: 48px !important; }
	.tkt-kopf .tkt-marke__schriftzug { height: 16px !important; }
}

/* ---------- Startseite: Kopfbereich ---------- */
.tkt-hero { overflow: hidden; padding-block: clamp(48px, 7vw, 72px) clamp(170px, 19vw, 260px); }

.tkt-hero {
	background: var(--tkt-rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 260' preserveAspectRatio='none'%3E%3Cpath d='M-10 270 L-10 150 L110 80 L190 130 L320 30 L420 120 L540 60 L640 115 L780 10 L910 110 L1020 55 L1130 125 L1260 40 L1450 140 L1450 270 Z' fill='%23B21622' stroke='%23111' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M320 30 L355 63 L335 58 L318 72 L300 52 Z M780 10 L823 50 L800 46 L782 62 L760 44 Z M1260 40 L1296 72 L1276 68 L1258 82 L1238 62 Z' fill='%23fff' stroke='%23111' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M-10 270 L-10 205 L150 150 L290 200 L440 135 L610 195 L770 130 L920 190 L1090 140 L1250 195 L1450 150 L1450 270 Z' fill='%23111'/%3E%3C/svg%3E") center bottom / 100% clamp(130px, 16vw, 230px) no-repeat;
}

.tkt-titelband {
	background: var(--tkt-rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 130' preserveAspectRatio='none'%3E%3Cpath d='M-10 140 L-10 80 L160 40 L300 75 L450 20 L600 70 L760 15 L910 65 L1080 30 L1250 72 L1450 35 L1450 140 Z' fill='%23B21622' stroke='%23111' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M450 20 L522 44 L500 38 L470 50 L440 40 L384 44 Z M760 15 L832 39 L808 33 L778 45 L746 35 L690 39 Z M1080 30 L1161 50 L1130 44 L1094 55 L1050 44 L983 50 Z' fill='%23fff' stroke='%23111' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M-10 140 L-10 110 L200 85 L380 112 L560 80 L760 110 L960 82 L1160 112 L1450 88 L1450 140 Z' fill='%23111'/%3E%3C/svg%3E") center bottom / 100% clamp(70px, 9vw, 120px) no-repeat;
}

.tkt-hero .tkt-inner { position: relative; z-index: 1; }

.tkt-hero__spalten { align-items: center !important; gap: 32px 48px !important; }

.tkt-hero__titel {
	margin: 0;
	font-size: clamp(3.4rem, 8.5vw, 6.75rem) !important;
	line-height: .9 !important;
	text-transform: uppercase;
	text-shadow: 5px 5px 0 var(--tkt-schwarz);
	color: #fff;
}

.tkt-hero__zusatz {
	margin: -.1em 0 0 !important;
	font-family: var(--wp--preset--font-family--fraktur);
	font-size: clamp(3.4rem, 8vw, 6.25rem);
	line-height: .95;
	text-shadow: 5px 5px 0 var(--tkt-schwarz);
}

.tkt-hero__text { max-width: 34em; font-size: 1.1875rem; line-height: 1.55; }

.tkt-wappen { margin: 0 auto; max-width: 440px; }

.tkt-wappen img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
	background: #fff;
	padding: 10px;
	border: 4px solid var(--tkt-schwarz);
	box-shadow: 10px 10px 0 var(--tkt-schwarz);
	transform: rotate(-6deg);
}

/* ---------- Kartenservice und Kennzahlen ---------- */
.tkt-kennzahlen-band { padding-block: 44px 48px; }

.tkt-spiel {
	position: relative;
	margin: -108px 0 44px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	padding: 22px 26px;
	background: #fff;
	color: var(--tkt-schwarz);
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: 8px 8px 0 var(--tkt-rot);
}

.tkt-spiel__marke {
	background: var(--tkt-mass);
	border: var(--tkt-kontur);
	border-radius: 999px;
	padding: 6px 14px;
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.tkt-spiel__text { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tkt-spiel__paarung { font-family: var(--wp--preset--font-family--rubik); font-weight: 900; font-size: 1.375rem; line-height: 1.2; }
.tkt-spiel__angaben, .tkt-spiel__status { color: var(--tkt-leise); font-size: 15px; }
.tkt-spiel__status { font-weight: 700; }

.tkt-spiel__knopf {
	background: var(--tkt-rot);
	color: #fff !important;
	text-decoration: none;
	font-weight: 800;
	padding: 12px 22px;
	border: var(--tkt-kontur);
	border-radius: 12px;
	white-space: nowrap;
}

.tkt-spiel__knopf:hover { background: var(--tkt-teufelsrot); }

.tkt-zahl { white-space: nowrap; margin: 0; font-family: var(--wp--preset--font-family--rubik); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; }
.tkt-zahl-text { margin: 8px 0 0 !important; color: #CFC8C3; font-size: 15px; }

/* ---------- Karten (Angebote) ---------- */
.tkt-zweispaltig { gap: 48px !important; }

.tkt-karte {
	box-sizing: border-box;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: var(--tkt-schatten);
	padding: 24px;
	background: #fff;
}

.tkt-karte > * { margin-block: 0; }
.tkt-karte > * + * { margin-block-start: 10px; }
.tkt-karte h3 { font-size: 1.4rem; }
.tkt-karte p { font-size: 15px; line-height: 1.55; color: var(--tkt-text); }

.tkt-karte::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border: var(--tkt-kontur);
	border-radius: 50%;
	box-sizing: border-box;
	background: var(--tkt-mass) var(--tkt-icon, none) center / 26px no-repeat;
}

.tkt-karte--ticket { --tkt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v4a2 2 0 0 0 0 4v4H4v-4a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 6v12' stroke-dasharray='2 2'/%3E%3C/svg%3E"); }
.tkt-karte--bus { --tkt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='14' rx='2'/%3E%3Cpath d='M4 10h16'/%3E%3Ccircle cx='8' cy='19.5' r='1.5'/%3E%3Ccircle cx='16' cy='19.5' r='1.5'/%3E%3C/svg%3E"); }
.tkt-karte--tv { --tkt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.tkt-karte--presse { --tkt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h12v14H6a1 1 0 0 1-1-1z'/%3E%3Cpath d='M17 9h2v9a1 1 0 0 1-2 0M8 9h6M8 12h6M8 15h4'/%3E%3C/svg%3E"); }
.tkt-karte--shirt { --tkt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4 3 7l2 4 2-1v10h10V10l2 1 2-4-5-3a4 4 0 0 1-8 0z'/%3E%3C/svg%3E"); }
.tkt-karte--ohne::before { display: none; }

.tkt-box {
	box-sizing: border-box;
	margin-top: 10px !important;
	padding: 20px;
	background: var(--tkt-papier);
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
}

.tkt-box > * { margin-block: 0; }
.tkt-box > * + * { margin-block-start: 8px; }

/* ---------- Beiträge ---------- */
.tkt-preis {
	box-sizing: border-box;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: var(--tkt-schatten);
	padding: 28px;
	background: #fff;
}

.tkt-preis > * { margin-block: 0; }
.tkt-preis > * + * { margin-block-start: 10px; }
.tkt-preis__name { font-weight: 800; font-size: 1.0625rem; }
.tkt-preis__betrag { white-space: nowrap; font-family: var(--wp--preset--font-family--rubik); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.375rem); line-height: 1; }
.tkt-preis__betrag small { font: 600 1rem var(--wp--preset--font-family--inter); }
.tkt-preis__text { font-size: 15px; color: var(--tkt-leise); }

.tkt-preis--rot { background: var(--tkt-rot); color: #fff; }
.tkt-preis--rot .tkt-preis__text { color: #fff; }

/* ---------- Treffpunkt, Galerie ---------- */
.tkt-platzhalter {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 340px;
	border: 3px dashed #6E6662;
	border-radius: var(--tkt-radius);
	color: #A49C97;
	font-size: 15px;
	text-align: center;
	padding: 24px;
}

.tkt-treffpunkt-bild { margin: 0; }
.tkt-treffpunkt-bild img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 3px solid #fff;
	border-radius: var(--tkt-radius);
	box-shadow: 8px 8px 0 var(--tkt-rot);
}

.tkt-kopfzeile-zeile { justify-content: space-between; align-items: flex-end; gap: 16px; }

.tkt-galerie > * {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	background: var(--tkt-papier);
}

.tkt-galerie .wp-block-image { position: relative; }
.tkt-galerie .wp-block-image a { display: block; height: 100%; }
.tkt-galerie img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .25s ease; }
.tkt-galerie .wp-block-image:hover img { transform: scale(1.04); }
.tkt-galerie figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	margin: 0;
	padding: 4px 10px;
	background: var(--tkt-schwarz);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	border-radius: 8px;
	pointer-events: none;
}
.tkt-galerie .tkt-platzhalter { min-height: 0; border-style: solid; color: var(--tkt-leise); }

/* ---------- Soziales ---------- */
.tkt-spenden {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	border-top: var(--tkt-kontur);
}

.tkt-spenden li {
	display: block;
	overflow: hidden;
	padding: 15px 0;
	border-bottom: 1px solid var(--tkt-linie);
	font-weight: 600;
}

.tkt-spenden li:last-child { border-bottom: var(--tkt-kontur); }
.tkt-spenden li em { font-style: normal; font-weight: 400; color: var(--tkt-leise); }
.tkt-spenden li strong { float: right; margin-left: 24px; font-family: var(--wp--preset--font-family--rubik); font-weight: 900; font-size: 1.25rem; }

.tkt-konto {
	box-sizing: border-box;
	background: var(--tkt-mass);
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: 8px 8px 0 var(--tkt-schwarz);
	padding: 28px;
}

.tkt-konto > * { margin-block: 0; }
.tkt-konto > * + * { margin-block-start: 12px; }
.tkt-konto h3 { font-size: 1.75rem; }
.tkt-konto__daten { font-size: 15px; line-height: 1.9; }

/* ---------- Kontaktformular ---------- */
.tkt-formular {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	padding: clamp(20px, 3vw, 28px);
	background: #fff;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: 8px 8px 0 var(--tkt-schwarz);
}

.tkt-formular__feld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.tkt-formular__feld--breit, .tkt-formular__fuss, .tkt-formular__meldung { grid-column: 1 / -1; }

.tkt-formular input, .tkt-formular textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 10px;
	font: 400 16px/1.4 var(--wp--preset--font-family--inter);
	background: #fff;
}

.tkt-formular input:focus, .tkt-formular textarea:focus { outline: 3px solid var(--tkt-mass); outline-offset: 1px; }
.tkt-formular textarea { resize: vertical; }

.tkt-formular__fuss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.tkt-formular__hinweis { font-size: 13px; color: var(--tkt-leise); }

.tkt-formular__falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tkt-formular__meldung { margin: 0; padding: 12px 16px; border: var(--tkt-kontur); border-radius: 12px; font-weight: 700; }
.tkt-formular__meldung--ok { background: var(--tkt-mass); }
.tkt-formular__meldung--fehler { background: #FFE1E1; }

/* ---------- Titelband für Unterseiten ---------- */
.tkt-titelband { overflow: hidden; padding-block: clamp(40px, 6vw, 64px) clamp(90px, 10vw, 130px); }
.tkt-titelband h1 { color: #fff; text-shadow: 4px 4px 0 var(--tkt-schwarz); margin: 0; }

.tkt-seiteninhalt { padding-block: var(--tkt-luft); }

/* ---------- Fußzeile ---------- */
.tkt-fuss { background: var(--tkt-rot); color: #fff; border-top: var(--tkt-kontur); }

.tkt-fuss::before {
	content: "";
	display: block;
	height: 18px;
	border-bottom: var(--tkt-kontur);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='18'%3E%3Crect width='20' height='18' fill='%23fff'/%3E%3Cpolygon points='10,0 20,9 10,18 0,9' fill='%231C8AD0'/%3E%3C/svg%3E") left top / 20px 18px repeat-x;
}

.tkt-fuss__inner { padding-block: 40px; justify-content: space-between; align-items: center; gap: 24px; }
.tkt-fuss__marke { display: flex; align-items: center; gap: 18px; max-width: 100%; }

.tkt-fuss .tkt-fuss__wappen {
	box-sizing: border-box;
	width: 88px !important;
	height: 88px !important;
	display: block;
	border-radius: 50%;
	background: #fff;
	padding: 4px;
	border: 3px solid var(--tkt-schwarz);
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
}

.tkt-fuss__marke > div { min-width: 0; }
.tkt-fuss .tkt-fuss__schriftzug { width: 362px !important; max-width: 100%; height: auto !important; display: block; margin-bottom: 10px; }
.tkt-fuss__claim { font-size: 14px; margin: 0; }

.tkt-fuss__links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tkt-fuss__links a { display: inline-block; padding: 12px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.tkt-fuss__links a:hover { text-decoration: underline; color: #fff; }

/* ---------- Handy ---------- */
@media (max-width: 781px) {
	.tkt-hero { padding-bottom: 150px; }
	.tkt-wappen { max-width: 280px; }
	.tkt-spiel { margin-top: -96px; }
	.tkt-spiel__knopf { width: 100%; text-align: center; box-sizing: border-box; }
	.tkt-fuss__inner { flex-direction: column; align-items: flex-start !important; }
	.tkt-fuss__marke { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	.wp-element-button { transition: none; }
}

/* Kurze Seiten: Fußzeile bleibt unten. */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .tkt-main { flex: 1 0 auto; }

/* ---------- Mitgliederkarte ---------- */
.tkt-karte-mitglieder { margin: 0; }
.wp-site-blocks .is-layout-constrained > .tkt-karte-mitglieder { max-width: var(--wp--style--global--wide-size, 1200px); }

.tkt-karte-mitglieder__karte {
	display: block;
	width: 100%;
	height: auto;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: var(--tkt-schatten);
	background: #DCEAF2;
}

.tkt-karte-mitglieder__karte { box-sizing: border-box; overflow: hidden; }
.tkt-karte-mitglieder__karte > svg { display: block; width: 100%; height: auto; }

.tkt-karte-mitglieder__karte.ist-interaktiv {
	height: clamp(420px, 68vh, 680px);
	background: #CFE3F0;
	font-family: var(--wp--preset--font-family--inter);
}

.tkt-karte-mitglieder__tipp { display: block; margin-top: 2px; font-weight: 400; font-size: 15px; color: var(--tkt-leise); }

/* Grundkarte: Beschriftungen */
.tkt-mk-ort,
.tkt-mk-land,
.tkt-mk-region { pointer-events: none; white-space: nowrap; }

.tkt-mk-ort { position: relative; }
.tkt-mk-ort i {
	position: absolute;
	left: -3px;
	top: -3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #5A504A;
}
.tkt-mk-ort span {
	position: absolute;
	left: 6px;
	top: -8px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: #3B3431;
	text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.tkt-mk-ort--gross i { width: 8px; height: 8px; left: -4px; top: -4px; background: var(--tkt-schwarz); border: 1.5px solid #fff; box-sizing: content-box; }
.tkt-mk-ort--gross span { font-size: 13.5px; font-weight: 800; color: var(--tkt-schwarz); top: -9px; left: 8px; }
.tkt-mk-ort--links span { left: auto; right: 6px; }
.tkt-mk-ort--gross.tkt-mk-ort--links span { left: auto; right: 8px; }
.tkt-mk-ort--oben span,
.tkt-mk-ort--unten span { left: 0; transform: translateX(-50%); }
.tkt-mk-ort--gross.tkt-mk-ort--oben span { left: 0; top: -26px; }
.tkt-mk-ort--gross.tkt-mk-ort--unten span { left: 0; top: 7px; }

.tkt-mk-land span,
.tkt-mk-region span {
	position: absolute;
	transform: translate(-50%, -50%);
	text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
.tkt-mk-land span { font: 800 14px/1 var(--wp--preset--font-family--rubik); letter-spacing: .14em; text-transform: uppercase; color: #8C7F76; }
.tkt-mk-region span { font-size: 12px; font-style: italic; letter-spacing: .04em; color: #7A6E66; }

/* Mitglieder: Punkte und gebündelte Punkte */
.tkt-mk-punkt span {
	display: block;
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	border: 3px solid var(--tkt-schwarz);
	border-radius: 50%;
	background: var(--tkt-rot);
	box-shadow: 2px 2px 0 var(--tkt-schwarz);
	transition: transform .12s ease;
}
.tkt-mk-punkt:hover span,
.tkt-mk-punkt:focus span { transform: scale(1.2); background: var(--tkt-mass); }

.leaflet-marker-icon.tkt-mk-haufen {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	border: 3px solid var(--tkt-schwarz);
	border-radius: 50%;
	background: var(--tkt-rot);
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
	color: #fff;
	font: 900 15px/1 var(--wp--preset--font-family--rubik);
	transition: transform .12s ease;
}
.tkt-mk-haufen:hover { transform: scale(1.08); background: var(--tkt-teufelsrot); }

.tkt-karte-mitglieder .leaflet-popup-content-wrapper {
	border: var(--tkt-kontur);
	border-radius: 12px;
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
}
.tkt-karte-mitglieder .leaflet-popup-content { margin: 10px 14px; font: 400 15px/1.35 var(--wp--preset--font-family--inter); color: var(--tkt-schwarz); }
.tkt-karte-mitglieder .leaflet-popup-content strong { font-weight: 800; }
.tkt-karte-mitglieder .leaflet-popup-content span { color: var(--tkt-leise); font-size: 14px; }
.tkt-karte-mitglieder .leaflet-popup-tip { border: 0; box-shadow: none; }

/* Bedienelemente */
.tkt-karte-mitglieder .leaflet-bar { border: var(--tkt-kontur); border-radius: 10px; box-shadow: 3px 3px 0 var(--tkt-schwarz); }
.tkt-karte-mitglieder .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; color: var(--tkt-schwarz); font-weight: 700; }
.tkt-karte-mitglieder .leaflet-bar a:hover { background: var(--tkt-papier); color: var(--tkt-rot); }

.tkt-mk-zurueck {
	width: 40px;
	height: 40px;
	border: var(--tkt-kontur);
	border-radius: 10px;
	background: #fff;
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
	color: var(--tkt-schwarz);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.tkt-mk-zurueck:hover { background: var(--tkt-papier); color: var(--tkt-rot); }

.tkt-karte-mitglieder .leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .85); }
.tkt-karte-mitglieder .leaflet-container a { color: inherit; }

.tkt-karte-mitglieder__punkte circle { fill: var(--tkt-rot); stroke: var(--tkt-schwarz); stroke-width: 2.5; }
.tkt-karte-mitglieder__punkte circle:hover { fill: var(--tkt-mass); }
.tkt-karte-mitglieder figcaption { margin-top: 14px; font-weight: 700; }

/* ---------- Inhaltsseiten ---------- */
.tkt-seiteninhalt h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: 2em; }
.tkt-seiteninhalt .tkt-kicker + h2 { margin-top: .2em; }
.tkt-seiteninhalt .tkt-karte h3 { margin-top: 0; }
.tkt-seiteninhalt .tkt-karte p { font-size: 16px; }
/* Vereinsinformationen: Ämter und Spielregeln */
.tkt-aemter {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
	gap: 16px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tkt-aemter li { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tkt-aemter__amt {
	color: var(--tkt-rot);
	font: 800 12px/1.3 var(--wp--preset--font-family--rubik);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tkt-aemter__name { color: var(--tkt-schwarz); font-size: 17px; font-weight: 700; }

ol.tkt-spielregeln {
	counter-reset: regel;
	margin: 1.5em 0 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
	background: #fff;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: var(--tkt-schatten);
}
ol.tkt-spielregeln > li {
	position: relative;
	counter-increment: regel;
	margin: 0;
	padding: 18px 24px 18px 84px;
	border-top: 2px solid var(--tkt-linie);
}
ol.tkt-spielregeln > li:first-child { border-top: 0; }
ol.tkt-spielregeln > li:nth-child(even) { background: var(--tkt-papier); }
ol.tkt-spielregeln > li::before {
	content: "§ " counter(regel);
	position: absolute;
	top: 17px;
	left: 22px;
	color: var(--tkt-rot);
	font: 900 20px/1.2 var(--wp--preset--font-family--rubik);
}
.tkt-spielregeln > li > br { display: none; }
.tkt-spielregeln ul { margin: .6em 0 .2em; padding-left: 1.2em; }
.tkt-spielregeln ul li { margin: .35em 0; }
.tkt-spielregeln ul li::marker { color: var(--tkt-rot); }
.tkt-stand { margin-top: 1em; color: var(--tkt-leise); font-size: .9em; }

@media (max-width: 600px) {
	ol.tkt-spielregeln > li { padding: 16px 18px; }
	ol.tkt-spielregeln > li::before { position: static; display: block; margin-bottom: 4px; }
}

/* =====================================================================
 * Plugin-Seiten im Theme-Look
 *
 * Mitgliederliste-Plugin (Wrapper .tks: Aufnahmeantrag, Meine Daten,
 * Mitgliederliste) und Kartenverteilung (.kvt-schedule, .kvt-my-season).
 * Das Theme gestaltet hier nur die Klassen der Plugins und vergibt sie nie
 * selbst. „.wp-site-blocks“ vorne hebt die Regeln über die Plugin-Stile,
 * egal in welcher Reihenfolge die Dateien geladen werden.
 * =================================================================== */

/* ---------- Mitgliederliste-Plugin ---------- */
.wp-site-blocks .tks {
	--tks-akzent: var(--tkt-teufelsrot);
	--tks-logo: var(--tkt-rot);
	--tks-hell: var(--tkt-papier);
	--tks-rand: var(--tkt-linie);
	font-size: 16px;
	line-height: 1.5;
	color: var(--tkt-text);
}

/* Die Mitgliederliste ist eine breite Tabelle: mehr Platz als Fließtext. */
.wp-site-blocks .is-layout-constrained > .tks:has(.tks-tabelle--liste) { max-width: var(--wp--style--global--wide-size, 1200px); }

.wp-site-blocks .tks .tks-hinweis { color: var(--tkt-leise); font-size: 0.92em; }

/* Abschnitte als Aufkleber-Karten, die Überschrift als schwarzes Etikett */
.wp-site-blocks .tks fieldset.tks-abschnitt {
	box-sizing: border-box;
	min-width: 0;
	margin: 0 0 32px;
	padding: 18px clamp(16px, 3vw, 28px) 22px;
	background: #fff;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: var(--tkt-schatten);
}

.wp-site-blocks .tks fieldset.tks-abschnitt > legend {
	margin-left: -4px;
	padding: 5px 14px;
	border-radius: 8px;
	background: var(--tkt-schwarz);
	color: #fff;
	font: 800 15px/1.2 var(--wp--preset--font-family--rubik);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.wp-site-blocks .tks .tks-feld { grid-template-columns: 210px minmax(0, 1fr); gap: 6px 16px; margin: 0 0 14px; }
.wp-site-blocks .tks .tks-feld__label { font-weight: 700; color: var(--tkt-schwarz); }
.wp-site-blocks .tks .tks-pflicht { color: var(--tkt-rot); }
.wp-site-blocks .tks .tks-feld__hilfe { color: var(--tkt-leise); font-size: .9em; }

.wp-site-blocks .tks input[type="text"],
.wp-site-blocks .tks input[type="email"],
.wp-site-blocks .tks input[type="tel"],
.wp-site-blocks .tks input[type="number"],
.wp-site-blocks .tks input[type="date"],
.wp-site-blocks .tks input[type="search"],
.wp-site-blocks .tks input[type="password"],
.wp-site-blocks .tks select,
.wp-site-blocks .tks textarea {
	box-sizing: border-box;
	min-height: 46px;
	padding: 10px 13px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 10px;
	background: #fff;
	color: var(--tkt-schwarz);
	font: 400 16px/1.3 var(--wp--preset--font-family--inter);
	transition: box-shadow .12s ease;
}

.wp-site-blocks .tks .tks-feld input:not([type="checkbox"]):not([type="radio"]),
.wp-site-blocks .tks .tks-feld select,
.wp-site-blocks .tks .tks-feld textarea { max-width: 460px; }

.wp-site-blocks .tks .tks-feld input[maxlength="2"] { width: 5em; }

.wp-site-blocks .tks input:focus,
.wp-site-blocks .tks select:focus,
.wp-site-blocks .tks textarea:focus {
	outline: none;
	box-shadow: 4px 4px 0 var(--tkt-rot);
}

.wp-site-blocks .tks input[type="checkbox"],
.wp-site-blocks .tks input[type="radio"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--tkt-rot);
}

/* Ankreuzfelder: Kästchen und Text nebeneinander, der Text bricht sauber um */
.wp-site-blocks .tks .tks-feld--flag > label,
.wp-site-blocks .tks .tks-filter-flags label {
	position: relative;
	display: inline-block;
	padding-left: 30px;
	cursor: pointer;
}

.wp-site-blocks .tks .tks-feld--flag > label > input[type="checkbox"],
.wp-site-blocks .tks .tks-filter-flags label > input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 1px;
}

.wp-site-blocks .tks .tks-feld--flag .tks-feld__hilfe { margin-left: 30px; }

/* Beitragsart: Auswahlknöpfe als Kacheln, die gewählte in Maßgelb */
.wp-site-blocks .tks fieldset.tks-feld--radio > legend { float: none; margin-bottom: 8px; }
.wp-site-blocks .tks fieldset.tks-feld--radio { display: block; }
.wp-site-blocks .tks .tks-feld--radio > div { display: grid; gap: 10px; }
.wp-site-blocks .tks .tks-feld--radio br { display: none; }

.wp-site-blocks .tks .tks-feld--radio > div > label {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px 16px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 12px;
	background: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background .12s ease, box-shadow .12s ease;
}

.wp-site-blocks .tks .tks-feld--radio > div > label:hover { background: var(--tkt-papier); }

.wp-site-blocks .tks .tks-feld--radio > div > label:has(input:checked) {
	background: var(--tkt-mass);
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
}

/* Aufnahmeantrag: freiwillige Angaben als Gruppen mit Ankreuz-Kacheln */
.wp-site-blocks .tks .tks-abschnitt--freiwillig > .tks-hinweis { margin: 4px 0 6px; }
.wp-site-blocks .tks .tks-gruppe { margin: 22px 0 0; padding: 0; background: none; border-radius: 0; }
.wp-site-blocks .tks .tks-gruppe + .tks-gruppe { padding-top: 20px; border-top: 2px dashed var(--tkt-linie); }
.wp-site-blocks .tks .tks-gruppe__titel {
	margin: 0 0 12px;
	color: var(--tkt-rot);
	font: 800 14px/1.3 var(--wp--preset--font-family--rubik);
	letter-spacing: .05em;
	text-transform: uppercase;
}
.wp-site-blocks .tks .tks-gruppe__felder {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 12px;
}
.wp-site-blocks .tks .tks-gruppe .tks-feld--flag {
	display: block;
	margin: 0;
	padding: 12px 14px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 12px;
	background: #fff;
	transition: background .12s ease, box-shadow .12s ease;
}
.wp-site-blocks .tks .tks-gruppe .tks-feld--flag:hover { background: var(--tkt-papier); }
.wp-site-blocks .tks .tks-gruppe .tks-feld--flag:has(input:checked) { background: var(--tkt-mass); box-shadow: 4px 4px 0 var(--tkt-schwarz); }
.wp-site-blocks .tks .tks-gruppe .tks-feld--flag > label { display: block; font-weight: 700; }
.wp-site-blocks .tks .tks-gruppe .tks-feld--flag .tks-feld__hilfe { display: block; margin: 4px 0 0 30px; color: var(--tkt-leise); }
.wp-site-blocks .tks .tks-gruppe .tks-feld--flag input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px var(--tkt-rot); }

/* SEPA-Mandat: hervorgehobener Kasten */
.wp-site-blocks .tks .tks-mandat-online {
	margin-top: 18px;
	padding: 16px 20px;
	border: 2px dashed var(--tkt-schwarz);
	border-left: 8px solid var(--tkt-rot);
	border-radius: 12px;
	background: var(--tkt-papier);
}

.wp-site-blocks .tks .tks-mandat-online.is-noetig { border-left-color: var(--tkt-rot); }
.wp-site-blocks .tks .tks-mandat-text { font-size: .95em; }

/* Knöpfe */
.wp-site-blocks .tks .tks-knopf,
.wp-site-blocks .tks button[type="submit"],
.wp-site-blocks .tks input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 8px 16px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 10px;
	background: #fff;
	color: var(--tkt-schwarz);
	font: 700 15px/1.2 var(--wp--preset--font-family--inter);
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
	cursor: pointer;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
}

.wp-site-blocks .tks .tks-knopf:hover,
.wp-site-blocks .tks button[type="submit"]:hover { background: var(--tkt-papier); transform: translate(-1px, -1px); }

.wp-site-blocks .tks .tks-knopf:active,
.wp-site-blocks .tks button[type="submit"]:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tkt-schwarz); }

.wp-site-blocks .tks .tks-knopf--primaer,
.wp-site-blocks .tks .tks-antrag-formular button[type="submit"] {
	border-width: 3px;
	background: var(--tkt-rot);
	color: #fff;
	font-weight: 800;
}

.wp-site-blocks .tks .tks-knopf--primaer:hover,
.wp-site-blocks .tks .tks-antrag-formular button[type="submit"]:hover { background: var(--tkt-teufelsrot); color: #fff; }

.wp-site-blocks .tks .tks-antrag-formular button[type="submit"] { min-height: 54px; padding: 12px 28px; font-size: 17px; box-shadow: 5px 5px 0 var(--tkt-schwarz); }

.wp-site-blocks .tks .tks-knopf--gefahr { color: var(--tkt-teufelsrot); border-color: var(--tkt-teufelsrot); }

/* Meldungen */
.wp-site-blocks .tks .tks-meldung {
	padding: 14px 18px;
	border: 2px solid var(--tkt-schwarz);
	border-left-width: 8px;
	border-left-color: #2e7d32;
	border-radius: 12px;
	background: #EAF5EC;
	color: var(--tkt-schwarz);
}

.wp-site-blocks .tks .tks-meldung--warnung { border-left-color: #C98A00; background: #FFF6D9; }
.wp-site-blocks .tks .tks-meldung--fehler { border-left-color: var(--tkt-rot); background: #FDE6E8; }

/* Aufklapp-Kästen, Reiter, Werkzeugleiste der Mitgliederliste */
.wp-site-blocks .tks .tks-kasten {
	padding: 14px 18px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 12px;
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
}

.wp-site-blocks .tks .tks-kasten summary { font-weight: 800; }

.wp-site-blocks .tks .tks-reiter { gap: 6px; border-bottom: var(--tkt-kontur); }

.wp-site-blocks .tks .tks-reiter__knopf {
	padding: 9px 18px;
	border: var(--tkt-kontur);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: var(--tkt-papier);
	color: var(--tkt-schwarz);
	font: 700 15px/1.2 var(--wp--preset--font-family--inter);
}

.wp-site-blocks .tks .tks-reiter__knopf.is-aktiv { background: var(--tkt-schwarz); color: #fff; box-shadow: none; }

.wp-site-blocks .tks .tks-breit-knopf {
	padding: 6px 12px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 999px;
	font-weight: 700;
}

.wp-site-blocks .tks .tks-breit-knopf[aria-pressed="true"] { background: var(--tkt-mass); }

.wp-site-blocks .tks .tks-suche { min-height: 42px; }

.wp-site-blocks .tks table.tks-tabelle--liste,
.wp-site-blocks .tks .tks-scroll--liste { border-radius: 12px; }

@media (max-width: 640px) {
	.wp-site-blocks .tks .tks-feld { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.wp-site-blocks .tks .tks-antrag-formular button[type="submit"] { width: 100%; }
}

/* ---------- Kartenverteilung ---------- */
/* Das Theme ist immer hell: die Werte gelten auch bei dunkel eingestelltem
   Gerät (das Plugin hellt den Akzent sonst für dunkle Themes auf). */
.wp-site-blocks .kvt-schedule,
.wp-site-blocks .kvt-my-season {
	--kvt-accent: var(--tkt-rot);
	--kvt-on-accent: #fff;
	--kvt-ok: #1F7A4D;
	--kvt-info: #1D5FBF;
	--kvt-radius: 16px;
	--kvt-line: var(--tkt-linie);
}

/* Verwaltung auf der Website (Kartenvergabe, Abrechnung). */
.wp-site-blocks .kvt-verwaltung {
	--kvt-accent: var(--tkt-rot);
	--kvt-on-accent: #fff;
	--kvt-ok: #1F7A4D;
	--kvt-line: var(--tkt-linie);
	--kvt-ink: var(--tkt-text, #3B3431);
}

.wp-site-blocks .kvt-schedule .kvt-button,
.wp-site-blocks .kvt-my-season .kvt-button {
	min-height: 46px;
	padding: 8px 22px;
	border: var(--tkt-kontur);
	border-radius: 12px;
	font-weight: 800;
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
	transition: transform .12s ease, box-shadow .12s ease;
}

.wp-site-blocks .kvt-schedule .kvt-button:hover,
.wp-site-blocks .kvt-my-season .kvt-button:hover { background: var(--tkt-teufelsrot); transform: translate(-1px, -1px); }

.wp-site-blocks .kvt-schedule .kvt-button:active,
.wp-site-blocks .kvt-my-season .kvt-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tkt-schwarz); }

.wp-site-blocks .kvt-schedule .kvt-button--ghost,
.wp-site-blocks .kvt-my-season .kvt-button--ghost {
	min-height: 46px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 12px;
	background: #fff;
	color: var(--tkt-schwarz);
	box-shadow: 3px 3px 0 var(--tkt-schwarz);
}

.wp-site-blocks .kvt-schedule .kvt-button--ghost:hover,
.wp-site-blocks .kvt-my-season .kvt-button--ghost:hover { background: var(--tkt-papier); color: var(--tkt-schwarz); }

.wp-site-blocks .kvt-filter__link { border: 2px solid var(--tkt-schwarz); font-weight: 600; }
.wp-site-blocks .kvt-filter__link--current { background: var(--tkt-mass); border-color: var(--tkt-schwarz); color: var(--tkt-schwarz); font-weight: 800; }
.wp-site-blocks .kvt-filter__link:hover { color: var(--tkt-rot); }

.wp-site-blocks .kvt-card,
.wp-site-blocks .kvt-schedule .kvt-table .kvt-game {
	border: var(--tkt-kontur) !important;
	box-shadow: 5px 5px 0 var(--tkt-schwarz);
}

.wp-site-blocks .kvt-notice {
	border: 2px solid var(--tkt-schwarz);
	border-left: 8px solid var(--tkt-schwarz);
	border-radius: 12px;
	background: var(--tkt-papier);
}

.wp-site-blocks .kvt-notice--success { border-left-color: #1F7A4D; background: #EAF5EC; }
.wp-site-blocks .kvt-notice--error { border-left-color: var(--tkt-rot); background: #FDE6E8; }

.wp-site-blocks .kvt-schedule input[type="number"],
.wp-site-blocks .kvt-schedule input[type="text"],
.wp-site-blocks .kvt-schedule select,
.wp-site-blocks .kvt-my-season input[type="number"] {
	border: 2px solid var(--tkt-schwarz);
	border-radius: 10px;
}

/* ---------- Facebook (Zwei-Klick) ---------- */
.tkt-facebook [hidden] { display: none !important; }

.tkt-facebook__hinweis {
	box-sizing: border-box;
	max-width: 640px;
	margin-inline: auto;
	padding: clamp(22px, 4vw, 36px);
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	background: #fff;
	box-shadow: var(--tkt-schatten);
}

.tkt-facebook__marke {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	border-radius: 8px;
	background: #1877F2;
	color: #fff;
	font: 800 14px/1.2 var(--wp--preset--font-family--inter);
	letter-spacing: .02em;
}

.tkt-seiteninhalt .tkt-facebook__titel,
.tkt-facebook__titel { margin: 0 0 .5em; }

.tkt-facebook__aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin: 22px 0 16px;
}

.tkt-facebook__merken { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.tkt-facebook__merken input { width: 18px; height: 18px; accent-color: var(--tkt-rot); }
.tkt-facebook__klein { margin: 0; font-size: .92em; }

.tkt-facebook__rahmen {
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	padding: 10px;
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	background: #fff;
	box-shadow: var(--tkt-schatten);
}

.tkt-facebook__rahmen:focus { outline: none; }
.tkt-facebook__rahmen iframe { display: block; max-width: 100%; border: 0; border-radius: 8px; }

.tkt-facebook__widerruf { text-align: center; margin-top: 18px; }

.tkt-facebook__vergessen {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}


/* ---------- Facebook ---------- */
:root { --tkt-facebook: #1877F2; --tkt-fb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13.6 22v-8h2.7l.4-3.2h-3.1V8.8c0-.9.3-1.6 1.6-1.6h1.7V4.4c-.3 0-1.3-.1-2.5-.1-2.4 0-4.1 1.5-4.1 4.2v2.3H7.6V14h2.7v8z'/%3E%3C/svg%3E"); }

.tkt-kopf .tkt-hauptmenue { margin-left: auto; }

/* Knöpfe im Inhalt */
.wp-block-button.tkt-knopf-facebook .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--tkt-facebook);
	color: #fff;
}
.wp-block-button.tkt-knopf-facebook .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: var(--tkt-fb-icon) center / contain no-repeat;
}
.wp-block-button.tkt-knopf-facebook .wp-block-button__link:hover { background: #0F63D6; color: #fff; }
.wp-block-button.tkt-knopf-facebook--gross .wp-block-button__link { padding: 16px 26px; font-size: 1.15rem; }
.wp-block-button.tkt-knopf-facebook--gross .wp-block-button__link::before { width: 30px; height: 30px; }
.tkt-abschnitt--schwarz .wp-block-button.tkt-knopf-facebook .wp-block-button__link { border-color: #fff; box-shadow: 4px 4px 0 #fff; }

/* Band auf der Startseite */
.tkt-fb-band__inner { gap: 24px 48px !important; }
.tkt-fb-band__text { flex: 1 1 420px; max-width: 680px; }
.tkt-fb-band__text h2 { margin-top: 0; }
.tkt-fb-band__text p:last-child { margin-bottom: 0; }



/* ---------- Mitgliederliste (Tabelle für den Vorstand) ---------- */
.wp-site-blocks .tks:has(.tks-ansichten) {
	--tks-streifen: #F8F4F1;
	--tks-streifen-hover: #FFF8C4;
}

/* Werkzeugleisten als Kasten */
.wp-site-blocks .tks:has(.tks-ansichten) > .tks-werkzeuge {
	gap: 10px 12px;
	margin: 0 0 16px;
	padding: 14px 16px;
	background: var(--tkt-papier);
	border: var(--tkt-kontur);
	border-radius: var(--tkt-radius);
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
}

.wp-site-blocks .tks:has(.tks-ansichten) > .tks-werkzeuge + .tks-werkzeuge { background: #fff; }

.wp-site-blocks .tks .tks-werkzeuge > label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.wp-site-blocks .tks .tks-suche { flex: 1 1 220px; max-width: 360px; }
.wp-site-blocks .tks .tks-filter-flags { display: contents; }

/* Ankreuzfilter als Marken zum Antippen, aktiv in Maßgelb */
.wp-site-blocks .tks .tks-filter-flags label,
.wp-site-blocks .tks .tks-werkzeuge > label:has(> input[type="checkbox"]) {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 14px 7px 10px;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background .12s ease;
}

.wp-site-blocks .tks .tks-filter-flags label > input[type="checkbox"] { position: static; }
.wp-site-blocks .tks .tks-filter-flags label > input[type="checkbox"],
.wp-site-blocks .tks .tks-werkzeuge > label > input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }

.wp-site-blocks .tks .tks-filter-flags label:hover,
.wp-site-blocks .tks .tks-werkzeuge > label:has(> input[type="checkbox"]):hover { background: var(--tkt-papier); }

.wp-site-blocks .tks .tks-filter-flags label:has(input:checked),
.wp-site-blocks .tks .tks-werkzeuge > label:has(> input[type="checkbox"]:checked) { background: var(--tkt-mass); }

.wp-site-blocks .tks .tks-werkzeuge .tks-knopf { min-height: 42px; font-size: 14px; }
.wp-site-blocks .tks .tks-werkzeuge .tks-hinweis { flex-basis: 100%; margin: 0; }
.wp-site-blocks .tks .tks-kopiert { color: #1F7A4D; font-weight: 700; }

.wp-site-blocks .tks .tks-zaehler { margin: 10px 0 10px; color: var(--tkt-leise); font-size: 14px; font-weight: 600; }

/* Tabelle */
.wp-site-blocks .tks .tks-scroll--liste {
	border: var(--tkt-kontur);
	border-radius: 12px;
	box-shadow: 4px 4px 0 var(--tkt-schwarz);
	background: #fff;
}

.wp-site-blocks .tks table.tks-tabelle--liste thead th {
	padding: 10px 10px;
	background: var(--tkt-schwarz);
	border-color: rgba(255, 255, 255, .18);
	color: #fff;
	font: 800 12.5px/1.2 var(--wp--preset--font-family--inter);
	letter-spacing: .04em;
	text-transform: uppercase;
}

@media (min-width: 701px) {
	.wp-site-blocks .tks table.tks-tabelle--liste td { padding: 9px 10px; border-color: var(--tkt-linie); }
}
.wp-site-blocks .tks table.tks-tabelle--liste .tks-name { font-weight: 800; color: var(--tkt-schwarz); }
.wp-site-blocks .tks table.tks-tabelle--liste .tks-name:hover,
.wp-site-blocks .tks table.tks-tabelle--liste .tks-name:focus { color: var(--tkt-rot); }
.wp-site-blocks .tks table.tks-tabelle--liste a { color: var(--tkt-teufelsrot); }
.wp-site-blocks .tks table.tks-tabelle--liste.is-fest .tks-fest2 { box-shadow: 2px 0 0 var(--tkt-linie); }

/* Handy: Karten im Aufkleber-Stil */
@media (max-width: 700px) {
	.wp-site-blocks .tks .tks-scroll--liste { border: 0; box-shadow: none; background: transparent; }

	.wp-site-blocks .tks table.tks-tabelle--liste tr {
		margin: 0 0 14px;
		padding: 12px 14px;
		border: 2px solid var(--tkt-schwarz);
		border-left: 7px solid var(--tkt-rot);
		border-radius: 12px;
		box-shadow: 3px 3px 0 var(--tkt-schwarz);
	}

	.wp-site-blocks .tks table.tks-tabelle--liste tr.tks-neu { border-left-color: var(--tks-geaendert); }
	.wp-site-blocks .tks table.tks-tabelle--liste td:not(.tks-flag)::before { color: var(--tkt-leise); font-weight: 600; }
	.wp-site-blocks .tks table.tks-tabelle--liste td.tks-flag::before { border-radius: 999px; background: var(--tkt-rot); color: #fff; font-weight: 700; }
	.wp-site-blocks .tks .tks-filter-flags label,
	.wp-site-blocks .tks .tks-werkzeuge > label:has(> input[type="checkbox"]) { white-space: normal; }
	.wp-site-blocks .tks .tks-suche { max-width: none; }
}

/* ---------- Nach oben ---------- */
.tkt-nach-oben {
	position: fixed;
	right: max(14px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 2px solid var(--tkt-schwarz);
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--tkt-schwarz);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease;
}
.tkt-nach-oben.ist-sichtbar { opacity: .55; visibility: visible; transform: none; }
.tkt-nach-oben:hover,
.tkt-nach-oben:focus-visible { opacity: 1; background: #fff; outline: none; box-shadow: 3px 3px 0 var(--tkt-rot); }
.tkt-nach-oben svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .tkt-nach-oben { transition: none; } }
@media print { .tkt-nach-oben { display: none; } }
