@import url('fonts.css');

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ececec;
  --ink: #111111;
  --ink-dim: #6b6b6b;
  --ink-faint: #9a9a9a;
  --border: #e5e5e5;
  --accent: #d5451b;
  --accent-ink: #ffffff;

  --display: "Archivo", sans-serif;
  --body-font: "Inter", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --container: 1680px;
  --gutter: clamp(16px, 2.2vw, 32px); /* space between screen edge and content */
  --header-h: 132px;
  --radius: 2px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Shop + product pages: more space between content and the screen edge.
   Scoped to <main> so header and footer stay aligned across all pages. */
.page-shop main, .page-product main { --gutter: clamp(20px, 5vw, 80px); }

/* ---------- Placeholder media (replace with real assets per client) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--ink-faint);
  font-family: var(--body-font);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph::before { content: attr(data-ratio); }
.ph-3-4 { aspect-ratio: 3 / 4; }
.ph-1-1 { aspect-ratio: 1 / 1; }
.ph-16-9 { aspect-ratio: 16 / 9; }
.ph-21-9 { aspect-ratio: 21 / 9; }

/* ---------- Utility bar + header ---------- */
.utility-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.utility-bar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--ink-dim);
}
.utility-bar a:hover { color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); }

/* Homepage: transparent nav overlaid on the full-bleed hero image. */
.page-home .promo-bar, .page-home .utility-bar { display: none; }
.page-home .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  transition: background-color 250ms ease, backdrop-filter 250ms ease;
}
/* Once past the top of the hero, the fixed header gets a dark bar so the white nav stays readable. */
.page-home .site-header.is-scrolled { background: rgba(17,17,17,0.88); backdrop-filter: blur(10px); }
.page-home .site-header .brand,
.page-home .site-header .nav-links a,
.page-home .site-header .search-field,
.page-home .site-header .search-field input,
.page-home .site-header .icon-btn { color: #fff; }
.page-home .site-header .brand img { filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,0.4)); }
.page-home .site-header .brand,
.page-home .site-header .nav-links a { text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.page-home .site-header .search-field { background: rgba(255,255,255,0.14); }
.page-home .site-header .search-field input::placeholder { color: rgba(255,255,255,0.75); }
.page-home .site-header .icon-btn:hover { background: rgba(255,255,255,0.16); }
.page-home .site-header .nav-toggle-bars,
.page-home .site-header .nav-toggle-bars::before,
.page-home .site-header .nav-toggle-bars::after { background: #fff; }
@media (max-width: 900px) {
  .page-home .site-header, .page-home .site-header.is-scrolled { position: sticky; background: var(--bg); backdrop-filter: none; }
  .page-home .site-header .brand,
  .page-home .site-header .icon-btn,
  .page-home .site-header .nav-links a { color: var(--ink); text-shadow: none; }
  .page-home .site-header .brand img { filter: none; }
  .page-home .site-header .search-field { background: var(--surface); }
  .page-home .site-header .search-field input { color: var(--ink); }
  .page-home .site-header .search-field input::placeholder { color: var(--ink-dim); }
  .page-home .site-header .nav-toggle-bars,
  .page-home .site-header .nav-toggle-bars::before,
  .page-home .site-header .nav-toggle-bars::after { background: var(--ink); }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-4);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 28px; width: auto; }
.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-links { display: flex; gap: var(--space-5); }
.nav-links a { font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.icon-btn:hover { background: var(--surface); transform: scale(1.08); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  min-width: 220px;
}
.search-field input { border: none; background: none; outline: none; font-size: 14px; width: 100%; color: var(--ink); }
.search-field svg { width: 16px; height: 16px; color: var(--ink-dim); flex-shrink: 0; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  max-height: 340px;
  overflow-y: auto;
  z-index: 50;
}
.search-result { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.search-result:hover { background: var(--surface); }
.search-result img, .search-result .ph { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.search-result span { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: var(--ink); }
.search-result small { font-weight: 400; color: var(--ink-dim); }
.search-result-empty { padding: 12px; font-size: 13px; color: var(--ink-dim); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

html.nav-locked { overflow: hidden; }
/* Sprungmarken (#kollektionen, #drop, #spots …) nicht unter dem fixierten Header verstecken */
main [id] { scroll-margin-top: 96px; }
@media (max-width: 900px) { main [id] { scroll-margin-top: 84px; } }
.nav-account { display: none; }
.account-btn { position: relative; }
.account-dot { position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 2px var(--bg); }
.account-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.account-delete { margin-top: var(--space-4); font-size: 13px; color: var(--ink-dim, inherit); }
.account-delete summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.account-delete summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.account-delete form { margin-top: var(--space-3); }

.promo-bar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 10px var(--space-3); }
.promo-bar a { text-decoration: underline; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 0 0;
    z-index: 90;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-5) var(--space-4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-account { display: block; }
  .nav-links a { display: block; padding: var(--space-4) 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .search-field { margin-top: var(--space-4); min-width: 0; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.hero { padding: 0 0 var(--space-7); }
.hero-media { position: relative; width: 100%; overflow: hidden; background: #0b0c0d; }
.hero-media img,
.hero-video { width: 100%; height: auto; display: block; }
.hero-video { aspect-ratio: 2 / 1; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.25) 100%);
}
.hero-overlay {
  /* Der Knopf sitzt knapp unter dem VILDT-Schriftzug im Video (Schrift liegt bei 44–56 % der Höhe). */
  position: absolute; left: 0; right: 0; top: 65%; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: 0 var(--space-3);
}
.hero-word {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 10vw, 8.5rem);
  letter-spacing: -0.02em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
  line-height: 0.95;
}
.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-size: clamp(14px, 1.6vw, 17px);
  max-width: 46ch;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: var(--space-2);
}
@media (max-width: 900px) {
  /* Auf Handys wird das breite Video seitlich beschnitten. Die Höhe ist so begrenzt, dass der
     VILDT-Schriftzug (mittlere 24 % der Breite) immer ganz sichtbar bleibt. */
  .hero-media img,
  .hero-video { height: min(78svh, 620px, 140vw); object-fit: cover; object-position: 50% 50%; aspect-ratio: auto; }
}
.hero-overlay .btn-primary { background: #fff; color: var(--ink); margin-top: var(--space-1); }
.hero-overlay .btn-primary:hover { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.14); }
.btn:active { transform: scale(0.97) translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Category tiles ---------- */
.section { padding: clamp(28px, 3vw, 40px) 0; }
#vildt-story { padding: clamp(20px, 2vw, 28px) 0; }
.story-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-6); align-items: center; }
.story-content { max-width: 46ch; justify-self: center; }
.story-text { color: var(--ink-dim); font-size: 16px; line-height: 1.7; margin: var(--space-3) 0 var(--space-4); }
/* Card stack: straight Nike-style photo cards stacked front to back. Cards behind are smaller and
   shifted left so their vertical titles peek out. Position comes from --p (0 = front); JS only
   changes --p and plays the shuffle, where a card changes layer only while it is out to the side. */
.stack-wrap { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; max-width: 540px; justify-self: center; }
.card-stack { --peek: 64px; position: relative; aspect-ratio: 0.92 / 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card-stack img { -webkit-user-drag: none; }
.stack-card {
  --p: 0; --nudge: 0px;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: calc(100% - 2 * var(--peek));
  display: block; overflow: hidden; border-radius: 16px;
  background: var(--ink); color: #fff;
  transform-origin: left center;
  transform: translateX(calc(var(--p) * var(--peek) * -1 - var(--nudge))) scale(calc(1 - var(--p) * 0.07));
  transition: transform 550ms var(--ease);
  box-shadow: -12px 0 30px rgba(0,0,0,0.18);
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%); }
/* Dim cards behind the front one; its own layer so only opacity animates. */
.stack-card::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: calc(var(--p) * 0.22); pointer-events: none; transition: opacity 550ms var(--ease); }
.stack-card-title {
  position: absolute; left: 20px; bottom: var(--space-4); z-index: 3;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.stack-card-btn {
  position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: 1;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600;
  transition: opacity 250ms var(--ease), background 160ms ease;
}
.stack-card:not(.is-front) .stack-card-btn { opacity: 0; }
.stack-card.is-front img { transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .stack-card:not(.is-front):hover { --nudge: 10px; }
  .stack-card.is-front:hover img { transform: scale(1.03); }
  .stack-card.is-front:hover .stack-card-btn { background: #e8e8e8; }
}
.stack-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.stack-controls { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.stack-count { min-width: 64px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stack-count span { color: var(--ink-faint); }
.stack-arrow {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); color: var(--ink);
  transition: background 160ms ease, transform 160ms var(--ease);
}
.stack-arrow svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .stack-arrow:hover { background: var(--surface-2); } }
.stack-arrow:active { transform: scale(0.94); }
@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; }
  .stack-wrap { order: -1; }
}
@media (max-width: 560px) {
  .card-stack { --peek: 36px; aspect-ratio: 0.8 / 1; }
  .stack-card-title { left: 12px; font-size: 16px; }
  .stack-card-btn { right: var(--space-3); bottom: var(--space-3); }
  .stack-controls { justify-content: center; }
}

/* ---------- Drop ---------- */
.drop-panel {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--ink); color: #fff;
  border-radius: 16px; overflow: hidden;
}
.drop-content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-7) var(--space-6); }
.drop-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.drop-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.drop-text { max-width: 44ch; line-height: 1.6; color: rgba(255,255,255,0.75); }
.countdown { display: flex; gap: 10px; margin-top: var(--space-2); }
.countdown-unit { min-width: 76px; padding: 12px 10px; text-align: center; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; }
.countdown-num { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.drop-date { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: var(--space-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; }
.drop-media { position: relative; min-height: 440px; }
.drop-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.drop-products-head { margin-top: var(--space-6); }
@media (max-width: 900px) {
  .drop-panel { grid-template-columns: 1fr; }
  .drop-media { order: -1; min-height: 300px; }
  .drop-content { padding: var(--space-5) var(--space-4); }
  .countdown { width: 100%; }
  .countdown-unit { flex: 1; min-width: 0; }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
.section-link { font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ink); }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.tile-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.tile:hover .tile-media img { transform: scale(1.06); }
.tile-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
}
.tile-overlay { position: absolute; left: var(--space-4); bottom: var(--space-4); right: var(--space-4); z-index: 1; }
.tile-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.tile-title { color: #fff; font-size: 1.3rem; margin-bottom: var(--space-3); }
.tile-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 var(--space-4);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 13px;
  border-radius: var(--radius-pill);
  transition: transform 180ms var(--ease);
}
.tile:hover .tile-cta { transform: translateY(-2px); }
.tile:active .tile-cta { transform: scale(0.96); }
@media (max-width: 720px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- Product grid + cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.product-card { display: flex; flex-direction: column; gap: var(--space-2); }
.product-media { border-radius: var(--radius); overflow: hidden; }
.product-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); transition: transform 420ms var(--ease); }
.product-grid--4 .product-media img { aspect-ratio: 1 / 1; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media { position: relative; }
.product-tag {
  position: absolute; top: var(--space-2); left: var(--space-2); z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: #fff; padding: 4px 10px; border-radius: var(--radius-pill);
}
.product-wish {
  position: absolute; top: var(--space-2); right: var(--space-2); z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 160ms var(--ease);
}
.product-wish:hover { transform: scale(1.1); }
.product-wish:active { transform: scale(0.9); }
.product-wish svg { width: 18px; height: 18px; transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.product-wish.is-active svg { fill: var(--ink); transform: scale(1.12); }
.product-body { padding-top: 4px; }
.product-cat { display: block; font-size: 12px; color: var(--ink-dim); margin-bottom: 2px; }
.product-name { font-family: var(--body-font); font-weight: 600; font-size: 15px; }
.product-colors { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.product-price { display: block; margin-top: 6px; font-weight: 600; font-size: 15px; }
.product-price .was { color: var(--ink-faint); text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.product-price .now { color: var(--accent); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); } }
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-2); }
  .product-name, .product-price { font-size: 14px; }
}

/* ---------- PLP: filter sidebar + grid ---------- */
.plp-head { padding: var(--space-5) 0 var(--space-4); border-bottom: 1px solid var(--border); }
.plp-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.plp-count { color: var(--ink-dim); font-weight: 500; font-size: 0.6em; margin-left: 8px; }
.plp-toolbar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; }
.plp-toolbar-actions { display: flex; gap: var(--space-4); }
.toolbar-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.toolbar-btn svg { width: 16px; height: 16px; }

.plp-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6); align-items: start; }
.filter-group { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.filter-group h3 { font-size: 14px; margin-bottom: var(--space-3); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-dim); }
.filter-option input { width: 18px; height: 18px; accent-color: var(--ink); }
.filter-option:hover { color: var(--ink); }

@media (max-width: 900px) {
  .plp-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-open { display: block; margin-bottom: var(--space-4); }
}

/* ---------- Icon badges (cart / wishlist count) ---------- */
.icon-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* ---------- Help modal ---------- */
.help-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease);
  padding: var(--space-4);
}
.help-modal.is-open { opacity: 1; pointer-events: auto; }
.help-modal-panel {
  background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%;
  padding: var(--space-5); max-height: 85vh; overflow-y: auto;
  transform: scale(0.96); transition: transform 220ms var(--ease);
}
.help-modal.is-open .help-modal-panel { transform: scale(1); }
.help-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.help-modal-close { width: 32px; height: 32px; font-size: 20px; }
.help-steps { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.help-step { display: flex; gap: var(--space-3); }
.help-step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.help-step p { font-size: 14px; line-height: 1.5; color: var(--ink-dim); margin-top: 2px; }
.help-step strong { color: var(--ink); }

/* ---------- PDP ---------- */
.pdp { padding-top: var(--space-6); padding-bottom: var(--space-8); } /* keep the .wrap side gutters */
/* Hauptbild mit der Bildschirmbreite skaliert, höchstens 720px breit (3:4); Layout mittig */
.pdp-layout { --pdp-img: clamp(420px, 40vw, 720px); display: grid; grid-template-columns: 88px minmax(0, var(--pdp-img)) minmax(320px, 420px); justify-content: center; gap: clamp(20px, 3vw, 48px); align-items: start; }
.pdp-thumbs { display: flex; flex-direction: column; gap: var(--space-2); position: sticky; top: calc(var(--header-h) + var(--space-3)); }
.pdp-thumb { display: block; width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.pdp-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp-thumb { border: 2px solid transparent; transition: border-color 160ms var(--ease); }
.pdp-thumb:hover { border-color: var(--border); }
.pdp-thumb.is-active { border-color: var(--ink); }
.pdp-info { position: sticky; top: calc(var(--header-h) + var(--space-3)); padding-left: var(--space-4); }
.pdp-cat { font-size: 13px; color: var(--ink-dim); margin-bottom: 4px; display: block; }
.pdp-name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.pdp-price { font-size: 18px; font-weight: 700; margin-bottom: var(--space-4); }
.pdp-option { margin-bottom: var(--space-4); }
.pdp-option-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: var(--space-2); }
.pdp-option-label a { font-weight: 400; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.pdp-option-label a:hover { color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer; transition: transform 160ms var(--ease), outline-offset 160ms var(--ease); }
.swatch:hover { transform: scale(1.1); }
.swatch:active { transform: scale(0.92); }
.swatch.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.size-btn { min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: border-color 160ms var(--ease), transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease); }
.size-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.size-btn:active { transform: scale(0.95); }
.size-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn:disabled { color: var(--ink-faint); text-decoration: line-through; cursor: not-allowed; }
.size-btn:disabled:hover { border-color: var(--border); transform: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.product-card.is-sold-out .product-media img { opacity: 0.6; }
.product-card.is-sold-out .product-price { color: var(--ink-dim); }
.pdp-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: rgba(213, 69, 27, 0.1);
  padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.pdp-desc-short { color: var(--ink-dim); font-size: 14px; line-height: 1.6; margin: var(--space-3) 0 var(--space-4); }
.pdp-actions-row { display: flex; align-items: stretch; gap: 10px; margin-top: var(--space-5); }
.pdp-actions-row .btn { flex: 1; }
.pdp-wish-btn {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.pdp-wish-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.pdp-wish-btn:active { transform: scale(0.94); }
.pdp-wish-btn svg { width: 20px; height: 20px; transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.pdp-wish-btn.is-active svg { fill: var(--ink); transform: scale(1.12); }

.pdp-trust { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.pdp-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-dim); }
.pdp-trust-item svg { width: 20px; height: 20px; color: var(--ink); flex-shrink: 0; }

.pdp-tabs { margin-top: var(--space-6); }
.pdp-tab-buttons { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--border); }
.pdp-tab-btn {
  padding: var(--space-3) 0; font-size: 14px; font-weight: 600; color: var(--ink-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.pdp-tab-btn:hover { color: var(--ink); }
.pdp-tab-btn.is-active { color: var(--ink); border-color: var(--ink); }
.pdp-tab-panel { padding-top: var(--space-4); color: var(--ink-dim); font-size: 14px; line-height: 1.7; }
.pdp-tab-panel a { color: var(--ink); border-bottom: 1px solid currentColor; }

.pdp-detail-row { margin-top: var(--space-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.pdp-detail-shot { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.pdp-detail-shot img { width: 100%; height: 100%; object-fit: cover; }
.pdp-detail-text h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.pdp-detail-text p { color: var(--ink-dim); font-size: 14px; line-height: 1.7; }

@media (max-width: 900px) {
  .pdp-layout { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; position: static; overflow-x: auto; order: 1; width: 100%; max-width: 600px; margin: 0 auto; }
  .pdp-main-image { order: 0; width: 100%; max-width: 600px; margin: 0 auto; }
  .pdp-info { order: 2; }
  .pdp-thumb { flex: 0 0 72px; width: 72px; height: 72px; min-width: 0; }
  .pdp-info { position: static; padding-left: 0; margin-top: var(--space-4); width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; }
  .pdp-detail-row { grid-template-columns: 1fr; }
}

/* ---------- Content pages (Über uns, Kontakt, Grössentabelle, Rechtliches) ---------- */
.legal-page { padding: var(--space-6) 0 var(--space-8); max-width: 760px; }
.legal-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: var(--space-4); }
.legal-page h2 { font-size: 1.1rem; margin: var(--space-5) 0 var(--space-2); }
.legal-page p, .legal-page li { color: var(--ink-dim); font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: var(--space-4); list-style: disc; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-layout .legal-page { order: 1; max-width: 62ch; }
.about-photo { order: 2; margin: var(--space-6) 0 var(--space-8); position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1357 / 1800; object-fit: cover; border-radius: 16px; background: var(--surface); }
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { order: 0; position: static; margin: var(--space-4) 0 0; }
  .about-layout .legal-page { padding-top: var(--space-4); }
  .about-photo img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
}
.legal-page a { color: var(--ink); border-bottom: 1px solid currentColor; }
.legal-page a.btn { border-bottom: 0; }
.legal-page a.btn-primary { color: #fff; }
.size-table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); font-size: 14px; }
.size-table th, .size-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.size-table th { background: var(--surface); font-family: var(--display); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-5); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-form label { font-size: 13px; font-weight: 600; margin-bottom: 4px; display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px;
  font: inherit; font-size: 14px; color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-3); font-size: 14px; color: var(--ink-dim); }
.contact-info strong { color: var(--ink); display: block; margin-bottom: 2px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.legal-page p + p,
.legal-page ul + p,
.legal-page p + ul { margin-top: var(--space-3); }
.legal-page li + li { margin-top: 4px; }

/* ---------- Page banner (Bikelife, Galerie) ---------- */
/* Split banner: text on a dark panel, photo on the right half (portrait photos stay sharp at this size). */
.page-banner { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); height: clamp(380px, 62vh, 600px); overflow: hidden; background: var(--ink); color: #fff; }
.page-banner img { order: 2; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 12%; }
.page-banner-content { display: flex; align-items: flex-end; padding: var(--space-6) var(--space-6) var(--space-7) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.page-banner-content .wrap { padding: 0; margin: 0; }
.page-banner-title { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.page-banner-text { margin-top: var(--space-3); max-width: 40ch; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.8); }
@media (max-width: 900px) {
  .page-banner { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .page-banner img { order: 0; height: 320px; }
  .page-banner-content { padding: var(--space-5) var(--space-3); }
}
.page-intro { padding: var(--space-6) 0 var(--space-4); }
.page-intro h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
.page-intro p { margin-top: var(--space-3); max-width: 56ch; color: var(--ink-dim); line-height: 1.7; }

/* ---------- Bikelife page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.split-text p { color: var(--ink-dim); line-height: 1.7; }
.split-text p + p { margin-top: var(--space-3); }
.split-text .section-title { margin-bottom: var(--space-4); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
/* Der Kodex: full-bleed black manifesto band with oversized rows (no boxed card grid). */
.kodex { margin: var(--space-6) 0; padding: clamp(56px, 7vw, 104px) 0; background: var(--ink); color: #fff; }
.kodex-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: clamp(32px, 4vw, 56px); }
.kodex-title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.kodex-intro { font-size: 16px; color: rgba(255,255,255,0.65); }
.kodex-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(255,255,255,0.16); }
.kodex-row {
  display: grid; grid-template-columns: minmax(90px, 0.6fr) 1.4fr 1.6fr; gap: var(--space-5); align-items: baseline;
  padding: clamp(20px, 2.4vw, 32px) 0; border-top: 1px solid rgba(255,255,255,0.16);
}
.kodex-num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; color: rgba(255,255,255,0.4); transition: -webkit-text-stroke-color 200ms ease; }
@supports (-webkit-text-stroke: 1px) {
  .kodex-num { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.55); }
}
@media (hover: hover) and (pointer: fine) {
  .kodex-row:hover .kodex-num { -webkit-text-stroke-color: #f26a3f; }
}
.kodex-name { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.kodex-body { display: flex; flex-direction: column; gap: var(--space-1); }
.kodex-lead { max-width: 44ch; font-size: clamp(17px, 1.4vw, 19px); font-weight: 700; line-height: 1.35; color: #fff; }
.kodex-text { max-width: 44ch; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.kodex-outro { margin-top: clamp(32px, 4vw, 56px); font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
/* Spot-Karte */
.spots-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; justify-content: flex-end; }
.spots-user { font-size: 13px; color: var(--ink-dim); }
.spots-user strong { color: var(--ink); font-weight: 600; }
.spots-user button { font: inherit; color: var(--ink); border-bottom: 1px solid currentColor; }
.spots-intro { max-width: 60ch; margin: calc(-1 * var(--space-2)) 0 var(--space-4); font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
.spots-map-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #ececec; }
.spots-map { height: clamp(420px, 70vh, 760px); background: #ececec; font-family: var(--body-font); }
.spots-map.is-placing, .spots-map.is-placing .leaflet-interactive { cursor: crosshair; }
.spots-map .leaflet-tile-pane { filter: grayscale(1); }
.spots-map .leaflet-control-zoom { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.12); margin: 0 16px 24px 0; }
.spots-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; color: var(--ink); border-color: var(--border); }
.spots-map .leaflet-control-zoom a:hover { background: var(--surface); }
.spots-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,0.75); }
.spot-pin svg { width: 28px; height: 38px; display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3)); }
.spot-pin path { fill: var(--ink); }
.spot-pin circle { fill: #fff; }
.spots-map .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.spots-map .leaflet-popup-content { margin: 16px 18px; font-family: var(--body-font); }
.spot-popup { display: flex; flex-direction: column; gap: 6px; }
.spot-popup h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; margin: 0; }
.spot-popup p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }
.spot-popup-type { align-self: flex-start; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; }
.spot-popup-meta { font-size: 11px; color: var(--ink-faint); }
.spots-hint {
  position: absolute; z-index: 500; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--space-3); width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px; border-radius: var(--radius-pill); background: var(--ink); color: #fff;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.spots-hint[hidden], .spots-empty[hidden] { display: none; }
.spots-hint.is-info { padding-right: 18px; }
.spots-hint.is-info .spots-hint-actions { display: none; }
.spots-hint-actions { display: flex; gap: 6px; flex-shrink: 0; }
.spots-hint-actions button { min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.14); color: #fff; font-size: 13px; font-weight: 600; transition: background 160ms ease; }
@media (hover: hover) and (pointer: fine) { .spots-hint-actions button:hover { background: rgba(255,255,255,0.26); } }
.spots-empty { position: absolute; z-index: 400; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 120px); padding: 10px 18px; border-radius: var(--radius-pill); background: #fff; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); pointer-events: none; }
.spot-dialog { width: min(92vw, 440px); padding: var(--space-5); border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,0.25); }
.spot-dialog::backdrop { background: rgba(0,0,0,0.55); }
.spot-dialog h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; padding-right: 40px; }
.spot-dialog-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink); }
.spot-dialog-close:hover { background: var(--surface); }
.spot-tabs { display: flex; gap: 4px; margin: var(--space-4) 0 var(--space-3); padding: 4px; border-radius: var(--radius-pill); background: var(--surface); }
.spot-tabs button { flex: 1; min-height: 38px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.spot-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.spot-form { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.spot-form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.spot-form input, .spot-form select, .spot-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.spot-form input:focus, .spot-form select:focus, .spot-form textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.spot-form textarea { resize: vertical; min-height: 96px; }
.spot-optional { font-weight: 400; color: var(--ink-faint); }
.spot-field-hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-dim); }
.spot-form-note { margin-top: var(--space-2); font-size: 12px; color: var(--ink-dim); }
.spot-form-error { font-size: 13px; color: var(--accent); }
.spot-pin.is-pending path { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.spot-pin.is-pending circle { fill: var(--ink); }

@media (max-width: 720px) {
  .spots-map { height: min(64svh, 480px); min-height: 360px; }
  .spots-empty { left: 16px; bottom: 16px; transform: none; max-width: calc(100% - 96px); border-radius: 12px; }
  .spots-hint { top: 10px; flex-wrap: wrap; justify-content: center; border-radius: 16px; padding: 12px; text-align: center; }
  .spot-dialog { padding: var(--space-4); }
}
.note { margin-top: var(--space-4); font-size: 13px; color: var(--ink-dim); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6); border-radius: 16px; background: var(--ink); color: #fff; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin-top: var(--space-2); color: rgba(255,255,255,0.75); }
.cta-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost-light:hover { border-color: #fff; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--space-5); }
  .kodex-row { grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); }
  .kodex-num { grid-row: span 2; }
  .kodex-head { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Galerie ---------- */
.inline-link { color: var(--ink); border-bottom: 1px solid currentColor; }
.filter-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.chip { min-height: 40px; padding: 0 18px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.gallery { columns: 3 280px; column-gap: var(--space-3); padding-bottom: var(--space-6); }
.gallery-item { position: relative; display: block; width: 100%; margin: 0 0 var(--space-3); padding: 0; border-radius: 12px; overflow: hidden; break-inside: avoid; background: var(--surface); }
.gallery-item img { width: 100%; transition: transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .gallery-item:hover img { transform: scale(1.03); } }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery-badge { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.gallery-play { position: absolute; top: 50%; left: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--ink); }
.gallery-play svg { width: 22px; height: 22px; margin-left: 3px; }
.lightbox { width: min(92vw, 980px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: var(--ink); color: #fff; overflow: hidden;
  opacity: 0; transform: scale(0.96); transition: opacity 160ms var(--ease), transform 160ms var(--ease), overlay 160ms allow-discrete, display 160ms allow-discrete; }
.lightbox[open] { opacity: 1; transform: none; transition-duration: 240ms; }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(0.96); } }
.lightbox::backdrop { background: rgba(0,0,0,0.75); opacity: 0; transition: opacity 240ms var(--ease), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.lightbox[open]::backdrop { opacity: 1; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }
.lightbox figure { margin: 0; position: relative; }
.lightbox img, .lightbox video { width: 100%; max-height: 80vh; object-fit: contain; background: #000; display: block; }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
.lightbox figcaption { padding: var(--space-3) var(--space-4); font-size: 14px; color: rgba(255,255,255,0.8); }
.lightbox-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(80%, 420px); padding: var(--space-4); border-radius: 12px; background: rgba(0,0,0,0.75); text-align: center; font-size: 14px; line-height: 1.6; }
.lightbox-btn { position: absolute; z-index: 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 22px; transition: background 160ms ease; }
@media (hover: hover) and (pointer: fine) { .lightbox-btn:hover { background: rgba(0,0,0,0.85); } }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { top: 50%; left: 12px; margin-top: -22px; }
.lightbox-next { top: 50%; right: 12px; margin-top: -22px; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox[open] { transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-7) 0 var(--space-5); margin-top: var(--space-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-5); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); color: var(--ink); transition: border-color 160ms ease, transform 160ms var(--ease); }
.footer-social a:hover { border-color: var(--ink); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-col h4 { font-size: 13px; margin-bottom: var(--space-3); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-dim); }
.footer-col a.brand { font-size: 22px; color: var(--ink); }
.footer-col a:hover { color: var(--ink); }
.footer-brand p { margin-top: var(--space-2); color: var(--ink-dim); font-size: 14px; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-faint); }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease); z-index: 60; }
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; z-index: 61; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 260ms var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); border-bottom: 1px solid var(--border); }
.cart-close { width: 36px; height: 36px; font-size: 22px; }
.cart-list { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.cart-item { display: flex; gap: var(--space-3); }
.cart-item-media { width: 84px; flex-shrink: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-meta { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.cart-item-price { font-weight: 600; font-size: 14px; margin-top: 6px; }
.qty-stepper { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-stepper button {
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.qty-stepper button:hover { border-color: var(--ink); }
.qty-stepper span { font-weight: 600; font-size: 14px; min-width: 16px; text-align: center; }
.cart-item > div:last-child { min-width: 0; }
/* "Entfernen" ist ein Textlink, kein runder Mengen-Knopf */
.qty-stepper button.toolbar-btn { width: auto; height: auto; min-height: 32px; padding: 4px 0 4px 8px; border: 0; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.qty-stepper button.toolbar-btn:hover { color: var(--ink); }
.qty-stepper button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cart-empty { padding: var(--space-6) var(--space-4); text-align: center; color: var(--ink-dim); }
.cart-foot { padding: var(--space-4); border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: var(--space-3); }
.cart-shipping { margin: 0 0 var(--space-3); font-size: 13px; color: var(--ink-dim); }
.cart-shipping strong { color: var(--ink); }
.cart-shipping-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.cart-shipping-bar span { display: block; height: 100%; background: var(--ink); transition: width 300ms var(--ease); }
.shop-closed-bar { position: relative; z-index: 60; padding: 12px var(--space-3); background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 600; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Bestellbestätigung (bestellung.html) und «Meine Bestellungen» im Konto */
.order-items { list-style: none; margin: var(--space-5) 0 0; padding: 0; border-top: 1px solid var(--border, #e4e4e4); }
.order-items li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 12px 0; border-bottom: 1px solid var(--border, #e4e4e4); }
.order-items li span:last-child, .order-sum dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-sum { margin: var(--space-3) 0 var(--space-5); }
.order-sum div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-dim); }
.order-sum dd { margin: 0; }
.order-sum .order-total { color: var(--ink); font-weight: 700; padding-top: 10px; }
.order-page address { font-style: normal; line-height: 1.6; }
.order-actions { margin-top: var(--space-5); }
.account-orders { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.account-orders h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.account-order { border: 1px solid var(--border, #e4e4e4); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.account-order-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.account-order p { margin: 4px 0 0; color: var(--ink-dim); }
.legal-page .order-items { padding-left: 0; }
.legal-page .order-items li { list-style: none; margin: 0; }
.legal-page .order-items li::before { content: none; }

/* Meine Nachrichten im Kundenkonto */
.account-btn.has-news .account-dot { background: #d5451b; }
.account-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #d5451b; color: #fff; font-size: 11px; letter-spacing: 0; vertical-align: 1px; }
.account-thread summary { cursor: pointer; list-style: none; }
.account-thread summary::-webkit-details-marker { display: none; }
.account-thread[data-unread] summary span:last-child { color: #d5451b; }
.account-chat { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-chat li { padding: 8px 10px; border-radius: 10px; background: var(--surface-2, #f3f3f3); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.account-chat li.is-vildt { background: var(--ink); color: #fff; }
.account-chat li span { display: block; font-size: 11px; opacity: 0.7; margin-bottom: 2px; white-space: normal; }
.account-reply { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.account-reply textarea { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; resize: vertical; }
.contact-account { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #f3f3f3); font-size: 14px; }

/* ==========================================================================
   Kontoseite (konto.html): dunkles Kopfband, Tabs, Bestellungen, Chat, Einstellungen
   ========================================================================== */
.account-page { background: var(--bg); }
.account-page [hidden] { display: none !important; }
.acc-orders, .acc-steps, .acc-order-items, .chatbox-log { list-style: none; margin: 0; padding: 0; }
.acc-hero { background: var(--ink); color: #fff; }
/* Kompaktes Kopfband: Begrüssung links, Zahlen rechts in einer Zeile */
.acc-hero-inner { padding-top: clamp(22px, 3vw, 36px); padding-bottom: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.acc-hero-inner > .acc-kicker, .acc-hero-inner > .acc-title { flex-basis: 100%; }
.acc-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.acc-title { margin-top: 4px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(1.7rem, 3.6vw, 2.8rem); overflow-wrap: anywhere; }
.acc-lead { flex-basis: 100%; max-width: 52ch; color: rgba(255,255,255,0.75); font-size: 15px; }
.acc-hero-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.acc-greet { min-width: 0; }
.acc-stats { margin: 0; display: flex; gap: 0; }
.acc-stats div { padding: 0 clamp(14px, 2vw, 24px); border-left: 1px solid rgba(255,255,255,0.18); }
.acc-stats div:first-child { padding-left: 0; border-left: 0; }
.acc-stats dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); white-space: nowrap; }
.acc-stats dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .acc-hero-inner { gap: 14px; }
  .acc-stats { width: 100%; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.18); }
  .acc-stats div { flex: 1; }
}

.acc-tabs { border-bottom: 1px solid var(--border); background: var(--bg); }
.acc-tabs-inner { display: flex; gap: clamp(16px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.acc-tabs-inner::-webkit-scrollbar { display: none; }
.acc-tabs button { position: relative; padding: 15px 0 13px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; transition: color 160ms var(--ease); }
.acc-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease); }
.acc-tabs button[aria-selected="true"] { color: var(--ink); }
.acc-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.acc-tabs button:hover { color: var(--ink); }
.acc-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.acc-tab-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }

.acc-body { padding-top: clamp(20px, 3vw, 32px); padding-bottom: var(--space-8); }

/* Bestellungen: Zeilen mit Haarlinien, keine Kästen */
.acc-orders { border-top: 0; }
.acc-order { display: grid; align-items: start; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(14px, 2.5vw, 32px); padding: clamp(16px, 2.4vw, 24px) 0; border-bottom: 1px solid var(--border); }
.acc-order:first-child { padding-top: 0; }
.acc-order-thumbs { display: flex; align-items: flex-start; padding-right: 24px; }
.acc-order-thumbs img, .acc-thumb-ph { width: clamp(64px, 8vw, 96px); aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); border: 2px solid var(--bg); border-radius: var(--radius); }
.acc-order-thumbs > * + * { margin-left: -24px; }
.acc-thumb-ph { display: block; }
.acc-order-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.acc-order-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acc-order-top h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.01em; }
.acc-order-top span { color: var(--ink-dim); font-size: 14px; }
.acc-order-top-total { display: none; }
.acc-order-total { font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-steps { display: flex; max-width: 360px; counter-reset: none; }
.acc-steps li { position: relative; flex: 1; padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.acc-steps li::before { content: ""; position: absolute; top: 4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-faint); box-sizing: border-box; }
.acc-steps li::after { content: ""; position: absolute; top: 8px; left: 14px; right: 4px; height: 2px; background: var(--surface-2); }
.acc-steps li:last-child::after { display: none; }
.acc-steps li.is-done { color: var(--ink); }
.acc-steps li.is-done::before { background: var(--ink); border-color: var(--ink); }
.acc-steps li.is-done:not(:last-child)::after { background: var(--ink); }
.acc-refunded { font-size: 14px; color: var(--ink-dim); }
.acc-track { align-self: flex-start; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; }
.acc-track.is-wait { border: 0; font-weight: 500; color: var(--ink-dim); }
.acc-order details summary { cursor: pointer; width: fit-content; font-size: 14px; color: var(--ink-dim); list-style: none; }
.acc-order details summary::-webkit-details-marker { display: none; }
.acc-order details summary::after { content: " +"; }
.acc-order details[open] summary::after { content: " –"; }
.acc-order details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.acc-order-items { margin-top: 12px; max-width: 520px; }
.acc-order-items li, .acc-order-sum div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 14px; }
.acc-order-items li { border-bottom: 1px solid var(--border); }
.acc-order-items small { color: var(--ink-dim); margin-left: 4px; }
.acc-order-sum { margin: 6px 0 0; max-width: 520px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.acc-order-sum dd { margin: 0; }
.acc-order-sum .is-total { color: var(--ink); font-weight: 700; }
.acc-order-addr { margin-top: 10px; font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.acc-link { margin-top: 10px; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding: 0; }
.acc-empty { padding: clamp(24px, 4vw, 48px) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.acc-empty-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: -0.01em; }
.acc-empty p:not(.acc-empty-title) { max-width: 46ch; color: var(--ink-dim); }
@media (max-width: 640px) {
  .acc-order { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
  .acc-order-thumbs { grid-column: 1; grid-row: 1 / span 2; padding-right: 12px; }
  .acc-order-thumbs img, .acc-thumb-ph { width: 56px; }
  .acc-order-thumbs > * + * { margin-left: -40px; }
  .acc-order-thumbs { grid-row: 1; }
  .acc-order-main { grid-column: 2; grid-row: 1; }
  .acc-order-total { display: none; }
  .acc-order-top-total { display: inline; margin-left: auto; font-family: var(--display); font-weight: 800; }
}

/* Chat: mittig, Messenger-Look */
.chatbox { position: relative; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--bg); box-shadow: 0 1px 0 var(--border), 0 24px 60px -24px rgba(0,0,0,0.28), 0 0 0 1px var(--border); }
.chatbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--ink); color: #fff; }
.chatbox-head img { height: 26px; width: auto; }
.chatbox-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.7); text-align: right; }
.chatbox-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6f; box-shadow: 0 0 0 3px rgba(63,191,111,0.25); flex-shrink: 0; }
.chatbox-log { height: clamp(220px, calc(100svh - 420px), 480px); overflow-y: auto; padding: 22px clamp(14px, 3vw, 24px) 16px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain;
  background: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.06) 1px, transparent 0) 0 0 / 18px 18px, var(--surface); }
.chatbox-day { align-self: center; margin: 14px 0 8px; }
.chatbox-day span { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); background: var(--bg); padding: 4px 12px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.bubble { position: relative; max-width: min(80%, 480px); padding: 9px 13px; border-radius: 18px; animation: bubble-in 240ms var(--ease) both; }
.bubble.is-first { margin-top: 8px; }
.bubble p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.bubble time { display: block; margin-top: 3px; text-align: right; font-size: 11px; opacity: 0.55; font-variant-numeric: tabular-nums; }
.bubble-tick { margin-left: 2px; }
.bubble.is-me { align-self: flex-end; background: var(--ink); color: #fff; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.bubble.is-me.is-first { border-top-right-radius: 18px; }
.bubble.is-me.is-last { border-bottom-right-radius: 4px; }
.bubble.is-them { align-self: flex-start; background: var(--bg); color: var(--ink); border-top-left-radius: 6px; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.bubble.is-them.is-first { border-top-left-radius: 18px; }
.bubble.is-them.is-last { border-bottom-left-radius: 4px; }
.bubble.is-welcome { margin-top: 0; }
.bubble.is-pending { opacity: 0.55; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.chatbox-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px clamp(14px, 3vw, 24px) 4px; background: var(--surface); }
.chatbox-chips button { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.chatbox-chips button:hover { border-color: var(--ink); }
.chatbox-chips button:active { transform: scale(0.96); }
.chatbox-chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chatbox-compose { display: flex; align-items: flex-end; gap: 10px; padding: 12px clamp(12px, 2.5vw, 18px); background: var(--bg); border-top: 1px solid var(--border); }
.chatbox-compose textarea { flex: 1; min-width: 0; resize: none; max-height: 160px; padding: 12px 18px; border: 1px solid transparent; border-radius: 24px; font: inherit; font-size: 15px; line-height: 1.4; background: var(--surface); transition: border-color 160ms var(--ease), background 160ms var(--ease); }
.chatbox-compose textarea:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.chatbox-send { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform 160ms var(--ease), background 160ms var(--ease), opacity 160ms var(--ease); }
.chatbox-send svg { width: 20px; height: 20px; }
.chatbox-send:disabled { background: var(--surface-2); color: var(--ink-faint); cursor: default; }
.chatbox-send:not(:disabled):hover { transform: translateY(-1px); }
.chatbox-send:not(:disabled):active { transform: scale(0.92); }
.chatbox-send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.chatbox-error { padding: 0 20px 10px; background: var(--bg); color: var(--accent); font-size: 14px; }
.chatbox-foot { padding: 0 20px 12px; background: var(--bg); font-size: 11px; color: var(--ink-faint); text-align: center; }
@media (hover: none) { .chatbox-foot { display: none; } }
@media (max-width: 560px) {
  .chatbox { border-radius: 18px; }
  .chatbox-head { padding: 12px 16px; }
  .chatbox-head img { height: 22px; }
  .chatbox-status { font-size: 11px; }
  /* Chat passt mit Eingabefeld auf den Bildschirm (unter Kopfzeile und Tabs) */
  .chatbox-log { height: clamp(260px, calc(100svh - 360px), 560px); }
  .chatbox-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .chatbox-chips::-webkit-scrollbar { display: none; }
  .chatbox-chips button { flex-shrink: 0; }
}

/* Einstellungen */
.acc-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 64px); max-width: 1100px; }
.acc-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 16px; border-top: 1px solid var(--ink); }
.acc-form h2 { font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.acc-field { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.acc-field label { font-size: 13px; font-weight: 600; }
.acc-field input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--bg); }
.acc-field input:disabled { background: var(--surface); color: var(--ink-dim); }
.acc-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.acc-field small { color: var(--ink-dim); font-size: 12px; }
.acc-note { min-height: 1.2em; font-size: 14px; color: var(--accent); }
.acc-note.is-ok { color: #2f7d4f; }
.acc-danger details { width: 100%; font-size: 14px; color: var(--ink-dim); }
.acc-danger summary { cursor: pointer; width: fit-content; border-bottom: 1px solid currentColor; }
.acc-danger summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.acc-danger form { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } .acc-tabs button::after, .chatbox-send, .chatbox-chips button { transition: none; } }
.chatbox-bell { margin-left: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chatbox-bell:not(:disabled):hover { border-color: #fff; }
.chatbox-bell:disabled { opacity: 0.7; cursor: default; border-color: transparent; }
.chatbox-bell:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .chatbox-status { display: none; } }
.account-forgot { align-self: flex-start; padding: 4px 0; font-size: 13px; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.account-forgot:hover { color: var(--ink); }
.spot-form-error.is-ok { color: #2f7d4f; }
.acc-reset { flex-basis: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.acc-reset label { font-size: 13px; font-weight: 600; }
.acc-reset input { min-height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; }
.acc-reset small { color: rgba(255,255,255,0.6); font-size: 12px; }
.acc-reset .btn { align-self: flex-start; margin-top: 6px; }
.acc-reset-note { min-height: 1.2em; color: #ffb59b; font-size: 14px; }

/* Ausverkauft-Hinweise */
.pdp-stock-note { margin-top: 10px; font-size: 13px; color: var(--ink-dim); }
.pdp-stock-note[hidden] { display: none; }
.pdp-stock-note.is-out { padding: 10px 12px; border-radius: 10px; background: #fbe3d9; color: #8a3a12; font-weight: 600; line-height: 1.45; }
.cart-item-unavailable { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.cart-foot [data-checkout-note] { margin: 10px 0 0; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--accent); }
