/* ============================================================================
   shell.css · global site chrome (nav + footer)
   Single source of truth for the header navigation and the rich site footer,
   shared across every page incl. the blog generator output. Loaded AFTER
   tokens.css and BEFORE each page's own inline <style>, so per-page styles
   never need to redefine the nav/footer. Markup lives in partials/nav.html and
   partials/footer.html, injected by scripts/build-shell.mjs + build-blog.mjs.
   ========================================================================== */

/* ----- top navigation ----- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--surface-glass); backdrop-filter: blur(12px) saturate(160%); border-bottom: 1px solid var(--border);
  transition: box-shadow .28s var(--ease-premium), background .25s ease; }
.nav.scrolled { box-shadow: 0 6px 22px rgba(10,37,64,.08); }
/* grid, not flex+space-between: nav-links sits in its own centered middle
   column between the logo and the lang/CTA/burger group (Olli feedback
   2026-08-03), instead of being bunched flush against the right group. */
.nav-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; height: 64px; transition: height .26s var(--ease-premium); }
.nav.scrolled .nav-in { height: 54px; }
/* min-height lifts the logo link to a 44px touch target without scaling the mark
   itself (the nav row is 64px, 54px scrolled, so this costs no layout). */
/* fixed width = the logo's own rendered width at the unscrolled 40px height
   (362:90 aspect ratio). Without it, the grid's auto-sized logo column
   narrows as the image shrinks on scroll, and the centered .nav-links (its
   middle 1fr column widens to fill the freed space) visibly drifts left.
   Locking the column keeps every other column, including the centered one,
   perfectly still while only the logo image itself animates. */
.brand { display: flex; align-items: center; min-height: 44px; width: 161px; }
.brand img { display: block; height: 40px; width: auto; transition: height .26s var(--ease-premium); }
.nav.scrolled .brand img { height: 34px; }
/* gap widened .55rem -> .85rem per Olli feedback (2026-08-01): the nav row felt tight right
   before the language switcher. Lang-toggle and CTA padding below were trimmed slightly to
   compensate (verified live: no overflow, no nav-item compression, even at the 1220px floor). */
.nav-right { display: flex; align-items: center; gap: .85rem; }
/* item gap widened 8.8px -> 16px per Olli feedback (2026-08-01: felt too tight). This raises the
   row's real content need, but the breakpoint below has margin anyway: .nav-in shares the site's
   .container class, so its rendered width is capped at var(--container) (1200px) for the ENTIRE
   1200-1499px viewport range, not the raw viewport -- it does not get any narrower as the
   viewport shrinks from 1440px down to 1200px. Verified live on production (both languages, via
   a clone-based natural-width probe scoped inside .nav-links so descendant selectors still
   apply): zero items are compressed below their natural width even at the exact 1200px floor.
   That is what let the breakpoint drop from 1360px to 1220px (small buffer over 1200) without
   reintroducing any squeeze -- below 1200px .nav-in starts tracking the viewport again and gets
   genuinely tighter, which is why the breakpoint must stay above it. */
.nav-links { display: none; justify-content: center; gap: 1.9rem; }
@media (min-width: 1220px){ .nav-links { display: flex; } }
/* nowrap is load-bearing: without it a tight flex line lets "Website as a service"/
   "Automation" silently break onto a second line instead of honestly needing more
   room. The old fixed 3.5rem slots (i18n layout stability) padded short labels like
   "Blog" into oversized gaps; natural widths + a wider uniform gap read evenly, and
   an EN/DE label swap may shift neighbours slightly (accepted, W0 decision).
   Measured 2026-08-02 at the 1220px floor, DE labels (the wider set): links 680px,
   brand+right 1120px total in the 1200px container, ~80px spare, no overflow. */
.nav-links a { font: 600 1rem var(--sans); color: var(--text-soft); transition: color .2s; white-space: nowrap; }
.nav-links a.on, .nav-links a:hover { color: var(--text); }
/* Services dropdown (desktop): reveals the two service hubs on hover/focus */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px; } /* hover bridge over the gap */
.nav-drop-menu { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; min-width: 15rem; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transition: opacity .16s ease; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; }
.nav-drop-menu a { min-width: 0; text-align: left; white-space: nowrap; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--text-soft); }
.nav-drop-menu a:hover { background: var(--bg-warm); color: var(--text); }
.lang { display: flex; gap: 3px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang a { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: var(--text-soft); font: 600 1rem var(--sans); transition: background .2s var(--ease-snap), color .2s; }
.lang a img { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }
.lang a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.lang a:hover:not(.on) { color: var(--text); }
.nav .btn { padding: 9px 14px; min-height: 44px; font-size:1rem; }
.nav-cta-text { display: none; }
@media (min-width: 560px){ .nav-cta-text { display: inline; } .nav .btn { min-width: 10.5rem; justify-content: center; } }
/* Touch tap-targets >= 44px on mobile */
@media (max-width: 559px){
  .lang a { min-height: 44px; padding: 8px 13px; }
  .nav .btn { min-width: 44px; padding: 11px 14px; }
}
/* Website as a service / Managed website: hot link, teal + bold (Variante A) */
.nav-links a.nav-hot { color: var(--accent-ink); font-weight: 700; }
.nav-links a.nav-hot:hover { color: var(--accent); }
.mnav-links a.mnav-hot { color: var(--accent-ink); }

/* ----- mobile menu (burger + full-screen overlay, < 1220px) ----- */
.nav-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .25s var(--ease-premium), opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-burger:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.mnav { display: none; position: fixed; inset: 0; z-index: 90; background: var(--bg-warm);
  padding: 92px 24px 32px; flex-direction: column; overflow-y: auto; }
.mnav.open { display: flex; animation: mnavIn .28s var(--ease-premium); }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a { font: 700 1.45rem var(--sans); color: var(--text); padding: 16px 2px; border-bottom: 1px solid var(--border); }
.mnav-links a.mnav-sub { font-size: 1.08rem; font-weight: 600; color: var(--text-soft); padding-left: 18px; }
/* The button sits inside .mnav-links, whose `a` rule is more specific than
   .btn-primary and was overriding the white button text with the dark nav
   colour: #0A2540 on the teal fill is 2.57:1, well under the 4.5 the rules
   require. Restated here so the fill keeps its own text colour. */
.mnav-links a.mnav-book { color: #fff; }
.mnav-book { margin: 0 0 18px; width: 100%; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { z-index: 95; }        /* header (with the X) stays above the overlay */
@media (max-width: 1219.98px){
  .nav-right > .lang { display: flex; }      /* Entscheidung 10: lang toggle stays in the top bar on mobile too */
  .nav-burger { display: inline-flex; }
  /* Below this breakpoint .nav-links is display:none, so it stops being a grid
     item and .nav-right slides from the third column into the middle 1fr one.
     Two consequences, both measured on the unfixed build:
     (1) the now-empty third track still costs its .65rem gap, exactly in the
         range where the row is tightest, and
     (2) .nav-right stretches across the wide 1fr track with its content
         left-aligned, so at 768px the burger sat at x=588 of 768 with ~130px
         of dead space to its right instead of at the right edge.
     Two columns plus an explicit end alignment fixes both. */
  .nav-in { grid-template-columns: auto 1fr; }
  .nav-right { justify-content: flex-end; }
}
@media (min-width: 1220px){
  .mnav { display: none !important; }
  body.menu-open { overflow: auto; }
}
/* Entscheidung 10: under 560px show flags only (no room for EN/DE text next to
   the burger), and drop the top-bar CTA entirely, the overlay's own full-width
   "Book a call" button (first item) covers it. */
@media (max-width: 559.98px){
  .lang a .txt { display: none; }
  .lang a { gap: 0; }
  .nav-right > .btn { display: none; }
  .nav-right { gap: .6rem; }
}
/* 320px-class devices (iPhone SE and friends). The header row carries a fixed
   budget that does not shrink with the viewport: 2x24px container padding +
   161px logo column + .65rem gap + the lang pill + the 44px burger = 344px at
   a viewport of 320. Two distinct symptoms came out of that surplus:
   above 312px it was invisible to a scrollWidth check, because Chrome drops
   overflowed padding-right, so it showed up only as the lang pill being
   squeezed below its natural width (63px instead of 91px, flags clipped) with
   the burger 8px from the screen edge; below 312px it turned into real
   horizontal overflow (measured scrollWidth 312 vs clientWidth 305 at a 305px
   layout viewport).
   The logo is the one elastic item here, so it gives back the pixels: the
   container padding stays on the fluid --pad-x so the logo keeps aligning with
   the body content below it, and the burger keeps its full 44x44 touch target.
   New floor 316px (measured), against 344px before. */
@media (max-width: 419.98px){
  .nav-in { gap: .4rem; }
  .brand { width: 121px; }                   /* 30px x 362:90, the logo's own rendered width */
  .brand img { height: 30px; }
  .nav.scrolled .brand img { height: 27px; }
}

/* ----- rich site footer ----- */
/* Breathing room before the footer's top border and colour change. The audit and
   check pages close with a block whose padding-bottom is 0, so their last line sat
   flush against the rule (measured 0px at 360, 768 and 1280). Scoped to those two
   containers on purpose: a blanket main padding-bottom also stretched pages that
   already had room (home went from 138px to 202px, which reads as a hole). */
main > .audit-more:last-child,
main > .more:last-child { padding-bottom: clamp(40px,5vw,64px); }
.site-footer { padding: clamp(48px,6vw,72px) 0 30px; border-top: 1px solid var(--border); background: var(--bg-warm); color: var(--text-soft); font-size:1rem; }
.foot-grid { display: grid; gap: clamp(28px,4vw,48px); grid-template-columns: 1fr; }
@media (min-width:560px){
  .foot-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(24px,4vw,48px); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width:680px){ .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width:980px){
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}
.foot-brand .b { display: flex; align-items: center; margin-bottom: 12px; }
.foot-brand .b img { display: block; height: 42px; width: auto; }
.foot-brand p { margin: 0 0 6px; line-height: 1.6; max-width: 38ch; }
.foot-brand a { color: var(--accent-ink); font-weight: 600; }
.foot-social { display: flex; gap: 12px; margin-top: 16px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-soft); border: 1px solid var(--border); transition: color .2s, border-color .2s, background .2s; }
.foot-social a:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--surface); }
.foot-social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-col h3 { font: 700 1rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
/* Back to 4px after Olli's feedback (2026-08-01): 10px met the 44px touch-target
   house rule but pulled the columns apart so far that they read as unrelated.
   WCAG 2.2 AA (2.5.8) only asks for 24px and is met at 33.6px, so the tighter
   grouping wins here. A 44px target and dense spacing are mutually exclusive:
   the target has to come from somewhere, and overlapping hit areas at this
   density would just hand the tap to the wrong link. */
.foot-col a { display: block; color: var(--text-soft); padding: 4px 0; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
/* W0: quieter meta line · smaller + lighter so the HE/VAT company row stops
   competing with the link columns, and more air above the closing rule. */
.foot-bottom { margin-top: clamp(32px,4vw,44px); padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; justify-content: space-between; font: 500 .95rem var(--sans); color: var(--text-soft); letter-spacing: .02em; }
@media (max-width:1279.98px){ .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } } /* room for the bottom-left cookie button */

/* Inline links inside text blocks (blog prose, breadcrumbs, FAQ answers, the
   tinted .local panel on the city pages) rely on the accent colour, which sits
   at only ~1.6:1 against the body text. That fails WCAG 1.4.1 (colour alone).
   A thin, offset underline restores a non-colour cue while keeping the clean
   look; hover/focus strengthens it. Nav, buttons, cards and footer link lists
   are intentionally excluded.
   Adding a prose link in a new block context means adding its selector here.
   Measured on /web-design-paphos/ before it was: accent #084E4D against body
   #475C73 is 1.38:1, so the link was invisible to anyone who cannot tell the
   two colours apart. */
.article p a, .article li a, .crumbs a, .faq-item p a, .local p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.article p a:hover, .article li a:hover, .crumbs a:hover, .faq-item p a:hover, .local p a:hover,
.article p a:focus-visible, .article li a:focus-visible, .crumbs a:focus-visible, .faq-item p a:focus-visible, .local p a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Footer: "Areas we serve" line (location pages Limassol/Larnaca + Cyprus hub) */
/* "Areas we serve" sits in the bottom bar where "Built in Cyprus" was
   (Olli 20.10.2026, prototype footer F1), one footer row less. */
.foot-areas { color: var(--text-soft); }
@media (max-width:759px){ .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; } }
.foot-areas a { color: var(--text-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.foot-areas a:hover, .foot-areas a:focus-visible { text-decoration-thickness: 2px; }

/* Service pages: rein in the global h1/h2 clamp (tokens.css goes up to 4.25rem,
   too heavy for the long sentence-style service headlines; the home hero keeps
   its own size since it does not use .svc-hero). */
.svc-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.sec-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
.band h2, .local h2, .final h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }

/* Shared reviews block (partials/reviews.html), used on /projects/ (inline
   copy, unchanged) and on the service/location landing pages via the build-
   shell.mjs PARTIAL:reviews marker. Promoted here so 18+ pages do not each
   carry their own copy of the same four rules. */
.review-band { margin-top: var(--section-y); max-width: var(--container); margin-left: auto; margin-right: auto; padding: 0 var(--pad-x); }
/* When the band is the last block before the footer, give it the same gap
   below as above. It used to sit 16px from the footer on 20+ pages
   (measured 20.10.2026, Olli: "wirkt nicht symmetrisch").
   Only scripts sit between the band and the footer at body level, hence ~.
   Bands inside <main> (blog, /projects/) are spaced by main and stay as is. */
body > .review-band:has(~ .site-footer) { margin-bottom: var(--section-y); }
/* Service, location and case pages end <main> with a .sec that carries its own
   var(--section-y) bottom padding, so the gap above the band is padding +
   margin. Mirror that below so band-to-footer matches band-to-previous. */
main:has(> .sec:last-child) ~ .review-band:has(~ .site-footer) { margin-bottom: calc(2 * var(--section-y)); }
/* Same mirror for the offer, audits and automation pages, whose sections pad
   clamp(28px,4.5vw,48px) (audits 44px, close enough to share the rule). */
main:has(> :is(.off-section,.aud-section,.auto-section):last-child) ~ .review-band:has(~ .site-footer) { margin-bottom: calc(var(--section-y) + clamp(28px,4.5vw,48px)); }
/* /termin/ and /mentoring/ end <main> with .more and the band follows: the band
   brings the gap, so the .more end padding (above, and page-local) goes. */
main:has(~ .review-band) > .more:last-child { padding-bottom: 0; }
/* .sec-head here is the eyebrow+h2 wrapper (partials/reviews.html), scoped to
   .review-band on purpose: the same class also sits directly on <section
   class="sec sec-head"> across 24 EN+DE service/location pages, a
   left-aligned section-spacing modifier unrelated to this wrapper. A sitewide
   `.sec-head{text-align:center}` would centre those left-aligned sections too. */
.review-band .sec-head { text-align: center; }
.review-band .stars { color: var(--gold, #C99A5C); letter-spacing: 3px; font-size: 1.05rem; }
.review-grid { display:grid; gap: clamp(16px,2vw,24px); margin-top: clamp(18px,2.4vw,28px); }
@media (min-width:680px){ .review-grid { grid-template-columns: repeat(3,1fr); } }
.review-grid blockquote { margin:0; background:var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px,2.4vw,26px); display:flex; flex-direction:column; gap:12px; }
html[data-theme="dark"] .review-grid blockquote { background:var(--surface); }
.review-grid blockquote p { margin:0; font-size:1rem; line-height:1.55; }
.review-grid cite { font-style:normal; font-weight:600; font-size:1rem; color: var(--text-muted); margin-top:auto; }
/* No margin:auto needed any more: tokens.css's global p max-width is gone
   (site-wide width-cap cleanup), so this box already fills .review-band and
   text-align:center centres the text directly. */
.review-band .rsum { margin-top:14px; font-size:1rem; color: var(--text-muted); }

/* AIB-04 (2026-08-18): "Rated 5.0 by the people we build for." (rev.band.h2)
   inherits text-align:center from .review-band .sec-head above, but the h2
   itself carries a page-local max-width (24ch, set per service/location page
   inline <style>) with no margin:auto, so the BOX stays pinned to the left
   edge and text-align:center only centres the text inside that already-
   left-shifted box. Same bug class as .review-band .rsum above (see comment),
   fixed there but missed here. Scoped to .review-band so the identical
   .sec-head h2 selector on the 24 left-aligned service/location sections
   (which reuses .sec-head for unrelated section spacing, see the comment on
   .review-band .sec-head above) is not touched. */
.review-band .sec-head h2 { margin-left: auto; margin-right: auto; }

/* AIB-04 (2026-08-18): EU AI Act Art. 50(4) disclosure, icon-overlay pill.
   Canonical markup/CSS, keep byte-for-byte in sync with Blog-Maker
   docs/ai-badge-spec.md (tools/check-ai-badge-drift.sh compares this block
   against the spec on every change). Single copy here in shell.css (loaded
   by all 24 EN+DE service/location pages plus the homepage) instead of 24x
   inline duplication, same "single source" rationale as the nav/footer
   chrome above. */
/* ai-badge-spec v2.1.0, siehe Blog-Maker docs/ai-badge-spec.md */
.ai-origin-frame { position: relative; display: block; line-height: 0; }
.ai-origin-frame img { display: block; width: 100%; height: auto; margin: 0; }

/* Lighthouse 13.5 color-contrast (2026-09-25, DMA-LH-01): rgba(10,14,20,0.55)
   over an uncontrollable photo could drop white text to ~4.28:1 against a
   bright/white patch of the underlying image (worst case measured). Raised
   to 0.72, giving 7.3:1+ against white, same defensive-alpha pattern as the
   focus-ring-over-photo fix documented in DESIGN.md ("Rings over photos").
   NOTE: this diverges from ai-badge-spec.md's byte-for-byte value above;
   flag for upstream sync in Blog-Maker's docs/ai-badge-spec.md too. */
.ai-origin-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 5px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
}
.ai-origin-badge::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg id='Calque_1' data-name='Calque 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 566.93 566.93'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 { fill: %23fff; fill-rule: evenodd; } .cls-2 { fill: %231d1d1b; } %3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M272.03,100.72c100.92,0,182.74,81.82,182.74,182.75s-81.82,182.74-182.74,182.74-182.75-81.82-182.75-182.74,81.82-182.75,182.75-182.75'/%3E%3Cg%3E%3Cpath class='cls-2' d='M170.79,353.74c-1.08,0-2.05-.43-2.92-1.31-.88-.87-1.31-1.84-1.31-2.92,0-.67.07-1.27.2-1.81l47.34-129.32c.4-1.48,1.24-2.79,2.52-3.93,1.27-1.14,3.05-1.71,5.34-1.71h29.81c2.28,0,4.06.57,5.34,1.71,1.27,1.14,2.11,2.45,2.52,3.93l47.14,129.32c.27.54.4,1.14.4,1.81,0,1.08-.44,2.05-1.31,2.92s-1.91,1.31-3.12,1.31h-24.78c-2.01,0-3.52-.5-4.53-1.51-1.01-1.01-1.65-1.91-1.91-2.72l-7.86-20.55h-53.78l-7.65,20.55c-.27.81-.88,1.71-1.81,2.72-.94,1.01-2.55,1.51-4.83,1.51h-24.78ZM218.13,299.96h37.47l-18.93-53.18-18.53,53.18Z'/%3E%3Cpath class='cls-2' d='M328.11,353.74c-1.48,0-2.69-.47-3.63-1.41-.94-.94-1.41-2.15-1.41-3.63v-130.93c0-1.48.47-2.68,1.41-3.63s2.15-1.41,3.63-1.41h26.99c1.48,0,2.68.47,3.63,1.41.94.94,1.41,2.15,1.41,3.63v130.93c0,1.48-.47,2.69-1.41,3.63-.94.94-2.15,1.41-3.63,1.41h-26.99Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.ai-origin-badge--micro {
  left: 6px;
  bottom: 6px;
  padding: 2px 6px 2px 5px;
  gap: 4px;
  background: rgba(10, 14, 20, 0.72);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  opacity: 1;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
}
.ai-origin-badge--micro::before {
  width: 11px;
  height: 11px;
}

.ai-origin-badge.ai-origin-badge--right { left: auto; right: 10px; }

/* AIB-04 layout glue (not part of the canonical spec block above): the
   svc-hero image sits directly in a CSS-grid track with align-items:center
   (not stretch), where it used height:100% to fill the row before the
   ai-origin-frame wrapper existed. Wrapping it in the frame moves the grid
   item from the <img> to the <span>, and the frame's own default height is
   auto, so the img's height:100% would otherwise resolve against an
   indefinite height and fall back to auto (breaking the row-filling image).
   Giving the frame height:100% too makes it the grid item that resolves
   against the row's height exactly like the bare <img> did before, and the
   img's height:100% then resolves against that now-definite frame height. */
.svc-hero .ai-origin-frame, .svc-hero .ai-origin-frame img { height: 100%; }

/* AIB-04 layout glue: the homepage hero badge (a bare .ai-origin-badge, no
   .ai-origin-frame, positioned against .hero itself per the spec's "kleiner
   Hinweis" adaptation, not the usual per-image wrapper) sits at the spec's
   default corner (bottom-left, 10px/10px). #dma-consent-fab
   (assets/js/consent.js) is a position:fixed circle pinned to that SAME
   corner of the VIEWPORT (left:16px, bottom:16px, 44x44px, z-index:190),
   visible on every pageview after a consent choice exists (the common
   case, not just first-visit). .hero uses min-height:100svh but can grow
   past it with content, so how far .hero's own bottom edge sits below the
   fold is not fixed: an offset measured from .hero's bottom (tried first,
   see git history) cannot reliably clear a fab pinned to the VIEWPORT
   bottom instead. The spec's own "Ecken-Ausnahme" exists for exactly this
   class of layout conflict ("die Ecke darf wechseln, wo ein Layout es
   erzwingt"), so this instance swaps corners via .ai-origin-badge--right
   instead of fighting the geometry. The right side is clear at load:
   .nudge (right:22px, bottom:22px, z-index:70) only gains its .show class
   after scrolling past 90% of one viewport height, i.e. long past the
   hero. */
.hero > .ai-origin-badge.ai-origin-badge--right { right: 16px; bottom: 16px; }

/* Screen-reader-only heading: for thin transactional pages (confirmation,
   checkout success/error, cancellation) that have no natural second visible
   section to carry an h2, this keeps the accessibility heading outline
   intact (no h1-to-h3 skip) without adding visible chrome to a page that is
   deliberately minimal. */
.sr-only { position: absolute; 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; }

/* Keyboard skip link (audit 20.10.2026: first tab stop was the logo, then
   eight nav stops before any content). Off-screen until focused. */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 300; padding: 12px 18px; border-radius: 10px; background: var(--text); color: var(--surface); font: 600 1rem var(--sans); }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid var(--accent-ink); outline-offset: 2px; box-shadow: 0 0 0 8px var(--surface); } /* ring was --gold, 2.38:1 on cream. The link sits over the dark hero on some pages and over cream on others, so the ring is framed by a --surface halo (gap and 3px outside): ring vs halo is --accent-ink on --surface, 9.5:1 light and 6.5:1 dark, whatever is behind the halo */

/* Approved Dynamic Island, 20 October 2026. */

/* ===== prototype header (shared) ===== */
.hx,.hx-panel{--hx-h:72px;--hx-shrink:16px;font-family:var(--sans)}
.hx :focus-visible,.hx-panel :focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}
.hx .brand{display:flex;align-items:center;min-height:44px;width:auto;flex:0 0 auto}
.hx .brand img{display:block;height:36px;width:auto}
.hx-link{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 8px;font:600 1rem var(--sans);color:var(--text);white-space:nowrap}
.hx-link::after{content:"";position:absolute;left:8px;right:8px;bottom:8px;height:2px;border-radius:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .28s var(--ease-premium)}
.hx-link:hover::after{transform:scaleX(1)}
.hx-nav{display:none;align-items:stretch;justify-content:center;gap:4px;align-self:stretch}
.hx-nav > .hx-link{align-self:center}
.hx-right{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.hx .btn{min-height:44px;padding:0 18px;font:600 1rem var(--sans);white-space:nowrap}
.hx-cta{display:none}
.hx-lang{display:none;align-items:center}
.hx-lang a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font:600 .9375rem var(--sans);letter-spacing:.04em;color:var(--text-muted)}
.hx-lang a[aria-current]{color:var(--text)}
.hx-lang a[aria-current]::after{content:"";position:absolute;left:10px;right:10px;bottom:9px;height:2px;border-radius:2px;background:var(--accent)}
.hx-lang a:hover{color:var(--text)}
.hx-lang .sep{color:var(--border-strong);font-weight:400}
.hx-burger{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:44px;height:44px;flex:0 0 auto;border:0;border-radius:10px;background:none;cursor:pointer;color:var(--text)}
.hx-burger span{display:block;width:22px;height:2px;border-radius:2px;background:var(--text);transition:transform .25s var(--ease-premium),opacity .2s}
.hx-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hx-burger.open span:nth-child(2){opacity:0}
.hx-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
/* popovers: services mega menu and language menu */
.hx-pop{position:relative}
.hx-drop{position:static;display:inline-flex;align-items:center;align-self:stretch}
.hx-chev{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-8px;border:0;background:none;color:var(--text);cursor:pointer;align-self:center}
.hx-chev svg{width:14px;height:14px;transition:transform .25s var(--ease-premium)}
.hx-drop.open .hx-chev svg{transform:rotate(180deg)}
.hx-mega{position:absolute;left:var(--pad-x);right:var(--pad-x);top:100%;opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s ease,transform .28s var(--ease-premium),visibility 0s;z-index:3}
.hx-drop.open .hx-mega{opacity:1;visibility:visible;transform:none;transition-delay:0s}
@media (hover:hover){.hx-drop:hover .hx-mega{opacity:1;visibility:visible;transform:none;transition-delay:0s}.hx-drop:hover .hx-chev svg{transform:rotate(180deg)}}
.hx-mega-in{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 28px;padding:22px 28px 18px;background:var(--surface);border:1px solid var(--border);border-top:0;border-radius:0 0 var(--radius-lg) var(--radius-lg);box-shadow:var(--shadow-lift)}
.hx-mh{margin:0 0 4px;font:700 .8125rem var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep)}
.hx-ml{display:flex;align-items:center;min-height:44px;margin:0 -10px;padding:0 10px;border-radius:8px;font:600 1rem var(--sans);color:var(--text);transition:background .2s,color .2s}
.hx-ml:hover{background:var(--accent-soft);color:var(--accent-ink)}
/* mobile panel pieces (shared) */
.hx-panel{visibility:hidden;opacity:0}
.hxp-links{display:flex;flex-direction:column}
.hxp-link{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:0 2px;border-bottom:1px solid var(--border);font:700 1.25rem var(--sans);color:var(--text);cursor:pointer}
.hxp-hot{color:var(--accent-ink)}
.hxp-det > summary{list-style:none}
.hxp-det > summary::-webkit-details-marker{display:none}
.hxp-det > summary svg{width:18px;height:18px;transition:transform .25s var(--ease-premium)}
.hxp-det[open] > summary svg{transform:rotate(180deg)}
.hxp-sub{padding:6px 0 10px 14px;border-bottom:1px solid var(--border)}
.hxp-sub a{display:flex;align-items:center;min-height:48px;font:600 1.0625rem var(--sans);color:var(--text-muted)}
.hxp-sub a:hover{color:var(--text)}
.hxp-gh{margin:10px 0 0;font:700 .8125rem var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep)}
.hxp-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.hxp-lang{display:flex;gap:8px}
.hxp-lang a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border-strong);font:600 1rem var(--sans);color:var(--text)}
.hxp-lang a[aria-current]{background:var(--text);border-color:var(--text);color:var(--surface)}
.hxp-lang img{border-radius:2px;box-shadow:0 0 0 1px var(--border)}
.hxp-cookie{display:inline-flex;align-items:center;min-height:44px;font:600 1rem var(--sans);color:var(--text-muted);text-decoration:underline;text-underline-offset:3px}
.hxp-theme,.foot-theme{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);color:var(--text);font:600 1rem var(--sans);cursor:pointer}
.foot-theme[hidden]{display:none}
.hxp-theme:hover,.foot-theme:hover{border-color:var(--accent-bright);background:var(--accent-soft)}
.hxp-theme:focus-visible,.foot-theme:focus-visible{outline:3px solid var(--accent-bright);outline-offset:2px}
.hxp-cta{width:100%;justify-content:center;min-height:56px;font-size:1.0625rem}
body.hx-open{overflow:hidden}
body.hx-open #dma-consent-fab,body.hx-open .nudge{display:none!important}
@media (prefers-reduced-motion:reduce){.hx *,.hx-panel,.hx-panel *{transition-duration:.01ms!important;animation:none!important}}

/* Existing theme state, represented by an action icon in each island layer. */
.hx-theme{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--surface);color:var(--text);cursor:pointer}
.hx-theme svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.hx-theme .theme-sun,.hx-theme[aria-pressed="true"] .theme-moon{display:none}
.hx-theme[aria-pressed="true"] .theme-sun{display:block}
.hx-theme:hover{background:var(--bg-warm)}
.hx-theme:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.hxp-theme[hidden]{display:none}

/* ===== B: floating glass island ===== */
.hx-b{position:fixed;top:0;left:0;right:0;height:0;z-index:60;pointer-events:none}
.hxb-island{pointer-events:auto;position:absolute;top:12px;left:0;right:0;margin-inline:auto;width:min(920px,calc(100% - 24px));height:56px;border-radius:999px;display:flex;align-items:center;gap:8px;padding:0 6px 0 20px;
  background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  border:1px solid color-mix(in srgb,var(--surface) 60%,var(--border));box-shadow:var(--shadow-lift);
  transition:opacity .28s ease,transform .4s var(--ease-premium),visibility 0s}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hxb-island{background:var(--surface)}}
@media (prefers-reduced-transparency:reduce){.hxb-island{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}}
.hxb-full .hx-nav{flex:1 1 auto;margin-inline:auto}
.hxb-full .hx-right{margin-left:auto}
.hxb-compact{width:max-content;max-width:calc(100% - 24px);gap:8px;padding:0 6px 0 8px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(.96);transition:opacity .25s ease,transform .35s var(--ease-premium),visibility 0s .35s}
.hx-b.is-compact .hxb-full{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(.97);transition:opacity .22s ease,transform .3s var(--ease-premium),visibility 0s .3s}
.hx-b.is-compact .hxb-compact{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
.hx-markl{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%}
.hx-markl img{display:block;width:34px;height:34px}
.hxb-island .hx-mega{left:0;right:0;top:calc(100% + 8px)}
.hxb-island .hx-mega::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.hxb-island .hx-mega-in{border:1px solid var(--border);border-radius:28px;gap:4px 18px;padding:20px 24px 16px}
.hxb-island .hx-drop{position:static}
.hxb-island{--pad-x:0px}
.hxb-island .hx-mega{left:0;right:0}
@media (max-width:559.98px){.hx-b .hx-lang{display:none}}
html[data-theme="dark"] .hx-mall,html[data-theme="dark"] .hx-ml:hover,html[data-theme="dark"] .hxp-hot,html[data-theme="dark"] .foot-brand a{color:var(--link)}
html[data-theme="dark"] :is(.foot-social a:hover,.nav-links a.nav-hot,.mnav-links a.mnav-hot,.relb a:hover){color:var(--link)}
html[data-theme="dark"] .hxp-lang a[aria-current]{background:var(--text);color:var(--bg)}
html[data-theme="dark"] #dma-consent .ghost{background:#425D73;border-color:#425D73;color:#fff}
html[data-theme="dark"] #dma-consent a{color:var(--link,#A7E7E1)}
html[data-theme="dark"] #dma-consent-fab{color:var(--link)}
html[data-theme="dark"] .hx-brand-word{filter:brightness(0) invert(1)}
/* Dark: the teal M on the navy island was barely visible (audit W13). The mark sits on a light disc, its own colours stay. */
html[data-theme="dark"] .hx-markl{background:var(--text)}
.hx-panel:not(.hxc-sheet){position:fixed;top:76px;left:0;right:0;margin-inline:auto;width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 92px);overflow-y:auto;z-index:59;background:var(--surface);border:1px solid var(--border);border-radius:28px;box-shadow:var(--shadow-lift);padding:8px 20px 20px;transform:translateY(-8px);transition:opacity .25s ease,transform .3s var(--ease-premium),visibility 0s .3s}
.hx-panel:not(.hxc-sheet).open{visibility:visible;opacity:1;transform:none;transition-delay:0s}
.hx-panel:not(.hxc-sheet) .hxp-cta{margin:10px 0 6px}
.hx-panel:not(.hxc-sheet) .hxp-in{display:flex;flex-direction:column}
.hx-b .hx-cta{display:inline-flex}
.hx-b .hx-lang{display:none}
@media (min-width:940px){
  .hxb-full .hx-nav{display:flex}
  .hxb-full .hx-burger{display:none}
  .hx-b .hxb-full .hx-lang{display:flex}
  .hxb-full .hx-right{gap:6px}
}
@media (min-width:560px) and (max-width:939.98px){.hx-b .hxb-full .hx-lang{display:flex}}
@media (max-width:939.98px){.hxb-full{padding-left:16px}}
@media (max-width:559.98px){
  .hxb-full{padding-left:14px;gap:4px}
  .hxb-full .brand img{height:28px}
  .hx-b .hx-cta{padding:0 14px}
  .hx-b .hx-cta span[aria-hidden]{display:none}
  .hxb-full .hx-right{gap:2px}
}
/* hero gains the 65px the old bar used: header is out of flow now */
.hero{padding-top:calc(clamp(48px,9vw,104px) + 65px)}
@media (max-width:640px){.hero{padding-top:0}}
/* Leave room below the fixed island, including service hero imagery. */
main > .book:first-child{padding-top:122px}
main > :is(.svc-hero, .aud-hero, .auto-hero):first-child{padding-top:136px}
main > section{scroll-margin-top:88px}

/* ===== B2 overrides ===== */
.hx-b2 .hxb-full{display:grid;grid-template-columns:auto 1fr auto;width:min(1160px,calc(100% - 24px));padding:0 7px 0 22px;gap:12px;height:60px}
.hx-b2 .hxb-full .brand{justify-self:start}
.hx-b2 .hxb-full .hx-right{justify-self:end;margin-left:0;gap:10px}
/* nav starts at a fixed spot after the logo and the CTA has a fixed width,
   so switching EN/DE keeps logo, first link, EN|DE and CTA in place */
.hx-b2 .hxb-full .hx-nav{margin-inline:0;gap:6px;justify-self:start;margin-left:clamp(16px,3vw,48px)}
.hx-b2 .hx-link{padding:0 12px}
.hx-b2 .hx-link::after{left:12px;right:12px}
.hx-b2 .hx-cta{border-radius:999px;min-height:46px;padding:0 20px;min-width:184px;justify-content:center}
.hx-b2 .hxb-compact{height:60px;padding:0 7px 0 8px}
.hx-b2 .hx-svc{gap:6px;border:0;background:none;cursor:pointer;width:auto;height:44px;margin:0;align-self:center}
.hx-b2 .hx-svc::after{right:32px}
.hx-b2 .hx-svc svg{width:12px;height:12px;margin-top:1px;transition:transform .25s var(--ease-premium)}
.hx-b2 .hx-drop.open .hx-svc svg{transform:rotate(180deg)}
@media (hover:hover){.hx-b2 .hx-drop:hover .hx-svc svg{transform:rotate(180deg)}}
.hx-seg{display:none;align-items:center;padding:3px;border-radius:999px;background:color-mix(in srgb,var(--text) 7%,transparent)}
.hx-seg a{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:64px;min-height:44px;border-radius:999px;font:700 .875rem var(--sans);letter-spacing:.04em;color:var(--text-muted)}
.hx-seg a[aria-current]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-card)}
.hx-seg a:hover{color:var(--text)}
.hx-seg img{display:block;border-radius:2px;box-shadow:0 0 0 1px var(--border)}
.hx-mall-row{grid-column:1 / -1;display:flex;justify-content:center;padding:0 0 14px;margin:0 0 10px;border-bottom:1px solid var(--border)}
.hx-mall{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 22px;border-radius:999px;background:var(--accent-soft);font:700 1rem var(--sans);color:var(--accent-ink);transition:background .2s}
.hx-mall:hover{background:color-mix(in srgb,var(--accent) 22%,var(--surface))}
/* hover a touch darker than --accent-soft (Olli 20.10.2026) */
.hx-b2 .hx-ml:hover{background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent-ink)}
.hx-b2 .hx-mega-in > .hx-mc:last-child .hx-ml:hover{background:color-mix(in srgb,var(--accent) 24%,var(--surface))}
.hx-b2 .hxb-full .hx-nav{gap:10px}
/* closed (scrolled) island: lower, smaller CTA */
.hx-b2 .hxb-compact{height:50px;padding:0 5px 0 6px;gap:6px}
.hx-b2 .hxb-compact .hx-cta{min-height:40px;min-width:0;padding:0 16px;font-size:.95rem}
.hx-b2 .hxb-compact .hx-markl img{width:30px;height:30px}
.hx-b2 .hxb-compact .hx-burger{width:44px;height:40px}
/* ---- dynamic-island morph (Olli 20.10.2026: "viel coolere Animation") ----
   The shell carries glass, border and shadow; both islands are transparent
   content layers on top. Spring curve with a small overshoot on size,
   content leaves with blur + scale, the other side arrives a beat later. */
.hx-b2{--spring:cubic-bezier(.32,1.36,.44,1);--ease-out:cubic-bezier(.2,.8,.2,1)}
.hxb-shell{position:absolute;top:12px;left:50%;width:var(--hxw,920px);height:var(--hxh,60px);transform:translateX(-50%);border-radius:999px;pointer-events:none;
  background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  border:1px solid color-mix(in srgb,var(--surface) 60%,var(--border));box-shadow:var(--shadow-lift)}
/* Overshoot only ever goes outward (Olli 20.10.2026: M and menu slipped out
   while closing). Opening keeps the spring, it overshoots wider. Closing uses
   a curve without undershoot, then the shell breathes out once and settles. */
.hx-b2{--close:cubic-bezier(.22,1,.36,1)}
.hx-morph-on .hxb-shell{transition:width .62s var(--spring),height .5s var(--spring),box-shadow .4s ease}
.hx-morph-on.is-compact .hxb-shell{transition:width .5s var(--close),height .42s var(--close),box-shadow .4s ease}
.hx-morph-on.hx-live{transition:--hxw .62s var(--spring),--hxh .5s var(--spring)}
.hx-morph-on.hx-live.is-compact{transition:--hxw .5s var(--close),--hxh .42s var(--close)}
.hx-morph-on.hx-live .hxb-shell{transition:box-shadow .4s ease}
.hx-morph-on.is-compact .hxb-shell{animation:hxb-settle .5s var(--ease-out) .4s both}
@keyframes hxb-settle{0%,100%{transform:translateX(-50%) scale(1)}40%{transform:translateX(-50%) scale(1.035,1.07)}}
/* content never paints outside the shell: both layers are clipped to its live size */
.hx-b2.hx-live .hxb-compact,.hx-b2.hx-live.hx-morphing .hxb-full{
  clip-path:inset(0 max(0px,calc((100% - var(--hxw)) / 2)) max(0px,calc(100% - var(--hxh))) round 999px)}
.hx-b2.is-compact .hxb-shell{box-shadow:0 14px 34px -14px color-mix(in srgb,var(--text) 45%,transparent)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hxb-shell{background:var(--surface)}}
@media (prefers-reduced-transparency:reduce){.hxb-shell{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}}
.hx-b2 .hxb-island{background:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.hx-b2 .hxb-full{transition:opacity .28s var(--ease-out) .14s,transform .55s var(--spring) .1s,filter .35s ease .1s,visibility 0s}
.hx-b2 .hxb-full > *,.hx-b2 .hxb-full .hx-nav > *{transition:opacity .3s var(--ease-out),transform .5s var(--spring)}
.hx-b2.is-compact .hxb-full{opacity:0;visibility:hidden;transform:scale(.94);filter:blur(6px);
  transition:opacity .18s ease,transform .35s var(--ease-out),filter .2s ease,visibility 0s .35s}
.hx-b2.is-compact .hxb-full .hx-nav > *{opacity:0;transform:translateY(-6px) scale(.96)}
.hx-b2 .hxb-full .hx-nav > :nth-child(2){transition-delay:.03s}.hx-b2 .hxb-full .hx-nav > :nth-child(3){transition-delay:.06s}
.hx-b2 .hxb-full .hx-nav > :nth-child(4){transition-delay:.09s}.hx-b2 .hxb-full .hx-nav > :nth-child(5){transition-delay:.12s}
.hx-b2 .hxb-compact{transform:scale(1.12);filter:blur(6px);transition:opacity .16s ease,transform .3s var(--ease-out),filter .2s ease,visibility 0s .3s}
.hx-b2.is-compact .hxb-compact{opacity:1;visibility:visible;pointer-events:auto;transform:none;filter:none;
  transition:opacity .3s var(--ease-out) .2s,transform .6s var(--spring) .16s,filter .35s ease .2s,visibility 0s}
@media (prefers-reduced-motion:reduce){.hxb-shell,.hx-b2 .hxb-island,.hx-b2 .hxb-island *{transition-duration:.01ms!important;transition-delay:0s!important;filter:none!important}}
/* opening the menu hides the page scrollbar; keep its gutter so the page does not jump sideways */
html{scrollbar-gutter:stable}
.hx-b2 .hx-mega-in{grid-template-columns:repeat(4,minmax(0,1fr))}
.hx-b2 .hx-mega-in > .hx-mc:last-child{background:var(--accent-soft);border-radius:16px;padding:10px 14px;margin:-6px 0}
@media (min-width:1180px){
  .hx-b2 .hxb-full .hx-nav{display:flex}
  .hx-b2 .hxb-full .hx-burger{display:none}
  .hx-b2 .hx-seg{display:flex}
}
@media (max-width:1179.98px){
  .hx-b2 .hxb-full .hx-nav{display:none}
  .hx-b2 .hxb-full{grid-template-columns:1fr auto;width:min(720px,calc(100% - 24px))}
  .hx-b2 .hxb-full .hx-burger{display:inline-flex}
}
@media (min-width:560px) and (max-width:1179.98px){.hx-b2 .hx-seg{display:flex}}
/* Mobile island (Olli 22.10.2026): round M mark instead of the wordmark, a narrower
   "Book a call" with a little more inner padding, so mark, button and burger share one
   height and the island shrinks to its content. */
.hx .brand .hx-brand-mark{display:none}
@media (max-width:559.98px){
  .hx-b2 .hxb-full{grid-template-columns:auto auto;width:max-content;max-width:calc(100% - 24px);height:56px;padding:0 6px 0 6px;gap:8px}
  .hx-b2 .hxb-full .brand .hx-brand-word{display:none}
  .hx-b2 .hxb-full .brand{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px}
  .hx-b2 .hxb-full .brand .hx-brand-mark{display:block;width:34px;height:34px}
  .hx-b2 .hxb-full .hx-right{gap:6px}
  /* CHECK-DESIGN-BAU 14.11.2026: the button itself is 44px high now (audit blocker 3 measured the 34px element box, the 5px pseudo-element hit area did not count). Same height as the mark and the burger. */
  .hx-b2 .hxb-full .hx-cta{position:relative;min-width:0;min-height:44px;padding:0 18px;transition:padding .35s var(--close),transform .22s var(--ease-premium),box-shadow .28s var(--ease-premium),background .2s,border-color .2s,color .2s}
  .hx-b2 .hxb-full .hx-burger{width:44px;height:44px}
  /* On phones both layers hold the same three items, so there is nothing to morph:
     one layer stays, the island only gets narrower while scrolled (Olli 22.10.2026). */
  .hx-b2 .hxb-compact{display:none}
  .hx-b2.is-compact .hxb-full{opacity:1;visibility:visible;pointer-events:auto;transform:none;filter:none;transition:none}
  .hx-b2.is-compact .hxb-full .hx-cta{padding:0 12px}
  .hx-morph-on.hx-live,.hx-morph-on.hx-live.is-compact{transition:none}
  .hx-morph-on.is-compact .hxb-shell{animation:none}
  .hx-b2.hx-live.hx-morphing .hxb-full{clip-path:none}
  /* first menu link sits 20px below the island; the close control is the burger in the island */
  .hx-panel:not(.hxc-sheet){padding-top:12px}
}

/* Swipe affordance for horizontal strips (data-swipe): one gentle peek plus a small label.
   Each page shows .swipe-hint only at the widths where its strip actually scrolls. */
@keyframes swipe-peek{0%,100%{transform:none}40%{transform:translateX(-28px)}}
.swipe-peek>*{animation:swipe-peek 1s cubic-bezier(.45,0,.25,1) .1s both}
.swipe-hint{display:none;align-items:center;gap:6px;margin:12px 0 0;font-size:.875rem;font-weight:600;letter-spacing:.01em;color:var(--text-muted);transition:opacity .2s ease-out}
.swipe-hint.is-swiped{opacity:0}
.swipe-hint svg{width:18px;height:18px;flex:none;animation:swipe-nudge 1.8s var(--ease-premium) 3}
@keyframes swipe-nudge{0%,55%,100%{transform:none}25%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.swipe-peek>*,.swipe-hint svg{animation:none}}
/* B2 entrepreneur block of every order form (B2, 12.11.2026): company, country, optional VAT ID, and the separate confirmation checkbox (never inside the AGB or withdrawal checkbox, never pre-selected). Shared by /angebot/, /a/<token> and /audit/. Selectors carry two classes so page-local label rules (.off-form label) do not override them. */
.b2b-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px;margin:0 0 14px;max-width:640px}
.b2b-fields .b2b-field{display:flex;flex-direction:column;min-width:0}
.b2b-fields .b2b-field>label{display:block;font-weight:600;font-size:.92rem;margin:auto 0 4px;color:var(--text)}
.b2b-fields .b2b-field input,.b2b-fields .b2b-field select{width:100%;max-width:none;padding:12px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;font-size:1rem;background:var(--bg-warm);color:var(--text)}
/* B8 (13.11.2026, fix round 1): the company field and the country select are controls that are not filled yet, their edge holds 3:1 against the field ground (control-edge token, light and dark). */
.b2b-fields .b2b-field input,.b2b-fields .b2b-field select{border-color:var(--control-edge)}
.b2b-fields .b2b-vat{grid-column:1/-1}
.b2b-fields .b2b-hint{margin:6px 0 0;font-size:.85rem;line-height:1.45;color:var(--text-muted)}
.b2b-confirm-box{margin:0 0 16px;padding:14px 16px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-warm)}
.b2b-confirm-box .b2b-confirm{display:flex;align-items:flex-start;gap:10px;margin:0;cursor:pointer;font-size:.95rem;font-weight:400;line-height:1.4;color:var(--text)}
.b2b-confirm-box .b2b-confirm input{width:20px;height:20px;flex:0 0 auto;margin:2px 0 0;accent-color:var(--accent-deep)}
.b2b-confirm-box .b2b-consumer-note{margin:10px 0 0;font-size:.85rem;line-height:1.45;color:var(--text-muted)}
/* CHECK-DESIGN-BAU 14.11.2026 (audit blocker 1): the "tips and offers" tick of the order box hangs directly in the box, outside .b2b-confirm-box, so the rules above never reached it: 13px box, 18px text, 23px row. Same look as the confirmation tick, 44px row. */
.check-order-tips{margin:0 0 16px}
.check-order-tips .b2b-confirm{display:flex;align-items:flex-start;gap:12px;min-height:44px;margin:0;padding:10px 0;cursor:pointer;font-size:.95rem;font-weight:400;line-height:1.4;color:var(--text)}
.check-order-tips .b2b-confirm input{width:24px;height:24px;flex:0 0 auto;margin:0;accent-color:var(--accent-deep)}
