/* css/shop.css — Oeffentliches Schaufenster /shop (Marketplace Tranche F).
   Self-hosted (CSP style-src 'self'). Geteilt von shop.php (Grid) +
   shop_article.php (Detail). Mobile-first (Konv #40). */

:root {
  --shop-fg: #1f2937;
  --shop-muted: #6b7280;
  --shop-border: #e5e7eb;
  --shop-accent: #0f766e;
  --shop-bg: #f9fafb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--shop-fg);
  background: var(--shop-bg);
}
a { color: inherit; }

.shop-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* ---- Kopf ---- */
.shop-head { padding: 0.5rem 0 1.5rem; border-bottom: 1px solid var(--shop-border); margin-bottom: 1.5rem; }
.shop-head h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.shop-head p { margin: 0; color: var(--shop-muted); font-size: 0.9rem; }

/* ---- Filter / Suche (F4) ---- */
.shop-search { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.shop-search input[type="search"] { flex: 1; min-width: 0; padding: 0.6rem 0.8rem; border: 1px solid var(--shop-border); border-radius: 0.5rem; font-size: 0.95rem; }
.shop-search button { padding: 0.6rem 1.1rem; border: none; border-radius: 0.5rem; background: var(--shop-accent); color: #fff; font-weight: 600; cursor: pointer; }
.shop-search button:hover { background: #0b5c55; }
.shop-search-clear { font-size: 0.85rem; color: var(--shop-muted); text-decoration: none; white-space: nowrap; }
.shop-search-clear:hover { color: var(--shop-fg); }

.shop-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.shop-chip { font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--shop-border); background: #fff; color: var(--shop-fg); text-decoration: none; }
.shop-chip:hover { border-color: var(--shop-accent); }
.shop-chip.active { background: var(--shop-accent); color: #fff; border-color: var(--shop-accent); }

/* ---- Grid ---- */
.shop-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-card {
  background: #fff; border: 1px solid var(--shop-border); border-radius: 0.75rem;
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.shop-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.shop-card-media { position: relative; }
.shop-card-new { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1; font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 999px; background: #dc2626; color: #fff; letter-spacing: 0.02em; }
.shop-card-img { aspect-ratio: 1/1; width: 100%; object-fit: cover; background: #f3f4f6; display: block; }
.shop-card-noimg { aspect-ratio: 1/1; width: 100%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: var(--shop-muted); font-size: 0.85rem; }
.shop-card-body { padding: 0.85rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.shop-card-title { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.shop-card-price { font-size: 1.05rem; font-weight: 700; color: var(--shop-accent); }

.shop-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.shop-badge { font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: #ecfdf5; color: var(--shop-accent); border: 1px solid #a7f3d0; }

.shop-empty { text-align: center; padding: 3rem 1rem; color: var(--shop-muted); background: #fff; border: 1px dashed var(--shop-border); border-radius: 0.75rem; }
.shop-empty strong { display: block; color: var(--shop-fg); margin-bottom: 0.4rem; font-size: 1.1rem; }

/* ---- Artikel-Detail (F2) ---- */
.shop-back { display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--shop-accent); text-decoration: none; }
.shop-back:hover { text-decoration: underline; }
.shop-article { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .shop-article { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.shop-article-img { width: 100%; border-radius: 0.75rem; border: 1px solid var(--shop-border); object-fit: cover; background: #f3f4f6; }
.shop-article-noimg { width: 100%; aspect-ratio: 1/1; border-radius: 0.75rem; border: 1px solid var(--shop-border); background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: var(--shop-muted); }
.shop-article-info { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.shop-article-title { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.shop-article-price { font-size: 1.6rem; font-weight: 700; color: var(--shop-accent); }
.shop-article-desc { white-space: pre-wrap; line-height: 1.55; color: #374151; }
.shop-25a { font-size: 0.82rem; color: var(--shop-muted); background: #fff; border: 1px solid var(--shop-border); border-radius: 0.5rem; padding: 0.6rem 0.75rem; }
.shop-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shop-btn { display: inline-block; padding: 0.7rem 1.1rem; border-radius: 0.55rem; background: var(--shop-accent); color: #fff; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.shop-btn:hover { background: #0b5c55; }
.shop-nolisting { color: var(--shop-muted); font-size: 0.9rem; }

/* ---- Footer (F3) ---- */
.shop-footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--shop-border); display: flex; flex-direction: column; gap: 0.35rem; align-items: center; color: var(--shop-muted); font-size: 0.85rem; }
.shop-footer-nav a { color: var(--shop-muted); text-decoration: none; }
.shop-footer-nav a:hover { color: var(--shop-fg); text-decoration: underline; }
.shop-footer-nav span { margin: 0 0.45rem; }

/* ---- 404 ---- */
.shop-404 { text-align: center; padding: 3.5rem 1rem; }
.shop-404 h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }
.shop-404 p { color: var(--shop-muted); margin: 0 0 1.2rem; }
