:root {
  --hm-teal: #12565B;
  --hm-teal-dark: #0A3236;
  --hm-coral: #E2604A;
  --hm-sand: #F4EFE6;
  --hm-ink: #1A2B2C;
  --hm-grey: #5B6B6C;
  --hm-line: #E4DCCB;
}

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

body {
  margin: 0;
  background: var(--hm-sand);
  color: var(--hm-ink);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

/* ---------- Header ---------- */
.hm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hm-line);
}
.hm-logo { font-weight: 700; font-size: 19px; color: var(--hm-teal); text-decoration: none; }
.hm-logo span { color: var(--hm-coral); }
.hm-nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; }
.hm-nav a { text-decoration: none; color: var(--hm-ink); }
.hm-nav a:hover { color: var(--hm-teal); }
.hm-nav .hm-cart { color: var(--hm-teal); }

/* ---------- Hero ---------- */
.hm-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}
.hm-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-teal);
  background: #fff;
  border: 1px solid var(--hm-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hm-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--hm-teal);
  letter-spacing: -0.01em;
}
.hm-hero h1 em { color: var(--hm-coral); font-style: normal; }
.hm-hero p {
  font-size: 18px;
  color: var(--hm-grey);
  max-width: 560px;
  margin: 0 auto 30px;
}
.hm-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.hm-btn-primary { background: var(--hm-teal); color: #fff; }
.hm-btn-primary:hover { background: var(--hm-teal-dark); }
.hm-btn-ghost { background: transparent; color: var(--hm-teal); border-color: var(--hm-teal); }
.hm-btn-ghost:hover { background: #fff; }

/* Signature: schematischer Scan-Moment als eine ruhige, wiederkehrende Grafik */
.hm-scan-graphic {
  max-width: 340px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.hm-scan-graphic .hm-dot-grid {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--hm-teal);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  padding: 10px;
}
.hm-scan-graphic .hm-dot-grid span { background: rgba(255,255,255,0.85); border-radius: 1px; }
.hm-scan-graphic .hm-dot-grid span.off { background: transparent; }
.hm-scan-arrow { color: var(--hm-coral); font-size: 22px; }
.hm-scan-graphic .hm-contact-pill {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  text-align: left;
}
.hm-scan-graphic .hm-contact-pill strong { display: block; color: var(--hm-teal); font-size: 14px; }
.hm-scan-graphic .hm-contact-pill span { color: var(--hm-grey); }

/* ---------- Konzept ---------- */
.hm-section { max-width: 1040px; margin: 0 auto; padding: 64px 24px; }
.hm-section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.hm-section-head h2 { font-size: 30px; color: var(--hm-teal); margin: 0 0 12px; }
.hm-section-head p { color: var(--hm-grey); font-size: 16px; margin: 0; }

.hm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.hm-step {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 16px;
  padding: 24px 20px;
}
.hm-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hm-sand);
  color: var(--hm-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.hm-step h3 { font-size: 16px; margin: 0 0 6px; color: var(--hm-ink); }
.hm-step p { font-size: 14px; color: var(--hm-grey); margin: 0; }

/* ---------- Produkte ---------- */
.hm-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.hm-product-card {
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  border-width: 1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hm-product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18,86,91,0.12); }
.hm-product-card:focus-visible { outline: 3px solid var(--hm-teal); outline-offset: 2px; }
.hm-product-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--hm-sand); }
.hm-product-body { padding: 16px 18px 20px; }
.hm-product-body h3 { font-size: 17px; margin: 0 0 6px; color: var(--hm-ink); }
.hm-product-price { font-weight: 700; color: var(--hm-teal); font-size: 16px; }
.hm-product-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--hm-grey); }

/* ---------- Modal ---------- */
.hm-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 50, 54, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hm-modal-backdrop.is-open { display: flex; }
.hm-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hm-modal { grid-template-columns: 1fr 1fr; }
}
.hm-modal-img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; background: var(--hm-sand); }
.hm-modal-body { padding: 28px 26px; }
.hm-modal-body h3 { font-size: 22px; color: var(--hm-teal); margin: 0 0 10px; }
.hm-modal-price { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.hm-modal-desc { color: var(--hm-grey); font-size: 15px; white-space: pre-line; margin-bottom: 22px; }
.hm-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.hm-modal-close:hover { background: rgba(0,0,0,0.12); }

/* ---------- Footer ---------- */
.hm-footer {
  border-top: 1px solid var(--hm-line);
  padding: 32px 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--hm-grey);
}
.hm-footer a { color: var(--hm-grey); margin: 0 8px; text-decoration: none; }
.hm-footer a:hover { color: var(--hm-teal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hm-product-card { transition: none; }
}
