/* ==========================================================================
   ImpactGoods – Design-System-Variablen (aus CI/CD v1.0)
   ========================================================================== */

:root {
  --forest: #0E3B2E;
  --lime: #B9E769;
  --bg: #F6F4EE;
  --text: #1E2421;
  --sage: #D9E8DF;
  --stone: #747B77;
  --white: #FFFFFF;

  --font-head: "Manrope", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --container: 1280px;

  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 48px;
  --space-xl: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

section { padding: var(--space-xl) 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--forest);
  margin: 0 0 var(--space-s);
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.375rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: clamp(1.125rem, 1.5vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 var(--space-s); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--sage);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-s);
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--stone);
  max-width: 60ch;
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-l);
  text-align: center;
}

.section-head.left { text-align: left; margin-left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--lime);
  color: var(--text);
}

.btn-primary:hover { background: #a9d95a; }

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-secondary:hover { background: var(--sage); }

.btn-small {
  padding: 10px 18px;
  font-size: 0.8125rem;
}

.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--forest);
}

.logo strong { font-weight: 700; }
.logo span { font-weight: 500; color: var(--stone); }

.logo svg { width: 30px; height: 30px; }

.main-nav ul {
  display: flex;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { color: var(--forest); border-color: var(--lime); }

.header-actions { display: flex; align-items: center; gap: var(--space-s); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--sage);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-s) 20px var(--space-m);
  }
  .main-nav li { border-bottom: 1px solid var(--sage); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-l);
}

.hero .container {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-copy h1 { margin-bottom: var(--space-m); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.hero-visual {
  background: var(--forest);
  border-radius: var(--radius-m);
  padding: var(--space-l);
  color: var(--white);
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-visual .mark {
  width: 56px;
  height: 56px;
}

.hero-visual .mark circle { stroke: rgba(255,255,255,0.35); }
.hero-visual .mark path { stroke: var(--lime); }

.hero-fact {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-s);
  padding: var(--space-m);
}

.hero-fact .value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lime);
  display: block;
  margin-bottom: 4px;
}

.hero-fact .label { color: rgba(255,255,255,0.8); font-size: 0.875rem; }

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust-bar {
  padding: var(--space-l) 0;
  border-top: 1px solid var(--sage);
  border-bottom: 1px solid var(--sage);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
}

@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--forest);
}

.trust-item span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Produkte
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(14, 59, 46, 0.08);
  transform: translateY(-2px);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-media svg {
  width: 64px;
  height: 64px;
  stroke: var(--forest);
}

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--forest);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-body {
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.125rem;
}

.product-body h3 a {
  color: var(--forest);
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.product-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--forest); }

.product-material {
  color: var(--stone);
  font-size: 0.875rem;
  margin: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sage);
  color: var(--forest);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.impact-note {
  background: var(--bg);
  border-left: 3px solid var(--lime);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.8125rem;
  color: var(--text);
  margin: 4px 0;
}

.impact-note strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin-bottom: 2px;
}

.product-footer {
  margin-top: auto;
  padding-top: var(--space-xs);
}

.product-footer-actions {
  display: flex;
  gap: 8px;
}

.product-footer-actions .btn { flex: 1; justify-content: center; }

.affiliate-hint {
  font-size: 0.6875rem;
  color: var(--stone);
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   Auswahlprinzip
   ========================================================================== */

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 720px) {
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .criteria-grid { grid-template-columns: repeat(3, 1fr); }
}

.criteria-card {
  background: var(--sage);
  border-radius: var(--radius-m);
  padding: var(--space-m);
}

.criteria-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--forest);
  margin-bottom: var(--space-s);
}

.criteria-card h4 { margin-bottom: 8px; }
.criteria-card p { color: var(--text); font-size: 0.9375rem; margin: 0; }

/* ==========================================================================
   Transparenz
   ========================================================================== */

.transparency {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-m);
  margin: 0 20px;
  padding: var(--space-l) var(--space-m);
}

@media (min-width: 768px) {
  .transparency { margin: 0 32px; padding: var(--space-xl) var(--space-l); }
}

.transparency-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 960px) {
  .transparency-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

.transparency h2 { color: var(--white); }
.transparency .lede { color: rgba(255,255,255,0.75); }

.transparency-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.transparency-list li {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: var(--space-s);
}

.transparency-list li:last-child { border-bottom: none; }

.transparency-list svg {
  width: 22px;
  height: 22px;
  stroke: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.transparency-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.transparency-list span {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

/* ==========================================================================
   Über uns
   ========================================================================== */

.about .container {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 960px) {
  .about .container { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}

.about-quote {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.35;
}

.about-copy p { color: var(--text); }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  background: var(--sage);
  border-radius: var(--radius-m);
  margin: 0 20px var(--space-xl);
  padding: var(--space-l) var(--space-m);
  text-align: center;
}

@media (min-width: 768px) {
  .newsletter { margin: 0 32px var(--space-xl); }
}

.newsletter h2 { margin-bottom: 8px; }
.newsletter .lede { margin: 0 auto var(--space-m); }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .newsletter-form { flex-direction: row; }
}

.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--stone);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--white);
  color: var(--text);
}

.newsletter-note {
  font-size: 0.75rem;
  color: var(--stone);
  margin-top: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.75);
  padding: var(--space-l) 0 var(--space-m);
}

.footer-grid {
  display: grid;
  gap: var(--space-l);
  margin-bottom: var(--space-l);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand .logo { color: var(--white); margin-bottom: var(--space-s); }
.footer-brand .logo span { color: rgba(255,255,255,0.6); }
.footer-brand .mark circle { stroke: rgba(255,255,255,0.3); }
.footer-brand .mark path { stroke: var(--lime); }
.footer-brand p { max-width: 40ch; font-size: 0.875rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: var(--space-s);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.875rem; }
.footer-col a:hover { color: var(--lime); }

.affiliate-disclosure {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-m);
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-m);
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */

.legal-page { padding-top: var(--space-l); }
.legal-page .container { max-width: 820px; }
.legal-page h2 { margin-top: var(--space-l); }
.legal-page p, .legal-page li { color: var(--text); }

.todo-banner {
  background: #FDECEC;
  border: 1px solid #E8A9A9;
  color: #7A1F1F;
  border-radius: var(--radius-s);
  padding: var(--space-s) var(--space-m);
  font-size: 0.875rem;
  margin-bottom: var(--space-l);
}

.todo-banner strong { display: block; margin-bottom: 4px; }

[data-fill] {
  background: #FDECEC;
  padding: 1px 4px;
  border-radius: 4px;
}

/* ==========================================================================
   Produktdetailseite
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--stone);
  margin-bottom: var(--space-l);
}

.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span[aria-current] { color: var(--forest); font-weight: 600; }

.product-hero {
  display: grid;
  gap: var(--space-l);
  margin-bottom: var(--space-xl);
}

@media (min-width: 900px) {
  .product-hero { grid-template-columns: 1fr 1fr; align-items: start; }
}

.product-hero-media {
  aspect-ratio: 1 / 1;
  background: var(--sage);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-hero-media svg {
  width: 30%;
  height: 30%;
  stroke: var(--forest);
}

.product-hero-info .eyebrow { background: var(--sage); }

.product-hero-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 10px; }

.price-row {
  margin: var(--space-m) 0;
  padding: var(--space-m);
  background: var(--sage);
  border-radius: var(--radius-m);
}

.btn-large { padding: 16px 32px; font-size: 1rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-s);
}

.spec-table tr { border-bottom: 1px solid var(--sage); }
.spec-table tr:last-child { border-bottom: none; }

.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 0;
  font-size: 0.9375rem;
}

.spec-table th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest);
  width: 40%;
}

.spec-table td { color: var(--text); }

.impact-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.impact-detail-list li {
  display: flex;
  gap: 12px;
  padding: var(--space-s);
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--radius-s);
}

.impact-detail-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--forest);
  flex-shrink: 0;
  margin-top: 2px;
}

.impact-detail-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.impact-detail-list span { color: var(--stone); font-size: 0.875rem; }

.back-to-shop {
  margin-top: var(--space-l);
  padding-top: var(--space-l);
  border-top: 1px solid var(--sage);
}
