/* =====================================================================
   Leitholz Shop – Theme "leitholz2"
   Bootstrap 5.3 + warme Holz-Palette. Design-System via CSS-Variablen.
   ===================================================================== */

:root {
  /* --- Holz-Palette --- */
  --wood-900: #2A1810;
  --wood-800: #3A1414;
  --wood-700: #5E3C28;
  --wood-600: #6A4834;
  --wood-500: #8B5E3C;
  --wood-400: #A67B5B;
  --wood-300: #C09575;
  --wood-200: #D8B6A2;
  --wood-100: #EAD9C9;
  --cream:    #F5EEE3;
  --cream-2:  #FBF7F0;
  --paper:    #FFFFFF;
  --brass:    #B0873F;
  --ink:      #33261D;
  --muted:    #8a7561;

  /* --- Bootstrap-Variablen auf Holz umbiegen --- */
  --bs-primary: var(--wood-700);
  --bs-primary-rgb: 94, 60, 40;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-link-color: var(--wood-700);
  --bs-link-hover-color: var(--wood-500);
  /* Bootstrap 5.3 faerbt <a> ueber die *-rgb Variablen */
  --bs-link-color-rgb: 94, 60, 40;
  --bs-link-hover-color-rgb: 139, 94, 60;
  --bs-border-color: var(--wood-100);
  --bs-emphasis-color: var(--wood-900);
  --bs-font-sans-serif: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --font-head: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   Grundlagen
   ------------------------------------------------------------------- */
body.lh2-body {
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(192,149,117,.16), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(139,94,60,.10), transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--bs-font-sans-serif);
  -webkit-font-smoothing: antialiased;
}

.lh2-container { max-width: 1220px; }

h1,h2,h3,h4,h5,.lh2-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--wood-900);
  letter-spacing: -.01em;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

hr { border-color: var(--wood-100); opacity: 1; }

::selection { background: var(--wood-200); color: var(--wood-900); }

/* Fokus-Ringe in Holzton */
.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.btn-check:focus-visible + .btn {
  border-color: var(--wood-400);
  box-shadow: 0 0 0 .2rem rgba(139,94,60,.20);
}

/* ---------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------- */
.lh2-navbar {
  background: rgba(251,247,240,.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--wood-100);
  box-shadow: 0 2px 14px rgba(58,20,20,.05);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.lh2-brand { display: inline-flex; align-items: center; }
.lh2-logo { height: 44px; width: auto; }

.lh2-navbar .nav-link {
  color: var(--wood-700);
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: .5rem;
  position: relative;
  transition: color .15s ease, background-color .15s ease;
}
.lh2-navbar .nav-link:hover,
.lh2-navbar .nav-link:focus { color: var(--wood-900); background: var(--wood-100); }
.lh2-navbar .nav-link.active { color: var(--wood-900); }

.lh2-dropdown {
  border: 1px solid var(--wood-100);
  border-radius: .8rem;
  box-shadow: 0 12px 30px rgba(58,20,20,.14);
  padding: .4rem;
}
.lh2-dropdown .dropdown-item {
  border-radius: .5rem;
  color: var(--wood-700);
  font-weight: 500;
  padding: .5rem .8rem;
}
.lh2-dropdown .dropdown-item:hover { background: var(--wood-100); color: var(--wood-900); }

.lh2-cart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--wood-700); font-size: 1.15rem;
  transition: background-color .15s ease, color .15s ease;
}
.lh2-cart:hover { background: var(--wood-100); color: var(--wood-900); }
.lh2-cart-badge { background: var(--brass) !important; color: #fff; font-weight: 600; }

.lh2-toggler { border-color: var(--wood-200); }
.lh2-toggler:focus { box-shadow: 0 0 0 .2rem rgba(139,94,60,.20); }
.lh2-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235E3C28' stroke-width='2.2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------------------------------------------------------------------
   Seitenkopf
   ------------------------------------------------------------------- */
.lh2-main { padding-top: 2rem; padding-bottom: 1rem; min-height: 60vh; }
.lh2-title { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 600; }
.lh2-subtitle { color: var(--muted); }
.lh2-pagehead { border-bottom: 1px solid var(--wood-100); padding-bottom: 1rem; }

.lh2-sheets .nav-link { color: var(--wood-700); border-radius: 2rem; }
.lh2-sheets .nav-link.active { background: var(--wood-700); color: #fff; }

/* ---------------------------------------------------------------------
   Buttons (Bootstrap-Primary auf Holz + eigene Wood-Buttons)
   ------------------------------------------------------------------- */
.btn { border-radius: .6rem; font-weight: 600; }

.btn-primary,
.btn-wood {
  --bs-btn-bg: var(--wood-700);
  --bs-btn-border-color: var(--wood-700);
  --bs-btn-hover-bg: var(--wood-600);
  --bs-btn-hover-border-color: var(--wood-600);
  --bs-btn-active-bg: var(--wood-800);
  --bs-btn-active-border-color: var(--wood-800);
  --bs-btn-disabled-bg: var(--wood-300);
  --bs-btn-disabled-border-color: var(--wood-300);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  box-shadow: 0 6px 16px rgba(94,60,40,.20);
}

.btn-outline-primary,
.btn-outline-wood {
  --bs-btn-color: var(--wood-700);
  --bs-btn-border-color: var(--wood-300);
  --bs-btn-hover-bg: var(--wood-700);
  --bs-btn-hover-border-color: var(--wood-700);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--wood-800);
  --bs-btn-active-border-color: var(--wood-800);
}

.btn-brass {
  --bs-btn-bg: var(--brass);
  --bs-btn-border-color: var(--brass);
  --bs-btn-hover-bg: #9a742f;
  --bs-btn-hover-border-color: #9a742f;
  --bs-btn-color: #fff; --bs-btn-hover-color:#fff;
}

.text-primary { color: var(--wood-700) !important; }

/* ---------------------------------------------------------------------
   Kategorie-Schnellauswahl (runde Thumbs)
   ------------------------------------------------------------------- */
.lh2-content .clickable { cursor: pointer; }
.row.flex-nowrap .col.clickable img.rounded-circle {
  width: 84px !important; height: 84px !important; object-fit: cover;
  border: 3px solid var(--paper);
  box-shadow: 0 6px 16px rgba(58,20,20,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.row.flex-nowrap .col.clickable:hover img.rounded-circle {
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(58,20,20,.20);
}
.row.flex-nowrap .col.clickable h5 { font-size: .95rem; color: var(--wood-700); margin-top: .5rem; }

/* ---------------------------------------------------------------------
   Produktliste (Cards)
   ------------------------------------------------------------------- */
#shop-product-list .card {
  border: 1px solid var(--wood-100);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 4px 14px rgba(58,20,20,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#shop-product-list .card.clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(58,20,20,.16);
  border-color: var(--wood-200);
}
#shop-product-list .card-img-top {
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--wood-100);
}
#shop-product-list .card-body { padding: 1rem 1.1rem .25rem; }
#shop-product-list .card-title {
  font-family: var(--font-head); font-size: 1.08rem;
  font-weight: 600; color: var(--wood-900); margin-bottom: .4rem;
}
#shop-product-list .card-text { color: var(--muted); font-size: .9rem; }
#shop-product-list .card-body > a[href*="cat="] {
  display: inline-block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 600; color: var(--wood-400);
  background: var(--wood-100); padding: .12rem .55rem; border-radius: 2rem; margin-bottom: .4rem;
}
#shop-product-list .card .text-end { border-top: 1px solid var(--wood-100); margin-top: .5rem; }
#shop-product-list .fw-bold.fs-5 { color: var(--brass); font-family: var(--font-head); font-weight: 900; }

/* ---------------------------------------------------------------------
   Produktdetail
   ------------------------------------------------------------------- */
.shop-product-background {
  background: var(--cream-2) !important;
  border-radius: 1rem; padding: 1rem;
  border: 1px solid var(--wood-100);
}
.shop-product-detail .main-image { border-radius: .7rem; }
.shop-product-detail .main-image-descr { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.shop-product-detail .thumbnail {
  width: 72px; height: 72px; object-fit: cover; cursor: pointer;
  border-radius: .55rem; border: 2px solid transparent; margin: .5rem .35rem 0 0;
  box-shadow: 0 3px 8px rgba(58,20,20,.10); transition: border-color .15s ease, transform .15s ease;
}
.shop-product-detail .thumbnail:hover { border-color: var(--wood-400); transform: translateY(-2px); }
.shop-product-detail h1 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.shop-product-detail .variant-price,
.shop-product-detail .fs-3 { color: var(--brass); font-family: var(--font-head); font-weight: 900; }
.shop-product-detail .product-meta { background: var(--cream-2); border-radius: .8rem; padding: 1rem 1.2rem; border: 1px solid var(--wood-100); }
.shop-product-detail .product-meta h3 { border-bottom: 1px solid var(--wood-200); padding-bottom: .4rem; }
.shop-product-not-available { border-radius: .5rem; background: var(--wood-800); color: #fff; padding: .35rem .7rem; display:inline-block; }

.form-select, .form-control {
  border-color: var(--wood-200); border-radius: .6rem; padding: .6rem .9rem; background-color: var(--cream-2);
}

/* ---------------------------------------------------------------------
   Checkout – Schrittleiste (ueberschreibt shop/style.css sauber)
   ------------------------------------------------------------------- */
.steps-horizontal::before { background: var(--wood-200); }
.step-icon {
  border: 2px solid var(--wood-200); background: var(--paper); color: var(--wood-400);
  box-shadow: 0 4px 10px rgba(58,20,20,.08);
}
.step-horizontal.active .step-icon { background: var(--wood-700); border-color: var(--wood-700); color: #fff; }
.step-horizontal.complete .step-icon { background: var(--brass); border-color: var(--brass); color: #fff; }
.step-title { color: var(--wood-800); font-weight: 600; }
.step-description { color: var(--muted); }

/* Warenkorb-Tabellen / Karten */
.table { --bs-table-color: var(--ink); }
.table > :not(caption) > * > * { border-color: var(--wood-100); }
.card { border-radius: 1rem; }

/* ---------------------------------------------------------------------
   Kategorie-Navigation (linke Spalte)
   ------------------------------------------------------------------- */
.shop-product-categories-headline {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .6rem !important;
}
.shop-product-categories.list-group { gap: .1rem; }
.shop-product-categories .list-group-item {
  border: 0;
  border-radius: .5rem;
  padding: .35rem .55rem;
  background: transparent;
}
.shop-product-categories .list-group-item.clickable:hover { background: var(--wood-100); }
.shop-product-categories .list-group-item h5 {
  font-size: .92rem;
  font-weight: 700;
  margin: 0;
}
.shop-product-categories .list-group-item h5 a { color: var(--wood-800); }
.shop-product-categories .shop-sub-category {
  list-style: none;
  margin: .15rem 0 .1rem;
  padding-left: .45rem !important;
  border-left: 2px solid var(--wood-100);
}
.shop-product-categories .shop-sub-category li { margin: 0; }
.shop-product-categories .shop-sub-category a {
  font-size: .82rem !important;      /* ueberschreibt Bootstrap .fs-5 */
  font-weight: 500;
  color: var(--wood-700);
  display: block;
  padding: .18rem .4rem;
  border-radius: .4rem;
}
.shop-product-categories .shop-sub-category a:hover { background: var(--wood-100); color: var(--wood-900); }
.shop-product-categories .badge { font-weight: 600; }

/* Aktive Hauptkategorie (ueberschreibt Bootstrap .list-group-item.active) */
.shop-product-categories .list-group-item.active {
  background: var(--wood-100);
  border: 0;
  border-left: 3px solid var(--wood-700);
  border-radius: .5rem;
  color: var(--wood-900);
}
.shop-product-categories .list-group-item.active h5 a { color: var(--wood-900); }
/* Elternkategorie einer aktiven Unterkategorie: dezente Betonung */
.shop-product-categories .list-group-item.current-parent h5 a { color: var(--wood-900); }
.shop-product-categories .list-group-item.current-parent .shop-sub-category { border-left-color: var(--wood-300); }
/* Aktive Unterkategorie */
.shop-product-categories .shop-sub-category li.active a {
  background: var(--wood-700);
  color: #fff;
  font-weight: 700;
}
.shop-product-categories .shop-sub-category li.active a:hover { background: var(--wood-800); color: #fff; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.lh2-footer {
  background: var(--wood-900);
  color: #e8dccf;
}
.lh2-footer a { color: #e8dccf; }
.lh2-footer a:hover { color: #fff; text-decoration: underline; }
.lh2-footer h1,.lh2-footer h2,.lh2-footer h3,.lh2-footer h4,.lh2-footer h5 { color: #fff; font-size: 1rem; }
.lh2-footer-bar { border-top: 1px solid rgba(255,255,255,.12); color: #c9b6a3; }
.lh2-totop { color: #c9b6a3; }
.lh2-totop:hover { color: #fff; }

/* ---------------------------------------------------------------------
   Meldungen / Alerts
   ------------------------------------------------------------------- */
.alert { border-radius: .8rem; border: 1px solid var(--wood-100); }

/* Print */
@media print {
  .lh2-navbar, .lh2-footer { display: none !important; }
}
