/* QKULM — refinement layer, 20 November 2026 (Claude Code).
   Loaded last, after styles.css / home.css / typography.css. It adds motion, a little more colour
   and a few polish fixes on top of the approved build without editing those files: unlink this
   file and qk-refine.js and the site is back to the Cline/DeepSeek state of 20 Nov.

   Motion idea: QKulm brings clarity, so things come into focus. The hero wordmark pulls focus
   once on arrival; below it headings rise line by line, the ceramic objects sharpen out of a soft
   blur and drift a little with the scroll, and the three method steps light up in sequence as
   they are read. All movement uses Arsen's approved ease in-out for this project (19 Nov 2026).
   Reduced motion keeps everything still; without JavaScript every element is simply visible.

   Colour: her palette only -- white, Canva greys, black and the brand red. No pink tints anywhere
   (Arsen, 20 Nov: "i dont like the pink"). Crimson is the accent (selection, focus, reading progress,
   button fills, frames, the method sequence); full brand red stays the contact panel's block. */

:root {
  --qk-ease: cubic-bezier(0.65, 0, 0.35, 1);         /* ease in-out, swift */
  --qk-ease-soft: cubic-bezier(0.45, 0.05, 0.25, 1);  /* ease in-out with a longer settle */
  --qk-crimson: #c11112;
  --qk-red: #e51e19;
  --qk-stage: #f2f2f2;                                /* her card grey */
  --qk-band: #ececec;                                 /* her page grey: the grey band on the sub-pages (read by qk-refine.js) */
  --qk-shadow: drop-shadow(0 22px 22px rgba(20, 20, 20, 0.14));
}

/* ---------- browser surfaces carry the palette ---------- */
::selection { background: var(--qk-crimson); color: #fff; }
#kontakt .contact__pitch ::selection { background: #fff; color: var(--qk-crimson); }
html { scrollbar-color: var(--qk-crimson) #f1f1f1; }
input, textarea { caret-color: var(--qk-crimson); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--qk-crimson); outline-offset: 3px; }
.wann__trigger:focus-visible { outline-color: var(--qk-crimson); }
#kontakt .contact__pitch a:focus-visible { outline-color: #fff; }
.input:focus, .textarea:focus { outline-color: var(--qk-crimson); border-color: var(--qk-crimson); }
.choice:has(input:focus-visible) { outline-color: var(--qk-crimson); }

/* ---------- header: reading progress on the hairline, underline on hover ---------- */
.qk-progress {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 2px;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.qk-progress > span {
  display: block; height: 100%; background: var(--qk-crimson);
  transform: scaleX(var(--qk-page, 0)); transform-origin: 0 50%;
}
.nav .nav__list .nav__link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 4px; margin-bottom: -4px;
  transition: color 240ms var(--qk-ease), background-size 360ms var(--qk-ease);
}
.nav .nav__list .nav__link:hover,
.nav .nav__list .nav__link:focus-visible,
.nav .nav__list .nav__link[aria-expanded="true"] { background-size: 100% 1px; }
.nav__panel { transition: opacity 220ms var(--qk-ease), transform 260ms var(--qk-ease), visibility 220ms; }
.nav__panel a { transition: background-color 200ms var(--qk-ease), color 200ms var(--qk-ease); }
.mobile-nav a:hover { color: var(--qk-crimson); }

/* ---------- buttons fill with crimson from the left; the arrow answers ---------- */
.pill {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 0% 100%, var(--page);
  transition: background-size 400ms var(--qk-ease), color 260ms var(--qk-ease), border-color 260ms var(--qk-ease);
}
.pill:hover, .pill:focus-visible {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 100% 100%, var(--page);
  border-color: var(--qk-crimson); color: #fff;
}
.btn-solid {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 0% 100%, #000;
  transition: background-size 440ms var(--qk-ease);
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 100% 100%, #000;
}
.btn-red {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 0% 100%, var(--red-cta);
  transition: background-size 440ms var(--qk-ease), color 300ms var(--qk-ease);
  text-decoration: none; /* link buttons carried the browser's underline inside the pill */
}
.btn-red:not(:disabled):hover, .btn-red:not(:disabled):focus-visible {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 100% 100%, var(--red-cta);
}
.qk-arrow { display: inline-block; margin-left: -6px; transition: translate 360ms var(--qk-ease); }
.btn-red .qk-arrow { margin-left: 0.45em; }
.btn-solid:hover .qk-arrow, .btn-solid:focus-visible .qk-arrow,
.btn-red:hover .qk-arrow, .btn-red:focus-visible .qk-arrow { translate: 5px 0; }
.backlink > span[aria-hidden="true"] { display: inline-block; transition: translate 320ms var(--qk-ease); }
.backlink:hover > span[aria-hidden="true"], .backlink:focus-visible > span[aria-hidden="true"] { translate: -4px 0; }
.text-link > span[aria-hidden="true"] { display: inline-block; transition: translate 320ms var(--qk-ease); }
.text-link:hover > span[aria-hidden="true"] { translate: 4px 0; }

/* ---------- footer: back on the page grid (its padding shorthand had zeroed the gutter) ---------- */
.site-footer__inner { padding-left: var(--pad); padding-right: var(--pad); }
.site-footer a, .hero__foot a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: color 240ms var(--qk-ease), background-size 360ms var(--qk-ease);
}
.site-footer a:hover, .site-footer a:focus-visible,
.hero__foot a:hover, .hero__foot a:focus-visible {
  text-decoration: none; color: var(--qk-crimson); background-size: 100% 1px;
}

/* ---------- hero: the focal moment ----------
   The wordmark pulls focus, the plate settles into its tilt and a crimson frame fans out behind it.
   Scrolling away tilts the two apart a little further. */
.hero { overflow-x: clip; }
.hero__stage { isolation: isolate; }
.hero__plate {
  z-index: 1;
  rotate: calc(var(--qk-hero, 0) * -3deg);
  translate: 0 calc(var(--qk-hero, 0) * 34px);
  box-shadow: 0 30px 50px -26px rgba(60, 14, 14, 0.32);
}
.hero__frame {
  position: absolute; z-index: 0; left: 50%; top: 0;
  width: min(553px, 74vw); max-width: calc(100% - 2 * var(--pad)); aspect-ratio: 553 / 368;
  border: 1.5px solid var(--qk-crimson);
  translate: calc(-50% + 16px) calc(14px + var(--qk-hero, 0) * 16px);
  rotate: calc(2.6deg + var(--qk-hero, 0) * 3deg);
  pointer-events: none;
}
@media (max-width: 520px) { .hero__frame { width: 86vw; } }
.hero__cta { margin-top: 40px; } /* clear of the fanned frame */

@keyframes qk-focus-in { from { opacity: 0; filter: blur(18px); } to { opacity: 1; filter: none; } }
@keyframes qk-plate-in { from { opacity: 0; rotate: 4.3deg; scale: 0.9; } }
@keyframes qk-frame-in { from { opacity: 0; rotate: -4.3deg; translate: -50% 0; } }
@keyframes qk-rise-in { from { opacity: 0; translate: 0 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: qk-focus-in 1300ms var(--qk-ease) 80ms both; }
  .hero__strap { animation: qk-focus-in 1000ms var(--qk-ease) 600ms both; }
  .hero__plate { animation: qk-plate-in 1400ms var(--qk-ease) 300ms backwards; }
  .hero__frame { animation: qk-frame-in 1300ms var(--qk-ease) 900ms backwards; }
  .hero__cta { animation: qk-rise-in 900ms var(--qk-ease) 1150ms backwards; }
}

/* ---------- section choreography (classes are added by qk-refine.js on the homepage) ---------- */

/* headings rise line by line out of their own baseline */
.qk-line {
  display: block; padding-bottom: 0.16em; margin-bottom: -0.16em;
  clip-path: inset(-0.6em -2em 0 -2em);
}
.qk-line__in { display: block; }
/* the trigger is the build's .reveal block on the homepage, or the heading itself on a sub-page (.qk-unit) */
.js :is(.reveal, .qk-unit) .qk-line__in {
  opacity: 0; transform: translateY(112%); filter: blur(6px);
  transition: transform 1000ms var(--qk-ease-soft), filter 900ms var(--qk-ease-soft), opacity 700ms var(--qk-ease-soft);
  transition-delay: calc(var(--qk-l, 0) * 120ms + 80ms);
}
.js :is(.reveal, .qk-unit).is-in .qk-line__in { opacity: 1; transform: none; filter: none; }
/* once the line is up, the mask opens so descenders are never cut */
.js :is(.reveal, .qk-unit).is-in .qk-line { clip-path: inset(-0.6em -2em -0.6em -2em); transition: clip-path 0s linear 1500ms; }

/* supporting copy follows its heading; real lists stagger as lists */
.js .reveal .qk-rise {
  opacity: 0; translate: 0 22px;
  transition:
    opacity 800ms var(--qk-ease-soft) calc(var(--qk-i, 0) * 90ms + 220ms),
    translate 900ms var(--qk-ease-soft) calc(var(--qk-i, 0) * 90ms + 220ms),
    border-color 260ms var(--qk-ease), background-color 260ms var(--qk-ease);
}
.js .reveal.is-in .qk-rise { opacity: 1; translate: none; }
.js .reveal .qk-fade { opacity: 0; transition: opacity 900ms var(--qk-ease-soft) 420ms; }
.js .reveal.is-in .qk-fade { opacity: 1; }

/* the ceramic objects come into focus */
.qk-focus { filter: var(--qk-shadow); }
.js .reveal .qk-focus {
  opacity: 0; scale: 0.94; filter: blur(14px) var(--qk-shadow);
  transition: opacity 900ms var(--qk-ease-soft) 180ms, scale 1300ms var(--qk-ease-soft) 180ms,
              filter 1200ms var(--qk-ease-soft) 180ms;
}
.js .reveal.is-in .qk-focus { opacity: 1; scale: 1; filter: blur(0px) var(--qk-shadow); }
.qk-focus.qk-plain { filter: none; }
.js .reveal .qk-focus.qk-plain { filter: blur(14px); }
.js .reveal.is-in .qk-focus.qk-plain { filter: none; }

/* ...and drift with the scroll (qk-refine.js writes --qk-t, -1 below centre to 1 above) */
.qk-drift {
  translate: 0 calc(var(--qk-t, 0) * var(--qk-dy, 24px));
  rotate: calc(var(--qk-t, 0) * var(--qk-rot, 0deg));
  will-change: translate, rotate;
}

/* a word is underlined once its heading is up */
.qk-mark { background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 92% / 100% 0.075em; }
.qk-mark--light { background-image: linear-gradient(#fff, #fff); }
.js .reveal .qk-mark { background-size: 0% 0.075em; transition: background-size 1100ms var(--qk-ease) 950ms; }
.js .reveal.is-in .qk-mark { background-size: 100% 0.075em; }

/* ---------- the three ceramic objects are no longer cut-outs (20 Nov, evening) ----------
   tools/panel-shapes.py puts each original render on the exact colour of the surface it stands on
   (#f2f2f2 for ring and shard, white for the spiral) with its own soft contact shadow, so the image
   edge is invisible. Therefore: no drop shadow of our own (it would outline the rectangle), no tilt
   (it would tilt the floor), only a gentle vertical drift; and the images are sized so the object
   reads at the same size as the old cut-outs did. */
#unser-blick .split__photo, #wann-qkulm .wann__img, #ansatz .split img { --qk-shadow: drop-shadow(0 0 0 transparent); }
#unser-blick .split__media--photo { padding: 0; clip-path: inset(0); }
#wann-qkulm .wann__figure { clip-path: inset(0 round 18px); }
#unser-blick .split__photo { width: 120%; max-width: none; margin-inline: -10%; --qk-dy: -22px; --qk-rot: 0deg; }
#wann-qkulm .wann__img { width: 141%; max-width: none; margin: -10% -20.5% -4%; }
#unser-blick .split__panel .section__cta { gap: 14px 55px; }
#unser-blick .split__scroll { transition: color 240ms var(--qk-ease); }
#unser-blick .split__scroll:hover { color: var(--qk-crimson); }
#unser-blick .split__scroll span { display: inline-block; }
@keyframes qk-bob { 50% { translate: 0 5px; } }
@media (prefers-reduced-motion: no-preference) {
  .js #unser-blick .reveal.is-in .split__scroll span { animation: qk-bob 1400ms var(--qk-ease) 1600ms 3; }
}

/* ---------- Wann: the object sits on her card grey; the red lives in the meter, rail and chips ---------- */
#wann-qkulm .wann__figure { background: var(--qk-stage); border-color: rgba(0, 0, 0, 0.06); }
#wann-qkulm .wann__meter { background: rgba(0, 0, 0, 0.1); }
/* the three rows arrive as a list again (the 0 / 90 / 180 ms stagger the 20 Nov rebuild dropped) */
.wann__item:nth-child(2) { --qk-w: 1; }
.wann__item:nth-child(3) { --qk-w: 2; }
.js .reveal .wann__item {
  opacity: 0; translate: 0 16px;
  transition-property: opacity, translate;
  transition-duration: 700ms;
  transition-timing-function: var(--qk-ease-soft);
  transition-delay: calc(var(--qk-w, 0) * 90ms);
}
.js .reveal.is-in .wann__item { opacity: 1; translate: none; }

/* ---------- Leistungen: a grey wash answers the pointer, the list arrives as a list ---------- */
#leistungen .service { position: relative; isolation: isolate; }
#leistungen .service::before {
  content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 12px;
  background: var(--qk-stage);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
  transition: transform 460ms var(--qk-ease), opacity 300ms var(--qk-ease);
}
#leistungen .service:hover::before, #leistungen .service:focus-visible::before { transform: scaleX(1); opacity: 1; }
#leistungen .service__title { transition: translate 420ms var(--qk-ease); }
#leistungen .service:hover .service__title, #leistungen .service:focus-visible .service__title { translate: 8px 0; }

/* the motion tile opens like an aperture */
.js .reveal .qk-aperture { clip-path: inset(16% 16% 16% 16% round 18px); transition: clip-path 1200ms var(--qk-ease-soft) 300ms; }
.js .reveal.is-in .qk-aperture { clip-path: inset(0 0 0 0 round 18px); }
.js .reveal .qk-aperture video { scale: 1.12; transition: scale 1600ms var(--qk-ease-soft) 300ms; }
.js .reveal.is-in .qk-aperture video { scale: 1; }

/* ---------- Unser Ansatz: the method lights up as a sequence, 01 → 02 → 03 ---------- */
#ansatz .split img { --qk-dy: -26px; --qk-rot: 0deg; max-width: 630px; }
/* the white spiral image may run into the page gutter on phones; the section clips it at the viewport */
#ansatz { overflow-x: clip; clip-path: inset(0); }
@media (max-width: 1080px) {
  /* the spiral image is white to its edges, so it may run past the column without showing */
  #ansatz .split img { width: 134%; max-width: none; margin-inline: -17%; }
}
/* the heading draws over the (white, opaque) spiral image when the drift brings them close */
#ansatz .eyebrow, #ansatz .h2 { position: relative; z-index: 1; }
#ansatz .step { position: relative; }
#ansatz .step:not(:first-child)::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--qk-crimson);
  transform: scaleX(var(--qk-s, 0)); transform-origin: 0 50%;
}
#ansatz .step__n { transition: color 360ms var(--qk-ease); }
#ansatz .step.is-lit .step__n { color: var(--qk-crimson); }

/* ---------- Die Idee: her grey panel stays; the portrait rises out of a crimson frame ---------- */
.qk-portrait-stack { position: relative; isolation: isolate; }
.qk-portrait-stack .portrait { position: relative; z-index: 1; }
.qk-frame {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border: 1.5px solid var(--qk-crimson); border-radius: 20px;
  translate: 14px 16px; rotate: 1.8deg;
}
.js .reveal .qk-frame {
  opacity: 0; translate: 0 0; rotate: 0deg;
  transition: opacity 700ms var(--qk-ease) 900ms, translate 1200ms var(--qk-ease) 900ms, rotate 1200ms var(--qk-ease) 900ms;
}
.js .reveal.is-in .qk-frame { opacity: 1; translate: 14px 16px; rotate: 1.8deg; }
.js .reveal .portrait { clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1300ms var(--qk-ease-soft) 250ms; }
.js .reveal.is-in .portrait { clip-path: inset(0 0 0 0 round 20px); }
.js .reveal .portrait img { scale: 1.14; transition: scale 1700ms var(--qk-ease-soft) 250ms; }
.js .reveal.is-in .portrait img { scale: 1; }

/* ---------- Kontakt: the red panel opens from the left and deepens toward wine ---------- */
#kontakt .contact__pitch {
  background-image: radial-gradient(120% 95% at 100% 100%, rgba(110, 4, 6, 0.5) 0%, rgba(110, 4, 6, 0) 62%);
}
.js #kontakt .reveal .contact__pitch { clip-path: inset(0 100% 0 0); transition: clip-path 1200ms var(--qk-ease-soft) 80ms; }
.js #kontakt .reveal.is-in .contact__pitch { clip-path: inset(0 0 0 0); }
#kontakt .contact__object { --qk-dy: -18px; --qk-rot: 18deg; }
#kontakt .choice { transition: background-color 220ms var(--qk-ease), border-color 220ms var(--qk-ease); }
#kontakt .choice:hover { border-color: #9a9b9d; }
/* a chosen option reads by its crimson box and border, on white (it was pale pink) */
.choice:has(input:checked), .choice.is-selected { background: #fff; box-shadow: inset 0 0 0 1px var(--qk-crimson); }
.qb-anchor:hover { background: var(--qk-stage); }
/* the unavailable form's button was red at half opacity, which read as pink: it greys out instead */
.form__submit:disabled { opacity: 1; background: #d9d9d9; color: #5f5f5f; }
#kontakt .input, #kontakt .textarea { transition: border-color 220ms var(--qk-ease); }
#kontakt .input:hover, #kontakt .textarea:hover { border-color: #9f9f9f; }

/* =====================================================================================
   Sub-pages: the four Leistungen pages, Wann QKulm ins Spiel kommt, Methode, Referenzen
   (20 Nov, late evening; Arsen: "very very boring").
   The homepage language, applied element by element: headings rise line by line, small print and
   copy follow, the ceramic objects come into focus and drift with the scroll, rules draw
   themselves, the copy cards take Ariola's grey card, and every "So unterstützt QKulm" block
   becomes the brand-red panel the contact section uses. qk-refine.js marks each element and
   observes it on its own (.qk-unit, then .is-in); inside one of the build's .reveal blocks, that
   block is the trigger instead. Delays come from --qk-d, set per element by the script.
   ===================================================================================== */

/* ---------- motion vocabulary ---------- */
.js .qk-up.qk-unit, .js :is(.reveal, .qk-unit) .qk-up {
  opacity: 0; translate: 0 24px;
  transition: opacity 800ms var(--qk-ease-soft) var(--qk-d, 0ms), translate 900ms var(--qk-ease-soft) var(--qk-d, 0ms);
}
.js .qk-up.qk-unit.is-in, .js :is(.reveal, .qk-unit).is-in .qk-up { opacity: 1; translate: none; }

/* objects sharpen out of a soft blur; --qk-tone keeps the "mehr matt" grade Ariola asked for */
.page-service .shape-matte, .page-service #fuer-einzelpersonen .qb-intro__obj img {
  --qk-tone: brightness(1.02) contrast(0.9) saturate(0.94);
}
.js .qk-sharp.qk-unit, .js :is(.reveal, .qk-unit) .qk-sharp {
  opacity: 0; filter: blur(16px) var(--qk-tone, brightness(1));
  transition: opacity 1000ms var(--qk-ease-soft) var(--qk-d, 0ms), filter 1300ms var(--qk-ease-soft) var(--qk-d, 0ms);
}
.js .qk-sharp.qk-unit.is-in, .js :is(.reveal, .qk-unit).is-in .qk-sharp {
  opacity: 1; filter: blur(0px) var(--qk-tone, brightness(1));
}
/* service-pages.css sets this object's matte filter through an id, which outranks the two rules above */
.js .page-service #fuer-einzelpersonen .reveal .qk-sharp { filter: blur(16px) var(--qk-tone); }
.js .page-service #fuer-einzelpersonen .reveal.is-in .qk-sharp { filter: blur(0px) var(--qk-tone); }

/* rules draw from the left */
.js .qk-draw.qk-unit, .js :is(.reveal, .qk-unit) .qk-draw {
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1100ms var(--qk-ease) var(--qk-d, 0ms);
}
.js .qk-draw.qk-unit.is-in, .js :is(.reveal, .qk-unit).is-in .qk-draw { transform: none; }

/* red panels open from the left, like the contact panel on the homepage */
.js .qk-wipe:is(.qk-unit, .reveal) {
  clip-path: inset(0 100% 0 0 round 18px);
  transition: clip-path 1200ms var(--qk-ease-soft) var(--qk-d, 0ms);
}
.js .qk-wipe:is(.qk-unit, .reveal).is-in { clip-path: inset(0 0 0 0 round 18px); }

/* the method film opens like an aperture */
.js .qb-article__media.qk-open { overflow: clip; }
.js .qk-open.qk-unit { clip-path: inset(14% 14% 14% 14%); transition: clip-path 1300ms var(--qk-ease-soft) var(--qk-d, 0ms); }
.js .qk-open.qk-unit.is-in { clip-path: inset(0 0 0 0); }
.js .qk-open.qk-unit video { scale: 1.14; transition: scale 1700ms var(--qk-ease-soft) var(--qk-d, 0ms); }
.js .qk-open.qk-unit.is-in video { scale: 1; }

/* drift: vertical only where the build centres the object by its silhouette; a slow turn on the
   Wann page, whose objects stand free on white */
.page-service .split--intro img, main .qb-intro__obj img { --qk-dy: -22px; --qk-rot: 0deg; }
.page-wann main .split > div:first-child > img { --qk-dy: -34px; --qk-rot: 0deg; height: auto; }
@media (min-width: 1081px) {
  .page-wann main .split > div:first-child > img { --qk-rot: 5deg; }
  .qb-intro__obj img { --qk-rot: 4deg; }
}

/* ---------- the copy cards take Ariola's grey card, with a crimson rule under the title ---------- */
.page-service .cards .service, .page-wann .steps .service {
  border: 0; border-radius: 14px; background: var(--card-3);
  padding: clamp(22px, 2vw, 28px) clamp(20px, 2vw, 28px) clamp(24px, 2.2vw, 30px);
}
.page-service .cards .service:hover, .page-wann .steps .service:hover { background: var(--card-3); }
.page-service .cards .service__title, .page-wann .steps .service__title { margin-bottom: 16px; }
.page-service .cards .service__title::after, .page-wann .steps .service__title::after {
  content: ""; display: block; width: 101px; height: 2px; margin-top: 16px;
  background: var(--qk-crimson); transform-origin: 0 50%;
}
.js .page-service .cards .service.qk-unit .service__title::after,
.js .page-wann .steps .service.qk-unit .service__title::after {
  transform: scaleX(0); transition: transform 1000ms var(--qk-ease) calc(var(--qk-d, 0ms) + 420ms);
}
.js .page-service .cards .service.qk-unit.is-in .service__title::after,
.js .page-wann .steps .service.qk-unit.is-in .service__title::after { transform: none; }
.page-service .cards .service .body:last-child, .page-wann .steps .service .body:last-child { margin-bottom: 0; }
/* her rose hairline on the Individuelle cards becomes the same crimson (no pink) */
.qb-rule-rose { background: var(--qk-crimson); }

/* ---------- "So unterstützt QKulm" and the closing panels: the brand-red block ---------- */
.page-service .split--support, .page-service .qb-closing, .qb-panel {
  background-color: var(--red-cta);
  background-image: radial-gradient(120% 95% at 100% 100%, rgba(110, 4, 6, 0.5) 0%, rgba(110, 4, 6, 0) 62%);
  color: #fff; border-radius: 18px;
}
.page-service .split--support, .page-service .qb-closing {
  padding: clamp(28px, 3.4vw, 46px) clamp(24px, 3.6vw, 52px);
  gap: 22px clamp(24px, 4vw, 56px); align-items: end;
}
.page-service .cards + .split--support, .page-service .cards + .qb-closing { margin-top: clamp(28px, 3vw, 44px); }
.page-service .split--support .service__title, .page-service .split--support .body,
.page-service .qb-closing h3, .page-service .qb-closing p, .qb-panel .h2 { color: #fff; }
.page-service .split--support .body { max-width: 54ch; }
.page-service .split--support .body:last-child { margin-bottom: 0; }
.page-service .split--support > div:last-child { display: flex; justify-content: flex-end; }
.page-service .qb-closing .btn-red { margin-top: 0; }
.qb-panel { padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px); }
/* on red, the button turns white and fills with near-black on hover */
:is(.split--support, .qb-closing, .qb-panel) .btn-red {
  background: linear-gradient(#1a1a1a, #1a1a1a) no-repeat 0 0 / 0% 100%, #fff;
  color: var(--qk-crimson);
}
:is(.split--support, .qb-closing, .qb-panel) .btn-red:hover,
:is(.split--support, .qb-closing, .qb-panel) .btn-red:focus-visible {
  background: linear-gradient(#1a1a1a, #1a1a1a) no-repeat 0 0 / 100% 100%, #fff;
  color: #fff;
}
:is(.split--support, .qb-closing, .qb-panel) a:focus-visible { outline-color: #fff; }
:is(.split--support, .qb-closing, .qb-panel) ::selection { background: #fff; color: var(--qk-crimson); }

/* ---------- page intros ---------- */
/* the Wann page's back link was flush with the window edge (its padding shorthand zeroed the gutter) */
.wrap.section--tight { padding-left: var(--pad); padding-right: var(--pad); }
.backlink { transition: color 240ms var(--qk-ease); }
.backlink:hover { color: var(--qk-crimson); }
/* the anchor pills fill with crimson like every other pill on the site */
.qb-anchor {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 0% 100%, transparent;
  transition: background-size 400ms var(--qk-ease), color 260ms var(--qk-ease), border-color 260ms var(--qk-ease);
}
.qb-anchor:hover, .qb-anchor:focus-visible {
  background: linear-gradient(var(--qk-crimson), var(--qk-crimson)) no-repeat 0 0 / 100% 100%, transparent;
  border-color: var(--qk-crimson); color: #fff;
}

/* ---------- Wann QKulm ins Spiel kommt: three chapters ---------- */
.page-wann main .h2 .qk-num {
  display: flex; align-items: center; gap: 0.3em; color: var(--qk-crimson);
  font-style: italic; font-weight: var(--weight-regular, 400);
  font-size: 1.75em; line-height: 0.92; letter-spacing: -0.02em; margin-bottom: 0.04em;
}
/* the chapter number runs out into a hairline that draws itself once the heading is up */
.page-wann main .h2 .qk-num::after {
  content: ""; flex: 1; height: 1px; margin-top: 0.08em; background: var(--rule);
  transform-origin: 0 50%;
}
.js .page-wann main .h2.qk-unit .qk-num::after { transform: scaleX(0); transition: transform 1400ms var(--qk-ease) 520ms; }
.js .page-wann main .h2.qk-unit.is-in .qk-num::after { transform: none; }
.page-wann .steps { gap: 28px; }
/* the page label (added 21 Nov on Arsen's yes) sits with the chapters instead of floating above them */
.page-wann main > .section--tight { padding-bottom: 0; }
.page-wann main > .section--tight + .section { padding-top: clamp(20px, 2.4vw, 34px); }
@media (min-width: 1081px) {
  /* the object and its button stay beside the two cards while they are read */
  .page-wann main .split { gap: clamp(32px, 4vw, 64px); align-items: start; }
  .page-wann main .split > div:first-child { position: sticky; top: 124px; }
}

/* ---------- Methode: the step numbers carry the crimson, each step ends on its result card ---------- */
.qb-article .step__title .qk-num { color: var(--qk-crimson); }
.qb-article .step__body > p:last-child:has(> strong:first-child) {
  background: var(--card-3); border-radius: 13px; padding: 18px 22px 20px; margin-top: 26px;
}
.qb-article .step__body > p:last-child > strong:first-child { color: var(--qk-crimson); }

/* ---------- Referenzen: the project titles take the same crimson rule as every other card ---------- */
.qb-proj .card__title::after {
  content: ""; display: block; width: 101px; height: 2px; margin-top: 16px;
  background: var(--qk-crimson); transform-origin: 0 50%;
}
.js .reveal .qb-proj.qk-up .card__title::after {
  transform: scaleX(0); transition: transform 1000ms var(--qk-ease) calc(var(--qk-d, 0ms) + 480ms);
}
.js .reveal.is-in .qb-proj.qk-up .card__title::after { transform: none; }

/* ---------- sub-pages: white and grey take turns down the page (21 Nov, Arsen) ----------
   qk-refine.js measures where each section's content ends and paints one gradient over the page's
   white: the next tone eases in over 320 px from there, so no edge shows anywhere. The header takes
   the tone passing under it, and a copy card on grey turns white so it keeps its contrast. */
.qk-banded body { background-image: var(--qk-bands, none); background-repeat: no-repeat; }
.qk-banded .site-header, .qk-banded .mobile-nav { background-color: var(--qk-head, var(--page)); }
.page-service .cards .service.qk-on-band, .page-wann .steps .service.qk-on-band,
.page-service .cards .service.qk-on-band:hover, .page-wann .steps .service.qk-on-band:hover,
.qb-card.qk-on-band, .qb-proj.qk-on-band,
.qb-article .step__body > p.qk-on-band:last-child:has(> strong:first-child) { background-color: #fff; }

/* ---------- phones ---------- */
@media (max-width: 1080px) {
  .page-service .split--support > div:last-child { justify-content: flex-start; }
}
@media (max-width: 520px) {
  /* long button labels wrap inside the pill instead of overflowing it */
  .btn-solid { white-space: normal; text-align: center; line-height: 1.3; padding: 13px 22px; font-size: 15px; letter-spacing: 0.06em; }
  .btn-red { text-align: center; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- reduced motion: final states, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__plate { rotate: 0deg; translate: none; }
  .hero__frame { rotate: 2.6deg; translate: calc(-50% + 16px) 14px; }
  .qk-drift { translate: none; rotate: none; }
  #ansatz .step:not(:first-child)::before { transform: none; }
  #ansatz .step__n { color: var(--qk-crimson); }
  .js .reveal .qk-line__in, .js .reveal .qk-rise, .js .reveal .qk-fade, .js .reveal .qk-aperture,
  .js .reveal .qk-aperture video, .js .reveal .portrait, .js .reveal .portrait img,
  .js #kontakt .reveal .contact__pitch {
    opacity: 1; transform: none; translate: none; scale: none; clip-path: none;
  }
  .js .reveal .qk-line__in { filter: none; }
  .js .qk-unit .qk-line__in { opacity: 1; transform: none; filter: none; }
  .js .qk-up.qk-unit, .js :is(.reveal, .qk-unit) .qk-up { opacity: 1; translate: none; }
  .js .qk-sharp.qk-unit, .js :is(.reveal, .qk-unit) .qk-sharp { opacity: 1; filter: var(--qk-tone, none); }
  .js .qk-draw.qk-unit, .js :is(.reveal, .qk-unit) .qk-draw,
  .js .service.qk-unit .service__title::after, .js .page-wann main .h2.qk-unit .qk-num::after,
  .js .reveal .qb-proj.qk-up .card__title::after { transform: none; }
  .js .qk-wipe:is(.qk-unit, .reveal), .js .qk-open.qk-unit { clip-path: none; }
  .js .qk-open.qk-unit video { scale: none; }
  .js .reveal .wann__item { opacity: 1; translate: none; }
  .js .reveal .qk-focus { opacity: 1; scale: none; filter: var(--qk-shadow); }
  .js .reveal .qk-focus.qk-plain { filter: none; }
  .js .reveal .qk-frame { opacity: 1; translate: 14px 16px; rotate: 1.8deg; }
  .js .reveal .qk-mark { background-size: 100% 0.075em; }
}

@media (min-width: 701px) {
  .page-wann img[src$="qk-wann-star.webp"],
  .page-wann img[src$="qk-wann-cage.webp"] { width: min(60%, 186px); }
  .page-wann img[src$="qk-wann-stairwave.webp"] { width: min(60%, 231px); }
}
