/* Pizza Buddies 2026 – globale Basis. Sektions-Styles kommen mit den Blöcken. */

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

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

/* Kein Abstand zwischen Header, Inhalt und Footer */
body .wp-site-blocks > * {
	margin-block-start: 0;
}

/* Header-Bereich klebt oben (ausser auf der Startseite, dort liegt er über dem Hero).
   Gilt auch für die WooCommerce-Vorlagen, die den Header ohne unsere Klasse einbinden. */
.pb-site-header,
.wp-site-blocks > .wp-block-template-part:has(> .pb-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.home .pb-site-header,
.wp-site-blocks > .wp-block-template-part:has(> .pb-header.is-overlay) {
	position: static;
}

/* Sektions-Seiten: Blöcke direkt aneinander */
.pb-main .wp-block-post-content > * {
	margin-block: 0;
}

.pb-main .wp-block-post-content > :where(:not([class*="wp-block-pizzabuddies-"]):not(.pb-duo)) {
	max-width: 760px;
	margin: 2rem auto;
	padding-inline: var(--wp--custom--gutter, 20px);
}

/* Normale Inhaltsseiten (Impressum, Datenschutz, Kontakt …) */
.pb-page {
	padding-block: clamp(48px, 7vw, 96px);
}

.pb-page .wp-block-post-title,
.pb-404 h1 {
	margin-block: 0 clamp(24px, 4vw, 48px);
	font-size: clamp(48px, 9vw, 110px);
	line-height: 0.72;
	text-align: center;
}

.pb-404 p {
	text-align: center;
}

/* 404: Inhalt mittig, Footer unten statt mitten im Bild */
.pb-404 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 62vh;
}

.pb-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: clamp(20px, 3vw, 32px);
}

.pb-page .wp-block-post-content {
	font-size: 17px;
	line-height: 1.7;
}

.pb-page .wp-block-post-content :where(h2) {
	margin-block-start: 2.2em;
	font-size: clamp(32px, 4vw, 44px);
}

.pb-page .wp-block-post-content :where(h3) {
	margin-block-start: 1.8em;
	font-size: clamp(24px, 3vw, 30px);
}

.pb-page .wp-block-post-content a {
	font-weight: 600;
	text-decoration-color: var(--wp--preset--color--sky);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

.pb-page .wp-block-query .wp-block-post-title {
	font-size: clamp(32px, 4vw, 48px);
	text-align: left;
}

.pb-page .wp-block-query .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

/* Formulare (z. B. WooCommerce, Kontaktformulare) im Marken-Look */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], select, textarea) {
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--ink) 20%, transparent);
	border-radius: 14px;
	background-color: #fff;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: 16px;
}

:where(input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* WooCommerce: Überschriften & Buttons im Marken-Look */
.woocommerce-page .wp-block-post-title,
.woocommerce-products-header__title {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
}

.wc-block-components-button:not(.is-link),
.wp-block-button__link {
	border-radius: 16px;
}

.wc-block-components-product-price,
.woocommerce-Price-amount {
	font-weight: 700;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

/* WooCommerce Warenkorb & Kasse: Abschnittstitel in ABC ROM */
.wc-block-components-title.wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--shop);
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}

/* WooCommerce-Hinweise: Bereich ausblenden, solange keine Meldung drin ist (kein leerer Abstand) */
.wc-block-store-notices:not(:has(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-error, .woocommerce-info, [role="alert"], li)) {
	display: none;
}
