/*
 * FRK Consent Manager: Styles. ENTWICKLUNGSSTAND (Schritt B), noch nicht fuer Live freigegeben.
 * Mobile-first ab 320 px, Erweiterungen per min-width. Farben wie die Rosé-Schaltflächen der Website
 * (#9c5b72 auf Weiß, Text #333). Alle drei Banner-Schaltflächen sind bewusst identisch gestaltet.
 */
.frk-consent[hidden],
.frk-consent-fuss[hidden],
.frk-consent__fehler[hidden] {
	display: none !important;
}

.frk-consent,
.frk-consent * {
	box-sizing: border-box;
}

.frk-consent {
	color: #333;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.frk-consent__titel {
	margin: 0 0 0.4em;
	color: #333;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.frk-consent__titel:focus {
	outline: none;
}

.frk-consent__titel:focus-visible {
	outline: 3px solid #864a5f;
	outline-offset: 2px;
}

.frk-consent__untertitel {
	margin: 1.25em 0 0.5em;
	color: #333;
	font-size: 17px;
	font-weight: 600;
}

.frk-consent__text,
.frk-consent__klein {
	margin: 0 0 0.6em;
}

.frk-consent-banner .frk-consent__text {
	font-size: 15px;
	line-height: 1.45;
}

.frk-consent__klein {
	color: #555;
	font-size: 15px;
	overflow-wrap: anywhere;
}

.frk-consent a {
	color: #864a5f;
	text-decoration: underline;
}

.frk-consent a:focus-visible,
.frk-consent__knopf:focus-visible,
.frk-consent input:focus-visible,
.frk-consent-fuss__knopf:focus-visible,
.frk-consent-oeffnen:focus-visible {
	outline: 3px solid #333;
	outline-offset: 2px;
}

.frk-consent__fehler {
	margin: 0 0 0.75em;
	padding: 0.5em 0.75em;
	border-left: 4px solid #a12a2a;
	background: #fdf1f1;
	color: #6b1515;
}

/*
 * Schaltflächen: gleiche Größe, Farbe und Gewichtung für alle Optionen.
 * Envision setzt für jedes <button> Farbe (#7c7c7c !important), Verlauf und Textschatten;
 * deshalb hier !important, beschränkt auf die eigenen Klassen.
 */
.frk-consent__aktionen {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.frk-consent .frk-consent__knopf {
	min-height: 44px;
	margin: 0;
	padding: 0.5em 1.2em;
	border: 2px solid #9c5b72 !important;
	border-radius: 4px;
	background: #9c5b72 !important;
	box-shadow: none !important;
	color: #fff !important;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-shadow: none !important;
	cursor: pointer;
}

.frk-consent .frk-consent__knopf:hover {
	border-color: #864a5f !important;
	background: #864a5f !important;
}

/* Banner: fest am unteren Rand, keine Layoutverschiebung */
.frk-consent-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	max-height: 85vh;
	overflow-y: auto;
	border-top: 4px solid #bb7a8f;
	background: #fff;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}

.frk-consent-banner__inhalt {
	max-width: 960px;
	margin: 0 auto;
	padding: 12px 16px 14px;
}

/* Einstellungsdialog (natives <dialog>, Hintergrund per showModal() inert) */
.frk-consent-dialog {
	width: calc(100% - 32px);
	max-width: 640px;
	max-height: 85vh;
	margin: auto;
	padding: 20px 16px;
	border: 0;
	border-top: 4px solid #bb7a8f;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	overflow-y: auto;
}

.frk-consent-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.frk-consent-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.frk-consent-liste__eintrag {
	margin: 0 0 0.75em;
	padding: 0.75em;
	border: 1px solid #e3cfd6;
	border-radius: 4px;
	background: #faf3f5;
}

.frk-consent-liste__eintrag--wahl {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.75em;
	align-items: start;
}

.frk-consent .frk-consent-liste__eintrag--wahl input[type="checkbox"] {
	width: 24px;
	height: 24px;
	margin: 2px 0 0;
	accent-color: #9c5b72;
	cursor: pointer;
}

.frk-consent-liste__eintrag--wahl label {
	cursor: pointer;
}

.frk-consent-liste__text {
	grid-column: 2;
	margin-top: 0.5em;
}

.frk-consent-liste__name {
	font-weight: 600;
}

.frk-consent-liste__kategorie,
.frk-consent-liste__immer {
	display: inline-block;
	margin-left: 0.25em;
	padding: 0 0.5em;
	border-radius: 3px;
	background: #fff;
	color: #6d3a4d;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* Einstellungs-Schaltfläche im Footer-Menü (sieht aus wie die Nachbar-Links) und Shortcode */
.frk-consent-fuss__knopf,
.frk-consent-oeffnen {
	min-height: 24px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit;
	text-decoration: underline;
	text-shadow: none !important;
	cursor: pointer;
}

.frk-consent-fuss {
	margin: 1em auto;
	text-align: center;
}

/*
 * Im Envision-Footermenü genau wie die Nachbar-Links "Impressum" und "Datenschutz": gleiche Schrift und
 * Zeilenhöhe (inline statt inline-block mit Mindesthöhe), keine Unterstreichung, Hover weiß (Envision-
 * Footerlinks: #a3a3a3, Hover #fff, ohne Strich). Der Fokusring ist hell, weil der Footer dunkel ist.
 */
.frk-consent-fuss__eintrag .frk-consent-fuss__knopf {
	display: inline;
	min-height: 0;
	vertical-align: baseline;
	line-height: inherit;
	text-decoration: none;
}

/*
 * :focus und :active (Envision setzt für jeden button:focus eine dunkle Schriftfarbe und einen Fokusring):
 * Nach dem Schließen des Dialogs bekommt der Knopf den Fokus zurück und muss wie ein normaler Footer-Link
 * aussehen. Die Regeln stehen vor :hover und :focus-visible, damit diese sie überschreiben.
 */
.frk-consent-fuss__eintrag .frk-consent-fuss__knopf:focus,
.frk-consent-fuss__eintrag .frk-consent-fuss__knopf:active {
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
	outline: 0;
	text-decoration: none;
	text-shadow: none !important;
}

.frk-consent-fuss__eintrag .frk-consent-fuss__knopf:hover,
.frk-consent-fuss__eintrag .frk-consent-fuss__knopf:focus:hover,
.frk-consent-fuss__eintrag .frk-consent-fuss__knopf:active:hover {
	color: #fff !important;
	text-decoration: none;
}

/* Sichtbarer Tastaturfokus (nur bei Tastaturbedienung, nicht nach Mausklick) */
.frk-consent-fuss__eintrag .frk-consent-fuss__knopf:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	text-decoration: none;
}

.frk-consent-oeffnen {
	min-height: 44px;
	color: #864a5f !important;
}

.frk-consent-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
	.frk-consent__knopf {
		transition: background-color 0.15s ease, border-color 0.15s ease;
	}
}

@media (min-width: 768px) {
	.frk-consent-banner__inhalt {
		padding: 20px 24px;
	}

	.frk-consent__aktionen {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.frk-consent__knopf {
		flex: 1 1 0;
	}

	.frk-consent-dialog {
		padding: 24px 28px;
	}
}
