:root {
  --bg: #040608;
  --panel: rgba(10, 13, 17, 0.88);
  --panel-soft: rgba(13, 17, 22, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #aab2bc;
  --accent: #ff6a00;
  --accent-strong: #ff7f1f;
  --accent-soft: rgba(255, 106, 0, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

#leistungen,
#fertigung,
#ueber-uns,
#impressum,
#kontakt {
  scroll-margin-top: 110px;
}

#start {
  scroll-margin-top: 0;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.1), transparent 26%),
    linear-gradient(180deg, #020406 0%, #080b0f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 186px 0 120px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max-width));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 164px;
  padding: 6px 12px 6px 0;
  background: rgba(5, 8, 11, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 160px;
  aspect-ratio: 700 / 398;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a,
.header-cta {
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: #d8dde4;
  font-size: 1rem;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  background: var(--accent);
}

.header-cta,
.button-primary {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #ff8a30);
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.24);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  padding-top: 4px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.62fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(4, 7, 10, 0.84) 0%, rgba(4, 7, 10, 0.54) 42%, rgba(4, 7, 10, 0.34) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    url("optimized-images/hero-bg-desktop.webp") calc(40% - 300px) center / cover no-repeat;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at left center, rgba(255, 106, 0, 0.1), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(2, 5, 8, 0.12) 100%);
}

.hero-left,
.hero-overview,
.trust-metrics,
.brand-band,
.info-strip,
.service-row,
.about-panel,
.project-card,
.contact-card,
.quality-panel,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-left {
  position: relative;
  min-height: 320px;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  max-width: 520px;
  padding: 24px 28px 12px;
}

.eyebrow,
.overview-eyebrow,
.band-label {
  margin: 0 0 8px;
  color: #ff944d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.band-label {
  font-size: 0.88rem;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-card h2,
.quality-panel h2 {
  margin: 0;
  font-family: var(--font-display);
}

.hero h1 {
  max-width: 8.2ch;
  font-size: clamp(1.45rem, 2.2vw, 2.3rem);
  line-height: 1.04;
}

.hero-line {
  display: block;
}

.hero-line-wide,
.hero-line-accent {
  white-space: nowrap;
}

.hero-line-accent {
  color: var(--accent-strong);
}

.hero-text,
.section-heading p,
.service-content p,
.about-text p,
.project-card p,
.contact-card p,
.quality-list p,
.metric-card small,
.footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 39ch;
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
}

.button-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.hero-overview {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.96), rgba(9, 13, 18, 0.92));
  margin-bottom: 0;
}

.overview-list {
  display: grid;
  gap: 0;
}

.overview-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  padding: 9px 26px 9px 7px;
  color: inherit;
  text-decoration: none;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.overview-item::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #cad1d9;
  font-size: 1.5rem;
  line-height: 1;
}

.overview-item:hover,
.overview-item:focus-visible {
  background: rgba(255, 255, 255, 0.02);
}

.overview-item:last-child {
  border-bottom: 0;
}

.overview-icon,
.service-icon,
.metric-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #ff954e;
  font-family: var(--font-display);
  font-weight: 700;
  border: 1px solid rgba(255, 106, 0, 0.38);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.overview-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-copy strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.2;
}

.overview-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.82rem;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin-top: 10px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.metric-card {
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.metric-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
}

.metric-card small {
  font-size: 0.74rem;
  line-height: 1.3;
}

.hero .trust-metrics {
  margin-left: 28px;
  margin-right: 18px;
  width: auto;
  margin-bottom: 15px;
}

.brand-band {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
}

.industry-reference-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 449 / 106;
  border-radius: 12px;
  clip-path: inset(0 9px 4px 0);
}

.section {
  padding-top: 88px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading h2,
.about-copy h2,
.contact-card h2,
.quality-panel h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.3rem);
  line-height: 1.04;
}

.about-title-home {
  max-width: none;
  font-size: clamp(1.45rem, 2.2vw, 2.3rem);
  line-height: 1.04;
}

.about-title-home span {
  display: block;
  white-space: nowrap;
}

.service-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-row {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
}

.service-visual {
  display: grid;
  place-items: center;
}

.service-image,
.service-slideshow,
.service-placeholder {
  width: 100%;
  max-width: 420px;
  min-height: 260px;
  aspect-ratio: 21 / 13;
  border-radius: 22px;
}

.service-image {
  object-fit: contain;
  object-position: center;
  max-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(2, 7, 10, 0.24);
}

.service-image-compact {
  max-height: 220px;
}

.service-slideshow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(2, 7, 10, 0.24);
  background: linear-gradient(135deg, rgba(13, 24, 31, 0.96), rgba(22, 37, 46, 0.88));
}

.service-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}

.service-slide.is-active {
  opacity: 1;
}

.service-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(255, 106, 0, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(13, 24, 31, 0.96), rgba(22, 37, 46, 0.88));
}

.service-placeholder strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.service-placeholder span:last-child {
  color: var(--muted);
}

.service-content {
  display: grid;
  align-content: center;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 106, 0, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 149, 78, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(56, 36, 22, 0.8), rgba(15, 26, 33, 0.94));
}

.service-content h3,
.project-card h3 {
  margin: 0 0 14px;
  font-size: 1.58rem;
  line-height: 1.16;
}

.about-panel,
.contact-card,
.quality-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 32px;
  border-radius: 24px;
}

.about-text,
.quality-list,
.contact-form {
  display: grid;
  gap: 16px;
}

.quality-list {
  gap: 6px;
}

.about-text p,
.quality-list p {
  margin: 0;
}

.about-media {
  display: grid;
  place-items: center;
}

.about-media picture {
  display: block;
  width: 100%;
}

.about-media-frame {
  position: relative;
  width: 80%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform: scale(0.98);
  transform-origin: center;
  animation: about-image-float 7s ease-in-out infinite;
}

.about-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(0deg, rgba(4, 7, 10, 0.28), transparent 45%);
}

.about-media-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 15, 19, 0.72);
  backdrop-filter: blur(10px);
}

.about-media-badge span {
  color: #ff954e;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

@keyframes about-image-float {
  0%,
  100% {
    transform: scale(0.98) translateY(0);
  }

  50% {
    transform: scale(0.98) translateY(-6px);
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manufacturing-list {
  display: grid;
  gap: 22px;
}

.manufacturing-visual-placeholder-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #ff954e;
  font-family: var(--font-display);
  font-weight: 700;
  border: 1px solid rgba(255, 106, 0, 0.38);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.manufacturing-placeholder-visual strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.manufacturing-placeholder-visual span:last-child {
  color: var(--muted);
}

.manufacturing-kicker {
  margin: 0;
  color: #ff944d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.manufacturing-machine-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 149, 78, 0.12), transparent 32%),
    rgba(11, 15, 20, 0.9);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.manufacturing-machine-media {
  min-width: 0;
}

.manufacturing-machine-image,
.manufacturing-machine-placeholder {
  width: 100%;
  min-height: 300px;
  aspect-ratio: 5 / 3;
  border-radius: 22px;
}

.manufacturing-machine-image {
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(7, 10, 14, 0.88);
}

.manufacturing-machine-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(255, 106, 0, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(13, 24, 31, 0.96), rgba(22, 37, 46, 0.88));
}

.manufacturing-machine-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
}

.manufacturing-machine-head {
  display: grid;
  gap: 10px;
}

.manufacturing-machine-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  font-family: var(--font-display);
}

.manufacturing-machine-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.manufacturing-machine-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.manufacturing-detail-block {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 149, 78, 0.12), transparent 32%),
    rgba(11, 15, 20, 0.9);
}

.manufacturing-detail-block h4 {
  margin: 0 0 12px;
  color: #ff944d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.manufacturing-detail-block ul,
.manufacturing-detail-block dl {
  margin: 0;
  padding: 0;
}

.manufacturing-detail-block ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.manufacturing-detail-block li {
  position: relative;
  padding-left: 16px;
  color: #d7dde5;
}

.manufacturing-detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff7f1f;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.4);
}

.manufacturing-detail-block dl {
  display: grid;
  gap: 12px;
}

.manufacturing-detail-block dl div {
  display: grid;
  gap: 4px;
}

.manufacturing-detail-block dt {
  color: #ffcfad;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.manufacturing-detail-block dd {
  margin: 0;
  color: #f4f7fb;
  overflow-wrap: anywhere;
}

.manufacturing-detail-actions {
  display: flex;
  justify-content: flex-end;
}

.project-card {
  padding: 24px;
  border-radius: 22px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.form-required-note {
  margin: -4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8d98a4;
}

.form-privacy-notice {
  margin: -4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-privacy-notice a,
.footer a,
.legal-footer a {
  color: #f3f5f8;
  text-decoration: none;
  transition: color 180ms ease;
}

.form-privacy-notice a:hover,
.footer a:hover,
.legal-footer a:hover {
  color: var(--accent);
}

.form-status {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.form-status.is-success {
  border-color: rgba(78, 191, 126, 0.35);
  background: rgba(78, 191, 126, 0.12);
}

.form-status.is-error {
  border-color: rgba(255, 106, 0, 0.35);
  background: rgba(255, 106, 0, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  display: grid;
  gap: 22px;
  margin-top: 82px;
  padding: 28px 24px 22px;
  border-radius: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-column,
.legal-footer-column {
  display: grid;
  align-content: start;
  gap: 1px;
}

.footer-column h3,
.legal-footer-column h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

.footer-column p,
.footer-bottom p,
.legal-footer-column p {
  margin: 0;
}

.footer-column p + p,
.legal-footer-column p + p {
  margin-top: 0;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.footer-logo {
  width: auto;
  height: 68px;
  aspect-ratio: 700 / 398;
}

.footer-contact a,
.legal-footer a {
  font-weight: 600;
}

.footer-email {
  word-break: break-word;
}

.footer-privacy-link {
  margin-top: 4px;
}

.footer-privacy-link a {
  color: var(--accent-strong);
  font-weight: 700;
}

.footer-privacy-link a:hover,
.footer-privacy-link a:focus-visible {
  color: #ffb37a;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-legal-links a {
  font-weight: 700;
}

.footer-legal-links a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.legal-footer {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  width: min(calc(100% - 32px), 960px);
  margin: 0 auto;
  padding: 36px 0 96px;
}

.legal-card {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-card h1,
.legal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-card h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.legal-card h2 {
  font-size: 1.2rem;
  color: #fff;
}

.legal-card p,
.legal-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-responsible-logo {
  display: block;
  width: auto;
  height: 74px;
  aspect-ratio: 700 / 398;
  margin-bottom: 4px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.legal-back:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay-0 {
  transition-delay: 0ms;
}

.reveal-delay-1 {
  transition-delay: 70ms;
}

.reveal-delay-2 {
  transition-delay: 140ms;
}

.reveal-delay-3 {
  transition-delay: 210ms;
}

.reveal-delay-4 {
  transition-delay: 280ms;
}

.reveal-delay-5 {
  transition-delay: 320ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero-stage,
  .brand-band,
  .about-panel,
  .contact-card,
  .quality-panel,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 740px;
  }
}

@media (max-width: 1180px) {
  .manufacturing-machine-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .trust-metrics,
  .service-stack {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .legal-footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1120px) and (min-width: 600px) {
  .topbar {
    flex-wrap: wrap;
    padding-bottom: 12px;
  }

  .nav-shell {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 599.98px) {
  #start,
  #leistungen,
  #fertigung,
  #ueber-uns,
  #impressum,
  #kontakt {
    scroll-margin-top: 96px;
  }

  .site-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding-top: 126px;
    padding-bottom: 90px;
  }

  .brand-logo {
    height: 108px;
    max-width: 100%;
  }

  .hero-stage {
    background:
      linear-gradient(180deg, rgba(4, 7, 10, 0.88) 0%, rgba(4, 7, 10, 0.58) 48%, rgba(4, 7, 10, 0.24) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
      url("optimized-images/hero-bg-mobile.webp") 58% center / cover no-repeat;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 18px), var(--max-width));
    flex-wrap: wrap;
    gap: 12px;
    min-height: 88px;
    padding: 6px 0 10px;
    z-index: 60;
  }

  .nav-shell {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 0;
    position: relative;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 61;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
  }

  .hero-left {
    min-height: 460px;
  }

  .hero-copy {
    padding: 34px 22px 26px;
  }

  .hero h1,
  .section-heading h2,
  .about-copy h2,
  .contact-card h2,
  .quality-panel h2,
  .about-title-home {
    font-size: clamp(1.9rem, 8vw, 2.25rem);
    line-height: 1.08;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-line-wide,
  .hero-line-accent,
  .about-title-home span {
    white-space: normal;
  }

  .hero-text,
  .section-heading p,
  .about-text p,
  .contact-card p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .about-panel {
    gap: 22px;
  }

  .about-media-frame {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .about-media img {
    min-height: 0;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
  }

  .about-media-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-overview,
  .trust-metrics,
  .brand-band,
  .service-row,
  .about-panel,
  .project-card,
  .contact-card,
  .quality-panel,
  .footer,
  .manufacturing-machine-card,
  .legal-card,
  .legal-footer {
    padding: 20px;
  }

  .legal-shell {
    width: min(calc(100% - 16px), 960px);
    padding: 18px 0 72px;
  }

  .legal-card {
    gap: 20px;
    padding: 18px;
  }

  .legal-section {
    gap: 10px;
  }

  .legal-card h1 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
    line-height: 1.08;
  }

  .legal-card h2 {
    font-size: 1.02rem;
    line-height: 1.3;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .legal-card ul {
    padding-left: 18px;
  }

  .service-image,
  .service-slideshow,
  .service-placeholder,
  .about-media img {
    min-height: 220px;
  }

  .manufacturing-machine-card,
  .manufacturing-machine-detail-grid {
    grid-template-columns: 1fr;
  }

  .legal-responsible-logo {
    height: 60px;
  }
}
