/* PR Cookie Consent – Frontend-Banner */

#prcc-root, #prcc-root * { box-sizing: border-box; }

.prcc-banner {
	position: fixed;
	z-index: 999999;
	background: var(--prcc-bg, #fff);
	color: var(--prcc-text, #333);
	border-radius: var(--prcc-radius, 12px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	padding: 22px 24px;
	font-family: var(--prcc-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	font-size: 14px;
	line-height: 1.55;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	word-break: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}
.prcc-banner * { max-width: 100%; }

/* Layout: Box (Ecke) */
.prcc-layout-box { width: 420px; max-width: calc(100vw - 32px); }
.prcc-layout-box.prcc-pos-left { left: 16px; bottom: 16px; }
.prcc-layout-box.prcc-pos-right { right: 16px; bottom: 16px; }
.prcc-layout-box.prcc-pos-center { left: 50%; bottom: 16px; transform: translateX(-50%); }
.prcc-layout-box.prcc-pos-middle { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }

/* Layout: Bar (Leiste) */
.prcc-layout-bar { left: 0; right: 0; width: 100%; border-radius: 0; max-width: 100%; }
.prcc-layout-bar.prcc-pos-bottom { bottom: 0; }
.prcc-layout-bar.prcc-pos-top { top: 0; }
.prcc-layout-bar .prcc-banner-inner { max-width: 1100px; margin: 0 auto; }

.prcc-head { display: flex; align-items: center; gap: 10px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.prcc-logo { display: block; width: auto; max-width: 160px; height: auto; }
.prcc-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--prcc-primary, #0E7DB5); flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; }

.prcc-lang { display: flex; gap: 4px; flex-wrap: wrap; max-width: 100%; }
.prcc-lang-btn {
	border: 1px solid #d0d5dd; background: #fff; color: #555;
	border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; line-height: 1;
}
.prcc-lang-btn.is-active { background: var(--prcc-primary, #0E7DB5); color: #fff; border-color: var(--prcc-primary, #0E7DB5); }

.prcc-desc { margin: 0 0 12px; }
.prcc-links { margin: 0 0 14px; font-size: 13px; }
.prcc-links a { color: var(--prcc-link, #0E7DB5); text-decoration: underline; }

.prcc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.prcc-layout-bar .prcc-actions { justify-content: flex-end; }

.prcc-btn {
	border: 0; cursor: pointer; font-size: 14px; font-weight: 600;
	padding: 11px 16px; border-radius: var(--prcc-radius, 12px);
	transition: filter .15s ease, transform .05s ease; flex: 1 1 auto; min-width: 0;
	overflow-wrap: anywhere; white-space: normal;
}
.prcc-btn:hover { filter: brightness(.94); }
.prcc-btn:active { transform: translateY(1px); }
.prcc-btn-accept { background: var(--prcc-accept-bg, #0E7DB5); color: var(--prcc-accept-fg, #fff); }
.prcc-btn-reject { background: var(--prcc-reject-bg, #e9ecef); color: var(--prcc-reject-fg, #333); }
.prcc-btn-settings, .prcc-btn-save {
	background: #fff; color: var(--prcc-primary, #0E7DB5);
	border: 1px solid var(--prcc-primary, #0E7DB5);
}

/* Einstellungen */
.prcc-settings-panel { margin: 6px 0 4px; border-top: 1px solid #eceff3; }
.prcc-cat { padding: 14px 0; border-bottom: 1px solid #eceff3; }
.prcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prcc-cat-title strong { font-size: 15px; color: var(--prcc-primary, #0E7DB5); }
.prcc-always { font-style: normal; font-size: 12px; color: #5BA12B; margin-left: 6px; }
.prcc-cat-desc { margin: 6px 0 0; font-size: 13px; color: #555; }

.prcc-svc-list { margin: 10px 0 0; padding: 10px 12px; background: #f7f9fc; border-radius: 8px; }
.prcc-svc { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.prcc-svc-provider { color: #888; font-weight: 400; margin-left: 4px; }

/* Umschalter */
.prcc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.prcc-switch input { opacity: 0; width: 0; height: 0; }
.prcc-slider {
	position: absolute; inset: 0; background: #cbd2dc; border-radius: 26px; transition: .2s; cursor: pointer;
}
.prcc-slider::before {
	content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%; transition: .2s;
}
.prcc-switch input:checked + .prcc-slider { background: var(--prcc-primary, #0E7DB5); }
.prcc-switch input:checked + .prcc-slider::before { transform: translateX(20px); }
.prcc-switch input:disabled + .prcc-slider { opacity: .6; cursor: not-allowed; }

/* Cookie-Trigger – nur der Keks, ohne Rahmen/Schatten/Hintergrund (gegen Theme-Styles abgesichert) */
.prcc-floating {
	position: fixed; z-index: 999998; cursor: pointer; line-height: 0; width: 52px; height: 52px;
	padding: 0 !important; margin: 0 !important; border: 0 !important; outline: none !important;
	background: transparent !important; background-image: none !important; box-shadow: none !important;
	border-radius: 0 !important; -webkit-appearance: none !important; appearance: none !important;
}
.prcc-floating svg { width: 100%; height: 100%; display: block; }
.prcc-floating:hover { transform-origin: center; filter: brightness(1.04); }
.prcc-floating:focus-visible { outline: 2px solid var(--prcc-primary, #0E7DB5) !important; outline-offset: 3px; border-radius: 50% !important; }

/* Milchglas-Platzhalter für blockierte Inhalte (sichtbar „da ist was", aber nicht nutzbar) */
.prcc-iframe-placeholder { position: relative; }
.prcc-iframe-placeholder.prcc-blocked {
	overflow: hidden; border-radius: var(--prcc-radius, 12px); min-height: 180px;
	background: linear-gradient(135deg, #e9eef5 0%, #dbe3ef 50%, #e9eef5 100%);
}
.prcc-glass {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 20px;
	background: rgba(255, 255, 255, .45);
	-webkit-backdrop-filter: blur(9px) saturate(1.1); backdrop-filter: blur(9px) saturate(1.1);
	font-family: var(--prcc-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	color: #2a2f38;
}
.prcc-glass-inner { max-width: 380px; }
.prcc-glass-icon svg { width: 42px; height: 42px; }
.prcc-glass p { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.prcc-glass-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.prcc-glass-open { flex: 0 0 auto; }
.prcc-glass-load {
	background: transparent; border: 0; padding: 8px 4px; cursor: pointer;
	color: var(--prcc-link, #0E7DB5); text-decoration: underline; font-size: 13px;
}

/* Cookie-Erklärung (Shortcode) */
.prcc-declaration { font-size: 15px; }
.prcc-declaration-intro { margin-bottom: 16px; }
.prcc-decl-btn {
	background: var(--prcc-primary, #0E7DB5); color: #fff; border: 0; cursor: pointer;
	padding: 9px 16px; border-radius: 8px; font-weight: 600;
}
.prcc-decl-controller { background: #f7f9fc; border: 1px solid #e6eaf0; border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.prcc-decl-controller p { margin: 2px 0; }
.prcc-decl-cat { margin: 22px 0 4px; color: var(--prcc-primary, #0E7DB5); }
.prcc-decl-cat-desc { margin: 0 0 10px; color: #555; }
.prcc-decl-service { margin: 0 0 14px; padding: 12px 14px; background: #f7f9fc; border-radius: 8px; }
.prcc-decl-provider { font-size: 13px; color: #777; margin-left: 8px; }
.prcc-decl-service-desc { margin: 4px 0 8px; }
.prcc-decl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prcc-decl-table th, .prcc-decl-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6eaf0; vertical-align: top; }
.prcc-decl-table th { background: #eef2f8; color: #333; }
.prcc-decl-privacy { margin: 8px 0 0; font-size: 13px; }

/* Blockiermodus (modaler Banner mit Overlay) */
.prcc-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 999997; }
html.prcc-noscroll, html.prcc-noscroll body { overflow: hidden !important; }
.prcc-banner.prcc-blocking {
	position: fixed; left: 50%; top: 50%; right: auto; bottom: auto;
	transform: translate(-50%, -50%); width: 460px; max-width: calc(100vw - 32px);
}

/* RTL (z. B. Arabisch) */
.prcc-banner[dir="rtl"] { text-align: right; }
.prcc-banner[dir="rtl"] .prcc-desc,
.prcc-banner[dir="rtl"] .prcc-links,
.prcc-banner[dir="rtl"] .prcc-cat-desc,
.prcc-banner[dir="rtl"] .prcc-cat-title { text-align: right; }
.prcc-glass[dir="rtl"] { direction: rtl; }

/* Responsive – Handy (hoch/quer) & Tablet, saubere Ränder, kein Überlauf */
@media (max-width: 782px) {
	.prcc-layout-box { width: auto; left: 12px; right: 12px; }
	.prcc-layout-box.prcc-pos-left, .prcc-layout-box.prcc-pos-right, .prcc-layout-box.prcc-pos-center { left: 12px; right: 12px; transform: none; }
	.prcc-banner.prcc-blocking { width: auto; left: 12px; right: 12px; transform: translateY(-50%); }
}
@media (max-width: 600px) {
	.prcc-banner { padding: 16px 14px; }
	.prcc-banner.prcc-blocking { left: 8px !important; right: 8px !important; top: 50%; transform: translateY(-50%); width: auto; }
	.prcc-layout-box { left: 8px !important; right: 8px !important; width: auto; transform: none !important; bottom: 8px; }
	.prcc-banner { padding: 18px 16px; font-size: 13.5px; }
	.prcc-actions { flex-direction: column; }
	.prcc-btn { width: 100%; }
	.prcc-layout-bar .prcc-actions { justify-content: stretch; }
}
