/*
Theme Name: Flugspur
Description: Schlankes Block-Theme für den Flugspur-Shop, nach Markenstyleguide v1.0 (Oktober 2026).
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: flugspur
License: GPL-2.0-or-later
*/

:root {
	--flug-radius-s: 8px;
	--flug-radius-l: 16px;
	--flug-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='19 64 11.5 16'%3E%3Cpath d='M30 72L19.5 64.5V79.5Z'/%3E%3C/svg%3E");
}

html {
	-webkit-text-size-adjust: 100%;
}

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

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

p, li {
	text-wrap: pretty;
}

:where(.wp-block-post-content, .entry-content) > p,
:where(.wp-block-post-content, .entry-content) > ul,
:where(.wp-block-post-content, .entry-content) > ol {
	max-width: 70ch;
}

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

.has-gruen-background-color :focus-visible {
	outline-color: var(--wp--preset--color--papier);
}

/* Kennungsleiste und Labels: Plex Mono, Versalien, +8 % */
.flug-kennung {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grau);
}

/* Startbahn-Balken: höchstens einmal pro Fläche */
.flug-balken::before {
	content: "";
	display: block;
	width: 64px;
	height: 8px;
	margin-bottom: 16px;
	background: var(--wp--preset--color--gelb);
}

/* Pfeilspitze aus dem Logo als Aufzählungszeichen und in Links */
ul.is-style-pfeil {
	list-style: none;
	padding-left: 0;
}

ul.is-style-pfeil li {
	position: relative;
	padding-left: 24px;
}

ul.is-style-pfeil li::before,
.flug-pfeil-link::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--flug-arrow) center / contain no-repeat;
	mask: var(--flug-arrow) center / contain no-repeat;
}

ul.is-style-pfeil li::before {
	position: absolute;
	left: 0;
	top: 0.45em;
}

.flug-pfeil-link::after {
	margin-left: 8px;
	vertical-align: -1px;
}

/* Kopfbereich */
.flug-header {
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.flug-header .wp-block-navigation {
	font-weight: 500;
}

.flug-header .wp-block-navigation a {
	text-decoration: none;
}

.flug-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Fußbereich */
.flug-footer a {
	color: inherit;
}

/* Buttons: Kaufen-Buttons gelb mit grünem Text */
.single_add_to_cart_button,
.wp-block-woocommerce-add-to-cart-form .wp-element-button,
.wp-block-woocommerce-product-button .wp-element-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button {
	background-color: var(--wp--preset--color--gelb) !important;
	color: var(--wp--preset--color--gruen) !important;
}

.wp-element-button,
.wp-block-button__link,
.wc-block-components-button {
	cursor: pointer;
	transition: filter 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wc-block-components-button:hover {
	filter: brightness(0.92);
}

/* Karten: weiß, 16 px Radius */
.wc-block-product,
.wp-block-woocommerce-product-template > li {
	background: var(--wp--preset--color--weiss);
	border-radius: var(--flug-radius-l);
	padding: 16px;
	overflow: hidden;
}

.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: var(--flug-radius-s);
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea,
.wc-block-components-text-input input,
.wc-block-components-textarea textarea {
	border: 1px solid var(--wp--preset--color--grau);
	border-radius: var(--flug-radius-s);
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--gruen);
	font-family: inherit;
	font-size: 17px;
}

/* Hinweise */
.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info {
	background: var(--wp--preset--color--gelb-hell);
	color: var(--wp--preset--color--gruen);
	border-color: var(--wp--preset--color--linie);
	border-radius: var(--flug-radius-s);
}

/* Preis und Kleingedrucktes */
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	font-weight: 600;
}

.woocommerce-de_price_taxrate,
.wc-gzd-additional-info,
.legal-price-info {
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--grau);
}

/* Produktseite: Label „SKU:" ausblenden, Bild auf dem Handy begrenzen,
   damit Preis und Kaufen-Button ohne langes Scrollen erreichbar sind */
.sku_wrapper__label,
.wp-block-woocommerce-product-sku strong,
.wp-block-woocommerce-product-sku .wp-block-post-terms__prefix {
	display: none;
}

@media (max-width: 781px) {
	.wp-block-woocommerce-product-image-gallery img {
		max-height: 60vh;
		width: auto;
		max-width: 100%;
		margin-inline: auto;
		object-fit: contain;
	}
}

@media (min-width: 782px) {
	.flug-hero {
		padding-block: 96px;
	}
}
