/* ==========================================================================
   BaW Bootslift-Konfigurator – Frontend CSS
   Angepasst an die Fangschleuse2026 CI (fs-Tokens)
   ========================================================================== */

/* ---------------------------------------------------------------- Wrapper */

.baw-lk {
  max-width: var(--fs-content, 1140px);
  margin: 0 auto;
  padding: 0;
  color: var(--fs-navy, #28364b);
}

.baw-lk *,
.baw-lk *::before,
.baw-lk *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------- Crumbs */

.baw-lk__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .85rem;
  color: var(--fs-grey, #7a7a7a);
  margin-bottom: 1.5rem;
}

.baw-lk__crumbs a {
  color: var(--fs-gold, #cebd88);
  text-decoration: none;
}

.baw-lk__crumbs a:hover {
  color: var(--fs-navy, #28364b);
}

/* ---------------------------------------------------------------- Intro */

.baw-lk__intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.baw-lk__intro h1 {
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: 2.7rem; /* legacy-edge-fallback */
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 400;
  color: var(--fs-navy, #28364b);
  margin: 0 0 .4em;
}

.baw-lk__intro p {
  color: var(--fs-navy, #28364b);
  margin: 0;
  font-size: .98rem;
  line-height: 1.55;
  max-width: 60ch;
  margin-left: auto; /* legacy-edge-fallback */
  margin-right: auto; /* legacy-edge-fallback */
  margin-inline: auto;
}

.baw-lk .baw-lk__intro hr {
  width: 320px; /* legacy-edge-fallback */
  width: min(320px, 50%);
  margin: 1rem auto 1.2rem;
}

.baw-lk__empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--fs-grey, #7a7a7a);
  font-style: italic;
}

/* ---------------------------------------------------------------- Grid */

.baw-lk__grid {
  display: grid;
  gap: 2rem;
}

.baw-lk__grid--systeme {
  grid-template-columns: repeat(4, 1fr);
}

.baw-lk__grid--modelle {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------------------------------------------------------------- Cards */

.baw-lk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: .6rem;
  overflow: hidden;
  background: var(--fs-white, #fff);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); /* legacy-edge-fallback */
  box-shadow: 0 2px 12px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.baw-lk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); /* legacy-edge-fallback */
  box-shadow: 0 8px 24px rgb(0 0 0 / .12), 0 0 0 1px rgb(0 0 0 / .04);
}

.baw-lk-card__media {
  position: relative;
  overflow: hidden;
}

.baw-lk-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.baw-lk-card__media--contain img {
  object-fit: contain;
  padding: 1.5rem;
  background: var(--fs-white, #fff);
}

.baw-lk-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .6rem;
  padding: 1.4rem 1.5rem 1.8rem;
  background: var(--fs-white, #fff);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.baw-lk-card__body h2 {
  margin: 0;
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--fs-navy, #28364b);
}

.baw-lk-card__lead {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--fs-gold, #cebd88);
}

.baw-lk-card__text {
  margin: 0;
  flex: 1;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--fs-navy, #28364b);
}

.baw-lk-card__cta {
  display: inline-block;
  margin-top: auto;
  padding: .55em 1.2em;
  border-radius: .3rem;
  background: var(--fs-navy, #28364b);
  color: var(--fs-gold, #cebd88);
  font-family: var(--fs-font-body, 'Raleway', sans-serif);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}

.baw-lk-card:hover .baw-lk-card__cta {
  background: var(--fs-gold, #cebd88);
  color: var(--fs-navy, #28364b);
}

/* ---------------------------------------------------------------- Badge */

.baw-lk-badge {
  position: absolute;
  top: .8rem;
  left: .8rem;
  padding: .3rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fs-white, #fff);
  z-index: 2;
}

.baw-lk-badge--neu {
  background: var(--fs-navy, #28364b);
}

.baw-lk-badge--auslauf {
  background: #8e3232;
}

/* ================================================================
   KONFIGURATOR – 2/3 Visual + 1/3 Panel
   ================================================================ */

.baw-lk-konf {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.baw-lk-konf__visual {
  min-width: 0;
}

.baw-lk-konf__panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--fs-white, #fff);
  border-radius: .6rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); /* legacy-edge-fallback */
  box-shadow: 0 2px 12px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .04);
  padding: 0;
}

/* ---------------------------------------------------------------- Stage */

.baw-lk-stage {
  position: relative;
  aspect-ratio: var(--baw-lk-ratio, 4 / 3);
  background: var(--fs-white, #fff);
  border-radius: .6rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); /* legacy-edge-fallback */
  box-shadow: 0 2px 12px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .04);
  overflow: hidden;
}

.baw-lk-stage__base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.baw-lk-stage__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--fs-grey, #7a7a7a);
  font-style: italic;
}

.baw-lk-stage__layers {
  position: absolute;
  top: 0; /* legacy-edge-fallback */
  right: 0; /* legacy-edge-fallback */
  bottom: 0; /* legacy-edge-fallback */
  left: 0; /* legacy-edge-fallback */
  inset: 0;
  pointer-events: none;
}

.baw-lk-stage__layer {
  position: absolute;
  display: block;
  height: auto;
  transition: opacity .35s ease;
}

.baw-lk-stage__layer[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Specs */

.baw-lk-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1.2rem 0;
  padding: 0;
}

.baw-lk-specs > div {
  display: flex;
  gap: .4rem;
}

.baw-lk-specs dt {
  font-weight: 600;
  font-size: .85rem;
  color: var(--fs-grey, #7a7a7a);
}

.baw-lk-specs dd {
  margin: 0;
  font-size: .85rem;
}

.baw-lk-konf__description {
  margin: 1rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--fs-navy, #28364b);
}

/* ---------------------------------------------------------------- Panel */

.baw-lk-panel__head {
  padding: 1.5rem 1.5rem .5rem;
}

.baw-lk-panel__kicker {
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fs-gold, #cebd88);
  margin: 0 0 .25rem;
  font-weight: 400;
}

.baw-lk-panel__head h1 {
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 .25rem;
  color: var(--fs-navy, #28364b);
}

.baw-lk-panel__sub {
  color: var(--fs-grey, #7a7a7a);
  font-size: .85rem;
  margin: 0;
}

/* ---------------------------------------------------------------- Total */

.baw-lk-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .8rem;
  padding: 1rem 1.5rem;
  background: var(--fs-cream, #f1f0e8);
  border-top: 1px solid #d9d7cc;
  border-bottom: 1px solid #d9d7cc;
}

.baw-lk-total__label {
  font-size: .85rem;
  color: var(--fs-grey, #7a7a7a);
}

.baw-lk-total__value {
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: 1.5rem;
  color: var(--fs-navy, #28364b);
}

.baw-lk-total__note {
  width: 100%;
  font-size: .75rem;
  color: var(--fs-grey, #7a7a7a);
}

/* ---------------------------------------------------------------- Options */

.baw-lk-options {
  padding: .5rem 1.5rem 1rem;
}

.baw-lk-optgroup {
  border: none;
  padding: 0;
  margin: 0 0 .8rem;
}

.baw-lk-optgroup legend {
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: .82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--fs-gold, #cebd88);
  padding: .7rem 0 .35rem;
  border-bottom: 1px solid #d9d7cc;
  margin-bottom: .35rem;
  width: 100%;
}

.baw-lk-option {
  display: flex;
  align-items: center;
}

.baw-lk-option input[type="checkbox"] {
  display: none;
}

.baw-lk-option label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .6rem;
  border-radius: .25rem;
  cursor: pointer;
  transition: background .15s ease;
  gap: .5rem;
  font-size: .88rem;
}

.baw-lk-option label:hover {
  background: var(--fs-cream, #f1f0e8);
}

.baw-lk-option input:checked + label {
  background: var(--fs-cream, #f1f0e8);
  font-weight: 600;
}

.baw-lk-option input:checked + label::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  border-radius: .2rem;
  background: var(--fs-navy, #28364b);
  color: var(--fs-gold, #cebd88);
  font-size: .65rem;
  font-weight: 700;
  margin-right: .3rem;
}

.baw-lk-option input:not(:checked) + label::before {
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  border-radius: .2rem;
  border: 2px solid #d9d7cc;
  margin-right: .3rem;
}

.baw-lk-option.is-included label {
  background: rgba(206, 189, 136, .12);
  cursor: default;
}

.baw-lk-option.is-included input:checked + label::before {
  background: var(--fs-gold, #cebd88);
  color: var(--fs-navy, #28364b);
}

.baw-lk-option__name {
  flex: 1;
  min-width: 0;
}

.baw-lk-option__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: .2rem;
  border-radius: 50%;
  background: #d9d7cc;
  color: var(--fs-navy, #28364b);
  font-size: .6rem;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
}

.baw-lk-option__price {
  white-space: nowrap;
  font-size: .82rem;
  color: var(--fs-grey, #7a7a7a);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- Freight */

.baw-lk-freight {
  padding: .5rem 1.5rem;
  font-size: .85rem;
  color: var(--fs-grey, #7a7a7a);
  border-top: 1px solid #d9d7cc;
}

/* ---------------------------------------------------------------- Request */

.baw-lk-request {
  padding: 1.5rem;
  border-top: 1px solid #d9d7cc;
}

.baw-lk-request h2 {
  font-family: var(--fs-font-display, 'Playfair Display', serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 .5rem;
  color: var(--fs-navy, #28364b);
}

.baw-lk-request__intro {
  font-size: .85rem;
  color: var(--fs-grey, #7a7a7a);
  margin: 0 0 1rem;
}

.baw-lk-field {
  display: block;
  margin-bottom: .75rem;
}

.baw-lk-field span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .2rem;
  color: var(--fs-navy, #28364b);
}

.baw-lk-field input,
.baw-lk-field textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #d9d7cc;
  background: var(--fs-white, #fff);
  color: var(--fs-navy, #28364b);
  font-family: var(--fs-font-body, 'Raleway', sans-serif);
  font-size: .9rem;
  transition: border-color .2s ease;
}

.baw-lk-field input:focus,
.baw-lk-field textarea:focus {
  outline: none;
  border-color: var(--fs-gold, #cebd88);
  box-shadow: 0 0 0 3px rgba(206, 189, 136, .2);
}

.baw-lk-consent {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: .82rem;
  line-height: 1.4;
  cursor: pointer;
}

.baw-lk-consent input {
  margin-top: .15rem;
  flex-shrink: 0;
}

.baw-lk-consent a {
  color: var(--fs-gold, #cebd88);
}

.baw-lk-consent a:hover {
  color: var(--fs-navy, #28364b);
}

.baw-lk-submit {
  display: block;
  width: 100%;
  padding: .85em 1.6em;
  border: 0;
  border-radius: .35rem;
  background: var(--fs-navy, #28364b);
  color: var(--fs-gold, #cebd88);
  font-family: var(--fs-font-body, 'Raleway', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.baw-lk-submit:hover {
  background: var(--fs-gold, #cebd88);
  color: var(--fs-navy, #28364b);
}

.baw-lk-disclaimer {
  margin-top: .75rem;
  font-size: .72rem;
  color: var(--fs-grey, #7a7a7a);
  line-height: 1.4;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1024px) {
  .baw-lk-konf {
    grid-template-columns: 1fr;
  }

  .baw-lk-konf__panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 960px) {
  .baw-lk__grid--systeme {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .baw-lk__grid--systeme {
    grid-template-columns: 1fr;
  }

  .baw-lk__grid--modelle {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .baw-lk__grid--modelle {
    grid-template-columns: 1fr;
  }

  .baw-lk-total__value {
    font-size: 1.2rem;
  }
}
