/*
Theme Name: Bekirov Bau
Theme URI: https://www.bekirov-bau.de/
Author: Bekirov BAU GmbH
Description: Schlankes, responsives Block-Theme für den Webauftritt der Bekirov BAU GmbH.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.0
Text Domain: bekirov-bau
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Das visuelle System lebt überwiegend in theme.json. Diese Datei enthält nur
   robuste Basis-, Fokus- und responsive Komponentenregeln. */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	min-width: 320px;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration-thickness: 0.13em;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--red);
	outline-offset: 3px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--white);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--navy);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	height: auto;
	left: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	top: var(--wp--preset--spacing--20);
	width: auto;
	z-index: 100000;
}

.site-header {
	box-shadow: 0 1px 0 rgba(14, 23, 38, 0.12);
	position: relative;
	z-index: 20;
}

.site-header .wp-block-site-title a,
.site-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus-visible {
	text-decoration: underline;
}

.site-footer a {
	color: inherit;
}

.bb-hero {
	overflow: hidden;
}

.bb-hero__eyebrow {
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-trust-bar .wp-block-column {
	min-width: 0;
}

.bb-card {
	height: 100%;
}

.wp-block-button__link {
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.wp-block-post-template.is-layout-grid > li {
	display: flex;
}

.wp-block-post-template.is-layout-grid > li > .wp-block-group {
	width: 100%;
}

@media (max-width: 781px) {
	.site-header__inner {
		gap: var(--wp--preset--spacing--30) !important;
	}

	.site-header .wp-block-site-title {
		font-size: var(--wp--preset--font-size--medium) !important;
	}

	.bb-hero {
		min-height: auto !important;
	}

	.bb-hero .wp-block-heading {
		max-width: 18ch;
	}

	.bb-hero .wp-block-buttons,
	.bb-cta .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.bb-hero .wp-block-button,
	.bb-hero .wp-block-button__link,
	.bb-cta .wp-block-button,
	.bb-cta .wp-block-button__link {
		width: 100%;
	}

	.bb-hero .wp-block-button__link,
	.bb-cta .wp-block-button__link {
		text-align: center;
	}
}

@media (max-width: 479px) {
	.bb-trust-bar .wp-block-columns {
		gap: var(--wp--preset--spacing--30);
	}

	.bb-trust-bar .wp-block-column {
		flex-basis: 100% !important;
	}
}
