:root {
  --ink: #18212a;
  --muted: #5b6672;
  --line: #d9dee5;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --accent: #c8161d;
  --accent-dark: #8f1117;
  --steel: #31485f;
  --shadow: 0 18px 45px rgba(24, 33, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 222, 229, 0.78);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  box-shadow: 0 8px 28px rgba(24, 33, 42, 0.08);
}

.brand {
  flex: 0 0 auto;
}

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

.top-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.menu-list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.menu-list > li > a:hover,
.menu-list > li > a.is-active,
.menu-list > li:focus-within > a,
.menu-list > li:hover > a {
  color: var(--accent);
  border-color: var(--accent);
}

.has-submenu > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  min-width: 100%;
  padding: 0 56px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(24, 33, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 11px 0;
  color: var(--muted);
  border: 0;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 19;
  top: 82px;
  left: 0;
  right: 0;
  display: grid;
  max-height: 0;
  overflow: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: max-height 220ms ease;
}

.mobile-menu.is-open {
  max-height: calc(100vh - 82px);
}

.mobile-menu a,
.mobile-menu summary {
  display: block;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
}

.mobile-menu details details summary,
.mobile-menu details a {
  padding-left: 42px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.mobile-menu details details a {
  padding-left: 60px;
  font-size: 14px;
}

.mobile-menu summary::marker {
  color: var(--accent);
}

.hero {
  position: relative;
  margin-top: 82px;
  min-height: 35vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 22, 31, 0.84), rgba(14, 22, 31, 0.45) 50%, rgba(14, 22, 31, 0.18));
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 clamp(20px, 7vw, 96px) 10vh;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 750px;
  margin: 0 0 26px;
  font-size: clamp(18px, 2vw, 23px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
}

.section {
  padding: 92px clamp(20px, 6vw, 88px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 44px;
  align-items: start;
}

.intro-grid p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.facts {
  display: grid;
  gap: 14px;
}

.facts div {
  padding: 22px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
}

.facts strong {
  display: block;
  color: var(--steel);
  font-size: 38px;
  line-height: 1;
}

.facts span {
  color: var(--muted);
}

.portfolio {
  background: var(--soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.product-card img {
  width: 100%;
  height: 120px;
  padding: 18px;
  object-fit: contain;
  background: #eef2f5;
  flex-shrink: 0;
}

.product-card div {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card h3 {
  font-size: 18px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Varianten & Modifikatoren */
.product-card.is-agb {
  min-height: auto;
}

.product-card.is-agb > div {
  padding: 32px;
}

.product-card.is-portrait img {
  object-fit: cover;
  padding: 0;
  background: #eee;
}

/* Utility-Klassen für Abstände */
.u-mt-24 { margin-top: 24px; }
.u-mt-48 { margin-top: 48px; }
.u-mt-60 { margin-top: 60px; }

/* Layout Utilities */
.l-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.s-bg-soft { background-color: var(--soft); }

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 46px;
  padding: 86px clamp(20px, 6vw, 88px);
  color: #fff;
  background: var(--steel);
}

.service-band .eyebrow {
  color: #fff;
}

.service-band p:last-child {
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.image-text {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.image-text > img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.image-text p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.info-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 58px clamp(20px, 6vw, 88px);
  color: #fff;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.info-strip-light {
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-strip .eyebrow {
  color: currentColor;
}

.info-strip h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.info-strip p:last-child {
  align-self: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.info-strip-light p:last-child {
  color: var(--muted);
}

.contact {
  background: var(--soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 40px;
}

.contact-details,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}

.contact-details p {
  color: var(--muted);
}

.contact-details a {
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(200, 22, 29, 0.24);
  border-color: var(--accent);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--steel);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 170px;
}

.site-footer p {
  margin-right: auto;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  color: #fff;
}

@media (max-width: 900px) and (min-width: 600px) {
  .site-header {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand img {
    width: 145px;
  }

  .top-nav {
    font-size: 12px;
  }

  .menu-list {
    gap: 8px;
  }

  .submenu {
    padding-inline: 16px;
    gap: 12px;
  }
}

@media (max-width: 599.98px) {
  .top-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .brand img {
    width: 185px;
  }

  .intro-grid,
  .service-band,
  .image-text,
  .info-strip,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    margin-bottom: 56px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer p {
    margin: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 74px;
    padding: 14px 16px;
  }

  .mobile-menu {
    top: 74px;
  }

  .hero {
    margin-top: 74px;
  }

  .brand img {
    width: 155px;
  }

  .section {
    padding: 68px 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-card img {
    height: 200px;
  }
}
