/* Loaded only on phones. The existing desktop type, films and line reveals are the starting point. */
:root { --pad: clamp(17px, 5vw, 30px); }
html { scroll-padding-top: 72px; }
.site-header__inner { height: 58px; padding: 0 var(--pad); }
.site-header__inner::after { background: #d1d0cd; }
.brand { gap: 11px; }
.brand__q { font-size: 33px; }
.brand__tag { display: inline; font-size: clamp(10px, 2.8vw, 14px); font-style: italic; }
.burger { border: 0; }
.burger span { width: 23px; transition: transform 240ms ease-in-out; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.mobile-nav .phone-menu-group { display: list-item; }
.mobile-nav { background: white; }
.js .mobile-nav.is-open {
  position: absolute; inset: 100% 0 auto; height: calc(100vh - 58px);
  height: calc(100dvh - 58px); overflow-y: auto; overscroll-behavior: contain;
}
html.phone-menu-open { overflow: hidden; }
.js .mobile-nav.is-open .wrap { min-height: 100%; display: grid; }
.js .mobile-nav.is-open ul { display: flex; flex-direction: column; }
.js .mobile-nav.is-open li:last-child { margin-top: auto; padding-top: 16px; }
.mobile-nav ul { padding: 12px 0 max(18px, env(safe-area-inset-bottom)); }
.mobile-nav li { border-bottom: 1px solid #d6d5d2; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 46px;
  padding: 7px 0; font: 400 clamp(22px, 6vw, 30px)/1.18 var(--serif);
}
.mobile-nav .mobile-sub, .mobile-nav .phone-menu-wann { padding-left: 17px; margin: 0; border: 0; }
.mobile-nav :is(.mobile-sub,.phone-menu-wann) a { font: 500 14px/1.35 var(--sans); min-height: 44px; }
.mobile-nav li:has(+ .phone-menu-wann) { border: 0; }
.mobile-nav .mobile-sub:has(+ li:not(.mobile-sub)) { border-bottom: 1px solid #d6d5d2; padding-bottom: 9px; }
.mobile-nav [aria-current="page"] { color: var(--crimson); }
.mobile-nav [aria-current="page"]::after { content: ''; width: 7px; height: 7px; background: currentColor; }
.mobile-nav li:last-child { margin-top: 12px; border: 0; }
.mobile-nav li:last-child a { padding-inline: 14px; background: var(--crimson); color: white; }
.mobile-nav li:last-child a::after { content: '↗'; }
:root:not(.js) .site-header { position: static; }

/* A single typographic cover: wordmark, moving landscape, then its meaning. */
.hero {
  text-align: left;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 58px);
  min-height: calc(100dvh - 58px);
  padding: clamp(20px, 4vh, 36px) 0 clamp(28px, 6vh, 52px);
}
.hero > .wrap { display: grid; }
.hero__title {
  grid-row: 1; line-height: .98; font-size: clamp(76px, 24.4vw, 142px);
  letter-spacing: -.045em; margin-left: -.045em;
}
.hero__stage { grid-row: 2; padding: 0; margin: 11px 0 0; }
.hero__plate {
  width: 100%; max-width: none; aspect-ratio: 2.58;
  transform: none; rotate: none; translate: none; box-shadow: none; animation: none;
}
.hero__plate .hero__object { width: 100%; height: 90%; object-fit: contain; transform: translate(-50%, -50%); }
.hero__stage .hero__frame { display: none; }
.hero__stage::after { content: ''; display: block; width: 18%; height: 3px; background: var(--crimson); }
.hero__strap {
  grid-row: 3; text-transform: none; text-align: left; letter-spacing: -.035em;
  font: 400 clamp(31px, 8.4vw, 47px)/1.08 var(--serif); max-width: 19ch; text-wrap: balance;
  margin: 19px 0 0;
}
.hero__strap span { font-style: italic; }
.hero__cta { grid-row: 4; margin: 20px 0 0; }
.hero__cta .btn-solid {
  border-radius: 0; min-height: 44px; padding: 0 17px;
  font: 650 11px/1.15 var(--sans); letter-spacing: .075em; gap: 22px;
}
.hero__cta .btn-solid::after { content: '↓'; font-size: 17px; }
.hero__foot,.hero__rule { display: none; }
.loop-toggle { width: 44px; min-width: 44px; height: 44px; }
.section { padding-block: clamp(38px, 10vw, 58px); }
.eyebrow, .wann__head .eyebrow {
  font: 650 11px/1.5 var(--sans); letter-spacing: .105em; margin-bottom: 12px;
  color: var(--crimson);
}
.h2 { font-size: clamp(32px, 8.7vw, 47px); letter-spacing: -.025em; }
.lead { font-size: 18px; line-height: 1.42; }
.section__cta .btn-solid { min-height: 44px; padding-inline: 16px; font-size: 11px; }
#unser-blick .split { display: block; background: #f2f2f2; }
#unser-blick .split__panel { background: transparent; padding: 24px 18px 22px; }
#unser-blick .h2 { max-width: 67%; font-size: clamp(25px, 7.2vw, 38px); margin-bottom: 21px; }
#unser-blick .split__media--photo {
  position: absolute; right: 3%; top: 51px; width: 28%; min-height: 0; height: auto;
  aspect-ratio: 1; padding: 0; overflow: hidden; pointer-events: none;
}
#unser-blick .split__photo { width: 100%; margin: 0; --qk-dy: -4px; }
#unser-blick .split__panel .section__cta { gap: 8px; margin: 18px 0 0; }
#unser-blick .split__scroll { display: flex; position: static; align-items: center; gap: 8px;
  transform: none; letter-spacing: .015em; min-height: 44px; padding: 9px 18px; border-top: 1px solid #d1d0cd; white-space: normal; }

#wann-qkulm .wann__grid { grid-template-columns: minmax(0,1fr) minmax(86px,29%); gap: 16px 12px; }
.wann__head { grid-column: 1 / -1; grid-row: 1; }
.wann__head .h2 { margin-right: 29%; }
#wann-qkulm .wann__head .lead { margin: 14px 0 0; max-width: 66%; }
#wann-qkulm .wann__figure {
  grid-column: 2; grid-row: 1; align-self: end; width: 100%; border: 0; border-radius: 0;
  padding: 8px 4px 4px; clip-path: none; margin: 0; overflow: hidden;
}
#wann-qkulm .wann__img { width: 100%; margin: 0; }
.wann__count { justify-self: center; margin-top: 1px; font-size: 11px; }
.wann__meter { display: none; }
.wann__list { grid-column: 1 / -1; grid-row: 2; }
.wann__title { font-size: clamp(21px, 5.7vw, 27px); }
.wann__item.is-active .wann__link { min-height: 44px; align-content: center; margin-bottom: 4px; }

#leistungen .wrap { position: relative; }
#leistungen .wrap > .h2 { max-width: 70%; }
#leistungen .wrap > .lead { max-width: 32ch; margin: 14px 0 23px; }
#leistungen .services { display: block; }
#leistungen .services__motion {
  position: absolute; top: 2px; right: var(--pad); width: clamp(76px, 21vw, 113px);
  border-radius: 0; overflow: hidden; margin: 0;
}
#leistungen .services__motion .loop-toggle { bottom: 0; right: 0; }
#leistungen .services__list { position: relative; }
#leistungen .service {
  grid-template-columns: 28px minmax(0,1fr) 18px; gap: 6px 13px; padding: 19px 0;
}
#leistungen .service__num {
  height: 28px; display: grid; place-items: center; padding: 0; position: relative;
  font: 600 11px/1 var(--sans); letter-spacing: .06em; color: var(--crimson);
}
#leistungen .service__title { font-size: clamp(23px, 6vw, 30px); font-weight: 550; }
#leistungen .service__list { display: block; font: 450 14px/1.45 var(--sans); color: #404040; }
#leistungen .service__arrow { align-self: start; line-height: 28px; font-size: 22px; }
#leistungen .service::before { display: none; }
#leistungen .service:hover .service__title { translate: none; }
/* One marker behind the numbers. Each numeral keeps a readable red fallback until measured. */
.phone-service-marker {
  position: absolute; z-index: 2; top: 0; left: 0; width: 28px; height: 28px;
  display: grid; place-items: center; color: white; font: 600 11px/1 var(--sans); letter-spacing: .06em;
  background: var(--crimson); transform: translateY(var(--marker-y)); pointer-events: none;
  transition: transform 300ms ease-in-out;
}
#leistungen .section__cta--center { text-align: left; margin-top: 19px; }

.qk-panel,.qk-panel--quote { padding: 23px 18px; }
.qk-panel__object { width: min(40%,150px); justify-self: end; }
#ansatz .split img { width: min(40%,156px); height: auto; margin: 10px 0 0 auto; }
#ansatz .steps .step__body { font-size: 17px; }
.qk-portrait-stack, .quote-grid > .portrait { width: min(60%,215px); justify-self: end; }

.page-service .section { padding-block: 32px; }
.page-service main > .section:first-child .section__cta, .page-service .qb-anchors {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 20px 0 0;
}
.page-service .section__cta .pill,.page-service .qb-anchor {
  min-width: 0; min-height: 44px; padding: 6px 12px; font: 550 13px/1.3 var(--sans);
}
.page-service .split--intro > div:last-child { justify-content: flex-end; margin: 0; }
.page-service .split--intro img,.page-service .qb-intro__obj img { width: min(35vw,150px); height: auto; max-height: 128px; object-fit: contain; margin: 0; }
.page-service .qb-intro__obj { justify-content: flex-end; }
.page-service .cards { gap: 10px; }
.page-wann main .split > div:first-child > img { width: min(24.6vw,102px); max-height: 90px; object-fit: contain; margin-inline: auto 0; }
.backlink { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal img.qk-focus,
  .js .page-wann .wann-chapter__art img.qk-sharp {
    transition-duration: 550ms;
    transition-delay: 70ms;
  }
}

#kontakt { padding: 28px 0 42px; }
#kontakt .contact__pitch { position: relative; padding: 23px 18px 18px; }
#kontakt .contact__pitch h2 { font-size: clamp(28px,8.1vw,42px); margin-bottom: 17px; }
#kontakt .contact__pitch p { font-size: 16px; margin-bottom: 10px; }
#kontakt .contact__pitch .contact__mail { margin: 12px 64px 0 0; font: 550 14px/1.4 var(--sans); }
#kontakt .contact__mail a { display: inline-flex; align-items: center; min-height: 44px; }
#kontakt .contact__object { position: absolute; width: 61px; height: 55px; object-fit: contain; right: 12px; bottom: 10px; margin: 0; }
#kontakt .contact__formpanel { background: #f4f3f1; padding: 23px 18px 27px; }
.phone-form-title { display: block; margin: 0 0 20px; font: 400 29px/1.12 var(--serif); }
#kontakt .field__label { font-size: 14px; font-weight: 650; }
#kontakt .input,#kontakt .textarea { font: 400 16px/1.4 var(--sans); background: white; border-radius: 2px; min-height: 46px; }
#kontakt .choices { gap: 0; background: white; border: 1px solid #cbc9c6; }
#kontakt .choice { min-height: 47px; border: 0; border-radius: 0; padding: 10px; }
#kontakt .choice + .choice { border-top: 1px solid #dedbd8; }
#kontakt .choice:has(input:checked) { box-shadow: inset 2px 0 var(--crimson); }
#kontakt .choice:has(input:focus-visible) { outline-offset: -2px; }
#kontakt .form__submit { border-radius: 2px; }
#kontakt .form:has(.form__submit:disabled):has(.form__status.is-error) { display: flex; flex-direction: column; }
#kontakt .form__submit:disabled + .form__status.is-error { order: -1; margin: -6px 0 20px; }
@media (prefers-reduced-motion: reduce) {
  .phone-service-marker,.burger span { transition: none; }
}
