/* ==========================================================================
   NASHORN – NH-FB01 / Schaukelstuhl module (shared: rokmob + psychiatrie story)
   ========================================================================== */

.rk-flag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: 0;
  padding: 0 9px;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nashorn-blue);
}

.rk-flag--dark {
  color: var(--navy-950);
  background: #fff;
}

.rk-fb {
  --tone: #EB8B37;
  --rk-g: var(--gutter);
  position: relative;
  min-height: max(100vh, 760px);
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
}

.rk-fb__slab {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50vw;
  width: 24vw;
  background: color-mix(in srgb, var(--tone) 58%, var(--navy-950));
  transition: background-color 800ms var(--ease-out);
}

.rk-fb__slab::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 13%;
  background: rgba(7, 19, 29, 0.14);
}

.rk-fb__copy {
  position: absolute;
  z-index: 3;
  left: var(--rk-g);
  top: clamp(120px, 16vh, 190px);
  width: min(30vw, 460px);
}

.rk-fb__sku {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(245, 247, 248, 0.7);
}

.rk-fb__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 4.4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: #fff;
}

.rk-fb__text {
  max-width: 38ch;
  margin: 0 0 30px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: rgba(245, 247, 248, 0.8);
}

.rk-fb__facts {
  display: flex;
  gap: 44px;
  margin: 0 0 36px;
}

.rk-fb__facts dt {
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 248, 0.56);
}

.rk-fb__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.rk-fb__cta {
  --btn-fg: #fff;
}

.rk-fb__chair {
  position: absolute;
  z-index: 2;
  left: 55vw;
  bottom: 10vh;
  height: min(62vh, 700px);
  margin: 0;
  transform: translateX(-46%);
}

.rk-fb__chair::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 20%;
  right: 24%;
  bottom: 0;
  height: 6%;
  background: radial-gradient(50% 80% at 50% 72%, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
}

.rk-fb__chair img {
  display: block;
  width: auto;
  height: 100%;
  transform-origin: 50% 94%;
}

.rk-fb__chair img.is-rocking {
  animation: rk-rock 1900ms cubic-bezier(0.37, 0, 0.36, 1);
}

@keyframes rk-rock {
  0% { transform: rotate(0deg); }
  22% { transform: rotate(-2.2deg); }
  48% { transform: rotate(1.4deg); }
  72% { transform: rotate(-0.6deg); }
  100% { transform: rotate(0deg); }
}

.rk-colors {
  position: absolute;
  z-index: 3;
  right: var(--rk-g);
  top: clamp(120px, 16vh, 190px);
  width: min(16vw, 250px);
  margin: 0;
  padding: 0;
  border: 0;
}

.rk-colors__legend {
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 247, 248, 0.6);
}

.rk-colors__list {
  border-top: 1px solid var(--line-light);
}

.rk-color {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 4px 0 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line-light);
}

.rk-color input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rk-color img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-out);
}

.rk-color__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(245, 247, 248, 0.68);
  transition: color var(--dur-base) var(--ease-out);
}

.rk-color__code {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(245, 247, 248, 0.68);
}

.rk-color::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: var(--tone);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.rk-color:hover .rk-color__name {
  color: #fff;
}

.rk-color:has(input:checked) .rk-color__name {
  font-weight: 600;
  color: #fff;
}

.rk-color:has(input:checked) .rk-color__code {
  color: rgba(245, 247, 248, 0.78);
}

.rk-color:has(input:checked)::before {
  opacity: 1;
}

.rk-color:has(input:checked) img {
  outline: 1px solid rgba(245, 247, 248, 0.85);
  outline-offset: 2px;
}

.rk-color:has(input:focus-visible) {
  outline: 2px solid var(--nashorn-cyan);
  outline-offset: 2px;
}

.rk-colors__note {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(245, 247, 248, 0.55);
}

.js .rk-fb__copy,
.js .rk-colors {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 1200ms var(--ease-expo);
}

.js .rk-colors {
  transition-delay: 160ms;
}

.js .is-inview .rk-fb__copy,
.js .is-inview .rk-colors,
.reveal-fallback .rk-fb__copy,
.reveal-fallback .rk-colors {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rk-fb__slab {
    transition: none;
  }

  .js .rk-fb__copy,
  .js .rk-colors {
    opacity: 1;
    transform: none;
  }

  .rk-fb__chair img.is-rocking {
    animation: none;
  }
}
