:root {
  --ink: #111111;
  --steel: #282828;
  --muted: #666666;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --red: #86142f;
  --red-bright: #a01a3a;
  --shell: min(1240px, calc(100vw - 64px));
  --header-h: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: .015em; }
h1 { font-size: clamp(2.8rem, 5.6vw, 5.7rem); font-weight: 500; }
h2 { font-size: clamp(2.15rem, 3.7vw, 3.75rem); font-weight: 500; }
h3 { font-size: 1.45rem; font-weight: 600; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(86px, 9vw, 138px) 0; }
.section-dark { color: white; background: var(--ink); }
.section-muted { background: var(--soft); }
.eyebrow { margin-bottom: 22px; color: var(--red); font-size: .73rem; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow.light { color: #db7890; }
.lead { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; color: white; background: var(--red); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 100; height: var(--header-h); background: #fff; border-bottom: 1px solid #eeeeee; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.brand { display: block; width: min(430px, 40vw); }
.main-nav { display: flex; align-items: center; gap: 31px; font-size: .72rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.main-nav > a, .nav-group > a { position: relative; padding: 43px 0; }
.main-nav > a::after, .nav-group > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 34px; height: 1px; background: var(--red); transition: right .2s ease; }
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after, .nav-group > a:hover::after, .nav-group > a[aria-current="page"]::after { right: 0; }
.nav-cta { padding-inline: 18px !important; color: var(--red); background: transparent; border: 1px solid var(--red); }
.nav-cta::after { display: none; }
.nav-group { position: relative; display: flex; align-items: center; gap: 5px; }
.nav-group > button { padding: 4px; border: 0; background: transparent; cursor: pointer; }
.subnav { position: absolute; left: -22px; top: 87px; width: 220px; display: grid; padding: 12px; visibility: hidden; opacity: 0; transform: translateY(-7px); background: white; border-top: 2px solid var(--red); box-shadow: 0 18px 38px rgba(17,19,23,.12); transition: .2s ease; }
.subnav a { padding: 10px 12px; font-size: .78rem; }
.subnav a:hover { color: var(--red); background: var(--soft); }
.nav-group:hover .subnav, .nav-group:focus-within .subnav, .nav-group.is-open .subnav { visibility: visible; opacity: 1; transform: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { position: relative; min-height: clamp(650px, 72vw, 830px); display: flex; align-items: center; overflow: hidden; color: var(--ink); background: #f5f5f5; }
.hero-media { position: absolute; inset: 0; background: url("/assets/zahnrad-fertigung.webp") center 48% / cover no-repeat; filter: grayscale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.38), rgba(255,255,255,.08)), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.27)); }
.hero-stage { position: relative; z-index: 2; display: flex; justify-content: center; padding: 104px 0; }
.hero-card { width: min(720px, 82vw); padding: clamp(42px, 6vw, 76px); text-align: center; background: rgba(255,255,255,.96); border: 1px solid rgba(17,17,17,.13); box-shadow: 0 24px 70px rgba(0,0,0,.13); }
.hero-card::before { content: ""; display: block; width: 74px; height: 2px; margin: 0 auto 34px; background: var(--red); }
.hero-card h1 { margin-bottom: 25px; font-size: clamp(2.75rem, 5.3vw, 5.15rem); letter-spacing: .025em; }
.hero-card > p:not(.eyebrow) { max-width: 580px; margin: 0 auto 32px; color: var(--muted); font-size: clamp(1.04rem, 1.45vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.facts-band { background: #fff; border-bottom: 1px solid var(--line); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); color: var(--ink); }
.hero-facts div { padding: 27px 30px; text-align: center; border-left: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 1px solid var(--line); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--red); font-size: 1.1rem; font-weight: 600; letter-spacing: .08em; }
.hero-facts span { color: var(--muted); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid transparent; font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: .2s ease; cursor: pointer; }
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.button-ghost { color: var(--ink); border-color: rgba(17,17,17,.35); }
.button-ghost:hover { border-color: var(--ink); background: rgba(17,17,17,.04); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { color: white; background: var(--ink); }
.button-white { color: var(--red); background: white; }
.button-white:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--red); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.light-link { color: white; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 130px); }
.split-intro h2 { margin-bottom: 0; }
.lead-stack { max-width: 680px; }
.intro-layout { grid-template-columns: 1.02fr .98fr; }
.intro-image { aspect-ratio: 4 / 3; overflow: visible; }
.intro-image img { position: relative; z-index: 1; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.section-heading h2 { max-width: 760px; margin: 0; }
.section-heading.compact { align-items: start; }
.section-heading.compact > p { max-width: 420px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.23); border-left: 1px solid rgba(255,255,255,.23); }
.service-card { min-height: 355px; display: flex; flex-direction: column; padding: 40px; border-right: 1px solid rgba(255,255,255,.23); border-bottom: 1px solid rgba(255,255,255,.23); transition: .25s ease; }
.service-card:hover { background: var(--red); transform: translateY(-4px); }
.service-no { margin-bottom: 70px; color: #dc7890; font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.service-card:hover .service-no { color: white; }
.service-card h3 { font-size: 1.85rem; letter-spacing: .04em; }
.service-card p { color: rgba(255,255,255,.68); }
.card-link { margin-top: auto; font-size: .8rem; font-weight: 800; letter-spacing: .05em; }

.media-split { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(54px, 9vw, 130px); }
.media-split.reverse { grid-template-columns: .92fr 1.08fr; }
.media-frame { position: relative; overflow: hidden; background: #dfe2e6; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.accent-frame { overflow: visible; }
.media-frame.accent-frame img { position: relative; z-index: 1; }
.accent-frame::after { content: ""; position: absolute; z-index: 0; inset: 22px -22px -22px 22px; border: 2px solid var(--red); pointer-events: none; }
.portrait-frame { aspect-ratio: 4 / 5; }
.media-copy p:not(.eyebrow) { color: var(--muted); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 25px; margin: 26px 0 34px; padding: 0; list-style: none; }
.check-list li::before { content: "—"; margin-right: 8px; color: var(--red); font-weight: 800; }

.page-hero { position: relative; padding: clamp(105px, 12vw, 170px) 0; color: var(--ink); background: #f7f7f7; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: clamp(6px, 1vw, 14px); background: var(--red); }
.page-hero .shell { max-width: 1180px; }
.page-hero h1 { max-width: 1000px; margin-bottom: 30px; font-size: clamp(3rem, 5.6vw, 5.65rem); }
.page-hero .shell > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.page-hero .eyebrow.light { color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.product-card { min-height: 255px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.product-card:hover { background: var(--soft); transform: translateY(-3px); }
.product-card:nth-child(4n) { border-right: 0; }
.product-card:nth-last-child(-n+4) { border-bottom: 0; }
.tooth-mark { width: 32px; height: 32px; margin-bottom: 44px; background: repeating-linear-gradient(135deg, var(--red) 0 6px, transparent 6px 10px); }
.product-card h3 { margin-bottom: 18px; }
.product-card p { margin-bottom: 4px; font-weight: 750; }
.product-card span { color: var(--muted); font-size: .92rem; }

.capability-list { border-top: 1px solid var(--line); }
.capability-row { display: grid; grid-template-columns: 70px 1fr 60px; align-items: center; gap: 32px; padding: 42px 10px; border-bottom: 1px solid var(--line); transition: .2s ease; }
.capability-row:hover { padding-inline: 26px; background: var(--soft); }
.capability-no { color: var(--red); font-weight: 800; }
.capability-row h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.capability-row p { max-width: 730px; margin-bottom: 15px; color: var(--muted); }
.capability-row small { font-size: .8rem; font-weight: 750; letter-spacing: .04em; }
.capability-arrow { justify-self: end; font-size: 2rem; }
.process { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.process-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.process-steps li { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-steps li > span { color: #d65c78; font-size: .78rem; font-weight: 800; }
.process-steps h3 { margin-bottom: 8px; }
.process-steps p { margin: 0; color: rgba(255,255,255,.64); }

.service-hero { padding: clamp(86px, 9vw, 126px) 0; color: var(--ink); background: #f7f7f7; border-bottom: 1px solid var(--line); }
.service-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; }
.service-hero h1 { margin-bottom: 27px; font-size: clamp(3rem, 5.3vw, 5.35rem); }
.service-hero p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.18rem; }
.service-image { position: relative; }
.service-image::before { content: ""; position: absolute; inset: -20px 20px 20px -20px; border: 2px solid var(--red); }
.service-image img { position: relative; aspect-ratio: 4 / 3; object-fit: cover; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 54px; color: #838383; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--red); }
.specs-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.specs-layout > div > p:last-child { max-width: 470px; color: var(--muted); }
.spec-table { margin: 0; border-top: 2px solid var(--ink); }
.spec-table > div { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-weight: 800; }
.spec-table dd { margin: 0; color: var(--muted); }
.narrow-copy { max-width: 850px; margin-left: max(calc((100vw - 1180px) / 2), 24px); margin-right: auto; }

.history-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 110px; }
.history-sticky { align-self: start; position: sticky; top: 120px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 95px 1fr; gap: 28px; padding: 0 0 46px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 66px; top: 27px; bottom: 0; width: 1px; background: var(--line); }
.timeline li > span { color: var(--red); font-weight: 850; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 140px); }
.contact-list { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-list > * { display: grid; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: .77rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.contact-form { padding: clamp(28px, 5vw, 58px); background: var(--soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 7px; margin-bottom: 18px; font-size: .82rem; font-weight: 750; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #c8ccd2; border-radius: 0; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(142,21,49,.12); }
.contact-form [aria-invalid="true"] { border-color: #b00020 !important; }
.privacy-check { grid-template-columns: 22px 1fr !important; align-items: start; font-weight: 500 !important; }
.privacy-check input { margin-top: 4px; accent-color: var(--red); }
.privacy-check a { color: var(--red); text-decoration: underline; }
.hp-field { position: absolute; left: -10000px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.form-status { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid; font-weight: 700; }
.form-status-gesendet { color: #164d2b; background: #e7f6ec; border-color: #2f8250; }
.form-status-fehler { color: #721426; background: #fbecef; border-color: var(--red); }

.location-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(60px, 9vw, 120px); align-items: center; }
.map-panel { min-height: 500px; position: relative; display: grid; place-items: center; overflow: hidden; color: white; background: #21252c; }
.map-grid { position: absolute; inset: -50px; opacity: .27; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 54px 54px; transform: rotate(12deg) scale(1.15); }
.map-marker { position: relative; z-index: 2; width: 74px; height: 74px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; background: var(--red); transform: rotate(45deg); }
.map-marker span { transform: rotate(-45deg); }
.map-address { position: absolute; left: 28px; bottom: 28px; display: grid; z-index: 2; }
.map-address span { color: rgba(255,255,255,.65); }
.location-copy address { margin: 28px 0; font-size: 1.25rem; font-style: normal; }
.location-copy > p:not(.eyebrow) { color: var(--muted); }
.mini-contact { display: grid; gap: 4px; margin-top: 28px; font-weight: 750; }

.cta { padding: 72px 0; color: white; background: var(--red); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta h2 { max-width: 760px; margin-bottom: 15px; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.75); }
.cta-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.cta-phone { display: grid; }
.cta-phone span { color: rgba(255,255,255,.68); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.legal-hero { padding-block: 70px; }
.legal-hero h1 { margin: 0; }
.legal-copy { max-width: 850px; }
.legal-copy h2 { margin-top: 42px; font-size: 1.45rem; letter-spacing: -.02em; }
.legal-copy a { color: var(--red); text-decoration: underline; }

.site-footer { padding-top: 74px; color: rgba(255,255,255,.7); background: #111111; border-top: 7px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 60px; padding-bottom: 60px; }
.footer-grid h2 { margin-bottom: 18px; color: white; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: white; }
.footer-brand img { width: min(350px, 100%); filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 20px; color: rgba(255,255,255,.45); }
.footer-grid address { margin-top: 8px; font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; }
.footer-bottom div { display: flex; gap: 24px; }

@media (max-width: 1050px) {
  :root { --header-h: 74px; }
  .brand { width: min(360px, 55vw); }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; display: none; align-items: stretch; padding: 28px 24px 50px; overflow-y: auto; background: white; }
  .main-nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .main-nav > a, .nav-group > a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; padding: 15px 18px !important; text-align: center; }
  .nav-group { display: grid; grid-template-columns: 1fr 48px; }
  .nav-group > button { height: 48px; }
  .subnav { position: static; grid-column: 1 / -1; width: auto; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border-top: 0; border-left: 3px solid var(--red); }
  .nav-group.is-open .subnav { display: grid; }
  .service-hero-grid, .media-split, .media-split.reverse, .specs-layout, .contact-layout, .location-layout { gap: 54px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .product-card:nth-child(2n) { border-right: 0; }
  .product-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .product-card:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1180px); }
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .section { padding: 72px 0; }
  .hero { min-height: 660px; }
  .hero-media { background-position: 61% center; }
  .hero-shade { background: rgba(255,255,255,.22); }
  .hero-stage { padding: 70px 0; }
  .hero-card { width: min(100%, 600px); padding: 42px 25px; }
  .hero-card h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div:last-child { padding: 17px 22px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .hero-facts div:first-child { border-top: 0; }
  .hero-facts strong { font-size: 1rem; }
  .split, .media-split, .media-split.reverse, .process, .service-hero-grid, .specs-layout, .history-layout, .contact-layout, .location-layout { grid-template-columns: 1fr; }
  .split, .media-split, .media-split.reverse, .process, .service-hero-grid, .specs-layout, .history-layout, .contact-layout, .location-layout { gap: 44px; }
  .section-heading, .cta-inner { align-items: flex-start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; }
  .service-no { margin-bottom: 35px; }
  .check-list { grid-template-columns: 1fr; }
  .capability-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 34px 0; }
  .capability-arrow { display: none; }
  .service-hero { padding: 66px 0; }
  .service-hero-grid > div:first-child { display: contents; }
  .breadcrumbs { order: -2; margin-bottom: 0; }
  .service-hero .eyebrow { order: -1; margin-bottom: 0; }
  .service-image { margin-top: 10px; }
  .spec-table > div { grid-template-columns: 1fr; gap: 4px; }
  .history-sticky { position: static; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .map-panel { min-height: 390px; }
  .cta-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .cta-phone { padding-left: 3px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .brand { width: min(295px, 75vw); }
  .button { width: 100%; }
  .hero-actions { display: grid; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:nth-child(2n), .product-card:nth-child(4n), .product-card:nth-last-child(-n+4), .product-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
