@charset "UTF-8";
:root {
  --header-height: 88px;
  --header-height-mobile: 76px;
  --ink: #061b33;
  --ink-2: #16304d;
  --steel: #52677d;
  --muted: #6c7c8e;
  --line: #dce6f1;
  --line-strong: #c6d5e4;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --soft-2: #eef4f9;
  --blue: #0073bb;
  --blue-2: #0099cf;
  --navy: #001f3f;
  --green: #2f8d73;
  --shadow: 0 18px 44px rgba(4, 29, 55, 0.12);
  --shadow-soft: 0 10px 28px rgba(4, 29, 55, 0.08);
  --radius: 8px;
  --max: 1180px;
  --hero-overlay-page: linear-gradient(90deg, rgba(248,252,255,0.94) 0%, rgba(239,247,253,0.82) 34%, rgba(144,184,214,0.24) 58%, rgba(5,43,82,0.18) 100%);
  --hero-overlay-page-mobile: linear-gradient(90deg, rgba(248,252,255,0.94) 0%, rgba(239,247,253,0.84) 62%, rgba(11,58,96,0.22) 100%);
  --hero-overlay-home: linear-gradient(90deg, rgba(0,18,38,0.94) 0%, rgba(0,24,50,0.84) 38%, rgba(0,44,83,0.38) 63%, rgba(0,62,108,0.12) 100%);
  --hero-overlay-home-mobile: linear-gradient(90deg, rgba(0,18,38,0.94) 0%, rgba(0,24,50,0.87) 64%, rgba(0,44,83,0.52) 100%);
  --hero-overlay-reference: linear-gradient(90deg, rgba(248,252,255,0.80) 0%, rgba(232,243,251,0.58) 32%, rgba(112,157,190,0.12) 50%, rgba(5,43,82,0.05) 66%, rgba(5,43,82,0.00) 100%);
  --hero-overlay-request: linear-gradient(90deg, rgba(248,252,255,0.96) 0%, rgba(239,247,253,0.86) 34%, rgba(142,184,214,0.24) 58%, rgba(5,43,82,0.08) 100%);
  --hero-overlay-metal: linear-gradient(90deg, rgba(248,252,255,0.90) 0%, rgba(232,243,251,0.74) 34%, rgba(106,154,188,0.20) 58%, rgba(5,43,82,0.14) 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  top: calc(var(--header-height) + 12px);
  opacity: 1;
  pointer-events: auto;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  overflow: visible;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 26px);
}
.brand { display: inline-flex; align-items: center; min-width: 220px; height: 100%; padding: 12px 0; }
.brand img { width: 246px; max-height: calc(var(--header-height) - 24px); height: auto; display: block; object-fit: contain; }
.nav-wrap { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.nav-links a:hover, .nav-links a.is-active { background: var(--soft); color: var(--blue); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), #0063a8); color: white; box-shadow: 0 10px 22px rgba(0, 115, 187, 0.22); }
.btn-primary:hover { color: white; box-shadow: 0 14px 28px rgba(0, 115, 187, 0.28); }
.btn-secondary { background: white; color: var(--ink); border-color: #97abc2; }
.btn-secondary:hover { background: var(--soft); color: var(--ink); }
.btn-light { background: white; color: var(--blue); }
.btn-link { color: var(--blue); font-weight: 800; display: inline-block; }
.hero {
  --hero-image: none;
  --hero-overlay: var(--hero-overlay-page);
  --hero-position: center;
  position: relative;
  overflow: hidden;
  background-image: var(--hero-overlay), var(--hero-image);
  background-position: var(--hero-position);
  background-size: cover;
  border-bottom: 1px solid var(--line);
}
.home-hero { min-height: clamp(430px, 42vw, 560px); display: flex; align-items: center; }
.home-hero-photo {
  --hero-image: url('../img/original/Haefner_Produktion_286.jpg');
  --hero-overlay: var(--hero-overlay-home);
  --hero-position: center, 58% 45%;
  background-size: cover, 108% auto;
}
.home-hero-photo .hero-content { max-width: 760px; padding: 46px 0; }
.home-hero-photo h1 { color: white; max-width: 760px; font-size: clamp(34px, 3.6vw, 46px); line-height: 1.1; text-wrap: balance; }
.home-hero-photo .lead { color: #e8f1f8; }
.home-hero-photo .kicker { color: #9ed6ff; }
.home-hero-photo .btn-secondary { background: rgba(255,255,255,0.94); color: var(--ink); border-color: rgba(255,255,255,0.86); }
.home-hero-photo .btn-secondary:hover { background: white; color: var(--ink); }
.page-hero { min-height: 430px; display: flex; align-items: center; }
.cnc-fraesen-hero {
  --hero-overlay: linear-gradient(90deg, rgba(248,252,255,0.18) 0%, rgba(238,247,253,0.14) 34%, rgba(238,247,253,0.22) 50%, rgba(248,252,255,0.54) 66%, rgba(248,252,255,0.68) 100%);
  --hero-position: center, 38% center;
}
.cnc-fraesen-hero .hero-content {
  max-width: 630px;
  margin-left: auto;
  padding-right: 0;
  transform: none;
}
.cnc-fraesen-hero h1,
.cnc-fraesen-hero p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.cnc-fraesen-hero h1 { text-wrap: balance; }
.maschinenpark-hero {
  --hero-overlay: linear-gradient(90deg, rgba(248,252,255,0.10) 0%, rgba(238,247,253,0.08) 34%, rgba(238,247,253,0.14) 50%, rgba(248,252,255,0.50) 66%, rgba(248,252,255,0.66) 100%);
}
.maschinenpark-hero .hero-content {
  max-width: 630px;
  margin-left: auto;
  padding-right: 0;
  transform: none;
}
.maschinenpark-hero h1,
.maschinenpark-hero p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.maschinenpark-hero h1 { text-wrap: balance; }
.cnc-drehen-hero {
  --hero-overlay: linear-gradient(90deg, rgba(248,252,255,0.18) 0%, rgba(238,247,253,0.14) 34%, rgba(238,247,253,0.22) 50%, rgba(248,252,255,0.54) 66%, rgba(248,252,255,0.68) 100%);
}
.cnc-drehen-hero .hero-content {
  max-width: 630px;
  margin-left: auto;
  padding-right: 0;
  transform: none;
}
.cnc-drehen-hero h1,
.cnc-drehen-hero p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.cnc-drehen-hero h1 { text-wrap: balance; }
@media (min-width: 1100px) {
  .cnc-fraesen-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 48%, rgba(248,252,255,0.42) 60%, rgba(248,252,255,0.84) 76%, rgba(248,252,255,0.95) 100%);
  }
  .cnc-fraesen-hero .container {
    position: static;
  }
  .cnc-fraesen-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 58%;
    right: auto;
    z-index: 2;
    width: min(520px, 34vw);
    max-width: 520px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
  }
  .maschinenpark-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 55%, rgba(248,252,255,0.25) 63%, rgba(248,252,255,0.72) 75%, rgba(248,252,255,0.94) 100%);
  }
  .maschinenpark-hero .container {
    position: static;
  }
  .maschinenpark-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 58%;
    right: auto;
    z-index: 2;
    width: min(680px, 42vw);
    max-width: 680px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
  }
  .maschinenpark-hero .chip-row {
    flex-wrap: nowrap;
    column-gap: 8px;
    row-gap: 0;
    align-items: flex-start;
  }
  .maschinenpark-hero .chip-row .chip {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .cnc-drehen-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 48%, rgba(248,252,255,0.42) 60%, rgba(248,252,255,0.84) 76%, rgba(248,252,255,0.95) 100%);
  }
  .cnc-drehen-hero .container {
    position: static;
  }
  .cnc-drehen-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 58%;
    right: auto;
    z-index: 2;
    width: min(520px, 34vw);
    max-width: 520px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
  }
}
.hero-content { max-width: 720px; padding: 54px 0; }
.nuten-hero {
  --hero-image: none;
  --nuten-hero-bg:
    linear-gradient(90deg, rgba(248,252,255,0.96) 0%, rgba(239,247,253,0.88) 52%, rgba(227,240,249,0.60) 100%);
  background-color: #f4f8fc;
  background-image: var(--nuten-hero-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Nutenstoßen-Hero: für den Variantenvergleich in nutenstossen.html zwischen hero-variant-a/b/c wechseln. */
.nuten-hero.hero-variant-a {
  --nuten-hero-bg:
    radial-gradient(circle at 76% 50%, rgba(255,255,255,0.88) 0%, rgba(229,241,249,0.58) 30%, rgba(229,241,249,0.00) 54%),
    linear-gradient(135deg, rgba(255,255,255,0.46) 0 1px, transparent 1px 100%),
    linear-gradient(115deg, #fbfdff 0%, #edf5fb 48%, #dcebf4 100%);
  background-size: cover, 28px 28px, cover;
  background-position: center, center, center;
}
.nuten-hero.hero-variant-b {
  --nuten-hero-bg:
    radial-gradient(ellipse at 78% 50%, rgba(255,255,255,0.82) 0%, rgba(220,236,247,0.44) 32%, rgba(220,236,247,0.00) 62%),
    radial-gradient(ellipse at 84% 50%, transparent 0 37%, rgba(0,64,112,0.055) 38%, transparent 39% 100%),
    radial-gradient(ellipse at 84% 50%, transparent 0 54%, rgba(0,64,112,0.040) 55%, transparent 56% 100%),
    linear-gradient(112deg, #fbfdff 0%, #f0f6fb 54%, #dbeaf4 100%);
  background-size: cover, min(52vw, 680px) min(52vw, 680px), min(72vw, 920px) min(72vw, 920px), cover;
  background-position: center, right 7% center, right -2% center, center;
}
.nuten-hero.hero-variant-c {
  --nuten-hero-bg:
    radial-gradient(ellipse at 76% 76%, rgba(0,34,68,0.12) 0%, rgba(0,34,68,0.06) 24%, rgba(0,34,68,0.00) 52%),
    radial-gradient(circle at 76% 48%, rgba(255,255,255,0.72) 0%, rgba(235,245,251,0.36) 34%, rgba(235,245,251,0.00) 62%),
    linear-gradient(118deg, #fbfdff 0%, #f3f8fc 52%, #e1edf5 100%);
  background-size: cover;
  background-position: center;
}
.nuten-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}
.nuten-hero-media {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 34px 0 34px 18px;
}
.nuten-hero-image {
  width: auto;
  height: auto;
  max-width: min(74%, 460px);
  max-height: 300px;
  object-fit: contain;
}
.example-hero {
  --hero-image: url('../img/musterteile/gruppenbild-hero-sharp.png');
  --hero-overlay: linear-gradient(90deg, rgba(249,252,255,0.98) 0%, rgba(244,249,253,0.94) 34%, rgba(238,246,251,0.66) 52%, rgba(238,246,251,0.10) 70%, rgba(238,246,251,0.00) 100%);
  --hero-position: center center, right center;
  min-height: clamp(370px, 31vw, 430px);
  background-color: #f4f8fc;
  background-size: cover, min(100%, 1672px) auto;
  background-repeat: no-repeat;
}
.example-hero-layout {
  display: block;
}
.example-hero .hero-content {
  max-width: 700px;
  padding: 58px 0;
}
.kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}
.page-hero h1 { font-size: clamp(34px, 4.2vw, 54px); }
.lead {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--ink-2);
  font-size: 19px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #9fb2c8;
  border-radius: 6px;
  background: rgba(255,255,255,0.78);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
}
.trust-strip {
  background: white;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trust-item {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}
.section { padding: 74px 0; }
.section-tight { padding: 52px 0; }
.section-alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-head.center { display: block; text-align: center; max-width: 760px; margin: 0 auto 34px; }
h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}
h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}
.section-head p, .section-intro { color: var(--steel); max-width: 710px; margin: 12px 0 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.application-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; }
.application-grid > .mini-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 100%; }
.application-grid > .mini-card:nth-child(4) { grid-column: 2 / span 2; }
.application-grid > .mini-card:nth-child(5) { grid-column: 4 / span 2; }
.application-grid .mini-card h3, .application-grid .mini-card p { overflow-wrap: normal; word-break: normal; }
.application-grid .mini-card h3 { hyphens: manual; }
.application-grid .mini-card p:last-child { margin-top: auto !important; padding-top: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3, .card p { overflow-wrap: normal; word-break: normal; }
.card-body .btn-link { margin-top: auto; padding-top: 16px; }
.card p { color: var(--steel); margin: 0; }
.card h3 + p { margin-top: 8px; }
.card-media { aspect-ratio: 16 / 9; background: var(--soft-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img.card-contain-visual {
  object-fit: contain;
  padding: 14px;
  background: linear-gradient(145deg, #f7fbff 0%, #edf5fb 100%);
}
.image-card { min-height: 100%; }
.image-card h3 { min-height: 52px; }
.link-card { display: flex; flex-direction: column; min-height: 100%; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 22px 24px 24px;
  min-height: 150px;
  box-shadow: var(--shadow-soft);
}
.mini-card h3, .example-card h3, .mail-card h3 {
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.25;
}
.mini-card p, .example-card p { margin-top: 0; }
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}
.feature-split.reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  background: var(--soft-2);
}
.feature-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.surface-visual { object-position: center center; }
.part-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-self: stretch;
}
.part-gallery figure {
  margin: 0;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f7fbff 0%, #edf5fb 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
}
.part-gallery img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
}
.part-example-grid .example-card { min-height: 100%; }
.part-example-grid .example-media { aspect-ratio: 1.1 / 1; min-height: 330px; padding: 20px; }
.part-example-grid .example-media img {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.part-example-grid .example-media img.nuten-image-ring {
  max-width: 76%;
  max-height: 300px;
}
.part-example-grid .example-media img.nuten-image-formteil {
  max-width: 66%;
  max-height: 100%;
}
.part-example-grid .example-body { min-height: 178px; }
.feature-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.feature-panel p { color: var(--steel); }
.check-list, .plain-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li, .plain-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.7em;
  width: 14px;
  height: 2px;
  background: var(--blue);
}
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.stat {
  min-width: 168px;
  border-left: 4px solid var(--blue);
  background: var(--soft);
  padding: 14px 16px;
  border-radius: 6px;
}
.stat strong { display: block; color: var(--ink); font-size: 18px; }
.stat span { color: var(--steel); font-size: 14px; }
.process-band {
  background: linear-gradient(135deg, #052644, #073a68);
  color: white;
}
.process-band h2, .process-band h3 { color: white; }
.process-band p { color: #d9e7f4; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.step {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255,255,255,0.06);
}
.step-number {
  display: inline-flex;
  color: #b7d7ee;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example-grid-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.example-grid-five .example-card { grid-column: span 2; }
.example-grid-five .example-card:nth-child(4) { grid-column: 2 / span 2; }
.example-grid-five .example-card:nth-child(5) { grid-column: 4 / span 2; }
.example-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0;
  min-height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.example-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f7fbff 0%, #edf5fb 100%);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
}
.example-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.home-examples-teaser .example-media {
  aspect-ratio: auto;
  height: clamp(270px, 24vw, 320px);
  padding: 28px;
}
.home-examples-teaser .example-media img {
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 90%;
}
.example-body {
  padding: 22px 24px 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.example-card strong { display: block; color: var(--blue); margin-bottom: 8px; font-size: 14px; line-height: 1.3; }
.example-note {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.notice-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: white;
  padding: 26px 30px;
  box-shadow: var(--shadow-soft);
}
.notice-box h2 { font-size: 26px; }
.notice-box p { max-width: 860px; margin: 10px 0 0; color: var(--steel); }
.feature-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding-top: 12px;
}
body[data-page="fertigungsbeispiele"] .example-grid { align-items: stretch; grid-auto-rows: 1fr; }
body[data-page="fertigungsbeispiele"] .example-card { height: 100%; min-height: 0; align-self: stretch; }
body[data-page="fertigungsbeispiele"] .example-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 255px; padding: 14px; }
body[data-page="fertigungsbeispiele"] .example-media img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; }
body[data-page="fertigungsbeispiele"] .example-body { min-height: 245px; flex: 0 0 245px; }
body[data-page="fertigungsbeispiele"] .example-card .feature-line { margin-top: auto; margin-bottom: 0; }
.mini-card .btn { margin-top: 16px; }
.btn-compact { min-height: 40px; padding: 0 15px; font-size: 14px; }
.cta-section {
  background: linear-gradient(120deg, #f7fbff 0%, #ffffff 52%, #eaf4fb 100%);
  border-top: 1px solid var(--line);
}
.cta-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 36px; align-items: start; }
.mail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 28px;
  box-shadow: var(--shadow);
}
.mail-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 900;
  font-size: 18px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--ink); font-weight: 800; font-size: 14px; }
input, textarea {
  width: 100%;
  border: 1px solid #b8c8d9;
  border-radius: 6px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
}
textarea { min-height: 128px; resize: vertical; }
.input-note { color: var(--muted); font-size: 13px; margin: 10px 0 18px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.small-note { color: var(--muted); font-size: 13px; }
.subnav {
  background: white;
  border-bottom: 1px solid var(--line);
}
.subnav-inner { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; }
.subnav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 800; color: var(--ink-2); font-size: 13px; background: var(--soft); }
.subnav a:hover { border-color: var(--blue); color: var(--blue); }
.legal-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 34px; align-items: start; }
.legal-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.legal-box + .legal-box { margin-top: 18px; }
.legal-data {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.legal-data p {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-data p:last-child { border-bottom: 0; }
.legal-data strong { color: var(--ink); }
.legal-data span { color: var(--steel); }
.legal-data.compact { margin-top: 18px; }
.missing-info {
  color: #6d7885;
  font-style: italic;
}
.site-footer {
  background: linear-gradient(135deg, #001b36, #032d55);
  color: white;
  padding: 42px 0 26px;
}
.footer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.footer-info-card {
  max-width: 640px;
  background: white;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  padding: 26px 28px 28px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}
.footer-info-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.footer-info-logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-info-card p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-top: 8px;
}
.footer-links { display: grid; gap: 7px; margin-top: 12px; }
.site-footer a, .footer-meta { color: #d9e7f4; }
.site-footer a:hover { color: white; }
.site-footer h3 { color: white; font-size: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #d9e7f4;
}
.error-page .page-hero { min-height: 540px; }
@media (max-width: 1220px) {
  .header-cta { display: none; }
}
@media (max-width: 1040px) {
  .brand img { width: 220px; }
  .nav-links a { padding: 0 8px; font-size: 13px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-grid > .mini-card { grid-column: auto; }
  .application-grid > .mini-card:nth-child(4),
  .application-grid > .mini-card:nth-child(5) { grid-column: auto; }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="fertigungsbeispiele"] .example-grid { align-items: start; grid-auto-rows: auto; }
  body[data-page="fertigungsbeispiele"] .example-card { height: auto; align-self: start; }
  body[data-page="fertigungsbeispiele"] .example-media { aspect-ratio: 4 / 3; flex: 0 0 auto; min-height: 0; padding: 18px; }
  body[data-page="fertigungsbeispiele"] .example-media img { max-height: none; }
  body[data-page="fertigungsbeispiele"] .example-body { min-height: 0; flex: 0 0 auto; }
  body[data-page="fertigungsbeispiele"] .example-card .feature-line { margin-top: 14px; }
  .example-grid-five .example-card,
  .example-grid-five .example-card:nth-child(4),
  .example-grid-five .example-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 860px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { height: var(--header-height-mobile); }
  .header-inner { height: var(--header-height-mobile); }
  .brand { min-width: 170px; height: 100%; padding: 11px 0; }
  .brand img { width: 184px; max-height: calc(var(--header-height-mobile) - 22px); }
  .nav-toggle { display: inline-flex; }
  .nav-wrap { position: relative; }
  .nav-links {
    position: absolute;
    right: 0;
    top: 54px;
    width: min(320px, calc(100vw - 28px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 44px; }
  .header-cta { display: none; }
  .home-hero { min-height: clamp(500px, 122vw, 620px); }
  .page-hero { min-height: 380px; }
  .hero { --hero-overlay: var(--hero-overlay-page-mobile); }
  .cnc-fraesen-hero {
    --hero-overlay: var(--hero-overlay-page-mobile);
    --hero-position: center, 48% center;
  }
  .cnc-fraesen-hero .hero-content {
    max-width: 640px;
    margin-left: 0;
    padding-right: 0;
    transform: none;
  }
  .cnc-fraesen-hero h1,
  .cnc-fraesen-hero p {
    overflow-wrap: anywhere;
  }
  .maschinenpark-hero {
    --hero-overlay: var(--hero-overlay-page-mobile);
  }
  .maschinenpark-hero .hero-content {
    max-width: 640px;
    margin-left: 0;
    padding-right: 0;
    transform: none;
  }
  .maschinenpark-hero h1,
  .maschinenpark-hero p {
    overflow-wrap: anywhere;
  }
  .cnc-drehen-hero {
    --hero-overlay: var(--hero-overlay-page-mobile);
  }
  .cnc-drehen-hero .hero-content {
    max-width: 640px;
    margin-left: 0;
    padding-right: 0;
    transform: none;
  }
  .cnc-drehen-hero h1,
  .cnc-drehen-hero p {
    overflow-wrap: anywhere;
  }
  .home-hero-photo { --hero-overlay: var(--hero-overlay-home-mobile); --hero-position: center, 58% 45%; background-size: cover; }
  .home-hero-photo .hero-content { padding: 46px 0; }
  .hero-content { padding: 54px 0; }
  .nuten-hero-layout { grid-template-columns: 1fr; gap: 12px; }
  .nuten-hero .hero-content { padding-bottom: 22px; }
  .nuten-hero-media { min-height: 230px; padding: 0 0 42px; }
  .nuten-hero-image { max-width: min(72%, 390px); max-height: 230px; }
  .part-example-grid .example-media img.nuten-image-ring { max-width: 76%; max-height: 292px; }
  .part-example-grid .example-media img.nuten-image-formteil { max-width: 64%; max-height: 308px; }
  .example-hero {
    --hero-overlay: linear-gradient(90deg, rgba(249,252,255,0.98) 0%, rgba(244,249,253,0.95) 58%, rgba(238,246,251,0.55) 100%);
    --hero-position: center center, 62% center;
    background-size: cover, auto 100%;
    min-height: 380px;
  }
  .example-hero .hero-content {
    max-width: 640px;
    padding: 50px 0;
  }
  h1 { font-size: clamp(32px, 9vw, 46px); }
  .home-hero-photo h1 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.14; }
  .lead { font-size: 17px; }
  .trust-grid, .grid-3, .grid-2, .process-steps, .cta-grid, .feature-split, .feature-split.reverse, .legal-layout, .footer-grid { grid-template-columns: 1fr; }
  .part-gallery { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr; gap: 28px; }
  .footer-info-card { max-width: 100%; padding: 24px; }
  .trust-item { min-height: 62px; border-bottom: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .section-head { display: block; }
  .feature-panel { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .legal-data p { grid-template-columns: 1fr; gap: 4px; }
  .example-grid { grid-template-columns: 1fr; }
  .example-grid-five .example-card,
  .example-grid-five .example-card:nth-child(4),
  .example-grid-five .example-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) {
  .brand img { width: 170px; }
  .btn { width: 100%; white-space: normal; text-align: center; }
  .hero-actions { width: 100%; }
  .example-hero {
    --hero-position: center center, 64% center;
  }
  .nuten-hero-media { min-height: 205px; padding-bottom: 36px; }
  .nuten-hero-image { max-width: min(82%, 330px); max-height: 205px; }
  .part-example-grid .example-media img.nuten-image-ring { max-width: 80%; max-height: 260px; }
  .part-example-grid .example-media img.nuten-image-formteil { max-width: 72%; max-height: 280px; }
  .chip { width: 100%; justify-content: center; }
  .grid-4 { grid-template-columns: 1fr; }
  .application-grid { grid-template-columns: 1fr; }
  .application-grid > .mini-card { grid-column: auto; }
  .application-grid > .mini-card:nth-child(4),
  .application-grid > .mini-card:nth-child(5) { grid-column: auto; }
  .card-body, .mini-card, .mail-card, .example-body { padding: 20px; }
  .footer-info-logo img { width: 200px; }
  .footer-bottom { display: grid; }
}
