/*
Theme Name: DH Stahlgarten Shop
Theme URI: https://dh-metallgestaltung.de/
Author: DH-Metallgestaltung
Description: WooCommerce-Theme fuer Pflanzkuebel, Hochbeete und Feuerschalen aus Cortenstahl.
Version: 1.0.3
Text Domain: dh-stahlgarten
Requires at least: 6.4
Requires PHP: 8.0
*/

:root {
  --black: #111311;
  --charcoal: #1b1e1b;
  --steel: #303631;
  --rust: #a44e28;
  --rust-dark: #75351d;
  --sand: #f2eee5;
  --cream: #faf8f3;
  --white: #fff;
  --text: #1c201d;
  --muted: #6b716c;
  --line: #d7d3ca;
  --success: #385c40;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3 { margin-top: 0; line-height: 1.04; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.screen-reader-text, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { width: auto; height: auto; margin: 8px; padding: 10px 14px; clip: auto; z-index: 999; background: white; }

.announcement {
  padding: 8px 20px;
  color: #e7e8e5;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  color: white;
  background: rgba(17,19,17,.97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: white; background: var(--rust);
  font-weight: 900; letter-spacing: -.05em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; }
.brand-copy strong { font-size: 15px; letter-spacing: .14em; }
.brand-copy small { margin-top: 5px; color: #9da29e; font-size: 9px; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #c9ceca; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: white; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-tool {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
}
.header-tool:hover { border-color: var(--rust); background: var(--rust); }
.cart-link { gap: 8px; padding: 0 14px; font-size: 13px; font-weight: 750; }
.cart-count {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  color: var(--black); background: white; border-radius: 20px; font-size: 10px;
}
.menu-toggle { display: none; padding: 8px; border: 0; color: white; background: transparent; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; }

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center;
  padding: 0 23px; border: 0; border-radius: 0;
  color: white; background: var(--rust);
  font-weight: 800; font-size: 13px; letter-spacing: .03em;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { color: white; background: var(--rust-dark); }
.button-dark { background: var(--black); }
.button-dark:hover { background: var(--steel); }
.button-outline { border: 1px solid rgba(255,255,255,.45); background: transparent; }
.button-outline:hover { background: rgba(255,255,255,.1); }
.text-link { color: var(--rust-dark); font-weight: 800; border-bottom: 1px solid currentColor; }
.eyebrow { margin: 0 0 17px; color: var(--rust); font-size: 11px; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }

.shop-hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; color: white; background: var(--black); }
.hero-grain, .hero-lines { position: absolute; inset: 0; pointer-events: none; }
.hero-grain {
  opacity: .22;
  background:
    radial-gradient(circle at 76% 30%, rgba(164,78,40,.55), transparent 20%),
    radial-gradient(circle at 72% 54%, rgba(255,255,255,.09), transparent 1px);
  background-size: auto, 5px 5px;
}
.hero-lines {
  left: 58%;
  border-left: 1px solid rgba(255,255,255,.1);
  transform: skewX(-17deg);
  box-shadow: -180px 0 rgba(255,255,255,.035), 180px 0 rgba(255,255,255,.035);
}
.hero-product {
  position: absolute; right: max(4vw, calc((100vw - var(--max)) / 2)); bottom: -70px;
  width: min(42vw, 530px); height: 510px;
}
.hero-product::before {
  content: ""; position: absolute; inset: 12% 4% 0;
  background: linear-gradient(145deg, #4b514c 0%, #222622 46%, #121512 47%, #363b36 100%);
  clip-path: polygon(10% 0, 91% 7%, 100% 100%, 0 100%);
  box-shadow: inset 22px 0 35px rgba(255,255,255,.05);
}
.hero-product::after {
  content: ""; position: absolute; left: 12%; right: 3%; top: 9%; height: 13%;
  border: 16px solid #373c37; background: #080a08;
  transform: skewY(4deg);
  box-shadow: inset 0 12px 20px rgba(0,0,0,.8);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 120px; }
.hero-content h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(55px, 7.2vw, 103px); letter-spacing: -.06em; text-transform: uppercase; }
.hero-content h1 span { color: var(--rust); }
.hero-copy { max-width: 630px; margin: 0; color: #b8bdb8; font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 48px; color: #969c97; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--rust); }

.section { padding: 105px 0; }
.section-dark { color: white; background: var(--charcoal); }
.section-sand { background: var(--sand); }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { max-width: 820px; margin-bottom: 0; font-size: clamp(39px, 5vw, 67px); letter-spacing: -.045em; text-transform: uppercase; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); }
.section-dark .section-heading > p { color: #aab0ab; }

.category-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 16px; }
.category-card {
  position: relative; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; overflow: hidden; color: white; background: var(--steel);
}
.category-card:first-child { min-height: 540px; }
.category-card::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(8,10,8,.9)); }
.category-card:hover .steel-shape { transform: translateY(-7px) scale(1.02); }
.category-content { position: relative; z-index: 2; }
.category-content span { color: #e5a27f; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.category-content h3 { margin: 9px 0 12px; font-size: clamp(27px, 3vw, 39px); text-transform: uppercase; }
.category-content p { margin: 0; color: #bdc2be; font-size: 14px; }
.steel-shape { position: absolute; transition: transform .4s ease; }
.shape-planter {
  left: 13%; right: 10%; top: 17%; height: 47%;
  background: linear-gradient(145deg, #626a63, #242924 52%, #3b413b);
  clip-path: polygon(8% 0, 94% 7%, 100% 100%, 0 100%);
}
.shape-bed {
  left: 7%; right: -9%; top: 21%; height: 43%;
  border: 22px solid #424943; border-bottom-width: 105px; background: #121512;
  transform: perspective(500px) rotateX(55deg) rotateZ(-6deg);
}
.shape-fire {
  width: 72%; aspect-ratio: 1; left: 14%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, #111 0 32%, #555c56 34% 43%, #272c27 45% 65%, #111 67%);
  transform: perspective(420px) rotateX(59deg);
}
.shape-fire::after {
  content: ""; position: absolute; left: 25%; right: 25%; top: 43%; bottom: -42%;
  background: linear-gradient(90deg, #202420, #565d57, #202420);
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.benefit-grid article { min-height: 220px; padding: 29px; border-right: 1px solid var(--line); }
.benefit-grid article:last-child { border-right: 0; }
.benefit-grid strong { display: block; margin: 35px 0 9px; font-size: 18px; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.benefit-icon { color: var(--rust); font-size: 25px; }

.material-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.material-visual { position: relative; min-height: 510px; overflow: hidden; background: var(--steel); }
.material-visual::before {
  content: "COR-TEN B"; position: absolute; left: 5%; bottom: -2%;
  color: rgba(255,255,255,.06); font-size: clamp(92px, 13vw, 185px); font-weight: 950; letter-spacing: -.08em;
}
.material-plate {
  position: absolute; width: 68%; height: 72%; left: 15%; top: 12%;
  background: linear-gradient(125deg, #737a74, #252a25 39%, #4a504a 74%, #1b1f1b);
  transform: perspective(700px) rotateY(-17deg) rotateZ(-5deg);
  box-shadow: 35px 35px 0 rgba(0,0,0,.18);
}
.material-plate::before, .material-plate::after {
  content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #171a17; box-shadow: inset 2px 2px 2px #000;
}
.material-plate::before { left: 25px; top: 25px; }
.material-plate::after { right: 25px; bottom: 25px; }
.material-copy h2 { font-size: clamp(40px, 5vw, 70px); letter-spacing: -.05em; text-transform: uppercase; }
.material-copy > p { color: #b7bcb8; font-size: 17px; }
.spec-list { list-style: none; padding: 0; margin: 30px 0 36px; border-top: 1px solid rgba(255,255,255,.13); }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.spec-list span { color: #909691; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-grid article { min-height: 270px; padding: 28px; background: white; border-top: 3px solid var(--rust); }
.process-grid span { color: var(--rust); font: 800 12px/1 monospace; }
.process-grid h3 { margin: 60px 0 12px; font-size: 22px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-band { padding: 70px 0; color: white; background: var(--rust); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.cta-inner h2 { max-width: 750px; margin: 0; font-size: clamp(35px, 4.8vw, 62px); letter-spacing: -.04em; text-transform: uppercase; }

.shop-shell { padding: 65px 0 110px; }
.shop-title { padding: 75px 0 45px; background: var(--sand); border-bottom: 1px solid var(--line); }
.shop-title h1 { margin: 0; font-size: clamp(43px, 6vw, 76px); letter-spacing: -.05em; text-transform: uppercase; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 30px; }
.woocommerce .woocommerce-ordering select,
.woocommerce select, .woocommerce input.input-text, .woocommerce textarea {
  min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: white;
}
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 18px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce ul.products.columns-2 li.product,
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-4 li.product {
  float: none !important; width: auto !important; margin: 0 !important; padding: 0 0 24px; background: white;
}
.woocommerce ul.products li.product a img { aspect-ratio: 1 / .88; margin: 0 0 20px; object-fit: cover; background: #e4e3de; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 20px; font-size: 20px; }
.woocommerce ul.products li.product .price { padding: 0 20px; color: var(--rust-dark); font-size: 16px; font-weight: 850; }
.woocommerce ul.products li.product .button { margin: 12px 20px 0; }
.woocommerce span.onsale { min-width: 0; min-height: 0; padding: 7px 11px; border-radius: 0; line-height: 1; background: var(--rust); }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product .product_title { font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; text-transform: uppercase; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rust-dark); font-size: 25px; font-weight: 850; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce .quantity .qty { min-height: 52px; border: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; border-color: var(--line); background: var(--sand); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--rust); background: white; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rust); }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); background: white; }
.woocommerce-cart .cart-collaterals .cart_totals { width: min(100%, 520px); }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; width: 100%; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: auto; }
.woocommerce-checkout #order_review_heading { margin-top: 48px; }
.woocommerce #payment { border-radius: 0; background: var(--sand); }

.page-content { padding: 75px 0 110px; }
.page-content h1 { font-size: clamp(43px, 6vw, 72px); letter-spacing: -.045em; text-transform: uppercase; }
.page-content a:not(.button) { color: var(--rust-dark); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 68px 0 25px; color: white; background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr .8fr; gap: 50px; }
.footer-grid h2 { margin-bottom: 15px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid p, .footer-grid address { margin: 0; color: #9da39e; font-style: normal; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; color: #cbd0cc; font-size: 14px; }
.footer-links a:hover { color: var(--rust); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #747a75; font-size: 12px; }

@media (max-width: 980px) {
  .main-nav { position: absolute; inset: 78px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 24px; background: var(--black); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu-toggle { display: block; margin-left: auto; }
  .header-inner { gap: 12px; }
  .hero-product { opacity: .42; right: -10%; width: 58vw; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:first-child { grid-column: 1 / -1; min-height: 460px; }
  .benefit-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid article:nth-child(2) { border-right: 0; }
  .benefit-grid article { border-bottom: 1px solid var(--line); }
  .material-grid { grid-template-columns: 1fr; gap: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .announcement { font-size: 9px; }
  .header-inner { min-height: 70px; }
  .main-nav { inset: 70px 0 auto; }
  .brand-copy small { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .header-tool:not(.cart-link) { display: none; }
  .cart-link { min-width: 42px; padding: 0 9px; }
  .cart-label { display: none; }
  .shop-hero { min-height: 720px; }
  .hero-content { padding: 80px 0 150px; }
  .hero-content h1 { font-size: clamp(49px, 16vw, 72px); }
  .hero-product { width: 95vw; height: 390px; right: -38%; bottom: -130px; opacity: .38; }
  .hero-actions .button { width: 100%; }
  .hero-meta { gap: 11px 18px; font-size: 10px; }
  .section { padding: 75px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 22px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:first-child { grid-column: auto; min-height: 420px; }
  .benefit-grid, .process-grid { grid-template-columns: 1fr; }
  .benefit-grid article { border-right: 0; }
  .material-visual { min-height: 390px; }
  .cta-inner { display: block; }
  .cta-inner .button { margin-top: 28px; width: 100%; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 25px; }
  .woocommerce div.product .woocommerce-tabs { grid-column: 1; }
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
