/* MIMA-Markt Live — Stylesheet
   Farben ausschliesslich aus der Markenquelle Workflows/Design_System/brand/
   mima_it.json (kern.farben) plus die semantischen Tokens des MIA-Design-
   Systems (Arbeitsergebnisse/MIA_Universalplattform/MIA_MVP/frontend/index.html
   :root: --warn-*, --due-*, --ok-*). Keine freien Hex-Werte;
   `test/guards.test.js` prueft das gegen die Markendatei. */

:root {
  /* --- Marke MIMA IT (brand/mima_it.json -> kern.farben) --- */
  --web-farben-primaer: #0053A1;
  --web-farben-primaer-rgb: 0, 83, 161;
  --web-farben-sekundaer: #3377B8;
  --web-farben-text-dunkel: #333333;
  --web-farben-text-dunkel-rgb: 51, 51, 51;
  --web-farben-text-mittel: #666666;
  --web-farben-linie: #CCCCCC;
  --web-farben-flaeche: #F2F6FA;
  --web-farben-weiss: #FFFFFF;
  --web-farben-weiss-rgb: 255, 255, 255;
  --web-farben-schwarz: #000000;
  --web-farben-schwarz-rgb: 0, 0, 0;
  --web-farben-fehler: #D32F2F;
  /* --- Semantik-Tokens (MIA-Design-System, index.html :root) --- */
  --warn-bg: #fdeaea;
  --warn-fg: #a12020;
  --due-bg: #fff6e5;
  --due-fg: #8a5800;
  --ok-bg: #e9f6ec;
  --ok-fg: #1f7a37;

  /* --- sprechende Aliase (nur Verweise, keine neuen Farben) --- */
  --blau: var(--web-farben-primaer);
  --blau-2: var(--web-farben-sekundaer);
  --text: var(--web-farben-text-dunkel);
  --muted: var(--web-farben-text-mittel);
  --line: var(--web-farben-linie);
  --surface: var(--web-farben-flaeche);
  --white: var(--web-farben-weiss);
  --error: var(--web-farben-fehler);
  --ok: var(--ok-fg);
  --header-h: 56px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(var(--web-farben-schwarz-rgb), 0.06), 0 8px 24px rgba(var(--web-farben-schwarz-rgb), 0.06);
  --maxw: 1180px;
  --font: 'Roboto', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

/* Das hidden-Attribut muss auch gegen .grid/.skeleton-grid (display:grid) gewinnen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.45;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 0.4em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 8px;
  background: var(--blau);
  color: var(--white);
  font-weight: 700; font-size: 11px; letter-spacing: 0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 700; color: var(--text); }
.brand-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-tel { font-weight: 700; color: var(--blau); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Abteilungs-Nav-Link: "Ersatzteile" prominent im Kopf (Andreas-Wunsch). */
.header-dept {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--web-farben-primaer) 35%, var(--web-farben-weiss));
  border-radius: 999px; background: var(--surface);
  color: var(--blau); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.header-dept:hover { text-decoration: none; border-color: var(--blau); }
.header-dept[aria-current="page"] { background: var(--blau); border-color: var(--blau); color: var(--white); }

/* Kompakter DE | FR | IT | EN-Sprachumschalter im Header.
   Bleibt auch am 390-px-Handy einzeilig (sh. @media max-width 430px). */
.lang-switch {
  display: inline-flex; align-items: stretch; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--white);
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 7px;
  border-left: 1px solid var(--line);
  color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1;
  text-decoration: none;
}
.lang-switch a:first-child { border-left: 0; }
.lang-switch a:hover { background: var(--surface); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--blau); color: var(--white); }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; line-height: 1.1;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blau); color: var(--white); }
.btn-primary:hover { background: color-mix(in srgb, var(--web-farben-primaer) 85%, var(--web-farben-schwarz)); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Katalog-Einstieg ---------- */
.catalog-intro { padding: 22px 0 10px; }
.catalog-intro h1 { margin-bottom: 6px; }
.catalog-intro .lead { color: var(--muted); margin: 0 0 16px; max-width: 60ch; }

.search-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.search-field { position: relative; flex: 1 1 auto; }
.search-field input {
  width: 100%; height: 48px; padding: 0 14px 0 42px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--text); background: var(--white);
}
.search-field input:focus { outline: 2px solid var(--blau-2); outline-offset: 1px; border-color: var(--blau-2); }
.search-field::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  pointer-events: none;
}
.sort-field select {
  height: 48px; padding: 0 36px 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--text); background: var(--white); cursor: pointer;
}
.sort-field select:focus { outline: 2px solid var(--blau-2); outline-offset: 1px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.chip .count { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: var(--white); }
.chip[aria-pressed="true"] .count { color: rgba(var(--web-farben-weiss-rgb), 0.85); }
/* Prominenter Abteilungs-Chip "Ersatzteile" (steht direkt nach "Alle"). */
.chip-dept { height: 44px; padding: 0 18px; border: 2px solid var(--blau); color: var(--blau); }
.chip-dept .count { color: var(--muted); }

.results-meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* ---------- Karten-Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 48px;
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(var(--web-farben-primaer-rgb), 0.12); text-decoration: none; }
.card-media { position: relative; }
.card-media img, .card-media .placeholder {
  width: 100%; min-height: 220px; max-height: 300px; aspect-ratio: 4 / 3;
  object-fit: cover; background: var(--surface);
}
.card-media .placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.photo-counter-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(var(--web-farben-text-dunkel-rgb), 0.78); color: var(--white);
  font-size: 12px; font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 6px;
}
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge {
  display: inline-flex; align-items: center;
  background: var(--surface); color: var(--blau);
  border: 1px solid color-mix(in srgb, var(--web-farben-primaer) 20%, var(--web-farben-weiss)); border-radius: 6px;
  font-size: 12px; font-weight: 700; padding: 3px 8px; line-height: 1.2;
}
.badge-reserved { background: var(--due-bg); color: var(--due-fg); border-color: color-mix(in srgb, var(--due-fg) 25%, var(--web-farben-weiss)); }
.badge-sold { background: color-mix(in srgb, var(--web-farben-linie) 35%, var(--web-farben-weiss)); color: var(--muted); border-color: var(--line); }
.badge-price { background: var(--warn-bg); color: var(--warn-fg); border-color: color-mix(in srgb, var(--warn-fg) 25%, var(--web-farben-weiss)); }
.badge-service { background: var(--blau); color: var(--white); border-color: var(--blau); }
.badge-zustand { background: var(--ok-bg); color: var(--ok-fg); border-color: color-mix(in srgb, var(--ok-fg) 25%, var(--web-farben-weiss)); }

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; flex: 1 1 auto; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.card-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; margin: 0; }
.card-facts span { display: inline-flex; align-items: center; }
.card-facts span:not(:last-child)::after { content: '·'; margin-left: 10px; color: var(--line); }
/* Ersatzteil-Steckbrief auf der Karte: Art.-Nr., Stückzahl, Zustand, Passend für */
.card-parts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 13px; color: var(--muted); }
.card-parts .part { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
.card-parts .part-label { font-weight: 400; }
.card-parts .part strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.card-parts .part:not(:last-child)::after { content: '·'; margin-left: 6px; color: var(--line); }
.card-price { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.price-statt { color: var(--muted); font-size: 13px; text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-main { font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.price-ask { font-size: 18px; }
.price-mwst { color: var(--muted); font-size: 12px; }

/* ---------- Zustände ---------- */
.state { padding: 40px 0 64px; text-align: center; color: var(--muted); }
.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 48px; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, color-mix(in srgb, var(--web-farben-primaer) 6%, var(--web-farben-weiss)) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; min-height: 340px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Detailseite ---------- */
.detail-main { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 80px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr); gap: 28px; align-items: start; }
.detail-buy { position: sticky; top: calc(var(--header-h) + 16px); }
.detail-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 10px; }

.price-block { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block .price-main { font-size: 30px; }
.price-block .price-ask { font-size: 24px; }

.gallery { display: flex; flex-direction: column; gap: 10px; }
/* Echtes Mobile-Swipe: der Browser scrollt und snappt (iOS/Android nativ). */
.gallery-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--blau-2); outline-offset: -2px; }
.gallery-slide { flex: 0 0 100%; width: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-counter { position: absolute; right: 12px; bottom: 12px; background: rgba(var(--web-farben-text-dunkel-rgb), 0.8); color: var(--white); font-size: 13px; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 6px; pointer-events: none; }
.gallery-dots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .15s ease, background-color .15s ease; }
.dot.is-active span { width: 20px; border-radius: 4px; background: var(--blau); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 84px; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--blau); }
.gallery.placeholder { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); }
.gallery-placeholder-text { color: var(--muted); font-weight: 700; }

.conversion { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.btn-call, .btn-wa, .btn-anfrage { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 16px; text-align: left; }
.btn-kicker { font-size: 11px; font-weight: 400; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.4px; }
.btn-main { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-call { background: var(--blau); color: var(--white); }
.btn-call:hover { background: color-mix(in srgb, var(--web-farben-primaer) 85%, var(--web-farben-schwarz)); }
.btn-wa { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.btn-wa:hover { border-color: var(--blau-2); }
.btn-anfrage { background: var(--blau-2); color: var(--white); }
.btn-anfrage:hover { background: color-mix(in srgb, var(--web-farben-sekundaer) 85%, var(--web-farben-schwarz)); }
.btn-share { background: var(--surface); color: var(--text); border: 1px solid var(--line); min-height: 44px; }

.seller-card { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; }
.seller-kicker { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.seller-name { font-size: 16px; font-weight: 700; }
.seller-role, .seller-loc { font-size: 13px; color: var(--muted); }
.seller-seal { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--blau); }

.detail-facts { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.fact-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 16px 0; padding: 0; }
.fact-row { display: grid; grid-template-columns: 45% 55%; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fact-row dt { color: var(--muted); font-size: 14px; margin: 0; }
.fact-row dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.description { margin-top: 20px; }
.description h3 { font-size: 1rem; font-weight: 700; }
.description p { color: var(--text); white-space: pre-line; }

/* ---------- Formular ---------- */
.anfrage-section { margin-top: 40px; padding: 24px; background: var(--surface); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 16px); }
.anfrage-hinweis { color: var(--muted); margin-top: 0; }
.anfrage-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.anfrage-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.anfrage-form input, .anfrage-form textarea, .anfrage-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--text); background: var(--white);
}
.anfrage-form input:focus, .anfrage-form textarea:focus, .anfrage-form select:focus { outline: 2px solid var(--blau-2); outline-offset: 1px; border-color: var(--blau-2); }
.anfrage-form textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { margin: -6px 0 0; color: var(--muted); font-size: 13px; }
/* Spam-Schutz: Honeypot bleibt fuer Menschen unsichtbar, fuer Bots lesbar. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 0; }
.turnstile-slot[hidden] { display: none; }
.form-status { margin: 0; font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }
.anfrage-form button[type="submit"][disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Sticky-Bottom-Bar (mobil) ---------- */
.sticky-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(var(--web-farben-schwarz-rgb), 0.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--white); font-size: 40px; line-height: 1; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 16px 24px; color: var(--muted); font-size: 14px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-grid strong { color: var(--text); font-size: 15px; }
.footer-grid p { margin: 4px 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-note { max-width: var(--maxw); margin: 20px auto 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- 404 ---------- */
.notfound-main { max-width: 640px; margin: 0 auto; padding: 64px 20px 96px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-buy { position: static; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .card-media img, .card-media .placeholder { min-height: 180px; }
  .catalog-intro { padding: 14px 0 6px; }
  .catalog-intro .lead { font-size: 14px; margin-bottom: 12px; }
  .search-row { flex-wrap: wrap; }
  .search-field { flex: 1 1 100%; }
  .sort-field { flex: 1 1 100%; }
  .sort-field select { width: 100%; }
  .detail-main { padding-bottom: 120px; }
  .fact-table { grid-template-columns: 1fr; }
  .sticky-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(var(--web-farben-schwarz-rgb), 0.08);
  }
  .sticky-btn {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--white);
    color: var(--text); font-family: inherit; font-weight: 700; font-size: 14px;
    text-decoration: none; cursor: pointer;
  }
  .sticky-btn:hover { text-decoration: none; }
  .sticky-btn-primary { background: var(--blau); border-color: var(--blau); color: var(--white); }
}

/* 390-px-Handy: Header kompakt einzeilig mit DE|FR|IT|EN, Katalog sofort sichtbar */
@media (max-width: 430px) {
  .site-header { padding: 0 12px; gap: 8px; }
  .brand-text { display: none; }
  .brand-mark { width: 30px; height: 30px; flex: 0 0 30px; font-size: 10px; }
  .header-tel { display: none; }
  .header-dept { display: none; }
  .lang-switch a { min-width: 25px; height: 28px; padding: 0 4px; font-size: 11px; }
  .header-actions .btn-sm { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .container { padding: 0 14px; }
  .grid { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .catalog-intro h1 { font-size: 1.3rem; }
  .price-block .price-main { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
  .gallery-track { scroll-behavior: auto; }
}
