:root {
  --accent: #f43130;
  --accent-soft: #ff5c57;
  --text: #1e222b;
  --muted: #5b616f;
  --card: #ffffff;
  --light: #fbf7f2;
  --border: #f0c8c4;
  --shadow: 0 22px 55px rgba(17, 17, 23, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --base-fs: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: var(--base-fs);
  background:
    radial-gradient(circle at 12% 6%, #ffe4dc 0, #ffe4dc 11%, transparent 14%),
    radial-gradient(circle at 88% 90%, #f5ece4 0, #f5ece4 20%, transparent 30%),
    linear-gradient(132deg, #fffaf5 0, #ffffff 63%, #f6efe8 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(58, 20, 20, 0.08);
  border-bottom: 1px solid rgba(240, 130, 130, 0.35);
}

.brand img {
  height: 70px;
  width: auto;
}

.primary-nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 650;
  color: #303342;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: 0.2s;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .active {
  background: var(--accent);
  color: #fff;
}

.menu-toggle {
  display: none;
}

.section {
  padding: 4.6rem 1rem;
}

.section-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 780px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(236, 166, 166, 0.45);
  border-bottom: 1px solid rgba(236, 166, 166, 0.45);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem 4rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.44)),
    url('https://assets.kmu-web.ch/heinrich-ag/header.jpg');
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  width: min(900px, 100%);
  color: #fff;
}

.glass-panel {
  background: linear-gradient(140deg, rgba(14, 18, 48, 0.46), rgba(12, 12, 12, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1.15rem;
}

h1 {
  font-size: clamp(2.45rem, 4vw, 3.6rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1.05rem;
}

.lead-copy {
  max-width: 80ch;
  font-size: 1.18rem;
}

.eyebrow {
  color: #fff2e8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.section-hero-light h1,
.section-hero-light h2,
.section-hero-light p {
  text-align: center;
}

.section-hero-light p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.services-grid,
.service-highlight-grid,
.mini-stat-grid,
.why-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.2rem;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.8rem 0;
}

.service-card,
.service-highlight,
.value-card,
.reference-card,
.contact-card,
.info-tile,
.step-item,
.mini-stat-grid article {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.service-card,
.value-card,
.service-highlight,
.mini-stat-grid article {
  text-align: left;
}

.service-card img,
.service-panel img {
  margin: 0 auto 0.95rem;
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.service-card h3,
.service-highlight h3,
.reference-card h3,
.value-card h3 {
  margin-bottom: 0.5rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.workflow {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
}

.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.05rem;
}

.step-item span {
  width: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
}

.step-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.text-center { text-align: center; }

.info-tile h2,
.info-tile p,
.contact-card h2 {
  color: #1d2129;
}

.info-tile {
  display: grid;
  align-content: start;
}

.mini-stat-grid strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.3rem;
  font-size: 1.55rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #1f222f;
  color: #fff;
}

.hero-actions,
.contact-card .btn,
#service-cta {
  margin-top: 1rem;
}

footer {
  background: #111317;
  color: #f3f4f8;
  padding: 2.2rem 1rem 2.5rem;
}

.footer-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr;
  gap: 1rem;
}

.footer-inner nav,
.footer-inner div:nth-child(3) {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 0.55rem;
}

.copyright {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  opacity: 0.8;
}

.legal-content a { color: var(--accent); }

.simple-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.simple-form input,
.simple-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  font-size: 0.98rem;
}

.simple-form button {
  width: fit-content;
  border: 0;
}

.reference-card img {
  border-radius: 10px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.timeline span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  background: #fff0ef;
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
  text-align: center;
}

@media (max-width: 1000px) {
  :root {
    --base-fs: 19px;
  }

  .primary-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    transform: translateY(-130%);
    transition: transform 0.3s;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #f3d0ce;
    padding: 0.9rem;
    z-index: 49;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09);
  }

  .primary-nav.open {
    transform: translateY(0);
  }

  .primary-nav a {
    border-radius: 8px;
    padding: 0.8rem;
  }

  .menu-toggle {
    display: inline-block;
    border: 1px solid #d9d9e0;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .services-grid,
  .service-highlight-grid,
  .mini-stat-grid,
  .why-grid,
  .split-layout,
  .map-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
  }

  h3 {
    font-size: 1.35rem;
  }

  .section {
    padding: 3.4rem 0.95rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
