/*! line-up Cookie Consent */
.lucc, .lucc *, .lucc-embed, .lucc-embed *, .lucc-reopen { box-sizing: border-box; }
.lucc[hidden], .lucc [hidden], .lucc-reopen[hidden] { display: none !important; }

.lucc {
	position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
	font-family: inherit; font-size: var(--lucc-fs, 15px); line-height: 1.5; color: var(--lucc-text);
}
.lucc-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); pointer-events: auto; animation: lucc-fade .2s ease; }

.lucc-panel {
	position: absolute; pointer-events: auto; background: var(--lucc-bg); color: var(--lucc-text);
	border-radius: var(--lucc-radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
	padding: 1.5em; max-height: calc(100vh - 32px); overflow-y: auto; outline: none;
	animation: lucc-up .25s ease;
}
.lucc--box-left  .lucc-panel { left: 16px; bottom: 16px; width: 420px; max-width: calc(100vw - 32px); }
.lucc--box-right .lucc-panel { right: 16px; bottom: 16px; width: 420px; max-width: calc(100vw - 32px); }
.lucc--modal     .lucc-panel { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; max-width: calc(100vw - 32px); animation: lucc-fade .2s ease; }
.lucc--bar       .lucc-panel { left: 0; right: 0; bottom: 0; border-radius: var(--lucc-radius) var(--lucc-radius) 0 0; padding: 1.25em max(1.5em, calc((100vw - 1200px) / 2)); }

.lucc--bar:not(.lucc--details) .lucc-panel { display: grid; grid-template-columns: 1fr auto; column-gap: 2em; align-items: center; }
.lucc--bar:not(.lucc--details) .lucc-title,
.lucc--bar:not(.lucc--details) .lucc-msg,
.lucc--bar:not(.lucc--details) .lucc-links { grid-column: 1; }
.lucc--bar:not(.lucc--details) .lucc-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; }

.lucc-title { margin: 0 0 .5em; font-size: 1.2em; font-weight: 700; line-height: 1.3; color: inherit; }
.lucc-msg { margin: 0 0 1em; }
.lucc-msg p { margin: 0 0 .5em; }
.lucc a { color: var(--lucc-link); text-decoration: underline; text-underline-offset: 2px; }

.lucc-cats { margin: 0 0 1em; display: grid; gap: .6em; }
.lucc-cat { border: 1px solid color-mix(in srgb, var(--lucc-text) 14%, transparent); border-radius: calc(var(--lucc-radius) * .7); padding: .8em 1em; }
.lucc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; cursor: pointer; margin: 0; }
.lucc-cat-title { font-weight: 600; }
.lucc-cat-desc, .lucc-cat-svc { margin: .4em 0 0; font-size: .88em; opacity: .85; }

.lucc-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.lucc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.lucc-slider { position: absolute; inset: 0; border-radius: 24px; background: color-mix(in srgb, var(--lucc-text) 25%, transparent); transition: background .2s; }
.lucc-slider::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.lucc-switch input:checked + .lucc-slider { background: var(--lucc-toggle); }
.lucc-switch input:checked + .lucc-slider::after { transform: translateX(18px); }
.lucc-switch input:disabled { cursor: not-allowed; }
.lucc-switch input:disabled + .lucc-slider { opacity: .55; }
.lucc-switch input:focus-visible + .lucc-slider { outline: 2px solid var(--lucc-toggle); outline-offset: 2px; }

.lucc-actions { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 .75em; }
.lucc-btn {
	flex: 1 1 auto; min-height: 44px; padding: .6em 1.1em; border: 0; border-radius: var(--lucc-btn-radius);
	font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
	background: var(--lucc-second); color: var(--lucc-second-tx); transition: filter .15s, transform .05s;
}
.lucc-btn:hover { filter: brightness(.94); }
.lucc-btn:active { transform: translateY(1px); }
.lucc-btn:focus-visible { outline: 2px solid var(--lucc-primary); outline-offset: 2px; }
.lucc-btn--accept, .lucc--equal .lucc-btn--reject { background: var(--lucc-primary); color: var(--lucc-primary-tx); }
.lucc-btn--accept:hover, .lucc--equal .lucc-btn--reject:hover { filter: brightness(1.15); }

.lucc-links { display: flex; gap: .5em; font-size: .85em; opacity: .85; }

.lucc-reopen {
	position: fixed; bottom: 16px; z-index: 2147482999; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	display: grid; place-items: center; cursor: pointer; background: var(--lucc-bg); color: var(--lucc-text);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .15s;
}
.lucc-reopen:hover { transform: scale(1.08); }
.lucc-reopen--left { left: 16px; }
.lucc-reopen--right { right: 16px; }

/* ---------- Platzhalter für Videos / Karten ---------- */
.lucc-embed { position: relative; width: 100%; overflow: hidden; border-radius: calc(var(--lucc-radius) * .6); }
.lucc-embed:not(.lucc-embed--loaded) { background: var(--lucc-ph-bg); color: var(--lucc-ph-tx); }
.lucc-embed--ratio.lucc-embed--loaded > iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.lucc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.25em; overflow: auto; }
.lucc-ph-inner { max-width: 480px; text-align: center; font-size: 14px; line-height: 1.5; }
.lucc-ph-title { margin: 0 0 .35em; font-size: 1.15em; font-weight: 700; color: inherit; }
.lucc-ph-text { margin: 0 0 1em; opacity: .9; color: inherit; }
.lucc-ph-text a { color: inherit; text-decoration: underline; }
.lucc-ph-btn {
	display: inline-block; min-height: 40px; padding: .55em 1.3em; border: 0; border-radius: var(--lucc-btn-radius);
	background: var(--lucc-primary); color: var(--lucc-primary-tx); font: inherit; font-weight: 600; cursor: pointer;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.lucc-ph-btn:hover { filter: brightness(1.15); }
.lucc-ph-always { display: flex; justify-content: center; align-items: center; gap: .4em; margin: .8em 0 0; font-size: .9em; cursor: pointer; opacity: .9; }
.lucc-ph-always input { margin: 0; }

/* Gutenberg-Embeds mit festem Seitenverhältnis */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .lucc-embed { position: absolute; inset: 0; max-width: none !important; aspect-ratio: auto !important; border-radius: 0; }

@keyframes lucc-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lucc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
	.lucc--box-left .lucc-panel, .lucc--box-right .lucc-panel, .lucc--bar .lucc-panel {
		left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; padding: 1.2em; border-radius: var(--lucc-radius);
	}
	.lucc--bar:not(.lucc--details) .lucc-panel { display: block; }
	.lucc-actions { flex-direction: column-reverse; }
	.lucc-btn { width: 100%; }
	.lucc-ph-inner { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lucc-panel, .lucc-overlay { animation: none; } }
