/* ========================================================================== 
   NASHORN Einsatzbereiche responsive pilot — Psychiatrie & Kliniken
   Desktop remains owned by psychiatrie-kliniken.css and rk-fb-component.css.
   ========================================================================== */

/* Canonical non-desktop families. */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait),
       (max-width: 767.98px),
       (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (max-height: 600px) {
  .pk-page .site-main {
    overflow: clip;
  }

  .pk-page .pk-principle__title,
  .pk-page .pk-story__copy h2,
  .pk-page .rk-fb__title,
  .pk-page .cta .h2 {
    font-size: var(--site-section-title-size);
    line-height: var(--site-section-title-line-height);
    letter-spacing: var(--site-section-title-letter-spacing);
    text-wrap: balance;
  }

  .pk-page .pk-hero__lead,
  .pk-page .pk-story__copy > p,
  .pk-page .rk-fb__text,
  .pk-page .cta__text {
    font-size: var(--site-lead-size);
    line-height: var(--site-lead-line-height);
  }

  .pk-page .btn {
    min-height: var(--site-button-min-height);
  }

  .pk-page .btn .icon,
  .pk-page .pk-cat__name .icon {
    width: var(--site-action-icon-size);
    height: var(--site-action-icon-size);
  }

  /* Einsatzbereiche hero primitive: static responsive counterpart of the pin. */
  .pk-page .pk-hero {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
  }

  .pk-page .pk-hero__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .pk-page .pk-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .pk-page .pk-hero__frame {
    justify-content: space-between;
    margin-top: 0;
  }

  .pk-page .pk-hero__inner {
    width: 100%;
    min-width: 0;
    padding-top: 0;
  }

  .pk-page .pk-hero__copy {
    min-width: 0;
  }

  .pk-page .pk-hero__copy h1 {
    max-width: 13ch;
    font-size: var(--site-title-size);
    line-height: var(--site-title-line-height);
    letter-spacing: var(--site-title-letter-spacing);
    text-wrap: balance;
  }

  .pk-page .pk-hero__lead {
    max-width: 42ch;
  }

  /* Principles: same typography, spacing and touch sizing as Homepage grids. */
  .pk-page .pk-principles {
    padding-block: var(--site-section-space);
  }

  .pk-page .pk-principles__grid {
    gap: var(--site-section-space-compact) calc(2 * var(--site-card-gap));
  }

  .pk-page .pk-principles__stage {
    min-width: 0;
    margin-bottom: 0;
  }

  .pk-page .pk-principles__frame {
    width: min(100%, 34rem);
  }

  .pk-page .pk-principle {
    gap: var(--site-card-gap);
    min-height: var(--site-touch-target);
    padding-block: calc(1.25 * var(--site-card-gap));
  }

  .pk-page .pk-principle__head {
    gap: var(--site-action-gap);
  }

  .pk-page .pk-principle__head .pk-ico {
    width: calc(var(--site-action-icon-size) * 2.25);
    height: calc(var(--site-action-icon-size) * 2.25);
  }

  .pk-page .pk-principle__text {
    max-width: var(--site-reading-copy-width);
    font-size: var(--site-body-size);
    line-height: var(--site-body-line-height);
  }

  .pk-page .pk-quiet {
    max-width: var(--site-reading-copy-width);
    margin-top: calc(2 * var(--site-card-gap));
    font-size: var(--site-card-copy-size);
    line-height: var(--site-card-copy-line-height);
  }

  /* NH-FB01 story: media, context, then a responsive product module. */
  .pk-page .pk-story {
    height: auto;
  }

  .pk-page .pk-story__pin {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .pk-page .pk-story__env {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    opacity: 1;
  }

  .pk-page .pk-story__layout {
    display: grid;
    height: auto;
    padding-top: var(--site-section-space-compact);
    padding-bottom: var(--site-section-space);
  }

  .pk-page .pk-story__copy {
    min-height: 0;
  }

  .pk-page .pk-story__panel[data-pk-panel] {
    position: static;
    margin: 0;
    translate: none;
    opacity: 1;
    pointer-events: auto;
  }

  .pk-page .pk-story__copy h2,
  .pk-page .pk-story__copy p {
    max-width: var(--site-reading-copy-width);
  }

  .pk-page .pk-story__object {
    display: none;
  }

  .pk-page .pk-story__fb {
    position: relative;
    inset: auto;
    min-height: 0;
    margin-top: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .pk-page .pk-story__fb > .rk-fb {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: var(--site-section-space) var(--site-content-edge);
    gap: calc(2 * var(--site-card-gap));
  }

  .pk-page .pk-story__fb .rk-fb__slab {
    top: 0;
    bottom: auto;
    left: auto;
    right: var(--site-content-edge);
    width: min(42%, 28rem);
    height: 46%;
  }

  .pk-page .pk-story__fb .rk-fb__copy,
  .pk-page .pk-story__fb .rk-colors,
  .js .pk-page .pk-story__fb .rk-fb__copy,
  .js .pk-page .pk-story__fb .rk-colors {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
    padding: 0;
    opacity: 1;
    translate: none;
    transform: none;
  }

  .pk-page .pk-story__fb .rk-fb__chair {
    position: relative;
    inset: auto;
    height: clamp(22rem, 48vw, 36rem);
    margin: 0;
    transform: none;
  }

  .pk-page .pk-story__fb .rk-fb__chair img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .pk-page .rk-fb__sku,
  .pk-page .rk-colors__legend,
  .pk-page .rk-fb__facts dt,
  .pk-page .rk-color__code {
    font-size: var(--site-meta-size);
    line-height: var(--site-meta-line-height);
    letter-spacing: var(--site-meta-letter-spacing);
  }

  .pk-page .rk-fb__title {
    margin-bottom: var(--site-title-copy-gap);
    white-space: normal;
  }

  .pk-page .rk-fb__text {
    max-width: var(--site-reading-copy-width);
    margin-bottom: calc(1.5 * var(--site-card-gap));
  }

  .pk-page .rk-fb__facts {
    gap: calc(2 * var(--site-card-gap));
    margin-bottom: calc(2 * var(--site-card-gap));
  }

  .pk-page .rk-fb__facts dd {
    font-size: var(--site-card-title-size);
    line-height: var(--site-card-title-line-height);
  }

  .pk-page .rk-colors__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--site-card-gap);
    border-top: 0;
  }

  .pk-page .rk-color {
    grid-template-columns: var(--site-touch-target) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px var(--site-action-gap);
    min-height: var(--site-touch-target);
    padding: 8px 0;
    border-bottom: 1px solid var(--line-light);
  }

  .pk-page .rk-color img {
    grid-row: 1 / 3;
    width: var(--site-touch-target);
    height: var(--site-touch-target);
  }

  .pk-page .rk-color__name {
    font-size: var(--site-card-copy-size);
    line-height: var(--site-card-copy-line-height);
  }

  .pk-page .rk-colors__note {
    max-width: var(--site-reading-copy-width);
    font-size: var(--site-card-copy-size);
    line-height: var(--site-card-copy-line-height);
  }

  /* Sortiment: shared Einsatzbereiche responsive range primitive. */
  .pk-page .pk-range {
    padding-block: var(--site-section-space);
  }

  .pk-page .pk-range__grid {
    gap: var(--site-section-space-compact) calc(2 * var(--site-card-gap));
  }

  .pk-page .pk-cat {
    min-width: 0;
  }

  .pk-page .pk-cat__name {
    font-size: var(--site-card-feature-title-size);
    line-height: var(--site-card-feature-title-line-height);
    letter-spacing: var(--site-card-feature-title-letter-spacing);
  }

  .pk-page .pk-cat__note {
    font-size: var(--site-card-copy-size);
    line-height: var(--site-card-copy-line-height);
  }

  .pk-page .pk-range__visual {
    min-width: 0;
  }

  /* Final CTA follows the approved Homepage/internal-page composition. */
  .pk-page .cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(570px, 100svh);
  }

  .pk-page .cta__media {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .pk-page .cta__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .pk-page .cta__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding-block: var(--site-section-space);
    text-align: center;
  }

  .pk-page .cta__shift,
  .pk-page .cta__content {
    width: 100%;
    margin-inline: auto;
  }

  .pk-page .cta__content {
    max-width: 34rem;
  }

  .pk-page .cta__text {
    margin-inline: auto;
  }

  .pk-page .cta__actions {
    justify-content: center;
  }
}

/* Compact Desktop Master: preserve editorial splits at tablet scale. */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px),
       (min-width: 1024px) and (max-width: 1199.98px) and (orientation: portrait) {
  .pk-page .pk-hero {
    min-height: clamp(620px, 82svh, 760px);
  }

  .pk-page .pk-hero__frame {
    min-height: inherit;
    padding-top: calc(var(--header-h) + var(--site-section-space-compact));
    padding-bottom: var(--site-card-gap);
  }

  .pk-page .pk-hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
    column-gap: calc(2.5 * var(--site-card-gap));
  }

  .pk-page .pk-hero__copy {
    grid-column: 2;
  }

  .pk-page .pk-hero__mark {
    font-size: clamp(3rem, 6.5vw, 5.6rem);
    line-height: 0.82;
  }

  .pk-page .pk-principles__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .pk-page .pk-story__fb > .rk-fb {
    grid-template-columns: minmax(0, 0.95fr) minmax(16rem, 0.8fr) minmax(15rem, 0.72fr);
    align-items: center;
  }

  .pk-page .pk-story__fb .rk-fb__copy {
    grid-column: 1;
  }

  .pk-page .pk-story__fb .rk-fb__chair {
    grid-column: 2;
  }

  .pk-page .pk-story__fb .rk-colors {
    grid-column: 3;
  }

  .pk-page .rk-colors__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pk-page .pk-range__grid {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  }

  .pk-page .pk-range__visual {
    order: initial;
    min-height: clamp(420px, 52vw, 620px);
  }
}

/* Tablet Landscape: keep the editorial copy clear of the lower wordmark. */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (min-height: 601px) {
  .pk-page .pk-hero {
    min-height: clamp(580px, 86svh, 700px);
  }

  .pk-page .pk-hero__frame {
    padding-top: calc(var(--header-h) + clamp(24px, 4vh, 40px));
    padding-bottom: clamp(10px, 1.5vh, 18px);
  }

  .pk-page .pk-hero__inner {
    flex: 1;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    padding-block: clamp(18px, 3.5vh, 34px);
  }

  .pk-page .pk-hero__copy {
    width: min(100%, 38rem);
    max-width: none;
  }

  .pk-page .pk-hero__copy h1 {
    max-width: 16ch;
    margin-bottom: clamp(16px, 2.2vh, 22px);
    font-size: clamp(2.75rem, 5vw, 3.65rem);
    line-height: 0.98;
  }

  .pk-page .pk-hero__lead {
    max-width: 46ch;
    margin-bottom: clamp(20px, 3vh, 28px);
  }

  .pk-page .pk-hero__copy .btn {
    min-width: min(100%, 15rem);
  }

  .pk-page .pk-hero__mark {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 0.86;
  }

  .pk-page .pk-hero__media img {
    object-position: 35% 72%;
  }
}

/* Touch Master: stack stories and expose the Sortiment as a touch rail. */
@media (max-width: 767.98px),
       (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait),
       (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) and (max-height: 600px) {
  .pk-page .pk-hero {
    min-height: max(640px, 100svh);
  }

  .pk-page .pk-hero__frame {
    min-height: inherit;
    padding-top: calc(var(--header-h) + var(--site-section-space-compact));
    padding-bottom: var(--site-content-edge);
  }

  .pk-page .pk-hero__inner,
  .pk-page .pk-principles__grid,
  .pk-page .pk-story__layout,
  .pk-page .pk-range__grid {
    grid-template-columns: 1fr;
  }

  .pk-page .pk-hero__copy {
    grid-column: 1;
  }

  .pk-page .pk-hero__copy .btn {
    width: 100%;
    justify-content: space-between;
  }

  .pk-page .pk-hero__mark {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.5vw, 4.35rem);
    line-height: 0.84;
    white-space: normal;
    text-wrap: balance;
  }

  .pk-page .pk-story__fb > .rk-fb {
    grid-template-columns: 1fr;
  }

  .pk-page .pk-story__fb .rk-fb__chair {
    grid-row: 1;
  }

  .pk-page .pk-story__fb .rk-fb__copy {
    grid-row: 2;
  }

  .pk-page .pk-story__fb .rk-colors {
    grid-row: 3;
  }

  .pk-page .pk-range__nav {
    min-width: 0;
  }

  .pk-page .pk-range__nav nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76%, 1fr);
    gap: var(--site-card-gap);
    width: calc(100% + var(--site-content-edge));
    padding-right: var(--site-content-edge);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .pk-page .pk-range__nav nav::-webkit-scrollbar {
    display: none;
  }

  .pk-page .pk-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(260px, 58vw, 390px);
    padding: var(--site-card-padding);
    overflow: hidden;
    color: #fff;
    background-position: center;
    background-size: cover;
    scroll-snap-align: start;
  }

  .pk-page .pk-cat[data-pk-cat="zimmer"],
  .pk-page .pk-cat[data-pk-cat="sessel"],
  .pk-page .pk-cat[data-pk-cat="tische"] {
    background-image: linear-gradient(to top, rgba(7, 19, 29, 0.9), rgba(7, 19, 29, 0.04) 68%), var(--pk-range-image);
  }

  .pk-page .pk-cat + .pk-cat {
    border-top: 0;
  }

  .pk-page .pk-cat__name,
  .pk-page .pk-cat:hover .pk-cat__name,
  .pk-page .pk-cat:focus-visible .pk-cat__name,
  .pk-page .pk-cat.is-current .pk-cat__name {
    position: relative;
    z-index: 1;
    color: #fff;
  }

  .pk-page .pk-cat__note {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.78);
  }

  .pk-page .pk-range__visual {
    display: none;
  }
}

/* Small Tablet Portrait keeps the product story spacious and controlled. */
@media (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait) {
  .pk-page .pk-principles__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .pk-page .pk-story__fb > .rk-fb {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-page .pk-story__fb .rk-fb__chair {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .pk-page .pk-story__fb .rk-fb__copy {
    grid-column: 1;
    grid-row: 2;
  }

  .pk-page .pk-story__fb .rk-colors {
    grid-column: 2;
    grid-row: 2;
  }

  .pk-page .rk-colors__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pk-page .pk-range__nav nav {
    grid-auto-columns: minmax(52%, 1fr);
  }
}

/* Mobile Portrait: compact media-first flow and full-width actions. */
@media (max-width: 767.98px) and (orientation: portrait) {
  .pk-page .pk-hero__media img {
    object-position: 40% center;
  }

  .pk-page .pk-principles__frame {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .pk-page .pk-story__env {
    aspect-ratio: 4 / 3;
  }

  .pk-page .pk-story__fb > .rk-fb {
    padding-inline: var(--site-content-edge);
  }

  .pk-page .pk-story__fb .rk-fb__chair {
    height: clamp(20rem, 105vw, 30rem);
  }

  .pk-page .rk-colors__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pk-page .rk-fb__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-page .rk-fb__cta {
    width: 100%;
    justify-content: space-between;
  }

  .pk-page .pk-range__nav nav {
    grid-auto-columns: minmax(84%, 1fr);
  }

  .pk-page .cta__actions {
    align-items: center;
    width: 100%;
  }

  .pk-page .cta__actions .btn {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
  }
}

/* Mobile Landscape / low-height Touch Master. */
@media (max-width: 1199.98px) and (orientation: landscape) and (max-height: 600px) {
  .pk-page .pk-hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .pk-page .pk-hero__frame {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    margin-inline: auto;
    padding-top: calc(var(--header-h) + clamp(10px, 2.5vh, 16px));
    padding-bottom: clamp(8px, 2vh, 14px);
  }

  .pk-page .pk-hero__inner {
    flex: 1;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    padding-block: clamp(8px, 2vh, 16px);
  }

  .pk-page .pk-hero__copy {
    grid-column: 2;
    width: min(100%, 34rem);
    max-width: none;
  }

  .pk-page .pk-hero__copy h1 {
    max-width: 17ch;
    margin-bottom: clamp(8px, 2vh, 14px);
    font-size: clamp(1.85rem, 4.1vw, 2.75rem);
    line-height: 0.98;
  }

  .pk-page .pk-hero__lead {
    max-width: 45ch;
    margin-bottom: clamp(10px, 2.4vh, 18px);
  }

  .pk-page .pk-hero__copy .btn {
    width: fit-content;
    min-width: min(100%, 14rem);
  }

  .pk-page .pk-hero__mark {
    font-size: clamp(1.85rem, 4.6vw, 3rem);
    line-height: 0.86;
    white-space: nowrap;
  }

  .pk-page .pk-hero__media img {
    object-position: 35% 72%;
  }

  .pk-page .pk-principles__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .pk-page .pk-principles__frame {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .pk-page .pk-story__layout {
    padding-block: var(--site-section-space-compact);
  }

  .pk-page .pk-story__fb > .rk-fb {
    grid-template-columns: minmax(0, 0.9fr) minmax(14rem, 0.8fr) minmax(13rem, 0.72fr);
    align-items: center;
    padding-block: var(--site-section-space-compact);
  }

  .pk-page .pk-story__fb .rk-fb__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .pk-page .pk-story__fb .rk-fb__chair {
    grid-column: 2;
    grid-row: 1;
    height: min(82vh, 28rem);
  }

  .pk-page .pk-story__fb .rk-colors {
    grid-column: 3;
    grid-row: 1;
  }

  .pk-page .rk-colors__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pk-page .pk-range__nav nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    width: 100%;
    padding-right: 0;
    overflow: visible;
  }

  .pk-page .pk-cat {
    min-height: 230px;
  }

  .pk-page .cta {
    min-height: 100svh;
  }
}
