:root {
  --bg: #ffffff;
  --text: #1b1b1b;
  --muted: #5b5b5b;
  --line: #ececec;
  --card: #f7f5f2;
  --accent: #8b6b4a;
  --accent-dark: #5d4037;
  --accent-hover: #795548;
  --wa-green: #25D366;
  --wa-green-dark: #128C7E;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(139, 107, 74, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 60px;
}

/* Sticky-Header: bewusst nah am ursprünglichen Design */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  flex: 0 1 auto;
}
.brand img { width: 200px; display: block; }
.brand-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-title strong { font-size: 18px; letter-spacing: 0.2px; }
.brand-title span { color: var(--muted); font-size: 14px; }

nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}
.navlink {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.navlink:hover { transform: translateY(-1px); border-color: #d8cfc4; background: #faf8f5; }
.navlink.primary { border-color: var(--accent-dark); background: var(--accent-dark); color: #ffffff; }
.navlink.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.navlink.whatsapp { background: var(--wa-green); color: #fff; border-color: var(--wa-green-dark); }
.navlink.whatsapp:hover { background: var(--wa-green-dark); border-color: var(--wa-green-dark); }

main { display: block; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
  padding: 22px 0 10px;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #ffffff;
}
.hero-media img { width: 100%; display: block; }
.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -.4px;
}
.hero-copy p { margin: 0 0 14px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.kicker {
  font-weight: 800;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 14px;
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(93, 64, 55, .3);
  transition: transform .2s ease, background .2s ease;
}
.btn small { font-weight: 400; font-size: 12px; opacity: .9; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn.secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid #d8cfc4;
  box-shadow: none;
}
.btn.secondary:hover { background: #faf8f5; }

section { scroll-margin-top: 145px; margin-top: 28px; }
.section-title { margin: 0 0 10px; font-size: 22px; position: relative; padding-bottom: 10px; }
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid #eee7de; border-radius: var(--radius); padding: 16px; }
.card p { color: var(--muted); margin: 8px 0 0; }

/* Neuer, kompakter Produktbereich */
.product-list { display: grid; gap: 10px; }
.product-row {
  display: grid;
  grid-template-columns: 122px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee7de;
  border-radius: 15px;
  background: var(--card);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.product-row:hover { border-color: #d8cfc4; transform: translateY(-1px); background: #faf8f5; }
.product-thumb {
  position: relative;
  width: 122px;
  height: 82px;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-copy h3 { margin: 0 0 3px; font-size: 17px; }
.product-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.product-more { font-weight: 800; color: var(--accent-dark); font-size: 13px; white-space: nowrap; padding-right: 6px; }
.ai-note { font-size: 10px; color: #777; margin-top: 3px; display: block; }

/* Feedback wie in der ursprünglichen Seite */
.testimonial {
  position: relative;
  background: #ffffff;
  border: 1px solid #eee7de;
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}
.testimonial blockquote { margin: 0; font-style: italic; color: var(--text); }
.testimonial .author { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.stars { color: #f39c12; font-size: 14px; margin-bottom: 4px; }

.contact-lines { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.contact-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-container {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eee7de;
  box-shadow: var(--shadow);
}
.map-container iframe { width: 100%; height: 320px; border: 0; display: block; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.pill:hover { transform: translateY(-1px); border-color: #d8cfc4; background: #faf8f5; }
.pill.whatsapp { background-color: var(--wa-green); color: #ffffff; border-color: var(--wa-green-dark); }
.pill.whatsapp:hover { background-color: var(--wa-green-dark); }
.pill.shop-btn { background-color: var(--accent-dark); color: #ffffff; border-color: #3e2b25; }
.pill.shop-btn:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); }

/* Produkt-Unterseiten */
.back-row { margin: 22px 0 6px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
.product-detail {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 18px 0 8px;
}
.detail-image { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-image img { display: block; width: 100%; max-height: 430px; object-fit: cover; }
.detail-copy h1 { margin: 0 0 10px; font-size: clamp(30px,4vw,42px); line-height: 1.12; }
.detail-copy p { color: var(--muted); font-size: 16px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.detail-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Rechtliche Seiten */
.legal { max-width: 800px; padding: 22px 0 0; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 21px; margin-top: 26px; }
.legal p, .legal li { color: #3f3a36; }

footer {
  margin-top: 26px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }



/* Ruhige Infoseiten */
.info-page { padding-top: 18px; }
.info-hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
}
.info-hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.info-hero-media img { width: 100%; display: block; }
.info-hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4.5vw, 43px);
  line-height: 1.1;
}
.info-hero-copy p { color: var(--muted); font-size: 16px; margin: 0; }
.info-content { max-width: 900px; margin-top: 26px; }
.info-content > p { color: var(--muted); }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.fact-card {
  border: 1px solid #eee7de;
  border-radius: 16px;
  padding: 17px;
  background: var(--card);
}
.fact-card h2, .fact-card h3 { margin: 0 0 7px; font-size: 18px; }
.fact-card p { margin: 0; color: var(--muted); font-size: 14px; }
.info-block {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #eee7de;
  border-radius: 16px;
  background: #fff;
}
.info-block h2 { margin: 0 0 9px; font-size: 22px; }
.info-block p { margin: 7px 0 0; color: var(--muted); }
.info-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.info-list li { margin: 5px 0; }
.highlight-box {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: #f7f5f2;
}
.highlight-box strong { color: var(--accent-dark); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cta-row .btn { box-shadow: none; padding: 13px 20px; }
.btn.whatsapp-btn { background: var(--wa-green); }
.btn.whatsapp-btn:hover { background: var(--wa-green-dark); }
.example-measure {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f7f5f2;
  color: var(--accent-dark);
  font-weight: 750;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 7px 0 6px;
  }
  .brand { gap: 10px; align-self: flex-start; }
  .brand img { width: 78px; }
  .brand-title strong { font-size: 15px; }
  .brand-title span { font-size: 12px; }

  /* Alle Menüpunkte bleiben sticky sichtbar; auf schmaleren Geräten horizontal wischbar. */
  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 3px;
    gap: 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  nav::-webkit-scrollbar { display: none; }
  .navlink { flex: 0 0 auto; }

  .hero, .product-detail, .info-hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  section { scroll-margin-top: 120px; }
}

@media (max-width: 620px) {
  .wrap { padding-left: 9px; padding-right: 9px; }

  /* Deutlich kompakterer mobiler Sticky-Header */
  .site-header { padding: 4px 0 4px; gap: 2px; }
  .brand { gap: 7px; }
  .brand img { width: 44px; height: 44px; object-fit: contain; }
  .brand-title strong { font-size: 12.5px; line-height: 1.15; }
  .brand-title span { display: none; }
  nav { gap: 5px; padding: 1px 0 2px; }
  .navlink { font-size: 10.5px; padding: 6px 8px; }

  .hero { padding-top: 12px; gap: 13px; }
  .hero-media { border-radius: 14px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy p { font-size: 14px; }
  .kicker { font-size: 11px; }
  .btn, .pill { width: 100%; justify-content: center; text-align: center; }

  /* Mobile Produktübersicht: kompakte Liste statt großer zweizeiliger Karten */
  .product-list { gap: 6px; }
  .product-row {
    grid-template-columns: 58px minmax(0, 1fr) 20px;
    gap: 8px;
    padding: 6px;
    min-height: 64px;
    border-radius: 12px;
  }
  .product-thumb { width: 58px; height: 50px; border-radius: 8px; }
  .product-copy h3 { margin: 0; font-size: 12.5px; line-height: 1.18; }
  .product-copy p, .product-copy .ai-note { display: none; }
  .product-more {
    font-size: 0;
    grid-column: auto;
    padding: 0;
    justify-self: center;
    align-self: center;
  }
  .product-more::after { content: '›'; font-size: 24px; line-height: 1; color: var(--accent-dark); }

  .detail-image img { max-height: 320px; }
  .detail-actions .btn { width: 100%; }
  .info-page { padding-top: 8px; }
  .info-hero { gap: 14px; }
  .info-hero-copy h1 { font-size: 28px; }
  .info-hero-copy p { font-size: 14px; }
  .info-block, .fact-card { padding: 15px; }
  .cta-row .btn { width: 100%; }
  footer { flex-direction: column; }
  section { scroll-margin-top: 92px; }
}


/* ============================================================
   WhatsApp-Datenschutzhinweis / aktive Zustimmung
   ============================================================ */
body.wa-consent-open { overflow: hidden; }
.wa-consent-overlay[hidden] { display: none !important; }
.wa-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 22, 18, .58);
  backdrop-filter: blur(3px);
}
.wa-consent-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.26);
  color: var(--text);
}
.wa-consent-dialog h2 { margin: 5px 38px 10px 0; font-size: 24px; }
.wa-consent-dialog p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.wa-consent-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}
.wa-consent-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f4f1ed;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.wa-consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin: 17px 0 12px;
  padding: 14px;
  border: 1px solid #ded6ce;
  border-radius: 12px;
  background: #faf8f5;
  cursor: pointer;
  line-height: 1.45;
}
.wa-consent-check input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--wa-green-dark);
}
.wa-consent-small { font-size: 12.5px; }
.wa-consent-small a { color: var(--accent-dark); font-weight: 750; }
.wa-consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.wa-consent-actions button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid #d8d0c8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.wa-consent-cancel { background: #fff; color: var(--text); }
.wa-consent-confirm { background: var(--wa-green); border-color: var(--wa-green) !important; color: #fff; }
.wa-consent-confirm:hover:not(:disabled) { background: var(--wa-green-dark); }
.wa-consent-confirm:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 620px) {
  .wa-consent-overlay { padding: 10px; align-items: end; }
  .wa-consent-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 16px 16px;
    border-radius: 18px 18px 12px 12px;
  }
  .wa-consent-dialog h2 { font-size: 21px; }
  .wa-consent-actions { flex-direction: column-reverse; }
  .wa-consent-actions button { width: 100%; }
}

/* Konfigurator-Übersicht */
.config-overview {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.config-overview img {
  display: block;
  width: 100%;
  height: auto;
}
.config-overview figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 680px) {
  .config-overview { margin-top: 12px; border-radius: 12px; }
  .config-overview figcaption { padding: 8px 10px 10px; font-size: 12px; }
}
