/* ==========================================================================
   WashTube — Kits page. The maintenance-page look, on the shop's grid.
   ========================================================================== */

.wt-kits {
  --k-bg: #030303;
  --k-surface: #0c0c0c;
  --k-surface-2: #080808;
  --k-line: #222;
  --k-fg: #e0e0e0;
  --k-dim: #97a2ab;
  --k-accent: #006DAD;
  --k-accent-soft: #3fa3dd;
  --k-gold: #F1CB53;
  --k-display: 'Syncopate', 'Arial Narrow', sans-serif;

  background: var(--k-bg);
  color: var(--k-fg);
}

/* Only the content region goes dark. Painting <body> would put black behind the
   header, the newsletter strip and the footer, which keep their own colours. */
body.wt-kits-page #main,
body.wt-kits-page .wt-main {
  background: var(--k-bg, #030303);
  color: #e0e0e0;
}

.wt-kits-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── hero ── */
.wt-kits-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 0;
  background: radial-gradient(ellipse at 85% 0%, rgba(0, 109, 173, .28), transparent 55%), var(--k-bg);
  border-bottom: 1px solid var(--k-line);
}

.wt-kits-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wt-kits-grain > * { position: relative; z-index: 1; }

.wt-kits-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--k-dim);
}
.wt-kits-crumbs a { color: var(--k-dim); text-decoration: none; }
.wt-kits-crumbs a:hover { color: #fff; }
.wt-kits-crumbs span[aria-hidden] { color: var(--k-accent-soft); }
.wt-kits-crumbs > span:last-child { color: #fff; font-weight: 700; }

.wt-kits-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 28px;
  align-items: end;
}

.wt-kits-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--k-display);
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--k-accent-soft);
}

.wt-kits-hero h1 {
  margin: 0;
  font-family: var(--k-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 116px);
  line-height: .9;
  letter-spacing: -3px;
  color: #fff;
}

.wt-kits-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-family: var(--k-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--k-gold);
}

.wt-kits-lead {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: #b3b3b3;
  text-wrap: pretty;
}

.wt-kits-tape {
  position: relative;
  left: -4%;
  width: 108%;
  margin-top: 30px;
  padding: 10px 0;
  background: var(--k-accent);
  color: #000;
  transform: rotate(-2deg);
  border-top: 3px solid #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.wt-kits-tape-text {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--k-display);
  font-size: 1.3rem;
  font-weight: 700;
  animation: wtKitsTape 14s linear infinite;
}
@keyframes wtKitsTape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wt-kits-tape-text { animation: none; } }

/* ── controls ── */
.wt-kits-body { padding-top: 34px; padding-bottom: 72px; }

/* Linie: the three numbered cards */
.wt-kits-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.wt-kits-line {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 150px;
  padding: 22px 22px 24px;
  border: 1px solid var(--k-line);
  border-radius: 4px;
  background: var(--k-surface-2);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, transform .3s, background .3s;
}
.wt-kits-line:hover { transform: translateY(-4px); border-color: var(--k-accent-soft); }
.wt-kits-line:focus-visible { outline: 2px solid var(--k-accent-soft); outline-offset: 2px; }
.wt-kits-line.is-active {
  background: var(--k-surface);
  border-color: var(--k-accent);
  box-shadow: 0 6px 20px rgba(0, 109, 173, .25);
}

.wt-kits-line-no {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--k-accent-soft);
  border-radius: 50%;
  font-family: var(--k-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--k-accent-soft);
}
.wt-kits-line.is-active .wt-kits-line-no { border-color: var(--k-gold); color: var(--k-gold); }

.wt-kits-line-name {
  font-family: var(--k-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.3px;
  text-transform: uppercase;
  text-wrap: balance;
}
.wt-kits-line-tag { font-size: 13.5px; line-height: 1.55; color: var(--k-dim); text-wrap: pretty; }

.wt-kits-areas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 12px 14px;
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
}
.wt-kits-areas-label {
  font-family: var(--k-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--k-accent-soft);
}
.wt-kits-areas-opts { display: flex; gap: 8px; flex-wrap: wrap; }

.wt-kits-area {
  padding: 9px 16px;
  border: 1px solid var(--k-line);
  background: transparent;
  color: var(--k-fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
}
.wt-kits-area:hover { border-color: var(--k-accent-soft); }
.wt-kits-area.is-active { background: #fff; border-color: #fff; color: #000; }
.wt-kits-area:focus-visible { outline: 2px solid var(--k-accent-soft); outline-offset: 2px; }

/* ── cards, two across ── */
.wt-kits-viewport { position: relative; }

.wt-kits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* display:flex would otherwise beat the browser's [hidden] rule and the
   filter would never hide anything. */
.wt-kit[hidden] { display: none !important; }

.wt-kit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.wt-kit:hover { border-color: var(--k-accent); transform: translateY(-6px); }

.wt-kit-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--k-line);
  background: var(--k-surface-2);
  font-family: var(--k-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--k-fg);
}
.wt-kit-grade {
  padding: 3px 9px;
  background: var(--k-gold);
  color: #000;
  letter-spacing: .5px;
}

.wt-kit-head { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.wt-kit-area {
  font-family: var(--k-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--k-accent-soft);
}
.wt-kit-head h2 {
  margin: 0;
  font-family: var(--k-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.wt-kit-head p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--k-dim); text-wrap: pretty; }

.wt-kit-price {
  margin: 0 16px;
  padding: 14px 0;
  border-top: 1px dashed #333;
  border-bottom: 1px dashed #333;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wt-kit-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wt-kit-amount {
  font-family: var(--k-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
}
.wt-kit-amount del { opacity: .5; font-size: .6em; margin-right: 6px; }
.wt-kit-amount ins { text-decoration: none; }
.wt-kit-save {
  flex-shrink: 0;
  padding: 5px 9px;
  background: var(--k-gold);
  color: #000;
  font-family: var(--k-display);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.wt-kit-value { font-size: 12.5px; line-height: 1.4; color: var(--k-dim); }
.wt-kit-value .amount { color: var(--k-fg); }

.wt-kit-block { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.wt-kit-block-label {
  font-family: var(--k-display);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a949d;
}
.wt-kit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-kit-chip {
  padding: 3px 9px;
  border: 1px solid #333;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--k-fg);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.wt-kit-chip:hover { border-color: var(--k-accent-soft); color: #fff; }

.wt-kit-contents {
  margin: 14px 16px 0;
  background: var(--k-surface-2);
  border: 1px solid var(--k-line);
  border-radius: 4px;
}
.wt-kit-contents-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--k-line);
  font-family: var(--k-display);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.wt-kit-count { color: var(--k-accent-soft); }
.wt-kit-contents ul { margin: 0; padding: 4px 0; list-style: none; }
.wt-kit-contents li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  font-size: 12.5px;
  line-height: 1.35;
}
.wt-kit-qty { font-family: var(--k-display); font-size: 10.5px; font-weight: 700; color: var(--k-accent-soft); }
.wt-kit-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-kit-name a { color: var(--k-fg); text-decoration: none; }
.wt-kit-name a:hover { color: #fff; text-decoration: underline; }
.wt-kit-size { font-size: 11.5px; color: #8a949d; white-space: nowrap; }
.wt-kit-line { font-size: 11.5px; color: var(--k-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }

.wt-kit-actions { margin-top: auto; padding: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.wt-kit-btn,
.wt-kit-howto-btn {
  flex: 1 1 auto;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s;
}
.wt-kit-btn { background: #fff; color: #000; }
.wt-kit-btn:hover { background: var(--k-accent); color: #fff; }
.wt-kit-howto-btn { background: transparent; border-color: var(--k-gold); color: var(--k-gold); }
.wt-kit-howto-btn:hover { background: var(--k-gold); color: #000; }
.wt-kit-btn:focus-visible,
.wt-kit-howto-btn:focus-visible { outline: 2px solid var(--k-accent-soft); outline-offset: 2px; }

/* ── paging: its own row above the cards, so it covers nothing ── */
.wt-kits-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.wt-kits-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 2px solid #000;
  background: var(--k-gold);
  color: #000;
  font-family: var(--k-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  animation: wtKitsBlink 1.4s ease-in-out infinite;
}
.wt-kits-nav:hover { filter: brightness(1.08); }
.wt-kits-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wt-kits-nav:disabled { opacity: .35; cursor: default; animation: none; }

@keyframes wtKitsBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) { .wt-kits-nav { animation: none; } }

.wt-kits-none,
.wt-kits-empty { padding: 40px 0; color: var(--k-dim); font-size: 15px; }

/* ── Anwendung popup ── */
.wt-kit-modal { position: fixed; inset: 0; z-index: 10000; }
.wt-kit-modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.wt-kit-modal-box {
  position: relative;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: 82vh;
  margin: 8vh auto 0;
  display: flex;
  flex-direction: column;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.wt-kit-modal-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--k-line);
  background: var(--k-surface-2);
}
.wt-kit-modal-box h3 {
  margin: 0;
  font-family: var(--k-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.wt-kit-modal-x {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--k-line);
  background: transparent;
  color: var(--k-fg);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.wt-kit-modal-x:hover { border-color: var(--k-gold); color: var(--k-gold); }
.wt-kit-modal-body { padding: 18px; overflow-y: auto; }
.wt-kit-modal-body h4 {
  margin: 18px 0 8px;
  font-family: var(--k-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--k-accent-soft);
}
.wt-kit-modal-body h4:first-child { margin-top: 0; }
.wt-kit-modal-body ol { margin: 0; padding-left: 0; list-style: none; counter-reset: wtstep; }
.wt-kit-modal-body li {
  position: relative;
  counter-increment: wtstep;
  padding: 0 0 14px 42px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--k-fg);
}
.wt-kit-modal-body li::before {
  content: counter(wtstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--k-accent);
  border-radius: 50%;
  font-family: var(--k-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--k-accent-soft);
}

/* ── one per row on a phone, no paging ── */
@media (max-width: 900px) {
  .wt-kits-grid { grid-template-columns: 1fr; }
  .wt-kits-hero-grid { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .wt-kits-pager { display: none; }
  .wt-kit + .wt-kit { position: relative; margin-top: 18px; }
  .wt-kit + .wt-kit::before {
    content: "↓";
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--k-gold);
    color: #000;
    font-size: 15px;
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  .wt-kits-body { padding-bottom: 48px; }
  .wt-kit-actions { flex-direction: column; }
  .wt-kit-contents li { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .wt-kit-line { display: none; }
}

/* ── the premium band, the code, the grade and the footnote ── */
.wt-kit-band--premium { background: var(--k-accent); color: #fff; border-bottom-color: var(--k-accent); }
.wt-kit-code { font-weight: 700; letter-spacing: 1px; opacity: .85; }

.wt-kit-head .wt-kit-grade {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  background: var(--k-gold);
  color: #000;
  border-radius: 2px;
  font-family: var(--k-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

.wt-kit-note { font-size: 11px; line-height: 1.4; color: #7d868e; }

/* contents: quantity, name, size — no per-line price */
.wt-kit-contents li { grid-template-columns: 30px minmax(0, 1fr) auto; }

/* one primary button, the rest as quiet links */
.wt-kit-actions { flex-direction: column; gap: 10px; }
.wt-kit-btn { width: 100%; }
.wt-kit-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wt-kit-link,
.wt-kit-howto-btn {
  flex: 0 0 auto;
  padding: 4px 2px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.wt-kit-link { color: var(--k-dim); }
.wt-kit-link:hover { color: #fff; }
.wt-kit-howto-btn { color: var(--k-gold); }
.wt-kit-howto-btn:hover { color: #fff; background: none; }

@media (max-width: 560px) {
  .wt-kits-lines { grid-template-columns: 1fr; }
}
/* a line with no kits yet */
.wt-kits-line.is-soon { cursor: default; opacity: .55; }
.wt-kits-line.is-soon:hover { transform: none; border-color: var(--k-line); }
.wt-kits-line-soon {
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px dashed #444;
  border-radius: 2px;
  font-family: var(--k-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--k-gold);
}