/*! hapo Cookie Blocker – banner.css */
#hcb-root,
#hcb-root *,
.hcb-ph,
.hcb-ph * { box-sizing: border-box; }

#hcb-root[hidden],
#hcb-root [hidden],
#hcb-float[hidden] { display: none !important; }

#hcb-root {
	position: fixed;
	z-index: 2147483000;
	font-family: var(--hcb-font, inherit);
	font-size: var(--hcb-font-size, 15px);
	line-height: 1.5;
	color: var(--hcb-text, #1f2328);
}

.hcb--bar { left: 0; right: 0; bottom: 0; padding: 16px; }
.hcb--bar .hcb-dialog { max-width: var(--hcb-width, 1100px); margin: 0 auto; }

.hcb--box-left,
.hcb--box-right { bottom: 0; padding: 16px; width: 100%; max-width: calc(var(--hcb-width, 420px) + 32px); }
.hcb--box-left { left: 0; }
.hcb--box-right { right: 0; }

.hcb--modal { top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hcb--modal .hcb-dialog { width: 100%; max-width: var(--hcb-width, 620px); }
.hcb-overlay { display: none; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--hcb-overlay, rgba(0, 0, 0, .45)); }
.hcb--modal .hcb-overlay { display: block; }

.hcb-logo { display: block; height: var(--hcb-logo-h, 40px); width: auto; max-width: 100%; margin: 0 0 12px; }

.hcb-dialog {
	position: relative;
	background: var(--hcb-bg, #fff);
	color: var(--hcb-text, #1f2328);
	border: var(--hcb-border, none);
	border-radius: var(--hcb-radius, 10px);
	box-shadow: var(--hcb-shadow, 0 10px 40px rgba(0, 0, 0, .25));
	padding: 22px 24px;
	max-height: calc(100vh - 32px);
	overflow: auto;
}

.hcb-title { margin: 0 0 8px; font-size: 1.2em; font-weight: 700; line-height: 1.3; color: inherit; }
.hcb-text { margin: 0 0 16px; color: inherit; }
.hcb-text a,
.hcb-links a,
.hcb-cat a { color: var(--hcb-primary, #1a5fb4); text-decoration: underline; }

.hcb-details { margin: 0 0 16px; border-top: 1px solid rgba(127, 127, 127, .25); }
.hcb-cat { padding: 12px 0; border-bottom: 1px solid rgba(127, 127, 127, .25); }
.hcb-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; margin: 0; }
.hcb-cat p { margin: 4px 0 0; font-size: .87em; opacity: .85; }

#hcb-root .hcb-switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	margin: 0;
	border: 0;
	border-radius: 24px;
	background: var(--hcb-switch-off, #b9bdc3);
	cursor: pointer;
	transition: background .2s;
}
#hcb-root .hcb-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--hcb-switch-knob, #fff);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
#hcb-root .hcb-switch:checked { background: var(--hcb-switch-on, var(--hcb-primary, #1a5fb4)); }
#hcb-root .hcb-switch:checked::after { transform: translateX(20px); }
#hcb-root .hcb-switch:disabled { opacity: .55; cursor: not-allowed; }
#hcb-root .hcb-switch:focus-visible { outline: 2px solid var(--hcb-primary, #1a5fb4); outline-offset: 2px; }

.hcb-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/*
 * Buttons: bewusst hohe Spezifität (#id bzw. body + Klassen), damit Theme- und
 * Page-Builder-Styles für <button> (z. B. Hello Elementor #c36, Elementor-Kit) nicht greifen.
 */
#hcb-root .hcb-btn,
body .hcb-ph .hcb-btn.hcb-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: var(--hcb-btn-bw, 2px) solid var(--hcb-btn-border, var(--hcb-btn-bg, var(--hcb-primary, #1a5fb4)));
	border-radius: var(--hcb-btn-radius, 8px);
	background: var(--hcb-btn-bg, var(--hcb-primary, #1a5fb4));
	background-image: none;
	color: var(--hcb-primary-text, #fff);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	text-shadow: none;
	letter-spacing: normal;
	white-space: normal;
	cursor: pointer;
	box-shadow: none;
	transition: filter .15s;
	filter: none;
}
#hcb-root .hcb-btn:hover,
#hcb-root .hcb-btn:focus,
#hcb-root .hcb-btn:active,
body .hcb-ph .hcb-btn.hcb-btn:hover,
body .hcb-ph .hcb-btn.hcb-btn:focus,
body .hcb-ph .hcb-btn.hcb-btn:active {
	background: var(--hcb-btn-bg, var(--hcb-primary, #1a5fb4));
	background-image: none;
	color: var(--hcb-primary-text, #fff);
	border-color: var(--hcb-btn-border, var(--hcb-btn-bg, var(--hcb-primary, #1a5fb4)));
	text-decoration: none;
	box-shadow: none;
}
#hcb-root .hcb-btn:hover,
body .hcb-ph .hcb-btn.hcb-btn:hover { filter: brightness(1.1); }

#hcb-root .hcb-btn--ghost,
#hcb-root .hcb-btn--ghost:hover,
#hcb-root .hcb-btn--ghost:focus,
#hcb-root .hcb-btn--ghost:active,
body .hcb-ph .hcb-btn.hcb-btn--ghost,
body .hcb-ph .hcb-btn.hcb-btn--ghost:hover,
body .hcb-ph .hcb-btn.hcb-btn--ghost:focus,
body .hcb-ph .hcb-btn.hcb-btn--ghost:active {
	background: var(--hcb-ghost-bg, transparent);
	color: var(--hcb-ghost, var(--hcb-primary, #1a5fb4));
	border-color: var(--hcb-ghost, var(--hcb-primary, #1a5fb4));
}
#hcb-root .hcb-btn--ghost:hover,
body .hcb-ph .hcb-btn.hcb-btn--ghost:hover { filter: brightness(.96); background: var(--hcb-ghost-bg, rgba(127, 127, 127, .08)); }

#hcb-root .hcb-btn:focus:not(:focus-visible),
body .hcb-ph .hcb-btn.hcb-btn:focus:not(:focus-visible) { outline: none; }
#hcb-root .hcb-btn:focus-visible,
body .hcb-ph .hcb-btn.hcb-btn:focus-visible { outline: 3px solid var(--hcb-primary, #1a5fb4); outline-offset: 2px; }

/* Links gegen Theme-Linkfarben absichern */
#hcb-root a,
#hcb-root a:hover,
#hcb-root a:focus,
body .hcb-ph a.hcb-ph__link { color: var(--hcb-primary, #1a5fb4); text-decoration: underline; }

.hcb-links { margin: 12px 0 0; font-size: .87em; }

/* Kopfzeile: Logo links, Hinweis mittig (kostenlose Version), rechts Platz für das X */
#hcb-root .hcb-head {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 6px 16px;
	margin: 0 0 12px;
}
#hcb-root .hcb-head--empty { display: none; }
/* Bezahlversion: hapo-Hinweis nur in der geöffneten Ansicht */
#hcb-root .hcb-dialog a.hcb-brand.hcb-brand--details { display: none; }
#hcb-root.hcb-is-details .hcb-dialog a.hcb-brand.hcb-brand--details { display: block; }
#hcb-root.hcb-is-details .hcb-head--empty { display: grid; }
#hcb-root .hcb-head .hcb-logo { grid-column: 1; justify-self: start; margin: 0; max-width: none; }
#hcb-root .hcb-dialog a.hcb-brand,
#hcb-root .hcb-dialog a.hcb-brand:visited {
	grid-column: 2;
	justify-self: center;
	text-align: center;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--hcb-text, #1f2328);
	text-decoration: none;
	opacity: .6;
	background: none;
	border: 0;
	box-shadow: none;
}
#hcb-root .hcb-dialog a.hcb-brand:hover,
#hcb-root .hcb-dialog a.hcb-brand:focus { opacity: 1; color: var(--hcb-primary, #1a5fb4); text-decoration: underline; }
@media (max-width: 560px) {
	#hcb-root .hcb-head { grid-template-columns: 1fr; justify-items: center; }
	#hcb-root .hcb-head .hcb-logo,
	#hcb-root .hcb-dialog a.hcb-brand { grid-column: 1; justify-self: center; }
	#hcb-root .hcb-head .hcb-logo { max-width: 100%; }
}

/* Schließen-X oben rechts */
#hcb-root .hcb-dialog .hcb-close,
#hcb-root .hcb-dialog .hcb-close:hover,
#hcb-root .hcb-dialog .hcb-close:focus,
#hcb-root .hcb-dialog .hcb-close:active {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--hcb-text, #1f2328);
	box-shadow: none;
	cursor: pointer;
	opacity: .6;
	filter: none;
	line-height: 1;
}
#hcb-root .hcb-dialog .hcb-close:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
#hcb-root .hcb-dialog .hcb-close:focus:not(:focus-visible) { outline: none; }
#hcb-root .hcb-dialog .hcb-close:focus-visible { opacity: 1; outline: 2px solid var(--hcb-primary, #1a5fb4); outline-offset: 1px; }
#hcb-root .hcb-dialog .hcb-close svg { width: 18px; height: 18px; display: block; }
#hcb-root .hcb-title { padding-right: 32px; }
#hcb-root .hcb-head:not(.hcb-head--empty) + .hcb-title { padding-right: 0; }
/* Ohne Überschrift und ohne Kopfzeile: Text hält Abstand zum X */
#hcb-root .hcb-head--empty + .hcb-text { padding-right: 32px; }

/* Ausrichtung der Buttons */
#hcb-root.hcb-align-left .hcb-buttons { justify-content: flex-start; }
#hcb-root.hcb-align-center .hcb-buttons { justify-content: center; }
#hcb-root.hcb-align-right .hcb-buttons { justify-content: flex-end; }
#hcb-root.hcb-align-stretch .hcb-btn { flex: 1 1 0; }
#hcb-root.hcb-align-center .hcb-links { text-align: center; }
#hcb-root.hcb-align-right .hcb-links { text-align: right; }

/* Buttons nur untereinander, wenn das Fenster selbst schmal ist (unabhängig vom Layout) */
#hcb-root .hcb-dialog { container-type: inline-size; }
@container (max-width: 470px) {
	#hcb-root .hcb-buttons { flex-direction: column; }
	#hcb-root .hcb-btn { width: 100%; flex: none; }
}
#hcb-root .hcb-dialog:focus { outline: none; }

@media (max-width: 640px) {
	.hcb--bar { padding: 8px; }
	.hcb-dialog { padding: 18px; }
	.hcb-buttons { flex-direction: column; }
	#hcb-root .hcb-btn { width: 100%; flex: none; }
}

/* Schwebender Button */
#hcb-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hcb-primary, #1a5fb4);
	color: var(--hcb-primary-text, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
}
#hcb-float:hover,
#hcb-float:focus,
#hcb-float:active { background: var(--hcb-primary, #1a5fb4); color: var(--hcb-primary-text, #fff); border: 0; filter: brightness(1.1); }
#hcb-float.hcb-float--right { left: auto; right: 16px; }
#hcb-float svg { width: 22px; height: 22px; fill: currentColor; }
#hcb-float:focus-visible { outline: 3px solid var(--hcb-primary, #1a5fb4); outline-offset: 3px; }

/* Platzhalter für blockierte iFrames */
.hcb-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	background: #f2f3f5;
	color: #1f2328;
	border: 1px solid #dcdfe3;
	border-radius: var(--hcb-radius, 8px);
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
}
.hcb-ph--abs { position: absolute; top: 0; right: 0; bottom: 0; left: 0; min-height: 0; }
.hcb-ph__text { margin: 0; max-width: 520px; }
.hcb-ph__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hcb-ph__link { font-size: 13px; color: var(--hcb-primary, #1a5fb4); }
