/* Reinix Cookie Consent – angepasst an das Designsystem „Die Kante“ (nutzt dessen Farbwerte, mit Rückfallwerten) */
.rxcc-banner, .rxcc-dialog {
	--rxcc-nacht: var(--nacht, #07121F);
	--rxcc-navy: var(--navy, #0B1F36);
	--rxcc-kante: var(--kante-hell, #8FB8E6);
	--rxcc-papier: var(--papier, #F7F8FA);
	--rxcc-linie: var(--linie, #D5DBE1);
	--rxcc-grau: var(--grau, #4A535E);
	--rxcc-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
	font-family: Archivo, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.rxcc-banner[hidden] { display: none !important; }

/* ---------- Banner ---------- */
.rxcc-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: var(--rxcc-nacht); color: #fff;
	border-top: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 -12px 40px rgba(7, 18, 31, .18);
	transform: translateY(100%); opacity: 0;
	transition: transform .6s var(--rxcc-ease), opacity .4s var(--rxcc-ease);
}
.rxcc-banner.is-sichtbar { transform: none; opacity: 1; }
.rxcc-banner__inner {
	max-width: 1440px; margin: 0 auto;
	padding: 28px clamp(20px, 4vw, 64px) calc(28px + env(safe-area-inset-bottom));
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(32px, 5vw, 80px); align-items: end;
}
.rxcc-banner__titel {
	position: relative; margin: 0 0 10px; padding-top: 18px;
	font-size: 1.25rem; line-height: 1.25; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; color: #fff;
}
.rxcc-banner__titel::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 2px; background: var(--rxcc-kante); }
.rxcc-banner__text p { margin: 0; max-width: 72ch; font-size: .9375rem; line-height: 1.55; color: rgba(255, 255, 255, .76); }
.rxcc-banner__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px !important; }
.rxcc-banner a, .rxcc-dialog a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rxcc-banner a:hover { color: #fff; }
.rxcc-banner__aktionen { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Buttons (Zustimmen und Ablehnen gleich gewichtet) ---------- */
.rxcc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
	font: inherit; font-size: .9375rem; line-height: 1.2; font-weight: 600; font-stretch: 104%;
	white-space: nowrap; cursor: pointer;
	transition: background-color .3s var(--rxcc-ease), color .3s var(--rxcc-ease), border-color .3s var(--rxcc-ease), transform .2s var(--rxcc-ease);
}
.rxcc-btn:active { transform: scale(.98); }
.rxcc-btn--hell { background: #fff; color: var(--rxcc-nacht); }
.rxcc-btn--hell:hover { background: var(--nebel, #EEF1F4); }
.rxcc-btn--linie { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.rxcc-btn--linie:hover { border-color: #fff; }
.rxcc-btn--dunkel { background: var(--rxcc-nacht); color: #fff; }
.rxcc-btn--dunkel:hover { background: var(--tiefblau, #143A63); }
.rxcc-btn--linie-dunkel { background: transparent; color: var(--rxcc-nacht); border-color: rgba(7, 18, 31, .24); }
.rxcc-btn--linie-dunkel:hover { border-color: var(--rxcc-nacht); }
.rxcc-banner :focus-visible, .rxcc-dialog :focus-visible { outline: 2px solid var(--rxcc-kante); outline-offset: 3px; }
.rxcc-dialog :focus-visible { outline-color: var(--kante, #1F6FD1); }

/* ---------- Einstellungen ---------- */
.rxcc-dialog {
	width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 880px);
	padding: 0; border: 0; border-radius: 4px;
	background: var(--rxcc-papier); color: var(--rxcc-nacht);
	box-shadow: 0 32px 80px rgba(7, 18, 31, .35);
	overflow: hidden;
}
.rxcc-dialog[open] { display: flex; animation: rxcc-in .5s var(--rxcc-ease); }
.rxcc-dialog::backdrop { background: rgba(7, 18, 31, .56); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes rxcc-in { from { opacity: 0; transform: translateY(16px); } }
.rxcc-dialog__form { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; }
.rxcc-dialog__kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px 0; }
.rxcc-dialog__kopf h2 { position: relative; margin: 0; padding-top: 18px; font-size: 1.75rem; line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -0.025em; }
.rxcc-dialog__kopf h2::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 2px; background: var(--kante, #1F6FD1); }
.rxcc-schliessen { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid var(--rxcc-linie); border-radius: 999px; background: none; cursor: pointer; }
.rxcc-schliessen span::before, .rxcc-schliessen span::after { content: ""; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: var(--rxcc-nacht); transform: rotate(45deg); }
.rxcc-schliessen span::after { transform: rotate(-45deg); }
.rxcc-schliessen:hover { border-color: var(--rxcc-nacht); }
.rxcc-dialog .rxcc-dialog__intro { margin: 16px 0 0; padding: 0 32px; font-size: .9375rem; line-height: 1.55; color: var(--rxcc-grau); }
.rxcc-dialog .rxcc-kategorien { list-style: none; margin: 0; padding: 24px 32px 0; overflow-y: auto; flex: 1 1 auto; border-top: 0; }
.rxcc-kategorie { padding: 20px 0; border-top: 1px solid var(--rxcc-linie); }
.rxcc-kategorie:first-child { border-top-color: var(--rxcc-nacht); }
.rxcc-kategorie__zeile { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rxcc-kategorie h3 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.3; font-weight: 600; font-stretch: 106%; }
.rxcc-kategorie p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--rxcc-grau); }
.rxcc-immer { flex: none; padding-top: 2px; font-size: .8125rem; font-weight: 600; color: var(--rxcc-grau); white-space: nowrap; }

/* Schalter */
.rxcc-schalter { position: relative; flex: none; display: inline-block; width: 52px; height: 30px; cursor: pointer; }
.rxcc-schalter input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rxcc-schalter span { position: absolute; inset: 0; border-radius: 999px; background: #B8C1CB; transition: background-color .3s var(--rxcc-ease); pointer-events: none; }
.rxcc-schalter span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(7, 18, 31, .3); transition: transform .3s var(--rxcc-ease); }
.rxcc-schalter input:checked + span { background: var(--rxcc-nacht); }
.rxcc-schalter input:checked + span::after { transform: translateX(22px); }
.rxcc-schalter input:focus-visible + span { outline: 2px solid var(--kante, #1F6FD1); outline-offset: 3px; }

.rxcc-dienste { margin-top: 12px; }
.rxcc-dienste summary { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; cursor: pointer; list-style: none; }
.rxcc-dienste summary::-webkit-details-marker { display: none; }
.rxcc-dienste summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--rxcc-ease); }
.rxcc-dienste[open] summary::after { transform: translateY(1px) rotate(225deg); }
.rxcc-dienst { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; padding: 16px; background: #fff; font-size: .8125rem; line-height: 1.5; }
.rxcc-dienst dt { color: var(--rxcc-grau); }
.rxcc-dienst dd { margin: 0; overflow-wrap: anywhere; }
.rxcc-dialog__fuss { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 32px 28px; border-top: 1px solid var(--rxcc-linie); background: var(--rxcc-papier); }
.rxcc-dialog__fuss .rxcc-btn { flex: 1 1 auto; }
html.rxcc-offen { overflow: hidden; }

/* ---------- Tabelle in der Datenschutzerklärung ---------- */
.rxcc-tabelle { overflow-x: auto; margin: 1em 0; }
.rxcc-tabelle table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.rxcc-tabelle th, .rxcc-tabelle td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--linie, #D5DBE1); text-align: left; vertical-align: top; }
.rxcc-tabelle th { font-weight: 600; border-bottom-color: var(--nacht, #07121F); }

/* ---------- Tablet und Smartphone ---------- */
@media (max-width: 999px) {
	.rxcc-banner__inner { grid-template-columns: 1fr; align-items: start; }
	.rxcc-banner__aktionen { justify-content: flex-start; }
}
@media (max-width: 600px) {
	.rxcc-banner__inner { padding-top: 22px; gap: 18px; }
	.rxcc-banner__text p { font-size: .875rem; }
	.rxcc-banner__aktionen { display: grid; grid-template-columns: 1fr 1fr; }
	.rxcc-banner__aktionen .rxcc-btn { width: 100%; padding: 0 12px; white-space: normal; text-align: center; }
	.rxcc-banner__aktionen .rxcc-btn--linie { grid-column: 1 / -1; }
	.rxcc-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
	.rxcc-dialog__kopf { padding: 22px 20px 0; }
	.rxcc-dialog .rxcc-dialog__intro { padding: 0 20px; }
	.rxcc-dialog .rxcc-kategorien { padding: 20px 20px 0; }
	.rxcc-dialog__fuss { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
	.rxcc-dialog__fuss .rxcc-btn { flex-basis: 100%; }
	.rxcc-dienst { grid-template-columns: 1fr; gap: 2px; }
	.rxcc-dienst dd + dt { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.rxcc-banner, .rxcc-banner.is-sichtbar { transition: none; }
	.rxcc-dialog[open] { animation: none; }
}
/* Mobile Schnellkontakt-Leiste des Themes nicht vom Banner überdecken lassen */
body:has(.rxcc-banner.is-sichtbar) .rx-actionbar { opacity: 0; pointer-events: none; }
