/* =============================================================================
 * HaniArt - main.css
 * Complete port of the approved mockup (light-homepage-option-4/dist/styles.css)
 * onto WordPress block markup.
 *
 * NO EXTERNAL RESOURCES. This file must never reference fonts.googleapis.com,
 * fonts.gstatic.com, or any CDN. The self-hosted Plus Jakarta Sans is declared
 * in assets/css/fonts.css (and/or theme.json fontFace) and enqueued separately.
 *
 * -----------------------------------------------------------------------------
 * CLASS CONTRACT
 * -----------------------------------------------------------------------------
 * Templates, patterns and render.php files may use EITHER the original mockup
 * class name (left column - preferred, it keeps the design diffable against the
 * mockup) OR the block-theme alias (right column). Both are styled identically.
 * Extra WordPress classes (wp-block-group, wp-block-navigation, ...) on the same
 * element are harmless.
 *
 * The three `is-style-haniart-*` button variants are matched with a DESCENDANT
 * combinator, so the class works whether it sits on the `.wp-block-button` (where
 * a registered core/button block style puts it) or on the `.wp-block-buttons`
 * wrapper (where an author is just as likely to put it by hand).
 *
 *   ROLE                     MOCKUP CLASS        ALIAS
 *   full-screen shell        (body.home) .wp-site-blocks | .desktop-viewport
 *   header band              .site-header        .haniart-header
 *   brand wrapper            .header-brand       .haniart-brand
 *   logo link                .brand-link         .wp-block-site-logo
 *   "Studio Frankfurt" chip  .brand-badge        .haniart-brand__badge
 *   pill navigation          .nav-pill-bar       .haniart-nav
 *   nav item                 .nav-link           .wp-block-navigation-item__content
 *   header CTA               .cta-pill           .is-style-haniart-cta (button block)
 *   hero band                .hero-workspace     .haniart-hero
 *   hero text column         .hero-content       .haniart-hero__content
 *   eyebrow pill             .pill-tag           .haniart-eyebrow
 *   headline                 .hero-headline      .haniart-hero__headline
 *   gradient run             .gradient-text      (NOT an alias - see sec. 7)
 *                            .is-style-haniart-gradient is the owner-facing
 *                            block style and carries a DARKER tail so it is
 *                            readable at any size; .gradient-text is hero-only.
 *   intro paragraph          .hero-subtext       .haniart-hero__intro
 *   category row / button    .category-pills / .cat-pill
 *   primary button           .btn-primary        .is-style-haniart-primary (button block)
 *   secondary button         .btn-secondary      .is-style-haniart-secondary (button block)
 *   status pill (light+dot)  .status-pill        .is-style-haniart-dot (button block)
 *   trust strip              .trust-strip / .trust-stars / .trust-text
 *   photo stage              .showcase-stage     .haniart-hero__stage
 *   photo card               .showcase-card      .haniart-hero__card
 *   photo frame              .photo-wrapper      .haniart-hero__frame
 *   photo itself             .photo-wrapper img  .haniart-hero__photo
 *   floating chips           .floating-chip + .chip-top / .chip-bottom
 *   footer band              .site-footer        .haniart-footer
 *
 * Interior pages (index / archive / search / single / page / 404) use their own
 * set, styled in section 16: .haniart-main(--modifier), .haniart-page-title,
 * .haniart-page-intro, .haniart-page-media, .haniart-prose, .haniart-card
 * (+__media/__title/__meta/__excerpt), .haniart-pagination, .haniart-empty,
 * .haniart-post-meta, .haniart-post-tags, .haniart-post-nav, .haniart-comments
 * (+.haniart-comment/__meta), .haniart-search, .haniart-404-actions and
 * .haniart-cta-pill(--ghost).
 *
 * -----------------------------------------------------------------------------
 * DELIBERATE DEVIATIONS FROM THE MOCKUP (all documented inline where they occur)
 * -----------------------------------------------------------------------------
 * 1. `html, body { overflow: hidden }` is NOT applied globally. It would break
 *    every interior page, the admin bar and the editor canvas. The single-screen
 *    lock is scoped to the front page, and only on viewports tall enough for the
 *    design to actually fit.
 * 2. The hero height `calc(100svh - ...)` is replaced by `flex: 1; min-height: 0`,
 *    which is what that arithmetic approximated and which survives the admin bar.
 * 3. Below 1024px the pill-bar chrome is stripped and the Navigation block's
 *    overlay toggle takes over. The mockup simply deleted the nav, which would
 *    leave the site unnavigable on phones; and it drew six items where the live
 *    menu had eight for a while, which is why the changeover sits at 1024 and
 *    not at the mockup's 900 (section 17b).
 * 4. `prefers-reduced-motion` is scoped to theme classes and uses the
 *    `animation-duration: .01ms` form instead of `* { animation: none }`.
 * 5. Focus-visible styles and print styles are added - the mockup has neither.
 * 6. ACCESSIBILITY CORRECTIONS to the mockup's palette (WCAG 2.1 AA). The mockup
 *    ships three text/graphic colours that do not meet AA on its own canvas.
 *    Measured with the WCAG 2.x relative-luminance formula against
 *    --bg-canvas #edf0f5 and --surface-white #ffffff:
 *
 *      TOKEN            MOCKUP    canvas / white   FIXED     canvas / white
 *      --ink-muted      #8a94a4   2.68 / 3.06 FAIL #656d7c   4.56 / 5.21 PASS
 *      --gradient-end   #00a880   2.66 / 3.04 FAIL #24515e   7.62 / 8.70 PASS
 *      --accent-amber   #f59e0b   1.88 / 2.15 FAIL #c2700a   3.27 / 3.74 PASS**
 *
 *      ** non-text graphic (trust stars), threshold 3:1 (SC 1.4.11).
 *
 *    A fourth correction has no mockup ancestor: link text that used
 *    --gradient-end on hover now uses --link-ink #24515e (7.62 / 8.70), because
 *    a hover colour is normal-size text and needs the full 4.5:1.
 *
 *    THE ACCENT IS NO LONGER GREEN. On the owner's instruction the whole accent
 *    family - the bright #00e5a3, the gradient tail #009271 and the text-safe
 *    #00755a - collapsed to a single #24515e. The old family was a ramp because
 *    the bright end was unusable as text (1.44:1 on canvas); #24515e measures
 *    7.62:1 on canvas and 8.70:1 on white, so one value now covers every job
 *    the three used to split between them.
 *
 *    THE ONE PLACE IT DOES NOT WORK IS ON DARK. #24515e against --pill-dark
 *    #181d24 is 1.95:1. theme.json used to paint the button label with the
 *    accent on hover, which was 10.27:1 while the accent was a bright mint;
 *    that would have become an unreadable button, so the three button states
 *    now keep the white label they already have at rest.
 *    The focus ring no longer uses --accent-teal as its core: teal measures
 *    1.44:1 on canvas and 1.65:1 on white, far under the 3:1 SC 1.4.11 demands
 *    of a focus indicator. The core is --ink-primary (15.56 / 17.78) at every
 *    breakpoint and on every surface in this design; teal survives only as the
 *    decorative halo, which carries no requirement of its own.
 * 7. A CONTROL SIZE FLOOR (--control-min: 44px at <=900px, 24px everywhere) is
 *    applied to every interactive control - WCAG 2.2 SC 2.5.5 / 2.5.8. The
 *    mockup has no minimum at all; its footer links measure ~15px tall.
 * 8b. A FORM-CONTROL BORDER TOKEN, --border-control #6f7a8c, separate from the
 *    decorative --border-subtle hairline. SC 1.4.11 wants 3:1 for the visible
 *    boundary of a control; --border-subtle measures ~1.05:1 on white and
 *    ~1.07:1 on the canvas, which is fine on a card edge and is a search field
 *    with no visible outline on an input. --border-control measures 4.34:1 on
 *    white, 3.80:1 on the canvas, 4.17:1 on --surface-hover. Every input,
 *    textarea and select in the theme uses it; cards, chips and pills keep
 *    --border-subtle. See section 16, "every other form control".
 * 8c. The CURRENT NAV ITEM carries a 2px currentColor bar under its label as
 *    well as the --nav-active fill. The fill alone is 1.05:1 against the white
 *    pill bar and was the only cue, which failed SC 1.4.1 and SC 1.4.11 at once.
 * 8d. The SINGLE-SCREEN LOCK carries a third media condition, min-height in em,
 *    and uses overflow-y: auto rather than overflow: hidden, so text-only zoom
 *    to 200% (which never changes viewport pixels) cannot destroy content.
 *    SC 1.4.4. The middle band's `min-height: 0` moved inside the same query.
 * 8e. The FOOTER takes min-height, never height. A locked height clipped the
 *    mailto:, Impressum and Datenschutz links at 901-995px wide.
 * 9. The photo stage is NOT hidden below 900px. The mockup deletes it ("keep
 *    single screen clean on tablets"), which on a phone removes the LCP image
 *    and leaves the three category buttons controlling nothing - and leaves
 *    hero.js' tab semantics pointing at a display:none panel (an ARIA 1.2
 *    violation). See section 18.
 *
 * Specificity note: theme.json compiles to `:root :where(...)`, i.e. (0,1,0).
 * A plain single-class rule ties with it and the winner is decided by source
 * order. Rules below that must beat theme.json are therefore prefixed with
 * `:root` (core's own technique). Rules that must beat a block LAYOUT container
 * (core doubles those class names to reach (0,2,0)) double their own class or
 * add a `body` prefix. `!important` is used seven times, in three unavoidable
 * groups, each commented where it occurs: the visually-hidden helper (2), the
 * navigation overlay (2), and the print stylesheet (3).
 * ========================================================================== */


/* =============================================================================
 * 1. TOKENS
 * Every token reads its theme.json preset first and falls back to the literal
 * mockup value, so the design is correct even if a preset is renamed or
 * theme.json is not loaded (e.g. inside the editor iframe before global styles
 * resolve). theme.json stays the single source of truth when it is present.
 * ========================================================================== */

:root {
	/* -- palette (the mockup's 8 declared colours) -------------------------- */
	--bg-canvas:      var(--wp--preset--color--bg-canvas, #edf0f5);
	--surface-white:  var(--wp--preset--color--surface-white, #ffffff);
	--ink-primary:    var(--wp--preset--color--ink-primary, #141820);
	--ink-secondary:  var(--wp--preset--color--ink-secondary, #586171);
	/* #8a94a4 in the mockup: 2.68:1 on canvas, 3.06:1 on white - both fail
	 * WCAG 1.4.3 (4.5:1). Every consumer of this token is small text, so none
	 * of them can fall back on the 3:1 large-text threshold either. Darkened
	 * within the same hue family; the fallback literal MUST stay in step with
	 * theme.json or the editor iframe ships the failing value. */
	--ink-muted:      var(--wp--preset--color--ink-muted, #656d7c);
	--accent-teal:    var(--wp--preset--color--accent-teal, #24515e);
	--accent-cyan:    var(--wp--preset--color--accent-cyan, #00c6ff);
	--pill-dark:      var(--wp--preset--color--pill-dark, #181d24);
	--border-subtle:  var(--wp--custom--border-subtle, rgba(226, 232, 240, 0.85));

	/* -- colours the mockup hardcoded outside :root, tokenised here --------- */
	/* Headline gradient tail. #00a880 measured 2.66:1 on canvas and the headline
	 * is large text (>=44px, 800 weight), so even the relaxed 3:1 was missed.
	 * #24515e measures 7.62:1 - comfortably past the 4.5:1 body threshold, let
	 * alone the large-text one. */
	--gradient-end:   var(--wp--custom--gradient-end, #24515e);
	/* Link text on hover. Was --gradient-end, which is a LARGE-text colour
	 * being used at body size - 2.66:1 against the 4.5:1 it actually needs.
	 * Now the same value as the tail: since the accent stopped being a ramp,
	 * these two no longer need to differ. */
	--link-ink:       var(--wp--custom--link-ink, #24515e);
	/* Trust stars. #f59e0b measured 1.88:1 on canvas; SC 1.4.11 wants 3:1 of a
	 * graphic that carries meaning. #c2700a keeps the amber read at 3.27:1. */
	--accent-amber:   var(--wp--custom--accent-amber, #c2700a);   /* trust stars */
	--surface-hover:  #f8fafc;              /* .btn-secondary hover            */
	--surface-sunken: #f4f6f9;              /* photo frame before image paints */
	--surface-icon:   #f0f4f9;              /* round chip icon plate           */
	--nav-active:     #edf1f6;              /* NOT equal to --bg-canvas        */
	--nav-hover:      rgba(237, 240, 245, 0.6);
	--badge-veil:     rgba(255, 255, 255, 0.6);

	/* -- form-control boundary  (WCAG 2.1 AA - SC 1.4.11 Non-text Contrast) --
	 * --border-subtle is a DECORATIVE hairline: rgba(226,232,240,.85) over white
	 * measures about 1.05:1 and over the canvas about 1.07:1. On a card edge
	 * that is fine - a card is not a control and carries no requirement. On a
	 * text input it is the only thing that says "this is a field you can type
	 * in", and SC 1.4.11 asks that for 3:1.
	 *
	 * --border-control is that second, accountable value. #6f7a8c measured with
	 * the WCAG 2.x relative-luminance formula:
	 *
	 *   vs --surface-white #ffffff   4.34:1   PASS
	 *   vs --bg-canvas     #edf0f5   3.80:1   PASS
	 *   vs --surface-hover #f8fafc   4.15:1   PASS
	 *
	 * It is the same blue-grey hue family as --ink-muted, one step lighter, so
	 * the soft-UI language is intact - a field simply becomes a field you can
	 * see. Use this token for anything a visitor types into or chooses from.
	 * Never substitute --border-subtle back in on a form control. */
	--border-control: var(--wp--custom--border-control, #6f7a8c);

	/* -- shadow ink channels. The mockup's shadows use a bluer navy than
	 * --ink-primary, and its dark-pill shadows a third value again. Exposed as
	 * raw channels so future components can write
	 * `rgb(var(--shadow-ink) / 0.08)` instead of inventing a fourth ink. The
	 * ported shadows below keep their literal rgba() values so this file stays
	 * diffable line-for-line against the mockup. ---------------------------- */
	--shadow-ink:      20 32 54;
	--shadow-ink-dark: 24 29 36;

	/* -- the three soft-UI recipes. The inset white hairline is the whole
	 * signature of this design - never drop the second layer. -------------- */
	--shadow-card: var(--wp--preset--shadow--card,
		0 24px 60px -15px rgba(20, 32, 54, 0.08),
		0 0 0 1px rgba(255, 255, 255, 0.9) inset);
	--shadow-pill: var(--wp--preset--shadow--pill,
		0 10px 25px -6px rgba(20, 32, 54, 0.06),
		0 0 0 1px rgba(255, 255, 255, 0.9) inset);
	--shadow-chip: var(--wp--preset--shadow--chip,
		0 16px 36px -8px rgba(20, 32, 54, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.95) inset);

	/* -- radii ------------------------------------------------------------- */
	--radius-pill:  var(--wp--custom--radius-pill, 9999px);
	--radius-card:  36px;
	--radius-photo: 28px;

	/* -- motion ------------------------------------------------------------ */
	--ease-expo: var(--wp--custom--ease, cubic-bezier(0.16, 1, 0.3, 1));
	--ease-ping: cubic-bezier(0, 0, 0.2, 1);

	/* -- type -------------------------------------------------------------- */
	--font-sans: var(--wp--preset--font-family--jakarta,
		"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);

	/* -- layout metrics ---------------------------------------------------- */
	--band-max:  1440px;
	--gutter-x:  clamp(1.5rem, 3.5vw, 3.5rem);
	--gutter-y:  clamp(0.8rem, 1.8vh, 1.5rem);
	--header-h:  clamp(3.8rem, 7vh, 4.8rem);
	--footer-h:  clamp(2.2rem, 4vh, 3.2rem);

	/* -- focus ring -------------------------------------------------------- */
	/* The ring CORE carries the SC 1.4.11 obligation and is therefore ink on
	 * every surface in this design (15.56:1 on canvas, 17.78:1 on white). It is
	 * never inverted to white: `outline-offset` draws the ring OUTSIDE the
	 * control, i.e. on the page background, so a white ring on a dark pill sits
	 * on the light canvas at 1.13:1 and effectively disappears. The teal halo is
	 * decoration layered under it and carries no requirement.
	 * The 2px offset gap shows the page background and keeps the ink ring from
	 * touching the dark pills, so the ring reads as a ring at every size. */
	--focus-ring-core: var(--ink-primary);
	--focus-ring-halo: rgba(36, 81, 94, 0.45);

	/* -- control size floor ------------------------------------------------
	 * WCAG 2.2 SC 2.5.5 (AAA, 44px) is met on touch-sized viewports; SC 2.5.8
	 * (AA, 24px) is met at every viewport. Applied as a min-height/min-width on
	 * inline-flex controls so the pills keep their padding-derived proportions
	 * on the desktop design and only grow where they are actually too small. */
	--control-min:       44px;
	--control-min-fine:  24px;
}


/* =============================================================================
 * 2. BASE
 * Only box-sizing is reset. The mockup's `* { margin: 0; padding: 0 }` is NOT
 * ported: it would flatten WordPress block gap, which is applied as
 * margin-block-start on sibling blocks.
 * ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	/* The ONLY piece of the mockup's `* { margin: 0; padding: 0 }` that is
	 * ported, and only on <body>. Block gap is applied as margin on sibling
	 * blocks INSIDE .wp-site-blocks, so zeroing the body margin cannot flatten
	 * it - which is what the rest of that reset would have done.
	 *
	 * It matters now in a way it did not before: the single-screen lock used to
	 * be `overflow: hidden`, which silently swallowed the UA's default 8px body
	 * margin along with anything else that overflowed. The lock is
	 * `overflow-y: auto` since the SC 1.4.4 fix (section 5), so a stray 16px of
	 * margin is no longer swallowed - it is a scrollbar on the front page.
	 * Measured in a harness without this line: document scrollHeight 916px in a
	 * 900px viewport. With it: exactly 900px, no scrollbar. WordPress zeroes it
	 * too, but the editor iframe and a plugin-stripped front end do not always
	 * load that stylesheet, and the lock must not depend on someone else's
	 * reset. */
	margin: 0;
	background-color: var(--bg-canvas);
	color: var(--ink-primary);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
}

/* Inline icons inherit the text colour of the pill they sit in. */
.site-header svg,
.hero-workspace svg,
.site-footer svg {
	flex-shrink: 0;
}


/* =============================================================================
 * 3. UTILITIES
 * ========================================================================== */

/* WordPress' standard visually-hidden helper. The category switcher uses it for
 * its aria-live announcement, which is the only assistive-tech feedback that a
 * category changed (both floating chips are aria-hidden). */
.screen-reader-text,
.haniart-sr-only,
.skip-link:not(:focus) {
	position: absolute !important; /* must beat any layout rule on the wrapper */
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The skip link (WCAG 2.4.1). parts/header.html emits it as the first focusable
 * element on every page, targeting #haniart-content. It is visually hidden until
 * it takes focus, then becomes a floating pill - large enough to be a 44px touch
 * target in its own right, because a switch or voice user may activate it. */
.screen-reader-text:focus,
.haniart-sr-only:focus,
.skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	min-height: var(--control-min);
	clip: auto;
	clip-path: none;
	margin: 0;
	padding: 0.85rem 1.5rem;
	overflow: visible;
	background: var(--surface-white);
	color: var(--ink-primary);   /* 17.78:1 on the white pill */
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-chip);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

/* The landmark the skip link points at. `scroll-margin-top` keeps the heading
 * clear of the header band once focus jumps there; `:focus` on a non-widget
 * landmark gets no ring, it is a destination and not a control. */
#haniart-content {
	scroll-margin-top: 1.5rem;
}

#haniart-content:focus {
	outline: none;
}


/* =============================================================================
 * 4. FOCUS VISIBLE  (WCAG 2.1 AA - SC 2.4.7 Focus Visible, SC 1.4.11 Non-text
 * Contrast)
 * The mockup has zero focus styles across 615 lines, and the browser default
 * ring is close to invisible on the dark pills.
 *
 * ONE ring, one colour, every control: a 2px --ink-primary outline at a 2px
 * offset, with a teal halo behind it as decoration. Because `outline-offset`
 * paints the ring OUTSIDE the control, the ring always sits on the page
 * background - canvas #edf0f5 or surface white - never on the control itself.
 * Ink measures 15.56:1 on canvas and 17.78:1 on white, so one colour clears the
 * 3:1 requirement everywhere, including around the dark pills. The 2px gap is
 * what separates the ring from a dark pill, not a second colour.
 *
 * Do NOT reintroduce a white ring on the dark pills (the previous revision did):
 * white measures 1.13:1 against the canvas the ring is actually drawn on.
 * Do NOT use --accent-teal as the ring colour either: 1.44:1 on canvas.
 * ========================================================================== */

:root :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--focus-ring-halo);
}

/* Never remove the ring for mouse users by accident. */
:focus:not(:focus-visible) {
	outline: none;
}


/* =============================================================================
 * 4b. CONTROL SIZE FLOOR  (WCAG 2.2 SC 2.5.8 Target Size (Minimum), AA)
 * Applies at EVERY viewport, because SC 2.5.8 has no breakpoint. 24px is the
 * AA floor; section 18 raises the same controls to 44px on touch-sized
 * viewports. Every control listed here is already `inline-flex` +
 * `align-items: center`, so a min-height distributes as extra box around an
 * unchanged label - the desktop pill proportions are untouched, since each of
 * these is taller than 24px from its own padding already. The rule exists so a
 * future padding edit cannot silently drop a control under the floor.
 * ========================================================================== */

:root .cat-pill,
:root .haniart-cat,
:root .cta-pill,
:root .btn-primary,
:root .btn-secondary,
:root .is-style-haniart-cta .wp-block-button__link,
:root .is-style-haniart-primary .wp-block-button__link,
:root .is-style-haniart-secondary .wp-block-button__link,
:root .is-style-haniart-dot .wp-block-button__link,
:root .haniart-dot-pill .wp-block-button__link,
:root .status-pill,
:root .haniart-cta-pill .wp-block-button__link,
:root .haniart-cta-pill--ghost .wp-block-button__link,
:root .hero-more__link,
:root .nav-link,
:root .nav-pill-bar .wp-block-navigation-item__content,
:root .haniart-nav .wp-block-navigation-item__content,
:root .haniart-search .wp-block-search__button {
	min-height: var(--control-min-fine);
}

/* Links that sit inline in a run of text cannot take a min-height without
 * breaking the line box, so they take padding instead - which is what actually
 * grows the hit area. The footer's tel:, mailto:, Impressum and Datenschutz
 * links measure ~15px tall in the mockup; these are the site's legally required
 * links and the ones most likely to be tapped on a phone. */
:root .site-footer a,
:root .haniart-footer a,
:root .haniart-post-nav a {
	display: inline-block;
	padding-block: 0.45rem;
}

/* .haniart-post-tags a and .haniart-pagination a set their own padding later in
 * this file at the same specificity, so their floor is declared there (section
 * 16) rather than here, where source order would strip it. */


/* =============================================================================
 * 5. THE SHELL
 * The mockup's `.desktop-viewport` does not exist in a block theme - WordPress
 * emits `<div class="wp-site-blocks">` and gives no other root hook. Every
 * shell rule is retargeted onto it AND scoped to the front page, because
 * .wp-site-blocks wraps every page of the site.
 * ========================================================================== */

body.home .wp-site-blocks,
body.haniart-single-screen .wp-site-blocks,
.desktop-viewport {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	min-height: 100vh;      /* fallback for browsers without svh */
	min-height: 100svh;
	background-color: var(--bg-canvas);
	background-image:
		radial-gradient(circle at 10% 20%, rgba(0, 198, 255, 0.04) 0%, transparent 45%),
		radial-gradient(circle at 90% 80%, rgba(36, 81, 94, 0.04) 0%, transparent 45%);

	/* Gutter. Uses the root-padding variables when theme.json defines them, and
	 * falls back to the mockup's own clamps when it does not - so the gutter is
	 * applied exactly once either way. */
	padding-block:
		var(--wp--style--root--padding-top, var(--gutter-y))
		var(--wp--style--root--padding-bottom, var(--gutter-y));
	padding-inline: var(--wp--style--root--padding-right, var(--gutter-x));
}

/* WordPress also puts the horizontal root padding on constrained children that
 * carry .has-global-padding. Zero it here so the gutter cannot double up. */
body.home .wp-site-blocks > .has-global-padding,
body.haniart-single-screen .wp-site-blocks > .has-global-padding {
	padding-inline: 0;
}

/* Block gap between the three bands is handled by `justify-content: space-between`.
 * Doubled scope so it beats the (0,2,0) layout container core generates. */
body.home .wp-site-blocks > *,
body.haniart-single-screen .wp-site-blocks > * {
	width: 100%;
	margin-block: 0;
}

/* Compensate for the admin bar so a logged-in editor sees the same single screen
 * a visitor does. */
body.home.admin-bar .wp-site-blocks,
body.haniart-single-screen.admin-bar .wp-site-blocks {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 32px));
}

/* The single-screen lock is declared AFTER the middle-band rule below, because
 * it now also carries that band's `min-height: 0` and has to win on source
 * order. See "THE SINGLE-SCREEN LOCK" further down this section. */

/* The middle band. Whether the hero is a direct child of .wp-site-blocks or is
 * wrapped in a <main> group, it takes the remaining height.
 *
 * `min-height: 0` - which lets the band shrink BELOW its own content - is NOT
 * declared here any more. It is the mechanism that turns a too-tall hero into
 * clipped content, and it only makes sense while the single-screen lock is on.
 * It is therefore declared inside the same media query as the lock, so the two
 * are switched on and off together. Outside that query the band keeps its
 * automatic min-content floor, the shell grows past its 100svh minimum, and the
 * page scrolls - which is the escape SC 1.4.4 requires. */
body.home .wp-site-blocks > main,
body.haniart-single-screen .wp-site-blocks > main,
body.home .wp-site-blocks > .haniart-stage,
body.haniart-single-screen .wp-site-blocks > .haniart-stage {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	max-width: none;
	margin-block: 0;
}

/* -----------------------------------------------------------------------------
 * THE SINGLE-SCREEN LOCK  (and WCAG 2.1 AA - SC 1.4.4 Resize Text)
 * -----------------------------------------------------------------------------
 * The lock is applied only where the design genuinely fits. Three conditions,
 * all of which must hold:
 *
 *   min-width: 901px    above the tablet breakpoint
 *   min-height: 620px   tall enough that locking cannot hide content
 *   min-height: 38.75em the SAME 620px threshold expressed in em
 *
 * The em condition is the SC 1.4.4 fix. `em` in a media query resolves against
 * the INITIAL font size, not against :root's computed size, so it tracks the
 * reader's browser font-size preference and text-only zoom - neither of which
 * changes the viewport's pixel dimensions. At the default 16px the two height
 * conditions are the same threshold (620 / 16 = 38.75) and nothing about the
 * design changes. At 200% text the same 900px-tall viewport measures 28.1em,
 * the query stops matching, and the whole lock - overflow AND the band's
 * `min-height: 0` - is released together, so the shell grows past its 100svh
 * minimum and the page scrolls normally.
 *
 * `overflow-y: auto` rather than `overflow: hidden` is the second, independent
 * escape, for engines that do not reflect text-only zoom in em queries: there
 * is no scrollable overflow at normal text size, so no scrollbar appears and
 * the single screen looks exactly as designed - but if content ever does exceed
 * the viewport it can be scrolled to instead of being destroyed. Horizontal
 * overflow stays clipped: the floating chips sit at left/right -24px by design
 * and must not open a sideways scrollbar.
 *
 * Do NOT put `min-height: 0` back on the middle band outside this query, and do
 * not restore `overflow: hidden`. Both were reproduced losing content.
 * -------------------------------------------------------------------------- */
@media (min-width: 901px) and (min-height: 620px) and (min-height: 38.75em) {
	body.home,
	body.haniart-single-screen {
		overflow-x: hidden;
		overflow-y: auto;
	}

	/* Required inside the lock, or the band refuses to shrink below its content
	 * and pushes the footer off the single screen. Harmful outside it. */
	body.home .wp-site-blocks > main,
	body.haniart-single-screen .wp-site-blocks > main,
	body.home .wp-site-blocks > .haniart-stage,
	body.haniart-single-screen .wp-site-blocks > .haniart-stage {
		min-height: 0;
	}

	/* The hero grid itself, same reason. Declared with a doubled class so it
	 * beats its own (0,2,0) base rule in section 9 from here, five sections
	 * earlier in the file - the whole lock is kept in one place on purpose. The
	 * max-width: 1120px and max-width: 900px blocks use the same doubled form
	 * and neither overlaps this query on a property. */
	body .hero-workspace.hero-workspace,
	body .haniart-hero.haniart-hero {
		min-height: 0;
	}
}

/* The three bands share one measure. */
.site-header,
.haniart-header,
.hero-workspace,
.haniart-hero,
.site-footer,
.haniart-footer {
	width: 100%;
	max-width: var(--band-max);
	margin-inline: auto;
}


/* =============================================================================
 * 6. HEADER
 * ========================================================================== */

:root .site-header,
:root .haniart-header {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* SAME DEFECT AS THE FOOTER, SAME BAND - found while verifying that fix.
	 * This rule used to be `flex-wrap: nowrap` + `height: var(--header-h)`.
	 * Between 901px and roughly 1000px wide, brand + six-item pill nav + the
	 * "Online-Termin" CTA need about 1082px of line. With nowrap they did not
	 * wrap, and with the single-screen lock clipping the overflow the CTA -
	 * the site's primary conversion control, and the only booking link above
	 * the fold - sat 132px past the right edge, invisible and unclickable.
	 * Measured at 950x700: .cta-pill right edge 1082px in a 950px viewport.
	 *
	 * `wrap` lets the CTA drop to a second row instead of off the page, and
	 * min-height (never height) lets the band grow to hold it, exactly as the
	 * footer now does. The middle band absorbs the difference. At 1440x900
	 * everything still fits on one line, so nothing about the approved layout
	 * changes - verified, the header measures the same 60.8px it always did. */
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	min-height: var(--header-h);
	margin-block: 0;
	padding: 0;
	background: none;
}

/* ---- brand ---- */

.header-brand,
.haniart-brand {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	flex-shrink: 0;
}

/* Doubled so the flex layout container core generates cannot reset the gap. */
body .header-brand.header-brand,
body .haniart-brand.haniart-brand {
	gap: 1.1rem;
}

:root .brand-link,
:root .header-brand .wp-block-site-logo,
:root .haniart-brand .wp-block-site-logo {
	display: block;
	width: clamp(9.5rem, 12vw, 12rem);
	margin: 0;
	transition: opacity 0.2s ease;
}

:root .brand-link:hover,
:root .header-brand .wp-block-site-logo:hover,
:root .haniart-brand .wp-block-site-logo:hover {
	opacity: 0.85;
}

.brand-link img,
.header-brand .wp-block-site-logo img,
.haniart-brand .wp-block-site-logo img,
.header-brand .custom-logo,
.haniart-brand .custom-logo {
	display: block;
	width: 100%;
	height: auto;
}

.brand-badge,
.haniart-brand__badge {
	display: inline-block;
	margin: 0;
	padding: 0.35rem 0.75rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: var(--ink-muted);
	background: var(--badge-veil);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	white-space: nowrap;
}


/* =============================================================================
 * 7. PILL NAVIGATION
 * The mockup's `.nav-pill-bar > a.nav-link` becomes core/navigation:
 *   nav.wp-block-navigation
 *     ul.wp-block-navigation__container
 *       li.wp-block-navigation-item[.current-menu-item]
 *         a.wp-block-navigation-item__content
 * The active state lands on the <li>, never on the anchor - so `.is-active` is
 * restated against .current-menu-item and [aria-current="page"], both of which
 * WordPress sets automatically. Never hardcode an active class.
 * ========================================================================== */

/* SCOPED TO THE <nav> ON PURPOSE - DO NOT LOOSEN TO A BARE CLASS.
 *
 * core/navigation stamps the block's className onto BOTH the <nav> and the
 * <ul> inside it. A bare `.nav-pill-bar` therefore painted the whole pill
 * twice: a 587x47 bar with a second 569x34 bar drawn inside it, complete with
 * its own border, radius and inset highlight. On screen that reads as an inner
 * outline around the links, and it is not in the mockup.
 *
 * The mockup's own markup is `<nav class="nav-pill-bar"><a class="nav-link">`,
 * with no list at all, so the element selector costs nothing there and matches
 * exactly what the design draws. */
:root nav.nav-pill-bar,
:root nav.haniart-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.5rem;
	margin: 0;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-pill);
}

/* The <ul> carries the same classes, so it has to be told to carry none of the
 * chrome - otherwise core's copy of the class name reintroduces the second
 * pill the moment anything above changes. */
:root ul.nav-pill-bar,
:root ul.haniart-nav {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

/* The gap between items lives on the <ul>, which carries a doubled layout class
 * from core. Out-specify it rather than fighting it with !important. The block
 * attribute `"style":{"spacing":{"blockGap":"0.35rem"}}` is still the preferred
 * route; this is the belt to that braces. */
body .nav-pill-bar .wp-block-navigation__container.wp-block-navigation__container,
body .haniart-nav .wp-block-navigation__container.wp-block-navigation__container {
	gap: 0.35rem;
	align-items: center;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* -----------------------------------------------------------------------------
 * WHEN THE MENU IS LONGER THAN THE DESIGN ASSUMED
 * -----------------------------------------------------------------------------
 * The mockup drew six items. The live menu has twelve, and the header fell over:
 * measured at 1280px, the nav rendered 1235px wide inside a 1175px container,
 * overflowed it, and pushed the "Online-Termin" button onto a second row -
 * turning a 41px header into a 185px one.
 *
 * The cause is not the item count itself but that nothing here could yield. A
 * flex item will not shrink below its content's width unless min-width is set
 * explicitly; the default `min-width: auto` is what made the bar push its
 * neighbours off the row instead of taking less space.
 *
 * So the bar is allowed to shrink and, when it genuinely cannot fit, to scroll
 * its own items rather than break the header around it. The scrollbar is hidden
 * because a visible one inside a rounded pill looks like damage; the items stay
 * reachable by drag, trackpad, arrow key and tab.
 *
 * This is a seatbelt, not the fix. A nav that scrolls is a nav with too many
 * items in it - the menu itself wants curating, which is the owner's call and is
 * written up in the hand-over. But the theme must not depend on her restraint.
 * -------------------------------------------------------------------------- */
:root .nav-pill-bar,
:root .haniart-nav {
	min-width: 0;
	max-width: 100%;
}

body .nav-pill-bar .wp-block-navigation__responsive-container,
body .haniart-nav .wp-block-navigation__responsive-container,
body .nav-pill-bar .wp-block-navigation__responsive-container-content,
body .haniart-nav .wp-block-navigation__responsive-container-content {
	min-width: 0;
	max-width: 100%;
}

body .nav-pill-bar .wp-block-navigation__container.wp-block-navigation__container,
body .haniart-nav .wp-block-navigation__container.wp-block-navigation__container {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;      /* Firefox */
	-ms-overflow-style: none;   /* old Edge */
}

body .nav-pill-bar .wp-block-navigation__container::-webkit-scrollbar,
body .haniart-nav .wp-block-navigation__container::-webkit-scrollbar {
	display: none;
}

/* A menu item may hold an image rather than text - the live menu carries a
 * Google review badge. At its natural 50px it set the height of the whole bar,
 * measured 84px against the 44px the design calls for. Capped to the cap height
 * of the labels beside it so no future badge can do the same. */
:root .nav-pill-bar .wp-block-navigation-item__label img,
:root .haniart-nav .wp-block-navigation-item__label img {
	display: block;
	max-height: 1.25rem;
	width: auto;
}

/* -----------------------------------------------------------------------------
 * ONE ROW: BRAND | NAV | BUTTON
 * -----------------------------------------------------------------------------
 * Letting the bar shrink was not enough on its own. The header is a wrapping
 * flex container, and a wrapping container pushes an item onto the next line
 * BEFORE it will shrink it below its content width - so the nav kept the whole
 * row to itself and "Online-Termin" dropped underneath, which is what made the
 * header 185px tall instead of 41px.
 *
 * Above the overlay breakpoint the row must not wrap at all: the brand and the
 * button keep their natural size, and the nav is the only thing allowed to give,
 * which is exactly the right order of sacrifice - a logo and a call to action
 * are worth more than showing every menu item at once.
 *
 * Below 901px this must NOT apply: the header genuinely does want to stack
 * there. Between 901px and 1023px it still does apply and still earns its keep -
 * the nav is a hamburger by then (section 17b), but brand, hamburger and button
 * must stay on one row.
 * -------------------------------------------------------------------------- */
@media (min-width: 901px) {

	:root .site-header.haniart-header {
		flex-wrap: nowrap;
	}

	:root .site-header .header-brand,
	:root .site-header .header-cta-group {
		flex: 0 0 auto;
	}

	:root .site-header .nav-pill-bar,
	:root .site-header .haniart-nav {
		flex: 0 1 auto;
		min-width: 0;
	}
}

/* -----------------------------------------------------------------------------
 * THE BADGE YIELDS BEFORE THE MENU DOES
 * -----------------------------------------------------------------------------
 * Between the overlay breakpoint (1024px, section 17b) and 1200px there is not
 * enough room for the logo, the "Studio Frankfurt" badge, the menu and the
 * button all at once. The badge costs about 160px, and on the narrower
 * home-page header (see 17b) that is the difference between fitting and not.
 * Room left over with the badge shown, six items, home page:
 *
 *     1160px  14px      1200px  49px      1240px  83px
 *
 * Fourteen pixels is a coincidence rather than a margin, so the badge comes
 * back at 1200 rather than at the first width that technically holds it. It is
 * the only decorative element of the three - the logo already says HaniArt and
 * the page says Frankfurt - so it is what gives way below that.
 *
 * (With eight items in the menu this range ran to 1440px, the width the mockup
 * was drawn at, and even there the bar had only 4px to spare. Two items left the
 * menu; the badge came back 240px earlier.)
 * -------------------------------------------------------------------------- */
/* 8 Nov 2026: the menu went to SEVEN items (Blog out, Über mich and Mein
 * Studio in). Seven is the eight-item menu minus "Blog", about 60px: eight had
 * 4px spare at 1440 with the badge, so seven has roughly 60px there and runs
 * out near 1370. The badge therefore stays hidden up to 1400 - estimated from
 * the measurements above, not re-measured. */
/* Same night: the language switcher (section 8a) takes ~75px more, so both
 * limits moved up by 80: badge hidden 1320-1479, hamburger below 1320. */
@media (min-width: 1320px) and (max-width: 1479px) {
	:root .site-header .brand-badge,
	:root .site-header .haniart-brand__badge {
		display: none;
	}
}

/* The pill's horizontal padding is a variable because the current-page marker
 * below has to inset by exactly the same amount to track the label rather than
 * the pill. Two literals would drift apart the first time either is touched.
 *
 * It is fluid rather than fixed because the menu is the owner's, not the
 * designer's. The mockup drew six items at 1.15rem; eight items overflowed the
 * bar by 12px at 1440px - about 1.5px per item, which is nothing, but enough to
 * clip the last label. Easing the padding down recovers far more than that,
 * and above ~1840px it resolves to 1.15rem exactly, so the design width still
 * gets the mockup's own measurements. */
:root {
	--nav-pill-padding-x: clamp(0.8rem, 0.5vw + 0.6rem, 1.15rem);
}

:root .nav-link,
:root .nav-pill-bar .wp-block-navigation-item__content,
:root .haniart-nav .wp-block-navigation-item__content {
	display: block;
	position: relative;   /* anchors the current-page marker, see below */
	padding: 0.5rem var(--nav-pill-padding-x);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink-secondary);
	text-decoration: none;
	border-radius: var(--radius-pill);
	white-space: nowrap;
	transition:
		color 0.2s var(--ease-expo),
		background-color 0.2s var(--ease-expo);
}

:root .nav-link:hover,
:root .nav-pill-bar .wp-block-navigation-item__content:hover,
:root .haniart-nav .wp-block-navigation-item__content:hover {
	color: var(--ink-primary);
	background: var(--nav-hover);
	text-decoration: none;
}

:root .nav-link.is-active,
:root .nav-pill-bar .current-menu-item > .wp-block-navigation-item__content,
:root .nav-pill-bar .current_page_item > .wp-block-navigation-item__content,
:root .nav-pill-bar .wp-block-navigation-item__content[aria-current="page"],
:root .haniart-nav .current-menu-item > .wp-block-navigation-item__content,
:root .haniart-nav .current_page_item > .wp-block-navigation-item__content,
:root .haniart-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--ink-primary);
	background: var(--nav-active);
}

/* -----------------------------------------------------------------------------
 * CURRENT PAGE - NO UNDERLINE MARKER
 * -----------------------------------------------------------------------------
 * There used to be a 2px bar under the active label here, added because the
 * --nav-active fill measures only 1.05:1 against the white pill it sits on, so
 * "which page am I on" is carried by colour alone (WCAG 2.1 AA, SC 1.4.1 Use of
 * Color, and SC 1.4.11 Non-text Contrast for the fill itself).
 *
 * It has been removed at the owner's instruction: the mockup has no underline
 * anywhere - its stylesheet contains exactly one text-decoration declaration
 * and it is `none` - and matching the design was the explicit priority.
 *
 * What remains: WordPress emits aria-current="page" on the active item, so
 * screen readers and other assistive technology still announce it correctly.
 * The gap is visual only, and it is a deliberate, recorded design decision
 * rather than an oversight - see the hand-over notes.
 *
 * If it should ever come back, a 2px bar in currentColor inset by
 * var(--nav-pill-padding-x) is the version that was here, and it measured
 * 17.78:1 against the white bar.
 * -------------------------------------------------------------------------- */

/* Core underlines the current item by default in some configurations. */
.nav-pill-bar .wp-block-navigation-item__content,
.haniart-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

/* Submenus, if the owner ever adds one. Keeps the soft-UI language. */
.nav-pill-bar .wp-block-navigation__submenu-container,
.haniart-nav .wp-block-navigation__submenu-container {
	padding: 0.35rem;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 18px;
	box-shadow: var(--shadow-chip);
}

/* The overlay open/close buttons inherit the pill language. */
.nav-pill-bar .wp-block-navigation__responsive-container-open,
.nav-pill-bar .wp-block-navigation__responsive-container-close,
.haniart-nav .wp-block-navigation__responsive-container-open,
.haniart-nav .wp-block-navigation__responsive-container-close {
	color: var(--ink-primary);
	padding: 0.5rem;
	border-radius: var(--radius-pill);
}


/* =============================================================================
 * 8. HEADER CTA PILL
 * ========================================================================== */

.header-cta-group,
.haniart-cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
 * 8a. LANGUAGE SWITCHER (DE / EN / FA), 8 Nov 2026
 * -----------------------------------------------------------------------------
 * A small "DE" pill left of the Online-Termin button, opening a three-item menu
 * in the submenu style above. Markup: haniart_lang_switch_html(); behaviour:
 * assets/js/lang.js (Google's website translator, loaded only once a visitor
 * picks English or Persian). About 75px of header width - the overlay and badge
 * breakpoints below were moved up by that much.
 * -------------------------------------------------------------------------- */
.lang-switch {
	position: relative;
}

.lang-switch__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink-secondary);
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition:
		color 0.2s var(--ease-expo),
		background-color 0.2s var(--ease-expo);
}

.lang-switch__toggle::-webkit-details-marker {
	display: none;
}

.lang-switch__toggle:hover,
.lang-switch[open] .lang-switch__toggle {
	color: var(--ink-primary);
	background: var(--nav-hover);
}

.lang-switch__toggle:focus-visible,
.lang-switch__option:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
}

.lang-switch__menu {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	z-index: 100;
	min-width: 9rem;
	display: grid;
	gap: 0.25rem;   /* hover and active highlights must not touch */
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 18px;
	box-shadow: var(--shadow-chip);
}

.lang-switch__option {
	display: block;
	width: 100%;
	padding: 0.55rem 0.9rem;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: start;
	color: var(--ink-secondary);
	background: none;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
}

.lang-switch__option:hover {
	color: var(--ink-primary);
	background: var(--nav-hover);
}

.lang-switch__option[aria-current="true"] {
	color: var(--ink-primary);
	background: var(--nav-active);
}

@media (max-width: 900px) {
	.lang-switch__toggle,
	.lang-switch__option {
		min-height: 44px;
	}
}

/* Google's translator: no top banner, no hover pop-ups, no highlight. */
html.translated-ltr body,
html.translated-rtl body {
	top: 0 !important;
}

body > .skiptranslate,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.goog-te-balloon-frame {
	display: none !important;
}

.goog-text-highlight {
	background: none !important;
	box-shadow: none !important;
}

/* Persian (right to left, Persian font): section 23 at the end of this file. */

:root .cta-pill,
:root .is-style-haniart-cta .wp-block-button__link,
:root .haniart-cta-pill .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 1.35rem;
	background: var(--pill-dark);
	background-color: var(--pill-dark);
	color: var(--surface-white);
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 10px 22px -6px rgba(24, 29, 36, 0.35);
	transition: all 0.22s var(--ease-expo);
}

:root .cta-pill:hover,
:root .is-style-haniart-cta .wp-block-button__link:hover,
:root .haniart-cta-pill .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -6px rgba(24, 29, 36, 0.45);
	/* Accent fill, white label (8.70:1). An accent label on --pill-dark is 1.95:1. */
	color: var(--surface-white);
	background-color: var(--accent-teal);
}

/* The teal dot. Rendered as a pseudo-element on the block-button variant so it
 * cannot be deleted when the owner edits the button label in the editor. */
.is-style-haniart-cta .wp-block-button__link::before,
.is-style-haniart-dot .wp-block-button__link::before {
	content: "";
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--accent-teal);
	box-shadow: 0 0 10px var(--accent-teal);
}

/* Same dot for a hand-written .cta-pill that has no literal <span class="cta-dot">
 * inside it. Kept in its own rule: `:has()` is unsupported in a few old engines,
 * and an unsupported selector invalidates the whole rule it appears in - sharing
 * a selector list with the rule above would take the block-button dot down with
 * it. */
.cta-pill:not(:has(> .cta-dot))::before {
	content: "";
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--accent-teal);
	box-shadow: 0 0 10px var(--accent-teal);
}

.cta-dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--accent-teal);
	box-shadow: 0 0 10px var(--accent-teal);
}

/* On hover the pill itself fills with the accent, so the dot turns white -
 * otherwise it is accent on accent and vanishes. */
:root .cta-pill:hover .cta-dot,
:root .is-style-haniart-cta .wp-block-button__link:hover::before {
	background-color: var(--surface-white);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Its own rule for the same `:has()` reason as the dot above. */
:root .cta-pill:not(:has(> .cta-dot)):hover::before {
	background-color: var(--surface-white);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}


/* =============================================================================
 * 8b. BUTTON VARIATION "HaniArt: Mit Statuspunkt"  (.is-style-haniart-dot)
 * -----------------------------------------------------------------------------
 * functions.php registers four core/button style variations. Three of them -
 * haniart-primary, haniart-secondary, haniart-cta - had full layout rules here.
 * The fourth had ONLY the shared ::before dot, borrowed from the CTA rule above,
 * and no box of its own: picking "Mit Statuspunkt" in the editor produced a
 * default WordPress button with a teal speck in front of the label. A style
 * variation the owner can select and that does nothing is worse than no
 * variation - it reads as a broken theme.
 *
 * Implemented here rather than deleted, because the name describes something the
 * design actually wants and does not otherwise have: the CTA pill is dark and
 * belongs in the header, --secondary is light but has no status cue. This is the
 * light pill WITH the cue - "Termine frei", "Studio geoeffnet" - usable in the
 * hero action row, in a page, or in the footer without competing with the one
 * dark call to action on the screen.
 *
 * NOTE FOR THE PHP AGENT: no change is needed in functions.php. The registration
 * is correct and stays. Do not drop 'haniart-dot' from $button_styles.
 * ========================================================================== */

:root .is-style-haniart-dot .wp-block-button__link,
:root .haniart-dot-pill .wp-block-button__link,
:root .status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 1.5rem;
	background: var(--surface-white);
	background-color: var(--surface-white);
	color: var(--ink-primary);            /* 17.78:1 on the white pill */
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--shadow-pill);
	transition: all 0.22s var(--ease-expo);
}

:root .is-style-haniart-dot .wp-block-button__link:hover,
:root .haniart-dot-pill .wp-block-button__link:hover,
:root .status-pill:hover {
	transform: translateY(-2px);
	background-color: var(--surface-hover);
	color: var(--ink-primary);
	box-shadow: 0 10px 22px -5px rgba(20, 32, 54, 0.08);
}

/* The dot itself. The shared rule in section 8 sizes it and gives it the teal
 * glow, which works on the dark CTA pill. On a WHITE pill, teal measures 1.65:1
 * and the glow adds nothing, so the dot is given a --border-control ring
 * (4.34:1 on white) as its actual edge. The dot is decoration either way - the
 * label carries the meaning, per SC 1.4.1 - but a decoration nobody can see is
 * not what the variation is named after. */
:root .is-style-haniart-dot .wp-block-button__link::before,
:root .haniart-dot-pill .wp-block-button__link::before {
	box-shadow:
		0 0 0 1px var(--border-control),
		0 0 8px rgba(36, 81, 94, 0.55);
}

/* haniart-primary appends a "->" via ::after. If an author stacks both classes
 * on one button, suppress the arrow - the dot is this variation's affordance
 * and two pseudo-element glyphs in one pill is not a design, it is an accident. */
:root .is-style-haniart-dot.is-style-haniart-primary .wp-block-button__link::after,
:root .is-style-haniart-primary.is-style-haniart-dot .wp-block-button__link::after {
	content: none;
}

:root .is-style-haniart-dot .wp-block-button__link:focus-visible,
:root .haniart-dot-pill .wp-block-button__link:focus-visible,
:root .status-pill:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: var(--shadow-pill), 0 0 0 5px var(--focus-ring-halo);
}


/* =============================================================================
 * 9. HERO WORKSPACE (two-column grid)
 * The core Columns block is flexbox and cannot reproduce
 * `grid-template-columns: minmax(420px, 46%) 1fr`, so the hero is a Group (or a
 * dynamic block's own markup) with this grid applied by class.
 * ========================================================================== */

:root .hero-workspace,
:root .haniart-hero {
	position: relative;
	z-index: 10;
	display: grid;
	grid-template-columns: minmax(420px, 46%) 1fr;
	gap: clamp(2rem, 5vw, 5.5rem);
	align-items: center;
	flex: 1 1 auto;   /* replaces the mockup's calc(100svh - ...) arithmetic */
	margin-block: 0;
	padding: 0;
	/* `min-height: 0` used to live here. It is the second copy of the
	 * shrink-below-your-own-content mechanism (the first is on the middle band,
	 * section 5) and it is what turns a too-tall hero into clipped, unreachable
	 * content under text-only zoom. It now lives in the single-screen lock's
	 * media query in section 5, switched on and off with the rest of the lock.
	 * SC 1.4.4. Do not put it back here. */
}

/* Beat the (0,2,0) flex/grid layout container if the hero is a core Group. */
body .hero-workspace.hero-workspace,
body .haniart-hero.haniart-hero {
	/* `alignfull` on the hero would otherwise let core's (0,2,0) flow-layout rule
	 * strip the shared 1440px band, so it is restated at (0,2,1). */
	max-width: var(--band-max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(420px, 46%) 1fr;
	gap: clamp(2rem, 5vw, 5.5rem);
	align-items: center;
}


/* ---- left column ---------------------------------------------------------- */

.hero-content,
.haniart-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 580px;
	min-width: 0;
}

/* The mockup's vertical rhythm is pure margin-bottom stacking. Neutralise block
 * gap so the two cannot compound; each child below owns its own margin. */
body .hero-content.hero-content > *,
body .haniart-hero__content.haniart-hero__content > * {
	margin-block-start: 0;
}

/* ---- eyebrow pill ---- */

.pill-tag,
.haniart-eyebrow,
.haniart-page-media__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	align-self: flex-start;  /* without this the pill stretches full width */
	margin: 0 0 1.1rem;
	padding: 0.35rem 0.95rem;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	font-size: 0.74rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-secondary);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

/* Pulse dot as a pseudo-element so editing the eyebrow text cannot lose it. */
.haniart-eyebrow::before,
.haniart-page-media__tag::before {
	content: "";
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--accent-teal);
	box-shadow: 0 0 8px var(--accent-teal);
}

.pulse-indicator {
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--accent-teal);
	box-shadow: 0 0 8px var(--accent-teal);
}

/* ---- headline ---- */

:root .hero-headline,
:root .haniart-hero__headline {
	margin: 0 0 1.25rem;
	font-size: clamp(2.8rem, 4.5vw, 4.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--ink-primary);
	text-wrap: balance;
}

/* The gradient run. Three fixes over the mockup:
 *  - `color` fallback FIRST, so the text is never invisible if the background
 *    fails to paint (the mockup would render nothing at all),
 *  - unprefixed `background-clip: text` alongside the -webkit- pair,
 *  - `-webkit-text-fill-color` restated because the editor canvas resets it.
 *
 * TWO CLASSES, TWO TAILS - this split is load-bearing, do not merge them back:
 *
 *   .gradient-text               the hero headline's own class, emitted by
 *                                patterns/hero.php. Large display type only
 *                                (>=44px / 800). Tail --gradient-end #24515e,
 *                                7.62:1 on canvas. While the tail was green it
 *                                cleared only the 3:1 large-text threshold and
 *                                passed THERE AND ONLY THERE, which is why this
 *                                class is not registered as a block style and
 *                                cannot be reached from the editor's Styles
 *                                menu. That constraint lifts with the new
 *                                accent, but the split below stays - it is what
 *                                stops a large-text-only tail ever returning.
 *
 *   .is-style-haniart-gradient   the owner-facing block style variation, which
 *                                she can apply to ANY heading at ANY size or
 *                                weight from the Styles menu. It therefore
 *                                cannot borrow a large-text-only colour. Its
 *                                tail is --link-ink #24515e, 4.98:1 on canvas
 *                                and 5.69:1 on white - the full normal-text
 *                                4.5:1 - so every point along the run clears
 *                                AA no matter what she applies it to. The head
 *                                of the run is --ink-primary (15.56:1) and the
 *                                tail is the darkest point, so 4.98:1 is the
 *                                floor for the whole gradient, not an average.
 *
 * The two teals are a hair apart on screen; the difference exists so that a
 * menu selection can never produce text that fails contrast. Retinting the
 * owner's variant, rather than hiding the style on small headings, is what
 * keeps it from becoming a menu entry that silently does nothing. */
.gradient-text,
.is-style-haniart-gradient {
	color: var(--ink-primary);
}

/* The gradient itself is applied ONLY where the clip is supported. Painting it
 * unconditionally would leave a visible dark rectangle behind the text in any
 * engine that cannot clip a background to the glyphs. Engines without the clip
 * keep the solid --ink-primary set above, which is 15.56:1. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.gradient-text,
	.is-style-haniart-gradient {
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		color: transparent;
	}

	/* Hero headline - unchanged from the design source. */
	.gradient-text {
		background-image: linear-gradient(135deg, var(--ink-primary) 30%, var(--gradient-end) 100%);
	}

	/* Owner-selectable variant - AA at any size (see the note above). */
	.is-style-haniart-gradient {
		background-image: linear-gradient(135deg, var(--ink-primary) 30%, var(--link-ink) 100%);
	}

	/* A heading that carries BOTH classes is hero markup first: the hero's
	 * tail wins, so re-applying the style in the editor cannot shift the
	 * headline off the design. */
	.gradient-text.is-style-haniart-gradient {
		background-image: linear-gradient(135deg, var(--ink-primary) 30%, var(--gradient-end) 100%);
	}
}

/* ---- intro paragraph ---- */

:root .hero-subtext,
:root .haniart-hero__intro {
	margin: 0 0 1.6rem;
	font-size: clamp(0.92rem, 1.1vw, 1.05rem);
	line-height: 1.65;
	font-weight: 500;
	color: var(--ink-secondary);
}


/* =============================================================================
 * 10. CATEGORY SWITCHER
 * A filter group, not a tablist. The buttons carry aria-pressed; the visible
 * result of a click is the stage photo and the bottom chip label, both of which
 * are aria-hidden, so the markup also needs a visually-hidden aria-live region
 * (styled by .screen-reader-text above).
 * ========================================================================== */

.category-pills,
.haniart-cats {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.cat-pill,
.haniart-cat {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.05rem;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);   /* buttons do not inherit font-family */
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink-secondary);
	box-shadow: var(--shadow-pill);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.22s var(--ease-expo);
}

.cat-pill:hover,
.haniart-cat:hover {
	color: var(--ink-primary);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -4px rgba(20, 32, 54, 0.08);
}

.cat-pill.is-active,
.haniart-cat.is-active,
.cat-pill[aria-pressed="true"],
.haniart-cat[aria-pressed="true"] {
	background: var(--pill-dark);
	color: var(--surface-white);
	border-color: var(--pill-dark);
	box-shadow: 0 10px 24px -6px rgba(24, 29, 36, 0.3);
}

.cat-pill.is-active svg,
.haniart-cat.is-active svg,
.cat-pill[aria-pressed="true"] svg,
.haniart-cat[aria-pressed="true"] svg {
	color: var(--surface-white);   /* the accent is 1.95:1 on --pill-dark */
}

/* ONE LINE ON DESKTOP. The owner wants the three categories in a single row.
 * The labels alone are 373px at 0.8rem, and the text column runs from about
 * 410px (901px viewport) to 700px+, so the row steps down only as far as the
 * column forces it: full pills with icons, then without icons, then smaller
 * type. The row measures itself (a container query), so the steps follow the
 * column, not a guess about which viewport produces which column.
 *
 * Thresholds are measured widths plus a few px of slack, with a 0.5rem gap:
 *   >= 640  whatever the breakpoint sets (0.88rem pills need 629)
 *   <  640  base size, icons kept                               568
 *   <  572  icons off, padding 0.85rem                          477
 *   <  480  0.72rem type, padding 0.6rem                        415
 *   <  419  0.68rem type, padding 0.5rem                        387
 * (The gap is set on the row, which is the container itself, and a container
 * query cannot restyle its own container - so the gap stays 0.5rem throughout.)
 * Below 901px the hero is one column and a phone cannot fit the row at a
 * readable size, so there it still wraps. */
@media (min-width: 901px) {
	.category-pills,
	.haniart-cats {
		container: haniart-cats / inline-size;
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	.category-pills .cat-pill,
	.haniart-cats .haniart-cat {
		flex-shrink: 0;
		white-space: nowrap;
	}
}

@container haniart-cats (max-width: 640px) {
	.category-pills .cat-pill,
	.haniart-cats .haniart-cat {
		font-size: 0.8rem;
		padding-inline: 1.05rem;
	}
}

@container haniart-cats (max-width: 572px) {
	.category-pills .cat-pill,
	.haniart-cats .haniart-cat {
		padding-inline: 0.85rem;
	}

	.category-pills .cat-pill svg,
	.haniart-cats .haniart-cat svg {
		display: none;
	}
}

@container haniart-cats (max-width: 480px) {
	.category-pills .cat-pill,
	.haniart-cats .haniart-cat {
		font-size: 0.72rem;
		padding-inline: 0.6rem;
	}
}

@container haniart-cats (max-width: 419px) {
	.category-pills .cat-pill,
	.haniart-cats .haniart-cat {
		font-size: 0.68rem;
		padding-inline: 0.5rem;
	}
}


/* =============================================================================
 * 11. ACTION ROW
 * ========================================================================== */

.action-row,
.haniart-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0 0 1.6rem;
}

body .action-row.action-row,
body .haniart-actions.haniart-actions {
	gap: 1rem;
	align-items: center;
}

/* ---- primary ---- */

:root .btn-primary,
:root .is-style-haniart-primary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1.85rem;
	background: var(--pill-dark);
	background-color: var(--pill-dark);
	color: var(--surface-white);
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 14px 30px -8px rgba(24, 29, 36, 0.35);
	transition: all 0.24s var(--ease-expo);
}

:root .btn-primary:hover,
:root .is-style-haniart-primary .wp-block-button__link:hover {
	transform: translateY(-2px);
	background-color: var(--pill-dark);
	color: var(--surface-white);
	box-shadow: 0 18px 36px -8px rgba(24, 29, 36, 0.45);
}

/* The arrow. As a pseudo-element on the block-style variant so the owner cannot
 * delete it while editing the label; the mockup's literal <span> still works. */
.btn-primary .btn-arrow,
.is-style-haniart-primary .wp-block-button__link::after {
	display: inline-block;
	color: var(--surface-white);   /* the accent is 1.95:1 on --pill-dark */
	transition: transform 0.2s ease;
}

.is-style-haniart-primary .wp-block-button__link::after {
	content: "\2192";   /* rightwards arrow */
	margin-left: 0.75rem;
	font-weight: 700;
}

.btn-primary:hover .btn-arrow,
.is-style-haniart-primary .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* ---- secondary ---- */

:root .btn-secondary,
:root .is-style-haniart-secondary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 0.85rem 1.5rem;
	background: var(--surface-white);
	background-color: var(--surface-white);
	color: var(--ink-primary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: var(--shadow-pill);
	transition: all 0.22s ease;
}

:root .btn-secondary:hover,
:root .is-style-haniart-secondary .wp-block-button__link:hover {
	transform: translateY(-2px);
	background-color: var(--surface-hover);
	color: var(--ink-primary);
	box-shadow: 0 10px 22px -5px rgba(20, 32, 54, 0.08);
}


/* =============================================================================
 * 12. TRUST STRIP
 * The stars are rendered server-side as N repeated glyphs with a matching
 * aria-label, so the accessible name can never drift from what is visible.
 * ========================================================================== */

.trust-strip,
.haniart-trust {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin: 0;
	padding-top: 0.5rem;
}

.trust-stars {
	color: var(--accent-amber);
	letter-spacing: 2px;
	font-size: 0.95rem;
	line-height: 1;
	white-space: nowrap;
}

.trust-text {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink-muted);
}

/* -----------------------------------------------------------------------------
 * 12a. GOOGLE REVIEWS LINKS, 9 Nov 2026
 * The old site had a "Google Bewertung" image in its menu that linked nowhere.
 * Its replacement: the hero rating line above becomes a white pill linking to
 * the studio's Google reviews, and a small "G 5,0 ★" badge sits in the footer
 * on every page. Both follow the "Bewertungszeile anzeigen" switch, and the
 * link comes from ACF (haniart_trust() in inc/content.php).
 * -------------------------------------------------------------------------- */

.trust-strip--link {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 0.6rem;
	width: fit-content;
	max-width: 100%;
	margin-top: 0.15rem;
	padding: 0.35rem 0.85rem 0.35rem 0.6rem;
	color: var(--ink-muted);
	text-decoration: none;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-pill);
	transition:
		transform 0.2s var(--ease-expo),
		box-shadow 0.2s var(--ease-expo);
}

.trust-strip--link:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-chip);
}

.trust-strip--link:hover .trust-text,
.trust-strip--link:hover .trust-go {
	color: var(--ink-primary);
}

.trust-strip--link:focus-visible,
.footer-rating:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
}

.google-g {
	display: block;
	flex-shrink: 0;
}

.trust-go {
	flex-shrink: 0;
	color: var(--ink-muted);
	transition: color 0.2s var(--ease-expo);
}

/* :root .site-footer prefix: section 4b gives every footer link
 * `display: inline-block`, which put the G on a line of its own. */
:root .site-footer .footer-rating,
:root .haniart-footer .footer-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 700;
}

.footer-rating__star {
	color: var(--accent-amber);
}

/* Facebook and Instagram, right after the Google badge (9 Nov 2026). Muted like
 * the other footer links, darker on hover. */
.footer-social {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	margin-inline-start: 0.4rem;
}

:root .site-footer .footer-social a,
:root .haniart-footer .footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.3rem;
}

/* "Cookie-Einstellungen" in the footer reopens the Complianz banner, so its
 * floating "Einwilligung verwalten" tab is no longer needed (9 Nov 2026).
 * Looks exactly like the footer links beside it. */
:root .site-footer .footer-consent,
:root .haniart-footer .footer-consent {
	display: inline-block;
	margin: 0;
	padding: 0.45rem 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.2s var(--ease-expo);
}

:root .site-footer .footer-consent:hover,
:root .haniart-footer .footer-consent:hover {
	color: var(--ink-primary);
}

.footer-consent:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
}

#cmplz-manage-consent {
	display: none !important;
}

/* The footer's middle group is hidden below 900px (section 18). The badge
 * stays; only the owner line goes, as before. */
@media (max-width: 900px) {
	.site-footer .footer-center {
		display: flex;
		justify-content: center;
	}

	.footer-center .footer-owner {
		display: none;
	}

	/* Icon-only links: 44px wide as well as tall on touch screens. */
	:root .site-footer .footer-social a,
	:root .haniart-footer .footer-social a {
		min-width: var(--control-min);
	}

	/* Same 44px tap height as the footer links (section 18). */
	:root .site-footer .footer-consent,
	:root .haniart-footer .footer-consent {
		display: inline-flex;
		align-items: center;
		min-height: var(--control-min);
		padding-block: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trust-strip--link:hover {
		transform: none;
	}
}

/* -----------------------------------------------------------------------------
 * THE TWO PAGES THAT LEFT THE MENU
 * -----------------------------------------------------------------------------
 * "Über mich" and "Mein Studio" moved out of the header (eight items do not fit
 * beside the logo and the booking button - see section 17b) and onto the home
 * page. They sit under the trust strip on purpose: a visitor reads headline,
 * intro, the two buttons, then the proof line, and only then this. Anything
 * louder would read as a third call to action and pull attention off
 * "Termin vereinbaren".
 *
 * They first borrowed the trust strip's type (0.76rem, --ink-muted) and were
 * too easy to miss; dark underlined text was the next step. At the owner's
 * request they are now small buttons: the secondary button's look - white pill,
 * hairline border, soft shadow - one size down (0.8rem against 0.88rem), so
 * "Termin vereinbaren" stays the strongest thing in the hero. The "·"
 * separators are hidden; the gap between the pills does their job.
 *
 * The row costs about 40px of a layout that is locked to one screen, which is
 * why it is a single row with a small margin and nothing else.
 * -------------------------------------------------------------------------- */

.hero-more,
.haniart-hero__more {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0;
	padding-top: 0.75rem;
}

:root .hero-more__link,
:root .haniart-hero__more a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.05rem;
	background: var(--surface-white);
	color: var(--ink-primary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: var(--shadow-pill);
	transition: all 0.22s var(--ease-expo);
}

:root .hero-more__link:hover,
:root .hero-more__link:focus-visible,
:root .haniart-hero__more a:hover,
:root .haniart-hero__more a:focus-visible {
	transform: translateY(-2px);
	color: var(--accent-teal);   /* 8.70:1 on white */
	box-shadow: 0 8px 20px -4px rgba(20, 32, 54, 0.08);
}

.hero-more__sep {
	display: none;
}


/* =============================================================================
 * 13. SHOWCASE STAGE
 * `overflow: visible` on the card is load-bearing: the two floating chips sit at
 * left:-24px / right:-24px, i.e. outside it. WordPress adds overflow:hidden in
 * several places you do not control (Cover blocks, has-background + radius), so
 * it is forced here.
 * ========================================================================== */

.showcase-stage,
.haniart-hero__stage {
	position: relative;
	height: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

:root .showcase-card,
:root .haniart-hero__card {
	position: relative;
	width: 100%;
	max-width: 580px;
	height: min(72vh, 600px);
	margin: 0;
	padding: 16px;                       /* the white mat around the photo */
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.photo-wrapper,
.haniart-hero__frame {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: var(--radius-photo);
	overflow: hidden;                    /* required for object-fit: cover */
	background: var(--surface-sunken);
}

/* Core wraps images in <figure class="wp-block-image">; flatten it so the
 * figure does not introduce its own box between the frame and the photo. */
.photo-wrapper .wp-block-image,
.haniart-hero__frame .wp-block-image,
.photo-wrapper figure,
.haniart-hero__frame figure {
	width: 100%;
	height: 100%;
	margin: 0;
	display: block;
}

.photo-wrapper img,
.haniart-hero__frame img,
.haniart-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;            /* per-category value set inline */
	border-radius: inherit;
	transition:
		transform 0.6s var(--ease-expo),
		opacity 0.3s ease;
}

.showcase-card:hover .photo-wrapper img,
.showcase-card:hover .haniart-hero__photo,
.haniart-hero__card:hover .haniart-hero__frame img,
.haniart-hero__card:hover .haniart-hero__photo {
	transform: scale(1.025);
}

/* Only the active category's photo is visible; the JS toggles this class so the
 * srcset/sizes WordPress generated are never rewritten from JavaScript. */
.haniart-hero__photo[hidden],
.haniart-hero__photo.is-hidden {
	display: none;
}

.subtle-glare {
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
}


/* =============================================================================
 * 14. FLOATING CHIPS
 * ========================================================================== */

.floating-chip {
	position: absolute;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0.65rem 1.15rem;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-chip);
	transition: transform 0.3s var(--ease-expo);
}

/* The chips lift when the CARD is hovered, not when they are. */
.showcase-card:hover .floating-chip,
.haniart-hero__card:hover .floating-chip {
	transform: translateY(-3px);
}

.chip-top {
	top: 36px;
	left: -24px;
}

.chip-bottom {
	bottom: 36px;
	right: -24px;
}

.chip-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--surface-icon);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-primary);
}

.status-indicator {
	position: relative;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--accent-teal);
	box-shadow: 0 0 10px var(--accent-teal);
}

.status-pulse {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--accent-teal);
	opacity: 0.6;
	animation: haniart-ping 2s infinite var(--ease-ping);
}

@keyframes haniart-ping {
	75%,
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

.chip-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.chip-title {
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink-primary);
}

.chip-sub {
	font-size: 0.65rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ink-muted);
}


/* =============================================================================
 * 15. FOOTER
 * ========================================================================== */

:root .site-footer,
:root .haniart-footer {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	/* MIN-height, never height. Between 901px and ~995px wide the three footer
	 * groups wrap onto a second line: measured scrollHeight 69px inside a locked
	 * 35px box, which clipped the mailto:, Impressum and Datenschutz links out
	 * of reach. Those two are legally required to be findable, so a fixed height
	 * here is a functional failure, not a cosmetic one. --footer-h stays as the
	 * floor so the single-screen rhythm at 1440x900 is unchanged (the band is
	 * taller than its own content there, so the floor is what is drawn); the box
	 * now grows instead of clipping whenever the content needs more. The middle
	 * band absorbs the difference - it is `flex: 1 1 auto` in the same column. */
	min-height: var(--footer-h);
	margin-block: 0;
	padding: 0;
	background: none;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ink-muted);
}

.footer-left,
.footer-center,
.footer-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0;
}

/* The "/" between footer items. --border-subtle measures 1.07:1 on the canvas,
 * i.e. it is not visible at all - it separates nothing. It is a text glyph, so
 * it takes the same accessible muted ink as the text it sits between. */
.footer-sep {
	margin-inline: 0.6rem;
	color: var(--ink-muted);
}

/* The footer links carried a thin underline, because theme.json sets
 * elements.link to `color: inherit; text-decoration: none` and that leaves the
 * tel:, mailto:, Impressum and Datenschutz links exactly the colour of the
 * address text beside them, with no other cue - WCAG 1.4.1 (Use of Color).
 *
 * Removed at the owner's instruction, to match the mockup: its footer links
 * inherit --ink-muted like the text around them and are distinguished only on
 * hover, where they lift to --ink-primary. That hover shift is kept below.
 *
 * Recorded rather than silently dropped: the Impressum and Datenschutz links
 * are the ones German law requires to be findable, and they now look exactly
 * like the plain text either side of them until the pointer is over them. It is
 * a design decision the owner has taken knowingly. */
:root .site-footer a,
:root .haniart-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--ease-expo);
}

:root .site-footer a:hover,
:root .haniart-footer a:hover {
	color: var(--ink-primary);
}


/* =============================================================================
 * 16. INTERIOR PAGES
 * Everything above is either scoped to the front page or keyed to hero classes
 * that only the homepage uses. Interior pages get normal document flow plus the
 * shared type and surface language.
 * ========================================================================== */

body:not(.home) .wp-site-blocks {
	background-color: var(--bg-canvas);
	min-height: 100vh;
	min-height: 100svh;
}

body:not(.home) .site-header,
body:not(.home) .haniart-header {
	margin-bottom: 1.5rem;
}

body:not(.home) .site-footer,
body:not(.home) .haniart-footer {
	height: auto;
	/* The base rule's floor is a single-screen metric; interior footers size
	 * from their own padding. Released explicitly now that the base declares
	 * min-height rather than height - `height: auto` no longer overrides it. */
	min-height: 0;
	padding-block: 1.75rem;
	margin-top: 3rem;
	border-top: 1px solid var(--border-subtle);
}

/* Interior content surfaces reuse the soft-UI card language. */
.haniart-panel {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 24px;
	box-shadow: var(--shadow-card);
}

/* ---- page shell ---- */

.haniart-main {
	position: relative;
	z-index: 1;
}

/* -----------------------------------------------------------------------------
 * INTERIOR PAGE HEADER
 * -----------------------------------------------------------------------------
 * WHAT THIS USED TO BE, AND WHY IT WAS WRONG
 *
 * This header used to borrow the homepage's vocabulary: a very large tight
 * headline, centred, at weight 800, over a short teal gradient rule. The
 * reasoning was that an interior page should look like it belongs to the same
 * site. The reasoning was sound and the result was not.
 *
 * The homepage is a hero. It has one headline and nothing to compete with.
 * An interior page is not a hero: it opens with its own content, and that
 * content has its own opening heading. On "Uber mich" the page title rendered
 * at 54px/800 and the article's first heading at 33px/800, one directly under
 * the other - two monuments stacked, before a word had been read. The title
 * was shouting over the thing it was introducing.
 *
 * WHAT IT IS NOW
 *
 * The title states the page rather than announcing it: smaller, left, weight
 * 700 instead of 800, and a plain hairline instead of a teal gradient stub.
 * The page's own content is then the loudest thing on the page, which is the
 * correct order.
 *
 * ALIGNMENT, which is the part that is easy to get wrong.
 *
 * Left-aligning a title is only an improvement if it lands on the same left
 * edge as what follows it. It does here because the h1 is left alone as a
 * normal block: core's constrained layout caps it at the content size and
 * centres the BOX, so the box is the reading measure and the text sits at its
 * start - exactly where the paragraphs below start. The earlier version made
 * the header a centring flex column, which shrink-wrapped the h1 and took it
 * out of that relationship; restoring `display: block` is what re-establishes
 * it. Do not put `align-items` back.
 *
 * The same rules serve the templates that print the title on its own, without
 * a .haniart-page-header wrapper (Galerie, Preisliste, 404). There the h1 is a
 * child of a wide container, so it measures the full grid width and the rule
 * spans it - which is what those pages want, since a reading-width rule above
 * a full-width grid would float unanchored. One declaration, correct in both
 * cases, because the width comes from the container rather than from here.
 * -------------------------------------------------------------------------- */

:root .haniart-page-header {
	display: block;
	text-align: start;
	padding-block: 0;
}

:root .haniart-page-title {
	position: relative;
	margin: 0;
	padding-bottom: clamp(0.8rem, 1.6vw, 1.05rem);
	font-size: clamp(1.65rem, 2.6vw, 2.15rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ink-primary);
	text-wrap: balance;
}

/* -----------------------------------------------------------------------------
 * THE RULE THAT CLOSES THE HEADER
 * -----------------------------------------------------------------------------
 * It spans the box it is drawn on, so it is the reading measure inside a page
 * header and the grid width on Galerie - see above.
 *
 * WHICH ELEMENT DRAWS IT. Not always the title. A title is often followed by
 * something that belongs to it: a lead sentence (404, Preisliste, category
 * archives) or the date and category row (blog posts). Drawing the rule on the
 * title unconditionally put it BETWEEN a heading and the line belonging to it,
 * a few pixels above that line, where it read as a stray underline rather than
 * as a divider. Both cases were caught on the live page, not from the markup -
 * on a blog post it is only 20px out of place and easy to miss.
 *
 * So the rule is drawn by whichever element ENDS the header block, and the
 * title hands it over when it is not the last thing there. Inside a
 * .haniart-page-header that is simply :last-child, which also covers whatever
 * a later template puts in one. The templates that print a title with no
 * header wrapper (Preisliste, 404) cannot use :last-child - their title is a
 * child of <main>, with the entire page after it - so those are matched by the
 * adjacent lead instead.
 *
 * Not --border-subtle: that token is rgba(226,232,240,.85), read against a
 * white card. On this page background it disappears entirely (also checked
 * live - the line was invisible). This is ink at 14%, the quietest value that
 * still reads as a line here. */
:root .haniart-page-title::after,
:root .haniart-page-header > :last-child::after,
:root .haniart-page-title + .haniart-page-intro::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	height: 1px;
	background-color: rgba(20, 24, 32, 0.14);
}

:root .haniart-page-header > :last-child,
:root .haniart-page-title + .haniart-page-intro {
	position: relative;
	padding-bottom: clamp(0.8rem, 1.6vw, 1.05rem);
}

/* The title hands the rule over, and keeps only a small gap to what follows.
 * (0,4,0) and (0,3,0) respectively - :has() and :not() both carry the
 * specificity of their argument - so these beat the rules above on their own,
 * with no !important. */
:root .haniart-page-header .haniart-page-title:not(:last-child)::after,
:root .haniart-page-title:has(+ .haniart-page-intro)::after {
	content: none;
}

:root .haniart-page-header .haniart-page-title:not(:last-child),
:root .haniart-page-title:has(+ .haniart-page-intro) {
	padding-bottom: 0.45rem;
}

/* A featured image directly under the header keeps the same rhythm. */
:root .haniart-page-header + * {
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* -----------------------------------------------------------------------------
 * PLUGIN WIDGETS THAT NEED MORE THAN THE READING MEASURE
 * -----------------------------------------------------------------------------
 * post-content is a constrained layout, so core caps every child at the 760px
 * content size. That is right for prose and wrong for an application: the
 * customer portal's appointment table rendered 760px wide inside an 1171px
 * page, which looked like a broken column rather than a deliberate measure.
 *
 * These are the BookingPress containers - a booking form, the "my appointments"
 * table and the cancellation panel. They are given the wide size instead, which
 * is the measure the homepage works to, so the portal reads as part of the same
 * site. Prose around them is untouched and keeps its reading width.
 * -------------------------------------------------------------------------- */
:root .haniart-prose .wp-block-bookingpress-bookingpress-my-booking,
:root .haniart-prose .wp-block-bookingpress-bookingpress-appointment-form,
:root .haniart-prose .bpa-front-cancel-module-container,
:root .haniart-prose #bookingpress_appointment_wrapper {
	max-width: var(--wp--style--global--wide-size, 1324px);
	width: 100%;
	margin-inline: auto;
}

:root .haniart-page-intro {
	margin: 0;
	font-size: clamp(0.95rem, 1.1vw, 1.1rem);
	line-height: 1.7;
	font-weight: 500;
	color: var(--ink-secondary);
}

.haniart-page-media {
	position: relative;
}

.haniart-page-media img {
	border-radius: var(--radius-photo);
	box-shadow: var(--shadow-card);
}

/*
 * The eyebrow pill sitting ON the photograph. inc/content.php moves the node in
 * here from the page content - see haniart_eyebrow_on_media() for why that
 * cannot be done in CSS. Everything but the position is inherited from the
 * shared pill rule above, so the two stay identical if either is restyled.
 *
 * The inset is clamped rather than fixed because the photograph shrinks with the
 * viewport: 1.6rem looks generous on a 760px hero and swallows a 330px one.
 * A heavier shadow than the pill's usual one, because this is the only place it
 * is drawn over a photograph rather than over the flat canvas.
 */
.haniart-page-media__tag {
	position: absolute;
	left: clamp(0.8rem, 2vw, 1.6rem);
	bottom: clamp(0.8rem, 2vw, 1.6rem);
	/* The shared pill rule ends in `margin: 0 0 1.1rem`, which an absolutely
	 * positioned box still honours: `bottom` places the MARGIN edge, so the pill
	 * measured 42px off the photograph instead of the 24px asked for. */
	margin: 0;
	max-width: calc(100% - 2 * clamp(0.8rem, 2vw, 1.6rem));
	box-shadow: 0 6px 22px rgba(24, 29, 36, 0.22);
}

/* ---- long-form content ---- */

.haniart-prose h2,
.haniart-prose h3,
.haniart-prose h4 {
	margin-block-start: 2.5rem;
	color: var(--ink-primary);
	letter-spacing: -0.02em;
}

.haniart-prose p,
.haniart-prose li {
	color: var(--ink-secondary);
	line-height: 1.75;
}

/* The underline is this link's only non-colour cue (WCAG 1.4.1), so it has to
 * be perceivable in its own right. --accent-teal measures 1.44:1 on the canvas
 * it is drawn on - effectively invisible. --link-ink keeps the teal read at
 * 4.98:1 and matches the hover colour below. */
/*
 * :not(.wp-element-button) IS LEAD, NOT DECORATION. Without it this rule made
 * every button placed in page content invisible, site-wide.
 *
 * theme.json styles a button through `:root :where(.wp-element-button, …)`,
 * and :where() contributes NOTHING to specificity - so that rule scores (0,1,0)
 * on the `:root` alone. `:root .haniart-prose a` scores (0,2,1) and wins, which
 * repainted the button's white label in --ink-primary #141820 on its own
 * --pill-dark #181d24 pill: 1.05:1, four points of grey apart. Measured on
 * "Termin vereinbaren" on /mein-studio/, where it read as a blank black lozenge.
 * The same rule was also re-underlining buttons that theme.json had set to none.
 *
 * Core solves this everywhere by writing `a:where(:not(.wp-element-button))`.
 * This is the same exclusion at a specificity that still beats global styles for
 * the real links the rule is actually about.
 */
:root .haniart-prose a:not(.wp-element-button) {
	color: var(--ink-primary);
	text-decoration: underline;
	text-decoration-color: var(--link-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Was --gradient-end (#24515e, 3.44:1) - fine for the 44px headline it was
 * designed for, 1.1 points short of the 4.5:1 a body-size link needs. */
:root .haniart-prose a:not(.wp-element-button):hover {
	color: var(--link-ink);
}

.haniart-prose blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.75rem;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-left: 3px solid var(--accent-teal);
	border-radius: 18px;
	box-shadow: var(--shadow-pill);
}

.haniart-prose img {
	border-radius: 18px;
}

/* Links sitting inside a run of body text elsewhere on the interior pages get
 * the same non-colour cue the prose links have (WCAG 1.4.1). Standalone link
 * groups - pagination, post navigation, tag pills - are excluded: they are not
 * "links within a block of text" and they already read as controls. */
:root .haniart-page-intro a,
:root .haniart-card__excerpt a,
:root .haniart-card__meta a,
:root .haniart-post-meta a,
:root .haniart-comment__meta a,
:root .haniart-empty a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:root .haniart-page-intro a:hover,
:root .haniart-card__excerpt a:hover,
:root .haniart-card__meta a:hover,
:root .haniart-post-meta a:hover,
:root .haniart-comment__meta a:hover,
:root .haniart-empty a:hover {
	color: var(--link-ink);
}


/* ---- post card in the loops (index, archive, search) -------------------------
 * IMPORTANT: `.haniart-card` is the LOOP card. The hero photo card is
 * `.showcase-card` (alias `.haniart-hero__card`). These two must never share a
 * class name - aliasing .haniart-card onto the hero card forces every post card
 * to 580x600px and centre-flexes its contents. */

.haniart-card {
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 24px;
	box-shadow: var(--shadow-card);
	transition:
		transform 0.24s var(--ease-expo),
		box-shadow 0.24s var(--ease-expo);
}

.haniart-card:hover {
	transform: translateY(-2px);
	box-shadow:
		0 30px 70px -18px rgba(20, 32, 54, 0.12),
		0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.haniart-card__media {
	margin: 0 0 1.25rem;
}

.haniart-card__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

:root .haniart-card__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--ink-primary);
}

:root .haniart-card__title a {
	color: inherit;
	text-decoration: none;
}

:root .haniart-card__title a:hover {
	color: var(--link-ink);   /* 4.98:1 on canvas, 5.69:1 on white */
}

:root .haniart-card__meta,
:root .haniart-post-meta {
	margin: 0 0 0.85rem;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

:root .haniart-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--ink-secondary);
}

/* ---- post tags (single.html) ---- */

:root .haniart-post-tags {
	margin-top: 2.25rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink-muted);
}

:root .haniart-post-tags a {
	display: inline-block;
	margin: 0.2rem 0.25rem 0.2rem 0;
	padding: 0.45rem 0.9rem;   /* >=24px tall - WCAG 2.2 SC 2.5.8 */
	color: var(--ink-secondary);
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	text-decoration: none;
	box-shadow: var(--shadow-pill);
	transition: color 0.2s var(--ease-expo);
}

:root .haniart-post-tags a:hover {
	color: var(--ink-primary);
}

/* ---- pagination, empty state, post navigation ---- */

.haniart-pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-subtle);
	font-size: 0.85rem;
	font-weight: 600;
}

:root .haniart-pagination a {
	display: inline-block;
	min-height: var(--control-min-fine);
	padding: 0.45rem 0.75rem;
	color: var(--ink-secondary);
	text-decoration: none;
	border-radius: var(--radius-pill);
	transition:
		color 0.2s var(--ease-expo),
		background-color 0.2s var(--ease-expo);
}

:root .haniart-pagination a:hover {
	color: var(--ink-primary);
	background: var(--nav-hover);
}

.haniart-pagination .current {
	display: inline-block;
	padding: 0.45rem 0.75rem;
	color: var(--ink-primary);
	background: var(--nav-active);
	border-radius: var(--radius-pill);
}

:root .haniart-empty {
	margin: 0;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 24px;
	box-shadow: var(--shadow-pill);
	color: var(--ink-secondary);
	text-align: center;
}

.haniart-post-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 3rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--border-subtle);
	font-size: 0.85rem;
	font-weight: 600;
}

/* ---- comments ---- */

.haniart-comments {
	margin-top: 3.5rem;
}

.haniart-comment {
	margin-block: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 20px;
	box-shadow: var(--shadow-pill);
}

:root .haniart-comment__meta {
	margin: 0 0 0.5rem;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--ink-muted);
}

/* ---- search field ---- */

/* The wrapper is the visible boundary of the whole control (the input inside it
 * is deliberately borderless), so the wrapper is what has to clear 3:1. It was
 * --border-subtle: a white pill with a 1.05:1 edge standing on a 1.07:1 edge
 * against the canvas, i.e. a search field with no perceivable outline at all. */
.haniart-search .wp-block-search__inside-wrapper {
	padding: 0.3rem;
	background: var(--surface-white);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-pill);
}

/* The input inside that wrapper stays borderless on purpose - the pill around
 * it IS the control's boundary, and a second border inside the first reads as a
 * rendering bug. `:root` prefix and the two classes give this (0,3,0), which
 * beats the generic form-control rule further down at (0,2,1): an attribute
 * selector like `input[type="search"]` weighs the same as a class, so the plain
 * two-class form this rule used to have was LOSING to it and the field was
 * drawing a box inside its own pill. Measured: border-top-width 1px where 0 was
 * intended. Keep the `:root`. */
:root .haniart-search .wp-block-search__input {
	padding: 0.6rem 1.1rem;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.9rem;
	color: var(--ink-primary);
	/* min-height is deliberately NOT reset here: the generic form-control rule's
	 * 24px / 44px floor should still reach this field, and on a phone that floor
	 * is what makes the search pill a 44px touch target. */
}

/* The ring moves to the wrapper so it frames the whole control, not the bare
 * input inside it. */
.haniart-search .wp-block-search__input:focus {
	outline: none;
}

.haniart-search .wp-block-search__inside-wrapper:focus-within {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: var(--shadow-pill), 0 0 0 5px var(--focus-ring-halo);
}

:root .haniart-search .wp-block-search__button {
	margin: 0;
	padding: 0.6rem 1.35rem;
	background: var(--pill-dark);
	color: var(--surface-white);
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.22s var(--ease-expo);
}

:root .haniart-search .wp-block-search__button:hover {
	background: var(--accent-teal);   /* white label 8.70:1; an accent label was 1.95:1 */
	color: var(--surface-white);
}

/* ---- every other form control  (WCAG 2.1 AA - SC 1.4.11) ----
 * The search field was the one input the theme styled by name; the comment form
 * (core/post-comments-form), any core/search block outside .haniart-search, and
 * anything the owner drops into a page were all falling through to the browser
 * default or to theme.json, with the same invisible-boundary result. One rule,
 * one token, so a field looks like a field wherever it appears.
 *
 * Specificity: (0,1,1) - `:root` plus an element - which beats theme.json's
 * `:root :where(...)` at (0,1,0) without needing !important. The search input
 * keeps its own borderless treatment because `.haniart-search
 * .wp-block-search__input` is (0,2,0) and wins outright, whatever the order.
 *
 * Submit/reset/button inputs are excluded: they are pill buttons, styled above,
 * and a grey rectangle border would fight that. Checkboxes and radios are
 * excluded from the border too - a border does not reliably render on a native
 * control - and take `accent-color` instead, which paints the checked state in
 * the theme's own dark ink at 15.56:1. */
:root input:not([type]),
:root input[type="text"],
:root input[type="email"],
:root input[type="url"],
:root input[type="tel"],
:root input[type="number"],
:root input[type="password"],
:root input[type="search"],
:root input[type="date"],
:root input[type="time"],
:root input[type="datetime-local"],
:root input[type="month"],
:root input[type="week"],
:root input[type="file"],
:root textarea,
:root select {
	background-color: var(--surface-white);
	color: var(--ink-primary);
	border: 1px solid var(--border-control);
	border-radius: 14px;
	padding: 0.65rem 0.9rem;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	line-height: 1.4;
	/* SC 2.5.8 again: a 24px floor on the control itself, not just on its label.
	 * The padding above already clears it; this stops a future edit dropping
	 * under. Height is otherwise left to the control's own content. */
	min-height: var(--control-min-fine);
	max-width: 100%;
}

:root textarea {
	display: block;
	width: 100%;
	min-height: 8rem;
	resize: vertical;
}

:root input[type="checkbox"],
:root input[type="radio"] {
	accent-color: var(--pill-dark);
}

/* Placeholders are hint text, so they take the accessible muted ink (5.21:1 on
 * the white field) rather than the browser's own near-invisible grey. */
:root input::placeholder,
:root textarea::placeholder {
	color: var(--ink-muted);
	opacity: 1;   /* Firefox dims placeholders by default; undo before it lands */
}

/* On touch-sized viewports the same 44px floor every other control takes. */
@media (max-width: 900px) {
	:root input:not([type]),
	:root input[type="text"],
	:root input[type="email"],
	:root input[type="url"],
	:root input[type="tel"],
	:root input[type="number"],
	:root input[type="password"],
	:root input[type="search"],
	:root input[type="date"],
	:root input[type="time"],
	:root input[type="datetime-local"],
	:root input[type="month"],
	:root input[type="week"],
	:root input[type="file"],
	:root select {
		min-height: var(--control-min);
	}
}

/* ---- 404 action buttons ---- */

.haniart-404-actions {
	gap: 1rem;
}

/* The ghost variant pairs core's is-style-outline with the soft-UI white pill,
 * so it matches .btn-secondary on the homepage. */
:root .haniart-cta-pill--ghost .wp-block-button__link {
	padding: 0.85rem 1.5rem;
	background: var(--surface-white);
	background-color: var(--surface-white);
	color: var(--ink-primary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--shadow-pill);
	transition: all 0.22s ease;
}

:root .haniart-cta-pill--ghost .wp-block-button__link:hover {
	transform: translateY(-2px);
	background-color: var(--surface-hover);
	color: var(--ink-primary);
	box-shadow: 0 10px 22px -5px rgba(20, 32, 54, 0.08);
}

:root .haniart-cta-pill--ghost .wp-block-button__link:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: var(--shadow-pill), 0 0 0 5px var(--focus-ring-halo);
}


/* =============================================================================
 * 17. BREAKPOINT 1120px
 * Tighten the grid and pull both chips inside the card so they stop colliding
 * with the text column.
 * ========================================================================== */

@media (max-width: 1120px) {
	:root .hero-workspace,
	:root .haniart-hero,
	body .hero-workspace.hero-workspace,
	body .haniart-hero.haniart-hero {
		grid-template-columns: 50% 1fr;
		gap: 2.5rem;
	}

	.chip-top {
		left: 8px;
	}

	.chip-bottom {
		right: 8px;
	}
}


/* =============================================================================
 * 17b. THE MENU CHANGES OVER AT 1024px, NOT AT 900px
 * -----------------------------------------------------------------------------
 * The mockup drew six menu items and handed the header to the hamburger at
 * 900px. Below 900px that is still what happens - the overlay is drawn for it
 * and looks right. Between 900 and here it is a measurement, not a preference.
 *
 * WHY NOT 900. The menu carried EIGHT items for a while, and eight did not fit
 * between the logo and the "Online-Termin" button anywhere near 900px: 88px of
 * overflow at 960, 33px at 1080, still 14px at 1120, clearing only around 1150
 * on an interior page and 1280 on the home page. The seatbelt in section 17
 * turns an overflowing bar into a silently scrolling one, so a label was sliced
 * in half at each end and the menu read as broken rather than as scrollable.
 *
 * "Über mich" and "Mein Studio" then moved out of the menu and onto the home
 * page (haniart_hero_links()), which put the count back to the six the design
 * was drawn for. Re-measured on the home page, badge hidden, six items:
 *
 *       901px  36px over        1024px  fits, 36px spare
 *       940px  18px over        1100px  fits, 103px spare
 *       980px   1px over        1280px  fits, 257px spare
 *
 * So the changeover comes down from 1280 to 1024. It cannot go to 900: even six
 * items are 36px too wide there.
 *
 * THE HOME PAGE IS THE ONE THAT SETS IT. Its single-screen shell pads
 * `.wp-site-blocks` by a fluid ~41-58px a side, so the header measures 1103px in
 * a 1186px window where an interior page measures 1171px - about 100px less to
 * work with. Every number above is the home page's, because a breakpoint that
 * suits the interior pages would break the front door.
 *
 * Nothing else about the 900px breakpoint moves - the single-column content
 * layout, the scroll unlock and the 44px control floor all stay where they were.
 *
 * 8 NOV 2026: SEVEN ITEMS, CHANGEOVER AT 1240px. "Über mich" and "Mein Studio"
 * went back into the menu and "Blog" came out. Eight items cleared the home
 * page at about 1280; dropping "Blog" (~60px) brings that to about 1210, so the
 * hamburger now takes over below 1240 for some margin. Estimated from the
 * eight-item measurements above, not re-measured.
 * ========================================================================== */

@media (max-width: 1319px) {

	/* The pill bar loses its chrome, exactly as the mockup intends visually. */
	:root .nav-pill-bar,
	:root .haniart-nav {
		background: none;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	/* Reveal the hamburger and hide the inline list. The :not() chains mirror
	 * core's own selectors so the added .nav-pill-bar ancestor is enough to win
	 * on specificity - no !important needed. (Core's own overlay breakpoint is
	 * hardcoded at 600px, so everything from 601px to 1023px is handled here.) */
	.nav-pill-bar .wp-block-navigation__responsive-container-open:not(.always-shown),
	.haniart-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.nav-pill-bar .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open),
	.haniart-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* A plain (non-block) nav in the mockup's markup has no overlay to fall back
	 * on, so it is hidden as the mockup does. */
	nav.nav-pill-bar:not(.wp-block-navigation) {
		display: none;
	}

	/* Overlay surface. Core repeats class names up to four times inside its
	 * is-menu-open rules, so these two declarations are the only !important
	 * outside the visually-hidden helper and the print block - out-specifying
	 * them would need an unreadable selector. */
	.nav-pill-bar .wp-block-navigation__responsive-container.is-menu-open,
	.haniart-nav .wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--bg-canvas) !important;
		color: var(--ink-primary) !important;
		padding: clamp(2rem, 6vw, 3.5rem);
	}

	.nav-pill-bar .is-menu-open .wp-block-navigation__container,
	.haniart-nav .is-menu-open .wp-block-navigation__container {
		gap: 0.5rem;
	}

	:root .is-menu-open .wp-block-navigation-item__content {
		font-size: 1.15rem;
		padding: 0.75rem 1.25rem;
	}

	/* The hamburger is an icon-only control, so it needs the 44px floor in both
	 * directions at every width it appears at - core sizes it from its SVG
	 * alone. Below 900px the same floor arrives via --control-min; between 901px
	 * and 1023px this is the only thing granting it. */
	:root .nav-pill-bar .wp-block-navigation__responsive-container-open,
	:root .nav-pill-bar .wp-block-navigation__responsive-container-close,
	:root .haniart-nav .wp-block-navigation__responsive-container-open,
	:root .haniart-nav .wp-block-navigation__responsive-container-close {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
}


/* =============================================================================
 * 18. BREAKPOINT 900px
 * Single column. Four changes from the mockup, all deliberate:
 *  - the navigation is not deleted; its pill chrome is removed and the overlay
 *    toggle revealed in section 17b, which now starts at 1024px rather than
 *    here,
 *  - the page is allowed to scroll (the shell lock in section 5 stops at 901px),
 *    because the mockup sets `height: auto` here while still clipping overflow,
 *    which makes anything past the fold permanently unreachable,
 *  - THE PHOTO STAGE STAYS VISIBLE (see the long note at the rule itself),
 *  - every control takes a 44px floor (WCAG 2.2 SC 2.5.5). The mockup has no
 *    minimum anywhere; measured here before the floor: .cat-pill 34.9px,
 *    .cta-pill 34.2px, .haniart-post-tags a 30.2px, footer links ~14.6px.
 * ========================================================================== */

@media (max-width: 900px) {
	body.home .wp-site-blocks,
	body.haniart-single-screen .wp-site-blocks,
	.desktop-viewport {
		padding: 1rem 1.25rem;
		justify-content: flex-start;
		gap: 1.5rem;
	}

	/* The pill bar's chrome and the hamburger now change over at 1024px, not
	 * here - see section 17b. Everything below is unchanged. */

	:root .hero-workspace,
	:root .haniart-hero,
	body .hero-workspace.hero-workspace,
	body .haniart-hero.haniart-hero {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		height: auto;
		flex: 0 1 auto;
	}

	.hero-content,
	.haniart-hero__content {
		max-width: 100%;
	}

	:root .hero-headline,
	:root .haniart-hero__headline {
		font-size: 2.4rem;
	}

	:root .hero-subtext,
	:root .haniart-hero__intro {
		font-size: 0.88rem;
		margin-bottom: 1.2rem;
	}

	/* THE STAGE STAYS. The mockup hides it below 900px ("keep single screen
	 * clean on tablets"); that was reversed deliberately, for three reasons:
	 *
	 *  1. assets/js/hero.js promotes the category pills to role="tab" inside a
	 *     role="tablist" and points aria-controls at this panel. A tabpanel that
	 *     is display:none while its tabs stay operable is an ARIA 1.2 violation
	 *     and reads to a screen-reader user as three tabs controlling nothing.
	 *  2. Hidden, the three pills are three interactive controls with zero
	 *     observable effect for every mobile visitor - the single largest group.
	 *  3. It deletes the LCP image on exactly the devices where the photograph
	 *     is the whole proposition.
	 *
	 * hero.js re-checks the panel's real rendered visibility and drops the tab
	 * roles for plain aria-pressed buttons if a future rule hides it again, so
	 * the semantics stay coherent either way - but the design should not need
	 * that fallback, and here it does not. */
	.showcase-stage,
	.haniart-hero__stage {
		display: flex;
		height: auto;
	}

	/* Portrait crop, full width of the single column. */
	:root .showcase-card,
	:root .haniart-hero__card {
		max-width: 100%;
		height: auto;
		aspect-ratio: 4 / 5;
	}

	/* The chips sit at left:-24px / right:-24px, outside the card. At this width
	 * the card is the viewport, so they would clip. They are aria-hidden
	 * decoration and nothing else depends on them. */
	.floating-chip {
		display: none;
	}

	/* ---------------------------------------------------------------------
	 * TOUCH TARGETS - WCAG 2.2 SC 2.5.5 (44px).
	 * Raised from the 24px floor in section 4b. Every control here is already
	 * inline-flex + align-items:center, so the extra height is distributed
	 * around an unchanged label: the pill keeps its shape and simply gets
	 * taller. Measured before this rule, at this breakpoint: .cat-pill 34.9px,
	 * .cta-pill 34.2px (35.0px above 560px), .haniart-post-tags a 30.2px,
	 * footer links ~14.6px. Nothing on the desktop layout is touched - this
	 * block only exists below 900px.
	 * ------------------------------------------------------------------- */
	:root .cat-pill,
	:root .haniart-cat,
	:root .cta-pill,
	:root .btn-primary,
	:root .btn-secondary,
	:root .is-style-haniart-cta .wp-block-button__link,
	:root .is-style-haniart-primary .wp-block-button__link,
	:root .is-style-haniart-secondary .wp-block-button__link,
	:root .is-style-haniart-dot .wp-block-button__link,
	:root .haniart-dot-pill .wp-block-button__link,
	:root .status-pill,
	:root .haniart-cta-pill .wp-block-button__link,
	:root .haniart-cta-pill--ghost .wp-block-button__link,
	:root .hero-more__link,
	:root .haniart-search .wp-block-search__button {
		min-height: var(--control-min);
	}

	/* Navigation links are `display: block` at desktop, so a bare min-height
	   would top-align the label inside a 44px box. Centre them instead. */
	:root .nav-link,
	:root .nav-pill-bar .wp-block-navigation-item__content,
	:root .haniart-nav .wp-block-navigation-item__content,
	:root .is-menu-open .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		min-height: var(--control-min);
	}

	/* Icon-only controls need the width too, or a 44px-tall 20px-wide target
	 * still fails. Core sizes the hamburger from its SVG alone. */
	:root .nav-pill-bar .wp-block-navigation__responsive-container-open,
	:root .nav-pill-bar .wp-block-navigation__responsive-container-close,
	:root .haniart-nav .wp-block-navigation__responsive-container-open,
	:root .haniart-nav .wp-block-navigation__responsive-container-close {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: var(--control-min);
		min-height: var(--control-min);
	}

	/* Text links are laid out in a line box, so they take the floor as padding
	 * rather than min-height. The footer is flex-column and centred at this
	 * width, so the extra height simply stacks. */
	:root .site-footer a,
	:root .haniart-footer a,
	:root .haniart-post-tags a,
	:root .haniart-pagination a,
	:root .haniart-post-nav a {
		display: inline-flex;
		align-items: center;
		min-height: var(--control-min);
		padding-block: 0.7rem;
	}

	/* NOT .haniart-prose a. A link inside a sentence is covered by the "Inline"
	 * exception to SC 2.5.8 / 2.5.5, and forcing it to 44px would wreck the
	 * line box of every paragraph it appears in. Its non-colour cue (the teal
	 * underline, section 16) is what carries the requirement there. */

	:root .site-footer,
	:root .haniart-footer {
		height: auto;
		min-height: 0;        /* stacked column; sizes from its own content */
		font-size: 0.72rem;   /* was 0.65rem = 10.4px; too small for contact data */
		flex-direction: column;
		gap: 0.25rem;
		text-align: center;
		justify-content: center;
	}

	.footer-center {
		display: none;
	}
}

/* Phones: the header CTA label would crowd the logo. */
@media (max-width: 560px) {
	.brand-badge,
	.haniart-brand__badge {
		display: none;
	}

	/* The label is tightened so it stops crowding the logo, but the pill keeps
	 * the 44px floor inherited from the 900px block - padding shrinks, the hit
	 * area does not. Measured without the floor: 34.2px. */
	:root .cta-pill,
	:root .is-style-haniart-cta .wp-block-button__link,
	:root .haniart-cta-pill .wp-block-button__link {
		padding: 0.6rem 1.05rem;
		font-size: 0.78rem;
		min-height: var(--control-min);
	}

	.action-row,
	.haniart-actions {
		gap: 0.75rem;
	}
}


/* =============================================================================
 * 19. XL - very wide, or tall and fairly wide
 * ========================================================================== */

@media (min-width: 1800px), (min-height: 1050px) and (min-width: 1400px) {
	.site-header,
	.haniart-header,
	.hero-workspace,
	.haniart-hero,
	.site-footer,
	.haniart-footer {
		max-width: 1680px;
	}

	:root .hero-headline,
	:root .haniart-hero__headline {
		font-size: clamp(3.2rem, 4.5vw, 4.8rem);
	}

	:root .hero-subtext,
	:root .haniart-hero__intro {
		font-size: 1.15rem;
		max-width: 620px;
	}

	.cat-pill,
	.haniart-cat {
		padding: 0.65rem 1.3rem;
		font-size: 0.88rem;
	}

	:root .showcase-card,
	:root .haniart-hero__card {
		max-width: 680px;
		height: min(74vh, 700px);
	}
}


/* =============================================================================
 * 20. FOCUS RING - FINAL PASS
 * Section 4 establishes the ring. Every component that sets its own box-shadow
 * does so LATER in this file, and at the same specificity, so source order would
 * strip the teal halo back off (the ink outline always survives, so the page is
 * never inaccessible - but the ring reads as half-finished).
 *
 * Restated here, last, with the component's own soft-UI shadow kept alongside
 * the halo so a focused pill does not visibly lose its lift. Verified in-browser
 * on .cat-pill (both states) and on core button blocks.
 *
 * Reminder: .cat-pill carries `transition: all`, and outline-width/-color are
 * animatable, so the ring fades in over ~220ms. That is intended; do not read a
 * mid-transition getComputedStyle value and conclude the rule is not applying.
 * ========================================================================== */

:root .nav-pill-bar .wp-block-navigation-item__content:focus-visible,
:root .haniart-nav .wp-block-navigation-item__content:focus-visible,
:root .nav-link:focus-visible,
:root .brand-link:focus-visible,
:root .site-footer a:focus-visible,
:root .haniart-footer a:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--focus-ring-halo);
}

/* White pills - ink core reads at 15.56:1 against the canvas the ring is drawn
 * on, 17.78:1 against a white surface. */
:root .cat-pill:focus-visible,
:root .haniart-cat:focus-visible,
:root .btn-secondary:focus-visible,
:root .is-style-haniart-secondary .wp-block-button__link:focus-visible,
:root .is-style-haniart-dot .wp-block-button__link:focus-visible,
:root .haniart-dot-pill .wp-block-button__link:focus-visible,
:root .status-pill:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: var(--shadow-pill), 0 0 0 5px var(--focus-ring-halo);
}

/* Dark pills - SAME ink core. The 2px offset means the ring is painted on the
 * page background, not on the pill, so there is nothing for an ink ring to
 * disappear into and a white ring would be the one that vanished (1.13:1 on
 * canvas). The component's own drop shadow is restated alongside the halo so a
 * focused pill does not visibly lose its lift. */
:root .cat-pill.is-active:focus-visible,
:root .haniart-cat.is-active:focus-visible,
:root .cat-pill[aria-pressed="true"]:focus-visible,
:root .haniart-cat[aria-pressed="true"]:focus-visible,
:root .cat-pill[aria-selected="true"]:focus-visible,
:root .haniart-cat[aria-selected="true"]:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: 0 10px 24px -6px rgba(24, 29, 36, 0.3), 0 0 0 5px var(--focus-ring-halo);
}

:root .btn-primary:focus-visible,
:root .is-style-haniart-primary .wp-block-button__link:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: 0 14px 30px -8px rgba(24, 29, 36, 0.35), 0 0 0 5px var(--focus-ring-halo);
}

:root .cta-pill:focus-visible,
:root .is-style-haniart-cta .wp-block-button__link:focus-visible,
:root .haniart-cta-pill .wp-block-button__link:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
	box-shadow: 0 10px 22px -6px rgba(24, 29, 36, 0.35), 0 0 0 5px var(--focus-ring-halo);
}

/* The stage is a tabpanel with tabindex="0" (hero.js). Give it a ring of its
 * own so a keyboard user can see where focus went after leaving the tablist. */
:root .photo-wrapper:focus-visible,
:root .haniart-hero__frame:focus-visible,
:root [data-haniart-stage-panel]:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 4px;
}


/* =============================================================================
 * 21. REDUCED MOTION
 * Scoped to this theme's own components rather than `*`, and using the
 * near-zero-duration form so animations complete instead of never starting.
 * Core UI (admin bar, block editor) is left alone.
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.site-header *,
	.haniart-header *,
	.hero-workspace *,
	.haniart-hero *,
	.site-footer *,
	.haniart-footer *,
	.floating-chip,
	.showcase-card,
	.haniart-hero__card,
	.cat-pill,
	.haniart-cat,
	.btn-primary,
	.btn-secondary,
	.cta-pill,
	.nav-link,
	.brand-link,
	/* Interior pages. These were outside the original list and kept animating
	 * for a visitor who had asked the OS for less motion. */
	.haniart-card,
	.haniart-card__title a,
	.haniart-cta-pill .wp-block-button__link,
	.haniart-cta-pill--ghost .wp-block-button__link,
	.is-style-haniart-dot .wp-block-button__link,
	.haniart-dot-pill .wp-block-button__link,
	.status-pill,
	.haniart-search .wp-block-search__button,
	.haniart-prose a,
	.haniart-post-tags a,
	.haniart-pagination a,
	.haniart-post-nav a,
	.haniart-hero__photo,
	.skip-link {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		animation-delay: 0ms;
		transition-duration: 0.01ms;
		transition-delay: 0ms;
		scroll-behavior: auto;
	}

	/* Hover lifts and the photo zoom are motion, not decoration - hold still. */
	.cat-pill:hover,
	.haniart-cat:hover,
	.btn-primary:hover,
	.btn-secondary:hover,
	.cta-pill:hover,
	.showcase-card:hover .floating-chip,
	.haniart-hero__card:hover .floating-chip,
	.showcase-card:hover .photo-wrapper img,
	.haniart-hero__card:hover .haniart-hero__photo,
	.btn-primary:hover .btn-arrow,
	.is-style-haniart-primary .wp-block-button__link:hover::after,
	.haniart-card:hover,
	.haniart-cta-pill--ghost .wp-block-button__link:hover,
	.haniart-cta-pill .wp-block-button__link:hover,
	.is-style-haniart-dot .wp-block-button__link:hover,
	.haniart-dot-pill .wp-block-button__link:hover,
	.status-pill:hover {
		transform: none;
	}

	.status-pulse {
		animation: none;
		opacity: 0.35;
	}
}


/* =============================================================================
 * 22. PRINT
 * The mockup has no print styles at all, and its viewport lock would print one
 * clipped screen. This releases the lock, drops the soft-UI shadows (which cost
 * toner and print as grey mud), and exposes the contact URLs.
 * ========================================================================== */

@media print {
	body,
	body.home,
	body.haniart-single-screen {
		overflow: visible !important;
		background: #ffffff !important;
		color: #000000;
		font-size: 11pt;
	}

	body.home .wp-site-blocks,
	body.haniart-single-screen .wp-site-blocks,
	.desktop-viewport {
		display: block;
		min-height: 0;
		height: auto;
		padding: 0;
		background: #ffffff;
		background-image: none;
	}

	/* Interactive chrome has no meaning on paper. */
	.nav-pill-bar,
	.haniart-nav,
	.header-cta-group,
	.haniart-cta,
	.cta-pill,
	.category-pills,
	.haniart-cats,
	.action-row,
	.haniart-actions,
	.floating-chip,
	.subtle-glare,
	.skip-link,
	.screen-reader-text,
	.haniart-sr-only,
	#wpadminbar {
		display: none !important;
	}

	:root .site-header,
	:root .haniart-header {
		display: block;
		height: auto;
		min-height: 0;
		margin-bottom: 1.5rem;
	}

	:root .hero-workspace,
	:root .haniart-hero,
	body .hero-workspace.hero-workspace,
	body .haniart-hero.haniart-hero {
		display: block;
		height: auto;
		max-width: none;
	}

	.hero-content,
	.haniart-hero__content {
		max-width: none;
	}

	:root .hero-headline,
	:root .haniart-hero__headline {
		font-size: 26pt;
		color: #000000;
	}

	/* Gradient text does not survive printing - restore solid ink. */
	.gradient-text,
	.is-style-haniart-gradient {
		background: none;
		-webkit-text-fill-color: #000000;
		color: #000000;
	}

	:root .hero-subtext,
	:root .haniart-hero__intro,
	.trust-text {
		color: #000000;
		font-size: 11pt;
	}

	.showcase-stage,
	.haniart-hero__stage {
		display: block;
		height: auto;
		page-break-inside: avoid;
		break-inside: avoid;
	}

	:root .showcase-card,
	:root .haniart-hero__card {
		max-width: 100%;
		height: auto;
		padding: 0;
		border: 1px solid #cccccc;
		box-shadow: none;
		page-break-inside: avoid;
		break-inside: avoid;
	}

	.photo-wrapper,
	.haniart-hero__frame {
		height: auto;
		aspect-ratio: 4 / 5;
	}

	.pill-tag,
	.haniart-eyebrow,
	.brand-badge,
	.haniart-brand__badge,
	.haniart-panel {
		box-shadow: none;
		border-color: #cccccc;
	}

	:root .site-footer,
	:root .haniart-footer {
		display: block;
		height: auto;
		min-height: 0;
		margin-top: 1.5rem;
		padding-top: 0.75rem;
		border-top: 1px solid #cccccc;
		color: #000000;
		font-size: 9pt;
		text-align: left;
	}

	.footer-center {
		display: block;
	}

	/* Print the destination of the contact links; skip everything else so the
	 * page is not littered with URLs. */
	.site-footer a[href^="mailto:"]::after,
	.site-footer a[href^="tel:"]::after,
	.haniart-footer a[href^="mailto:"]::after,
	.haniart-footer a[href^="tel:"]::after {
		content: " (" attr(href) ")";
		font-size: 8pt;
		color: #444444;
	}

	.trust-stars {
		color: #000000;
	}

	h1, h2, h3 {
		page-break-after: avoid;
		break-after: avoid;
	}
}


/* =============================================================================
 * 18. CONTENT-PAGE PATTERNS
 * The four blocks the owner can insert herself (Design -> Patterns -> HaniArt):
 * Vorstellung mit Portrait, Fotostreifen, Drei Fakten, Terminhinweis.
 *
 * Everything here is core-block markup wearing theme classes. That is the point:
 * "Ueber mich" and "Mein Studio" are prose pages, and prose belongs in the
 * normal editor where the owner can already work - not in a bespoke block that
 * needs a developer every time a sentence changes.
 * ========================================================================== */

/* ---- Vorstellung mit Portrait ---- */

.haniart-introduce .wp-block-media-text__media img {
	border-radius: var(--radius-photo);
	box-shadow: var(--shadow-card);
}

.haniart-introduce .wp-block-media-text__content {
	padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.haniart-lead {
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
	color: var(--ink-secondary);
	text-wrap: pretty;
}

/* media-text stacks below 600px on its own; at that point the side padding is
   what stops the text touching the card edge. */
@media (max-width: 600px) {
	.haniart-introduce .wp-block-media-text__content {
		padding-inline: 0;
		padding-block-start: 1.5rem;
	}
}

/* ---- Fotostreifen ---- */

/*
 * A MOVING STRIP, not a grid and not a slideshow.
 *
 * The thirteen "Mein Studio" photographs are EIGHT LANDSCAPE (1.50) and FIVE
 * PORTRAIT (0.67). The grid this replaces cropped every one of them to 4:3,
 * which cut roughly half of each portrait away, and stacked them 1,488px tall -
 * five screens of studio shots in the middle of a short page.
 *
 * A strip of FIXED HEIGHT and natural width fixes both at once: a landscape
 * photograph is wide, a portrait is narrow, and nothing is cropped at all.
 *
 * WITHOUT JAVASCRIPT THIS IS ALREADY FINISHED. What is below renders a
 * horizontal, swipeable band containing every photograph. assets/js/strip.js
 * only upgrades it to a moving one by cloning the items and setting two custom
 * properties - the objection recorded against the carousel this page used to
 * have was that it "needs JavaScript to show anything at all", and this does
 * not.
 *
 * The animation is on a child that the script adds `.is-moving` to, so a page
 * where the script never runs simply never animates.
 *
 * ---------------------------------------------------------------------------
 * THE WINDOW MUST NOT TRAVEL WITH THE FILM. This is the bug the first version
 * shipped with, and it is worth spelling out because it looks like it works.
 *
 * One element cannot be both the clipping window and the thing that slides. The
 * gallery was `overflow: hidden` AND the target of the transform, so the box
 * doing the clipping moved along with the photographs inside it: the same first
 * 1,440px stayed on screen while the whole band drifted off the left of the
 * page. Measured: the track's own left edge had reached -314px. What it looked
 * like from outside was photographs going missing, photographs cut off at the
 * edge, and a loop that never repeated - all one fault.
 *
 * So there are now two elements. The gallery is the window and never moves;
 * .haniart-strip__track, which the script wraps around the items, is the film.
 * --hani-strip-gap is shared by both because the script measures the track's
 * own column-gap to decide the loop distance, and a mismatch there is a seam.
 * ---------------------------------------------------------------------------
 */
.haniart-strip {
	--hani-strip-gap: clamp(0.5rem, 1vw, 0.9rem);
}

.haniart-strip__gallery.wp-block-gallery {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--hani-strip-gap);
	margin: 0;
	padding-block: 2px;

	/* Hand-scrollable when it is not moving, and the only affordance a
	 * no-JavaScript visitor gets. `overscroll-behavior-x` stops a swipe past
	 * the end from navigating back a page on a trackpad. */
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

/*
 * While it is moving the strip must not also be a scroll container: a scrollbar
 * under a self-animating band is both ugly and a fight between the two. The
 * script only ever adds this class after it has decided to animate.
 */
.haniart-strip__gallery.wp-block-gallery.is-moving {
	display: block;
	overflow: hidden;
}

/*
 * The film. `display: contents` until it is actually moving, so that a track the
 * script built and then decided not to animate - a strip that already fits, or a
 * visitor who asked for less motion - vanishes from the box tree and leaves the
 * figures as direct flex children of the static, swipeable gallery.
 *
 * `width: max-content` is what lets it be wider than its window once it is real:
 * sized by its own contents rather than by the gallery it sits in.
 */
.haniart-strip .haniart-strip__track {
	display: contents;
}

.haniart-strip .haniart-strip__gallery.is-moving .haniart-strip__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--hani-strip-gap);
	width: max-content;
	animation: haniart-strip-drift var(--hani-strip-duration, 60s) linear infinite;
	will-change: transform;
}

@keyframes haniart-strip-drift {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(var(--hani-strip-distance, -50%), 0, 0); }
}

/* Stop while it is being looked at, and while the tab is in the background. */
/*
 * THE PAUSE RULE HAS TO OUT-SPECIFY THE ANIMATING RULE, and for two compounding
 * reasons. The rule above sets the `animation` SHORTHAND, and a shorthand resets
 * every longhand it covers - including animation-play-state, back to `running`.
 * So this is not "two rules setting different properties", it is a straight
 * fight over one property, and the selector has to win it.
 *
 * It did not. Moving the animation onto the track gave the animating selector
 * .haniart-strip .haniart-strip__gallery.is-moving .haniart-strip__track = (0,4,0)
 * while the pause selector stayed at (0,2,0), so the strip carried on drifting
 * under the cursor. Measured: animation-play-state computed `running` with the
 * pause rule applied. Matching the animating selector and adding :hover takes
 * this to (0,5,0).
 */
.haniart-strip:hover .haniart-strip__gallery.is-moving .haniart-strip__track,
.haniart-strip:focus-within .haniart-strip__gallery.is-moving .haniart-strip__track {
	animation-play-state: paused;
}

/*
 * Each photograph keeps its own proportions at a common height. `flex: 0 0 auto`
 * is what stops flex from equalising them back into a grid, and the width comes
 * from the image itself.
 *
 * The `:not(#individual-image)` is not decoration. core/gallery ships
 *
 *   .wp-block-gallery.has-nested-images.columns-3
 *     figure.wp-block-image:not(#individual-image) { width: calc(33.33% - …) }
 *
 * and the id inside :not() counts toward specificity, scoring (1,3,1). Matching
 * it needs the same trick plus a class. Overriding with !important would have
 * been shorter and would have made every later rule here unoverridable in turn.
 */
.haniart-strip .haniart-strip__gallery.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
	/* Smaller than the 300px this shipped at: at the foot of a page the strip is
	 * a band of impressions, not the subject. Measured at 1221px: a landscape
	 * shot is 311px wide rather than 450, so four are in view instead of three,
	 * and the band is 212px tall rather than 297. */
	height: clamp(150px, 17vw, 210px);
	margin: 0;
	aspect-ratio: auto;
}

.haniart-strip__gallery.wp-block-gallery figure.wp-block-image img {
	width: auto;
	height: 100%;
	max-width: none;
	border-radius: var(--radius-photo);
	object-fit: cover;
}

/*
 * A soft edge at both ends, so the band reads as continuing rather than being
 * chopped off by the viewport. Only while moving: on the static strip the cut
 * edge is the affordance that says "this scrolls".
 */
@supports (mask-image: linear-gradient(#000, #000)) {

	.haniart-strip:has(.is-moving) {
		mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 4%,
			#000 96%,
			transparent 100%
		);
	}
}

.haniart-strip__note {
	margin-block-start: 0.9rem;
	font-size: 0.8rem;
	color: var(--ink-muted);
	text-align: center;
}

/*
 * Somebody who has asked their system for less motion gets the static strip.
 * The script checks the same query and never adds `.is-moving`; this is the
 * belt to its braces, for a strip that was already moving when the setting
 * changed.
 */
@media (prefers-reduced-motion: reduce) {

	.haniart-strip__gallery.wp-block-gallery.is-moving {
		display: flex;
		overflow-x: auto;
	}

	.haniart-strip .haniart-strip__gallery.is-moving .haniart-strip__track {
		display: contents;
		animation: none;
	}
}

/* ---- Drei Fakten ---- */

.haniart-facts.wp-block-columns {
	gap: clamp(0.9rem, 1.8vw, 1.6rem);
}

.haniart-fact {
	padding: clamp(1.1rem, 2.2vw, 1.6rem);
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 20px;
}

.haniart-fact__value {
	margin: 0 0 0.35rem;
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink-primary);
}

.haniart-fact__label {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--ink-secondary);
	text-wrap: pretty;
}

/* Columns collapse at 781px in core. Below that the cards want to breathe. */
@media (max-width: 781px) {
	.haniart-facts.wp-block-columns { gap: 0.8rem; }
}

/* ---- Terminhinweis zum Schluss ---- */

.haniart-cta-band {
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-card);
	background:
		radial-gradient(circle at 15% 20%, rgba(0, 198, 255, 0.05) 0%, transparent 48%),
		radial-gradient(circle at 85% 80%, rgba(36, 81, 94, 0.06) 0%, transparent 48%),
		var(--surface-white);
}

.haniart-cta-band__title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.15;
}

.haniart-cta-band__text {
	margin: 0 0 1.5rem;
	color: var(--ink-secondary);
	text-wrap: pretty;
}

@media print {
	.haniart-cta-band { background: none; }
}


/* =============================================================================
 * 23. PERSIAN (FA): TEXT RIGHT TO LEFT AND A PERSIAN FONT, 9 Nov 2026
 *
 * Owner's rule: switching to Persian must not move any element on any page.
 * Only the text changes - translated, reading right to left, in a Persian
 * font. Nothing here touches layout, position or order, and <html> keeps its
 * left-to-right direction.
 *
 * Everything hangs on html.translated-rtl, the class Google's translator puts
 * on the page once it has translated it into Persian. German and English pages
 * never carry it.
 * ========================================================================== */

/* Vazirmatn (variable, 400-800), Persian/Arabic letters only. SELF-HOSTED for
 * the same GDPR reason as Plus Jakarta Sans (see fonts.css); fetched from
 * Google Fonts 2026-11-09, SIL Open Font License 1.1. The unicode-range means a
 * browser only downloads the file when a page actually shows Persian letters,
 * so German and English visitors never load it. */
@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(../fonts/vazirmatn-arabic.woff2) format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Persian letters in Vazirmatn; any Latin text left on the page (names,
 * prices, "FA") still in Plus Jakarta Sans. Set on html AND body because
 * WordPress prints its preset variables on one or the other depending on
 * version. */
html.translated-rtl,
html.translated-rtl body {
	--font-sans: "Vazirmatn", "Plus Jakarta Sans", Tahoma, sans-serif;
	--wp--preset--font-family--jakarta: "Vazirmatn", "Plus Jakarta Sans", Tahoma, sans-serif;
}

/* Letter-spacing pulls Persian letters apart: they are joined script. */
html.translated-rtl body,
html.translated-rtl body * {
	letter-spacing: 0 !important;
}

/* The Latin display type is set tight (1.05 - 1.2). Persian letters reach
 * further above and below the line and collide at that spacing. !important
 * because the headings carry their line-height on many differently weighted
 * selectors across the page stylesheets. */
html.translated-rtl :is(h1, h2, h3, h4, h5, h6) {
	line-height: 1.4 !important;
}

/* Text blocks read right to left, so their lines start on the right inside
 * their own box. The box itself stays where it is; centred text stays centred. */
html.translated-rtl :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, label, dt, dd, figcaption, td, th) {
	direction: rtl;
}

/* All other translated text - buttons, pills, menu links, chips, prices -
 * reads right to left within itself while its container keeps its direction,
 * so a dot or arrow inside a button stays on its side. Google wraps every
 * translated run in <font> elements; isolating those is enough. */
html.translated-rtl font {
	direction: rtl;
	unicode-bidi: isolate;
}


/* =============================================================================
 * 24. "LEISTUNGEN" BAND UNDER THE HERO, 9 Nov 2026 (inc/home-services.php)
 *
 * The front page used to be a single screen. The band below the hero puts the
 * services back on the page for search engines and visitors alike; the hero
 * still fills the first screen on desktop, the band and the footer follow on
 * scroll.
 * ========================================================================== */

.home-services {
	width: 100%;
	max-width: var(--band-max);
	margin-inline: auto;
	padding-block: clamp(3rem, 7vh, 5.5rem) clamp(2rem, 5vh, 3.5rem);
}

.home-services__head {
	max-width: 46rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.home-services__eyebrow {
	margin: 0 0 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-teal);
}

:root .home-services__title {
	margin: 0 0 0.9rem;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ink-primary);
}

.home-services__intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink-secondary);
	text-wrap: pretty;
}

.home-services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-services__item {
	display: flex;
	margin: 0;
}

:root .home-services__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 1.3rem 1.35rem 1.2rem;
	color: inherit;
	text-decoration: none;
	background: var(--surface-white);
	border: 1px solid var(--border-subtle);
	border-radius: 24px;
	box-shadow: var(--shadow-pill);
	transition:
		transform 0.22s var(--ease-expo),
		box-shadow 0.22s var(--ease-expo);
}

:root .home-services__card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-chip);
}

:root .home-services__card:focus-visible {
	outline: 2px solid var(--focus-ring-core);
	outline-offset: 2px;
}

:root .home-services__name {
	margin: 0 0 0.45rem;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink-primary);
}

.home-services__text {
	flex: 1 1 auto;
	margin: 0 0 1rem;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--ink-secondary);
}

.home-services__price {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--accent-teal);
}

.home-services__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 1120px) {
	.home-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.home-services__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Desktop, where the front page used to lock to one screen: the hero keeps
 * the whole first screen, so the page still opens exactly as designed. */
@media (min-width: 901px) and (min-height: 620px) and (min-height: 38.75em) {
	body.home .haniart-stage > .haniart-hero.haniart-hero:has(+ .home-services) {
		min-height: calc(100svh - var(--header-h) - 2 * var(--gutter-y));
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .home-services__card:hover {
		transform: none;
	}
}


/* =============================================================================
 * 25. PHONES AND TABLETS, 9 Nov 2026
 * a) inner pages: the header gets the same side margin as on the home page
 *    (it sat flush against the window edge at every width),
 * b) home hero below 900px: the photo comes right after the headline and the
 *    category buttons sit in one swipeable row directly under it, so a tap
 *    visibly changes the photo (they used to switch a photo ~700px further
 *    down, out of sight),
 * c) below 600px: header on one row (logo, language, menu); "Online-Termin"
 *    moves into a bar fixed to the bottom of the screen with a call button
 *    (haniart_mobile_bar_html() in inc/blocks.php),
 * d) below 600px: the Complianz cookie banner as a compact bottom sheet - same
 *    text, same buttons, about half the height.
 * ========================================================================== */

/* ---- a) inner pages: header side margin ---- */

body:not(.home) .site-header,
body:not(.home) .haniart-header {
	padding-inline:
		var(--wp--style--root--padding-left, var(--gutter-x))
		var(--wp--style--root--padding-right, var(--gutter-x));
}

/* ---- b) home hero: photo under the headline ---- */

@media (max-width: 900px) {
	/* A column of its own children: the text column is opened up
	 * (display: contents) so its parts and the photo share one order. */
	body .haniart-hero.haniart-hero {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.haniart-hero__content {
		display: contents;
	}

	.haniart-hero__eyebrow   { order: 1; }
	.haniart-hero__headline  { order: 2; }
	.haniart-hero__stage     { order: 3; margin-bottom: 0.9rem; }
	.haniart-hero__categories { order: 4; }
	.haniart-hero__intro     { order: 5; }
	.haniart-hero__live      { order: 6; }
	.haniart-hero__actions   { order: 7; }
	.haniart-hero__trust     { order: 8; }

	/* Portrait crop as before, but never so tall that the buttons under it
	 * drop out of the first screen: header, eyebrow, headline, button row
	 * and the booking bar take about 350px. */
	:root .showcase-card,
	:root .haniart-hero__card {
		max-height: max(300px, calc(100vh - 350px));
		max-height: max(300px, calc(100svh - 350px));
	}

	/* One row that scrolls sideways, edge to edge; the first button lines up
	 * with the text. Padding leaves room for the pills' shadow. */
	:root .haniart-hero__categories {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 1.25rem;
		scrollbar-width: none;
		margin: 0 -1.25rem 1.25rem;
		padding: 0.25rem 1.25rem 0.75rem;
	}

	.haniart-hero__categories::-webkit-scrollbar {
		display: none;
	}

	:root .haniart-hero__categories .cat-pill {
		flex-shrink: 0;
		white-space: nowrap;
		scroll-snap-align: start;
	}

	/* No lift on touch: it would be clipped by the scrolling row. */
	:root .haniart-hero__categories .cat-pill:hover {
		transform: none;
	}
}

/* Phones: the two buttons side by side, both in the hero ("Termin
 * vereinbaren" + "Leistungen & Preise") and at the end of the Leistungen band
 * ("Termin vereinbaren" + "Alle Preise ansehen") (operator, 9 Nov 2026).
 * Tighter padding and type so both fit one row; the row still wraps if a
 * translation is too long, rather than running off the screen. Below 380px the
 * arrow goes to make room. */
@media (max-width: 600px) {
	body .haniart-hero__actions.haniart-hero__actions,
	body .home-services__actions.home-services__actions {
		gap: 0.5rem;
	}

	:root .haniart-hero__actions .btn-primary,
	:root .haniart-hero__actions .btn-secondary,
	:root .home-services__actions .btn-primary,
	:root .home-services__actions .btn-secondary {
		flex: 1 1 auto;
		justify-content: center;
		gap: 0.4rem;
		padding-inline: 0.8rem;
		font-size: 0.8rem;
		white-space: nowrap;
	}
}

@media (max-width: 380px) {
	:root .haniart-hero__actions .btn-primary,
	:root .haniart-hero__actions .btn-secondary,
	:root .home-services__actions .btn-primary,
	:root .home-services__actions .btn-secondary {
		padding-inline: 0.6rem;
		font-size: 0.76rem;
	}

	:root .haniart-hero__actions .btn-arrow,
	:root .home-services__actions .btn-arrow {
		display: none;
	}
}

/* ---- e) phones: footer in tidy centred rows ----
 * The "/" separators only make sense on one desktop line; wrapped on a phone
 * they dangled at line ends. Each group becomes a centred row instead, the
 * type goes up from 11.5px, and inner pages get the content's side margin
 * (the links touched the screen edge). Tap heights (44px) unchanged. */
@media (max-width: 600px) {
	:root .site-footer,
	:root .haniart-footer {
		font-size: 0.8rem;
		gap: 0.15rem;
	}

	body:not(.home) .haniart-footer {
		padding-inline:
			var(--wp--style--root--padding-left, 1.5rem)
			var(--wp--style--root--padding-right, 1.5rem);
	}

	:root .haniart-footer .footer-sep {
		display: none;
	}

	:root .haniart-footer .haniart-footer__left,
	:root .haniart-footer .haniart-footer__right {
		justify-content: center;
		column-gap: 1.1rem;
		row-gap: 0;
	}

	:root .haniart-footer .footer-social {
		gap: 0.25rem;
	}
}

/* ---- c) one-row header + booking bar ---- */

.haniart-mobile-bar {
	display: none;
}

@media (max-width: 600px) {
	:root .haniart-header {
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	:root .haniart-header > .haniart-cta {
		order: 2;
		margin-left: auto;
	}

	:root .haniart-header > .haniart-nav {
		order: 3;
	}

	:root .haniart-header .haniart-cta .cta-pill {
		display: none;
	}

	.haniart-mobile-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 90;
		display: flex;
		gap: 0.5rem;
		padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.94);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border-top: 1px solid var(--border-subtle);
		box-shadow: 0 -10px 24px -14px rgba(20, 32, 54, 0.22);
	}

	:root .haniart-mobile-bar .cta-pill {
		flex: 1 1 auto;
		justify-content: center;
		min-height: 48px;
		font-size: 0.9rem;
	}

	.haniart-mobile-bar__call {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: 48px;
		padding: 0 1.1rem;
		background: var(--surface-white);
		border: 1px solid var(--border-subtle);
		border-radius: var(--radius-pill);
		box-shadow: var(--shadow-pill);
		font-family: var(--font-sans);
		font-size: 0.9rem;
		font-weight: 600;
		line-height: 1.2;
		color: var(--ink-primary);
		text-decoration: none;
		white-space: nowrap;
	}

	/* Room under the footer, so the bar never covers its last line. */
	body:has(.haniart-mobile-bar) {
		padding-bottom: calc(4.3rem + env(safe-area-inset-bottom, 0px));
	}

	/* Out of the way while someone types (the keyboard is up). */
	body:has(:is(input, textarea, select):focus) .haniart-mobile-bar {
		display: none;
	}

	/* ---- d) cookie banner: compact bottom sheet ---- */

	#cmplz-cookiebanner-container .cmplz-cookiebanner {
		row-gap: 0.55rem;
		padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
		border-radius: 16px 16px 0 0;
	}

	/* About four lines show; the rest of the text scrolls inside. */
	#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message {
		max-height: 6.4em;
		overflow-y: auto;
		margin-bottom: 0;
	}

	/* Akzeptieren and Ablehnen side by side, the settings button below. */
	#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
	}

	#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
		min-height: 44px;
		padding: 0.5rem;
	}

	#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
	#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences {
		grid-column: 1 / -1;
	}
}

@media print {
	.haniart-mobile-bar {
		display: none;
	}
}

/* ---- f) no blue box on tap (Chrome on Android), 9 Nov 2026 ----
 * Chrome paints a translucent blue rectangle over every link or button while
 * it is tapped, ignoring the rounded corners (operator: "a blue square shows
 * up surrounding the button"). Inherited from here by everything, the booking
 * form included. Keyboard focus rings (section 20) are not affected. */
html {
	-webkit-tap-highlight-color: transparent;
}
