/*
Theme Name: Petersohn Brennholz
Theme URI: https://petersohn-brennholz.de
Author: Brennstoffhandel Petersohn
Description: Theme fuer den Onlineshop von Brennstoffhandel Petersohn Leipzig - Kaminholz, Holzpellets, Holzbriketts und Heizoel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: petersohn-brennholz
*/

:root {
  --orange: #E85C1A;
  --orange-deep: #C64A12;
  --slate: #2E3440;
  --ink: #1E2128;
  --ink-soft: #656B76;
  --bg: #FFFFFF;
  --panel: #F4F5F3;
  --line: #E6E7E4;
  --font-head: 'Barlow Condensed', Arial, sans-serif;
  --font-body: 'Work Sans', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.screen-reader-text { position: absolute; left: -9999px; }

/* bandeau annonce */
.announce { background: var(--slate); color: #D7DAE0; font-size: 13px; }
.announce .wrap { display: flex; align-items: center; justify-content: space-between; padding: 9px 24px; flex-wrap: wrap; gap: 8px; }
.announce .left { display: flex; gap: 22px; }
.announce .badge { display: flex; align-items: center; gap: 6px; }
.announce .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.announce a { color: #D7DAE0; text-decoration: none; }

/* header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text .name { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.brand-text .tagline { font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase; }
.phone-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.phone-pill svg { width: 16px; height: 16px; stroke: var(--orange); flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); color: #fff; }
.btn-dark { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-dark:hover { background: rgba(255,255,255,0.2); color: #fff; }
nav.main { display: flex; gap: 26px; font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
nav.main ul { list-style: none; display: flex; gap: 26px; padding: 0; }
nav.main a { text-decoration: none; color: var(--ink); }
nav.main a:hover { color: var(--orange); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* hero plein format, photo sombre */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: #231c16;
}
.hero.no-image {
  background:
    linear-gradient(100deg, rgba(20,16,12,0.78) 0%, rgba(20,16,12,0.35) 55%, rgba(20,16,12,0.15) 100%),
    repeating-linear-gradient(97deg, #8a5a34 0 24px, #76502c 24px 48px, #96633a 48px 70px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,16,12,0.78) 0%, rgba(20,16,12,0.35) 55%, rgba(20,16,12,0.15) 100%);
}
.hero-inner { position: relative; padding: 70px 0; color: #fff; max-width: 620px; }
.hero-inner .eyebrow { color: #E8A672; }
.hero-inner h1 { font-size: clamp(42px, 6vw, 70px); line-height: 0.96; color: #fff; margin: 14px 0 20px; }
.hero-inner p.lead { font-size: 17px; color: #E7E2D8; max-width: 44ch; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* bande de confiance */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 30px 0; }
.trust-item { display: flex; gap: 14px; padding: 0 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: none; }
.trust-item .ic { width: 20px; height: 20px; border: 1.5px solid var(--ink); flex-shrink: 0; margin-top: 2px; }
.trust-item .t-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.trust-item .t-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* section */
.section { padding: 68px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 40px); margin-top: 4px; }
.section-head .see-all { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); text-decoration: none; white-space: nowrap; }
.section-head .see-all:hover { color: var(--orange-deep); }
.section.panel { background: var(--panel); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; }
.cat-card { text-decoration: none; color: var(--ink); display: block; }
.cat-photo {
  aspect-ratio: 4/3; position: relative; overflow: hidden; margin-bottom: 14px;
  background-size: cover; background-position: center;
}
.cat-photo.wood { background-color: #8a5a34; background-image: repeating-linear-gradient(95deg, #8a5a34 0 18px, #704a29 18px 36px); }
.cat-photo.pellets { background-color: #E8D9BC; background-image: linear-gradient(135deg, #E8D9BC, #D6C193); }
.cat-photo.briketts { background-color: #4A3A2B; background-image: linear-gradient(135deg, #4A3A2B, #2E241A); }
.cat-photo.oil { background-color: #3B4A52; background-image: linear-gradient(135deg, #3B4A52, #253138); }
.cat-card h3 { font-size: 20px; margin-bottom: 4px; }
.cat-card p { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; text-transform: none; }
.cat-card .price { font-size: 13px; font-weight: 700; color: var(--orange); text-transform: none; }

/* produits */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; }
.prod-card { background: #fff; border: 1px solid var(--line); }
.prod-swatch { height: 130px; background-color: #8a5a34; background-image: repeating-linear-gradient(100deg, #8a5a34 0 22px, #754c2a 22px 44px); background-size: cover; background-position: center; }
.prod-swatch.pellet { background-color: #E8D9BC; background-image: linear-gradient(135deg, #E8D9BC, #C9AF7F); }
.prod-swatch.coal { background-color: #2E241A; background-image: linear-gradient(135deg, #2E241A, #171310); }
.prod-body { padding: 16px 18px 18px; }
.prod-name { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.prod-name a { text-decoration: none; color: var(--ink); }
.prod-meta { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; }
.prod-price { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.prod-price .unit { font-family: var(--font-body); font-size: 11px; color: var(--ink-soft); font-weight: 400; text-transform: none; }
.prod-price del { opacity: .5; font-size: 14px; margin-right: 6px; }
.prod-price ins { text-decoration: none; }
.order-btn { background: var(--slate); color: #fff; border: none; padding: 8px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; text-decoration: none; display: inline-block; }
.order-btn:hover { background: var(--orange); color: #fff; }

/* livraison */
.delivery { background: var(--slate); color: #D7DAE0; }
.delivery h2 { color: #fff; }
.delivery .eyebrow { color: #E8A672; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.delivery ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 13px; }
.delivery li { font-size: 14.5px; display: flex; gap: 10px; }
.delivery li svg { width: 17px; height: 17px; stroke: var(--orange); flex-shrink: 0; margin-top: 2px; }
.addr-box { border: 1px solid rgba(255,255,255,0.18); padding: 28px; }
.addr-box .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #9BA3AF; font-weight: 700; margin-bottom: 10px; }
.addr-box .addr { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; }
.addr-box .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.addr-box .row:first-of-type { border-top: none; }

/* avis */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; }
.review-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.stars { color: var(--orange); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: 14.5px; margin: 0 0 14px; color: var(--ink); text-transform: none; }
.review-author { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* cta */
.cta-band { background: var(--orange); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 46px 0; flex-wrap: wrap; }
.cta-row h2 { color: #fff; font-size: 30px; }
.cta-row p { color: rgba(255,255,255,0.9); margin-top: 6px; text-transform: none; }
.btn-white { background: #fff; color: var(--orange-deep); }
.btn-white:hover { background: #F2E9E0; color: var(--orange-deep); }

/* footer */
footer.site { background: #15181D; color: #9199A3; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 30px; }
footer.site h4 { color: #E3E5E8; font-family: var(--font-head); font-size: 15px; letter-spacing: 0.04em; margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site a { text-decoration: none; color: #9199A3; }
footer.site a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #262B33; padding: 16px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }

/* page / contenu generique */
.page-content { padding: 68px 0; max-width: 820px; }
.page-content h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
.page-content p, .page-content li { text-transform: none; }

/* page panier / commande WooCommerce : garde une base lisible sur le design du theme */
.woocommerce-page .section { padding: 48px 0; }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; }
.woocommerce .button { background: var(--slate); color: #fff; border: none; padding: 10px 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 12.5px; text-decoration: none; display: inline-block; }
.woocommerce .button:hover { background: var(--orange); color: #fff; }
.woocommerce span.onsale { background: var(--orange); color: #fff; font-family: var(--font-head); text-transform: uppercase; font-size: 12px; padding: 3px 10px; }

@media (max-width: 920px) {
  nav.main { display: none; }
  .menu-toggle { display: inline-flex; }
  .trust-row, .cat-grid, .prod-grid, .review-grid, .delivery-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 4px; }
}
@media (max-width: 560px) {
  .trust-row, .cat-grid, .prod-grid, .review-grid, .delivery-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .announce .left { display: none; }
}
