@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #111820;
  --ink-soft: #26323d;
  --paper: #f4f6f7;
  --white: #ffffff;
  --muted: #66727d;
  --line: #d8dee2;
  --blue: #0070ac;
  --green: #009c41;
  --max: 1220px;
  --shadow: 0 24px 70px rgba(13, 24, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 3px;
  background: var(--green);
  content: "";
}

.display {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.7;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(17, 24, 32, 0.1);
  background: var(--white);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  flex: 0 1 255px;
}

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

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

.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 13px 11px;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - 88px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 16, 23, 0.95) 0%, rgba(9, 16, 23, 0.72) 47%, rgba(9, 16, 23, 0.15) 100%),
    linear-gradient(0deg, rgba(9, 16, 23, 0.55), transparent 40%),
    url("../images/cnc-drehen.jpg") center / cover;
  content: "";
  transform: scale(1.01);
}

.hero::after {
  position: absolute;
  top: 0;
  right: 8%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 140px 0 rgba(255, 255, 255, 0.08), -140px 0 rgba(255, 255, 255, 0.08);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100svh - 88px);
  align-content: center;
  padding-block: 90px 130px;
}

.hero .eyebrow {
  color: #86d8ff;
}

.hero .display {
  max-width: 940px;
}

.hero .display span {
  color: var(--green);
}

.hero-copy {
  max-width: 630px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 21px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: 180ms ease;
}

.button::after {
  content: "→";
  font-size: 1.1rem;
}

.button-primary {
  color: var(--ink);
  background: var(--green);
}

.button-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

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

.hero-strip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hero-strip a {
  display: block;
  padding: 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.hero-strip a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-strip a:hover,
.hero-strip a:focus-visible {
  color: var(--white);
  background: rgba(0, 112, 172, 0.62);
  outline: 0;
}

.section {
  padding-block: clamp(78px, 10vw, 140px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: end;
}

.intro-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.1rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.services {
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.section-head .lead {
  max-width: 420px;
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:nth-child(1),
.service-card:nth-child(2) {
  grid-column: span 6;
}

.service-card:nth-child(n + 3) {
  grid-column: span 4;
}

.service-card:hover {
  z-index: 2;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service-number {
  display: block;
  margin-bottom: 68px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.service-card h3 {
  max-width: 390px;
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: uppercase;
}

.service-card p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.service-card::after {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--ink);
  content: "↗";
  font-size: 1.5rem;
}

.feature {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}

.feature-image {
  min-height: 650px;
  background: url("../images/cnc-ringbearbeitung.jpg") center / cover;
}

.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 8vw, 110px);
}

.feature-content .eyebrow {
  color: #86d8ff;
}

.feature-content .section-title {
  max-width: 620px;
}

.feature-content p {
  max-width: 570px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.process-list {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-item {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-item span {
  color: var(--green);
  font-weight: 600;
}

.process-item strong {
  text-transform: uppercase;
}

.agri-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 80px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 156, 235, 0.96), rgba(0, 96, 154, 0.96)),
    var(--blue);
}

.agri-panel::after {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 460px;
  height: 460px;
  border: 80px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.agri-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: end;
}

.agri-panel .eyebrow {
  color: var(--white);
}

.agri-panel .eyebrow::before {
  background: var(--green);
}

.agri-panel .section-title {
  max-width: 750px;
}

.agri-copy {
  font-size: 1.05rem;
}

.agri-copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.link-list a::after {
  content: "↗";
  font-size: 1.25rem;
}

.link-list a:hover {
  color: var(--green);
}

.references {
  color: var(--white);
  background: #17222c;
}

.references .eyebrow {
  color: #86d8ff;
}

.references .lead {
  color: rgba(255, 255, 255, 0.66);
}

.reference-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.reference-filter {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}

.reference-filter:hover,
.reference-filter.is-active {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.reference-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reference-image {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink);
}

.reference-image[hidden] {
  display: none;
}

.reference-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.75);
  transition: filter 220ms ease, transform 300ms ease;
}

.reference-image:hover img {
  filter: saturate(1);
  transform: scale(1.035);
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(45px, 8vw, 110px);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.contact-block {
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.contact-block small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-block a,
.contact-block address {
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.contact-block a:hover {
  color: var(--blue);
}

.map-hint {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-block-hours {
  grid-column: 1 / -1;
}

.contact-card {
  padding: clamp(30px, 5vw, 54px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 28px;
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-card-list {
  display: grid;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contact-card-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card-list li::before {
  color: var(--blue);
  content: "✓";
  font-weight: 600;
}

.site-footer {
  padding: 52px 0 26px;
  color: rgba(255, 255, 255, 0.7);
  background: #0b1117;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 50px;
  padding-bottom: 45px;
}

.footer-brand {
  max-width: 230px;
  padding: 0;
  background: transparent;
}

.footer-copy {
  max-width: 400px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.subhero {
  position: relative;
  padding: clamp(85px, 12vw, 160px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 15, 22, 0.96), rgba(8, 15, 22, 0.68)),
    url("../images/cnc-drehen.jpg") center / cover;
}

.subhero::after {
  position: absolute;
  right: 7%;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 65px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.subhero .container {
  position: relative;
  z-index: 2;
}

.subhero .eyebrow {
  color: #86d8ff;
}

.subhero .lead {
  color: rgba(255, 255, 255, 0.75);
}

.detail-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 80px 0.8fr 1.2fr;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row > span {
  color: var(--blue);
  font-weight: 600;
}

.detail-row h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.detail-row p {
  margin: 0;
  color: var(--muted);
}

.machine-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 58px;
}

.machine-nav a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.machine-nav a:hover {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.machine-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.machine-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.machine-section-head {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 32px;
  margin-bottom: 28px;
}

.machine-section-head span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.machine-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-left: 20%;
}

.machine-card {
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.machine-card-image {
  width: calc(100% + 52px);
  height: 190px;
  margin: -26px -26px 24px;
  object-fit: cover;
  image-rendering: auto;
}

.machine-card h3 {
  margin: 0 0 15px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.machine-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.machine-card li {
  padding-top: 6px;
  border-top: 1px solid #edf0f2;
}

.machine-card-wide {
  grid-column: 1 / -1;
}

.machine-note {
  margin-top: 42px;
  padding: 20px 24px;
  border-left: 4px solid var(--green);
  color: var(--muted);
  background: var(--paper);
}

.content-narrow {
  width: min(calc(100% - 48px), 850px);
  margin-inline: auto;
}

.prose h2 {
  margin: 50px 0 18px;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 12px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  color: var(--ink-soft);
  background: var(--paper);
}

@media (max-width: 1180px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 88px;
    right: 0;
    left: 0;
    display: none;
    height: calc(100svh - 88px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 30px 24px;
    background: var(--white);
  }

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

  .main-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-cta {
    margin-top: 18px;
    text-align: center;
  }

  .intro-grid,
  .feature-grid,
  .agri-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head .lead {
    margin-top: 22px;
  }

  .service-card:nth-child(n) {
    grid-column: span 6;
  }

  .reference-gallery {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 560px;
  }

  .feature-content {
    padding-inline: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > :first-child {
    grid-column: 1 / -1;
  }

  .detail-row {
    grid-template-columns: 50px 1fr;
  }

  .detail-row p {
    grid-column: 2;
  }

  .machine-grid {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .container,
  .content-narrow {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand {
    flex-basis: 205px;
  }

  .brand img {
    width: 205px;
  }

  .main-nav {
    top: 76px;
    height: calc(100svh - 76px);
  }

  .hero,
  .hero-inner {
    min-height: calc(100svh - 76px);
  }

  .hero-inner {
    padding-block: 76px 190px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(9, 16, 23, 0.95), rgba(9, 16, 23, 0.56)),
      url("../images/cnc-drehen.jpg") 57% center / cover;
  }

  .hero-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip a {
    padding: 10px 8px;
    font-size: 0.62rem;
  }

  .hero-strip a:last-child {
    display: none;
  }

  .service-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .service-card {
    min-height: 260px;
  }

  .service-number {
    margin-bottom: 48px;
  }

  .feature-image {
    min-height: 430px;
  }

  .contact-details,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top > :first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .detail-row {
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }

  .machine-section-head,
  .machine-grid {
    grid-template-columns: 1fr;
  }

  .machine-card-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
