/* BikePass Shop — Design folgt dem bestehenden CD der Website
   (Teal #36D0BC, Ink #0f172a, Bebas Neue für Display, Geist für Fließtext).
   Bewusst eigenständige, schlanke Datei: der Shop liegt außerhalb von WordPress
   und soll ohne dessen CSS auskommen. */

:root {
  --teal: #36D0BC;
  --teal-deep: #0d9488;
  --teal-hover: #14b8a6;
  --ink: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --radius: 14px;
  --radius-pill: 999px;
  --schatten: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --schatten-hoch: 0 2px 4px rgba(15, 23, 42, .08), 0 16px 40px rgba(15, 23, 42, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('https://bikepass.eu/wp-content/plugins/bikepass-pages/assets/fonts/BebasNeue-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.huelle { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Hinweisbalken für den Testbetrieb — fällt bewusst auf und verschwindet beim Go-live */
.test-balken {
  background: #78350f; color: #fef3c7; text-align: center;
  padding: 9px 16px; font-size: 13.5px; font-weight: 500;
}

/* --- Kopf ---------------------------------------------------------------- */

.shop-kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.shop-kopf .huelle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.shop-kopf img { height: 32px; width: auto; display: block; }
.kopf-links { display: flex; align-items: center; gap: 22px; }
.kopf-nav { display: flex; gap: 18px; font-size: 14.5px; }
.kopf-nav a { color: var(--slate-600); text-decoration: none; transition: color .18s; }
.kopf-nav a:hover { color: var(--ink); }

.warenkorb-knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: #fff; font-weight: 600; font-size: 14.5px; font-family: inherit;
  box-shadow: 0 4px 14px rgba(13, 148, 136, .28);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.warenkorb-knopf:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13, 148, 136, .34); }
.warenkorb-zahl {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .25); border-radius: var(--radius-pill);
  font-size: 12px; font-variant-numeric: tabular-nums;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: 64px 0 44px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(54, 208, 188, .16), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(13, 148, 136, .12), transparent 65%),
    var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.hero h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(42px, 6.5vw, 76px); line-height: .95; letter-spacing: .01em;
  margin: 0 0 14px; text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--teal-deep); }
.hero p { margin: 0; max-width: 60ch; color: var(--slate-600); font-size: 17px; }

/* --- Filter -------------------------------------------------------------- */

.filter { display: flex; gap: 8px; padding: 28px 0 6px; flex-wrap: wrap; }
.filter button {
  padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600);
  font-family: inherit; font-size: 14.5px; font-weight: 500;
  transition: all .18s var(--ease);
}
.filter button:hover { border-color: var(--slate-300); color: var(--ink); }
.filter button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* --- Produktraster ------------------------------------------------------- */

.raster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 26px; padding: 26px 0 80px; align-items: start;
}
.karte {
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: transform .26s var(--ease), box-shadow .26s, border-color .26s;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-hoch); border-color: var(--slate-300); }
.karte-bild { position: relative; aspect-ratio: 1; background: var(--slate-50); overflow: hidden; }
.karte-bild img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .3s var(--ease);
}
.karte-bild img.zweit { position: absolute; inset: 0; opacity: 0; }
.karte:hover .karte-bild img.zweit { opacity: 1; }
.karte-linie {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, .82); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.karte-text { padding: 16px 18px 18px; }
.karte-text h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.karte-marke { margin: 0 0 12px; font-size: 13px; color: var(--slate-500); }
.karte-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preis { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.preis span { font-size: 13px; font-weight: 400; color: var(--slate-500); }
.karte button {
  padding: 8px 15px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--slate-200); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: all .18s var(--ease);
}
.karte button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Dialog (Variantenwahl + Warenkorb) ---------------------------------- */

dialog {
  border: 0; border-radius: 18px; padding: 0; max-width: 560px; width: calc(100% - 32px);
  box-shadow: var(--schatten-hoch); color: var(--ink);
}
dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.dialog-kopf {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 14px; border-bottom: 1px solid var(--slate-200);
}
.dialog-kopf h2 { margin: 0; font-size: 19px; font-weight: 600; }
.dialog-kopf p { margin: 3px 0 0; font-size: 13.5px; color: var(--slate-500); }
.dialog-zu {
  border: 0; background: var(--slate-100); cursor: pointer; border-radius: 50%;
  width: 32px; height: 32px; flex-shrink: 0; font-size: 17px; color: var(--slate-600);
  transition: background .18s;
}
.dialog-zu:hover { background: var(--slate-200); }
.dialog-koerper { padding: 20px 24px; max-height: min(60vh, 520px); overflow-y: auto; }
.dialog-fuss {
  padding: 16px 24px 22px; border-top: 1px solid var(--slate-200); background: var(--slate-50);
}

/* Höhe begrenzt, damit Farbe und Größe ohne Scrollen sichtbar bleiben */
.dlg-bild {
  display: block; width: 100%; height: 190px; object-fit: contain;
  border-radius: 11px; background: var(--slate-50); margin-bottom: 18px;
}

.feld { margin-bottom: 18px; }
.feld label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl button {
  padding: 7px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--slate-200); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14px; transition: all .16s var(--ease);
}
.wahl button:hover { border-color: var(--slate-400, #94a3b8); }
.wahl button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.wahl button[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.farbpunkt {
  width: 15px; height: 15px; border-radius: 50%; display: inline-block;
  margin-right: 7px; vertical-align: -2px; border: 1px solid rgba(15, 23, 42, .18);
}

.knopf-voll {
  width: 100%; padding: 13px 20px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill); font-family: inherit; font-size: 15.5px; font-weight: 600;
  background: linear-gradient(90deg, var(--teal-deep) 0%, var(--teal) 100%); color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, .28);
  transition: transform .22s var(--ease), box-shadow .22s, opacity .2s;
}
.knopf-voll:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13, 148, 136, .34); }
.knopf-voll[disabled] { opacity: .45; cursor: not-allowed; }

/* --- Warenkorb ----------------------------------------------------------- */

.wk-zeile { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--slate-200); }
.wk-zeile:last-child { border-bottom: 0; }
.wk-zeile img { width: 68px; height: 68px; object-fit: cover; border-radius: 9px; background: var(--slate-50); flex-shrink: 0; }
.wk-daten { flex: 1; min-width: 0; }
.wk-daten h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.wk-daten p { margin: 0; font-size: 13px; color: var(--slate-500); }
.wk-menge { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border: 1px solid var(--slate-200); border-radius: 9px; }
.wk-menge button {
  width: 28px; height: 28px; border: 0; background: none; cursor: pointer;
  font-size: 16px; color: var(--slate-600); font-family: inherit;
}
.wk-menge button:hover { color: var(--ink); }
.wk-menge span { min-width: 26px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.wk-preis { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-weg { display: block; margin-top: 6px; background: none; border: 0; cursor: pointer; color: var(--slate-500); font-size: 12.5px; font-family: inherit; text-decoration: underline; }
.wk-weg:hover { color: #b91c1c; }
.wk-summe { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.wk-summe strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.wk-hinweis { margin: 10px 0 0; font-size: 12.5px; color: var(--slate-500); text-align: center; }
.wk-leer { padding: 40px 0; text-align: center; color: var(--slate-500); }

/* --- Fuß ----------------------------------------------------------------- */

.shop-fuss {
  border-top: 1px solid var(--slate-200); background: var(--slate-50);
  padding: 34px 0; font-size: 13.5px; color: var(--slate-500);
}
.shop-fuss .huelle { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.shop-fuss a { color: var(--slate-600); text-decoration: none; }
.shop-fuss a:hover { color: var(--ink); text-decoration: underline; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* --- Danke-Seite --------------------------------------------------------- */

.danke { padding: 90px 0; text-align: center; }
.danke h1 {
  font-family: 'Bebas Neue', Impact, sans-serif; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 64px); line-height: .96; margin: 0 0 14px;
}
.danke p { max-width: 52ch; margin: 0 auto 12px; color: var(--slate-600); }
.danke .haken {
  width: 68px; height: 68px; margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 8px 24px rgba(13, 148, 136, .3);
}

@media (max-width: 720px) {
  .kopf-nav { display: none; }
  .hero { padding: 44px 0 32px; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .karte-text { padding: 12px 13px 14px; }
  .karte-fuss { flex-direction: column; align-items: stretch; gap: 8px; }
  .karte button { width: 100%; }
}
