/* Walter Schön GmbH / Kabelstrümpfe — Vorschau-Slice
   Palette aus dem Kadence-Global-Inline-CSS der Vorlage: #0b67b0, #ce000d,
   Graustufen #1A202C → #F7FAFC. Schriften: Roboto / Roboto Condensed. */

:root {
  --blue: #0b67b0;
  --blue-2: #1159af;
  --red: #ce000d;
  --orange: #f7630c;
  --ink: #f7fafc;
  --ink-dim: #a9b4c2;
  --bg: #0d131a;
  --bg-2: #1a202c;
  --glass: rgba(20, 27, 38, 0.95);
  --line: rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 72% 8%, #16222f 0%, var(--bg) 55%, #0a0f15 100%)
    var(--bg);
  color: var(--ink);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-sub, .kicker, .chips {
  font-family: "Roboto Condensed", "Arial Narrow", "Roboto", sans-serif;
}

/* 3D-Layer ------------------------------------------------------------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}
html:not(.js) #gl { display: none; }

/* Kopf ----------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 7vw;
  background: linear-gradient(to bottom, rgba(10, 15, 21, 0.92), rgba(10, 15, 21, 0.55) 60%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brand { font-weight: 700; letter-spacing: 0.02em; }
.brand-sub {
  color: var(--blue);
  font-weight: 700;
  margin-left: 0.5em;
  text-transform: uppercase;
  font-size: 0.82em;
}
.lang a {
  color: var(--ink-dim);
  text-decoration: none;
  margin-left: 0.9em;
  font-size: 0.85em;
  letter-spacing: 0.1em;
}
.lang a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--blue); }

/* Kapitel -------------------------------------------------------------- */
main { position: relative; z-index: 1; }

.chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 14vh 7vw;
}
.chapter:nth-of-type(even) { justify-content: flex-end; }
.chapter.wide { justify-content: center; }

.card {
  max-width: 34rem;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.03;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.1; margin: 0 0 0.8rem; }
h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--red); }

.card p { color: #dde5ee; }

.price {
  color: var(--ink-dim);
  font-size: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding-top: 0.8rem;
  margin-top: 1.1rem;
}

/* Konfigurator --------------------------------------------------------- */
.panel { max-width: 46rem; width: 100%; }

#cfg fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
#cfg legend {
  padding: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: #cfd8e3;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) {
  border-color: var(--blue);
  background: rgba(11, 103, 176, 0.22);
  color: #fff;
}
.chips label:has(input:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 2px; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.7rem 0.9rem;
  align-items: end;
}
.row label {
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.row input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  font-size: 1.05rem;
  color: var(--ink);
  background: rgba(10, 15, 21, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.row input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.row button {
  height: 46px;
  padding: 0 1.4rem;
  font: 700 0.95rem/1 "Roboto Condensed", "Roboto", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.row button:hover { filter: brightness(1.12); }
.row button:active { transform: translateY(1px); }

.resultline {
  min-height: 1.3em;
  margin: 1.2rem 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.results li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: rgba(10, 15, 21, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.results img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #0a0f15;
  flex: 0 0 auto;
}
.results .rtext { min-width: 0; }
.results strong { display: block; font-size: 0.95rem; }
.results span { display: block; font-size: 0.82rem; color: var(--ink-dim); }
.results em {
  font-style: normal;
  font-size: 0.75rem;
  color: #8fd0ff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.empty { border-top: 1px dashed rgba(255, 255, 255, 0.14); margin-top: 1rem; padding-top: 1rem; }
.empty p { font-size: 0.95rem; }

.cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.75rem 1.3rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: filter 0.15s;
}
.cta:hover { filter: brightness(1.15); }
.hint { font-size: 0.8rem; color: var(--ink-dim); margin: 0.6rem 0 0; }

.sonder { font-size: 0.85rem; color: var(--ink-dim); margin-top: 1rem; }
.sonder a { color: #8fd0ff; }

/* Fuß (Footer-Blau wie die Vorlage) ------------------------------------- */
.foot {
  position: relative;
  z-index: 1;
  background: var(--blue);
  color: #fff;
  /* Untere Reserve: der schwebende Chatbot-Button (#cb, 42px + 12px Rand)
     liegen ueber dem Footer. Ohne diese Reserve verdeckt er die letzte
     Zeile ("... Freigabe der Geschaeftsfuehrung"). */
  padding: 2.2rem 7vw 6.5rem;
  font-size: 0.92rem;
}
.foot p { margin: 0.25rem 0; }
.foot .dim { color: rgba(255, 255, 255, 0.72); font-size: 0.8rem; }

.nojs {
  position: relative;
  z-index: 2;
  padding: 0.9rem 7vw;
  background: var(--bg-2);
  font-size: 0.9rem;
}

.debug {
  position: fixed;
  bottom: 8px; right: 12px;
  z-index: 9;
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7fe3a1;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .chapter, .chapter:nth-of-type(even) { justify-content: center; padding: 12vh 5vw; }
  .card { padding: 1.5rem 1.3rem; }
  .row { grid-template-columns: 1fr 1fr; }
  .row button { grid-column: 1 / -1; width: 100%; }
  .row .btn-cell { display: none; }
}

/* Logo & Footer-Strumpf --------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-logo { display: block; height: 30px; width: auto; border-radius: 4px; background: #fff; padding: 4px 7px; box-sizing: content-box; }
.foot-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.foot-logo { background: #fff; padding: 6px 8px; border-radius: 8px; height: 44px; width: auto; }
.foot-strumpf {
  height: 150px; width: auto; border-radius: 12px;
  object-fit: cover; object-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Katalog-Grid ------------------------------------------------------------ */
.katalog {
  position: relative; z-index: 1;
  padding: 12vh 7vw 15vh;
  background: linear-gradient(to bottom, rgba(10, 15, 21, 0) 0%, #0b1016 9%, #0b1016 100%);
}
.kwrap { max-width: 1200px; margin: 0 auto; }
.kat-intro { color: #dde5ee; max-width: 46rem; }
.ktools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.ksearch { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
#kat-q {
  flex: 1; min-width: 240px; max-width: 420px;
  padding: 0.7rem 0.9rem; font-size: 1rem; color: var(--ink);
  background: rgba(10, 15, 21, 0.75); border: 1px solid var(--line); border-radius: 10px;
}
#kat-q:focus-visible { outline: 2px solid var(--blue); }
.kcount { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); margin: 0; }
.kgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem;
}
.kcard {
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere;
  background: rgba(26, 32, 44, 0.72); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s, border-color 0.18s;
}
.kcard:hover { transform: translateY(-3px); border-color: rgba(11, 103, 176, 0.55); }
.kcard[hidden] { display: none; }
.kcard img {
  width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: contain;
  background: #0a0f15; display: block; padding: .55rem;
}
.kinfo { padding: 0.8rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.kcat { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.kinfo h3 { margin: 0.15rem 0 0; font-size: 1rem; line-height: 1.25; }
.ksku { margin: 0; font-size: 0.78rem; color: var(--ink-dim); }
.kspec { margin: 0.2rem 0 0; font-size: 0.82rem; color: #c9d5e2; }
.kprice { margin: 0.5rem 0 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8fd0ff; }

/* Katalog: Hinweis, Leerzustand, Reset-Vorschläge -------------------------- */
.kat-hint { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--ink-dim); }
.kat-empty {
  margin: 1.2rem 0 0; padding: 1.1rem 1.2rem;
  background: rgba(26, 32, 44, 0.72); border: 1px dashed rgba(11, 103, 176, 0.45);
  border-radius: 14px;
}
.kat-empty[hidden] { display: none; }
.kat-empty-txt { margin: 0 0 0.7rem; font-size: 0.98rem; color: #dde5ee; }
.kat-empty-sug { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kreset {
  border: 1px solid var(--line); background: rgba(10, 15, 21, 0.6);
  color: #cfd8e3; border-radius: 999px; padding: 0.4rem 0.95rem;
  font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.kreset:hover { border-color: var(--blue); color: #fff; }
.kreset.is-reset { border-color: var(--red); color: #ffb3b3; }
.kreset.is-reset:hover { background: rgba(206, 0, 13, 0.18); color: #fff; }

/* Sprach-Select in der Topbar -------------------------------------------- */
.lang { display: flex; align-items: center; }
.lang select {
  background: rgba(10, 15, 21, 0.6); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.35rem 0.5rem; font-size: 0.85rem; letter-spacing: 0.06em; cursor: pointer;
}
.lang select:focus-visible { outline: 2px solid var(--blue); }

/* Reduced-Motion-Poster: keine Animation, das Originalfoto bleibt intakt ---- */
#poster { display: none; }
@media (prefers-reduced-motion: reduce) {
  #gl { display: none !important; }
  #poster {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 0; pointer-events: none; padding: 0 6vw;
    background: radial-gradient(1100px 640px at 70% 12%, #16222f 0%, #0d131a 60%, #0a0f15 100%);
  }
  #poster img {
    width: min(760px, 92vw); height: auto; border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
  .poster-cap {
    position: absolute; bottom: 12vh; text-align: center;
    max-width: min(34rem, calc(100vw - 150px)); /* Platz fuer den Chatbot-Button */
    font-size: 0.8rem; color: var(--ink-dim); margin: 0;
  }
}

/* --- Katalog-Filter: Kategorie-Chips, Serie, Paginierung ------------------ */
/* Der Katalog filtert wie ein Fachkatalog, er scrollt nicht in die Endlosigkeit. */
.kfilters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 1.4rem 0 1.1rem;
}
.kchips {
  display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0;
}
.kchip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); color: var(--ink-dim);
  border-radius: 999px; padding: 7px 13px;
  font: 500 12.6px/1.2 "Roboto", sans-serif; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  max-width: 100%;
}
.kchip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.22); }
.kchip.on {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 4px 14px rgba(11, 103, 176, 0.32);
}
.kchip-n {
  font-size: 11px; opacity: .72;
  background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 1px 7px;
}
.kchip.on .kchip-n { background: rgba(255, 255, 255, .22); }
.kseries-label {
  font: 500 12.4px/1 "Roboto", sans-serif; color: var(--ink-dim);
  letter-spacing: .04em; text-transform: uppercase;
}
.kseries {
  background: rgba(255, 255, 255, 0.05); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; font: 400 13px/1 "Roboto", sans-serif; cursor: pointer;
  max-width: 220px;
}
.kseries option { background: var(--bg-2); color: var(--ink); }
.kmore {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 1.8rem 0 .4rem;
}
.kmore-btn {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  padding: 12px 28px; cursor: pointer;
  font: 500 13.5px/1 "Roboto", sans-serif; letter-spacing: .03em;
  transition: background .18s, border-color .18s, transform .18s;
}
.kmore-btn:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
  transform: translateY(-1px);
}
.kmore-btn[hidden] { display: none; }
.kmore .kcount { margin: 0; font-size: 12.4px; color: var(--ink-dim); }
@media (max-width: 640px) {
  .kfilters { gap: 9px; }
  .kchips { gap: 6px; }
  .kchip { padding: 6px 11px; font-size: 12px; }
  .kseries { max-width: 100%; }
}

/* Auf schmalen Geräten ist eine zweispaltige Kachel zu eng: Text wird
   abgeschnitten, das Produktbild beschnitten. Stattdessen eine Liste —
   Bild links, Technikdaten rechts, nichts abgeschnitten. */
@media (max-width: 640px) {
  .kgrid { grid-template-columns: 1fr; gap: .6rem; }
  .kcard { flex-direction: row; align-items: stretch; }
  /* Bildspalte: feste Breite, damit die Breitformat-Aufnahmen (bis 800x192)
     nicht gequetscht werden. object-fit: contain zeigt das GANZE Produkt. */
  .kcard img {
    width: 128px; min-width: 128px; height: 110px;
    object-fit: contain; align-self: center; padding: .35rem;
  }
  /* OHNE min-width:0 duerfen Flex-Kinder nicht schrumpfen — der Text lief
     dann aus der Karte und wurde vom overflow:hidden abgeschnitten. */
  .kinfo { padding: .7rem .75rem .75rem; gap: .2rem; min-width: 0; flex: 1 1 auto; }
  .kinfo > * { min-width: 0; overflow-wrap: anywhere; }
  .kinfo .kcat { font-size: .63rem; display: block; }
  .kinfo h3 { font-size: .92rem; }
  .ksku { font-size: .7rem; }
  .kprice { font-size: .66rem; margin-top: .3rem; }
}
