/* FlyerFlieger – global base styles. Tokens live in Bricks (palette + global variables). */

body {
	background-color: var(--ff-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Long German compounds (Schaufensterbeschriftung, Geschäftsausstattung) */
h1, h2, h3, h4, h5, h6 {
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	overflow-wrap: break-word;
	text-wrap: balance;
}

p, li {
	overflow-wrap: break-word;
	text-wrap: pretty;
}

a {
	color: var(--ff-blue);
	text-underline-offset: .18em;
}

a:hover {
	color: var(--ff-blue-700);
}

:focus-visible {
	outline: 3px solid var(--ff-cyan);
	outline-offset: 3px;
}

::selection {
	background-color: var(--ff-cyan);
	color: var(--ff-night);
}

img {
	height: auto;
}

/* Sticky header without covering content (Bricks' own sticky uses position: fixed) */
#brx-header {
	position: sticky;
	top: 0;
	z-index: 999;
}

.admin-bar #brx-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Keep the fixed mobile bar (footer template) from covering the page end */
@media (max-width: 767px) {
	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Ghost-Button auf dunklen Karten außerhalb von Nacht-Sections (z. B. Aside auf Angebot anfragen) */
.ff-card--night .ff-btn--ghost { color: var(--ff-white); border-color: color-mix(in srgb, var(--ff-white) 70%, transparent); }
.ff-card--night .ff-btn--ghost:hover { color: var(--ff-cyan); border-color: var(--ff-cyan); }

/* Bricks setzt bei grid-Elementen .klasse.brxe-… { align-items: initial } – place-items:center aus dem Import vertikal wiederherstellen. */
.ffp-vorteil__icon.ffp-vorteil__icon.ffp-vorteil__icon,
.ffp-step__num.ffp-step__num.ffp-step__num,
.ffh-step__num.ffh-step__num.ffh-step__num,
.ffs-weg__icon.ffs-weg__icon.ffs-weg__icon { align-items: center; }

/* Button-Zeile direkt unter einem Karten-Raster (Referenzen, Passende Leistungen) braucht Abstand. */
.ffp-grid-3 + .ffp-actions,
.ffp-checklist + .ffp-actions { margin-top: var(--space-xl); }
