/* VGL – eigene Blöcke (Website und Editor) */

/* Tipp: Icon-Fähnchen oben links, heller Hintergrund in der Typ-Farbe (Farben wie bei der Hinweisbox) */
.vgl-tip {
	--vgl-tip-color: #40ba7b;
	--vgl-tip-icon: #fff;
	--vgl-tip-tint: 8%;
	position: relative;
	margin: 1.5em 0;
	padding: 16px 20px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--vgl-tip-color) var(--vgl-tip-tint), #fff);
	line-height: 1.75;
}
.vgl-tip--info {
	--vgl-tip-color: #2091e1;
}
.vgl-tip--warning {
	--vgl-tip-color: #ffdd57;
	--vgl-tip-icon: #1f2937;
	--vgl-tip-tint: 15%;
}
.vgl-tip--error {
	--vgl-tip-color: #d9534f;
}

.vgl-tip__icon {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 42px;
	border-radius: 2px;
	background: var(--vgl-tip-color);
	color: var(--vgl-tip-icon);
}
.vgl-tip__icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vgl-tip__text {
	margin: 0;
}
/* Erste Zeile neben dem Icon beginnen, weitere Zeilen laufen darunter durch */
.vgl-tip--has-icon .vgl-tip__text {
	text-indent: 44px;
}
.vgl-tip__label {
	font-weight: 700;
}
.vgl-tip__label:not(:empty)::after {
	content: ":";
	font-weight: 400;
}

/* Beitrags-Links: Kacheln mit Beitragsbild + Keyphrase, beliebig viele, umbrechend */
.vgl-post-links {
	--vgl-pl-accent: var(--theme-link-initial-color, var(--wp--preset--color--primary, #2271b1));
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin: 1.5em 0;
}
.vgl-post-links__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 6px 22px 6px 8px;
	border-bottom: 2px solid transparent;
	border-radius: 3px;
	background: #f6f7f8;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	color: inherit !important;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vgl-post-links__item:hover,
.vgl-post-links__item:focus-visible,
.vgl-post-links__item.is-current {
	border-bottom-color: var(--vgl-pl-accent);
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.vgl-post-links__img {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
}
.vgl-post-links__img img {
	display: block;
	width: auto;
	max-width: 40px;
	height: auto;
	max-height: 36px;
	margin: 0;
	object-fit: contain;
}
@media (max-width: 600px) {
	.vgl-post-links {
		gap: 8px;
	}
	.vgl-post-links__item {
		padding-right: 14px;
		font-size: 0.92em;
	}
}
.vgl-post-links--editor a {
	pointer-events: none;
}

/* Titel: große Überschrift mit Unterzeile (Farben/Größen aus dem Theme, optional überschreibbar) */
.vgl-title {
	margin: 0 0 1.5em;
}
.vgl-title .vgl-title__heading {
	margin: 0;
	font-weight: 800;
	line-height: 1.15;
}
/* Farbe und Größe nur setzen, wenn im Block gewählt – sonst gilt das Theme */
.vgl-title[style*="--vgl-title-color"] .vgl-title__heading {
	color: var(--vgl-title-color);
}
.vgl-title[style*="--vgl-title-size"] .vgl-title__heading {
	font-size: var(--vgl-title-size);
}
.vgl-title .vgl-title__sub {
	margin: 0.3em 0 0;
	color: var(--vgl-title-sub-color, var(--theme-palette-color-3, #677178));
	font-size: var(--vgl-title-sub-size, 0.95em);
	line-height: 1.5;
}
.vgl-title.has-text-align-center {
	text-align: center;
}
.vgl-title.has-text-align-right {
	text-align: right;
}

/* Google: Hinweis „als bevorzugte Quelle einrichten“ (Farbe: Theme-Linkfarbe) */
.vgl-google {
	--vgl-google-c: var(--vgl-google-accent, var(--theme-link-initial-color, var(--wp--preset--color--primary, #1e73be)));
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 1.5em 0;
	padding: 14px 20px;
	border: 1px solid #e3e6ea;
	border-left: 4px solid var(--vgl-google-c);
	border-radius: 2px;
	background: #f6f7f8;
	line-height: 1.5;
}
.vgl-google__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	fill: none;
	stroke: var(--vgl-google-c);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vgl-google__text {
	margin: 0 !important;
}
.vgl-google__link {
	color: var(--vgl-google-c);
	text-decoration: none;
}
.vgl-google__link:hover,
.vgl-google__link:focus-visible {
	text-decoration: underline;
}
