/* Vision T1: Gestaltung nach Design.md. Farben und Schriften kommen aus theme.json. */

:root {
	--vt-tinte: #111111;
	--vt-karmin: #C91E44;
	--vt-karmin-dunkel: #A3163A;
	--vt-karmin-hell: #F06A86;
	--vt-karmin-zart: #FBE9ED;
	--vt-kreide: #F5F3EF;
	--vt-grau-text: #5B5B5B;
	--vt-grau-linie: #D8D4CC;
	--vt-kopf: "Archivo", "Arial Black", sans-serif;
}

/* Grundlagen */
body { -webkit-font-smoothing: antialiased; }
a { text-decoration-color: var(--vt-karmin); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--vt-tinte); outline-offset: 3px; }
h1, h2, .vt-mega { font-stretch: 112%; }
p { max-width: 68ch; }
.has-text-align-center { margin-inline: auto; }

/* Dachzeile */
.vt-dach { font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }

/* Roter Unterbalken: in Überschriften markiertes Wort kursiv setzen */
:is(h1, h2, h3, .vt-mega) em,
.vt-ub {
	font-style: normal;
	text-decoration: underline var(--vt-karmin);
	text-decoration-thickness: .12em;
	text-underline-offset: .03em;
	text-decoration-skip-ink: none;
}

/* Überschrift mit schwarzem Balken darüber */
.is-style-vt-balken::before { content: ""; display: block; width: 48px; height: 8px; background: var(--vt-tinte); margin-bottom: 24px; }

/* Kopfzeile */
.vt-kopf { position: sticky; top: 0; z-index: 50; }
.admin-bar .vt-kopf { top: 32px; }
.vt-kopfzeile { background: #fff; border-bottom: 8px solid var(--vt-tinte); }
.vt-kopfzeile .vt-logo img { height: 52px; width: auto; display: block; }
.vt-nav .wp-block-navigation-item__content { font-weight: 700; font-size: 17px; text-decoration: none; padding: 12px 0; border-bottom: 4px solid transparent; transition: border-color .2s ease; }
.vt-nav .wp-block-navigation-item__content:hover { border-bottom-color: var(--vt-tinte); color: var(--vt-tinte); }
.vt-nav .current-menu-item > .wp-block-navigation-item__content,
.vt-nav .wp-block-navigation-item__content[aria-current="page"] { border-bottom-color: var(--vt-karmin); }
.vt-kopfzeile .wp-block-button__link { font-variant-numeric: tabular-nums; padding: 14px 20px; }
@media (max-width: 600px) { .vt-kopfzeile .vt-kopf-datum { display: none; } }

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; text-decoration: none; min-height: 48px; }
.wp-block-button__link:hover { box-shadow: 4px 4px 0 var(--vt-tinte); transform: translate(-2px, -2px); }
.wp-block-button:not(.vt-ohne-pfeil) .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: 12px; transition: transform .2s ease; }
.wp-block-button:not(.vt-ohne-pfeil) .wp-block-button__link:hover::after { transform: translateX(6px); }
.wp-block-button.is-style-vt-rahmen .wp-block-button__link { background: transparent; color: var(--vt-tinte); border: 3px solid var(--vt-tinte); padding: 15px 21px; }
.wp-block-button.is-style-vt-rahmen .wp-block-button__link:hover { background: transparent; color: var(--vt-tinte); }
.vt-dunkel .wp-block-button.is-style-vt-rahmen .wp-block-button__link { color: #fff; border-color: #fff; }

/* Karten, Rahmen, Hinweis */
.is-style-vt-karte { border-top: 8px solid var(--vt-tinte); padding: 32px; transition: transform .25s ease, box-shadow .25s ease; }
.is-style-vt-karte:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--vt-tinte); }
.wp-block-group.is-style-vt-rahmen { border: 3px solid var(--vt-tinte); padding: 24px; }
.is-style-vt-hinweis { background: var(--vt-karmin-zart); box-shadow: inset 4px 0 0 var(--vt-karmin); padding: 24px 24px 24px 32px; }
.vt-symbol { margin: 0 0 8px; }
.vt-symbol img { height: 64px; width: auto; }

/* Liste mit Sensor-Punkten (das O aus dem Logo) */
.is-style-vt-sensor { list-style: none; padding-left: 0; }
.is-style-vt-sensor li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.is-style-vt-sensor li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: radial-gradient(circle, var(--vt-karmin) 0 3.4px, #fff 3.6px 7px, var(--vt-tinte) 7.2px 10.6px, transparent 10.8px);
}
.vt-dunkel .is-style-vt-sensor li::before { background: radial-gradient(circle, var(--vt-karmin-hell) 0 3.4px, transparent 3.6px 7px, #fff 7.2px 10.6px, transparent 10.8px); }
.vt-fakten { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 20px; }
.vt-fakten li { margin-bottom: 0; }

/* Startseite: Titel */
.vt-hero { overflow: hidden; }
.vt-mega .vt-vorzeile { display: block; margin-bottom: .25em; }
.vt-vorzeile { font-family: var(--vt-kopf); font-weight: 900; font-stretch: 112%; font-size: clamp(22px, 4vw, 60px); line-height: 1; letter-spacing: -.01em; margin-bottom: 0 !important; }
.vt-mega { font-family: var(--vt-kopf); font-weight: 900; font-size: clamp(40px, 10vw, 152px) !important; line-height: .9 !important; letter-spacing: -.03em !important; margin-top: 8px !important; }
.vt-slogan { font-family: var(--vt-kopf); font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.vt-datum { background: var(--vt-karmin); color: #fff; padding: 32px; box-shadow: 8px 8px 0 var(--vt-tinte); }
.vt-datum p { margin: 0; }
.vt-datum, .vt-datum .vt-dach { color: #fff; }
.vt-datum .vt-gross { font-family: var(--vt-kopf); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(64px, 7vw, 104px); line-height: .95; letter-spacing: -.03em; }
.vt-datum .vt-jahr { font-family: var(--vt-kopf); font-weight: 800; font-size: clamp(32px, 3vw, 44px); line-height: 1.1; }
.vt-datum .vt-uhrzeit { font-family: var(--vt-kopf); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 20px; margin-top: 16px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.5); }

/* Glukosekurve */
.vt-kurve { position: relative; height: 300px; margin: 48px 0 0; }
.vt-kurve figcaption { position: absolute; left: 0; top: 0; margin: 0; }
.vt-kurve svg.vt-linie { position: absolute; left: 0; top: 64px; width: 100%; height: 220px; display: block; overflow: visible; }
.vt-kurve .vt-pkt { position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.vt-kurve .vt-pkt svg { display: block; position: relative; }
.vt-kurve .vt-puls { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--vt-karmin); opacity: 0; }
.vt-kurve .vt-ziel { position: absolute; left: 0; top: 122px; font-size: 15px; color: var(--vt-grau-text); }
.vt-kurve ol { list-style: none; margin: 0; padding: 0; }
.vt-kurve li { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.vt-kurve li b { font-family: var(--vt-kopf); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 20px; line-height: 1.1; }
.vt-kurve li span { font-size: 15px; line-height: 1.3; }
@media (max-width: 900px) {
	.vt-kurve { height: auto; }
	.vt-kurve figcaption { position: static; }
	.vt-kurve svg.vt-linie { position: relative; top: 0; margin-top: 16px; height: 160px; }
	.vt-kurve .vt-pkt, .vt-kurve .vt-ziel { display: none; }
	.vt-kurve ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
	.vt-kurve li { position: static; transform: none; text-align: left; white-space: normal; }
}

/* Programm */
.vt-zeile { display: grid !important; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--vt-grau-linie); margin: 0 !important; }
.vt-zeile:last-of-type { border-bottom: 1px solid var(--vt-grau-linie); }
.vt-zeit { font-family: var(--vt-kopf); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 22px; line-height: 1.3; margin: 0; }
.vt-zeile > * { margin-block: 0 !important; }
.vt-zeile > .wp-block-group > * { margin-block: 0 8px; }
.vt-jetzt .vt-zeit::before { content: ""; display: inline-block; vertical-align: -3px; width: 20px; height: 20px; margin-right: 12px; border-radius: 50%; background: radial-gradient(circle, var(--vt-karmin) 0 3px, #fff 3.2px 6.2px, var(--vt-tinte) 6.4px 9.6px, transparent 9.8px); }
@media (max-width: 768px) { .vt-zeile { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Häufige Fragen */
.vt-fragen .wp-block-details { border-top: 1px solid var(--vt-grau-linie); margin: 0; padding: 0; }
.vt-fragen .wp-block-details:last-child { border-bottom: 1px solid var(--vt-grau-linie); }
.vt-fragen summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--vt-kopf); font-weight: 800; font-size: 22px; line-height: 1.25; }
.vt-fragen summary::-webkit-details-marker { display: none; }
.vt-fragen summary::after { content: "+"; flex: none; width: 40px; height: 40px; border: 3px solid var(--vt-tinte); display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; box-sizing: border-box; transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.vt-fragen .wp-block-details[open] { box-shadow: inset 4px 0 0 var(--vt-karmin); padding-left: 24px; }
.vt-fragen .wp-block-details[open] summary::after { background: var(--vt-tinte); color: #fff; transform: rotate(45deg); }
.vt-fragen .wp-block-details > :not(summary) { margin: 0 0 24px; }
.vt-fragen-schalter { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; margin: 0 0 16px auto; border: 3px solid var(--vt-tinte); background: transparent; color: var(--vt-tinte); font: 800 16px/1 var(--vt-kopf); cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.vt-fragen-schalter:hover { box-shadow: 4px 4px 0 var(--vt-tinte); transform: translate(-2px, -2px); }
.vt-fragen-leiste { display: flex; justify-content: flex-end; }

/* Über uns */
.vt-bed { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--vt-grau-linie); margin: 0 !important; }
.vt-bed:last-child { border-bottom: 1px solid var(--vt-grau-linie); }
.vt-bed > * { margin-block: 0 !important; }
.vt-bed .wp-block-image { margin: 0; display: flex; justify-content: center; }
.vt-bed .wp-block-image img { height: 80px; width: auto; }
.vt-bed .wp-block-group > * { margin-block: 0 4px; }
.vt-kreis { width: 120px; height: 120px; border-radius: 50%; background: var(--vt-grau-linie); display: flex; align-items: center; justify-content: center; font-family: var(--vt-kopf); font-weight: 800; font-size: 36px; margin: 0 0 16px; }
.vt-person .wp-block-image img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.vt-namen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--vt-grau-linie); }
.vt-namen li { padding: 16px 0; border-bottom: 1px solid var(--vt-grau-linie); font-weight: 500; }
@media (max-width: 1024px) { .vt-namen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .vt-namen { grid-template-columns: minmax(0, 1fr); } }

/* Dunkle Abschnitte */
.vt-dunkel, .vt-dunkel :is(h1, h2, h3, p, li) { color: #fff; }
.vt-dunkel a:not(.wp-block-button__link) { color: #fff; }
.vt-dunkel .vt-dach, .vt-dunkel .vt-akzent { color: var(--vt-karmin-hell); }
.vt-dunkel .wp-block-button__link:hover { box-shadow: 4px 4px 0 #fff; }

/* Fußzeile */
.vt-fusszeile { border-top: 8px solid var(--vt-tinte); }
.vt-fusszeile h4 { font-family: var(--vt-kopf); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.vt-fusszeile p { line-height: 1.6; }
.vt-fuss-slogan { font-weight: 700; margin-top: 16px; }
.vt-fuss-recht { border-top: 1px solid var(--vt-grau-linie); padding-top: 24px; }
.vt-fusszeile .vt-logo img { width: 150px; height: auto; }

/* Galerie ohne Bilder ausblenden */
.wp-block-gallery:empty { display: none; }

/* Bewegung */
@keyframes vt-auf { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes vt-hoch { from { opacity: 0; translate: 0 .4em; } to { opacity: 1; translate: 0 0; } }
@keyframes vt-ein { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes vt-balken { from { width: 0; } to { width: 48px; } }
@keyframes vt-zeichnen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-puls { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
	.vt-vorzeile { animation: vt-hoch .9s cubic-bezier(.2, .7, .2, 1) both; }
	.vt-mega { animation: vt-hoch .9s .12s cubic-bezier(.2, .7, .2, 1) both; }
	.vt-datum { animation: vt-hoch .9s .4s cubic-bezier(.2, .7, .2, 1) both; }
	@supports (animation-timeline: view()) {
		main :is(h2:not(.vt-dach), .is-style-vt-karte, .vt-zeile, .wp-block-details, .vt-blick-feld, .vt-bed, .vt-person, .vt-namen li, .is-style-vt-sensor li, .wp-block-gallery) {
			animation: vt-auf linear both; animation-timeline: view(); animation-range: entry 5% entry 45%;
		}
		.is-style-vt-balken::before { animation: vt-balken linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
	}
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 781px) {
	.vt-hero .wp-block-columns { gap: 40px; }
}

/* ---------- Version 1.1: Fokus Veranstaltung ---------- */

/* Startseite: Kopfbereich passt auf einen 16:9-Bildschirm */
.vt-hero { padding-top: clamp(24px, 5vh, 64px) !important; padding-bottom: clamp(32px, 6vh, 64px) !important; }
.vt-hero .vt-hero-text > * { margin-block: 0 clamp(12px, 2.4vh, 24px); }
.vt-hero .vt-mega { font-size: clamp(40px, min(8.2vw, 13vh), 116px) !important; margin: 0 0 clamp(8px, 2vh, 24px) !important; }
.vt-hero .vt-vorzeile { font-size: .4em; margin-bottom: .15em; }
.vt-hero .vt-fakten { margin-bottom: clamp(16px, 2.6vh, 28px); }
.vt-hero .vt-datum { padding: clamp(20px, 3.6vh, 32px); }
.vt-hero .vt-datum .vt-gross { font-size: clamp(56px, min(5.4vw, 10vh), 84px); }
@media (min-width: 1025px) { .vt-mega { white-space: nowrap; } }
@media (min-width: 1025px) and (max-height: 700px) {
	.vt-hero .vt-slogan { font-size: 24px; }
	.vt-hero .has-einleitung-font-size, .vt-hero .vt-fakten { font-size: 18px !important; }
	.vt-hero .vt-hero-text > * { margin-block: 0 10px; }
}
.vt-datum .vt-noch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.5); }
.vt-noch-zahl { font-family: var(--vt-kopf); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 32px; line-height: 1; }
.vt-datum-klein { padding: 24px; }
.vt-datum-klein .vt-jahr { font-size: clamp(32px, 3vw, 44px); }
.vt-datum-klein .vt-uhrzeit { border-top: 0; padding-top: 0; margin-top: 4px; }

/* Karten mit Dachzeile und Uhrzeit */
.is-style-vt-karte .vt-dach { font-size: 14px; }
.is-style-vt-karte > * { margin-block: 0 12px; }

/* Rahmen auf Kreide */
.wp-block-group.is-style-vt-rahmen.has-papier-background-color { padding: 32px; }
.is-style-vt-rahmen .wp-block-buttons { gap: 16px; }

/* Auf einen Blick */
.vt-blick { gap: 0 !important; border-top: 8px solid var(--vt-tinte); }
.vt-blick .wp-block-column { border-right: 1px solid var(--vt-grau-linie); }
.vt-blick .wp-block-column:last-child { border-right: 0; }
.vt-blick-feld { padding: 32px 24px; }
.vt-blick-feld > * { margin-block: 0 8px; }
.vt-blick-wert { font-family: var(--vt-kopf); font-weight: 800; font-size: 26px; line-height: 1.2; }
@media (max-width: 781px) { .vt-blick .wp-block-column { border-right: 0; border-bottom: 1px solid var(--vt-grau-linie); } }

/* Programm über die volle Breite */
.vt-plan .vt-zeile { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.vt-plan .vt-zeit { font-size: clamp(24px, 2.2vw, 32px); }
.vt-plan .vt-zeile p { max-width: 40em; }
.vt-plan .vt-zeile:last-child { border-bottom: 1px solid var(--vt-grau-linie); }
.vt-raeume { margin-top: 16px !important; }
.vt-raum { padding: 16px 20px !important; }
.vt-raum > * { margin: 0 !important; }
.vt-ausstellung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.vt-ausstellung > * { margin: 0 !important; }
.vt-ausstellung-zeit { font-family: var(--vt-kopf); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(28px, 2.4vw, 36px); color: var(--vt-karmin); display: flex; align-items: center; gap: 16px; }
.vt-ausstellung-zeit::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--vt-karmin) 0 3.4px, #fff 3.6px 7px, var(--vt-tinte) 7.2px 10.6px, transparent 10.8px); }
@media (max-width: 768px) { .vt-plan .vt-zeile { grid-template-columns: minmax(0, 1fr); } }

/* Über uns */
.vt-logo-gross { margin-top: 32px; }
.vt-logo-gross img { width: 100%; max-width: 360px; height: auto; }
.vt-termin { padding: 24px; }
.vt-termin > * { margin-block: 0 8px; }
.vt-termin h3 { color: #fff; }
.vt-termin .vt-uhrzeit { border-top: 0; padding-top: 0; margin-top: 0; }
.vt-auf-karmin .wp-block-button__link { background: #fff; color: var(--vt-tinte); }
.vt-auf-karmin .wp-block-button__link:hover { background: #fff; color: var(--vt-tinte); }
.vt-abschluss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px !important; }
.vt-abschluss > * { margin: 0 !important; }
.vt-abschluss h3 { margin-bottom: 8px; }

/* Häufige Fragen auf der Startseite: ohne „Alle aufklappen“ */
.vt-fragen-kurz .vt-fragen-leiste { display: none; }
@media (max-width: 781px) { .vt-hero .vt-mega { font-size: clamp(40px, 12vw, 72px) !important; } }

/* ---------- Version 1.2 ---------- */

/* Sprungmarken nicht unter der festen Kopfzeile verstecken */
[id] { scroll-margin-top: 112px; }
@media (max-width: 781px) { [id] { scroll-margin-top: 140px; } }

/* Slogan deutlich hervorheben */
.vt-slogan { font-weight: 900; color: var(--vt-tinte); font-size: clamp(30px, min(3.4vw, 6vh), 50px); line-height: 1.08; border-left: 10px solid var(--vt-karmin); padding-left: 22px; }
@media (min-width: 1025px) and (max-height: 700px) { .vt-hero .vt-slogan { font-size: 30px; } }

/* Hinweisfläche neutral statt rot */
.is-style-vt-hinweis { background: var(--vt-kreide); box-shadow: none; border-top: 4px solid var(--vt-tinte); padding: 24px; }
.has-kreide-background-color .is-style-vt-hinweis, .has-kreide-background-color.is-style-vt-hinweis { background: #fff; }
.is-style-vt-hinweis > * { margin-block: 0 8px; }
.is-style-vt-hinweis > :last-child { margin-bottom: 0; }

/* Anreise: Foto links, Rahmen rechts, gleiche Höhe */
.vt-ort-l { display: flex; flex-direction: column; }
.vt-ort-l > * { margin-block: 0 24px !important; }
.vt-ort-l > :last-child { margin-bottom: 0 !important; }
.vt-foto-platz { flex: 1 1 auto; min-height: 220px; background: var(--vt-grau-linie); border-top: 8px solid var(--vt-tinte); display: flex !important; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.vt-foto-platz p { font-size: 15px; margin: 0; }
.vt-ort-l .wp-block-image { flex: 1 1 auto; min-height: 220px; margin: 0; border-top: 8px solid var(--vt-tinte); }
.vt-ort-l .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 781px) { .vt-foto-platz, .vt-ort-l .wp-block-image { aspect-ratio: 4 / 3; } }
.vt-anreise-knoepfe { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.vt-anreise-knoepfe > * { margin: 0 !important; }

/* Kalender-Auswahl */
.vt-kal { position: relative; display: inline-block; }
.vt-kal-knopf { box-sizing: border-box; list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 21px; border: 3px solid var(--vt-tinte); background: transparent; color: var(--vt-tinte); font-family: var(--vt-kopf); font-weight: 800; font-size: 18px; line-height: 1.2; transition: box-shadow .2s ease, transform .2s ease; }
.vt-kal-knopf::-webkit-details-marker { display: none; }
.vt-kal-knopf:hover { box-shadow: 4px 4px 0 var(--vt-tinte); transform: translate(-2px, -2px); }
.vt-kal-pfeil { display: inline-block; transition: transform .2s ease; }
.vt-kal[open] .vt-kal-pfeil { transform: rotate(180deg); }
.vt-kal-menue { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 100%; background: #fff; border: 3px solid var(--vt-tinte); box-shadow: 6px 6px 0 var(--vt-tinte); display: flex; flex-direction: column; }
.vt-kal-menue a { padding: 14px 20px; font-weight: 700; text-decoration: none; color: var(--vt-tinte); border-top: 1px solid var(--vt-grau-linie); white-space: nowrap; }
.vt-kal-menue a:first-child { border-top: 0; }
.vt-kal-menue a:hover { background: var(--vt-kreide); }
@media (max-width: 480px) { .vt-kal, .vt-kal-knopf { width: 100%; justify-content: space-between; } .vt-kal-menue a { white-space: normal; } }

/* Programm kompakter, Industrieausstellung über dem Ablauf */
.vt-plan .vt-zeile { padding: 18px 0; align-items: baseline; }
.vt-plan .vt-zeile h3 { font-size: 22px; }
.vt-plan .vt-zeile > .wp-block-group > * { margin-block: 0 4px; }
.vt-plan .vt-zeit { font-size: clamp(22px, 1.9vw, 26px); }
.vt-plan .vt-raeume { margin-top: 10px !important; gap: 12px !important; }
.vt-plan .vt-raum { padding: 10px 16px !important; display: flex; align-items: baseline; gap: 10px; }
.vt-ausstellung { margin-bottom: 24px !important; }
.vt-ausstellung .vt-ausstellung-text { flex: 1 1 260px; }

/* Kontaktformular */
.vt-formular { display: flex; flex-direction: column; gap: 24px; }
.vt-feld { display: flex; flex-direction: column; gap: 8px; }
.vt-feld label { font-weight: 700; font-size: 17px; }
.vt-feld input, .vt-feld textarea { font: inherit; font-size: 18px; padding: 14px 16px; border: 2px solid var(--vt-grau-linie); border-radius: 0; background: #fff; color: var(--vt-tinte); width: 100%; box-sizing: border-box; }
.vt-feld input:focus, .vt-feld textarea:focus { border-color: var(--vt-tinte); }
.vt-feld textarea { min-height: 180px; resize: vertical; }
.vt-feld-versteckt { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vt-check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start; }
.vt-check input { width: 28px; height: 28px; margin: 0; accent-color: var(--vt-karmin); }
.vt-check label { font-size: 16px; line-height: 1.6; }
.vt-formular button.wp-block-button__link { border: 0; cursor: pointer; font: inherit; font-family: var(--vt-kopf); font-weight: 700; }
.vt-meldung { background: var(--vt-kreide); border-top: 4px solid var(--vt-tinte); padding: 24px; margin-bottom: 24px; }
.vt-meldung-ok { border-top-color: var(--vt-karmin); }
.vt-meldung p { margin: 0 0 4px; }

/* Rechtstexte */
.vt-recht h2 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 48px; }
.vt-recht h3 { font-size: 20px; margin-top: 32px; }
.vt-recht h4 { font-size: 18px; margin-top: 24px; }
.vt-recht p, .vt-recht li { overflow-wrap: anywhere; }

/* Bewegung beim Scrollen deutlicher */
@keyframes vt-auf { from { opacity: 0; translate: 0 72px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes vt-foto { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		main :is(h2:not(.vt-dach), .is-style-vt-karte, .vt-zeile, .wp-block-details, .vt-blick-feld, .vt-bed, .vt-person, .vt-namen li, .is-style-vt-sensor li, .wp-block-gallery, .has-einleitung-font-size, .wp-block-group.is-style-vt-rahmen, .is-style-vt-hinweis) {
			animation: vt-auf linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
		}
		main :is(.vt-foto-platz, .vt-ort-l .wp-block-image, .wp-block-gallery .wp-block-image) { animation: vt-foto linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
		main .wp-block-column:nth-child(2) > :is(.is-style-vt-karte, .vt-blick-feld, .vt-person) { animation-range: entry 6% entry 76%; }
		main .wp-block-column:nth-child(3) > :is(.is-style-vt-karte, .vt-blick-feld, .vt-person) { animation-range: entry 12% entry 82%; }
		main .wp-block-column:nth-child(4) > :is(.is-style-vt-karte, .vt-blick-feld, .vt-person) { animation-range: entry 18% entry 88%; }
		.vt-hero .has-einleitung-font-size { animation: none; }
	}
}

/* Impressum und Datenschutz ohne Bewegung */
.vt-ruhig *, .vt-ruhig *::before, .vt-ruhig *::after { animation: none !important; }

/* Fotos (17.11.2026) */
.vt-foto { margin: 0; border-top: 8px solid var(--vt-tinte); background: var(--vt-grau-linie); overflow: hidden; }
.vt-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vt-foto-team img { aspect-ratio: 3 / 2; }
.vt-foto-breit { margin-bottom: var(--wp--preset--spacing--60) !important; }
.vt-foto-breit img { aspect-ratio: 21 / 9; object-position: 50% 60%; }
@media (max-width: 781px) { .vt-foto-breit img { aspect-ratio: 3 / 2; } }
.vt-rb { overflow: visible; background: none; }
.vt-rb img { aspect-ratio: 4 / 3; }
.vt-rb figcaption { font-size: 15px; color: var(--vt-grau-text); margin-top: 10px; text-align: left; }
.vt-ort-l .vt-foto { position: relative; }
.vt-ort-l .vt-foto img { position: absolute; inset: 0; }
@media (max-width: 781px) { .vt-ort-l .vt-foto img { position: static; aspect-ratio: 4 / 3; } }
.vt-person .wp-block-image { margin: 0 0 16px; }
.vt-person .wp-block-image img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		main .vt-foto:not(.vt-rb) { animation: vt-foto linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
		main .vt-rb img { animation: vt-foto linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
	}
}

/* ---------- Version 1.3 (20.11.2026) ---------- */

/* Slogan als eine Zeile, mit Abstand zum Titel */
.vt-slogan { white-space: nowrap; font-size: clamp(18px, min(2.9vw, 6vh), 44px); }
.vt-hero .vt-hero-text > .vt-slogan { margin-top: clamp(20px, 4vh, 40px); }
@media (max-width: 781px) {
	.vt-hero-text { container-type: inline-size; }
	.vt-slogan { font-size: calc((100cqi - 22px) / 18.8); border-left-width: 8px; padding-left: 14px; }
}

/* Startseite „Wer Sie einlädt“: Abstand zwischen Überschrift und Foto */
.vt-foto-team { margin-top: var(--wp--preset--spacing--50) !important; }

/* Leere Spalten nicht anzeigen */
.wp-block-column:empty { display: none; }

/* Mobil: kurze Texte statt langer */
.vt-kurz { display: none !important; }
@media (max-width: 781px) {
	.vt-kurz { display: block !important; }
	.vt-lang { display: none !important; }
}

/* Mobil kompakter: weniger Luft, damit man die Seite schnell überblickt */
@media (max-width: 781px) {
	main .wp-block-group.alignfull:not(.vt-hero) { padding-top: 40px !important; padding-bottom: 40px !important; }
	main .wp-block-columns { gap: 16px !important; }
	main .wp-block-columns[style*="margin-bottom"] { margin-bottom: 20px !important; }
	main h2.wp-block-heading { font-size: 28px !important; }
	main .has-einleitung-font-size { font-size: 18px !important; }
	.is-style-vt-karte { padding: 20px !important; border-top-width: 6px; }
	.is-style-vt-karte > * { margin-block: 0 8px; }
	.is-style-vt-karte .wp-block-image img, .is-style-vt-karte img[src$=".svg"] { max-height: 32px; width: auto; }
	.vt-hero .vt-datum { padding: 20px !important; }
	.vt-hero .vt-hero-text > * { margin-block-end: 14px; }
	/* Rückblick: Fotos nebeneinander zum Wischen */
	main .wp-block-columns:has(> .wp-block-column > .vt-rb) { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	main .wp-block-columns:has(> .wp-block-column > .vt-rb) > .wp-block-column { flex: 0 0 78% !important; scroll-snap-align: start; }
}
@media (max-width: 781px) {
	/* Vorstand im Raster 2 × 2, Mitglieder in zwei Spalten */
	main .wp-block-columns:has(> .wp-block-column > .vt-person) { margin-bottom: 32px !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px !important; }
	.vt-person .wp-block-image img { width: 88px; height: 88px; }
	.vt-person h3, .vt-person .wp-block-heading { font-size: 18px !important; }
	.vt-namen { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 16px; }
	.vt-namen li { padding: 10px 0; font-size: 15px; }
	.vt-bed { padding-block: 12px !important; }
}
@media (max-width: 781px) {
	/* „Auf einen Blick“ im Raster 2 × 2 */
	.vt-blick .wp-block-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 !important; }
	.vt-blick .wp-block-column { border-bottom: 1px solid var(--vt-grau-linie); }
	.vt-blick .wp-block-column:nth-child(odd) { border-right: 1px solid var(--vt-grau-linie) !important; }
}

/* Social Media in der Kopfzeile (1.3.2) */
.vt-social { gap: 12px !important; margin: 0 !important; }
.vt-social .wp-social-link { color: var(--vt-tinte); }
.vt-social .wp-social-link a { padding: 4px !important; }
.vt-social .wp-social-link svg { width: 24px; height: 24px; }
.vt-social .wp-social-link:hover { color: var(--vt-karmin); transform: none; }
@media (max-width: 781px) {
	.vt-kopfzeile .wp-block-group { gap: 12px !important; }
	.vt-social { gap: 4px !important; order: -1; }
	.vt-social .wp-social-link svg { width: 22px; height: 22px; }
}

/* Programmseite: Datum in der Dachzeile mobil in eigener Zeile (1.3.3) */
@media (max-width: 781px) {
	.vt-trenner { display: none; }
	.vt-datumzeile { display: block; }
}

/* 1.3.4: Text neben Überschriften mit Balken auf Höhe der Überschrift beginnen (Balken 8 px + 24 px Abstand) */
@media (min-width: 782px) {
	.wp-block-columns:has(> .wp-block-column:first-child > .is-style-vt-balken:first-child) > .wp-block-column:not(:first-child):not(:has(> .is-style-vt-balken:first-child)) { padding-top: 32px; }
}
/* 1.3.4: Vorstand mobil zentriert */
@media (max-width: 781px) {
	.vt-person { text-align: center; align-items: center; }
	.vt-person .wp-block-image { display: flex; justify-content: center; }
	.vt-person .wp-block-image img { margin-inline: auto; }
}

/* 1.3.5: Roter Unterbalken reicht bis zum Ende des letzten Buchstabens.
   Bisher Unterstreichung: Sie endet wegen der engeren Laufweite vor dem letzten Buchstaben.
   Jetzt eine Fläche unter dem Wort, die um den Überstand verlängert ist, ohne den Satz zu verschieben. */
:is(h1, h2, h3, .vt-mega) em,
.vt-ub {
	text-decoration: none;
	background-image: linear-gradient(var(--vt-karmin), var(--vt-karmin));
	background-repeat: no-repeat;
	background-size: 100% .12em;
	background-position: 0 calc(100% - .055em);
	padding-right: .06em;
	margin-right: -.06em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* 1.3.5: Strich unter den Menüpunkten näher am Text */
.vt-nav .wp-block-navigation-item__content { padding: 12px 0 3px; margin-bottom: 9px; }
