/* ========================================================================== 
   NASHORN Einsatzbereiche responsive - Justizvollzug
   Desktop remains owned by psychiatrie-kliniken.css and justizvollzug.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) {
  /* Clip the content wrapper, matching static main.site-responsive-content.
     site-responsive-content also sits on body for tokens; clipping body locks the viewport. */
  .jv-page .site-main {
    overflow: clip;
  }

  .jv-page .jv-fix__intro-title h2,
  .jv-page .jv-range__title,
  .jv-page .ss-field__title,
  .jv-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;
  }

  .jv-page .pk-hero__lead,
  .jv-page .jv-fix__intro-body,
  .jv-page .ss-field__text,
  .jv-page .cta__text {
    font-size: var(--site-lead-size);
    line-height: var(--site-lead-line-height);
  }

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

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

  /* Einsatzbereiche hero shared with Psychiatrie and Pflege. */
  .jv-page .pk-hero {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
  }

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

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

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

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

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

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

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

  /* Engineering story: existing product panels become a technical rail. */
  .jv-page .jv-fix {
    --jv-fix-rail: var(--site-content-edge);
  }

  .jv-page .jv-fix__sticky,
  .jv-page .jv-fix__stage {
    height: auto;
  }

  .jv-page .jv-fix__intro {
    align-items: end;
    padding-block: var(--site-section-space-compact);
    padding-inline: 0;
  }

  .jv-page .jv-fix__intro-title h2 {
    max-width: 13ch;
  }

  .jv-page .jv-fix__intro-body {
    max-width: var(--site-reading-copy-width);
  }

  .jv-page .jv-fix__viewport,
  .jv-page .jv-fix__shade {
    display: none;
  }

  .jv-page .jv-fix__visual {
    overflow: visible;
    padding-bottom: var(--site-section-space-compact);
    background: transparent;
  }

  .jv-page .jv-fix__sortiment {
    position: static;
    display: flex;
    width: min(var(--container-wide), calc(100% - (2 * var(--site-content-edge))));
    min-height: var(--site-touch-target);
    margin: 0 auto;
    align-items: center;
  }

  .jv-page .jv-fix__copy {
    padding: var(--site-section-space) 0;
  }

  .jv-page .jv-fix__stack {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76%, 1fr);
    gap: var(--site-card-gap);
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .jv-page .jv-fix__stack::-webkit-scrollbar {
    display: none;
  }

  .jv-page .jv-fix__panel,
  .jv-page .jv-fix__panel:last-of-type {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #fff;
    scroll-snap-align: start;
  }

  .jv-page .jv-fix__thumb {
    display: block;
    margin: 0;
    overflow: hidden;
    background: #fff;
  }

  .jv-page .jv-fix__thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center;
    transition: transform 480ms var(--pf-ease);
  }

  .jv-page .jv-fix__panel:hover .jv-fix__thumb img,
  .jv-page .jv-fix__panel:focus-within .jv-fix__thumb img {
    transform: scale(1.02);
  }

  .jv-page .jv-fix__head {
    margin: 0;
    padding: var(--site-card-padding);
    padding-bottom: calc(1.25 * var(--site-card-gap));
  }

  .jv-page .jv-fix__sku {
    margin-bottom: 8px;
    font-size: var(--site-meta-size);
    line-height: var(--site-meta-line-height);
    letter-spacing: var(--site-meta-letter-spacing);
  }

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

  .jv-page .jv-fix__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(1.5 * var(--site-card-gap)) var(--site-card-gap);
    max-width: none;
    padding-inline: calc(1.5 * var(--site-card-gap));
  }

  .jv-page .jv-fix__specs dt {
    gap: 8px;
    margin-bottom: 5px;
    font-size: var(--site-meta-size);
    line-height: var(--site-meta-line-height);
    letter-spacing: var(--site-meta-letter-spacing);
  }

  .jv-page .jv-fix__specs dt .icon {
    width: calc(var(--site-action-icon-size) * 1.35);
    height: calc(var(--site-action-icon-size) * 1.35);
  }

  .jv-page .jv-fix__specs dd {
    font-size: var(--site-card-title-size);
    line-height: var(--site-card-title-line-height);
    letter-spacing: var(--site-card-title-letter-spacing);
  }

  .jv-page .jv-fix__more {
    align-self: end;
    width: fit-content;
    min-height: var(--site-touch-target);
    margin: calc(1.5 * var(--site-card-gap)) var(--site-card-gap) var(--site-card-gap);
  }

  /* Sortiment: approved Einsatzbereiche product/category rail. */
  .jv-page .pk-range {
    padding-block: var(--site-section-space);
  }

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

  .jv-page .jv-range__title {
    max-width: 15ch;
    margin-bottom: calc(2 * var(--site-card-gap));
  }

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

  .jv-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);
  }

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

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

  /* Produktdaten: structured editorial split without a narrow legacy inset. */
  .jv-page .ss-field {
    padding-block: var(--site-section-space);
  }

  .jv-page .ss-field__box {
    gap: var(--site-section-space-compact) calc(2 * var(--site-card-gap));
    padding: var(--site-card-padding);
  }

  .jv-page .ss-field__title {
    max-width: 13ch;
  }

  .jv-page .ss-field__aside {
    padding-bottom: 0;
  }

  .jv-page .ss-field__text {
    max-width: var(--site-reading-copy-width);
    margin-bottom: calc(1.5 * var(--site-card-gap));
  }

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

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

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

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

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

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

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

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

/* Compact Desktop Master: editorial splits and controlled two-card rail. */
@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) {
  .jv-page .pk-hero {
    min-height: clamp(580px, 86svh, 700px);
  }

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

  .jv-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);
  }

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

  .jv-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;
  }

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

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

  .jv-page .pk-hero__media img {
    object-position: 70% 50%;
  }

  .jv-page .jv-fix__intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    column-gap: calc(2 * var(--site-card-gap));
  }

  .jv-page .jv-fix__stack {
    grid-auto-columns: minmax(47%, 1fr);
  }

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

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

  .jv-page .ss-field__box {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    align-items: end;
  }

  .jv-page .ss-field__aside {
    margin-top: 0;
    padding-top: 0;
    padding-left: calc(2 * var(--site-card-gap));
    border-top: 0;
    border-left: 1px solid rgba(1, 73, 142, 0.22);
  }
}

/* Touch Master: stack introductions and expose both product systems as rails. */
@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) {
  .jv-page .pk-hero {
    min-height: max(640px, 100svh);
  }

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

  .jv-page .pk-hero__inner {
    grid-template-columns: 1fr;
  }

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

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

  .jv-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;
  }

  .jv-page .jv-fix__intro {
    grid-template-columns: 1fr;
    row-gap: var(--site-title-copy-gap);
  }

  .jv-page .pk-range__grid {
    grid-template-columns: 1fr;
  }

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

  .jv-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;
  }

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

  .jv-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;
    background-image: linear-gradient(to top, rgba(7, 19, 29, 0.9), rgba(7, 19, 29, 0.04) 68%), var(--pk-range-image);
    scroll-snap-align: start;
  }

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

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

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

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

  .jv-page .ss-field__box {
    grid-template-columns: 1fr;
  }

  .jv-page .ss-field__aside {
    margin-top: 0;
    padding-top: var(--site-card-gap);
    padding-left: 0;
    border-top: 1px solid rgba(1, 73, 142, 0.22);
    border-left: 0;
  }
}

/* Small Tablet Portrait: balanced rail widths without compressed cards. */
@media (min-width: 768px) and (max-width: 1023.98px) and (orientation: portrait) {
  .jv-page .jv-fix__stack,
  .jv-page .pk-range__nav nav {
    grid-auto-columns: minmax(52%, 1fr);
  }
}

/* Mobile Portrait: one deliberate card at a time and full-width primary flow. */
@media (max-width: 767.98px) and (orientation: portrait) {
  .jv-page .pk-hero__media img {
    object-position: 58% center;
  }

  .jv-page .pk-hero__copy h1 {
    max-width: 12ch;
  }

  .jv-page .pk-hero__mark {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

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

  .jv-page .jv-fix__specs {
    grid-template-columns: 1fr;
    align-self: start;
    align-content: start;
    gap: 14px;
  }

  .jv-page .jv-fix__panel,
  .jv-page .jv-fix__panel:last-of-type {
    grid-template-rows: auto auto auto 1fr;
    align-content: start;
  }

  .jv-page .jv-fix__specs dt {
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
  }

  .jv-page .jv-fix__specs dt .icon {
    width: 30px;
    height: 30px;
  }

  .jv-page .jv-fix__specs dd {
    margin-left: calc(2rem + 10px);
  }

  .jv-page .ss-field__box {
    padding: var(--site-card-compact-padding);
  }

  .jv-page .ss-field__aside .btn {
    width: 100%;
    justify-content: space-between;
  }

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

  .jv-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) {
  .jv-page .pk-hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .jv-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);
  }

  .jv-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);
  }

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

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

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

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

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

  .jv-page .pk-hero__media img {
    object-position: 70% 50%;
  }

  .jv-page .jv-fix__intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    row-gap: 0;
    column-gap: calc(2 * var(--site-card-gap));
  }

  .jv-page .jv-fix__stack {
    grid-auto-columns: minmax(32%, 1fr);
  }

  .jv-page .jv-fix__specs {
    grid-template-columns: 1fr;
  }

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

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

  .jv-page .ss-field__box {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: end;
  }

  .jv-page .ss-field__aside {
    padding-top: 0;
    padding-left: calc(2 * var(--site-card-gap));
    border-top: 0;
    border-left: 1px solid rgba(1, 73, 142, 0.22);
  }

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