/* Viewfinder – ergänzende Styles zu theme.json */

:root {
	--vf-gap: clamp(0.75rem, 1.6vw, 1.25rem);

	/* WordPress-Lightbox der Bild-Blöcke nutzt diese Namen: dunkel statt weiß. */
	--wp--preset--color--base: var(--wp--preset--color--ink);
	--wp--preset--color--contrast: var(--wp--preset--color--paper);
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

img {
	height: auto;
	max-width: 100%;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--film);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--film);
	color: var(--wp--preset--color--ink);
}

/* Kopf- und Fußbereich */
.vf-header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: 80rem;
	padding-block: 1.25rem;
	padding-inline: clamp(1rem, 4vw, 2rem);
	position: relative;
}

/* Hauptmenü mit verschachtelten Kategorien (Travel Reports → Europe → Austria) */
.vf-header > .wp-block-viewfinder-menu,
.vf-header > .vf-nav {
	margin-left: auto;
}

.vf-nav-toggle {
	align-items: center;
	background: none;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	color: var(--wp--preset--color--paper);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	gap: 0.65rem;
	padding: 0.5rem 0.85rem;
}

.vf-nav-toggle:hover {
	border-color: var(--wp--preset--color--film);
	color: var(--wp--preset--color--film);
}

.vf-nav-bars,
.vf-nav-bars::before,
.vf-nav-bars::after {
	background: currentColor;
	display: block;
	height: 2px;
	width: 1.1rem;
}

.vf-nav-bars {
	position: relative;
	transition: background 0.15s ease;
}

.vf-nav-bars::before,
.vf-nav-bars::after {
	content: "";
	left: 0;
	position: absolute;
	transition: transform 0.15s ease, top 0.15s ease;
}

.vf-nav-bars::before {
	top: -6px;
}

.vf-nav-bars::after {
	top: 6px;
}

.vf-nav.is-open .vf-nav-bars {
	background: transparent;
}

.vf-nav.is-open .vf-nav-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.vf-nav.is-open .vf-nav-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

.vf-menu,
.vf-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vf-menu {
	background: var(--wp--preset--color--ink);
	border-block: 1px solid var(--wp--preset--color--line);
	display: none;
	left: 0;
	max-height: calc(100vh - 5rem);
	overflow-y: auto;
	padding: 0.5rem 0 1rem;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 60;
}

.vf-nav.is-open .vf-menu {
	display: block;
}

.vf-menu li {
	margin: 0;
}

.vf-menu li.menu-item-has-children {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
}

.vf-menu li.menu-item-has-children > a {
	flex: 1 1 0;
}

.vf-menu a {
	color: var(--wp--preset--color--paper);
	display: block;
	padding: 0.6rem 0.25rem;
	text-decoration: none;
}

.vf-menu a:hover,
.vf-menu a:focus-visible,
.vf-menu .current-menu-item > a,
.vf-menu .current-menu-ancestor > a,
.vf-menu .current-menu-parent > a,
.vf-menu a[aria-current="page"] {
	color: var(--wp--preset--color--film);
}

.vf-menu li > .sub-menu {
	display: none;
	flex-basis: 100%;
	padding-left: 1rem;
}

.vf-menu li.is-open > .sub-menu {
	display: block;
}

.vf-sub-toggle {
	align-items: center;
	background: none;
	border: 0;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	display: inline-flex;
	height: 2.25rem;
	justify-content: center;
	padding: 0;
	width: 2.25rem;
}

.vf-sub-toggle:hover {
	color: var(--wp--preset--color--film);
}

.vf-sub-toggle span {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	display: block;
	height: 0.45rem;
	margin-top: -3px;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	width: 0.45rem;
}

.vf-menu li.is-open > .vf-sub-toggle span {
	margin-top: 3px;
	transform: rotate(-135deg);
}

@media (min-width: 56rem) {
	.vf-nav-toggle {
		display: none;
	}

	.vf-menu {
		align-items: center;
		background: none;
		border: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 0 0.25rem;
		max-height: none;
		overflow: visible;
		padding: 0;
		position: static;
	}

	.vf-menu li {
		position: relative;
	}

	.vf-menu > li.menu-item-has-children {
		flex-wrap: nowrap;
	}

	.vf-menu a {
		font-size: var(--wp--preset--font-size--small);
		padding: 0.5rem 0.65rem;
		white-space: nowrap;
	}

	.vf-menu > li.menu-item-has-children > a {
		flex: 0 0 auto;
		padding-right: 0.15rem;
	}

	.vf-menu > li > .vf-sub-toggle {
		height: 2rem;
		margin-left: -0.1rem;
		width: 1.5rem;
	}

	.vf-menu li > .sub-menu {
		background: var(--wp--preset--color--surface);
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 2px;
		flex-basis: auto;
		left: 0;
		min-width: 15rem;
		padding: 0.4rem 0;
		position: absolute;
		top: 100%;
		z-index: 60;
	}

	.vf-menu li > .sub-menu .sub-menu {
		left: 100%;
		top: -0.45rem;
	}

	.vf-menu li:hover > .sub-menu,
	.vf-menu li:focus-within > .sub-menu,
	.vf-menu li.is-open > .sub-menu {
		display: block;
	}

	.vf-menu .sub-menu a {
		padding: 0.45rem 1rem;
	}

	.vf-menu .sub-menu > li > .vf-sub-toggle {
		height: 2rem;
		width: 2rem;
	}

	.vf-menu .sub-menu .vf-sub-toggle span,
	.vf-menu .sub-menu li.is-open > .vf-sub-toggle span {
		margin-top: 0;
		transform: rotate(-45deg);
	}

	.vf-menu .sub-menu .sub-menu .sub-menu {
		left: auto;
		right: 100%;
	}

	.vf-menu .sub-menu .sub-menu .sub-menu li > .vf-sub-toggle span {
		transform: rotate(135deg);
	}

	.vf-menu > li:nth-last-child(-n + 2) > .sub-menu {
		left: auto;
		right: 0;
	}

	.vf-menu > li:nth-last-child(-n + 2) .sub-menu .sub-menu {
		left: auto;
		right: 100%;
	}
}

.vf-header .wp-block-site-title {
	margin: 0;
}

.vf-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	gap: 0.75rem 2rem;
	justify-content: space-between;
	margin-inline: auto;
	margin-top: clamp(3rem, 8vw, 6rem);
	max-width: 80rem;
	padding-block: 2rem;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.vf-footer p {
	margin: 0;
}

.vf-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.vf-footer a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.vf-footer a:hover {
	color: var(--wp--preset--color--film);
}

/* Startseite: Hero */
.vf-main > .vf-hero {
	margin-top: 0;
}

.vf-hero .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vf-hero .wp-block-post-template > li {
	margin: 0;
	position: relative;
}

.vf-hero .wp-block-post-featured-image {
	margin: 0;
}

.vf-hero .wp-block-post-featured-image img {
	display: block;
	height: min(76vh, 52rem);
	min-height: 22rem;
	object-fit: cover;
	object-position: 50% 30%;
	width: 100%;
}

.vf-hero-caption {
	background: linear-gradient(to top, rgba(10, 11, 13, 0.88), rgba(10, 11, 13, 0));
	bottom: 0;
	left: 0;
	padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem);
	position: absolute;
	right: 0;
}

.vf-hero-caption > * {
	margin-block: 0;
	max-width: 80rem;
}

.vf-hero-caption .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-bottom: 0.4rem;
	max-width: 22ch;
}

.vf-hero-caption .wp-block-post-title a {
	color: #f5f2ec;
}

.vf-hero-caption .wp-block-post-terms,
.vf-hero-caption .wp-block-post-terms a {
	color: #cfcac2;
}

.vf-hero-caption .wp-block-post-title a:hover,
.vf-hero-caption .wp-block-post-terms a:hover {
	color: var(--wp--preset--color--film);
}

.vf-section-title {
	margin-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
	max-width: 80rem;
}

/* Raster: Masonry mit unbeschnittenen Bildern */
.wp-block-post-template.vf-masonry {
	column-gap: var(--vf-gap);
	columns: 3 20rem;
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vf-masonry > li {
	break-inside: avoid;
	margin: 0 0 clamp(1.25rem, 2.4vw, 2rem);
}

.vf-masonry .wp-block-post-featured-image {
	background: var(--wp--preset--color--surface);
	margin: 0 0 0.6rem;
	overflow: hidden;
}

.vf-masonry .wp-block-post-featured-image img {
	display: block;
	height: auto !important;
	transition: opacity 0.2s ease;
	width: 100%;
}

.vf-masonry .wp-block-post-featured-image a:hover img {
	opacity: 0.85;
}

.vf-masonry .wp-block-post-title {
	line-height: 1.25;
	margin: 0;
}

.vf-masonry .wp-block-post-date {
	margin: 0.15rem 0 0;
}

.wp-block-query-pagination {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: 1.5rem;
	padding-top: 1.5rem;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers {
	margin-inline: 0.35rem;
}

.wp-block-query-pagination-numbers .current {
	color: var(--wp--preset--color--film);
}

/* Kategorie-Kacheln (Unterkategorien) */
.vf-cats {
	display: grid;
	gap: clamp(1rem, 2.4vw, 1.75rem) var(--vf-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	list-style: none;
	margin: 0 auto 2.5rem;
	max-width: var(--wp--style--global--wide-size, 80rem);
	padding: 0;
}

.vf-cat {
	margin: 0;
}

.vf-cat a {
	color: var(--wp--preset--color--paper);
	display: block;
	text-decoration: none;
}

.vf-cat-img {
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--surface);
	display: block;
	overflow: hidden;
}

.vf-cat-img img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
	width: 100%;
}

.vf-cat a:hover .vf-cat-img img,
.vf-cat a:focus-visible .vf-cat-img img {
	opacity: 0.82;
}

.vf-cat-name {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.25;
	margin-top: 0.6rem;
}

.vf-cat a:hover .vf-cat-name,
.vf-cat a:focus-visible .vf-cat-name {
	color: var(--wp--preset--color--film);
}

.vf-cat-count {
	color: var(--wp--preset--color--muted);
	display: block;
	font-size: var(--wp--preset--font-size--small);
}

/* Brotkrumen */
.vf-crumbs {
	font-size: var(--wp--preset--font-size--small);
	margin-top: 1.25rem;
}

.vf-crumbs ol {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vf-crumbs li + li::before {
	color: var(--wp--preset--color--muted);
	content: "/";
	margin-right: 0.6rem;
}

.vf-crumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.vf-crumbs a:hover,
.vf-crumbs a:focus-visible {
	color: var(--wp--preset--color--film);
}

.vf-crumbs [aria-current="page"] {
	color: var(--wp--preset--color--paper);
}

/* Essential Blocks: Post Grid (Karten mit Titel, Auszug, „Read More“) */
body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-entry-title a {
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
	text-decoration: none;
}

body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-entry-title a:hover,
body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-entry-title a:focus-visible {
	color: var(--wp--preset--color--film);
}

body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-grid-post-excerpt p {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.65;
}

body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-readmore-btn a {
	color: var(--wp--preset--color--film);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-readmore-btn a:hover,
body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-readmore-btn a:focus-visible {
	color: var(--wp--preset--color--paper);
}

body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-entry-meta,
body .eb-post-grid-wrapper[class*="eb-post-grid-"] .ebpg-entry-meta a {
	color: var(--wp--preset--color--muted);
}

/* Archiv und Suche */
.vf-archive-title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block: clamp(1.25rem, 3vw, 2rem) 1rem;
}

.vf-archive-desc {
	color: var(--wp--preset--color--muted);
	margin-bottom: 2rem;
	max-width: 44rem;
}

/* Einzelbeitrag und Seiten: Text so breit wie das Bild (hier ändern, z. B. 64rem für schmaler) */
.vf-content {
	--vf-text-width: 80rem;
	--wp--style--global-content-size: var(--vf-text-width);
}

.vf-post-head {
	margin-block: clamp(1.5rem, 4vw, 3rem) 1.5rem;
}

.vf-content .vf-post-head > * {
	margin-inline: 0;
	max-width: var(--vf-text-width, 80rem);
}

.vf-post-meta {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin-top: 0.75rem;
}

.vf-post-meta > * {
	margin: 0;
}

.vf-post-hero {
	margin-bottom: 2rem;
}

.vf-post-hero img {
	display: block;
	height: auto;
	width: 100%;
}

.vf-content .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, blockquote) {
	max-width: var(--vf-text-width, 44rem);
}

.vf-content .wp-block-post-content figure {
	margin-block: 2rem;
}

.vf-content .wp-block-post-content figcaption {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
	margin-top: 0.5rem;
	text-align: left;
}

.vf-content .wp-block-gallery {
	gap: var(--vf-gap);
}

.vf-tags {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 2.5rem;
}

.vf-tags a {
	color: var(--wp--preset--color--muted);
}

.vf-post-nav {
	font-size: var(--wp--preset--font-size--small);
	gap: 1rem 2rem;
}

.vf-post-nav a {
	text-decoration: none;
}

/* Suchfeld */
.wp-block-search__input {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--paper);
	padding: 0.6rem 0.8rem;
}

.wp-block-search__button {
	background: var(--wp--preset--color--film);
	border: 0;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	padding: 0.6rem 1.1rem;
}

/* Tabellen: gleiche Breite und Ausrichtung wie der Text (Block, Klassik-Editor, Plugins) */
.wp-block-post-content figure.wp-block-table,
.wp-block-post-content > table,
.wp-block-post-content .tablepress,
.wp-block-post-content .vf-ds-table-wrap {
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: var(--vf-text-width, 80rem) !important;
	width: 100% !important;
}

.wp-block-table table,
.wp-block-post-content table {
	border-collapse: collapse;
	table-layout: auto;
	width: 100% !important;
}

.wp-block-table td,
.wp-block-table th,
.wp-block-post-content table td,
.wp-block-post-content table th {
	border-color: var(--wp--preset--color--line);
	overflow-wrap: break-word;
}

.wp-block-table th {
	white-space: nowrap;
}

@media (max-width: 40rem) {
	.wp-block-table {
		overflow-x: auto;
	}

	.wp-block-table th {
		white-space: normal;
	}
}

/* Lightbox-Fallback für ältere Beiträge */
.vf-lb {
	background: rgba(8, 9, 11, 0.97);
	border: 0;
	color: #f5f2ec;
	height: 100%;
	max-height: none;
	max-width: none;
	padding: 0;
	width: 100%;
}

.vf-lb::backdrop {
	background: rgba(8, 9, 11, 0.97);
}

.vf-lb-stage {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	justify-content: center;
	padding: 2.5rem 3.5rem;
}

.vf-lb-img {
	max-height: calc(100vh - 8rem);
	max-width: 100%;
	object-fit: contain;
}

.vf-lb-cap {
	color: #bdb8b0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
	margin: 0;
	max-width: 60ch;
	text-align: center;
}

.vf-lb button {
	background: transparent;
	border: 0;
	color: #f5f2ec;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: 0.75rem 1rem;
	position: absolute;
}

.vf-lb button:hover {
	color: var(--wp--preset--color--film);
}

.vf-lb-close {
	right: 0.5rem;
	top: 0.5rem;
}

.vf-lb-prev {
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

.vf-lb-next {
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.vf-content img[data-vf-lb] {
	cursor: zoom-in;
}

@media (max-width: 600px) {
	.vf-lb-stage {
		padding: 3rem 0.5rem 1rem;
	}
}

/* Formulare im dunklen Look (Kontakt, Kommentare, Suche) */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	color: var(--wp--preset--color--paper);
	font: inherit;
	max-width: 100%;
	padding: 0.7rem 0.85rem;
}

input::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--muted);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--wp--preset--color--film);
	outline: 2px solid var(--wp--preset--color--film);
	outline-offset: 1px;
}

textarea {
	width: 100%;
}

input[type="submit"],
button[type="submit"],
.wp-block-button__link,
.wpcf7-submit,
.wpforms-submit {
	background: var(--wp--preset--color--film);
	border: 0;
	border-radius: 2px;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.7rem 1.4rem;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover {
	filter: brightness(1.1);
}

/* Einstieg als Overlay im Hero */
.vf-hero-caption {
	background: linear-gradient(to top, rgba(10, 11, 13, 0.82) 0%, rgba(10, 11, 13, 0.62) 32%, rgba(10, 11, 13, 0.3) 62%, rgba(10, 11, 13, 0.08) 85%, rgba(10, 11, 13, 0) 100%);
	display: grid;
	gap: 1.5rem 3rem;
	padding-inline: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 80rem) / 2 + clamp(1rem, 4vw, 2rem)));
}

@media (min-width: 56rem) {
	.vf-hero-caption {
		align-items: end;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		padding-top: clamp(5rem, 11vw, 8rem);
	}
}

.vf-hero-caption > * {
	margin: 0;
	max-width: none;
}

.vf-hero-title .wp-block-post-title {
	max-width: 18ch;
}

.vf-intro-kicker {
	color: var(--wp--preset--color--film);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.12em;
	margin: 0 0 0.6rem;
	text-transform: uppercase;
}

.vf-intro-lead {
	color: #f5f2ec;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	line-height: 1.3;
	margin: 0 0 1rem;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.vf-intro-actions {
	gap: 0.75rem;
	margin: 0;
}

.vf-intro .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(10, 11, 13, 0.35);
	border: 1px solid rgba(245, 242, 236, 0.6);
	color: #f5f2ec;
}

.vf-intro .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--film);
	color: var(--wp--preset--color--film);
}

/* Schmale Bildschirme: Text unter dem Bild statt darüber */
@media (max-width: 55.99rem) {
	.vf-hero-caption {
		background: var(--wp--preset--color--ink);
		padding-block: 1.5rem 0.5rem;
		position: static;
	}
}

/* reCAPTCHA-Badge ausblenden (Hinweis steht im Footer) */
.grecaptcha-badge {
	visibility: hidden;
}

.vf-recaptcha-note {
	color: var(--wp--preset--color--muted);
	flex-basis: 100%;
	font-size: 0.75rem;
	opacity: 0.8;
}

/* Cookie-Einstellungen: dezent unten links */
.cky-btn-revisit-wrapper {
	opacity: 0.85;
}

/* Logo-Symbol vor dem Seitentitel */
.vf-header .wp-block-site-title a {
	align-items: center;
	display: inline-flex;
	gap: 0.6rem;
}

.vf-header .wp-block-site-title a::before {
	background: url("../img/icon.svg") center / contain no-repeat;
	content: "";
	display: inline-block;
	flex: none;
	height: 1.9rem;
	width: 1.9rem;
}

/* Logo in der Kopfzeile */
.vf-header {
	padding-block: 1.1rem;
}

.vf-logo {
	align-items: center;
	color: var(--wp--preset--color--paper);
	display: inline-flex;
	gap: 0.85rem;
	text-decoration: none;
}

.vf-logo-mark {
	display: block;
	flex: none;
	height: 3.4rem;
	width: 3.4rem;
}

.vf-logo-text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	letter-spacing: -0.01em;
	line-height: 1;
}

.vf-logo-dot {
	color: var(--wp--preset--color--film);
}

.vf-logo:hover .vf-logo-text {
	opacity: 0.88;
}

.vf-header .wp-block-site-title a::before {
	display: none;
}

@media (min-width: 56rem) {
	.vf-menu > li > a {
		font-size: 0.95rem;
	}
}

/* Hero als Slider */
.vf-hero.is-slider {
	position: relative;
}

.vf-hero.is-slider .wp-block-post-template {
	display: grid;
}

.vf-hero.is-slider .wp-block-post-template > li {
	grid-area: 1 / 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.9s ease, visibility 0.9s;
	visibility: hidden;
}

.vf-hero.is-slider .wp-block-post-template > li.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	z-index: 1;
}

.vf-hero.is-slider .wp-block-post-featured-image img {
	transform: scale(1.04);
	transition: transform 8s ease-out;
}

.vf-hero.is-slider li.is-active .wp-block-post-featured-image img {
	transform: scale(1);
}

.vf-hero-controls {
	align-items: center;
	display: flex;
	gap: 0.6rem;
	padding-inline: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 80rem) / 2 + clamp(1rem, 4vw, 2rem)));
	position: absolute;
	right: 0;
	top: 1rem;
	z-index: 5;
	justify-content: flex-end;
	left: 0;
	pointer-events: none;
}

.vf-hero-controls > * {
	pointer-events: auto;
}

.vf-hero-controls button {
	background: rgba(10, 11, 13, 0.55);
	border: 1px solid rgba(245, 242, 236, 0.35);
	border-radius: 50%;
	color: #f5f2ec;
	cursor: pointer;
	font: inherit;
	height: 2.5rem;
	line-height: 1;
	padding: 0;
	width: 2.5rem;
}

.vf-hero-controls button:hover,
.vf-hero-controls button:focus-visible {
	border-color: var(--wp--preset--color--film);
	color: var(--wp--preset--color--film);
}

.vf-hero-prev span,
.vf-hero-next span {
	font-size: 1.6rem;
	position: relative;
	top: -0.08em;
}

.vf-hero-pause::before {
	border-inline: 3px solid currentColor;
	content: "";
	display: inline-block;
	height: 0.8rem;
	width: 0.55rem;
}

.vf-hero-pause.is-paused::before {
	border-color: transparent transparent transparent currentColor;
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.75rem;
	height: 0;
	width: 0;
}

.vf-hero-count {
	color: #f5f2ec;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.vf-hero-dots {
	display: flex;
	gap: 0.45rem;
	margin-right: 0.6rem;
}

.vf-hero-controls .vf-hero-dots button {
	background: rgba(245, 242, 236, 0.35);
	border: 0;
	border-radius: 999px;
	height: 0.55rem;
	transition: background 0.3s, width 0.3s;
	width: 0.55rem;
}

.vf-hero-controls .vf-hero-dots button.is-active {
	background: var(--wp--preset--color--film);
	width: 1.6rem;
}

@media (max-width: 55.99rem) {
	.vf-hero-controls {
		top: 0.75rem;
	}

	.vf-hero-count,
	.vf-hero-prev,
	.vf-hero-next {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vf-hero.is-slider .wp-block-post-template > li,
	.vf-hero.is-slider .wp-block-post-featured-image img {
		transition: none;
	}
}

/* Falls im Editor ein Logo-Bild (Website-Logo-Block) statt des Teilbereichs genutzt wird */
.vf-header .wp-block-site-logo img {
	height: 3.4rem;
	max-width: none;
	width: auto;
}

/* Ohne JavaScript nur die erste Folie zeigen (Slider-Skript setzt .is-slider) */
.vf-hero:not(.is-slider) .wp-block-post-template > li:nth-child(n + 2) {
	display: none;
}

/* Streifen am Rand vermeiden: Zoom-Effekt innerhalb der Folie halten */
.vf-hero .wp-block-post-template > li {
	overflow: hidden;
}

.vf-hero .wp-block-post-featured-image,
.vf-hero .wp-block-post-featured-image a {
	display: block;
	line-height: 0;
}

/* Text auf dem Bild leicht anheben, damit er auch ohne dunklen Verlauf lesbar bleibt */
.vf-hero-title .wp-block-post-title,
.vf-intro-lead {
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
