/* ============================================================
   shop.css – Bauelemente Güntert Ersatzteile-Shop
   Farbschema: identisch zu guentert-tore.de
   ============================================================ */

:root {
  --gold:       #736635;
  --gold-light: #8a7a42;
  --gold-pale:  #f5f0e0;
  --bg:         #f9f7f2;
  --white:      #ffffff;
  --dark:       #1e1a0e;
  --gray:       #6b6456;
  --border:     #e0d9c8;
  --shadow:     0 2px 10px rgba(115,102,53,.12);
  --radius:     8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; background: var(--bg); color: var(--dark); font-size: 15px; line-height: 1.6; }

/* ── HEADER ── */
.shop-header { background: var(--gold); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.header-inner { max-width: 1300px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { color: #fff; text-decoration: none; font-family: Raleway, sans-serif; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo img { height: 36px; }
.mainnav { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.mainnav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 4px; white-space: nowrap; }
.mainnav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.cart-btn { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 20px; font-size: 14px; white-space: nowrap; border: 1px solid rgba(255,255,255,.3); transition: background .2s; }
.cart-btn:hover { background: rgba(255,255,255,.3); }
.cart-count { background: #fff; color: var(--gold); font-weight: 700; border-radius: 10px; padding: 0 6px; font-size: 12px; }

/* ── MAIN ── */
.shop-main { min-height: 70vh; }
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }

/* ── HERO ── */
.hero-shop { background: linear-gradient(135deg, var(--gold) 0%, #4a3f1f 100%); color: #fff; padding: 80px 20px; text-align: center; }
.hero-shop-inner { max-width: 700px; margin: 0 auto; }
.hero-shop h1 { font-family: Raleway, sans-serif; font-size: 36px; margin-bottom: 16px; }
.hero-shop p { font-size: 17px; opacity: .9; margin-bottom: 28px; }
.btn-hero { background: #fff; color: var(--gold); padding: 14px 32px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 16px; display: inline-block; }
.btn-hero:hover { background: var(--gold-pale); }

/* ── KATEGORIEN-GRID ── */
.kat-grid-section { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; }
.kat-grid-section h2 { font-family: Raleway, sans-serif; color: var(--gold); margin-bottom: 24px; font-size: 26px; }
.kat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.kat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; text-decoration: none; color: var(--dark); transition: box-shadow .2s, transform .2s; }
.kat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kat-icon { font-size: 32px; margin-bottom: 10px; }
.kat-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.kat-card span { font-size: 12px; color: var(--gray); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--gold-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px; }
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; }
.trust-inner div { font-size: 14px; }

/* ── PRODUKT-GRID ── */
.produkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.produkt-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.produkt-card:hover { box-shadow: var(--shadow); }
.card-bild { display: block; background: var(--bg); aspect-ratio: 1; overflow: hidden; }
.card-bild img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.bild-placeholder { display: flex; align-items: center; justify-content: center; font-size: 48px; width: 100%; aspect-ratio: 1; background: var(--bg); }
.card-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card-info small { color: var(--gray); font-size: 12px; }
.card-name { color: var(--dark); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.4; }
.card-name:hover { color: var(--gold); }
.card-artnr { font-size: 12px; color: var(--gray); }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.card-preis { font-size: 18px; font-weight: 700; color: var(--gold); }
.btn-card { background: var(--gold); color: #fff; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; transition: background .2s; }
.btn-card:hover { background: var(--gold-light); }

/* ── PRODUKTDETAIL ── */
.produkt-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.detail-bilder .bild-haupt { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.bild-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; padding: 4px; }
.thumb:hover { border-color: var(--gold); }
.detail-hersteller { font-size: 13px; color: var(--gray); font-weight: 600; text-transform: uppercase; }
.detail-info h1 { font-family: Raleway, sans-serif; font-size: 26px; margin: 6px 0 12px; }
.detail-artnr { font-size: 13px; color: var(--gray); }
.detail-preis { font-size: 32px; font-weight: 700; color: var(--gold); margin: 12px 0 4px; }
.detail-mwst { font-size: 13px; color: var(--gray); }
.versand-info { font-size: 13px; color: var(--gray); margin-top: 4px; }
.versand-info.free { color: #27ae60; font-weight: 600; }
.kurzbeschreibung { margin: 16px 0; border-left: 3px solid var(--gold); padding-left: 12px; color: var(--gray); }
.kauf-form { margin-top: 20px; }
.varianten-wahl { margin-bottom: 14px; }
.varianten-wahl label, .menge-wrap label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.varianten-select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.menge-control { display: flex; align-items: center; gap: 0; width: 130px; }
.menge-control button { background: var(--bg); border: 1px solid var(--border); width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.menge-control button:first-child { border-radius: 6px 0 0 6px; }
.menge-control button:last-child { border-radius: 0 6px 6px 0; }
.menge-control input { border: 1px solid var(--border); border-left: none; border-right: none; height: 36px; width: 58px; text-align: center; font-size: 15px; }
.btn-kaufen { display: block; width: 100%; background: var(--gold); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 16px; transition: background .2s; }
.btn-kaufen:hover { background: var(--gold-light); }
.detail-beschreibung { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.detail-beschreibung h3 { font-family: Raleway, sans-serif; color: var(--gold); margin-bottom: 14px; }

/* ── WARENKORB ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-row { display: grid; grid-template-columns: 70px 1fr 100px 100px 30px; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cart-bild img { width: 70px; height: 70px; object-fit: contain; }
.cart-info a { font-weight: 600; text-decoration: none; color: var(--dark); }
.cart-menge input { width: 60px; text-align: center; padding: 6px; border: 1px solid var(--border); border-radius: 5px; }
.cart-preis { font-weight: 700; color: var(--gold); text-align: right; }
.cart-del { background: none; border: none; color: #c00; font-size: 18px; cursor: pointer; }
.cart-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: fit-content; position: sticky; top: 80px; }
.cart-summary h3 { font-family: Raleway, sans-serif; color: var(--gold); margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.sum-total { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 18px; font-weight: 700; color: var(--gold); }
.versand-hint { font-size: 12px; color: var(--gray); margin: 6px 0; }
.btn-checkout { display: block; background: var(--gold); color: #fff; text-align: center; padding: 14px; border-radius: 8px; font-weight: 700; text-decoration: none; margin-top: 16px; font-size: 15px; }
.btn-weiter { display: block; text-align: center; color: var(--gold); margin-top: 10px; font-size: 13px; text-decoration: none; }
.btn-gold { background: var(--gold); color: #fff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 700; display: inline-block; }

/* ── CHECKOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.form-card-shop { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-card-shop h3 { font-family: Raleway, sans-serif; color: var(--gold); margin-bottom: 14px; font-size: 16px; }
.form-grid-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid-shop .full { grid-column: 1 / -1; }
.form-grid-shop input, .form-grid-shop select, .form-grid-shop textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; width: 100%; font-family: inherit; }
.form-grid-shop textarea { min-height: 70px; resize: vertical; }
.agb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-top: 12px; cursor: pointer; }
.agb-check a { color: var(--gold); }
.checkout-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: fit-content; position: sticky; top: 80px; }
.checkout-summary h3 { font-family: Raleway, sans-serif; color: var(--gold); margin-bottom: 14px; }
.co-item { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.co-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--gold); padding-top: 12px; }
.error-box { background: #fde; border: 1px solid #f88; color: #c00; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }

/* ── SONSTIGES ── */
.search-input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px 0 0 6px; font-size: 14px; width: 300px; }
.btn-search { background: var(--gold); color: #fff; border: none; padding: 10px 18px; border-radius: 0 6px 6px 0; cursor: pointer; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.kat-desc { color: var(--gray); margin-bottom: 20px; }
.bild-placeholder-sm { width: 70px; height: 70px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 4px; }
.legal { max-width: 800px; }
.legal h2 { font-family: Raleway, sans-serif; color: var(--gold); margin-bottom: 20px; }
.legal p { margin-bottom: 12px; }
.menge-wrap { margin-bottom: 12px; }

/* ── FOOTER ── */
.shop-footer { background: var(--gold); color: rgba(255,255,255,.9); margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner a { color: rgba(255,255,255,.8); text-decoration: none; display: block; font-size: 13px; margin-bottom: 6px; }
.footer-inner a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mainnav { display: none; }
  .produkt-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 60px 1fr 80px 30px; }
  .cart-preis { display: none; }
  .hero-shop h1 { font-size: 24px; }
}
