/* HildesZaun — site stylesheet
   Palette sampled from the client's existing IONOS site + logo.
   Light theme per client's reference mockups (bright/white, no dark chrome). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
}
/* Self-hosted (was loaded from fonts.googleapis.com — that sends every
   visitor's IP to Google before consent, same issue as the well-known
   Google Fonts ruling in Germany). */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/open-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-800.woff2") format("woff2");
}

:root {
  --green: #68d391;
  --green-dark: #2f855a;
  --green-deepest: #0a1f14;
  --yellow: #f2b705; /* sparing accent: active-page underline, cart badge */
  --navy: #161d25;
  --navy-soft: #202a37;
  --mint: #f0f9f4;
  --ink: #16211c;
  --ink-soft: #4a5a52;
  --white: #ffffff;
  --border: #e3ede7;
  --shadow: 0 20px 40px -20px rgba(10, 31, 20, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --nav-h: 90px; /* muss der tatsächlichen Höhe von .site-header entsprechen */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out, for entering/exiting elements */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--mint);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* Highlight: brand green on key words, for use on any dark background (e.g. the hero) */
.hl { color: var(--green-dark); }
.hero .hl, .cta-banner .hl { color: var(--green); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--mint { background: var(--mint); }

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 38px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(0.97); transition: transform 120ms var(--ease-out); }
.btn-primary { background: var(--green); color: var(--green-deepest); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 12px 24px -8px rgba(104,211,145,.6); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(0,0,0,.04); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0e141c; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* Header — light, per client's reference mockups */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.site-header > .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  position: relative;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:not(.btn):hover { background: var(--mint); color: var(--green-dark); }
.nav-links a.active:not(.btn) { color: var(--ink); font-weight: 600; }
.nav-links a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }
.nav-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--mint); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 100px;
  background: var(--yellow);
  color: #4a3200;
  font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count[data-empty="true"] { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--mint); }

/* Header product search */
.search-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 32px -16px rgba(10,20,15,.18);
  z-index: 99;
}
.search-panel-inner { padding: 18px 24px 22px; }
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border);
  background: var(--mint);
  border-radius: 100px;
  padding: 10px 16px;
  color: var(--ink-soft);
}
.search-input-row input {
  flex: 1;
  border: none; background: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.search-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none; background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease;
}
.search-close:hover { background: rgba(0,0,0,.06); }
.search-results { margin-top: 14px; max-height: 60vh; overflow-y: auto; }
.search-hint { color: var(--ink-soft); font-size: 14px; padding: 6px 4px; margin: 0; }
.search-result {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: background .12s ease;
}
.search-result:hover { background: var(--mint); }
.search-result .thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--mint); }
.search-result .thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.search-result .cat { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.search-result .price { font-size: 13px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
@media (max-width: 720px) {
  .search-panel-inner { padding: 14px 18px 18px; }
  .search-result { grid-template-columns: 40px 1fr; }
  .search-result .price { grid-column: 2; justify-self: start; }
  /* Logo + icon row is a few px too wide for the smallest phones (~375px)
     at full desktop padding/gap/logo size — tighten just enough to fit. */
  .site-header > .container { gap: 12px !important; padding-left: 16px !important; padding-right: 16px !important; }
  .text-logo { font-size: 28px !important; }
}

/* Deep-link highlight when arriving from a search result */
@keyframes highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,183,5,0); }
  30% { box-shadow: 0 0 0 4px rgba(242,183,5,.9); }
}
.gallery-item.highlight { animation: highlight-pulse 1.1s ease-out 2; }
@media (prefers-reduced-motion: reduce) {
  .gallery-item.highlight { animation: none; outline: 3px solid var(--yellow); outline-offset: 2px; }
}

/* Sub-nav (product categories) */
.subnav {
  background: var(--mint);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.subnav .container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
/* Scroll affordance — shown only while there's genuinely more to scroll to
   (toggled by JS in main.js), so it works at ANY viewport width where the
   8 category pills overflow, not just below some fixed breakpoint. */
.subnav::after {
  content: "";
  position: absolute; top: 1px; right: 0; bottom: 1px;
  width: 40px;
  background: linear-gradient(270deg, var(--mint) 25%, rgba(240,249,244,0));
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.subnav::before {
  content: "";
  position: absolute; top: 50%; right: 6px;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-top: 2px solid var(--green-dark);
  border-right: 2px solid var(--green-dark);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .15s ease;
}
.subnav.has-overflow-right::after,
.subnav.has-overflow-right::before {
  opacity: 1;
}
.subnav a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  border: 1px solid transparent;
  white-space: nowrap;
}
.subnav a:hover { border-color: var(--green); }
.subnav a.active { background: var(--green); color: var(--green-deepest); }

/* Hero — photo with a dark scrim so white/green text stays legible;
   the rest of the page is light, matching the client's mockups */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
/* .hero's direct flex child is .container (not .hero-inner — there's a
   nesting level between them); without min-width:0 flexbox refuses to
   shrink it below its text content's natural width, forcing the whole
   page wider than the viewport on mobile. */
.hero > .container { min-width: 0; width: 100%; }
/* Softly blurred photo layer — inherits the background-image set inline on
   .hero itself, oversized + blurred, so the fuzzy edges get clipped away
   instead of showing a soft border. Text stays sharp since it's a sibling
   layer, not a filter on .hero itself. */
.hero::before {
  content: "";
  position: absolute; inset: -20px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.05);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,15,.38) 0%, rgba(10,20,15,.55) 65%, rgba(10,20,15,.75) 100%);
  z-index: -1;
}
/* min-width:0 overrides the flex default of min-width:auto — without it,
   .hero (display:flex) refuses to shrink this child below its text's
   natural width, forcing the whole page wider than the viewport on mobile. */
.hero-inner { max-width: 760px; padding: 52px 0; min-width: 0; width: 100%; }
.hero h1 { font-size: clamp(26px, 4vw, 42px); color: #fff; }
.hero h1 .hl { color: var(--green); }
.hero .lead { font-size: 16.5px; color: #eef5f1; max-width: 640px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; color: #eef5f1; font-size: 13.5px; font-weight: 600; }
.hero-badge svg { flex: none; color: var(--green); background: rgba(104,211,145,.18); border-radius: 50%; padding: 3px; box-sizing: content-box; }
/* Solid, self-contained chip — legible regardless of what part of the
   photo sits behind it (unlike a translucent color-on-color wash). */
.hero-eyebrow { background: rgba(8,16,12,.62) !important; color: var(--green) !important; }
.hero.hero--small { min-height: 260px; }
.hero.hero--small .hero-inner { padding: 44px 0; }
.hero.hero--small h1 { font-size: clamp(24px, 3.6vw, 36px); }

/* Quick-info row (delivery / factory-direct / config / install) */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -46px; position: relative; z-index: 5; }
.usp-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.usp-card .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.usp-card h3 { font-size: 15.5px; }
.usp-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }

/* Product/category tiles — image-forward with bottom overlay, per mockup */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mint);
  display: block;
  box-shadow: var(--shadow);
}
.product-card .thumb { position: absolute; inset: 0; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card .body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 20px 22px;
  background: linear-gradient(0deg, rgba(8,16,12,.92) 0%, rgba(8,16,12,.55) 55%, transparent 100%);
  color: #fff;
}
.product-card h3 { font-size: 17px; margin-bottom: 4px; color: #fff; }
.product-card p { display: none; }
.product-card .card-link { font-size: 13.5px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.product-card .card-link svg { transition: transform .15s ease; }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .thumb img { transform: scale(1.08); }
  .product-card:hover .card-link svg { transform: translateX(3px); }
}

/* CTA banner — light mint block with a dark pill CTA, per mockup */
.cta-banner {
  background: var(--mint);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--ink); font-size: 28px; margin-bottom: 8px; }
.cta-banner p { color: var(--ink-soft); margin: 0; max-width: 460px; }

/* Two-col feature */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-split.reverse .media { order: 2; }
.feature-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.feature-list .chk { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; margin-top: 2px; }

/* Pricing */
.price-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.price-card h3 { font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.price-card .price-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.price-sub { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); margin: 18px 0 8px; }
.price-sub:first-of-type { margin-top: 0; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.price-row:last-child { border-bottom: none; }
.price-row .name { color: var(--ink); }
.price-row .art { color: #93a29a; font-size: 12px; display: block; }
.price-row .val { font-weight: 700; white-space: nowrap; color: var(--green-dark); }
.price-note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 28px; }

/* Contact band */
.contact-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.contact-tile .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--mint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-tile h4 { font-size: 15px; margin-bottom: 4px; }
.contact-tile p, .contact-tile a { font-size: 14px; color: var(--ink-soft); }
.contact-tile a:hover { color: var(--green-dark); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--mint);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

/* Warenkorb form sits inside .cart-summary, which uses the same mint as
   the fields' default background — give fields their own white surface
   there so they're visibly distinct from the card around them. */
.cart-summary .field input, .cart-summary .field textarea { background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }
.consent span { flex: 1; min-width: 0; }
.consent a { color: var(--green-dark); text-decoration: underline; font-weight: 600; }
.form-note { font-size: 12px; color: #93a29a; margin-top: 10px; }
.map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed { position: relative; background: var(--mint); min-height: 260px; }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; filter: saturate(.9); }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
}
.map-consent svg { color: var(--green-dark); }
.map-consent p { font-size: 13px; max-width: 320px; margin: 0; }
.map-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  flex-wrap: wrap;
}
.map-card-address { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.map-card-address svg { flex: none; color: var(--green-dark); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--mint);
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
/* Multi-variant products (alle-produkte.html): a swipeable strip of real
   per-variant photos instead of one static image. */
.gallery-item .product-img-scroll {
  display: flex;
  width: 100%; height: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-item .product-img-scroll::-webkit-scrollbar { display: none; }
.gallery-item .product-img-scroll img.product-img {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.08); }
}
.price-tag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.price-tag--known { background: var(--green); color: #0a1a12; }
.price-tag--inquire { background: rgba(10,20,15,.72); color: #e7efe9; font-weight: 600; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 10px 8px;
  font-size: 11.5px; line-height: 1.3;
  color: #fff;
  background: linear-gradient(0deg, rgba(10,20,15,.82), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover .cap { opacity: 1; }
.gallery-empty { text-align: center; padding: 40px; color: var(--ink-soft); }

/* Add-to-cart control on each gallery item */
.gallery-item .cart-control {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  opacity: 0; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.gallery-item:hover .cart-control,
.gallery-item .cart-control:focus-within,
.gallery-item .cart-control.in-cart { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .gallery-item .cart-control { opacity: 1; transform: translateY(0); }
  /* Touch devices never trigger :hover, so the product name would
     otherwise stay invisible on every card, on every page. */
  .gallery-item .cap { opacity: 1; }
}

.gallery-item .add-cart-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 11.5px; font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.gallery-item .add-cart-btn:active { transform: scale(.95); }

.gallery-item .qty-stepper {
  display: flex; align-items: center; gap: 2px;
  background: var(--green-dark);
  border-radius: 100px;
  padding: 3px;
}
.gallery-item .qty-stepper button {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .12s var(--ease-out);
}
.gallery-item .qty-stepper button:hover { background: rgba(255,255,255,.32); }
.gallery-item .qty-stepper button:active { transform: scale(.9); }
.gallery-item .qty-stepper span {
  min-width: 20px; text-align: center;
  font-size: 12.5px; font-weight: 800; color: #fff;
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,14,10,.92);
  display: flex;
  align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure {
  margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; text-align: center;
  transform: scale(0.96);
  transition: transform 220ms var(--ease-out);
  display: flex; align-items: center; gap: 22px;
}
.lightbox.open figure { transform: scale(1); }
.lb-media { min-width: 0; position: relative; }
.lightbox img { max-width: 100%; max-height: 76vh; border-radius: 8px; margin: 0 auto; display: block; }
.lb-price { color: var(--green); font-size: 17px; font-weight: 700; margin-top: 12px; }
.lb-cart-control { margin-top: 14px; display: flex; justify-content: center; }
.lb-cart-control .add-cart-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  border: none;
  background: var(--green);
  color: var(--green-deepest);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .12s var(--ease-out);
}
.lb-cart-control .add-cart-btn:hover { background: #7fe0a3; }
.lb-cart-control .add-cart-btn:active { transform: scale(.96); }
.lb-cart-control .qty-stepper {
  display: flex; align-items: center; gap: 4px;
  background: var(--green-dark);
  border-radius: 100px;
  padding: 5px;
}
.lb-cart-control .qty-stepper button {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .12s var(--ease-out);
}
.lb-cart-control .qty-stepper button:hover { background: rgba(255,255,255,.32); }
.lb-cart-control .qty-stepper button:active { transform: scale(.9); }
.lb-cart-control .qty-stepper span {
  min-width: 26px; text-align: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.lightbox figcaption { color: #dfe9e3; font-size: 14px; margin-top: 6px; }
/* Vertical column to the left of the enlarged photo */
.lb-variants {
  flex: none;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  max-height: 76vh;
  overflow-y: auto;
  padding: 6px 8px;
  scrollbar-width: none;
}
.lb-variants::-webkit-scrollbar { display: none; }
/* Colour swatches and size swatches are two separate pickers in the enlarged
   view — keep them visually apart so it is obvious they do different things. */
.lb-variant-group {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lb-variant-group + .lb-variant-group {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.lb-variant-group-label {
  color: rgba(255,255,255,.72);
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.lb-variant-swatch {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: transform .15s var(--ease-out), border-color .15s ease;
}
.lb-variant-swatch:hover { transform: scale(1.1); border-color: rgba(255,255,255,.85); }
.lb-variant-swatch.active { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.lb-variant-swatch--text {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-deepest);
  color: #fff;
  font-size: 11px; font-weight: 700;
  width: auto; min-width: 40px; padding: 0 8px;
  border-radius: 20px; white-space: nowrap;
}
@media (max-width: 720px) {
  .lightbox figure { flex-direction: column; }
  .lb-variants { flex-direction: row; max-height: none; max-width: 92vw; overflow-x: auto; align-items: flex-start; }
  /* On phones the column lies down: groups become rows side by side, split by
     a vertical rule instead of a horizontal one. */
  .lb-variant-group { flex-direction: row; align-items: center; }
  .lb-variant-group + .lb-variant-group {
    margin-top: 0; padding-top: 0;
    margin-left: 10px; padding-left: 10px;
    border-top: 0; border-left: 1px solid rgba(255,255,255,.22);
  }
  .lb-variant-group-label { display: none; }
}
.lightbox .lb-close {
  position: absolute;
  z-index: 3;
  top: 24px; right: 24px;
  background: rgba(10,20,15,.72);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.5);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(10,20,15,.9); }
/* Prev/next live inside .lb-media (which wraps just the photo), so they
   always sit over the picture's own edges regardless of the image's
   rendered size — not out in the surrounding dark backdrop. */
.lb-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,20,15,.72);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.5);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lb-nav:hover { background: rgba(10,20,15,.9); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox .lb-close { width: 40px; height: 40px; top: 10px; right: 10px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* Breadcrumb */
.crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a { color: var(--green-dark); font-weight: 600; }

/* About page */
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.value-list li { background: var(--mint); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--green-dark); }

/* Footer — light, per client's reference mockups */
.site-footer { background: var(--mint); color: var(--ink-soft); padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--green-dark); }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7c8f85;
}
.footer-bottom a:hover { color: var(--green-dark); }

/* Legal pages */
.legal-content h2 { font-size: 20px; margin-top: 36px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 15px; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.todo-flag {
  background: #fff7e6;
  border: 1px solid #f3d391;
  color: #8a5a00;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  margin: 10px 0 22px;
}
.withdrawal-form-box {
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-top: 16px;
}
.withdrawal-form-box p { margin: 0 0 12px; }
.withdrawal-form-box p:last-child { margin-bottom: 0; }

/* Cart page */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid;
  grid-template-columns: 76px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
/* Rasterzellen haben von Haus aus min-width:auto und schrumpfen deshalb nie
   unter ihre Inhaltsbreite. Lange Produktnamen ("Doppelstabmattenzaun
   anthrazit RAL 7016 – Beispielbild") haben so die 1fr-Spalte aufgebläht, die
   Zeile wurde breiter als der Bildschirm und Preis und Löschen-Knopf standen
   auf dem Handy außerhalb des sichtbaren Bereichs. */
.cart-layout, .cart-layout > *, .cart-list, .cart-row, .cart-row > * { min-width: 0; }
/* break-word statt anywhere plus Silbentrennung (das Dokument ist lang="de"):
   umbrochen wird nur, wenn das Wort wirklich nicht passt, und dann mit
   Trennstrich — "Doppelstab-mattenzaun" statt "Doppelstabmattenza|un". */
.cart-row .name, .cart-row .cat { overflow-wrap: break-word; hyphens: auto; }
.cart-row .thumb { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--mint); }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cart-row .cat { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.cart-row .price { font-weight: 700; color: var(--green-dark); white-space: nowrap; font-size: 14px; text-align: right; }
.cart-row .price .unit { display: block; font-weight: 500; color: var(--ink-soft); font-size: 11.5px; }
.cart-row .qty-stepper {
  display: flex; align-items: center; gap: 8px;
  background: var(--mint);
  border-radius: 100px;
  padding: 4px;
}
.cart-row .qty-stepper button {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: transform .12s var(--ease-out);
}
.cart-row .qty-stepper button:active { transform: scale(.9); }
.cart-row .qty-stepper span { min-width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-row .remove {
  background: none; border: none; cursor: pointer;
  color: #93a29a; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.cart-row .remove:hover { background: #fdeceb; color: #c0392b; }
.cart-empty { text-align: center; padding: 64px 24px; color: var(--ink-soft); }
.cart-empty .icon { color: var(--border); margin: 0 auto 18px; }
.cart-summary { background: var(--mint); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.cart-summary h3 { font-size: 18px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-summary-row > span:first-child { min-width: 0; }
.cart-summary-row .val { font-weight: 700; color: var(--green-dark); white-space: nowrap; flex-shrink: 0; }
.cart-note { font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 0; }
.cart-price-note { font-size: 12px; color: var(--ink-soft); margin: 8px 0 0; }
.cart-payment {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.cart-payment .consent a { color: var(--green-dark); text-decoration: underline; }
.cart-or-divider {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 18px 0;
  position: relative;
}
.cart-or-divider::before, .cart-or-divider::after {
  content: "";
  position: absolute; top: 50%;
  width: calc(50% - 60px);
  border-top: 1px dashed var(--border);
}
.cart-or-divider::before { left: 0; }
.cart-or-divider::after { right: 0; }

.order-id-box {
  background: #fff;
  border: 1px dashed var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 18px;
}
.order-id-value {
  font-size: 20px; font-weight: 800; letter-spacing: .03em;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.cart-confirm { text-align: center; padding: 12px 4px 4px; }
.cart-confirm .icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-deepest);
  display: flex; align-items: center; justify-content: center;
}
.cart-confirm h3 { margin-bottom: 4px; }
.cart-confirm .order-id-value { font-size: 26px; margin: 6px 0 14px; }

/* Responsive */
@media (max-width: 980px) {
  .usp-grid, .overlap-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid-new { grid-template-columns: repeat(2, 1fr) !important; }
  .price-groups { grid-template-columns: 1fr; }
  .contact-band { grid-template-columns: 1fr; }
  .feature-split, .story-grid { grid-template-columns: 1fr; }
  .feature-split.reverse .media { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .site-footer .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .hero-centered h1 { font-size: 34px !important; }
  .hero-centered .lead { font-size: 15px !important; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; width: 100%; max-width: 100vw; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 18px; gap: 4px; transform: translateY(-110%); transition: transform .25s var(--ease-out); overflow-y: auto; border-top: 1px solid var(--border); box-sizing: border-box; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav-cta { margin: 10px 4px 0; }
  .nav-toggle { display: flex; }
  /* The mega-menu dropdown is `position:absolute; min-width:480px` and only
     hidden via opacity/visibility (never display:none or collapsed width),
     so even closed it was inflating the whole page's layout width past the
     device width on every page. Convert it to an in-flow, tap-to-expand
     accordion instead — the standard mobile pattern for mega menus. */
  .has-dropdown { position: static !important; }
  .has-dropdown > a { display: flex !important; align-items: center; justify-content: space-between; }
  .has-dropdown > a svg { transition: transform .2s ease; }
  .has-dropdown.open > a svg { transform: rotate(180deg); }
  .has-dropdown::after { content: none !important; }
  .nav-dropdown {
    position: static !important;
    display: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    transform: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 8px 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .has-dropdown.open .nav-dropdown { display: flex !important; }
  .dropdown-col { flex: none; }
  .dropdown-col a { padding: 10px 0; }
  .usp-grid, .overlap-grid { grid-template-columns: repeat(2, 1fr) !important; margin-top: -34px !important; gap: 10px !important; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-grid-new { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .section { padding: 34px 0; }
  .value-list { grid-template-columns: 1fr; }
  .cart-row {
    grid-template-columns: 56px 1fr auto;
    grid-template-areas: "thumb name remove" "thumb qty price";
    row-gap: 10px;
  }
  .cart-row .thumb { grid-area: thumb; width: 56px; height: 56px; }
  .cart-row .name { grid-area: name; }
  .cart-row .qty-stepper { grid-area: qty; justify-self: start; }
  .cart-row .price { grid-area: price; }
  .cart-row .remove { grid-area: remove; }
  .hero-centered h1 { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 4px !important; }
  .hero-centered .lead { font-size: 13px !important; }
  .hero-centered { padding: 16px 0 32px !important; }
  .map-embed iframe { height: 200px !important; }
  .category-section { padding: 4px 0 20px !important; }
  .category-section .section-head { margin-bottom: 10px !important; }
  .category-section .section-head h2 { font-size: 17px !important; }
  .usp-card, .card-lined { padding: 10px 8px !important; }
  .usp-card .icon, .card-lined .icon { width: 26px !important; height: 26px !important; margin-bottom: 4px !important; }
  .usp-card .icon svg, .card-lined .icon svg { width: 14px !important; height: 14px !important; }
  .usp-card h3, .card-lined h3 { font-size: 11.5px !important; margin-bottom: 0 !important; }
  /* Icon + title only on the smallest screens — matches the client's
     compact mobile reference; full description stays on larger screens. */
  .usp-card p, .card-lined p { display: none !important; }
  .cat-img-wrapper { height: 78px !important; }
  /* One card per row instead of squeezing two — that's what forced the
     tiny fonts and cramped padding in the first place. */
  .home-cat-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .home-cat-photo { aspect-ratio: 16/10; }
  .home-cat-body { padding: 20px 20px 22px !important; gap: 10px !important; }
  .home-cat-body h3 { font-size: 17px !important; }
  .home-cat-body p { font-size: 14px !important; line-height: 1.6 !important; }
  .home-cat-btn { font-size: 13px !important; padding: 9px 18px !important; }
  .din-strap-inner { grid-template-columns: 1fr !important; gap: 18px !important; }
  .din-strap-head { padding: 16px 18px !important; gap: 12px !important; }
  .din-strap-text strong { font-size: 14.5px !important; }
  .din-strap-text span { font-size: 12px !important; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  /* Client wants the compact mobile layout: hero + the 2x2 USP icon row +
     the first 2 "beliebteste Zaunarten" cards all visible without much
     scrolling — so these stay 2-column even on the narrowest phones. */
  .product-grid-new { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .footer-grid, .site-footer .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .usp-grid, .overlap-grid { grid-template-columns: repeat(2, 1fr) !important; margin-top: -28px !important; gap: 8px !important; }
}


/* Logo image */





/* Reduced motion: keep opacity fades, drop movement/scale */
@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .product-card:hover .thumb img,
  .product-card:hover .card-link svg,
  .gallery-item:hover img,
  .brand img:hover {
    transform: none;
  }
  .lightbox, .lightbox figure { transition: opacity 200ms ease; }
  .lightbox figure { transform: none; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .nav-links {
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* =========================================
   NEW CLIENT LAYOUT CSS (Mockup Sync)
   ========================================= */

/* Text Logo */
.text-logo {
  font-size: 32px;
  font-family: sans-serif;
  text-decoration: none !important;
  letter-spacing: -0.5px;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.text-logo .hildes { color: var(--green-dark); font-weight: 700; }
.text-logo .zaun { color: #162446; font-weight: 800; }

/* Navigation */
.nav-links a:not(.btn) {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 0;
  padding: 8px 12px;
  background: transparent !important;
  color: #1a1a1a;
}
.nav-links a.active:not(.btn) { color: var(--green-dark); background: transparent !important; }
.nav-links a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 3px;
  background: #fbc02d;
  border-radius: 2px;
}

/* Hover underline: grows from the center outward to the edges */
.nav-links a:not(.btn)::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 3px;
  background: #fbc02d;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  pointer-events: none;
}
.nav-links a:not(.btn):hover::before { transform: scaleX(1); }
@media (hover: none) {
  /* Touch has no real hover — this could only ever get "stuck" visible
     after a tap (e.g. the ZÄUNE & TORE accordion trigger) with no way for
     the user to "unhover" it. The active-page underline (::after) still
     works independently of this. */
  .nav-links a:not(.btn):hover::before { transform: scaleX(0); }
}

/* Hero Centered */
.hero-centered {
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 0 120px;
}
.hero-centered h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 24px;
}
.hero-centered .lead {
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Overlapping USP Cards */
.overlap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.card-lined {
  background: #fff;
  border-top: 5px solid var(--green-dark);
  border-bottom: 5px solid #ffc107;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 32px 20px;
  text-align: center;
}
.card-lined .icon {
  margin: 0 auto 16px;
  color: #212121;
}
.card-lined .icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}
.card-lined .icon.accent-yellow svg {
  stroke: #212121;
  fill: none;
}
/* A small trick to add yellow accent to icons */
.card-lined .icon.accent-yellow {
  position: relative;
  display: flex;
}
.card-lined .icon.accent-yellow::after {
  content: "";
  position: absolute;
  bottom: 4px; right: -4px;
  width: 16px; height: 16px;
  background: #fbc02d;
  border-radius: 50%;
  z-index: -1;
}
.card-lined h3 {
  font-size: 17px;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.card-lined p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* New Product Grid */
.category-section {
  padding: 80px 0;
  background: #fff;
}
.product-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.category-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.cat-img-wrapper {
  height: 180px;
  overflow: hidden;
}
.cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-info {
  padding: 20px;
  text-align: center;
  color: #1a1a1a;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}
.category-info .cat-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}
.block-yellow { background: #dce73a; }
.block-orange { background: #ffc107; }
.block-green { background: #00bfa5; color: #fff; }
.block-blue { background: #03a9f4; color: #fff; }
.block-green .cat-link, .block-blue .cat-link { color: #fff; }

/* Homepage category cards — photo, name, description, CTA pill */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.home-cat-card {
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.home-cat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(10,20,15,.4); }
.home-cat-photo { aspect-ratio: 4/3; overflow: hidden; }
.home-cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.home-cat-card:hover .home-cat-photo img { transform: scale(1.06); }
.home-cat-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.home-cat-body h3 { font-size: 18px; margin: 0; color: var(--green-dark); }
.home-cat-body p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; flex: 1; }
.home-cat-btn {
  align-self: flex-start;
  font-size: 13px; font-weight: 700;
  color: #fff; background: var(--green-dark);
  border-radius: 100px; padding: 9px 18px;
  transition: background .15s ease;
}
.home-cat-card:hover .home-cat-btn { background: var(--green-deepest); }

/* DIN Vorgaben strap — spans the card grid width, click to reveal details */
.din-strap {
  margin-top: 24px;
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.din-strap-head {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 26px;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: inherit;
}
.din-strap-icon {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  background: #fff; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.din-strap-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.din-strap-text strong { font-size: 16px; color: var(--ink); }
.din-strap-text span { font-size: 13px; color: var(--ink-soft); }
.din-strap-chevron {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.din-strap.open .din-strap-chevron { transform: rotate(180deg); }
.din-strap-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.din-strap.open .din-strap-panel { max-height: 2200px; }
.din-strap-inner {
  padding: 4px 26px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.din-strap-diagram {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px -18px rgba(10,20,15,.35);
}
.din-strap-inner h4 {
  font-size: 14px; color: var(--green-dark);
  text-decoration: underline; text-underline-offset: 3px;
  margin: 0 0 10px;
}
.din-strap-inner p { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0; }

.all-products-cta { display: flex; justify-content: center; margin-top: 40px; }

/* CTA Banner New */
.cta-banner-new {
  background: #f1f8e9;
  padding: 60px 20px;
  text-align: center;
}
.cta-banner-inner h2 {
  font-size: 28px;
  color: #162446;
  margin-bottom: 24px;
}
.btn-navy {
  background: #162446;
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
}
.btn-navy:hover {
  background: #233763;
}


/* =========================================
   ENHANCED ANIMATIONS & HOVER EFFECTS
   ========================================= */

/* Overlapping USP Cards Animations */
.card-lined {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.card-lined:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.card-lined .icon svg {
  transition: transform 0.3s ease, stroke 0.3s ease;
}
.card-lined:hover .icon svg {
  transform: scale(1.1);
}

/* Category Grid Animations */
.category-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  text-decoration: none;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}
.cat-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.category-card:hover .cat-img-wrapper img {
  transform: scale(1.08);
}
.category-info .cat-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}
.category-info .cat-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.category-card:hover .cat-link::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Button Animations */
.btn-navy {
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(22, 36, 70, 0.3);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 36, 70, 0.4);
}
.btn-navy:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(22, 36, 70, 0.3);
}


/* CTA Banner Decorative Shapes */
.cta-banner-new {
  position: relative;
  overflow: hidden;
}
.cta-banner-new::before,
.cta-banner-new::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  background: var(--green-dark);
  z-index: 0;
}
.cta-banner-new::before {
  left: -50px;
  transform: skewX(-20deg);
}
.cta-banner-new::after {
  right: -50px;
  transform: skewX(-20deg);
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
}

/* Footer Fixes to match screenshot */
.site-footer {
  background: #fff;
  padding: 60px 0 30px;
  border-top: 1px solid #eee;
}
.site-footer .footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  align-items: start;
}
.site-footer h4 {
  color: #1a1a1a;
  font-weight: 700;
}
.site-footer a, .site-footer p, .site-footer li {
  color: #555;
}
.site-footer a:hover {
  color: var(--green-dark);
}

/* =========================================
   COMPACT LAYOUT OVERRIDES (Client Request)
   ========================================= */
.hero-centered {
  padding: 40px 0 90px !important;
}
.overlap-grid {
  margin-top: -60px !important;
  gap: 16px !important;
}
.card-lined {
  padding: 24px 16px !important;
}
.card-lined h3 {
  font-size: 15px !important;
  margin-bottom: 8px !important;
}
.card-lined p {
  font-size: 13px !important;
}
.category-section {
  padding: 30px 0 60px !important;
}
.category-section .section-head {
  margin-bottom: 20px !important;
}
.product-grid-new {
  margin-top: 10px !important;
  gap: 16px !important;
}
.cat-img-wrapper {
  height: 150px !important;
}

/* Logo gap fix and color match */
.brand.text-logo {
  gap: 0 !important;
}
.text-logo {
  font-family: 'Inter', sans-serif !important;
  font-size: 34px !important;
}
.text-logo .hildes { 
  color: var(--green-dark) !important; 
  font-weight: 700 !important; 
}
.text-logo .zaun { 
  color: #132c52 !important; 
  font-weight: 700 !important; 
}

/* Logo Font Match */
.text-logo {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: -1px !important;
  transform: scaleY(1.05); /* Slight stretch to match proportions */
}

/* Update logo font to Open Sans per typographic analysis */
.text-logo {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  letter-spacing: -1.5px !important;
  transform: none !important;
}
.text-logo .hildes { 
  font-weight: 700 !important; 
}
.text-logo .zaun { 
  font-weight: 800 !important; 
}

/* Global Font & Final Compaction */
body, html {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
}

/* Remove misaligned yellow accent */
.card-lined .icon.accent-yellow::after {
  display: none !important;
}

/* Extreme Compaction for Laptop Viewport */
.hero-centered {
  padding: 10px 0 70px !important;
}
.hero-centered h1 {
  font-size: 38px !important;
  margin-bottom: 12px !important;
}
.hero-centered .lead {
  font-size: 16px !important;
}
.overlap-grid {
  margin-top: -50px !important; /* adjust overlap based on smaller hero */
}
.card-lined {
  padding: 16px 12px !important;
}
.card-lined .icon {
  margin-bottom: 8px !important;
}
.card-lined .icon svg {
  width: 32px !important;
  height: 32px !important;
}
.card-lined h3 {
  font-size: 14px !important;
  margin-bottom: 4px !important;
}
.card-lined p {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.category-section {
  padding: 20px 0 30px !important;
}
.category-section .section-head h2 {
  font-size: 22px !important;
}
.category-section .section-head {
  margin-bottom: 10px !important;
}
.product-grid-new {
  margin-top: 5px !important;
}
.cat-img-wrapper {
  height: 100px !important;
}
.category-info {
  padding: 12px !important;
}
.category-info h3 {
  font-size: 13px !important;
  margin-bottom: 0 !important;
}


/* Hero Compaction */
.hero-centered {
  padding: 30px 0 60px !important;
}
.hero-centered h1 {
  font-size: 36px !important;
  margin-bottom: 8px !important;
  line-height: 1.1 !important;
}
.overlap-grid {
  margin-top: -40px !important;
}

/* Hero Shrink Fix */
.hero {
  min-height: auto !important;
}
.hero-centered {
  padding: 40px 0 100px !important;
}
.hero-centered h1 {
  font-size: 34px !important;
  margin-bottom: 8px !important;
}
.overlap-grid {
  margin-top: -60px !important;
}

/* Hero Large Text and Yellow Highlight */
.hero-centered h1 {
  font-size: 44px !important;
  line-height: 1.15 !important;
}
.hero-centered h1 .hl-yellow,
.hero-centered .lead .hl-yellow {
  color: #ffc107 !important;
}

/* .hero .lead's max-width (no auto margins) otherwise hugs the left edge
   of the centered block instead of centering itself underneath the h1 */
.hero-centered .lead {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 820px !important;
}
.hero-centered .cta-row {
  justify-content: center;
}

/* Navigation Dropdown — positioning context for the desktop hover mega-menu
   only; on mobile .nav-links must stay `position:fixed` (off-canvas menu,
   set in the 720px breakpoint below) so this must not apply there. */
@media (min-width: 721px) {
  .nav-links {
    position: relative;
  }
}
.has-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  margin-top: 18px; /* clears the full header bar, not just the link text */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: flex;
  gap: 32px;
  min-width: 480px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 100;
  border: 1px solid #eaeaea;
  pointer-events: none;
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Invisible bridge so hover doesn't break across the gap up to the dropdown */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 22px;
}
.dropdown-col {
  flex: 1;
}
.dropdown-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  display: inline-block;
}
.dropdown-col a {
  display: block;
  padding: 8px 0;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}
.dropdown-col a:hover {
  color: var(--green);
}

/* Product Filter Controls */
.filter-controls-wrapper {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-select-wrapper {
  flex: 1;
  min-width: 250px;
}
.form-select {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  color: #333;
  background-color: #fcfcfc;
  cursor: pointer;
  outline: none;
  font-weight: 500;
}
.form-select:focus {
  border-color: var(--green);
}
.filter-pills-wrap {
  position: relative;
  flex: 2;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
}
.filter-pills::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
/* Scroll affordance: edge fades + a nudging arrow, shown only while
   there is more to scroll to in that direction (toggled via JS). */
.filter-fade {
  position: absolute;
  top: 0; bottom: 4px;
  width: 44px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  display: flex;
  align-items: center;
}
.filter-fade--left {
  left: 0;
  background: linear-gradient(90deg, #fff 20%, rgba(255,255,255,0));
  justify-content: flex-start;
}
.filter-fade--right {
  right: 0;
  background: linear-gradient(270deg, #fff 20%, rgba(255,255,255,0));
  justify-content: flex-end;
  color: var(--green-dark);
}
.filter-fade--right svg { animation: filter-fade-nudge 1.6s ease-in-out infinite; }
.filter-pills-wrap.has-overflow-right .filter-fade--right,
.filter-pills-wrap.has-overflow-left .filter-fade--left {
  opacity: 1;
}
@keyframes filter-fade-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .filter-fade--right svg { animation: none; }
}
.pill-btn {
  background: transparent;
  border: 1px solid #ddd;
  color: #555;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pill-btn:hover {
  border-color: var(--green);
  color: var(--green-deepest);
}
.pill-btn.active {
  background: var(--green);
  color: var(--green-deepest);
  border-color: var(--green);
}
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Die Filterleiste dockt direkt unter dem Header an. Vorher stand hier ein
   fester Wert von 60px, während der Header 90px hoch ist — die Leiste parkte
   also 30px darunter und der Header zeichnete seine Unterkante quer über die
   Pills. Immer von --nav-h ableiten, nie hart kodieren. */
.filter-controls-wrapper {
  top: var(--nav-h);
}

/* Gallery Item Fixes */

/* 1 & 2. Fix caption text being covered and improve gradient shadow */
.gallery-item .cap {
  padding: 50px 10px 42px !important; /* Push text up above the button */
  background: linear-gradient(0deg, rgba(10,20,15,0.9) 0%, rgba(10,20,15,0.6) 50%, transparent 100%) !important;
  font-size: 13px !important; /* Make slightly larger for readability */
}

/* 3. Make cart stepper yellow instead of green */
.gallery-item .qty-stepper {
  background: #ffc107 !important;
}
.gallery-item .qty-stepper button {
  color: #1a1a1a !important;
  background: rgba(0,0,0,0.1) !important;
}
.gallery-item .qty-stepper button:hover {
  background: rgba(0,0,0,0.2) !important;
}
.gallery-item .qty-stepper span {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

/* Variant swatches — real per-variant photos, shown on hover next to the
   cart control, so shoppers browse finishes visually instead of a dropdown. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Top-left, opposite the price tag — always visible (not hover-gated) so
   touch/mobile shoppers see the options too, and it never collides with
   the bottom-stacked caption + add-to-cart button. Capped to a single row
   (scrollable) and kept clear of the price tag's top-right corner, so a
   product with many variants can't wrap down and cover the price. */
.gallery-item .variant-swatches {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  max-width: 122px;
  display: flex; gap: 5px; flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 4px 5px 3px;
  margin: -3px 0 0 -3px;
}
.gallery-item .variant-swatches::-webkit-scrollbar { display: none; }
/* Two-tier picker (finish photo row + size number row) for real supplier
   products sold in one finish across many sizes AND in several finishes —
   same top-left corner spot, just stacked instead of a single row. */
.gallery-item .variant-picker {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.gallery-item .variant-picker .variant-swatches {
  position: static; margin: -3px 0 0 -3px;
}
/* Colour chip instead of a photo swatch, for products the supplier only
   photographed once regardless of colour. */
.variant-swatch--color { background-size: cover; }
.variant-swatch {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: pointer;
  padding: 0;
  transition: transform .15s var(--ease-out), border-color .15s ease;
}
.variant-swatch:hover { transform: scale(1.12); }
.variant-swatch.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow), 0 2px 6px rgba(0,0,0,.35);
}
/* Size variants (same photo for every size) show the size as a short
   text label instead of a background photo — same swatch, same click
   interaction, just no per-size photography to fill it with. */
.variant-swatch--text {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-deepest);
  color: #fff;
  font-size: 7.5px; font-weight: 700; line-height: 1;
  letter-spacing: -.02em;
  /* Gate sizes need two numbers ("1000×800"), which will not fit a 22px
     circle — grow into a pill instead of clipping. Single numbers still
     render as the round swatch the colour picker uses. */
  width: auto;
  min-width: 22px;
  padding: 0 5px;
  border-radius: 11px;
  white-space: nowrap;
}
.gallery-item .cap-variant { color: var(--yellow); font-weight: 700; }

/* =========================================
   ÜBER UNS — redesigned page
   ========================================= */

/* Scroll-reveal utility (progressive enhancement: visible by default,
   only animates when JS + motion preference both allow it) */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  }
  .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .13s; }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .21s; }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .29s; }
  .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .37s; }
}

/* Founding-year badge overlaid on the story photo */
.since-badge {
  position: absolute; left: -18px; bottom: -18px;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, var(--green) 0%, var(--green-dark) 55%, var(--green-deepest) 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: 0 14px 30px -10px rgba(10, 31, 20, .55);
  border: 4px solid #fff;
  transition: transform .3s var(--ease-out);
}
.since-badge::before {
  content: "";
  position: absolute; inset: -9px;
  border-radius: 50%;
  border: 2px dashed rgba(104, 211, 145, .55);
  animation: since-badge-spin 16s linear infinite;
}
.since-badge strong { font-size: 26px; font-weight: 800; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.since-badge span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; color: var(--green); }
@media (hover: hover) and (pointer: fine) {
  .since-badge:hover { transform: scale(1.06) rotate(-4deg); }
}
@keyframes since-badge-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .since-badge::before { animation: none; }
  .since-badge { transition: none; }
}
.story-grid .media { position: relative; }

/* "Was zeichnet uns aus?" — feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s ease-out, box-shadow .25s ease-out, border-color .25s ease-out;
  transition-delay: 0s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background .25s ease-out, color .25s ease-out, transform .25s ease-out;
  transition-delay: 0s;
}
.feature-card:hover .icon { background: var(--green-dark); color: #fff; transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-size: 16px; margin: 0 0 6px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* "Unser Sortiment" — image-forward category grid */
.sortiment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.sortiment-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: block;
}
.sortiment-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out), filter .5s ease;
}
.sortiment-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,16,12,.88) 0%, rgba(8,16,12,.15) 55%, rgba(8,16,12,.05) 100%);
}
.sortiment-card:hover img { transform: scale(1.1); }
.sortiment-card .sortiment-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 16px 14px;
}
.sortiment-card h3 { font-size: 14.5px; margin: 0 0 4px; }
.sortiment-card p {
  font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.82); margin: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s var(--ease-out), opacity .25s ease;
}
.sortiment-card:hover p { max-height: 80px; opacity: 1; }
.sortiment-card .arrow {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  transform: translate(-4px, 4px) rotate(-45deg);
  opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s ease, background .25s ease;
}
.sortiment-card:hover .arrow { transform: translate(0,0) rotate(0deg); opacity: 1; }
.sortiment-card:hover .arrow { background: var(--green); color: var(--green-deepest); }

/* Glass-fence tile: icon-led, no product photo yet — inquire directly */
.sortiment-card.sortiment-card--inquire {
  background: linear-gradient(155deg, var(--green-dark), var(--green-deepest));
}
.sortiment-card.sortiment-card--inquire::after { content: none; }
.sortiment-card.sortiment-card--inquire .icon-mark {
  position: absolute; top: 22px; left: 14px;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.sortiment-card.sortiment-card--inquire p { max-height: 80px; opacity: .82; }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sortiment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  /* Stay 2-column even on the narrowest phones — 1-per-row was the single
     biggest contributor to the page needing ~8 screens of scrolling. */
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sortiment-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sortiment-card { aspect-ratio: 1/1; }
  .sortiment-card h3 { font-size: 12px; }
  .sortiment-card .sortiment-body { padding: 10px 8px; }
  .since-badge { width: 88px; height: 88px; left: -12px; bottom: -12px; }
  .since-badge strong { font-size: 21px; }
}
@media (hover: none) {
  /* Description text was hover-revealed only — permanently hidden on touch. */
  .sortiment-card p { max-height: 60px !important; opacity: .92 !important; }
  .sortiment-card .arrow { opacity: .85 !important; transform: translate(0,0) rotate(-45deg) !important; }
}

/* Closing tagline */
.about-tagline {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  color: var(--green-deepest);
  margin: 0 0 18px;
}
.about-tagline span { display: inline-block; }
.about-tagline .dim { color: var(--ink-soft); font-weight: 700; }

/* =========================================
   FINAL MOBILE OVERRIDES
   Placed last on purpose: several earlier rules in this file are
   unconditional (no media query) but still use !important, so — since a
   media query's condition doesn't affect cascade priority, only source
   order does — an earlier media-scoped !important rule can still lose to
   a later unconditional !important rule of equal specificity. Keeping the
   real mobile-compactness values here, after everything else, guarantees
   they win regardless of what else changes earlier in the file.
   ========================================= */
@media (max-width: 720px) {
  .hero-centered { padding: 16px 0 32px !important; }
  .hero-centered h1 { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 4px !important; }
  .hero-centered .lead { font-size: 13px !important; }
  /* The hero is much shorter now, so the desktop-tuned negative margin-top
     (meant to pull the USP row up over a tall hero) instead drags it up
     over the hero's own text. A small pull-up still reads as a nice
     "floating card" overlap against the hero's bottom edge/photo. */
  .usp-grid, .overlap-grid { margin-top: -18px !important; }
  /* Long German compound category labels ("Doppelstabmattenzäune") need to
     wrap onto 2 lines in the narrow 2-column mobile cards, not get clipped. */
  .category-info h3 {
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .category-card { height: auto !important; }
  /* The desktop diagonal green shapes were sized for a wide banner; on a
     narrow phone they never sit flush with the edges and read as a
     misaligned stripe. Plain light background reads cleaner on mobile. */
  .cta-banner-new::before, .cta-banner-new::after {
    display: none !important;
  }
  /* Sticky under the header on mobile, matching the filter bar. */
  .subnav { position: sticky; top: var(--nav-h); z-index: 90; }
}
@media (hover: none) {
  /* Compact, Shopify-style touch layout: the photo stays completely
     clean except for a small floating icon-only quick-add button (never
     text, so it doesn't violate "nothing on the photo"). Below the photo
     there are exactly two short lines — a truncated title and a plain
     price line — instead of the old full-width colored pills, which read
     as cluttered on a narrow screen. */
  .gallery-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    aspect-ratio: auto;
    overflow: visible;
  }
  .gallery-item img.product-img,
  .gallery-item > img,
  .gallery-item .product-img-scroll {
    order: 1;
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }
  .gallery-item .product-img-scroll img.product-img {
    height: 100%;
  }
  .gallery-item .cap {
    order: 2;
    position: static;
    opacity: 1;
    background: none !important;
    color: var(--ink);
    padding: 8px 2px 0 !important;
    margin: 0;
    font-size: 12.5px !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gallery-item .cap .cap-variant { color: var(--green-dark); }
  .gallery-item .price-tag {
    order: 3;
    position: static;
    display: block;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--green-dark) !important;
    padding: 1px 2px 8px !important;
    margin: 0;
    font-size: 12.5px !important;
    font-weight: 700 !important;
  }
  .gallery-item .price-tag.price-tag--inquire { color: var(--ink-soft) !important; font-weight: 600 !important; }

  /* Quick-add: a small floating icon over the photo's corner, matching
     the "corner action" pattern from modern mobile shop grids (Shopify,
     Zalando) — swaps for a compact qty pill once the item is in the
     cart, anchored to the same corner instead of spanning the card. */
  .gallery-item .cart-control {
    position: absolute;
    left: auto; right: 8px; top: 8px; bottom: auto;
    opacity: 1;
    transform: none;
    margin: 0;
  }
  .gallery-item .add-cart-btn {
    width: 34px; height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-dark);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(10,20,15,.45);
  }
  .gallery-item .add-cart-btn .label { display: none; }
  .gallery-item .qty-stepper {
    box-shadow: 0 4px 12px -2px rgba(10,20,15,.45);
  }
  .gallery-item .variant-swatches, .gallery-item .variant-picker { top: 8px; } /* stays on the photo, per design */
}
@media (max-width: 720px) {
  /* #dynamic-product-grid has a desktop-sized inline padding-top:40px —
     needs !important to beat an inline style. */
  #dynamic-product-grid { padding-top: 12px !important; padding-bottom: 40px !important; }
  .section-header { margin: 0 0 10px !important; }
  .section-header h2 { margin: 0 !important; font-size: 19px !important; }
  #dynamic-product-grid section.section--tight { padding-top: 12px !important; padding-bottom: 32px !important; }
}
@media (max-width: 480px) {
  .usp-grid, .overlap-grid { margin-top: -18px !important; }
}

/* New Dynamic Logo Integration */

/* New Image Logo Styles (Stacked Layout) */
.nav-logo-img {
  height: 64px; /* Fits perfectly in 90px header */
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.brand:hover .nav-logo-img {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
}

/* Grundpreis nach § 4 PAngV — muss in unmittelbarer Nähe des Endpreises
   stehen, deshalb im Preisschild selbst und nicht in der Bildunterschrift. */
.price-tag .price-base {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  opacity: .85;
  margin-top: 1px;
  line-height: 1;
}
