/* HC Consent – Frontend-Styles. Alle Klassen hcc- prefixed. */

.hcc-modal-overlay,
.hcc-placeholder,
.hcc-footer-link-wrap {
	--hcc-teal: #2C5F5A;
	--hcc-teal-light: #3A7A73;
	--hcc-peach: #E8A87C;
	--hcc-dark: #1A1A1A;
	--hcc-sand: #F0EDE6;
	--hcc-peach-pale: #F7E3D6;
	--hcc-border: #E8E5E0;
	--hcc-text: #666666;
	--hcc-muted: #767676;
	--hcc-white: #FFFFFF;
	--hcc-radius: 8px;
	--hcc-font-heading: 'Cormorant Garamond', Georgia, serif;
	--hcc-font-body: 'Nunito Sans', 'Helvetica Neue', sans-serif;
}

/* ===== Overlay + Modal ===== */
.hcc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.hcc-modal {
	background: var(--hcc-white);
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
	animation: hcc-fade-in 0.3s ease-out;
	font-family: var(--hcc-font-body);
}
@keyframes hcc-fade-in {
	from { opacity: 0; transform: scale(0.95); }
	to   { opacity: 1; transform: scale(1); }
}

/* ===== Header ===== */
.hcc-modal-header {
	background: var(--hcc-teal);
	padding: 1.5rem 2rem;
	border-radius: 12px 12px 0 0;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}
.hcc-logo {
	max-height: 32px;
	width: auto;
	display: block;
}
.hcc-title {
	font-family: var(--hcc-font-heading);
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--hcc-white);
	margin: 0;
	line-height: 1.2;
}

/* ===== Body ===== */
.hcc-modal-body {
	padding: 1.5rem 2rem;
}
.hcc-intro {
	font-family: var(--hcc-font-body);
	font-size: 0.95rem;
	color: var(--hcc-text);
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

/* ===== Kategorie-Blöcke ===== */
.hcc-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	background: var(--hcc-sand);
	border-radius: var(--hcc-radius);
	margin-bottom: 0.8rem;
}
.hcc-category-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.hcc-category-name {
	font-family: var(--hcc-font-body);
	font-weight: 600;
	color: var(--hcc-dark);
	font-size: 1rem;
}
.hcc-category-desc {
	font-size: 0.85rem;
	color: var(--hcc-muted);
	line-height: 1.5;
}

/* ===== Toggle-Switch (CSS-only) ===== */
.hcc-toggle {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	margin-top: 2px;
}
.hcc-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.hcc-toggle-slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.2s;
}
.hcc-toggle-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.hcc-toggle input:checked + .hcc-toggle-slider {
	background: var(--hcc-teal);
}
.hcc-toggle input:checked + .hcc-toggle-slider::before {
	transform: translateX(20px);
}
.hcc-toggle-disabled .hcc-toggle-slider {
	background: var(--hcc-teal);
	opacity: 0.6;
	cursor: not-allowed;
}
.hcc-toggle input:focus-visible + .hcc-toggle-slider {
	outline: 2px solid #2C5F5A;
	outline-offset: 2px;
}

/* ===== Buttons ===== */
.hcc-buttons {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}
.hcc-btn {
	flex: 1;
	font-family: var(--hcc-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 12px 24px;
	border-radius: var(--hcc-radius);
	cursor: pointer;
	transition: all 0.2s;
}
.hcc-btn-primary {
	background: var(--hcc-teal);
	color: var(--hcc-white);
	border: 2px solid var(--hcc-teal);
}
.hcc-btn-primary:hover {
	background: var(--hcc-peach);
	border-color: var(--hcc-peach);
	color: var(--hcc-white);
}
.hcc-btn-secondary {
	background: transparent;
	border: 2px solid var(--hcc-border);
	color: var(--hcc-text);
}
.hcc-btn-secondary:hover {
	border-color: var(--hcc-teal);
	color: var(--hcc-teal);
}

/* ===== Privacy-Link ===== */
.hcc-privacy {
	text-align: center;
	margin-top: 1rem;
}
.hcc-privacy a {
	font-family: var(--hcc-font-body);
	font-size: 0.8rem;
	color: var(--hcc-muted);
	text-decoration: none;
	transition: color 0.2s;
}
.hcc-privacy a:hover {
	color: var(--hcc-teal);
}

/* ===== Platzhalter (geblockte iFrames) ===== */
.hcc-placeholder {
	background: var(--hcc-sand);
	border: 1px dashed var(--hcc-border);
	border-radius: var(--hcc-radius);
	padding: 2.5rem 1.5rem;
	text-align: center;
	font-family: var(--hcc-font-body);
}
.hcc-placeholder-icon {
	font-size: 1.8rem;
	margin-bottom: 0.6rem;
}
.hcc-placeholder-text {
	color: var(--hcc-text);
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0 auto 1.2rem;
	max-width: 420px;
}
.hcc-placeholder-btn {
	font-family: var(--hcc-font-body);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--hcc-white);
	background: var(--hcc-teal);
	border: none;
	padding: 10px 20px;
	border-radius: var(--hcc-radius);
	cursor: pointer;
	transition: background 0.2s;
}
.hcc-placeholder-btn:hover {
	background: var(--hcc-peach);
}

/* ===== Footer-Link ===== */
.hcc-footer-link-wrap {
	text-align: center;
	padding: 1rem 1.5rem;
	background: #1A1A1A;
}
.hcc-footer-link {
	font-family: var(--hcc-font-body);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, .55);
	text-decoration: none;
	transition: color 0.2s;
}
.hcc-footer-link:hover {
	color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
	.hcc-modal-overlay { padding: 0.5rem; }
	.hcc-modal { max-width: 100%; }
	.hcc-modal-header,
	.hcc-modal-body { padding-left: 1.25rem; padding-right: 1.25rem; }
	.hcc-buttons { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
