/* =================================================================
   katalog.css – Light Theme
   Eigenständiges Stylesheet für die Katalog-Seite.
   Lädt nach style.css – überschreibt Body-Hintergrund.
================================================================= */

/* hidden-Attribut muss immer gewinnen, auch gegen display:flex/grid */
[hidden] { display: none !important; }

:root {
  --kat-bg:        #f1f5f9;
  --kat-card:      #ffffff;
  --kat-border:    #e2e8f0;
  --kat-text:      #1e293b;
  --kat-muted:     #64748b;
  --kat-label:     #94a3b8;
  --kat-green:     #16a34a;
  --kat-green-bg:  #dcfce7;
  --kat-header-h:  68px;
  --kat-radius:    12px;
  --kat-shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
  --kat-shadow-lg: 0 4px 16px rgba(0,0,0,.10), 0 16px 40px rgba(0,0,0,.08);
}

/* -----------------------------------------------------------------
   PAGE SETUP
----------------------------------------------------------------- */
body.page-katalog {
  background: var(--kat-bg);
  color: var(--kat-text);
}

.katalog-main-wrapper {
  padding-top: var(--kat-header-h);
  min-height: 100vh;
}

/* -----------------------------------------------------------------
   PAGE HEADER
----------------------------------------------------------------- */
.kat-page-header {
  background: #fff;
  border-bottom: 1px solid var(--kat-border);
  padding: 32px 0 28px;
}

.kat-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 24px;
  font-size: .82rem;
  color: #92400e;
  line-height: 1.5;
}

.kat-demo-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}

.kat-demo-note span { flex: 1; }

.kat-demo-note strong { color: #78350f; }

.kat-demo-note button {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #a16207;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: background .15s;
}

.kat-demo-note button:hover { background: #fde68a; }

.kat-demo-note.hidden { display: none; }

.kat-page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.kat-page-header-text .section-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kat-green);
  display: block;
  margin-bottom: 8px;
}

.kat-page-header-text h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--kat-text);
  margin: 0 0 8px;
  line-height: 1.2;
}

.kat-page-header-text p {
  font-size: .92rem;
  color: var(--kat-muted);
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
}

.kat-hero-stats {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid var(--kat-border);
  border-radius: 10px;
  overflow: hidden;
}

.kat-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-right: 1px solid var(--kat-border);
  min-width: 72px;
}

.kat-stat:last-child { border-right: none; }

.kat-stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--kat-green);
  line-height: 1;
}

.kat-stat span {
  font-size: .7rem;
  color: var(--kat-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* -----------------------------------------------------------------
   STICKY FILTER-LEISTE
   top: 72px – sitzt exakt unter dem fixed Header
   z-index: 400 – weit unter Header (1000) und Modal (2000)
----------------------------------------------------------------- */
.kat-filter-bar {
  position: sticky;
  top: var(--kat-header-h);
  z-index: 400;
  background: #fff;
  border-bottom: 1px solid var(--kat-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Kategorie-Tabs */
.kat-tabs {
  display: flex;
  gap: 0;
  padding: 10px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kat-tabs::-webkit-scrollbar { display: none; }

.kat-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--kat-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  position: relative;
  bottom: -1px;
  font-family: inherit;
}

.kat-tab:hover { color: var(--kat-text); }

.kat-tab.active {
  color: var(--kat-green);
  border-bottom-color: var(--kat-green);
}

.kat-tab svg { flex-shrink: 0; }

.kat-count {
  font-size: .7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--kat-muted);
  padding: 1px 7px;
  border-radius: 20px;
}

.kat-tab.active .kat-count {
  background: var(--kat-green-bg);
  color: var(--kat-green);
}

/* Sub-Row: Pills + Sortierung */
.kat-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 12px;
  min-height: 46px;
}

.kat-subcat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subcat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--kat-muted);
  background: #f8fafc;
  border: 1px solid var(--kat-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}

.subcat-pill:hover {
  background: var(--kat-green-bg);
  border-color: #86efac;
  color: var(--kat-green);
}

.subcat-pill.active {
  background: var(--kat-green);
  border-color: var(--kat-green);
  color: #fff;
}

.kat-sort-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.kat-result-count {
  font-size: .78rem;
  color: var(--kat-label);
  white-space: nowrap;
}

.kat-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.kat-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: #f8fafc;
  border: 1px solid var(--kat-border);
  border-radius: 8px;
  padding: 6px 32px 6px 12px;
  font-size: .8rem;
  font-family: inherit;
  color: var(--kat-text);
  cursor: pointer;
  transition: border-color .2s;
}

.kat-select-wrap select:focus {
  outline: none;
  border-color: var(--kat-green);
}

.kat-select-wrap svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--kat-muted);
}

/* -----------------------------------------------------------------
   PRODUKT-GRID
----------------------------------------------------------------- */
.kat-grid-section {
  padding: 28px 0 48px;
}

.kat-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* -----------------------------------------------------------------
   PRODUKT-KARTE
----------------------------------------------------------------- */
.product-card {
  background: var(--kat-card);
  border: 1px solid var(--kat-border);
  border-radius: var(--kat-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex;
  flex-direction: column;
  outline: none;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--kat-shadow-lg);
  border-color: #cbd5e1;
}

.product-card:focus-visible {
  outline: 2px solid var(--kat-green);
  outline-offset: 2px;
}

/* Bild-Bereich */
.product-img-wrap {
  position: relative;
  overflow: hidden;
}

.product-img-placeholder {
  width: 100%;
  padding-bottom: 68%;
  position: relative;
}

.product-img-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.product-img-icon svg {
  width: 52px;
  height: 52px;
  opacity: .35;
  display: block;
}

.product-img-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .45;
  white-space: nowrap;
}

/* Farbige Platzhalter – hell */
.img-cat-fahrraeder {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  color: #065f46;
}
.img-cat-fahrraeder .product-img-icon svg { stroke: #059669; opacity: .4; }

.img-cat-zubehoer {
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1e3a5f;
}
.img-cat-zubehoer .product-img-icon svg { stroke: #2563eb; opacity: .4; }

.img-cat-sicherheit {
  background: linear-gradient(145deg, #fef9c3, #fde68a);
  color: #78350f;
}
.img-cat-sicherheit .product-img-icon svg { stroke: #d97706; opacity: .45; }

/* Slide-Variationen im Modal – dezente Unterschiede je Fotonummer */
.img-slide-2 { filter: brightness(.96) hue-rotate(14deg); }
.img-slide-3 { filter: brightness(.92) hue-rotate(-12deg); }
.img-slide-4 { filter: brightness(.98) hue-rotate(28deg) saturate(.9); }
.img-slide-5 { filter: brightness(.90) hue-rotate(-22deg) saturate(1.1); }
.img-slide-6 { filter: brightness(.95) hue-rotate(40deg); }

/* Quick-View Button */
.product-quick-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  color: var(--kat-text);
}

.product-card:hover .product-quick-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-sale        { background: #ef4444; color: #fff; }
.badge-neu         { background: #3b82f6; color: #fff; }
.badge-bestseller  { background: #f59e0b; color: #fff; }

/* Info-Bereich */
.product-info {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-cat-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--kat-green);
}

.product-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--kat-text);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--kat-green);
}

.product-old-price {
  font-size: .8rem;
  color: var(--kat-label);
  text-decoration: line-through;
}

.product-details-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--kat-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s, gap .2s;
}

.product-card:hover .product-details-link {
  color: var(--kat-green);
  gap: 8px;
}

/* -----------------------------------------------------------------
   EMPTY STATE
----------------------------------------------------------------- */
.kat-empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--kat-muted);
}

.kat-empty svg {
  opacity: .3;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.kat-empty h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--kat-text);
  margin: 0 0 8px;
}

.kat-empty p {
  font-size: .88rem;
  margin: 0 0 20px;
}

/* -----------------------------------------------------------------
   BOTTOM BAR
----------------------------------------------------------------- */
.kat-bottom-bar {
  background: #fff;
  border-top: 1px solid var(--kat-border);
  padding: 14px 0;
}

.kat-bottom-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--kat-muted);
  flex-wrap: wrap;
}

.kat-bottom-bar svg { color: var(--kat-green); flex-shrink: 0; }

.kat-bottom-bar a {
  color: var(--kat-green);
  text-decoration: none;
  font-weight: 600;
}

.kat-bottom-bar a:hover { text-decoration: underline; }

/* -----------------------------------------------------------------
   MODAL OVERLAY
----------------------------------------------------------------- */
.pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}

.pmodal-overlay[hidden] { display: none !important; }

.pmodal-overlay.is-open { opacity: 1; }

.pmodal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 45% 1fr;
  overflow: hidden;
  position: relative;
  transform: translateY(10px) scale(.98);
  transition: transform .25s ease;
}

.pmodal-overlay.is-open .pmodal-box {
  transform: translateY(0) scale(1);
}

/* Schließen-Button */
.pmodal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--kat-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--kat-text);
  transition: background .2s, transform .2s;
}

.pmodal-close:hover {
  background: #f1f5f9;
  transform: rotate(90deg);
}

/* Galerie (links) */
.pmodal-gallery {
  background: #f8fafc;
  border-right: 1px solid var(--kat-border);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}

.pmodal-main-img {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Slide-Inhalt – füllt das Bildfeld */
.modal-slide-inner {
  position: absolute;
  inset: 0;
}

.modal-slide-inner .product-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}

.modal-slide-inner .product-img-icon {
  top: 50%;
  transform: translate(-50%, -60%);
}

.modal-slide-inner .product-img-icon svg {
  width: 72px;
  height: 72px;
}

.modal-slide-inner .product-img-label { display: none; }

/* Pfeile – INNERHALB des Bildes, position relativ zu .pmodal-main-img */
.pmodal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--kat-text);
  z-index: 5;
  transition: background .2s, box-shadow .2s;
  backdrop-filter: blur(4px);
}

.pmodal-arrow:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.pmodal-arrow.hidden { display: none; }

.pmodal-prev { left: 10px; }
.pmodal-next { right: 10px; }

/* Counter – im Bild unten zentriert */
.pmodal-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 600;
  color: #1e293b;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

/* Thumbnails */
.pmodal-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--kat-border);
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 66px;
}

.pmodal-thumbs::-webkit-scrollbar { display: none; }

.modal-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  transition: border-color .2s;
  position: relative;
}

.modal-thumb .product-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 0;
}

.modal-thumb .product-img-icon { display: none; }
.modal-thumb .product-img-label { display: none; }
.modal-thumb-label { display: none; }

/* Werkstatt-Placeholder */
.img-cat-werkstatt {
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
  color: #4c1d95;
}
.img-cat-werkstatt .product-img-icon svg { stroke: #7c3aed; opacity: .4; }

.modal-thumb.active { border-color: var(--kat-green); }

/* Info-Spalte (rechts) – scrollt erst wenn Inhalt > max-height */
.pmodal-info {
  padding: 28px 28px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  /* max-height direkt auf der Spalte → Box bleibt kompakt, Spalte scrollt */
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pmodal-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pmodal-cat,
.pmodal-subcat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
}

.pmodal-cat  { background: var(--kat-green-bg); color: var(--kat-green); }
.pmodal-subcat { background: #f1f5f9; color: var(--kat-muted); }

.pmodal-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--kat-text);
  margin: 0 0 4px;
  line-height: 1.25;
}

.pmodal-sku {
  font-size: .73rem;
  color: var(--kat-label);
  margin: 0 0 12px;
}

.pmodal-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pmodal-price {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--kat-green);
  letter-spacing: -.02em;
}

.pmodal-old {
  font-size: .9rem;
  color: var(--kat-label);
  text-decoration: line-through;
}

.pmodal-badge {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pmodal-avail {
  font-size: .82rem;
  margin-bottom: 12px;
}

.avail-yes, .avail-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avail-yes { color: #15803d; }
.avail-yes .avail-dot { background: #22c55e; }

.avail-ask { color: #92400e; }
.avail-ask .avail-dot { background: #f59e0b; }

.pmodal-colors { margin-bottom: 12px; }

.pmodal-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.color-tag {
  display: inline-block;
  font-size: .74rem;
  padding: 3px 10px;
  background: #f8fafc;
  border: 1px solid var(--kat-border);
  border-radius: 20px;
  color: var(--kat-muted);
}

.pmodal-hr {
  border: none;
  border-top: 1px solid var(--kat-border);
  margin: 14px 0;
}

.pmodal-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--kat-label);
  margin-bottom: 8px;
}

.pmodal-desc {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--kat-muted);
  margin: 0 0 14px;
}

.pmodal-features { margin-bottom: 16px; }

.pmodal-features ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}

.pmodal-features li {
  font-size: .8rem;
  color: var(--kat-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.pmodal-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .42em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kat-green);
}

.pmodal-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pmodal-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--kat-text);
  text-decoration: none;
  transition: color .2s;
}

.pmodal-tel:hover { color: var(--kat-green); }

.pmodal-footnote {
  font-size: .73rem;
  color: var(--kat-label);
  margin: 12px 0 0;
}

/* -----------------------------------------------------------------
   ANFRAGE-FORMULAR IM MODAL
----------------------------------------------------------------- */
.pmodal-inquiry {
  margin-top: 16px;
  border: 1px solid var(--kat-border);
  border-radius: 10px;
  padding: 16px;
  background: #f8fafc;
  animation: fadeSlideIn .25s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.inq-product-ref {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--kat-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.inq-product-ref svg { color: var(--kat-green); flex-shrink: 0; }
.inq-product-ref strong { color: var(--kat-text); }

.inq-sku {
  font-size: .72rem;
  color: var(--kat-label);
  background: #e2e8f0;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: monospace;
}

.inquiry-form { display: flex; flex-direction: column; gap: 8px; }

.inq-row { display: flex; }

.inq-input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--kat-border);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: .84rem;
  font-family: inherit;
  color: var(--kat-text);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.inq-input::placeholder { color: var(--kat-label); }

.inq-input:focus {
  outline: none;
  border-color: var(--kat-green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

.inq-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.inq-error {
  font-size: .78rem;
  color: #dc2626;
  margin: 0;
}

.inq-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.inq-cancel-btn {
  background: none;
  border: none;
  font-size: .82rem;
  color: var(--kat-muted);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color .2s;
}

.inq-cancel-btn:hover { color: var(--kat-text); }

.inq-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--kat-green-bg);
  border-radius: 8px;
  color: var(--kat-green);
}

.inq-success svg { flex-shrink: 0; margin-top: 2px; }

.inq-success strong { display: block; font-size: .9rem; color: #15803d; }

.inq-success p {
  font-size: .8rem;
  color: #16a34a;
  margin: 3px 0 0;
}

/* -----------------------------------------------------------------
   FOOTER
----------------------------------------------------------------- */
body.page-katalog .footer { margin-top: 0; }

/* -----------------------------------------------------------------
   RESPONSIVE – Tablet ≤ 900px
----------------------------------------------------------------- */
@media (max-width: 900px) {
  .kat-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .kat-page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .kat-hero-stats {
    align-self: stretch;
    justify-content: center;
  }

  .pmodal-box {
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto;
    max-height: 92vh;
  }

  .pmodal-info {
    max-height: calc(92vh - 300px);
  }

  .pmodal-gallery {
    border-right: none;
    border-bottom: 1px solid var(--kat-border);
  }
}

/* -----------------------------------------------------------------
   RESPONSIVE – Mobile ≤ 600px
----------------------------------------------------------------- */
@media (max-width: 600px) {
  .kat-product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-img-placeholder { padding-bottom: 58%; }

  .kat-sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .kat-sort-right {
    align-self: stretch;
    justify-content: space-between;
  }

  .pmodal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .pmodal-box {
    border-radius: 16px 16px 0 0;
    max-height: 96vh;
    grid-template-rows: 240px auto;
  }

  .pmodal-info {
    max-height: calc(96vh - 240px);
  }

  .pmodal-info { padding: 18px 18px 28px; }

  .pmodal-features ul { grid-template-columns: 1fr; }

  .pmodal-name  { font-size: 1.1rem; }
  .pmodal-price { font-size: 1.3rem; }
}

/* -----------------------------------------------------------------
   RESPONSIVE – Klein ≤ 480px
----------------------------------------------------------------- */
@media (max-width: 480px) {
  .kat-hero-stats { display: none; }

  .kat-tab {
    padding: 8px 12px;
    font-size: .79rem;
    gap: 5px;
  }

  .kat-demo-note { font-size: .78rem; }
}
