/* ==========================================================================
   Impressum (kompakte Fassung, 2026-10-22): Text direkt auf dem Papier-Hintergrund
   mit roten Pinselecken und Kompass (Beitragsbild der Seite), keine Karten.
   Normale Schriftgrößen, Textspalte höchstens 800 px.
   Hintergrund: Papiermitte als Fläche, die beiden Ecken (Pinsel oben links, Kompass
   unten rechts) als eigene Ebenen in Originalproportion, damit sie bei jeder Höhe sichtbar bleiben.
   ========================================================================== */

.angi-legal {
	--angi-legal-paper: #fbe7cd;
	--angi-legal-deco: 120vw;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--angi-legal-paper) var(--angi-legal-bg, none) center / auto 250% no-repeat;
	color: var(--angi-ink);
}

.angi-legal::before,
.angi-legal::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: var(--angi-legal-deco);
	aspect-ratio: 3 / 2;
	background: var(--angi-legal-bg, none) 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}

.angi-legal::before {
	top: 0;
	left: 0;
	-webkit-mask-image: radial-gradient(ellipse 14% 26% at 0 0, #000 70%, transparent 100%);
	mask-image: radial-gradient(ellipse 14% 26% at 0 0, #000 70%, transparent 100%);
}

.angi-legal::after {
	right: 0;
	bottom: 0;
	-webkit-mask-image: radial-gradient(ellipse 36% 44% at 100% 100%, #000 75%, transparent 100%);
	mask-image: radial-gradient(ellipse 36% 44% at 100% 100%, #000 75%, transparent 100%);
}

.angi-legal__inner {
	max-width: calc(50rem + 2 * var(--angi-gutter));
	padding: 3.5rem var(--angi-gutter) calc(24vw + 1.5rem);
}

/* Kopfzeile, Titel und Pinselstrich */
.angi-legal__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--angi-red);
	font-family: var(--angi-font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.angi-legal__title {
	position: relative;
	display: inline-block;
	margin: 0;
	font-family: var(--angi-font-serif);
	font-size: 2.125rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.005em;
	text-transform: uppercase;
}

.angi-legal__title::after {
	content: "";
	position: absolute;
	left: 0;
	width: 80%;
	bottom: -0.36em;
	height: 0.18em;
	background: url("../img/reise/pinsel-unterstrich.png") left center / 100% 100% no-repeat;
	transform: rotate(-1deg);
}

.angi-legal__content {
	margin-top: 1.9rem;
	font-size: 1rem;
	line-height: 1.5;
}

/* Abschnittsüberschrift mit schmalem rotem Akzent links */
.angi-legal__content h2 {
	position: relative;
	margin: 0 0 0.5rem;
	padding-left: 0.75rem;
	font-family: var(--angi-font-serif);
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.25;
}

.angi-legal__content h2::before {
	content: "";
	position: absolute;
	top: 0.12em;
	bottom: 0.08em;
	left: 0;
	width: 3px;
	border-radius: 2px;
	background: var(--angi-red);
}

.angi-legal__content p,
.angi-legal__content ul,
.angi-legal__content ol {
	margin: 0 0 0.4rem;
	padding-left: 0.8rem;
}

.angi-legal__content a {
	color: inherit;
	text-decoration: none;
}

.angi-legal__content a:hover,
.angi-legal__content a:focus-visible {
	color: var(--angi-red-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Telefon und E-Mail mit rotem Symbol */
.angi-legal__content a[href^="tel:"],
.angi-legal__content a[href^="mailto:"] {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	font-weight: 500;
}

.angi-legal__content a[href^="tel:"]::before,
.angi-legal__content a[href^="mailto:"]::before {
	content: "";
	flex: none;
	width: 1.25em;
	height: 1em;
	background: center / contain no-repeat;
}

.angi-legal__content a[href^="tel:"]::before {
	height: 1.25em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e3051b' d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.4 11.4 0 0 0 3.57.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.angi-legal__content a[href^="mailto:"]::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 17'%3E%3Crect width='24' height='17' rx='1.2' fill='%23e3051b'/%3E%3Cpath d='M1.4 1.6 12 9.6l10.6-8M1.4 15.6l7.8-6.7M22.6 15.6l-7.8-6.7' fill='none' stroke='%23fbe7cd' stroke-width='1.5'/%3E%3C/svg%3E");
}

.angi-legal__content > :last-child {
	margin-bottom: 0;
}

/* Feine Trennlinie über die Textbreite, ca. 22 px Abstand je Seite */
.angi-legal__content hr,
.angi-legal__content .wp-block-separator {
	height: 0;
	margin: 1.375rem 0;
	border: 0;
	border-top: 1px solid rgba(20, 20, 20, 0.16);
	opacity: 1;
}

@media (min-width: 37.5em) {
	.angi-legal__title {
		font-size: 2.5rem;
	}

	.angi-legal__content h2 {
		font-size: 1.375rem;
	}
}

/* Desktop: Pinselecken in Originalgröße der Vorlage, Text links mit Abstand dazu */
@media (min-width: 56.25em) {
	.angi-legal {
		--angi-legal-deco: min(100vw, 1536px);
		min-height: 34rem;
	}

	.angi-legal__inner {
		max-width: none;
		padding: 3rem var(--angi-gutter) 5rem max(var(--angi-gutter), 10vw);
	}

	.angi-legal__head,
	.angi-legal__content {
		max-width: min(50rem, 70vw);
	}

	.angi-legal__title {
		font-size: 2.875rem;
	}

	.angi-legal__content h2 {
		font-size: 1.4375rem;
	}
}
