/*
 * Overlay für Mitteilung und vollständiges GARAN-Label.
 *
 * Die amtliche Grafik ist der Inhalt und die einzige Farbe. Das Fenster ringsum
 * tritt vollständig zurück: weiße Fläche, Haarlinien, keine Radien, kein farbiges
 * Kopfband, kein Schatten außer einer flachen Abhebung vom Hintergrund.
 */

:host {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
}

.backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 24, 24, .55);
}

.dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(840px, calc(100vw - 48px));
	max-height: calc(100vh - 72px);
	margin: 36px auto;
	background: var(--heuc-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 12px 40px rgba(0, 0, 0, .18);
	overflow: hidden;
}

/* ── Kopf ──────────────────────────────────────────────────────────────── */

.head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--heuc-hairline);
}

.head__mark {
	flex: 0 0 auto;
	height: 30px;
}

.head__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.head__eyebrow {
	font-size: 11.5px;
	line-height: 1.3;
	color: var(--heuc-ink-3);
}

.head__title {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--heuc-ink);
}

.close {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--heuc-ink-2);
	transition: color .18s ease;
}

.close:hover {
	color: var(--heuc-ink);
}

.close svg {
	width: 16px;
	height: 16px;
}

/* ── Inhalt ────────────────────────────────────────────────────────────── */

.body {
	flex: 1 1 auto;
	padding: 32px 24px;
	overflow: auto;
	background: var(--heuc-bg-subtle);
	-webkit-overflow-scrolling: touch;
}

.figure {
	margin: 0 auto;
	max-width: 480px;
}

.figure img,
.figure svg {
	width: 100%;
	height: auto;
	margin: 0 auto;
	background: var(--heuc-bg);
	border: 1px solid var(--heuc-hairline);
}

.note {
	margin: 20px auto 0;
	max-width: 56ch;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--heuc-ink-2);
	text-align: center;
}

.loading,
.error {
	padding: 56px 0;
	font-size: 13px;
	color: var(--heuc-ink-3);
	text-align: center;
}

/* ── Fuß ───────────────────────────────────────────────────────────────── */

.foot {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding: 16px 24px;
	border-top: 1px solid var(--heuc-hairline);
	background: var(--heuc-bg);
}

.foot a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--heuc-ink-2);
	border-bottom: 1px solid var(--heuc-hairline-strong);
	padding-bottom: 1px;
	transition: color .18s ease, border-color .18s ease;
}

.foot a:hover {
	color: var(--heuc-ink);
	border-color: var(--heuc-ink);
}

.foot a svg {
	width: 12px;
	height: 12px;
}

.foot__spacer {
	margin-left: auto;
}

.foot__close {
	padding: 9px 20px;
	border: 1px solid var(--heuc-ink);
	font-size: 13px;
	color: var(--heuc-ink);
	transition: background-color .18s ease, color .18s ease;
}

.foot__close:hover {
	background: var(--heuc-ink);
	color: var(--heuc-bg);
}

.foot:empty {
	display: none;
}

/* ── Mobil: bildschirmfüllend ──────────────────────────────────────────── */

@media (max-width: 700px) {
	.dialog {
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		box-shadow: none;
	}

	.head {
		padding: 16px;
	}

	.head__title {
		font-size: 15.5px;
	}

	.body {
		padding: 20px 16px;
	}

	.foot {
		padding: 14px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
