/* =============================================================
   Mr. GARDENER — Garantieerklärungen für Gartenschläuche
   Elmar Jung Product Solutions GmbH & Co. KG
   Design system & styles
   ============================================================= */

/* ---------- Schriftarten (lokal gehostet · DSGVO-konform) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  --green:        #2f7d34;
  --green-bright: #6cbf47;
  --green-deep:   #1e5a22;
  --green-soft:   #e9f4e5;

  --orange:       #e2601f;
  --orange-soft:  #fdece1;

  --ink:      #14180f;
  --charcoal: #4a5142;
  --gray:     #767b6c;
  --gray-200: #e3e7dc;
  --paper:    #f4f7ee;
  --white:    #ffffff;

  --bg:        #fbfcf8;
  --bg-alt:    #f2f6ec;
  --bg-ink:    #12190f;
  --surface:   #f2f6ec;
  --surface-2: #e8eede;
  --text:      #14180f;
  --text-soft: #6b715f;
  --border:    rgba(20,24,15,.10);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 130px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(14,15,13,.06);
  --shadow:    0 18px 50px -18px rgba(14,15,13,.22);
  --shadow-lg: 0 40px 90px -30px rgba(14,15,13,.30);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; color-scheme: light; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(15.5px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2*var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--ink { background: var(--bg-ink); color: #f3f4ef; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-deep);
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--green); display:inline-block; }
.section--ink .eyebrow { color: var(--green-bright); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: .5rem 0 .8rem; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--ink); --_fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 100px;
  background: var(--_bg); color: var(--_fg);
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn::after {
  content:""; position:absolute; inset:0; z-index:-1; border-radius: inherit;
  background: linear-gradient(120deg, var(--green), var(--green-bright));
  transform: translateY(101%); transition: transform .4s var(--ease-out);
}
.btn:hover { box-shadow: var(--shadow); }
.btn:hover::after { transform: translateY(0); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn--green { --_bg: linear-gradient(120deg, var(--green), var(--green-deep)); --_fg:#fff; }
.btn--green::after { background: var(--ink); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border: 1.5px solid var(--border); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color:#fff; border-color: var(--ink); }
.btn--on-ink { --_bg: var(--white); --_fg: var(--ink); }
.btn--on-ink::after { background: var(--green); }
.btn--on-ink:hover { color: #fff; }
.btn--lg { padding: 1.1em 2em; font-size: 1.02rem; }

.link-arrow {
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--font-display); font-weight:600; color: var(--green-deep);
}
.link-arrow svg { width: 1em; height:1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: padding .4s var(--ease), box-shadow .4s var(--ease);
  padding-block: 20px;
}
.site-header::before {
  content:""; position:absolute; inset:0; z-index:-1; opacity:0;
  background: rgba(251,252,248,.9); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border); transition: opacity .4s var(--ease);
}
.site-header.is-stuck { padding-block: 12px; }
.site-header.is-stuck::before { opacity: 1; box-shadow: var(--shadow-sm); }
@media (max-width: 720px){
  .site-header::before { background: rgba(251,252,248,.97); backdrop-filter: none; }
}

.header-inner { display:flex; align-items:center; justify-content:space-between; gap: 24px; }
.brand { display:flex; align-items:center; gap:.6em; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand .mark { width: 38px; height: 38px; display:block; }
.brand .word b { color: var(--green-deep); }

.nav { display:flex; align-items:center; gap: clamp(18px, 2.4vw, 38px); }
.nav a { font-family: var(--font-display); font-weight: 500; font-size: .93rem; letter-spacing:.01em; position: relative; padding: 4px 0; color: var(--charcoal); }
.nav a::after {
  content:""; position:absolute; left:0; bottom:-1px; height:2px; width:100%;
  background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }

.header-cta { display:flex; align-items:center; gap: 14px; }

.burger { display:none; width: 44px; height: 44px; border-radius: 12px; z-index: 2; position: relative; }
.burger span { position:absolute; left:11px; right:11px; height:2px; background: var(--ink); border-radius:2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1){ top: 15px; }
.burger span:nth-child(2){ top: 21px; }
.burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-ink); color:#fff;
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .6s var(--ease-out);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.8rem); font-weight: 600; padding: .18em 0; color:#fff; opacity:0; transform: translateY(20px); transition: opacity .4s, transform .4s; }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1){ transition-delay:.14s; }
body.menu-open .mobile-menu a:nth-child(2){ transition-delay:.20s; }
body.menu-open .mobile-menu a:nth-child(3){ transition-delay:.26s; }
body.menu-open .mobile-menu a:nth-child(4){ transition-delay:.32s; }
.mobile-menu .mm-meta { margin-top: 2rem; font-family: var(--font-body); font-size: 1rem; color:#a7ac9c; opacity:0; transition: opacity .5s .5s; }
body.menu-open .mobile-menu .mm-meta { opacity: 1; }
.mobile-menu .mm-meta a { color: var(--green-bright); display:inline; }
@media (max-width: 860px){ .nav, .header-cta .btn-label { display:none; } .burger { display:block; } }

/* =============================================================
   Hero
   ============================================================= */
.hero { position: relative; padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(50px, 7vw, 90px); overflow: hidden; }
.hero-bg { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.blob { position:absolute; border-radius:50%; filter: blur(60px); will-change: transform; }
.blob.b1 { width: 44vw; height:44vw; background: radial-gradient(circle at 30% 30%, var(--green), transparent 68%); top:-14vw; right:-10vw; opacity:.22; }
.blob.b2 { width: 38vw; height:38vw; background: radial-gradient(circle at 50% 50%, var(--orange), transparent 70%); bottom:-16vw; left:-12vw; opacity:.10; }
@media (max-width: 720px){ .blob { display:none; } }

.hero-badge {
  display:inline-flex; align-items:center; gap:.6em; padding:.5em 1em; border-radius:100px;
  background: var(--white); border:1px solid var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight:600; font-size:.8rem; letter-spacing:.02em; color:var(--charcoal);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width:8px; height:8px; border-radius:50%; background: var(--green); }

.hero h1 { font-size: clamp(2.4rem, 6.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; max-width: 17ch; }
.hero h1 .accent { color: var(--green-deep); }
.hero-lead { max-width: 56ch; color: var(--text-soft); font-size: 1.12rem; margin: 1.3rem 0 2rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 14px; align-items:center; }

.hero-stats { display:flex; flex-wrap:wrap; gap: clamp(20px,5vw,56px); margin-top: clamp(36px,6vw,64px); padding-top: 28px; border-top:1px solid var(--border); }
.stat .num { font-family: var(--font-display); font-weight:700; font-size: clamp(1.7rem,3.6vw,2.5rem); line-height:1; letter-spacing:-.03em; color: var(--green-deep); }
.stat .lbl { color: var(--text-soft); font-size:.9rem; margin-top:.35rem; }

/* =============================================================
   Warranty download banner
   ============================================================= */
.download-banner {
  display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--green), var(--green-deep));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.download-banner h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: .3rem; }
.download-banner p { color: rgba(255,255,255,.85); max-width: 46ch; }
.download-banner .btn { flex-shrink: 0; }

/* =============================================================
   Products
   ============================================================= */
.product-nav { display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.product-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  padding: .55em 1.1em; border-radius: 100px; border: 1.5px solid var(--border); color: var(--charcoal);
  transition: background .3s, border-color .3s, color .3s;
}
.product-nav a:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }

.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: clamp(28px, 4vw, 40px); scroll-margin-top: 110px;
  box-shadow: var(--shadow-sm);
}
.product-media { background: linear-gradient(180deg, #fff, var(--paper)); padding: clamp(20px,3vw,32px) clamp(20px,3vw,32px) 8px; }
.product-media img { width: 100%; height: auto; border-radius: 10px; }
.product-body { padding: clamp(22px,3vw,34px); }
.product-head { display:flex; align-items:flex-start; justify-content:space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 1rem; }
.product-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.warranty-badge {
  display:inline-flex; align-items:center; gap:.5em; background: var(--orange-soft); color: var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; padding: .5em 1em; border-radius: 100px;
  white-space: nowrap;
}
.warranty-badge svg { width: 1.1em; height: 1.1em; }

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.spec-table { min-width: 560px; font-size: .9rem; }
.spec-table th, .spec-table td { padding: .8em 1em; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.spec-table th { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); background: var(--surface); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--green-soft); }
.spec-table td:first-child, .spec-table th:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* =============================================================
   Warranty process steps
   ============================================================= */
.steps-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.step-card {
  background: var(--surface); border-radius: var(--radius); padding: clamp(26px, 2.4vw, 34px);
  position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display:grid; place-items:center; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step-card p { color: var(--text-soft); font-size: .95rem; }

/* =============================================================
   CTA / contact strip
   ============================================================= */
.cta-strip { text-align:center; }
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.cta-strip p { color: var(--text-soft); max-width: 52ch; margin-inline:auto; margin-bottom: 1.8rem; }

/* =============================================================
   Forms (Kontakt)
   ============================================================= */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow-sm);
}
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display:flex; flex-direction:column; gap: .5em; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .86rem; }
.field .req { color: var(--orange); }
.field input, .field textarea {
  font: inherit; padding: .85em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--paper); color: var(--text); transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-status { margin-top: 14px; font-size: .92rem; font-family: var(--font-display); font-weight: 600; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: var(--orange); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(32px, 4vw, 48px); }
.contact-info-card { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 2.2vw, 30px); }
.contact-info-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-deep); display:grid; place-items:center; margin-bottom: 14px; }
.contact-info-card .ico svg { width: 22px; height: 22px; }
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.contact-info-card p, .contact-info-card a { color: var(--text-soft); font-size: .95rem; }
.contact-info-card a:hover { color: var(--green-deep); }

/* =============================================================
   Legal pages (Impressum / Datenschutz)
   ============================================================= */
.legal { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(70px, 9vw, 120px); }
.legal h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 1.6rem; }
.legal .lead { color: var(--text-soft); max-width: 60ch; margin-bottom: 2.4rem; }
.legal-block { max-width: 760px; }
.legal-block h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.legal-block h2:first-child { margin-top: 0; }
.legal-block p, .legal-block li { color: var(--charcoal); margin-bottom: .9em; }
.legal-block ul { padding-left: 1.3em; }
.legal-block li { list-style: disc; margin-bottom: .5em; }
.legal-block a { color: var(--green-deep); text-decoration: underline; text-underline-offset: .18em; }
.legal-block strong { font-weight: 600; color: var(--ink); }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--bg-ink); color: #eef0e9; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.footer-brand { display:flex; align-items:center; gap:.6em; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.footer-brand .mark { width: 34px; height: 34px; }
.footer-col p { color: #a7ac9c; font-size: .94rem; max-width: 36ch; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #a7ac9c; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #dfe2d7; font-size: .95rem; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap: 12px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8b9080; font-size: .85rem; }
.footer-bottom a { color: #8b9080; }
.footer-bottom a:hover { color: var(--green-bright); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .download-banner { flex-direction: column; align-items: flex-start; }
  .product-head { flex-direction: column; }
}

/* Skip link */
.skip-link {
  position:absolute; left:-999px; top:auto; background: var(--ink); color:#fff; padding: 1em 1.4em;
  border-radius: 0 0 10px 0; z-index: 999; font-family: var(--font-display); font-weight:600;
}
.skip-link:focus { left:0; top:0; }
