/**
 * Vimo Consent - Styling (Version 1.1)
 *
 * Bewusst zurueckhaltend. Schrift wird vom Theme geerbt.
 * Die wenigen Farbwerte stehen als Variablen ganz oben und lassen sich
 * pro Website in einem Griff anpassen.
 */

:root {
	--vc-bg: #ffffff;
	--vc-fg: #1c2430;
	--vc-muted: #5b6672;
	--vc-line: #dde2e8;
	--vc-panel: #f4f6f8;
	--vc-button-bg: #1c2430;
	--vc-button-fg: #ffffff;
	--vc-radius: 8px;
}

/* ---------- Banner unten rechts ---------- */

#vimo-consent-root[hidden] {
	display: none;
}

.vc-panel {
	position: fixed;
	bottom: 1.25rem;
	z-index: 999999;
	width: min(24rem, calc(100vw - 2.5rem));
	max-height: calc(100vh - 2.5rem);
	overflow-y: auto;
	background: var(--vc-bg);
	color: var(--vc-fg);
	padding: 1.35rem;
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius);
	box-shadow: 0 10px 34px rgba(12, 18, 26, 0.22);
	font-size: 0.925rem;
	line-height: 1.55;
}

.vc-panel--right {
	right: 1.25rem;
}

.vc-panel--left {
	left: 1.25rem;
}

.vc-panel:focus {
	outline: none;
}

.vc-panel__title {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.vc-panel__text {
	margin: 0 0 1rem;
	color: var(--vc-muted);
	font-size: 0.875rem;
}

/* ---------- Widerruf-Knopf am Rand ----------
   Drei Formen: rundes Symbol, Pille mit Text,
   angeschnittene Lasche am unteren Bildschirmrand. */

.vc-tab {
	position: fixed;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	background: var(--vc-bg);
	color: var(--vc-fg);
	border: 1px solid var(--vc-line);
	box-shadow: 0 3px 12px rgba(12, 18, 26, 0.16);
	font: inherit;
	font-size: 0.8rem;
	line-height: 1;
	cursor: pointer;
	opacity: var(--vc-tab-opacity, 0.65);
	transition: opacity 0.15s ease;
}

.vc-tab:hover,
.vc-tab:focus-visible {
	opacity: 1;
}

.vc-tab:focus-visible {
	outline: 2px solid var(--vc-button-bg);
	outline-offset: 2px;
}

.vc-tab svg {
	flex: 0 0 auto;
}

.vc-open .vc-tab {
	display: none;
}

/* Form 1: rundes Symbol */
.vc-tab--circle {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	bottom: 1rem;
}

/* Form 2: Pille mit Beschriftung */
.vc-tab--pill {
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	bottom: 1rem;
}

/* Form 3: Lasche, sitzt buendig auf der Unterkante */
.vc-tab--edge {
	padding: 0.5rem 0.9rem 0.55rem;
	border-radius: 8px 8px 0 0;
	border-bottom: 0;
	bottom: 0;
	box-shadow: 0 -2px 12px rgba(12, 18, 26, 0.14);
}

/* Seitenwahl */
.vc-tab--pos-left {
	left: 1rem;
}

.vc-tab--pos-right {
	right: 1rem;
}

.vc-tab--edge.vc-tab--pos-left {
	left: 1.5rem;
}

.vc-tab--edge.vc-tab--pos-right {
	right: 1.5rem;
}

/* ---------- Kategorien ---------- */

.vc-list {
	margin-bottom: 1rem;
}

.vc-row {
	background: var(--vc-panel);
	border-radius: var(--vc-radius);
	padding: 0.8rem 0.9rem;
	margin-bottom: 0.5rem;
}

.vc-row__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.vc-row__label {
	font-weight: 600;
}

.vc-row__fixed {
	font-size: 0.8rem;
	color: var(--vc-muted);
}

.vc-row__desc {
	margin: 0.45rem 0 0;
	font-size: 0.825rem;
	color: var(--vc-muted);
}

.vc-row__more {
	margin-top: 0.45rem;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: 0.8rem;
	color: var(--vc-fg);
	text-decoration: underline;
	cursor: pointer;
}

.vc-details {
	margin-top: 0.55rem;
	padding-top: 0.55rem;
	border-top: 1px solid var(--vc-line);
	font-size: 0.8rem;
}

.vc-detail {
	margin-bottom: 0.4rem;
}

.vc-detail strong {
	display: block;
}

.vc-detail span {
	color: var(--vc-muted);
}

/* ---------- Schalter ---------- */

.vc-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 23px;
	flex: 0 0 auto;
}

.vc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.vc-switch__slider {
	position: absolute;
	inset: 0;
	background: #b9c1cb;
	border-radius: 23px;
	transition: background 0.15s ease;
	pointer-events: none;
}

.vc-switch__slider::before {
	content: '';
	position: absolute;
	width: 17px;
	height: 17px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.vc-switch input:checked + .vc-switch__slider {
	background: var(--vc-button-bg);
}

.vc-switch input:checked + .vc-switch__slider::before {
	transform: translateX(17px);
}

.vc-switch input:focus-visible + .vc-switch__slider {
	outline: 2px solid var(--vc-button-bg);
	outline-offset: 2px;
}

/* ---------- Knoepfe ----------
   Akzeptieren und Ablehnen sind absichtlich identisch.
   Das ist keine Stilfrage, sondern Voraussetzung fuer eine
   gueltige Einwilligung. Bitte nicht auseinanderziehen. */

.vc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vc-button {
	flex: 1 1 7rem;
	padding: 0.6rem 0.9rem;
	font: inherit;
	font-size: 0.9rem;
	border-radius: var(--vc-radius);
	border: 1px solid var(--vc-button-bg);
	cursor: pointer;
	text-align: center;
}

.vc-button--primary {
	background: var(--vc-button-bg);
	color: var(--vc-button-fg);
}

.vc-button--quiet {
	background: transparent;
	color: var(--vc-fg);
	border-color: var(--vc-line);
}

.vc-button:focus-visible {
	outline: 2px solid var(--vc-button-bg);
	outline-offset: 2px;
}

.vc-links {
	margin: 0.85rem 0 0;
	text-align: center;
	font-size: 0.8rem;
}

.vc-links a {
	color: var(--vc-muted);
}

/* ---------- Platzhalter fuer eingebettete Inhalte ---------- */

.vc-placeholder {
	background: var(--vc-panel);
	border: 1px dashed var(--vc-line);
	border-radius: var(--vc-radius);
	padding: 1.5rem;
	text-align: center;
}

.vc-placeholder__text {
	margin: 0 0 0.9rem;
	color: var(--vc-muted);
	font-size: 0.9rem;
}

.vc-placeholder__button {
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: 0.9rem;
	background: var(--vc-button-bg);
	color: var(--vc-button-fg);
	border: 0;
	border-radius: var(--vc-radius);
	cursor: pointer;
}

/* ---------- Cookie-Tabelle in der Datenschutzerklaerung ---------- */

.vc-table-wrap {
	overflow-x: auto;
}

.vc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.5rem 0 1.5rem;
	font-size: 0.9rem;
}

.vc-table th,
.vc-table td {
	border: 1px solid var(--vc-line);
	padding: 0.5rem 0.6rem;
	text-align: left;
	vertical-align: top;
}

.vc-table th {
	background: var(--vc-panel);
	font-weight: 600;
}

/* ---------- Mobil ---------- */

@media (max-width: 560px) {
	.vc-panel,
	.vc-panel--left,
	.vc-panel--right {
		right: 0.5rem;
		left: 0.5rem;
		bottom: 0.5rem;
		width: auto;
		padding: 1.1rem;
	}

	.vc-button {
		flex: 1 1 100%;
	}

	.vc-tab--pos-left {
		left: 0.5rem;
	}

	.vc-tab--pos-right {
		right: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-switch__slider,
	.vc-switch__slider::before,
	.vc-tab {
		transition: none;
	}
}
