/*
Theme Name: Vandabar Maison
Theme URI: https://vandabar.com/
Author: Vandabar
Description: Block-Theme für die Schmuck-Manufaktur Vandabar. Gestaltung nach dem Vandabar Designsystem: Saira für alles, Perlgrau als Grund (lokal eingebunden, keine externen Schriftserver).
Version: 1.0.17
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vandabar-maison
*/

/* ---------- Grundlagen ---------- */
a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
::selection { background: #300C46; color: #FFFFFF; }
/* Alte Schrift- und Farbnamen zeigen auf das Designsystem – falls im Editor angepasste Vorlagen sie noch verwenden */
:root {
	--wp--preset--font-family--bodoni: var(--wp--preset--font-family--saira);
	--wp--preset--font-family--jost: var(--wp--preset--font-family--saira);
	--wp--preset--color--aubergine: var(--wp--preset--color--violett);
}

/* ---------- Abschnitte ---------- */
.vb-sektion { padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(80px, 11vw, 160px); }
/* Grund ist Perlgrau; „perl“-Abschnitte setzen sich als weiße Fläche ab */
.vb-sektion--perl { background: #FFFFFF; }
.vb-sektion--nacht { background: #1E1D20; color: #F6F5F2; }
.vb-sektion--nacht :where(h1, h2, h3, h4, a) { color: #F6F5F2; }
.vb-sektion--nacht .is-style-vb-label { color: #ADA9B3; }
.vb-sektion--nacht p:not(.is-style-vb-label) { color: #C9C5CE; }
.vb-sektion--nacht .wp-block-button:not(.is-style-vb-linie):not(.is-style-vb-kontur) .wp-block-button__link { background: #F6F5F2; color: #1F1D21; border-color: #F6F5F2; }
.vb-sektion--nacht .wp-block-button:not(.is-style-vb-linie):not(.is-style-vb-kontur) .wp-block-button__link:hover { background: #CDB8E0; color: #1F1D21; border-color: #CDB8E0; }
.vb-sektion--nacht .is-style-vb-linie .wp-block-button__link { color: #F6F5F2; border-bottom-color: #6E6A74; }
.vb-sektion--nacht .is-style-vb-kontur .wp-block-button__link { color: #F6F5F2; border-color: #F6F5F2; }
.vb-sektion--nacht a:hover { color: #CDB8E0; }
.vb-zentriert { text-align: center; }
.vb-zentriert .wp-block-buttons { justify-content: center; }

.vb-buehne { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(24px, 4vw, 56px); }

/* Zweispaltige Abschnitte: Bild und Text vertikal zentriert, großzügiger Abstand */
.wp-block-columns.vb-split { align-items: center; gap: clamp(40px, 6vw, 80px); }
.wp-block-columns.vb-split.vb-split--oben { align-items: flex-start; }

/* Kopfzeile eines Abschnitts mit Haarlinie */
.vb-zeile { border-top: 1px solid #E4E4E8; padding-top: 24px; margin-bottom: 48px !important; }

/* ---------- Typografie ---------- */
.is-style-vb-label {
	font-size: 13px !important;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #66626B;
	font-weight: 500;
	line-height: 1.6;
}
.is-style-vb-label a { color: inherit; text-decoration: none; }
/* Labels, die für Screenreader als Überschrift dienen, sehen aus wie alle Labels */
h2.is-style-vb-label { font-family: var(--wp--preset--font-family--saira); font-style: normal; letter-spacing: 0.2em; margin-top: 0; margin-bottom: 0; }
/* Titel in Stück-Rastern: semantisch h2, optisch wie bisher */
.wp-block-query h2.wp-block-post-title { font-size: 24px; line-height: 1.25; }
.vb-zitat { font-family: var(--wp--preset--font-family--saira); font-size: var(--wp--preset--font-size--zitat); line-height: 1.35; font-weight: 400; color: #1F1D21; }
.vb-zitat strong, .vb-zitat em { font-style: normal; font-weight: 700; }
.vb-gedaempft { color: #4A4650; }
.vb-preis { font-size: 24px; font-weight: 500; color: #1F1D21; margin-bottom: 0 !important; }
.vb-preis-hinweis { font-size: 13px; line-height: 1.4; color: #66626B; margin-top: 4px !important; }
.vb-gedaempft + .vb-preis-hinweis { margin-top: 0 !important; }
/* Designsystem: Betonung über Gewicht, nicht kursiv – „Schmuck.“ in 700 */
h1 em, h2 em, h3 em, h4 em, .wp-block-post-title em { font-style: normal; font-weight: 700; }
strong, b { font-weight: 700; }
/* Große Überschriften nie mitten im Wort umbrechen; lange Wörter werden getrennt */
h1, h2, h3, .wp-block-post-title, .vb-zitat { overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-vb-kontur .wp-block-button__link {
	background: transparent;
	color: #1F1D21;
	border: 1px solid #1F1D21;
}
.wp-block-button.is-style-vb-kontur .wp-block-button__link:hover { background: #1F1D21; color: #FFFFFF; }
.wp-block-button.is-style-vb-linie .wp-block-button__link {
	background: transparent;
	color: #1F1D21;
	border: 0;
	border-bottom: 1px solid currentColor;
	padding: 0 0 6px;
}
.wp-block-button.is-style-vb-linie .wp-block-button__link:hover { color: #300C46; background: transparent; }

/* ---------- Kopfbereich ---------- */
.vb-hinweis { background: #FFFFFF; border-bottom: 1px solid #E4E4E8; text-align: center; padding: 10px 20px !important; margin: 0 !important; }
.vb-kopf { padding-top: 28px; padding-bottom: 28px; text-align: center; }
.vb-kopf .wp-block-site-title { margin: 0; padding-left: 0.3em; }
.vb-kopf .wp-block-site-title a { text-decoration: none; color: #1F1D21; }
.vb-kopf .vb-unterzeile { margin-top: 6px !important; font-size: 10px !important; letter-spacing: 0.42em; }
.vb-kopf .wp-block-navigation { margin-top: 22px; }
/* Logo */
.vb-kopf .wp-block-site-logo { margin: 0 auto; line-height: 0; }
.vb-kopf .wp-block-site-logo img { width: 220px; height: auto; }
.vb-fuss .wp-block-site-logo { margin: 0 0 14px; line-height: 0; }
.vb-fuss .wp-block-site-logo img { width: 150px; height: auto; }
.vb-kopf .wp-block-navigation a { text-decoration: none; }
.vb-kopf .wp-block-navigation a:hover { text-decoration: underline; }
.vb-kopf .wp-block-navigation__container { gap: 10px 36px; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 32px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 22px; }

/* ---------- Fixierte Kopfleiste beim Scrollen ---------- */
/* Oben steht der große Kopf. Wer scrollt, sieht eine schmale Leiste mit Logo und Menü.
   Der Platz des großen Kopfs bleibt reserviert (min-height per Skript), damit nichts springt. */
body.vb-fix .vb-kopf {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 12px clamp(20px, 4vw, 40px);
	background: rgba(245, 245, 247, 0.97);
	border-bottom: 1px solid #E4E4E8;
	/* nur „backwards“: nach dem Einblenden bleibt keine Transformation aktiv – sonst wäre das Handy-Menü in der Leiste eingesperrt */
	animation: vb-einblenden 320ms cubic-bezier(.2, .7, .2, 1) backwards;
}
body.vb-fix .vb-kopf > * { margin: 0 !important; max-width: none !important; }
body.vb-fix .vb-kopf .wp-block-site-logo img { width: 96px; }
body.vb-fix .vb-kopf .wp-block-site-title { font-size: 22px !important; padding-left: 0; }
body.vb-fix .vb-kopf .wp-block-navigation { margin-top: 0; }
@keyframes vb-einblenden { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.vb-fix .vb-kopf { animation: none; } }
@media (max-width: 600px) { body.vb-fix .vb-kopf { top: 0; } }
/* Sprungziele (Savoir-faire, Begegnungen …) nicht unter der Leiste verstecken */
[id] { scroll-margin-top: 96px; }

/* ---------- Bilder ---------- */
.wp-block-image.vb-kachel { margin-bottom: 22px; overflow: hidden; }
.wp-block-image.vb-kachel img { transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
.wp-block-image.vb-kachel:hover img { transform: scale(1.025); }
.vb-kollektion h3 a, .vb-kollektion .wp-block-post-title a { text-decoration: none; }
.vb-kollektion .vb-mehr { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .wp-block-image.vb-kachel img { transition: none; } }

/* ---------- Savoir-faire-Liste mit römischen Ziffern ---------- */
ol.vb-schritte { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: vb; }
ol.vb-schritte > li {
	counter-increment: vb;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid #DCDCE1;
	color: #66626B;
}
ol.vb-schritte > li:last-child { border-bottom: 1px solid #DCDCE1; }
ol.vb-schritte > li::before { content: counter(vb, upper-roman); font-family: var(--wp--preset--font-family--saira); font-size: 20px; font-weight: 500; color: #1F1D21; }
ol.vb-schritte > li strong { display: block; font-weight: 500; color: #1F1D21; }
.vb-sektion--nacht ol.vb-schritte > li { border-color: #3A383E; color: #C9C5CE; }
.vb-sektion--nacht ol.vb-schritte > li::before, .vb-sektion--nacht ol.vb-schritte > li strong { color: #F6F5F2; }

/* ---------- Stück-Seite ---------- */
.vb-angaben { display: grid; grid-template-columns: max-content 1fr; column-gap: 0; row-gap: 0; margin-top: 16px; }
.vb-angaben > :nth-child(odd) { padding-right: 32px; }
.vb-angaben > p:empty, .vb-angaben > p:has(+ p:empty) { display: none; }
.vb-angaben > * { margin: 0 !important; padding: 10px 0; border-top: 1px solid #E4E4E8; font-size: 15px; }
.vb-angaben > :nth-child(odd) { color: #66626B; }
.wp-block-details { border-bottom: 1px solid #E4E4E8; padding: 18px 0; }
.wp-block-details summary { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: #1F1D21; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-weight: 400; }
.wp-block-details[open] summary::after { content: "–"; }
.vb-stueck-galerie.wp-block-gallery { gap: 16px !important; }
/* Hauptbild eines Stücks immer vollständig zeigen – nie beschneiden (gilt auch für im Editor angepasste Vorlagen) */
.vb-stueck-bild { text-align: center; }
.vb-stueck-bild img { aspect-ratio: auto !important; object-fit: contain !important; width: auto !important; max-width: 100%; height: auto !important; max-height: 82vh; margin: 0 auto; }

/* ---------- Stück der Saison ---------- */
.vb-saison .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.vb-saison h2.vb-saison__titel { font-size: var(--wp--preset--font-size--titel); line-height: 1.1; }
.vb-saison h2.vb-saison__titel a { text-decoration: none; }
.vb-saison .wp-block-post-excerpt__more-text { display: none; }
.vb-knopf-kontur.wp-block-read-more { display: inline-block; margin-top: 16px; padding: 18px 36px; border: 1px solid #1F1D21; color: #1F1D21; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; line-height: 1.4; }
.vb-knopf-kontur.wp-block-read-more:hover, .vb-knopf-kontur.wp-block-read-more:focus-visible { background: #1F1D21; color: #FFFFFF; }

/* ---------- Zum Markt mitbringen ---------- */
.vb-zum-markt { border-top: 1px solid #E4E4E8; padding-top: 18px; }
.vb-zum-markt .is-style-vb-label { margin: 0 0 4px; }
.vb-zum-markt p { margin: 0; }
.vb-zum-markt a { font-weight: 500; color: #1F1D21; }
.vb-zum-markt .vb-gedaempft { font-size: 15px; }

/* ---------- Häufige Fragen ---------- */
.vb-faq h2.vb-faq__gruppe { font-size: 24px; line-height: 1.25; margin-top: 72px; margin-bottom: 8px; }
.vb-faq .wp-block-details { margin-top: 0; padding: 0; }
.vb-faq .wp-block-details summary { font-size: 18px; letter-spacing: 0; text-transform: none; font-weight: 500; line-height: 1.4; padding: 18px 0; gap: 24px; }
.vb-faq .wp-block-details summary::after { flex-shrink: 0; font-size: 22px; line-height: 1; color: #66626B; }
.vb-faq .wp-block-details > p { margin: 0 0 22px; max-width: 65ch; }
.vb-faq .wp-block-details summary:focus-visible { outline: 2px solid #300C46; outline-offset: 4px; }

/* ---------- Termine ---------- */
/* Die Liste ordnet sich nach ihrer eigenen Breite: schmal = Datum über dem Rest, breit = drei Spalten. */
.vb-termine { margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.vb-termin { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "datum datum" "info link"; gap: 6px 24px; padding: 28px 0; border-top: 1px solid #E4E4E8; align-items: baseline; }
.vb-termin:last-child { border-bottom: 1px solid #E4E4E8; }
.vb-termin__datum { grid-area: datum; font-family: var(--wp--preset--font-family--saira); font-weight: 500; color: #1F1D21; font-size: 22px; line-height: 1.3; overflow-wrap: normal; word-break: normal; }
.vb-termin > span:nth-child(2) { grid-area: info; }
.vb-termin__titel { font-weight: 500; color: #1F1D21; display: block; }
.vb-termin__ort { color: #66626B; display: block; font-size: 15px; }
.vb-termin__links { grid-area: link; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.vb-termin__link { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #66626B; text-decoration: none; white-space: nowrap; justify-self: end; }
.vb-termin__link:hover { color: #1F1D21; }
.vb-termine-leer { color: #66626B; }
@container (min-width: 720px) {
	.vb-termin { grid-template-columns: minmax(260px, 1fr) minmax(220px, 1.5fr) auto; grid-template-areas: "datum info link"; gap: 8px 32px; }
}
@container (max-width: 420px) {
	.vb-termin { grid-template-columns: 1fr; grid-template-areas: "datum" "info" "link"; }
	.vb-termin__links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; margin-top: 6px; }
}

/* ---------- Fußbereich ---------- */
.vb-fuss { background: #FFFFFF; border-top: 1px solid #E4E4E8; padding-top: 72px; padding-bottom: 40px; }
.vb-fuss a { text-decoration: none; }
.vb-fuss a:hover { text-decoration: underline; }
.vb-fuss p { font-size: 15px; margin: 6px 0 0 !important; }
.vb-fuss p.vb-zitat { font-size: 28px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px !important; }
.vb-fuss .is-style-vb-label { margin-bottom: 10px !important; }
.vb-fuss .vb-copyright { margin-top: 56px !important; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #66626B; }

/* ---------- Formulare (Kadence und Standard) ---------- */
.vb-formular input[type="text"], .vb-formular input[type="email"], .vb-formular input[type="tel"], .vb-formular textarea, .vb-formular select {
	font-family: inherit; font-size: 17px; font-weight: 400; color: #1F1D21;
	background: transparent; border: 0; border-bottom: 1px solid #1F1D21; border-radius: 0; padding: 10px 0;
}
.vb-formular label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #66626B; font-weight: 500; }
.vb-formular button, .vb-formular input[type="submit"] {
	font-family: inherit; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
	background: #1F1D21; color: #FFFFFF; border: 1px solid #1F1D21; border-radius: 0; padding: 18px 36px; cursor: pointer;
}
.vb-formular legend { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #66626B; font-weight: 500; }
.vb-formular button:hover, .vb-formular input[type="submit"]:hover { background: #300C46; border-color: #300C46; }
/* Einwilligung und Auswahlfelder: normaler Satz statt Versalien */
.vb-formular .kb-radio-check-item > label,
.vb-formular input[type="checkbox"] + label,
.vb-formular input[type="radio"] + label {
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: #4A4650;
	font-weight: 400;
	line-height: 1.6;
}
.vb-formular .kb-radio-check-item > label a { color: #1F1D21; }
.vb-anfrage-bezug { border-top: 1px solid #E4E4E8; border-bottom: 1px solid #E4E4E8; padding: 16px 0; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.vb-kopf .wp-block-site-title { font-size: 26px !important; }
	.vb-kopf .wp-block-site-logo img { width: 160px; }
	.wp-block-columns.vb-split { gap: 40px; }
}
