/* Smart Cookie Consent – Frontend Styles */

.scc-banner {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 999999;
	display: flex;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

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

.scc-banner-box {
	background: #fff;
	color: #1e1e1e;
	max-width: 640px;
	width: 100%;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	max-height: 85vh;
	overflow-y: auto;
	box-sizing: border-box;
}

.scc-banner-title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	line-height: 1.3;
}

.scc-banner-desc {
	margin: 0 0 12px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.scc-banner-links {
	font-size: 0.85rem;
	margin: 8px 0 16px;
}

.scc-banner-links a {
	color: inherit;
}

/* Kategorien */
.scc-categories {
	display: none;
	margin: 12px 0;
	border-top: 1px solid #e5e5e5;
	padding-top: 12px;
}

.scc-categories.scc-open {
	display: block;
}

.scc-cat {
	margin-bottom: 16px;
}

.scc-cat-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
}

.scc-cat-toggle {
	width: 18px;
	height: 18px;
}

.scc-cat-desc {
	margin: 4px 0 0 26px;
	font-size: 0.85rem;
	color: #555;
}

.scc-cat-services {
	margin: 8px 0 0 26px;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
	color: #444;
}

.scc-cat-services li {
	margin-bottom: 10px;
	padding-left: 10px;
	border-left: 2px solid #ececec;
}

.scc-svc-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
}

.scc-svc-head input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.scc-svc-head input[type="checkbox"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.scc-svc-name {
	font-size: 0.85rem;
}

.scc-svc-purpose {
	margin: 4px 0 0 24px;
	font-size: 0.78rem;
	color: #666;
	line-height: 1.4;
}

.scc-svc-purpose a {
	color: #2271b1;
}

/* Fragezeichen-Button + Detail-Panel */
.scc-svc-info {
	margin-left: 8px;
	width: 18px;
	height: 18px;
	line-height: 16px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #c3ccd6;
	background: #fff;
	color: #2271b1;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	flex: 0 0 auto;
}

.scc-svc-info:hover,
.scc-svc-info-open {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.scc-svc-detail {
	margin: 8px 0 4px 24px;
	padding: 10px 12px;
	background: #f7f9fb;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 0.78rem;
}

.scc-detail-row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	padding: 4px 0;
	border-bottom: 1px solid #eef2f6;
}

.scc-detail-row:last-child {
	border-bottom: none;
}

.scc-detail-label {
	font-weight: 600;
	color: #333;
	flex: 0 0 40%;
	min-width: 130px;
}

.scc-detail-value {
	color: #555;
	flex: 1 1 50%;
	word-break: break-word;
}

.scc-detail-value a {
	color: #2271b1;
	word-break: break-all;
}

.scc-detail-cookies {
	margin-top: 8px;
}

.scc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 6px;
	font-size: 0.74rem;
}

.scc-cookie-table th,
.scc-cookie-table td {
	text-align: left;
	padding: 4px 6px;
	border: 1px solid #e2e8f0;
	vertical-align: top;
}

.scc-cookie-table th {
	background: #eef2f6;
	font-weight: 600;
}

.scc-cookie-table code {
	font-size: 0.72rem;
	background: #eef2f6;
	padding: 1px 4px;
	border-radius: 3px;
}

/* Buttons */
.scc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.scc-btn {
	flex: 1 1 auto;
	min-width: 120px;
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 0.9rem;
	cursor: pointer;
	font-weight: 600;
}

.scc-btn-accept {
	background: #1a7f37;
	color: #fff;
}

.scc-btn-reject,
.scc-btn-settings {
	background: #f2f2f2;
	color: #1e1e1e;
	border-color: #d5d5d5;
}

.scc-btn-save {
	background: #2271b1;
	color: #fff;
}

.scc-btn:hover {
	filter: brightness(0.95);
}

/* Reopen-Button */
.scc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: #2271b1;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.scc-reopen span,
.scc-reopen .scc-reopen-icon {
	display: block;
	line-height: 1;
}

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

/* Content-Blocker Platzhalter */
.scc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
	border: 1px dashed #c3ccd6;
	border-radius: 10px;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
}

.scc-placeholder-inner {
	max-width: 460px;
}

.scc-placeholder-icon {
	font-size: 32px;
	color: #2271b1;
	margin-bottom: 8px;
}

.scc-placeholder-text {
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 14px;
	color: #1e1e1e;
}

.scc-placeholder-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 10px;
}

.scc-ph-load,
.scc-ph-allow {
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid #d5d5d5;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
}

.scc-ph-load {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.scc-ph-allow {
	background: #fff;
	color: #1e1e1e;
}

.scc-placeholder-meta {
	font-size: 0.75rem;
	color: #666;
	margin: 0;
}

.scc-placeholder-meta a {
	color: #2271b1;
}

@media (max-width: 480px) {
	.scc-btn {
		flex: 1 1 100%;
	}
}
