/*
Theme Name: AquaFlow Plumbing Theme
Theme URI: https://webdp.net/
Author: Davor Petrović
Author URI: https://webdp.net/
Description: A complete website for a plumbing and heating company: online appointment requests with a modern calendar, hourly time slots and live availability, a built-in control panel with today's bookings, and a clear HTML e-mail for every new request. Pages for services, about us, before/after projects and the team, legal pages (Impressum, Datenschutz) generated automatically for the German market. All data stays in your own WordPress database — no outside service, no monthly fee, no Google fonts or trackers. Three languages (German, Croatian, English) and a mobile-first layout. Designed and built by Davor Petrović, designer and developer in Ulm — webdp.net.
Version: 1.8
Requires at least: 6.0
Tested up to: 6.8
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: aquaflow-plumbing
Tags: custom-colors, custom-logo, custom-menu, translation-ready, full-width-template, one-column, business
*/

/* ==========================================================================
   Base polish (layout utilities come from assets/css/tailwind.min.css)
   ========================================================================== */
:root {
	--af-sky-50: #f0f9ff;
	--af-sky-100: #e0f2fe;
	--af-sky-200: #bae6fd;
	--af-sky-400: #38bdf8;
	--af-sky-500: #0ea5e9;
	--af-sky-900: #0c4a6e;
	--af-slate-900: #0f172a;
	--af-header-offset: 96px;
}

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

body {
	font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .font-display { font-family: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.015em; }

[id] { scroll-margin-top: var(--af-header-offset); }
body.admin-bar { --af-header-offset: 128px; }

::selection { background: var(--af-sky-200); color: var(--af-sky-900); }

:focus-visible { outline: 3px solid var(--af-sky-400); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	top: 12px; left: 12px; padding: 12px 18px; background: #fff; color: var(--af-sky-900); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .2);
}

/* Hero headline accent */
.hero-accent {
	background: linear-gradient(90deg, #bae6fd 0%, #ffffff 55%, #e0f2fe 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Glassmorphism utilities
   ========================================================================== */
.glass {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
}
.glass-light {
	background: rgba(255, 255, 255, .82);
	border: 1px solid rgba(186, 230, 253, .7);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
}
.glass-dark {
	background: rgba(15, 23, 42, .55);
	border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* Layered soft shadows */
.shadow-soft { box-shadow: 0 1px 2px rgba(12, 74, 110, .06), 0 8px 24px -6px rgba(12, 74, 110, .12); }
.shadow-lift { box-shadow: 0 2px 4px rgba(12, 74, 110, .06), 0 24px 60px -16px rgba(12, 74, 110, .35); }
.shadow-glow { box-shadow: 0 10px 30px -8px rgba(14, 165, 233, .65); }

/* ==========================================================================
   Navbar
   ========================================================================== */
#af-navbar { transition: box-shadow .3s ease, background-color .3s ease, transform .3s ease; }
.is-scrolled #af-navbar { box-shadow: 0 12px 40px -12px rgba(12, 74, 110, .28); }

.lang-btn[aria-pressed="true"] { background: var(--af-sky-500); color: #fff; box-shadow: 0 4px 12px -4px rgba(14, 165, 233, .7); }

/* Mobile drawer */
#af-drawer { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
#af-drawer-overlay { transition: opacity .3s ease; }
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   Forms
   ========================================================================== */
.af-field {
	width: 100%; border-radius: 12px; border: 1px solid #bae6fd; background: #fff;
	font-size: .95rem; color: #0f172a; line-height: 1.4;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.af-field { padding: .7rem .9rem; }
.af-field.pl-10 { padding: .7rem .9rem .7rem 2.5rem; }
.af-field::placeholder { color: #94a3b8; }
.af-field:hover { border-color: #7dd3fc; }
.af-field:focus { outline: none; border-color: var(--af-sky-500); box-shadow: 0 0 0 4px rgba(56, 189, 248, .22); }
.af-field[aria-invalid="true"] { border-color: #ef4444; background: #fef2f2; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
select.af-field {
	appearance: none; -webkit-appearance: none; padding: .7rem 2.4rem .7rem .9rem; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .75rem center;
}
select.af-field:invalid, select.af-field.is-placeholder { color: #94a3b8; }
select.af-field option { color: #0f172a; }
.af-error { color: #dc2626; font-size: .78rem; margin-top: .3rem; min-height: 0; }
.af-error:empty { display: none; }

.af-highlight { animation: af-pulse-ring 1.4s ease-out 1; }
@keyframes af-pulse-ring {
	0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, .55); }
	100% { box-shadow: 0 0 0 22px rgba(14, 165, 233, 0); }
}

.af-spinner {
	width: 18px; height: 18px; border-radius: 9999px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
	animation: af-spin .7s linear infinite;
}
@keyframes af-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Image fallbacks – clean gradient + icon when a remote photo fails to load
   ========================================================================== */
.af-media { overflow: hidden; background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 45%, #7dd3fc 100%); }
.af-media:not(.absolute):not(.fixed) { position: relative; }
.af-media::before {
	content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 64px;
}
.af-media.is-dark { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 60%, #0ea5e9 100%); }
.af-media.is-dark::before { opacity: .25; }
.af-media > img { z-index: 1; }
.af-media > img:not(.absolute) { position: relative; }
.af-media > img.is-broken { visibility: hidden; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* Subtle floating animation for hero badges */
.float-slow { animation: af-float 6s ease-in-out infinite; }
@keyframes af-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Pulsing "live" dot */
.live-dot { position: relative; }
.live-dot::after {
	content: ""; position: absolute; inset: 0; border-radius: 9999px; background: inherit;
	animation: af-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes af-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ==========================================================================
   Services showcase
   ========================================================================== */
.svc-photo { transition: opacity .7s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.svc-photo:not(.is-active) { opacity: 0; transform: scale(1.06); }
.svc-photo.is-active { opacity: 1; transform: scale(1); }

.svc-item { transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease; }
.svc-item .svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1); }
.svc-item .svc-body > div { overflow: hidden; }
.svc-item.is-active .svc-body { grid-template-rows: 1fr; }
.svc-item.is-active { background: var(--af-sky-500); border-color: var(--af-sky-500); color: #fff; box-shadow: 0 20px 40px -18px rgba(14, 165, 233, .8); }
.svc-item.is-active .svc-num { color: rgba(255, 255, 255, .8); }
.svc-item.is-active .svc-title { color: #fff; }
.svc-item.is-active .svc-arrow { transform: rotate(45deg); color: #fff; }
.svc-arrow { transition: transform .35s ease; }
.svc-icon { transition: background-color .3s ease, color .3s ease; }
.svc-item.is-active .svc-icon { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }

/* ==========================================================================
   Dark tabs
   ========================================================================== */
.why-tab { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.why-tab[aria-selected="true"] { background: var(--af-sky-500); border-color: var(--af-sky-400); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 165, 233, .9); }
.why-tab[aria-selected="true"] .why-tab-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.why-panel:not([hidden]) { animation: af-fade-up .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes af-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Gallery masonry
   ========================================================================== */
.masonry { column-gap: 1.25rem; columns: 1; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry > figure { break-inside: avoid; margin-bottom: 1.25rem; }
.masonry img { transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.masonry figure:hover img { transform: scale(1.08); }
.masonry figcaption { transition: opacity .4s ease, transform .4s ease; }
@media (hover: hover) {
	.masonry figure:not(:hover):not(:focus-within) figcaption { opacity: .0; transform: translateY(10px); }
}

/* ==========================================================================
   Generic content (pages, posts, Impressum, Datenschutz)
   ========================================================================== */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; color: var(--af-slate-900); margin-top: 1.8em; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--af-slate-900); margin-top: 1.5em; }
.entry-content p, .entry-content li { color: #334155; line-height: 1.75; }
.entry-content a { color: var(--af-sky-500); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content img { border-radius: 16px; height: auto; max-width: 100%; }
.entry-content blockquote { border-left: 4px solid var(--af-sky-400); padding-left: 1em; font-style: italic; color: #475569; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: .85rem; color: #64748b; margin-top: .4rem; }
.sticky, .bypostauthor, .gallery-caption { }

/* Fixed header behaviour */
#af-topbar { max-height: 40px; transition: max-height .35s ease, opacity .25s ease; }
.is-scrolled #af-topbar { max-height: 0; opacity: 0; }
body.admin-bar #af-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #af-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar #af-header { top: 0; } body.admin-bar.is-scrolled #af-header { top: 0; } }

/* Hero: one-screen layout on large desktops */
@media (min-width: 1280px) {
	/* Hero copy column is a size container: the plumber fills the right part of it,
	   the headline takes the rest and scales its font to the space left. */
	.af-hero-copy { container-type: inline-size; --af-top: 8.25rem; }
	.af-hero-copy > * {
		--af-ph: max(380px, min(880px, calc(100svh - var(--af-top) + .5rem), calc((100cqi - 330px) * 1.5)));
		--af-pw: calc(var(--af-ph) * .667);
	}
	.af-hero-copy > h1 {
		/* Smaller, lighter headline, vertically centred beside the plumber */
		max-width: calc(100cqi - var(--af-pw) - 1.5rem);
		font-size: clamp(2rem, calc((100cqi - var(--af-pw)) * .095), 3.2rem) !important;
		font-weight: 500;
		line-height: 1.14;
		letter-spacing: -.025em;
		margin-top: auto;
		margin-bottom: auto;
	}
	.af-hero-copy > h1::before {
		content: ""; display: block; width: 3.5rem; height: 4px; margin-bottom: 1.25rem; border-radius: 9999px;
		background: linear-gradient(90deg, #38bdf8, #e0f2fe);
	}
}
.af-hero-plumber { height: var(--af-ph); }
@media (min-width: 1280px) {
	#booking .af-field { padding-top: .55rem; padding-bottom: .55rem; font-size: .9rem; }
	#booking label { margin-bottom: .25rem; }
	#booking .af-error { margin-top: .15rem; }
}
/* Short desktop screens (e.g. 1280×720): drop the utility bar so the hero still fits */
@media (min-width: 1280px) and (max-height: 820px) {
	#af-topbar { display: none; }
	#af-navbar-wrap { padding-top: .75rem; }
	.af-hero-inner { padding-top: 6.5rem !important; }
	#booking .af-field { padding-top: .45rem; padding-bottom: .45rem; }
	#af-booking-form [data-step="1"] > * + * { margin-top: .6rem !important; }
	.af-hero-copy { --af-top: 6.5rem; }
}
@media (min-width: 1280px) and (max-height: 700px) {
	/* Very short screens: labels become screen-reader only, placeholders carry the hint */
	#af-booking-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	#booking > div:first-child { padding-top: .9rem; padding-bottom: .75rem; }
	.af-hero-inner { padding-top: 6rem !important; }
	.af-hero-copy { --af-top: 6rem; }
}

/* ==========================================================================
   Date picker
   ========================================================================== */
.af-date-field { caret-color: transparent; }
.af-date-field[aria-expanded="true"] { border-color: var(--af-sky-500); box-shadow: 0 0 0 4px rgba(56, 189, 248, .22); }
.af-cal {
	position: fixed; z-index: 120; width: 19rem; padding: 1rem;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	background: rgba(255, 255, 255, .97); border: 1px solid #e0f2fe; border-radius: 1.25rem;
	box-shadow: 0 2px 6px rgba(12, 74, 110, .08), 0 28px 60px -18px rgba(12, 74, 110, .45);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left;
	transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.af-cal.is-above { transform-origin: bottom left; }
.af-cal.is-open { opacity: 1; transform: none; }
.af-cal[hidden] { display: none; }
.af-cal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.af-cal-title { font-family: "Outfit", "Inter", sans-serif; font-weight: 600; font-size: 1.05rem; color: #0f172a; letter-spacing: -.01em; }
.af-cal-nav {
	display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 9999px;
	color: #0c4a6e; background: #f0f9ff; border: 1px solid #e0f2fe; transition: background-color .15s ease, color .15s ease;
}
.af-cal-nav:hover:not(:disabled) { background: var(--af-sky-500); border-color: var(--af-sky-500); color: #fff; }
.af-cal-nav:disabled { opacity: .35; cursor: default; }
.af-cal-quick { display: flex; gap: .4rem; margin: .8rem 0 .7rem; }
.af-cal-chip {
	font-size: .78rem; font-weight: 600; color: #0369a1; background: #f0f9ff; border: 1px solid #bae6fd;
	padding: .3rem .75rem; border-radius: 9999px; transition: all .15s ease;
}
.af-cal-chip:hover { background: var(--af-sky-500); border-color: var(--af-sky-500); color: #fff; }
.af-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .15rem; }
.af-cal-wd { text-align: center; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; padding: .35rem 0 .45rem; }
.af-cal-wd.is-weekend { color: #7dd3fc; }
.af-cal-day {
	position: relative; aspect-ratio: 1; border-radius: .8rem; font-size: .88rem; font-weight: 500; color: #0f172a;
	display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.af-cal-day.is-weekend { color: #0369a1; }
.af-cal-day:hover:not(:disabled) { background: #e0f2fe; }
.af-cal-day:disabled { color: #cbd5e1; cursor: default; }
.af-cal-day.is-today::after { content: ""; position: absolute; bottom: .28rem; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 9999px; background: var(--af-sky-500); }
.af-cal-day.is-selected { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(14, 165, 233, .9); }
.af-cal-day.is-selected::after { background: #fff; }
.af-cal-day:focus-visible { outline: 2px solid var(--af-sky-400); outline-offset: 1px; border-radius: .8rem; }
.af-cal-foot { display: flex; justify-content: flex-end; margin-top: .5rem; }
.af-cal-clear { font-size: .78rem; font-weight: 600; color: #64748b; padding: .25rem .4rem; border-radius: .5rem; }
.af-cal-clear:hover { color: #dc2626; }

/* ==========================================================================
   Booking step 2 – hourly slots
   ========================================================================== */
.af-slot {
	position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.85rem;
	border-radius: .85rem; border: 1px solid #bae6fd; background: #f0f9ff; color: #0c4a6e;
	font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; letter-spacing: .01em;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.af-slot:hover:not(:disabled):not([aria-checked="true"]) { border-color: var(--af-sky-500); background: #e0f2fe; transform: translateY(-1px); }
.af-slot[aria-checked="true"] {
	background: linear-gradient(135deg, #38bdf8, #0ea5e9); border-color: transparent; color: #fff;
	box-shadow: 0 10px 22px -10px rgba(14, 165, 233, .95);
}
.af-slot[aria-checked="true"]::after {
	content: ""; position: absolute; right: .55rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem;
	border-radius: 9999px; background: #fff;
}
.af-slot:disabled {
	cursor: not-allowed; background: #f1f5f9; border-color: #e2e8f0; color: #94a3b8;
	text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, .7);
}
.af-step:not(.hidden), .af-success:not(.hidden) { animation: af-fade-up .35s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 639px) { .af-slot[aria-checked="true"]::after { display: none; } }

.af-success:focus { outline: none; }

/* Label for the AI-generated demo image (EU AI Act Art. 50, UWG transparency) */
.af-ai-label {
	position: absolute; right: .5rem; bottom: .75rem; z-index: 2; padding: .2rem .55rem; border-radius: 9999px;
	font: 600 10.5px/1.3 "Inter", system-ui, sans-serif; letter-spacing: .02em; color: #fff;
	background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .25); white-space: nowrap;
}

.af-ai-label--tile { top: .75rem; right: .75rem; bottom: auto; font-size: 10px; opacity: .9; }

/* AI labels (EU AI Act Art. 50(4), since 2 Aug 2026): small, in the bottom-right
   corner – discreet, but still perceptible as the law requires. */
.af-ai-label, .af-ai-label--tile {
	top: auto !important; left: auto !important; right: .35rem !important; bottom: .3rem !important;
	background: transparent !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	padding: 0 !important; font-size: 8.5px !important; font-weight: 500 !important; letter-spacing: .02em; line-height: 1;
	color: rgba(255, 255, 255, .6) !important; text-shadow: 0 0 3px rgba(0, 0, 0, .45); text-align: right;
}

/* Hero: label in the far bottom-right corner of the first screen */
.af-ai-label.af-ai-label--hero { position: absolute; z-index: 30; right: .6rem !important; bottom: .45rem !important; }
.af-ai-label.af-ai-label--mhero { position: absolute; z-index: 30; right: .1rem !important; bottom: 6.6rem !important; }

/* ==========================================================================
   Before / after comparison tiles
   ========================================================================== */
.af-ba { isolation: isolate; user-select: none; -webkit-user-select: none; }
.af-ba > img { transition: none; }
.af-ba-before { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.af-ba-handle {
	position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 5; width: 2px; margin-left: -1px;
	background: rgba(255, 255, 255, .95); box-shadow: 0 0 12px rgba(2, 6, 23, .35); pointer-events: none;
}
.af-ba-knob {
	position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px;
	transform: translate(-50%, -50%); border-radius: 9999px; background: #fff; color: #0284c7;
	box-shadow: 0 6px 20px rgba(2, 6, 23, .3); transition: transform .2s ease;
}
.af-ba:hover .af-ba-knob, .af-ba.is-dragging .af-ba-knob { transform: translate(-50%, -50%) scale(1.1); }
.af-ba-range {
	position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
	-webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.af-ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.af-ba-range::-moz-range-thumb { width: 48px; height: 100vh; border: 0; }
.af-ba-range:focus-visible ~ .af-ba-handle .af-ba-knob,
.af-ba:focus-within .af-ba-knob { outline: 3px solid #38bdf8; outline-offset: 2px; }
.af-ba-tag {
	position: absolute; top: .7rem; z-index: 4; padding: .25rem .6rem; border-radius: 9999px; pointer-events: none;
	font: 700 10.5px/1.2 "Inter", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff;
	background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .2s ease;
}
.af-ba-tag--before { left: .7rem; }
.af-ba-tag--after { right: .7rem; background: rgba(14, 165, 233, .85); }
.af-ba .af-ai-label { z-index: 7; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
	.af-ba.is-hint .af-ba-before, .af-ba.is-hint .af-ba-handle { transition: clip-path .9s cubic-bezier(.22, 1, .36, 1), left .9s cubic-bezier(.22, 1, .36, 1); }
}
@media (max-width: 639px) {
	.af-ba:not(.col-span-2) .af-ba-tag { top: .45rem; padding: .18rem .42rem; font-size: 8.5px; letter-spacing: .06em; }
	.af-ba:not(.col-span-2) .af-ba-tag--before { left: .45rem; }
	.af-ba:not(.col-span-2) .af-ba-tag--after { right: .45rem; }
	.af-ba:not(.col-span-2) .af-ba-knob { width: 32px; height: 32px; }
	.af-ba:not(.col-span-2) figcaption { right: .6rem; }
	.af-ba:not(.col-span-2) figcaption > span:last-child { font-size: 12.5px; }
}

/* Sub-pages */
.af-chip.is-active { background: #0ea5e9; border-color: #0ea5e9; color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 165, 233, .6); }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq[open] { border-color: #7dd3fc; }
.af-subhero .af-ai-label { position: absolute; z-index: 5; }

/* Current page in the menu – blue outline only (no fill, no dot) */
.af-nav-link { position: relative; }
.af-nav-link.is-current,
.af-nav-link.is-current:hover {
	background: transparent !important; color: #0369a1 !important; font-weight: 700;
	box-shadow: inset 0 0 0 1.5px #0ea5e9;
}
.af-drawer-link.is-current {
	background: transparent !important; color: #0369a1 !important; font-weight: 700; box-shadow: inset 0 0 0 1.5px #0ea5e9;
}

/* Date picker opens on top of the whole booking form */
.af-cal { width: auto; padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; border-radius: 1.5rem; }
.af-cal[hidden] { display: none; }
.af-cal-top { display: flex; align-items: center; justify-content: space-between; margin: -.15rem 0 .75rem; padding-bottom: .7rem; border-bottom: 1px solid #e0f2fe; }
.af-cal-label { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0284c7; }
.af-cal-close {
	display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
	color: #0c4a6e; background: #f0f9ff; border: 1px solid #e0f2fe; transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.af-cal-close:hover { background: #ef4444; border-color: #ef4444; color: #fff; transform: rotate(90deg); }
.af-cal-day { aspect-ratio: auto; height: clamp(2.2rem, 6.5vh, 2.9rem); }
.af-cal-covered > * { transition: filter .2s ease, opacity .2s ease; }
.af-cal-covered > * { filter: blur(3px); opacity: .35; pointer-events: none; }

/* Mobile: grid items must not grow wider than the screen (the horizontal tab strip made the
   "Warum wir" column ~1150px wide and blew up the photo). */
.grid > * { min-width: 0; }

/* Install-as-app banner (phones) */
.af-install {
	position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 90;
	display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1rem 1rem .9rem; border-radius: 1.25rem;
	background: rgba(255, 255, 255, .97); border: 1px solid #e0f2fe;
	box-shadow: 0 2px 6px rgba(12, 74, 110, .08), 0 24px 50px -16px rgba(12, 74, 110, .45);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
	font-family: "Inter", system-ui, sans-serif;
}
.af-install.is-open { opacity: 1; transform: none; }
.af-install-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 6px 16px -8px rgba(2, 132, 199, .6); border: 1px solid #e0f2fe; }
.af-install-body { flex: 1; min-width: 0; padding-right: 1.25rem; }
.af-install-title { font-family: "Outfit", "Inter", sans-serif; font-weight: 700; font-size: 1rem; color: #0f172a; line-height: 1.25; }
.af-install-text { margin-top: .2rem; font-size: .84rem; line-height: 1.4; color: #475569; }
.af-install-actions { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; }
.af-install-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: .75rem; background: #0ea5e9; color: #fff; font-weight: 700; font-size: .88rem; box-shadow: 0 8px 18px -8px rgba(14, 165, 233, .9); }
.af-install-later { padding: .55rem .6rem; font-size: .85rem; font-weight: 600; color: #64748b; }
.af-install-x { position: absolute; top: .55rem; right: .55rem; display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 9999px; color: #64748b; background: #f1f5f9; }
@media (min-width: 640px) { .af-install { left: auto; right: 1.25rem; bottom: 1.25rem; width: 24rem; } }
