/*
Theme Name: VEYS Immobilien
Theme URI: https://veys-immobilien.de/
Author: VEYS Immobilien
Description: Block-Theme für VEYS Immobilien, Würzburg. Version 2 der Website: Bewertungsstrecke, Ortsseiten, lokale Schriften, ohne Page-Builder. Farben und Schriften werden zentral in theme.json gepflegt.
Version: 2.4.9
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veys
*/

/* ------------------------------------------------------------------
   Grundlagen
   Alle Farben kommen aus theme.json (--wp--preset--color--*).
   Wer Farben ändern will, ändert NUR theme.json.
------------------------------------------------------------------- */
:root {
	--veys-radius: 10px;
	--veys-radius-lg: 16px;
	--veys-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
	--veys-header-h: 76px;
}

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

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
	padding: 12px 16px; top: 8px; left: 8px;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
.veys-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .veys-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .veys-header { top: 0; } }

.veys-header__inner { min-height: var(--veys-header-h); gap: 24px; }
.veys-header .wp-block-site-logo img { max-height: 56px; width: auto; display: block; }
@media (max-width: 600px) { .veys-header .wp-block-site-logo img { max-height: 44px; } }
.veys-header .wp-block-navigation { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: .95rem; }
.veys-header .wp-block-navigation .wp-block-navigation-item__content { padding-block: 6px; }
.veys-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.veys-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-text); }

.veys-header__actions { gap: 16px; }
.veys-phone {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: .95rem;
	white-space: nowrap;
}
.veys-phone a { text-decoration: none; color: var(--wp--preset--color--primary); }
.veys-phone a::before { content: "☎\FE0E"; margin-right: 6px; color: var(--wp--preset--color--accent); }

@media (max-width: 1100px) {
	.veys-header__actions .veys-phone { display: none; }
}
@media (max-width: 900px) {
	.veys-header__actions .wp-block-buttons { display: none; }
}

/* Wortmarke, falls noch kein Logo hochgeladen ist */
.veys-wordmark {
	display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none;
	font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--primary);
}
.veys-wordmark strong { font-size: 1.35rem; letter-spacing: .22em; font-weight: 700; }
.veys-wordmark span { font-size: .62rem; letter-spacing: .42em; color: var(--wp--preset--color--accent-text); margin-top: 5px; font-weight: 600; }
.veys-footer .veys-wordmark { color: var(--wp--preset--color--base); }

/* ------------------------------------------------------------------
   Sektionen
------------------------------------------------------------------- */
/* Vollbreite Abschnitte direkt aneinander, ohne weiße Fugen */
.wp-block-post-content > .alignfull { margin-block: 0 !important; }
.wp-site-blocks > footer { margin-block-start: 0 !important; }

.veys-section { padding-block: clamp(44px, 8vw, 104px); }
.veys-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.veys-section--surface { background: var(--wp--preset--color--surface); }
.veys-section--dark { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.veys-section--dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--base); }
.veys-section--dark .veys-eyebrow { color: var(--wp--preset--color--accent-light); }

.veys-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem !important;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--wp--preset--color--accent-text);
	margin-bottom: 8px !important;
}
.veys-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem) !important; color: var(--wp--preset--color--muted); max-width: 62ch; }
.veys-section--dark .veys-lead { color: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent); }
.veys-center { text-align: center; }
.veys-center .veys-lead { margin-inline: auto; }
.veys-center .wp-block-buttons { justify-content: center; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.veys-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 104px);
}
.veys-hero::after {
	/* feines Grundriss-Raster als Hintergrundzeichnung */
	content: "";
	position: absolute; inset: 0;
	background-image:
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--base) 6%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--base) 6%, transparent) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
	-webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
	pointer-events: none;
}
.veys-hero > * { position: relative; z-index: 1; }

/* Hero und Abschnitte mit Foto: Navy-Verlauf über dem Bild, Text bleibt lesbar */
.veys-hero--image,
.veys-section--image {
	position: relative;
	background-color: var(--wp--preset--color--primary);
	background-size: cover;
	background-position: center;
}
.veys-hero--image::before,
.veys-section--image::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(100deg,
		color-mix(in srgb, var(--wp--preset--color--primary) 96%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--primary) 86%, transparent) 48%,
		color-mix(in srgb, var(--wp--preset--color--primary-dark) 58%, transparent) 100%);
	pointer-events: none;
}
.veys-section--image::before { background: color-mix(in srgb, var(--wp--preset--color--primary) 88%, transparent); }
.veys-section--image > * { position: relative; z-index: 1; }
@media (max-width: 782px) {
	.veys-hero--image::before { background: color-mix(in srgb, var(--wp--preset--color--primary) 90%, transparent); }
}
.veys-hero h1 { color: var(--wp--preset--color--base); max-width: 18ch; }
.veys-hero .veys-lead { color: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent); }
.veys-hero .veys-eyebrow { color: var(--wp--preset--color--accent-light); }
.veys-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--base); border-color: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent);
}
.veys-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--base); background: transparent; }

.veys-hero-points {
	list-style: none; padding: 0 !important; margin-top: 28px !important;
	display: flex; flex-wrap: wrap; gap: 10px 28px;
	font-size: .95rem; color: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
}
.veys-hero-points li { position: relative; padding-left: 24px; }
.veys-hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--wp--preset--color--accent-light); font-weight: 700; }

/* Seiten-Kopf für Unterseiten */
.veys-pagehead {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding-block: clamp(44px, 7vw, 84px) clamp(36px, 5vw, 60px);
}
.veys-pagehead h1 { color: var(--wp--preset--color--base); }
.veys-pagehead .veys-eyebrow { color: var(--wp--preset--color--accent-light); }

/* ------------------------------------------------------------------
   Vertrauensleiste
------------------------------------------------------------------- */
.veys-trust {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 22px;
}
.veys-trust ul {
	list-style: none; margin: 0; padding: 0 !important;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px;
}
.veys-trust li {
	display: flex; flex-direction: column; gap: 2px; padding-left: 14px;
	border-left: 2px solid var(--wp--preset--color--accent);
	font-size: .9rem; color: var(--wp--preset--color--muted); line-height: 1.4;
}
.veys-trust li strong { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--primary); font-size: .98rem; }
@media (max-width: 900px) { .veys-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .veys-trust ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Karten
------------------------------------------------------------------- */
.veys-cards { gap: 20px !important; }
.veys-card {
	box-sizing: border-box;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--veys-radius-lg);
	padding: clamp(22px, 3vw, 32px) !important;
	height: 100%;
}
.veys-card h3 { margin-top: 0; }
.veys-card > :last-child { margin-bottom: 0; }
.veys-card.veys-card--feature {
	background: none; border: 0; border-radius: 0; box-shadow: none;
	border-top: 2px solid var(--wp--preset--color--accent);
	padding: 22px 0 0 !important;
}
.veys-card--feature h3 { margin-bottom: 10px; }
.veys-card--feature p { color: var(--wp--preset--color--muted); }
@media (min-width: 782px) {
	.wp-block-columns.veys-cards:has(> .veys-card--feature) {
		display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px !important;
	}
}
@media (min-width: 1240px) {
	.wp-block-columns.veys-cards:has(> .veys-card--feature) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px !important; }
}
.veys-card--path {
	display: flex; flex-direction: column; gap: 12px;
	box-shadow: var(--veys-shadow);
}
.veys-card--path .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.veys-card--path .veys-eyebrow { margin-bottom: 0 !important; }
.veys-card--path h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }

.veys-checklist { list-style: none; padding-left: 0 !important; }
.veys-checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.veys-checklist li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
	background: var(--wp--preset--color--accent-soft);
	box-shadow: inset 0 0 0 5px var(--wp--preset--color--accent);
}

/* ------------------------------------------------------------------
   Ablauf (echte Reihenfolge, daher nummeriert) – als Zeitleiste:
   breit nebeneinander mit Verbindungslinie, schmal untereinander.
------------------------------------------------------------------- */
.veys-steps {
	list-style: none; padding: 0 !important; margin: 8px 0 0;
	display: grid; grid-template-columns: 1fr; gap: 0;
	counter-reset: step;
}
.veys-steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 28px 56px;
	font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--muted);
}
.veys-steps li:last-child { padding-bottom: 0; }
.veys-steps li::before {
	content: counter(step);
	position: absolute; top: 0; left: 0; z-index: 1;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1rem;
	background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base);
}
.veys-steps li::after {
	content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px;
	background: var(--wp--preset--color--accent);
}
.veys-steps li:last-child::after { display: none; }
.veys-steps li strong {
	display: block; color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem; margin: 6px 0 4px;
}
@media (min-width: 1000px) {
	.veys-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
	.veys-steps li { padding: 56px 0 0; }
	.veys-steps li::after { left: 44px; right: -28px; top: 17px; bottom: auto; width: auto; height: 2px; }
	.veys-steps li strong { margin-top: 0; }
}

/* ------------------------------------------------------------------
   Kundenstimmen
------------------------------------------------------------------- */
.veys-quotes .wp-block-quote {
	margin: 0; height: 100%; box-sizing: border-box;
	background: none;
	border: 0; border-left: 2px solid var(--wp--preset--color--accent) !important;
	border-radius: 0;
	padding: 2px 0 2px 24px;
	display: flex; flex-direction: column; gap: 14px;
}
.veys-quotes .wp-block-quote::before {
	content: "★★★★★"; letter-spacing: 3px; color: var(--wp--preset--color--accent); font-size: .9rem;
}
.veys-quotes .wp-block-quote p { font-size: 1.06rem; line-height: 1.65; margin: 0; color: var(--wp--preset--color--contrast); }
.veys-quotes + .veys-quotes { margin-top: 40px !important; }
.veys-quotes { gap: 40px 56px !important; }
.veys-quotes .wp-block-quote cite {
	margin-top: auto; font-style: normal; font-weight: 700; font-size: .9rem;
	font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--primary);
}

/* ------------------------------------------------------------------
   Team
------------------------------------------------------------------- */
.veys-person { display: flex; flex-direction: column; gap: 6px; }
.veys-avatar {
	width: 72px; height: 72px; border-radius: 50%;
	display: grid; place-items: center; margin: 0 0 8px !important;
	background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.3rem !important;
}
.veys-role { color: var(--wp--preset--color--accent-text); font-weight: 700; font-size: .85rem !important; letter-spacing: .04em; margin: 0 !important; }
.veys-person h3 { margin: 0 !important; }
.veys-person__photo { margin: 0 0 10px !important; }
.veys-person__photo img,
.veys-portrait img {
	display: block; width: 100%; height: auto;
	aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
	border-radius: var(--veys-radius-lg);
}
.veys-person__photo img { width: 100%; max-height: none; }
.veys-portrait { margin: 0 !important; }
/* Team: alle Karten gleich breit, letzte Reihe mittig */
@media (min-width: 782px) {
	.wp-block-columns:has(> .veys-person) { justify-content: center; }
	.wp-block-columns > .veys-person { flex: 0 0 calc((100% - 40px) / 3) !important; min-width: 0; }
}
.veys-rounded { margin: 0 0 20px !important; }
.veys-rounded img { display: block; width: 100%; height: auto; border-radius: var(--veys-radius-lg); }

/* Bild oben in einer Karte, randlos */
.veys-card__image { margin: calc(-1 * clamp(22px, 3vw, 32px)) calc(-1 * clamp(22px, 3vw, 32px)) 12px !important; }
.veys-card__image img {
	display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
	border-radius: var(--veys-radius-lg) var(--veys-radius-lg) 0 0;
}

/* Partner-Logos */
.veys-partner-logo { margin: 0 0 18px !important; height: 72px; display: flex; align-items: center; }
.veys-partner-logo img { max-height: 72px; width: auto; max-width: 160px; object-fit: contain; }
.veys-cards--middle { align-items: center !important; }

/* ------------------------------------------------------------------
   FAQ (details)
------------------------------------------------------------------- */
.veys-faq .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 4px;
	margin: 0;
}
.veys-faq .wp-block-details summary {
	cursor: pointer; list-style: none;
	padding: 18px 40px 18px 0; position: relative;
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.05rem;
	color: var(--wp--preset--color--primary);
}
.veys-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.veys-faq .wp-block-details summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; font-weight: 400; color: var(--wp--preset--color--accent);
}
.veys-faq .wp-block-details[open] summary::after { content: "–"; }
.veys-faq .wp-block-details > p { margin-top: 0; padding-bottom: 14px; color: var(--wp--preset--color--muted); }

/* ------------------------------------------------------------------
   Kontaktblock / Info-Box
------------------------------------------------------------------- */
.veys-infobox {
	background: var(--wp--preset--color--surface);
	border-radius: var(--veys-radius-lg);
	padding: clamp(22px, 3vw, 32px) !important;
}
.veys-infobox p { margin-block: 0 10px; }
.veys-note {
	border-left: 3px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent-soft);
	padding: 14px 18px !important; border-radius: 0 var(--veys-radius) var(--veys-radius) 0;
	font-size: .95rem;
}

/* Rechtstexte */
.veys-legal { font-size: .98rem; }
.veys-legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.veys-legal h3 { font-size: 1.1rem; margin-top: 1.6em; }

/* Ratgeber-Liste */
/* Ratgeber: Kacheln mit Bild */
.veys-postlist .wp-block-post-template.is-layout-grid { gap: 24px; }
.veys-postlist .wp-block-post { list-style: none; }
.veys-postcard {
	height: 100%; display: flex; flex-direction: column;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--veys-radius-lg); overflow: hidden;
	box-shadow: var(--veys-shadow);
}
.veys-postcard .wp-block-post-featured-image { margin: 0 !important; }
.veys-postcard .wp-block-post-featured-image img { display: block; width: 100%; object-fit: cover; }
.veys-postcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.veys-postcard__body > * { margin: 0 !important; }
.veys-postcard__date { font-size: .82rem; color: var(--wp--preset--color--muted); }
.veys-postcard__title { font-size: 1.2rem !important; line-height: 1.3; }
.veys-postcard .wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); font-size: .95rem; margin: 0 0 8px; }
.veys-postcard .wp-block-post-excerpt__more-link { font-weight: 600; color: var(--wp--preset--color--accent-text); text-decoration: none; }
@media (max-width: 900px) { .veys-postlist .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
.veys-single-image { margin: 0 auto 32px !important; max-width: var(--wp--style--global--content-size, 760px); }
.veys-single-image img { border-radius: var(--veys-radius-lg); }
.veys-postlist .wp-block-post-title a { text-decoration: none; }
.veys-postlist .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-text); }

/* Propstack-Einbindung */
.veys-propstack iframe { width: 100%; min-height: 900px; border: 0; border-radius: var(--veys-radius-lg); background: var(--wp--preset--color--surface); }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.veys-footer { background: var(--wp--preset--color--primary-dark); color: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent); font-size: .95rem; }
.veys-footer :where(h2, h3, h4) {
	color: var(--wp--preset--color--base); font-size: 1rem !important; letter-spacing: 0; margin-bottom: 12px;
}
.veys-footer__legal { display: flex; gap: 20px; }
.veys-footer a { color: inherit; text-decoration: none; }
.veys-footer a:hover { color: var(--wp--preset--color--base); text-decoration: underline; }
.veys-footer p { margin-block: 0 8px; }
.veys-footer .wp-block-site-logo img { max-height: 60px; width: auto; display: block; }
.veys-footer .veys-wordmark strong { color: var(--wp--preset--color--base); }
.veys-footer .veys-wordmark span { color: var(--wp--preset--color--accent-light); }
.veys-footer__bottom {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 14%, transparent);
	font-size: .85rem; padding-block: 18px; gap: 12px;
}
.veys-footer .wp-block-social-links .wp-social-link { color: var(--wp--preset--color--base); }
.veys-footer .wp-block-social-links .wp-social-link svg { fill: currentColor; }

/* ------------------------------------------------------------------
   Mobile Aktionsleiste (Anrufen · WhatsApp · Bewertung)
------------------------------------------------------------------- */
.veys-mobilebar { display: none; }
@media (max-width: 782px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.veys-mobilebar {
		display: grid; grid-template-columns: 1fr 1fr 1.5fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		gap: 8px;
		background: var(--wp--preset--color--base);
		border-top: 1px solid var(--wp--preset--color--border);
		box-shadow: 0 -6px 20px rgb(0 0 0 / .08);
	}
	.veys-mobilebar a {
		display: flex; align-items: center; justify-content: center; gap: 6px;
		min-height: 46px; border-radius: 8px; text-decoration: none;
		font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: .85rem;
		color: var(--wp--preset--color--primary); border: 1.5px solid var(--wp--preset--color--border);
	}
	.veys-mobilebar a.is-primary { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
	.veys-mobilebar svg { width: 18px; height: 18px; fill: currentColor; }
}

/* ------------------------------------------------------------------
   Kleinigkeiten
------------------------------------------------------------------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
@media (max-width: 600px) {
	.veys-hero .wp-block-buttons, .veys-section .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.veys-hero .wp-block-button, .veys-section .wp-block-button { width: 100%; }
	.veys-hero .wp-block-button__link, .veys-section .wp-block-button__link { width: 100%; }
}

.veys-footer__cols { padding-block: clamp(48px, 7vw, 80px) 32px; gap: 40px !important; }
.veys-footer__cols .wp-block-site-logo { margin-bottom: 16px; }

/* ---- Feinschliff nach Test ---- */
.veys-header .wp-block-navigation__container { flex-wrap: nowrap; }
.veys-header .wp-block-navigation { --navigation-layout-wrap: nowrap; }
.veys-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1280px) { .veys-header__actions .veys-phone { display: none; } }
@media (max-width: 1100px) { .veys-header .wp-block-navigation__container { gap: 18px !important; } }

.wp-block-site-logo a.veys-wordmark { display: inline-flex; flex-direction: column; line-height: 1; gap: 5px; }
.wp-block-site-logo a.veys-wordmark :is(strong, span) { display: block; line-height: 1; margin: 0; }

.veys-section--surface .veys-infobox { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); }

.veys-section--dark .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent);
}
.veys-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--base); background: transparent; }


/* ------------------------------------------------------------------
   Klickstrecke als Bühne: groß, mittig, ragt in den Hero hinein
------------------------------------------------------------------- */
.veys-hero--stage { padding-bottom: clamp(150px, 16vw, 210px); }
.veys-hero--stage.veys-center h1 { margin-inline: auto; }
.veys-section--stage { padding-top: 0; position: relative; z-index: 2; }
.veys-section--stage-flat { padding-top: clamp(56px, 8vw, 104px); }
.veys-stage__card {
	max-width: 1000px; margin: calc(-1 * clamp(120px, 13vw, 170px)) auto 0 !important;
}
.veys-section--stage-flat .veys-stage__card { margin-top: 28px !important; }
.veys-stage__after, .veys-stage__info { max-width: 1000px; margin: 32px auto 0 !important; }

/* Größere, dominantere Darstellung der Strecke (überschreibt das Plugin-CSS) */
.veys-stage__card .veys-wiz {
	padding: clamp(24px, 4.5vw, 56px) !important;
	border-radius: 20px;
	border-top: 4px solid var(--wp--preset--color--accent);
	box-shadow: 0 30px 70px -30px rgba(0, 21, 51, .55) !important;
}
.veys-stage__card .veys-wiz .veys-step__q {
	font-size: clamp(1.5rem, 2.8vw, 2.25rem) !important; line-height: 1.2; margin-bottom: 8px;
}
.veys-stage__card .veys-tiles { gap: 16px; }
.veys-stage__card .veys-tiles--icons { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.veys-stage__card .veys-tiles--icons .veys-tile__box { min-height: 170px; padding: 26px 14px 22px; }
.veys-stage__card .veys-tile__icon { width: 58px; height: 58px; }
.veys-stage__card .veys-tile__label { font-size: 1.12rem; }
.veys-stage__card .veys-tile__box { font-size: 1.05rem; }
.veys-stage__card :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) { font-size: 1.1rem; min-height: 54px; }
.veys-stage__card .wp-block-button__link, .veys-stage__card button[type="submit"], .veys-stage__card [data-veys-next] { font-size: 1.05rem; padding: 16px 28px; }
@media (max-width: 600px) {
	.veys-hero--stage { padding-bottom: 130px; }
	.veys-stage__card { margin-top: -100px !important; }
	.veys-stage__card .veys-tiles--icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.veys-stage__card .veys-tiles--icons .veys-tile__box { min-height: 130px; }
}

/* ------------------------------------------------------------------
   2.3.0 – Korrekturen aus dem Design-Check
------------------------------------------------------------------- */
/* Menü: Einträge nie zweizeilig; bei Laptop-Breite etwas kompakter */
.veys-header .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1180px) {
	.veys-header__inner { gap: 16px; }
	.veys-header .wp-block-site-logo img { max-height: 46px; }
	.veys-header .wp-block-navigation__container { gap: 14px !important; }
	.veys-header .wp-block-navigation { font-size: .9rem; }
	.veys-header__actions .wp-block-button__link { padding: .7em 1.05em; font-size: .88rem; }
}

/* Ratgeber-Artikel: Einleitung auf derselben Breite wie der übrige Text */
.wp-block-post-content > .veys-lead { max-width: var(--wp--style--global--content-size, 760px); }

/* Ratgeber-Liste: "Weiterlesen" immer unten auf einer Linie */
.veys-postcard__body { flex: 1; }
.veys-postcard .wp-block-post-excerpt { flex: 1; display: flex; flex-direction: column; }
.veys-postcard .wp-block-post-excerpt__more-text { margin-top: auto !important; }

/* Porträt in gestapelter Ansicht (Tablet/Handy) nicht bildschirmbreit */
@media (max-width: 781px) {
	.veys-portrait { max-width: 340px; }
}

/* Klickstrecke: kein einzelnes Kästchen allein in der letzten Reihe */
@media (min-width: 601px) and (max-width: 860px) {
	.veys-stage__card .veys-tiles--icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 861px) {
	.veys-stage__card .veys-tiles--icons { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
}
@media (max-width: 600px) {
	.veys-stage__card .veys-tiles--icons > .veys-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   2.4.0 – Handy-Menü kompakt (alles ohne Scrollen sichtbar)
------------------------------------------------------------------- */
.veys-subtoggle, .veys-menu-cta { display: none; }
.veys-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
	font-family: var(--wp--preset--font-family--heading);
}
.veys-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 40px !important; gap: 0 !important;
	align-items: stretch !important; min-height: 100%;
}
.veys-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0 !important; width: 100%; align-items: stretch !important; justify-content: flex-start !important;
}
.veys-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%; border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 1.12rem; font-weight: 600;
}
.veys-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: block; width: 100%; padding: 11px 0 !important; text-align: left;
}
.veys-header .is-menu-open .wp-block-navigation-item.has-child {
	display: grid !important; grid-template-columns: 1fr auto; align-items: center;
}
.veys-header .is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon { display: none !important; }
.veys-header .is-menu-open .veys-subtoggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: var(--wp--preset--color--primary); cursor: pointer;
}
.veys-header .is-menu-open .veys-subtoggle svg { transition: transform .2s ease; }
.veys-header .is-menu-open .is-veys-open > .veys-subtoggle svg { transform: rotate(180deg); }
.veys-header .is-menu-open .veys-subtoggle:focus-visible { outline: 2px solid var(--wp--preset--color--accent); }
.veys-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	display: none !important; grid-column: 1 / -1;
	padding: 0 0 10px 14px !important; gap: 0 !important; margin: 0 !important;
}
.veys-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-veys-open > .wp-block-navigation__submenu-container {
	display: flex !important; flex-direction: column;
}
.veys-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { font-size: 1rem; font-weight: 500; }
.veys-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 0 !important; }
.veys-header .is-menu-open .veys-menu-cta {
	display: grid; gap: 10px; margin-top: auto; padding-top: 18px; width: 100%;
}
.veys-menu-cta a {
	display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px;
	text-decoration: none; font-weight: 700; font-size: 1rem;
	border: 1.5px solid var(--wp--preset--color--border); color: var(--wp--preset--color--primary);
}
.veys-menu-cta a.veys-menu-cta__main { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.veys-menu-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ------------------------------------------------------------------
   2.4.0 – „Folgen Sie uns“
------------------------------------------------------------------- */
.veys-social { display: grid; gap: 12px; }
.veys-social__title { margin: 0; font-weight: 700; font-family: var(--wp--preset--font-family--heading); }
.veys-social__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.veys-social__list a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border-radius: 99px; border: 1.5px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--primary); text-decoration: none; font-weight: 600; font-size: .95rem;
	transition: border-color .15s ease, background-color .15s ease;
}
.veys-social__list a:hover { border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--accent-soft); }
.veys-social__list svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.veys-social--footer .veys-social__title { color: var(--wp--preset--color--base); font-size: .95rem; }
.veys-social--footer .veys-social__list a { color: var(--wp--preset--color--base); border-color: color-mix(in srgb, var(--wp--preset--color--base) 30%, transparent); padding: 0; width: 44px; justify-content: center; }
.veys-social--footer .veys-social__list a:hover { background: color-mix(in srgb, var(--wp--preset--color--base) 12%, transparent); border-color: var(--wp--preset--color--base); }
.veys-social--footer .veys-social__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.veys-section--social { text-align: center; }
.veys-section--social .veys-social { justify-items: center; }
.veys-section--social .veys-social__list { justify-content: center; }

/* ------------------------------------------------------------------
   2.4.0 – Objekte: Schnellkontakt neben der Objektliste
------------------------------------------------------------------- */
.veys-objektkontakt {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
	margin: 0 0 20px !important; padding: 18px 22px; border-radius: 14px;
	background: var(--wp--preset--color--accent-soft); border-left: 4px solid var(--wp--preset--color--accent);
}
.veys-objektkontakt__text { margin: 0; }
.veys-objektkontakt__text strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.1rem; color: var(--wp--preset--color--primary); }
.veys-objektkontakt__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.veys-objektkontakt__btns a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 8px;
	font-weight: 700; text-decoration: none; border: 1.5px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); background: var(--wp--preset--color--base);
}
.veys-objektkontakt__btns a.is-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.veys-objektkontakt__btns svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 600px) {
	.veys-objektkontakt__btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
	.veys-objektkontakt__btns a { justify-content: center; }
	.veys-objektkontakt__btns a.is-visit { grid-column: 1 / -1; }
}

/* Menü offen: der Weichzeichner im Kopf würde das Vollbild-Menü auf Kopfhöhe einsperren */
html.has-modal-open .veys-header, html.veys-menu-open .veys-header, .veys-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
	backdrop-filter: none; -webkit-backdrop-filter: none;
	background: var(--wp--preset--color--base); z-index: 100000;
}
html.has-modal-open .veys-mobilebar, html.veys-menu-open .veys-mobilebar, body:has(.wp-block-navigation__responsive-container.is-menu-open) .veys-mobilebar { display: none; }
.veys-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.is-veys-open > .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.veys-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; justify-content: flex-start; }

.veys-section--social :is(h2, .veys-lead) { margin-inline: auto; text-align: center; }

/* Google-Bewertungen: Gesamtnote und Hinweis */
.veys-rating { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: -8px 0 32px !important; color: var(--wp--preset--color--muted); }
.veys-rating strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; color: var(--wp--preset--color--primary); }
.veys-rating__stars { color: var(--wp--preset--color--accent); letter-spacing: 2px; }
.veys-small { font-size: .85rem !important; color: var(--wp--preset--color--muted); margin-top: 14px !important; }


/* ------------------------------------------------------------------
   2.4.7 – Telefonnummer besser sichtbar (UX-Check 01.12.2026)
------------------------------------------------------------------- */
/* Kontaktleiste über dem Kopf (ab Tablet, auf dem Handy übernimmt die untere Leiste) */
.veys-topbar { display: none; }
@media (min-width: 783px) {
	.veys-topbar {
		display: block;
		background: var(--wp--preset--color--primary);
		color: #fff;
		font-family: var(--wp--preset--font-family--heading);
		font-size: .875rem;
		line-height: 1;
	}
	.veys-topbar__inner {
		max-width: var(--wp--style--global--wide-size, 1280px);
		margin-inline: auto;
		min-height: 38px;
		display: flex; align-items: center; justify-content: space-between; gap: 24px;
	}
	.veys-topbar a {
		display: inline-flex; align-items: center; gap: 7px;
		color: #fff; text-decoration: none; white-space: nowrap;
		padding-block: 10px;
	}
	.veys-topbar a:hover, .veys-topbar a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
	.veys-topbar svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
	.veys-topbar__tel { font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
	.veys-topbar__tel svg { width: 17px; height: 17px; }
	.veys-topbar__label { font-weight: 500; opacity: .85; }
	.veys-topbar__links { display: inline-flex; gap: 22px; }
	.veys-topbar__links a { opacity: .9; }
	.veys-topbar__links a:hover { opacity: 1; }
	/* Nummer steht jetzt oben – im Kopf nicht doppelt */
	.veys-header__actions .veys-phone { display: none !important; }
}
@media (min-width: 783px) and (max-width: 1000px) {
	.veys-topbar__label, .veys-topbar__mail { display: none !important; }
}
/* Die Leiste liegt im Kopf: Polsterung des Kopfes nicht auf die Leiste anwenden */
.veys-header > .veys-topbar {
	max-width: none !important;
	padding-inline: var(--wp--style--root--padding-left, 20px) var(--wp--style--root--padding-right, 20px);
	box-sizing: border-box;
}
.veys-header > .veys-topbar + * { margin-top: 0; }

/* Footer: Nummer deutlich als Telefon erkennbar */
.veys-footer__tel { margin-top: 14px !important; }
.veys-footer__tel a {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 1.15rem;
}
.veys-footer__tel a::before {
	content: ""; width: 18px; height: 18px; flex: none;
	background: var(--wp--preset--color--accent-light);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.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 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.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 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Kasten „Direkt erreichen“: Anrufen und WhatsApp als Knöpfe */
.veys-infobox > h3, .veys-infobox > .wp-block-heading { margin-bottom: 14px; }
.veys-contactbtns { display: grid; gap: 10px; margin: 16px 0 14px; }
.veys-contactbtns a {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; border-radius: 10px; text-decoration: none;
	font-family: var(--wp--preset--font-family--heading); font-weight: 700;
	border: 1.5px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary); background: var(--wp--preset--color--base);
	transition: background-color .15s ease, color .15s ease;
}
.veys-contactbtns svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.veys-contactbtns span { display: flex; flex-direction: column; line-height: 1.2; font-size: 1.15rem; }
.veys-contactbtns small { font-size: .78rem; font-weight: 500; opacity: .85; }
.veys-contactbtns__tel { background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.veys-contactbtns__tel:hover { background: var(--wp--preset--color--primary-dark) !important; }
.veys-contactbtns__wa:hover { background: var(--wp--preset--color--accent-soft); }


/* ------------------------------------------------------------------
   2.4.8 – Kontaktleiste oben größer und auffälliger (04.12.2026)
------------------------------------------------------------------- */
@media (min-width: 783px) {
	.veys-topbar { font-size: 1rem; }
	.veys-topbar__inner { min-height: 52px; gap: 28px; }
	.veys-topbar a { gap: 10px; padding-block: 8px; }
	.veys-topbar svg { width: 20px; height: 20px; }
	/* Telefon: groß, fett, Symbol im goldenen Kreis */
	.veys-topbar__tel { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; }
	.veys-topbar__tel svg {
		width: 34px; height: 34px; padding: 8px; box-sizing: border-box;
		border-radius: 50%;
		background: var(--wp--preset--color--accent);
		fill: var(--wp--preset--color--primary);
	}
	.veys-topbar__label { font-size: 1rem; font-weight: 600; opacity: .9; }
	/* WhatsApp und E-Mail als Knöpfe */
	.veys-topbar__links { gap: 12px; }
	.veys-topbar__links a {
		opacity: 1; font-weight: 600;
		padding: 8px 16px; border-radius: 999px;
		border: 1.5px solid rgba(255,255,255,.55);
		transition: background-color .15s ease, border-color .15s ease;
	}
	.veys-topbar__links a:hover, .veys-topbar__links a:focus-visible {
		background: rgba(255,255,255,.12); border-color: #fff; text-decoration: none;
	}
	.veys-topbar__links a:first-child { background: #25D366; border-color: #25D366; color: #fff; }
	.veys-topbar__links a:first-child:hover { background: #1ebe5b; border-color: #1ebe5b; }
}
