/* =============================================================
   DataDrop Shop – Übersichtsseite
   -------------------------------------------------------------
   Baut vollständig auf css/main.css der Landingpage auf und
   verwendet ausschliesslich deren Tokens (--blue, --green,
   --violet, --ink, --paper-2, --line, --display, --body, --r).

   Aufbau:
     1  Seitenkopf
     2  Werbe-Karussell (Tabs links, Slides rechts)
     3  Shop-Layout (Filter-Sidebar + Raster)
     4  Produktkacheln
     5  Leerzustand
     6  Responsive
   ============================================================= */

/* ============================================================
   0 · NAVBAR-STAPELUNG (Bugfix)
   ------------------------------------------------------------
   In css/main.css steht die Regel als Element-Selektor:

       nav { position: sticky; top: 0; z-index: 60; }

   Die Prozessleiste ist aus Gründen der Zugänglichkeit ebenfalls
   ein <nav> ("nav.steps"). Sie hat dadurch dieselbe Regel geerbt:
   sticky, top:0 und exakt denselben z-index wie die Navbar. Bei
   gleichem z-index gewinnt das Element, das später im Dokument
   steht – deshalb ist die Prozessleiste beim Scrollen VOR die
   Navbar gerutscht statt dahinter.

   Fix in zwei Teilen, main.css bleibt unangetastet:
     1. Die Navbar bekommt über den ID-Selektor einen sehr hohen
        z-index und liegt damit dauerhaft vor allem anderen.
     2. Jedes <nav>, das NICHT die Navbar ist, verliert die
        geerbte Positionierung wieder.
   ============================================================ */
#nav { z-index: 900; }

nav:not(#nav) {
  position: static;
  top: auto;
  z-index: auto;
  border-bottom: none;
}

/* Der Shop-Bereich läuft etwas breiter als die Landingpage,
   damit vier Designs pro Zeile neben der Sidebar Platz haben.
   Navbar und Footer bleiben auf der Breite der Landingpage. */
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   1 · SEITENKOPF
   ============================================================ */
.shop-head { padding: 54px 0 30px; }
.shop-crumb { font-size: 13px; font-weight: 600; color: var(--txt-soft); margin-bottom: 18px; }
.shop-crumb a { color: var(--blue); text-decoration: none; }
.shop-crumb a:hover { text-decoration: underline; }
.shop-crumb span { opacity: .55; margin: 0 7px; }

.shop-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--blue); background: rgba(59,67,149,.08);
  padding: 7px 15px; border-radius: 30px; margin-bottom: 16px;
}
.shop-head h1 { font-size: clamp(34px, 4.6vw, 56px); }

/* ============================================================
   2 · WERBE-KARUSSELL
   ============================================================ */
.bs {
  position: relative; display: grid; grid-template-columns: 335px 1fr;
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 22px 54px rgba(14,15,36,.1);
}

/* Linke Spalte: die drei Wege zur Karte */
.bs-tabs {
  padding: 26px 22px; display: flex; flex-direction: column; gap: 6px;
  background: var(--paper-2); min-width: 0;
}
.bs-tabs-ttl {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--txt-soft); padding: 0 12px 12px;
}
.bs-tab {
  position: relative; text-align: left; border: none; cursor: pointer; background: transparent;
  font-family: var(--body); padding: 15px 14px; border-radius: 14px; transition: background .25s;
}
.bs-tab:hover { background: rgba(255,255,255,.75); }
.bs-tab.on { background: #fff; box-shadow: 0 10px 26px rgba(14,15,36,.09); }
.bs-tab b { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--ink); line-height: 1.15; }
.bs-tab span { display: block; font-size: 12.5px; color: var(--txt-soft); margin-top: 4px; line-height: 1.4; }
.bs-hint { margin-top: auto; padding: 14px 14px 0; font-size: 12px; color: var(--txt-soft); }

/* Rechte Spalte: Slides */
.bs-stage { position: relative; min-height: clamp(330px, 32vw, 400px); min-width: 0; }
.bs-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease;
  display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 20px;
  padding: clamp(26px, 3vw, 44px);
}
.bs-slide.on { opacity: 1; visibility: visible; }
.bs-slide.t-blue { background: linear-gradient(150deg, var(--band-blue-top), var(--band-blue) 55%, var(--band-blue-deep)); }
.bs-slide.t-ink  { background: linear-gradient(150deg, #1b1e46, var(--ink) 62%, #090a1c); }
.bs-slide.t-soft { background: linear-gradient(150deg, #ffffff, var(--paper-2) 60%, #e9ebf8); }

.bs-copy h2 { font-family: var(--display); font-size: clamp(24px, 2.7vw, 36px); line-height: 1.06; color: #fff; }
.bs-copy p { font-size: 15px; line-height: 1.6; margin-top: 13px; color: var(--txt-dark-soft); max-width: 340px; }
.t-soft .bs-copy h2 { color: var(--ink); }
.t-soft .bs-copy p { color: var(--txt-soft); }
.bs-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-weight: 800; font-size: 14.5px; text-decoration: none; color: #fff;
  border-bottom: 2px solid rgba(255,255,255,.45); padding-bottom: 4px; transition: .2s;
}
.bs-link:hover { border-color: #fff; gap: 12px; }
.t-soft .bs-link { color: var(--blue); border-color: rgba(59,67,149,.35); }
.t-soft .bs-link:hover { border-color: var(--blue); }

.bs-vis { position: relative; height: 100%; min-height: 200px; display: grid; place-items: center; }
.bs-stack { position: relative; width: 100%; max-width: 300px; height: 210px; }
.bs-stack img { position: absolute; width: 78%; border-radius: 11px; box-shadow: 0 20px 38px rgba(6,8,28,.45); }
.bs-stack .k1 { left: 0;   top: 44px; transform: rotate(-7deg); }
.bs-stack .k2 { left: 12%; top: 20px; z-index: 2; }
.bs-stack .k3 { right: 0;  top: 0; width: 42%; transform: rotate(7deg); z-index: 3; }

.bs-dots { display: none; }

.bs-pdf {
  width: min(100%, 250px); border: 2px dashed rgba(59,67,149,.4); border-radius: 18px;
  background: rgba(255,255,255,.75); padding: 20px 16px; text-align: center;
  display: grid; gap: 8px; justify-items: center;
}
.bs-pdf svg { width: 34px; height: 34px; color: var(--blue); }
.bs-pdf b { font-size: 13.5px; color: var(--ink); }
.bs-pdf small { font-size: 11.5px; color: var(--txt-soft); line-height: 1.45; }

/* ============================================================
   3 · SHOP-LAYOUT
   ============================================================ */
.blayout {
  display: grid; grid-template-columns: 258px 1fr; gap: 34px;
  align-items: start; padding: 46px 28px 92px;
}
.gridcol { min-width: 0; }

.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 22px; }
.side-search { position: relative; display: flex; align-items: center; }
.side-search svg { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--txt-soft); pointer-events: none; }
.side-search input {
  width: 100%; font-family: var(--body); font-size: 14.5px; color: var(--txt);
  border: 1.5px solid var(--line); border-radius: 13px; background: #fff; padding: 13px 14px 13px 43px;
  transition: border-color .2s, box-shadow .2s;
}
.side-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,67,149,.11); }

.side-collapse { display: block; }
.side-summary { display: none; }
.side-collapse > .side-blocks { margin-bottom: 22px; }

.side-block { border-top: 1px solid var(--line); padding-top: 18px; }
.side-block:first-child { border-top: none; padding-top: 0; }
.side-block h4 {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--txt-soft); margin-bottom: 12px;
}
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14.5px; color: var(--txt); }
.opt input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; flex: none; }
.opt:hover { color: var(--blue); }
.opt .n { margin-left: auto; font-size: 12px; color: var(--txt-soft); font-weight: 700; }

.side-reset {
  align-self: flex-start; font-family: var(--body); font-size: 13.5px; font-weight: 700; color: var(--blue);
  background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.side-reset:hover { color: var(--ink); }

/* Zwei Hinweiskacheln unter den Filtern */
.side-cards { display: grid; gap: 14px; }
.side-card { border-radius: 18px; padding: 20px 18px; }
.side-card h5 { font-family: var(--display); font-weight: 400; font-size: 18px; margin-bottom: 7px; }
.side-card p { font-size: 12.8px; line-height: 1.5; margin-bottom: 15px; }
.side-card a {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800;
  border-radius: 10px; padding: 9px 14px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
/* blaue Kachel */
.side-card.is-blue {
  color: #fff; background: linear-gradient(160deg, var(--band-blue-top), var(--blue-700));
  box-shadow: 0 16px 36px rgba(59,67,149,.24);
}
.side-card.is-blue h5 { color: #fff; }
.side-card.is-blue p { color: var(--txt-dark-soft); }
.side-card.is-blue a { color: var(--blue); background: #fff; }
.side-card.is-blue a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6,8,28,.28); }
/* weisse Kachel */
.side-card.is-white {
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(14,15,36,.07);
}
.side-card.is-white h5 { color: var(--ink); }
.side-card.is-white p { color: var(--txt-soft); }
.side-card.is-white a { color: var(--blue); background: var(--paper-2); border: 1.5px solid var(--line); }
.side-card.is-white a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--cta-glow); }

/* Kopfzeile über dem Raster */
.bres { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.bres p { font-size: 14px; color: var(--txt-soft); }
.bres p b { color: var(--ink); font-weight: 800; }
.bsort { display: flex; gap: 6px; flex-wrap: wrap; }
.bsort button {
  font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--txt-soft);
  background: transparent; border: 1.5px solid transparent; border-radius: 10px;
  padding: 8px 13px; cursor: pointer; transition: .2s;
}
.bsort button:hover { color: var(--blue); }
.bsort button.on { background: var(--paper-2); border-color: var(--line); color: var(--ink); }

/* ============================================================
   4 · PRODUKTKACHELN
   ============================================================ */
.shgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }

.shcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.shcard:hover { transform: translateY(-6px); border-color: rgba(59,67,149,.35); box-shadow: 0 22px 46px rgba(14,15,36,.13); }
.shcard:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sh-media { position: relative; aspect-ratio: 5 / 4; background: var(--paper-2); overflow: hidden; }
.sh-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 18px; object-fit: contain;
  transition: opacity .45s ease, transform .45s ease;
  filter: drop-shadow(0 10px 20px rgba(14,15,36,.16));
}
.sh-media.is-port img { padding: 12px 18px; }
.sh-media .sh-back { opacity: 0; }
.shcard:hover .sh-front { opacity: 0; transform: scale(.97); }
.shcard:hover .sh-back { opacity: 1; }

.sh-badge {
  position: absolute; left: 12px; top: 12px; z-index: 3; font-size: 10.5px; font-weight: 800;
  letter-spacing: .7px; text-transform: uppercase; color: #fff; padding: 5px 11px; border-radius: 30px;
}
.sh-badge.neu { background: var(--green); }
.sh-badge.bestseller { background: var(--violet); }
.sh-flip {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; font-size: 11px; font-weight: 700;
  color: var(--txt-soft); background: rgba(255,255,255,.86); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 30px; opacity: 0; transition: opacity .25s;
}
.shcard:hover .sh-flip { opacity: 1; }

.sh-body { padding: 16px 16px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sh-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sh-title h3 { font-family: var(--display); font-weight: 400; font-size: 18.5px; line-height: 1.1; color: var(--ink); }
.sh-fmt { font-size: 11px; font-weight: 700; color: var(--txt-soft); white-space: nowrap; }
.sh-style {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--blue); background: rgba(59,67,149,.08); padding: 4px 10px; border-radius: 30px;
}
.sh-desc { font-size: 12.8px; color: var(--txt-soft); line-height: 1.5; }
.sh-foot {
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.sh-price { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.sh-price small { display: block; font-size: 11.5px; font-weight: 600; color: var(--txt-soft); margin-top: 2px; }
.sh-arrow {
  width: 32px; height: 32px; border-radius: 10px; background: var(--paper-2); color: var(--blue);
  display: grid; place-items: center; font-size: 15px; font-weight: 800; transition: .25s; flex: none;
}
.shcard:hover .sh-arrow { background: var(--blue); color: #fff; transform: translateX(3px); }

/* ============================================================
   5 · LEERZUSTAND
   ============================================================ */
.bempty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: 18px; background: var(--paper-2); }
.bempty h3 { font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--ink); margin-bottom: 8px; }
.bempty p { font-size: 14.5px; color: var(--txt-soft); margin-bottom: 18px; }

/* ============================================================
   6 · RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .shgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  /* Reihenfolge: Suche → Filter → Produkte → Hinweiskacheln.
     display:contents löst die Sidebar auf, ihre Kinder werden direkte
     Flex-Elemente von .blayout und lassen sich damit frei sortieren. */
  .blayout {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 22px; padding-top: 34px;
  }
  .side { display: contents; }
  .side-search { order: 1; }
  .side-collapse { order: 2; width: 100%; }
  .gridcol { order: 3; }
  .side-cards { order: 4; grid-template-columns: 1fr 1fr; }

  /* Filter zusammenklappbar, beim Laden zugeklappt */
  .side-collapse { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .side-summary {
    display: flex; align-items: center; gap: 11px; padding: 14px 16px; cursor: pointer;
    list-style: none; font-size: 14.5px; font-weight: 800; color: var(--ink);
  }
  .side-summary::-webkit-details-marker { display: none; }
  .side-summary:hover { color: var(--blue); }
  .ss-ic { display: grid; place-items: center; color: var(--blue); }
  .ss-ic svg { width: 20px; height: 20px; }
  .ss-tx { flex: 1; }
  .ss-badge {
    background: var(--blue); color: #fff; font-size: 11px; font-weight: 800;
    border-radius: 30px; padding: 3px 9px; min-width: 24px; text-align: center;
  }
  .ss-caret { color: var(--txt-soft); transition: transform .25s; }
  .ss-caret svg { width: 11px; height: 11px; display: block; }
  .side-collapse[open] .ss-caret { transform: rotate(180deg); }
  .side-collapse > .side-blocks { padding: 0 16px; margin-bottom: 16px; }
  .side-collapse > .side-reset { margin: 0 16px 16px; }

  .side-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
  .side-block:first-child { border-top: 1px solid var(--line); padding-top: 18px; }

  .bs { grid-template-columns: 250px 1fr; }
  .bs-slide { grid-template-columns: 1fr; }
  .bs-vis { display: none; }
  .shgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .shgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  /* Banner wird zum Wisch-Karussell, Bilder liegen als Hintergrund in der Kachel */
  .bs { grid-template-columns: 1fr; touch-action: pan-y; }
  .bs-tabs { display: none; }
  .bs-stage { min-height: 350px; }
  .bs-slide { grid-template-columns: 1fr; align-content: center; padding: 26px 22px 58px; }
  .bs-copy { position: relative; z-index: 2; }
  .bs-copy p { max-width: none; }
  .bs-vis {
    display: block; position: absolute; right: -54px; bottom: -26px;
    width: 68%; height: auto; min-height: 0; z-index: 0;
  }
  .bs-vis .bs-stack { max-width: none; width: 100%; height: 190px; }
  /* Slide 2 zeigt dieselbe PDF-Fläche wie am Desktop, nur leicht gekippt */
  .bs-slide.t-soft .bs-vis { right: -18px; bottom: -14px; width: 58%; }
  .bs-vis .bs-pdf {
    width: 100%; max-width: none; transform: rotate(-6deg);
    padding: 24px 18px; background: rgba(255,255,255,.9);
    box-shadow: 0 18px 34px rgba(14,15,36,.16);
  }
  .bs-vis .bs-pdf svg { width: 40px; height: 40px; }
  .bs-vis .bs-pdf b { font-size: 15px; }
  .bs-vis .bs-pdf small { font-size: 12px; }

  /* Verlauf, damit der Text über dem Bild lesbar bleibt */
  .bs-slide::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .bs-slide.t-blue::before { background: linear-gradient(100deg, #3b4395 32%, rgba(59,67,149,.7) 60%, rgba(59,67,149,.05) 92%); }
  .bs-slide.t-ink::before  { background: linear-gradient(100deg, #13152f 32%, rgba(14,15,36,.7) 60%, rgba(14,15,36,.05) 92%); }
  .bs-slide.t-soft::before { background: linear-gradient(100deg, #f7f8fd 32%, rgba(247,248,253,.88) 60%, rgba(247,248,253,.12) 92%); }

  .bs-dots {
    display: flex; gap: 7px; position: absolute; left: 22px; bottom: 18px; z-index: 4;
    background: rgba(255,255,255,.92); border-radius: 30px; padding: 7px 11px;
    box-shadow: 0 6px 16px rgba(8,10,34,.16);
  }
  .bs-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: #c9cbe0; transition: width .3s, background .3s, border-radius .3s;
  }
  .bs-dots button.on { width: 24px; border-radius: 4px; background: var(--blue); }

  .side-blocks { grid-template-columns: 1fr 1fr; }
  .shgrid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .sh-desc { display: none; }
  .sh-body { padding: 14px; }
  .shop-head { padding: 34px 0 22px; }
}
@media (max-width: 560px) {
  .side-blocks { grid-template-columns: 1fr; }
  .side-cards { grid-template-columns: 1fr; }
  .sh-title { flex-direction: column; align-items: flex-start; gap: 3px; }
  .sh-price { font-size: 11px; font-weight: 700; color: var(--txt-soft); }
  .sh-price small { display: none; }
  .sh-arrow { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
  .sh-foot { padding-top: 11px; }
  .bs-stage { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-slide, .shcard, .sh-media img { transition: none !important; }
  .shcard:hover { transform: none; }
}

/* ============================================================
   7 · PROZESSLEISTE (Bestellablauf)
   ------------------------------------------------------------
   Zeigt dem Besucher, wo er im Bestellablauf steht.
   Zustände pro Schritt: is-done · is-current · is-next
   Gesteuert über DDSteps (js/shop-core.js) bzw. data-current.
   ============================================================ */
.steps {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 28px 24px; margin-bottom: 30px;
  box-shadow: 0 12px 32px rgba(14,15,36,.06);
}

.steps-rail { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }

.step { position: relative; min-width: 0; }

/* Verbindungslinie: Spur + farbige Füllung */
.step::after,
.step .step-line {
  content: ''; position: absolute; top: 22px; left: 58px; right: 12px; height: 2px; border-radius: 2px;
}
.step::after { background: var(--line); }
.step .step-line {
  z-index: 1; background: var(--blue); transform: scaleX(0); transform-origin: left center;
  transition: transform .55s cubic-bezier(.4,0,.2,1); transition-delay: var(--d, 0s);
}
.step.is-done .step-line { transform: scaleX(1); }
.step:last-child::after, .step:last-child .step-line { display: none; }
/* letzter Abschnitt gestrichelt: danach folgt der Abschluss */
.step.pre-final::after { background: none; border-top: 2px dashed var(--line); height: 0; }

.step-in {
  display: block; text-decoration: none; color: inherit; padding-right: 16px;
  border-radius: 12px; outline-offset: 4px;
}
.step.is-next .step-in { pointer-events: none; }

/* Punkt */
.step-dot {
  position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff;
  border: 2px solid var(--line); color: var(--txt-soft);
  font-family: var(--display); font-size: 17px; line-height: 1;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.step-dot svg { width: 21px; height: 21px; }
.step.is-done .step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.is-current .step-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 5px rgba(59,67,149,.12); }
.step.is-next .step-dot { background: var(--paper-2); }
.step.is-final.is-next .step-dot { border-style: dashed; }

/* Ring, der den aktuellen Schritt hervorhebt */
.step.is-current .step-dot::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--blue); opacity: .35; animation: stepRing 2.4s ease-out infinite;
}
@keyframes stepRing {
  0% { transform: scale(1); opacity: .35; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* Text */
.step-body { display: block; margin-top: 15px; padding-right: 18px; }
.step-name { display: block; font-size: 14.5px; font-weight: 800; color: var(--txt-soft); line-height: 1.25; }
.step-sub { display: block; font-size: 12.5px; color: var(--txt-soft); opacity: .8; line-height: 1.4; margin-top: 4px; }
.step.is-done .step-name { color: var(--ink); }
.step.is-current .step-name { color: var(--blue); }
.step.is-next .step-name { color: var(--txt-soft); }
.step-here {
  display: none; margin-top: 9px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #fff; background: var(--blue);
  padding: 4px 10px; border-radius: 30px;
}
.step.is-current .step-here { display: inline-block; }

/* Erledigte Schritte sind anklickbar */
.step.is-done .step-in:hover .step-name { color: var(--blue); }
.step.is-done .step-in:hover .step-dot { background: var(--blue-700); border-color: var(--blue-700); }

/* Kompaktansicht für schmale Bildschirme */
.steps-mini { display: none; }
.sm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sm-count { white-space: nowrap; flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.sm-next { font-size: 12px; color: var(--txt-soft); text-align: right; min-width: 0; }
.sm-label { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink); margin-top: 8px; }
.sm-sub { font-size: 12.5px; color: var(--txt-soft); margin-top: 3px; }
.sm-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 13px; }
.sm-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--blue); transition: width .55s cubic-bezier(.4,0,.2,1); }

@media (max-width: 860px) {
  .steps { padding: 20px 20px 19px; margin-bottom: 24px; }
  .steps-rail { display: none; }
  .steps-mini { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .step .step-line, .sm-bar i { transition: none; }
  .step.is-current .step-dot::before { animation: none; }
}
