/* TuS Vinnhorst Cookie-Einwilligung */
.tvhc,
.tvhc-revoke,
.tvhc-placeholder,
.tvhc-policy {
	--tvhc-red: #dc092b;
	--tvhc-red-dark: #b10722;
	--tvhc-navy: #00253e;
	--tvhc-blue: #0478be;
	--tvhc-white: #fff;
	--tvhc-font: "TVH CI", Arial, sans-serif;
}

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

.tvhc button::before,
.tvhc button::after,
.tvhc-revoke::before,
.tvhc-revoke::after,
.tvhc-placeholder button::before,
.tvhc-placeholder button::after {
	content: none !important;
	display: none !important;
}

/* Box unten links */
.tvhc {
	position: fixed;
	left: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 100000;
	width: min(440px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	color: var(--tvhc-navy);
	font-family: var(--tvhc-font);
	font-size: 16px;
	line-height: 1.45;
	background: var(--tvhc-white);
	border-top: 6px solid var(--tvhc-red);
	box-shadow: 0 18px 48px rgba(0, 37, 62, 0.28);
}

.tvhc[hidden],
.tvhc-revoke[hidden],
.tvhc [hidden] {
	display: none !important;
}

.tvhc__inner {
	padding: 24px 24px 18px;
}

.tvhc .tvhc__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 18px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.tvhc__swoosh {
	position: relative;
	display: inline-block;
	padding: 9px 42px 7px;
	color: var(--tvhc-white);
	isolation: isolate;
}

.tvhc__swoosh::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--tvhc-blue);
	-webkit-mask: url("/wp-content/uploads/2026/10/BrushRot.webp") 81.818% 79.396% / 101.029% 724.528% no-repeat;
	mask: url("/wp-content/uploads/2026/10/BrushRot.webp") 81.818% 79.396% / 101.029% 724.528% no-repeat;
}

.tvhc .tvhc__text {
	margin: 0 0 18px;
	color: var(--tvhc-navy);
	font-size: 16px;
}

/* Kategorien */
.tvhc__details {
	margin: 0 0 18px;
	border-top: 1px solid #dfe4e9;
}

.tvhc__category {
	padding: 14px 0;
	border-bottom: 1px solid #dfe4e9;
}

.tvhc__switch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tvhc__switch input {
	position: absolute;
	width: 44px;
	height: 24px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.tvhc__switch input:disabled {
	cursor: not-allowed;
}

.tvhc__toggle {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 24px;
	background: #b8c3cd;
	border-radius: 12px;
	transition: background-color 0.2s ease;
}

.tvhc__toggle::after {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: var(--tvhc-white);
	border-radius: 50%;
	transition: transform 0.2s ease;
}

.tvhc__switch input:checked + .tvhc__toggle {
	background: var(--tvhc-blue);
}

.tvhc__switch input:checked + .tvhc__toggle::after {
	transform: translateX(20px);
}

.tvhc__switch input:disabled + .tvhc__toggle {
	opacity: 0.6;
}

.tvhc__switch input:focus-visible + .tvhc__toggle {
	outline: 3px solid var(--tvhc-navy) !important;
	outline-offset: 2px;
}

.tvhc__always {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.tvhc .tvhc__description {
	margin: 8px 0 0 56px;
	font-size: 14px;
	color: var(--tvhc-navy);
}

/* Schaltflächen */
.tvhc__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tvhc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	color: var(--tvhc-white);
	font-family: var(--tvhc-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--tvhc-red) !important;
	border: 2px solid var(--tvhc-red);
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tvhc-button:hover,
.tvhc-button:focus {
	color: var(--tvhc-white);
	background: var(--tvhc-red-dark) !important;
	border-color: var(--tvhc-red-dark);
}

.tvhc-button--reject {
	background: var(--tvhc-navy) !important;
	border-color: var(--tvhc-navy);
}

.tvhc-button--reject:hover,
.tvhc-button--reject:focus {
	background: #001a2c !important;
	border-color: #001a2c;
}

.tvhc-button--save {
	grid-column: 1 / -1;
	color: var(--tvhc-navy);
	background: var(--tvhc-white) !important;
	border-color: var(--tvhc-navy);
}

.tvhc-button--save:hover,
.tvhc-button--save:focus {
	color: var(--tvhc-white);
	background: var(--tvhc-navy) !important;
	border-color: var(--tvhc-navy);
}

.tvhc-button:focus-visible,
.tvhc__link:focus-visible,
.tvhc-revoke:focus-visible,
.tvhc-inline-link:focus-visible {
	outline: 3px solid var(--tvhc-blue) !important;
	outline-offset: 2px;
}

/* Verweise */
.tvhc .tvhc__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 14px 0 0;
	font-size: 14px;
}

.tvhc .tvhc__link,
.tvhc .tvhc__link:visited {
	margin: 0;
	padding: 0;
	color: var(--tvhc-navy);
	font-family: var(--tvhc-font);
	font-size: 14px;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	cursor: pointer;
}

.tvhc .tvhc__link:hover {
	color: var(--tvhc-red);
}

/* Erneut öffnen */
.tvhc-revoke {
	position: fixed;
	left: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	margin: 0;
	padding: 9px 14px;
	color: var(--tvhc-white);
	font-family: var(--tvhc-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--tvhc-navy) !important;
	border: 0;
	border-top: 3px solid var(--tvhc-red);
	border-radius: 0;
	box-shadow: 0 6px 18px rgba(0, 37, 62, 0.3);
	cursor: pointer;
}

.tvhc-revoke:hover,
.tvhc-revoke:focus {
	color: var(--tvhc-white);
	background: #001a2c !important;
}

.tvhc-inline-link {
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline !important;
	background: none;
	border: 0;
	cursor: pointer;
}

/* Blockierte Inhalte */
.tvhc-blocked {
	position: relative;
	display: block;
	max-width: 100%;
	min-height: 240px;
}

.tvhc-blocked.is-loaded {
	min-height: 0;
}

.tvhc-blocked:not(.is-loaded) iframe {
	visibility: hidden;
}

.tvhc-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	color: var(--tvhc-white);
	font-family: var(--tvhc-font);
	text-align: center;
	background: var(--tvhc-navy);
	border-top: 4px solid var(--tvhc-red);
}

/* Höhere Spezifität gegen Theme-Regeln mit ID-Selektoren */
.tvhc-placeholder:not(#tvhc-a):not(#tvhc-b) p,
.tvhc-placeholder p {
	max-width: 520px;
	margin: 0;
	color: var(--tvhc-white) !important;
}

.tvhc-placeholder .tvhc-placeholder__title {
	font-size: 18px;
	font-style: italic;
	font-weight: 700;
	text-transform: uppercase;
}

.tvhc-placeholder .tvhc-placeholder__text {
	font-size: 15px;
	line-height: 1.45;
}

.tvhc-placeholder a,
.tvhc-placeholder a:visited {
	color: var(--tvhc-white);
	text-decoration: underline;
}

/* Cookie-Richtlinie */
.tvhc-policy .tvhc-button {
	min-width: 260px;
}

.tvhc-policy .tvhc-policy__table {
	width: 100%;
	margin: 0 0 24px;
	border-collapse: collapse;
	font-size: 16px;
}

.tvhc-policy .tvhc-policy__table caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.tvhc-policy .tvhc-policy__table th,
.tvhc-policy .tvhc-policy__table td {
	padding: 10px 12px;
	color: var(--tvhc-navy);
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #dfe4e9;
}

.tvhc-policy .tvhc-policy__table thead th {
	color: var(--tvhc-white);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: var(--tvhc-navy);
}

.tvhc-policy .tvhc-policy__table tbody th {
	font-weight: 700;
	word-break: break-word;
}

/* Platz für die Schaltfläche am Seitenende */
html body:has(.tvhc-revoke:not([hidden])) {
	padding-bottom: 64px !important;
}

/* Smartphone: am unteren Rand über die volle Breite */
@media (max-width: 600px) {
	.tvhc {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 85vh;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.tvhc__inner {
		padding: 20px 16px 16px;
	}

	.tvhc__actions {
		grid-template-columns: 1fr;
	}

	.tvhc-revoke {
		left: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		font-size: 12px;
		padding: 8px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvhc__toggle,
	.tvhc__toggle::after,
	.tvhc-button {
		transition: none;
	}
}
