/* DriveStock staging zero-result procurement card — 2026-11-18 t614u
   Self-contained literal colors. Does not rely on :root tokens.
   Replaces the pale dashed empty box + invisible/ghost CTA the owner rejected.
   Design: navy brand panel, white type, orange primary CTA, compact header spacing,
   visible inquiry submit. Staging only.
   2026-11-18 polish: .empty p {color:#5a6b7e} (2.98:1 on navy) was overriding
   supporting copy — raise specificity, WCAG AA colors. Compact mobile cookie
   bar and reserve bottom space so the inquiry CTA can be scrolled clear of a
   still-visible consent choice. Consent UI/behavior unchanged. */

/* --- typography / header spacing (katalog) --- */
.lhead,
.lay,
.results,
#empty {
  scroll-margin-top: 140px;
}
.lhead {
  padding-block: 20px 22px;
}
@media (max-width: 860px) {
  .lhead {
    padding-block: 14px 16px;
  }
  .lhead h1 {
    font-size: 1.6rem;
    line-height: 1.15;
  }
  /* Keep the sticky header at the top of the viewport; brand drawer stays out of flow when closed. */
  .hd {
    top: 0;
  }
  .bb .mega {
    display: none;
  }
  .bb-i.open .mega {
    display: block;
  }
}

/* Results column: procurement card ABOVE similar-type tiles (empty is after the grid in the DOM). */
.results {
  display: flex;
  flex-direction: column;
}
.results > .bar { order: 0; }
.results > #empty { order: 1; }
.results > #zr-sim { order: 2; }
.results > .grid-head { order: 3; }
.results > #grid { order: 4; }
.results > #pager { order: 5; }
.results > .res-cta { order: 6; }
.results:has(#grid:empty) > .grid-head,
.results:has(#empty:not([hidden])):not(:has(#grid .tile)) > .grid-head {
  display: none;
}

/* --- procurement card --- */
#empty.empty,
.empty {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  border-radius: 0;
}
#empty[hidden],
.empty[hidden] {
  display: none !important;
}

.zr {
  background: #0d2137;
  color: #ffffff;
  border-radius: 12px;
  padding: 28px 28px 26px;
  margin: 4px 0 20px;
  box-shadow: 0 10px 30px -12px rgba(13, 33, 55, 0.35);
}
/* Colors must beat `.empty p { color:#5a6b7e }` (2.98:1 on #0d2137, fails AA). */
#empty .zr,
.empty .zr,
.zr {
  color: #ffffff;
}
#empty .zr p,
.empty .zr p {
  color: #ffffff;
  max-width: 62ch;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.zr-kicker,
#empty .zr .zr-kicker,
.empty .zr .zr-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd0b5; /* 11.58:1 on #0d2137 */
}
.zr-title,
#empty .zr .zr-title,
.empty .zr .zr-title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff; /* 16.28:1 */
  letter-spacing: -0.02em;
  max-width: 44ch;
}
.zr-pn {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #173350;
  border-radius: 8px;
}
.zr-pn-l,
#empty .zr .zr-pn-l {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8eef5; /* 11.06:1 on chip #173350 */
}
.zr-pn-v,
#empty .zr .zr-pn-v {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
}
.zr-lead,
.zr-time,
#empty .zr .zr-lead,
#empty .zr .zr-time,
.empty .zr .zr-lead,
.empty .zr .zr-time {
  margin: 0 0 10px;
  max-width: 62ch;
  line-height: 1.55;
  color: #ffffff;
  font-size: 16px;
}
.zr-time,
#empty .zr .zr-time {
  font-weight: 650;
  color: #ffffff;
}
.zr-note,
#empty .zr .zr-note,
.empty .zr .zr-note {
  margin: 0 0 18px;
  max-width: 62ch;
  line-height: 1.5;
  font-size: 14.5px;
  color: #e8eef5; /* 13.94:1 on #0d2137 */
}
.zr-cta {
  margin: 0 0 12px;
}
a.zr-btn,
button.zr-btn,
a.zr-btn:link,
a.zr-btn:visited,
a.zr-btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: #e4602b !important;
  color: #ffffff !important;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  text-align: center;
  white-space: normal;
  max-width: 100%;
}
a.zr-btn:hover,
button.zr-btn:hover,
a.zr-btn:focus-visible,
button.zr-btn:focus-visible {
  background: #c04d1d !important;
  color: #ffffff !important;
}
a.zr-btn:focus-visible,
button.zr-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.zr-alt,
#empty .zr .zr-alt,
.empty .zr .zr-alt {
  margin: 0;
  font-size: 14.5px;
  color: #e8eef5;
}
#empty .zr .zr-alt a,
.empty .zr .zr-alt a,
.zr-alt a {
  color: #ffffff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#empty .zr .zr-alt a:hover,
.zr-alt a:hover {
  color: #ffd0b5;
}

#zr-sim {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #f5f7fa;
  border: 1px solid #e2e8ef;
  border-left: 4px solid #e4602b;
  border-radius: 8px;
  color: #0d2137;
}
#zr-sim[hidden] {
  display: none !important;
}
#zr-sim b {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  color: #0d2137;
}
#zr-sim p {
  margin: 0;
  font-size: 14px;
  color: #5a6b7e;
  line-height: 1.45;
  max-width: 70ch;
}

@media (max-width: 640px) {
  .zr {
    padding: 20px 16px 18px;
    border-radius: 10px;
  }
  .zr-title,
  #empty .zr .zr-title {
    margin-bottom: 12px;
  }
  a.zr-btn,
  button.zr-btn,
  .zr-cta {
    scroll-margin-bottom: 240px;
  }
}

/* Inquiry submit and residual catalog CTAs: never ghost/white-on-white. */
form#f button.btn[type="submit"],
form.buy-form button.btn[type="submit"],
form#f button.btn-lg[type="submit"],
.btn-acc,
.loc-act .loc-save {
  background: #e4602b !important;
  color: #ffffff !important;
  border: 0 !important;
  min-height: 48px;
  font-weight: 700 !important;
  opacity: 1 !important;
}
form#f button.btn[type="submit"]:hover,
form.buy-form button.btn[type="submit"]:hover,
.btn-acc:hover,
.loc-act .loc-save:hover {
  background: #c04d1d !important;
  color: #ffffff !important;
}
form#f button.btn[type="submit"]:focus-visible,
form.buy-form button.btn[type="submit"]:focus-visible {
  outline: 3px solid #0d2137 !important;
  outline-offset: 3px !important;
}

/* Secondary Stückliste band: visible navy button, does not compete with the orange primary. */
.res-cta .btn,
.res-cta a.btn {
  background: #0d2137 !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 700 !important;
  min-height: 44px;
}
.res-cta .btn:hover,
.res-cta a.btn:hover {
  background: #16324d !important;
  color: #ffffff !important;
}


/* --- Mobile cookie notice: keep real consent choices, don't cover the inquiry CTA ---
   Existing JS still shows #ck until the visitor accepts or rejects. We only compact
   the bar on small screens and reserve bottom space while it is visible, so the
   orange inquiry CTA can be scrolled fully into view above a clearly tappable
   Alle ablehnen / Alle akzeptieren / Details choice. We do not auto-accept,
   hide the banner, or remove legal options. .ck[hidden] stays display:none. */
@media (max-width: 640px) {
  .ck:not([hidden]) {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 14px 10px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -8px 24px rgba(13, 33, 55, 0.2);
    z-index: 95;
  }
  .ck:not([hidden]) p {
    margin: 0 0 8px;
    font-size: 12.5px;
    line-height: 1.4;
  }
  .ck:not([hidden]) .ck-a {
    gap: 8px;
  }
  #ck:not([hidden]) .ck-btn,
  .ck:not([hidden]) .ck-btn {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }
  /* Details is a text-like <button class="ck-d">. Base style.css sets
     .ck-d { display:block; font:500 12.5px; no height }, so a lone min-height
     can look under 44px. Beat that with a higher-specificity rule and a real box. */
  #ck:not([hidden]) button.ck-d,
  .ck:not([hidden]) button.ck-d[data-ck-open] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    margin: 8px 0 0 auto;
    padding: 0 16px;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 600;
  }
  /* Space under the page only while the banner is actually shown. */
  html:has(#ck:not([hidden])),
  body:has(#ck:not([hidden])) {
    scroll-padding-bottom: 240px;
  }
  body:has(#ck:not([hidden])) {
    padding-bottom: 240px;
  }
}


/* --- inline zero-result inquiry form (t643u / t647u) --- */
button.zr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: #e4602b;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  width: auto;
  max-width: 100%;
  margin-left: auto;
}
button.zr-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.zr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: stretch;
  margin: 18px 0 0;
}
.zr-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.zr-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 100%;
}
.zr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: #ffffff;
}
.zr-notes {
  flex: 1 1 auto;
}
#empty .zr .zr-lab,
.empty .zr .zr-lab,
.zr-lab {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
#empty .zr .zr-opt,
.zr-opt {
  font-weight: 500;
  color: #e8eef5;
  font-size: 12px;
}
.zr-field input,
.zr-field select,
.zr-field textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #8ea0b5;
  border-radius: 8px;
  background: #ffffff;
  color: #0d2137;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.zr-field input,
.zr-field select {
  height: 44px;
}
.zr-field textarea {
  min-height: 132px;
  height: 100%;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
  flex: 1 1 auto;
}
.zr-field input:focus,
.zr-field select:focus,
.zr-field textarea:focus,
.zr-field input:focus-visible,
.zr-field select:focus-visible,
.zr-field textarea:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  border-color: #0d2137;
}
.zr-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.zr-form { position: relative; margin: 0; }
#empty .zr .zr-msg,
.zr-msg {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  max-width: 62ch;
}
.zr-msg[hidden] { display: none !important; }
#empty .zr .zr-msg-ok,
.zr-msg-ok { color: #e8ffe8; font-weight: 650; }
#empty .zr .zr-msg-err,
.zr-msg-err { color: #ffd0d0; font-weight: 650; }
.zr-aside .zr-cta,
#empty .zr .zr-aside .zr-cta {
  margin: auto 0 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 640px) {
  .zr-grid { grid-template-columns: 1fr; gap: 12px; }
  .zr-title,
  #empty .zr .zr-title { max-width: none; }
  .zr-aside .zr-cta { margin-top: 8px; justify-content: flex-end; }
  a.zr-btn,
  button.zr-btn {
    width: auto;
    margin-left: auto;
  }
}
