.ecc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--ecc-zindex, 999999);
	background: var(--ecc-bg, #fff);
	color: var(--ecc-text, #1a1a1a);
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
	font-size: 15px;
	line-height: 1.5;
}

.ecc-banner.ecc-position-top {
	top: 0;
	bottom: auto;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.ecc-banner[hidden] {
	display: none;
}

.ecc-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px;
}

.ecc-banner-title {
	margin: 0 0 8px;
	font-size: 18px;
}

.ecc-banner-text {
	margin: 0 0 16px;
}

.ecc-banner-text a {
	color: var(--ecc-accent, #2f6f4f);
	text-decoration: underline;
}

.ecc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ecc-btn {
	border: 1px solid var(--ecc-accent, #2f6f4f);
	background: transparent;
	color: var(--ecc-text, #1a1a1a);
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.ecc-btn-primary {
	background: var(--ecc-accent, #2f6f4f);
	color: #fff;
}

/*
 * Ablehnen und Akzeptieren müssen bei der ERSTEN Anzeige (noch keine
 * Entscheidung getroffen) optisch gleichwertig sein (gleiche Größe, gleiches
 * Gewicht, gleiche Ebene) – kein "Nudging" durch unterschiedliche
 * Auffälligkeit. Deshalb ist die neutrale Grundfarbe für beide identisch.
 *
 * Sobald eine Entscheidung vorliegt (Cookie gesetzt) und das Banner erneut
 * geöffnet wird, markiert JavaScript (siehe consent.js, updateButtonStates())
 * den aktuell aktiven Button zusätzlich mit .ecc-btn-active (Primärfarbe)
 * und den anderen mit .ecc-btn-muted (ausgegraut) - das zeigt lediglich den
 * bestehenden Status an und beeinflusst die erste, gleichwertige Anzeige
 * nicht.
 */
.ecc-btn-decision {
	font-weight: 700;
	background: #e2e2e2;
	border-color: #e2e2e2;
	color: #1a1a1a;
}

.ecc-btn-decision.ecc-btn-active {
	background: var(--ecc-accent, #2f6f4f);
	border-color: var(--ecc-accent, #2f6f4f);
	color: #fff;
}

.ecc-btn-decision.ecc-btn-muted {
	background: #f0f0f0;
	border-color: #f0f0f0;
	color: #9a9a9a;
}

.ecc-btn:hover {
	opacity: 0.85;
}

/*
 * Reiner Info-Text unterhalb der beiden Buttons - nicht interaktiv, kein
 * Formular, keine Checkboxen. Erklärt nur, was bei "Alle akzeptieren" bzw.
 * "Nur notwendige" jeweils passiert.
 */
.ecc-banner-legend {
	margin-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 12px;
	font-size: 13px;
	opacity: 0.9;
}

.ecc-legend-heading {
	margin: 8px 0 4px;
}

.ecc-legend-list {
	margin: 0 0 8px;
	padding-left: 20px;
}

.ecc-legend-list li {
	margin-bottom: 4px;
}

.ecc-inline-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--ecc-accent, #2f6f4f);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.ecc-embed {
	position: relative;
}

.ecc-embed-placeholder {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	padding: 32px 20px;
	text-align: center;
	background: #f7f7f7;
}

body.ecc-banner-open {
	scrollbar-gutter: stable;
}

.ecc-reopen {
	position: fixed;
	bottom: 16px;
	z-index: calc(var(--ecc-zindex, 999999) - 1);
	background: var(--ecc-accent, #2f6f4f);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ecc-reopen-left {
	left: 16px;
}

.ecc-reopen-right {
	right: 16px;
}

.ecc-reopen[hidden] {
	display: none;
}

.ecc-reopen:hover {
	opacity: 0.9;
}

@media (max-width: 640px) {
	.ecc-banner-actions {
		flex-direction: column;
	}
	.ecc-btn {
		width: 100%;
	}
}
