@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #e3232d;
  --red-dark: #ba141d;
  --ink: #111214;
  --muted: #6d7178;
  --line: #dcdde0;
  --paper: #f5f5f3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -70px; padding: 12px 16px; background: white; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: top .2s ease; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(14,16,18,.98);
  color: white;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.site-header > .brand {
  position: absolute;
  top: 0;
  left: clamp(24px, 5vw, 80px);
  z-index: 2;
  width: 149px;
  height: 130px;
  justify-content: center;
  background: white;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}
.header-logo { display: block; width: 108px; height: 120px; object-fit: contain; }
.brand-mark { position: relative; width: 42px; height: 46px; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark::before { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(255,255,255,.72); clip-path: polygon(25% 0,75% 0,100% 22%,100% 78%,75% 100%,25% 100%,0 78%,0 22%); }
.brand-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--red); bottom: 8px; right: 8px; box-shadow: 0 0 14px rgba(227,35,45,.9); }
.brand-name { display: flex; flex-direction: column; font-size: 16px; line-height: 1; font-weight: 800; letter-spacing: .11em; }
.brand-name strong { margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: .38em; color: rgba(255,255,255,.6); }
.site-header nav { grid-column: 2; align-self: stretch; display: flex; gap: 0; padding: 0; border-right: 1px solid rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.1); background: transparent; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.site-header nav a { position: relative; min-width: 110px; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.58); display: flex; align-items: center; justify-content: center; text-align: center; transition: color .25s ease, background .25s ease; }
.site-header nav a:last-child { border-right: 0; }
.site-header nav a::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: center; transition: transform .3s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a.is-current { color: white; background: rgba(255,255,255,.055); outline: none; }
.site-header nav a:hover::before, .site-header nav a:focus-visible::before, .site-header nav a.is-current::before { transform: scaleX(1); }
.header-cta { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 19px; border: 1px solid var(--red); border-radius: 2px; background: var(--red); color: white; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.header-cta-short { display: none; }
.header-cta:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.header-cta svg { width: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 0; background: transparent; color: white; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.site-header.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.mobile-nav-open { overflow: hidden; }

/* Die Startseite bleibt bewusst kompakt. Die ausführlichen Inhalte liegen auf eigenen Seiten. */
.hero { position: relative; min-height: 820px; height: 100vh; max-height: 980px; overflow: hidden; display: flex; align-items: center; background: #131518; color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translateX(17%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #08090b 0%, rgba(8,9,11,.995) 24%, rgba(8,9,11,.96) 34%, rgba(8,9,11,.84) 45%, rgba(8,9,11,.6) 57%, rgba(8,9,11,.3) 70%, rgba(8,9,11,.1) 88%, rgba(8,9,11,.04) 100%), linear-gradient(0deg, rgba(8,9,11,.42), transparent 55%); }
.hero-grid { position: absolute; inset: 0 53% 0 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg,#000,transparent); }
.hero-content { position: relative; z-index: 2; width: min(760px, 52vw); margin-left: clamp(24px, 8vw, 130px); }
.eyebrow, .kicker { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.58); }
.eyebrow span { width: 34px; height: 2px; background: var(--red); }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(58px, 6.4vw, 98px); line-height: .87; letter-spacing: -.058em; font-weight: 800; }
.hero h1 span { display: block; color: var(--red); }
.hero-lead { max-width: 630px; margin: 34px 0 0; color: rgba(255,255,255,.68); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; }
.hero-lead strong { color: white; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 54px; padding: 0 24px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; transition: transform .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { border: 1px solid rgba(255,255,255,.28); color: white; backdrop-filter: blur(12px); }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.process-section { padding: 128px clamp(24px, 6vw, 96px) 0; background: var(--paper); overflow: hidden; }
.kicker { color: var(--red); font-size: clamp(13px, .9vw, 15px); font-weight: 800; }
.services-intro { max-width: 1400px; margin: 0 auto; padding: 24px 42px; display: flex; align-items: center; justify-content: space-between; gap: 36px; background: #15171a; border-bottom: 3px solid var(--red); box-shadow: 0 20px 52px rgba(18,20,22,.1); }
.services-intro h1, .services-intro h2 { margin: 0; color: var(--red); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.2; letter-spacing: .13em; text-transform: uppercase; }
.services-specialization { position: relative; width: min(650px, 55vw); min-width: 520px; margin-left: auto; border-left: 3px solid var(--red); color: white; }
.services-specialization summary { min-height: 52px; padding: 4px 0 4px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; cursor: pointer; list-style: none; }
.services-specialization summary::-webkit-details-marker { display: none; }
.services-specialization summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.services-specialization-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
.services-specialization-label { color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.services-specialization-title { color: white; font-size: 17px; line-height: 1.25; }
.services-specialization-toggle { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); }
.services-specialization-toggle::before, .services-specialization-toggle::after { content: ""; position: absolute; left: 9px; right: 9px; top: 16px; height: 2px; background: var(--red); transition: transform .22s ease; }
.services-specialization-toggle::after { transform: rotate(90deg); }
.services-specialization[open] .services-specialization-toggle::after { transform: rotate(0); }
.services-specialization-body { margin: 10px 0 4px 20px; padding: 17px 18px 18px; border: 1px solid rgba(255,255,255,.13); border-left-color: var(--red); background: #101214; }
.services-specialization-body p { margin: 0 0 12px; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.55; }
.services-specialization-body ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.services-specialization-body li { padding: 6px 8px; border: 1px solid rgba(227,35,45,.4); color: rgba(255,255,255,.84); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.services-specialization-trademark { margin-top: 17px; padding: 15px 16px 14px; border-top: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); }
.services-specialization-trademark strong { display: block; margin-bottom: 7px; color: rgba(255,255,255,.84); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.services-specialization-trademark p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.65; }
.process-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 2px solid #cfd1d3; }
.process-card { position: relative; min-height: 425px; padding: 34px 24px 30px; border-right: 2px solid #cfd1d3; background: transparent; overflow: hidden; display: flex; flex-direction: column; transition: color .35s ease, background .35s ease, transform .35s ease; }
.process-card:first-child { border-left: 2px solid #cfd1d3; }
.process-card::before { content: ""; position: absolute; inset: 100% 0 0; background: #15171a; transition: inset .38s cubic-bezier(.4,0,.2,1); }
.process-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -170px; top: -170px; border: 1px solid rgba(227,35,45,.68); border-radius: 50%; opacity: 0; transform: scale(.24) rotate(-18deg); box-shadow: 0 0 0 34px rgba(227,35,45,.08), 0 0 0 70px rgba(227,35,45,.035); transition: opacity .5s ease, transform .72s cubic-bezier(.18,.8,.24,1); }
.process-card:hover { color: white; box-shadow: inset 0 2px 0 var(--red); }
.process-card:focus-visible { outline: none; box-shadow: inset 0 2px 0 var(--red); }
.process-card:hover::before { inset: 0; }
.process-card:hover::after { opacity: 1; transform: scale(1) rotate(0); }
.process-card > * { position: relative; z-index: 1; }
.process-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.process-number { font-size: 12px; color: var(--red); font-weight: 800; letter-spacing: .15em; }
.process-icon { width: 54px; height: 54px; border: 1px solid #cfd0d2; display: grid; place-items: center; transition: border-color .3s ease, background .3s ease; }
.process-icon svg { width: 25px; height: 25px; }
.robot-arm-icon { overflow: visible; }
.process-card:hover .process-icon { border-color: var(--red); background: var(--red); }
.process-card h2, .process-card h3 { min-height: 50px; margin: 58px 0 16px; max-width: 230px; font-size: 22px; line-height: 1.12; letter-spacing: -.025em; }
.process-card p { margin: 0; max-width: 250px; color: var(--muted); font-size: 15px; line-height: 1.6; transition: color .3s ease; }
.process-card:hover p { color: rgba(255,255,255,.62); }
.process-link { position: absolute; left: 24px; bottom: 28px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-left: 2px solid var(--red); background: rgba(227,35,45,.07); color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; opacity: 1; transition: color .3s ease, background .3s ease, transform .3s ease; }
.process-link svg { width: 14px; }
.process-card:hover .process-link { color: white; background: var(--red); transform: translateX(4px); }

#start, #leistungen, #lohnmessung, #schulungen, #messprogramme, #automatisierung, #aim, #ueber-mich, #kontakt { scroll-margin-top: 92px; }
.detail-section { min-height: 760px; display: grid; grid-template-columns: 1.15fr .85fr; }
.detail-light { background: var(--paper); color: var(--ink); }
.detail-media { position: relative; min-height: 760px; overflow: hidden; background: #d9dadb; }
.detail-media > img { width: 100%; height: 100%; object-fit: cover; }
.service-section { min-height: 760px; }
.service-section .detail-media { min-height: 760px; }
.lohn-media > img { object-position: 46% center; }
.training-section { grid-template-columns: .85fr 1.15fr; background: #ececea; }
.training-media > img { object-position: 52% center; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(36px, 4.8vw, 84px); }
.detail-copy h1, .detail-copy h2, .automation-copy h1, .automation-copy h2, .aim-copy h2, .simple-copy h2, .about-section h2, .contact-intro h1, .contact-intro h2 { margin: 0; font-size: clamp(39px, 3.9vw, 60px); line-height: 1.03; letter-spacing: -.045em; }
.detail-copy h1 span, .detail-copy h2 span, .automation-copy h1 span, .automation-copy h2 span, .aim-copy h2 span, .simple-copy h2 span, .about-section h2 span, .contact-intro h1 span, .contact-intro h2 span { color: #9b9da2; }
.detail-lead { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.image-index { position: absolute; left: 34px; top: 34px; display: inline-flex; gap: 13px; align-items: center; padding: 11px 15px; background: rgba(17,18,20,.84); color: white; backdrop-filter: blur(12px); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 750; }
.image-index span { color: var(--red); }
.media-badge { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(330px, 60%); padding: 22px 26px; background: var(--red); color: white; display: flex; flex-direction: column; gap: 6px; }
.media-badge-left { left: 0; right: auto; }
.media-badge strong { font-size: 18px; }
.media-badge span { font-size: 13px; color: rgba(255,255,255,.78); }
.feature-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list li > span { flex: 0 0 28px; height: 28px; margin-top: 2px; display: grid; place-items: center; background: rgba(227,35,45,.08); color: var(--red); }
.feature-list svg { width: 16px; height: 16px; stroke-width: 2.2; }
.feature-list strong { display: block; margin-bottom: 5px; font-size: 15px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.benefit-note { margin-top: 30px; padding: 18px 20px; border-left: 3px solid var(--red); background: white; box-shadow: 0 16px 45px rgba(18,20,22,.05); }
.benefit-note span, .automation-benefit span { display: block; margin-bottom: 8px; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.benefit-note p { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.6; }

.dark-media { min-height: 760px; }
.dark-media > img { object-position: 36% center; }
.dark-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,23,26,.22), transparent 40%); pointer-events: none; }
.service-points { margin-top: 42px; border-top: 1px solid rgba(255,255,255,.14); }
.service-points > div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.service-points span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.service-points p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.dark-benefit { margin-top: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.dark-benefit strong { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.dark-benefit i { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

#messprogramme .detail-media { grid-column: 1; grid-row: 1; }
#messprogramme .detail-copy { grid-column: 2; grid-row: 1; }

.automation-stage { min-height: 760px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; background: #eeefed; }
.automation-image { position: relative; isolation: isolate; min-height: 760px; overflow: hidden; background: #15171a; }
.automation-image img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }
.automation-overlay { position: absolute; z-index: 2; inset: 0; background: linear-gradient(0deg, rgba(8,9,11,.68), transparent 45%); }
.automation-label { position: absolute; z-index: 2; left: 32px; bottom: 31px; color: white; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.automation-label span { color: var(--red); margin-right: 12px; }
.automation-media-badge { z-index: 3; }
.automation-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(36px, 4.8vw, 84px); }
#automatisierung .automation-copy { grid-column: 1; grid-row: 1; }
#automatisierung .automation-image { grid-column: 2; grid-row: 1; }
.automation-copy > p:not(.kicker) { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.68; }
.automation-checks { margin-top: 30px; }
.automation-list { margin-top: 40px; border-top: 1px solid #d1d2d1; }
.automation-list > div { position: relative; padding: 18px 0 18px 24px; border-bottom: 1px solid #d1d2d1; display: flex; flex-direction: column; gap: 6px; }
.automation-list > div::before { content: ""; position: absolute; left: 0; top: 24px; width: 6px; height: 6px; background: var(--red); }
.automation-list strong { font-size: 15px; }
.automation-list span { color: var(--muted); font-size: 13px; }
.automation-benefit { margin-top: 34px; border: 1px solid #dedfdd; border-left: 3px solid var(--red); }
.section-break { width: min(1400px, calc(100% - 48px)); height: 76px; margin: 46px auto 0; display: grid; place-items: center; background: var(--paper); }
.section-break > span { position: relative; display: block; width: min(760px, 64vw); height: 1px; background: #c8cacc; }
.section-break > span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 2px; background: var(--red); transform: translate(-50%, -50%); }
.section-break-aim { margin-top: 46px; }
.aim-section { position: relative; padding: 130px clamp(24px, 6vw, 96px) 150px; background: #0e1012; color: white; overflow: clip; }
.aim-intro { position: relative; z-index: 2; max-width: 910px; margin: 0 auto 48px; text-align: center; }
.aim-wordmark { margin-bottom: 58px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.aim-intro .aim-wordmark { justify-content: center; margin-bottom: 46px; }
.aim-logo-mark { display: block; width: min(520px, 100%); aspect-ratio: 1672 / 690; overflow: hidden; }
.aim-logo { display: block; width: 100%; height: auto; }
.aim-logo-subtitle { color: rgba(255,255,255,.8); font-size: 12px; font-weight: 500; letter-spacing: .16em; line-height: 1; }
.aim-intro h1, .aim-intro h2 { margin: 0; font-size: clamp(44px, 4.7vw, 70px); line-height: .98; letter-spacing: -.05em; }
.aim-intro h1 span, .aim-intro h2 span { color: var(--red); }
.aim-intro .detail-lead { max-width: 760px; margin: 30px auto 0; color: rgba(255,255,255,.56); }
.aim-system-note { max-width: 780px; margin: 34px auto 0; border: 1px solid rgba(255,255,255,.13); border-left: 3px solid var(--red); background: rgba(255,255,255,.035); text-align: left; }
.aim-system-note summary { min-height: 66px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.aim-system-note summary::-webkit-details-marker { display: none; }
.aim-system-note summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.aim-system-note summary > span:first-child { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.aim-system-note-toggle { position: relative; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.22); }
.aim-system-note-toggle::before, .aim-system-note-toggle::after { content: ""; position: absolute; left: 8px; right: 8px; top: 15px; height: 2px; background: var(--red); transition: transform .22s ease; }
.aim-system-note-toggle::after { transform: rotate(90deg); }
.aim-system-note[open] .aim-system-note-toggle::after { transform: rotate(0); }
.aim-system-note p { margin: 0; padding: 0 22px 22px; color: rgba(255,255,255,.66); font-size: 14px; line-height: 1.7; }
.aim-system-note-bottom { position: relative; z-index: 2; width: min(1180px, 100%); max-width: none; margin: 72px auto 0; }
.aim-video { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto clamp(96px, 9vw, 138px); }
.aim-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255,255,255,.13); background: #050607; box-shadow: 0 34px 78px rgba(0,0,0,.34); }
.aim-video-frame::before { content: ""; position: absolute; z-index: 2; top: -1px; left: -1px; width: 88px; height: 88px; border-top: 3px solid var(--red); border-left: 3px solid var(--red); pointer-events: none; }
.aim-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050607; }
.aim-showcase { position: relative; z-index: 2; max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(390px, .6fr); gap: clamp(34px, 4vw, 64px); align-items: start; }
.aim-sticky-stage { display: contents; }
.aim-visual { position: sticky; top: clamp(150px, 20vh, 220px); height: min(58vh, 600px); min-height: 480px; overflow: hidden; background: #090a0c; box-shadow: 0 32px 75px rgba(0,0,0,.28); }
.aim-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,7,.72), transparent 44%); pointer-events: none; }
.aim-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.035); filter: saturate(.82) contrast(1.04); transition: opacity .5s ease, transform .8s ease; }
.aim-visual img.is-active { opacity: 1; transform: scale(1); }
.aim-visual img:nth-child(1) { object-position: 28% center; }
.aim-visual img:nth-child(2) { object-position: 48% center; }
.aim-visual img:nth-child(3) { object-position: 58% center; }
.aim-visual img:nth-child(4) { object-position: 50% center; }
.aim-visual img:nth-child(5) { object-position: 50% center; }
.aim-visual-caption { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; gap: 15px; }
.aim-visual-caption strong { font-size: 14px; letter-spacing: .04em; }
.aim-swipe-hint { display: none; }
.aim-scroll-progress { display: none; }
.aim-feature-list { display: grid; gap: 14px; padding-bottom: 6vh; }
.aim-feature { position: relative; min-height: clamp(168px, 25vh, 240px); width: 100%; padding: 24px 22px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.025); color: white; text-align: left; font: inherit; display: flex; gap: 16px; align-items: center; cursor: pointer; transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.aim-feature:hover, .aim-feature:focus-visible, .aim-feature.is-active { border-color: rgba(227,35,45,.8); background: rgba(227,35,45,.07); transform: translateX(-8px); outline: none; }
.aim-feature::before { content: ""; position: absolute; left: -1px; top: 25px; bottom: 25px; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .3s ease; }
.aim-feature.is-active::before { transform: scaleY(1); }
.aim-feature-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: var(--red); }
.aim-feature-icon svg { width: 25px; height: 25px; }
.aim-feature-copy { display: block; padding-top: 2px; }
.aim-feature-copy strong { display: block; margin-bottom: 11px; font-size: 18px; line-height: 1.25; }
.aim-feature-copy small { display: block; max-width: 520px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.7; }

.about-section { padding: 140px clamp(24px, 8vw, 130px); display: grid; grid-template-columns: 1fr .9fr; gap: clamp(50px, 9vw, 140px); align-items: start; background: #efefed; border-top: 1px solid #dededc; }
.about-section h1 { margin: 0; font-size: clamp(39px, 3.9vw, 60px); line-height: 1.03; letter-spacing: -.045em; }
.about-section h1 span { color: #9b9da2; }
.profile-page-section { min-height: calc(100vh - 88px); align-items: stretch; }
.profile-intro { min-width: 0; display: flex; flex-direction: column; }
.profile-portrait { position: relative; width: 80%; height: clamp(344px, 30.4vw, 480px); margin: auto 0 20px; }
.profile-portrait::before { content: ""; position: absolute; z-index: 2; top: -12px; left: -12px; width: 74px; height: 74px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); pointer-events: none; }
.profile-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; border-radius: 8px; box-shadow: 0 28px 64px rgba(18,20,22,.16); }
.profile-portrait figcaption { position: absolute; z-index: 2; left: 24px; bottom: -20px; min-width: 215px; padding: 14px 17px; border-left: 3px solid var(--red); background: #15171a; color: white; box-shadow: 0 14px 34px rgba(18,20,22,.2); }
.profile-portrait figcaption strong, .profile-portrait figcaption span { display: block; }
.profile-portrait figcaption strong { font-size: 15px; line-height: 1.25; }
.profile-portrait figcaption span { margin-top: 4px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.about-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.about-copy > p + p { margin-top: 22px; }
.about-tags { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 9px; }
.about-tags span { padding: 11px 14px; border: 1px solid #cfd0ce; color: #4e5257; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.profile-link { width: min(100%, 520px); min-height: 74px; margin-top: 26px; padding: 14px 17px; display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 14px; border-left: 3px solid var(--red); background: #15171a; color: white; box-shadow: 0 14px 34px rgba(18,20,22,.1); transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.linkedin-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: white; font-size: 18px; font-weight: 800; letter-spacing: -.04em; text-transform: none; }
.profile-link-copy { display: flex; flex-direction: column; gap: 4px; }
.profile-link-copy small { color: rgba(255,255,255,.5); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
.profile-link-copy strong { font-size: 15px; line-height: 1.2; }
.profile-link > svg { width: 18px; height: 18px; color: var(--red); transition: transform .25s ease; }
.profile-link:hover, .profile-link:focus-visible { background: #1c1f22; box-shadow: 0 18px 40px rgba(18,20,22,.16); transform: translateY(-2px); outline: none; }
.profile-link:hover > svg, .profile-link:focus-visible > svg { transform: translate(3px,-3px); }
.expertise-block { margin-top: 38px; padding-top: 28px; border-top: 1px solid #cfd0ce; }
.expertise-block > p { margin: 0; color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.expertise-block .expertise-tags { margin-top: 15px; }
.expertise-tags span { border-color: rgba(227,35,45,.28); background: rgba(227,35,45,.045); color: #34373b; }

.contact-section { padding: 125px clamp(24px, 8vw, 130px); display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(60px, 9vw, 150px); background: #15171a; color: white; }
.page-contact .contact-section { min-height: calc(100vh - 88px); align-items: center; }
.contact-intro > p:not(.kicker) { max-width: 600px; margin: 30px 0 0; color: rgba(255,255,255,.54); font-size: 16px; line-height: 1.8; }
.contact-intro h1 span, .contact-intro h2 span { color: var(--red); }
.contact-form { padding: 42px; background: white; color: var(--ink); }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-form label { display: block; margin-bottom: 19px; }
.contact-form label > span { display: block; margin-bottom: 8px; color: #65696e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #d8d9da; border-radius: 0; background: #fafafa; color: var(--ink); font: inherit; font-size: 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form input, .contact-form select { height: 50px; padding: 0 15px; }
.contact-form textarea { padding: 15px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,35,45,.08); }
.contact-form .button { border: 0; cursor: pointer; }
.contact-form .button:disabled { cursor: wait; opacity: .68; }
.form-privacy { margin: -2px 0 20px; color: #73777c; font-size: 12px; line-height: 1.55; }
.form-privacy a { color: var(--red); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-privacy a:hover, .form-privacy a:focus-visible { color: var(--red-dark); }
.form-note { margin: 14px 0 0; color: #8a8d91; font-size: 12px; line-height: 1.5; }
.form-note-success { color: #17804d; font-weight: 650; }
.form-note-error { color: #b51f28; font-weight: 650; }

.page-cta { min-height: 360px; padding: 80px clamp(24px, 8vw, 130px); display: flex; align-items: center; justify-content: space-between; gap: 48px; background: #15171a; color: white; border-top: 1px solid rgba(255,255,255,.08); }
.page-cta > div { max-width: 780px; }
.page-cta h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.page-cta h2 span { color: var(--red); }
.page-cta > div > p:not(.kicker) { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.7; }
.page-cta > .button { flex: 0 0 auto; }
.page-cta-cross { background: #1b1d20; }
.page-cta-contact { background: #121416; }
.page-cta + .page-cta { border-top-color: rgba(255,255,255,.14); }
.trademark-note { padding: 28px clamp(24px, 8vw, 130px); background: #1b1d20; color: white; border-top: 1px solid rgba(255,255,255,.09); }
.trademark-note details { max-width: 1180px; margin: 0 auto; border-left: 3px solid var(--red); background: rgba(255,255,255,.025); }
.trademark-note summary { min-height: 62px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: rgba(255,255,255,.84); cursor: pointer; list-style: none; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.trademark-note summary::-webkit-details-marker { display: none; }
.trademark-note summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.trademark-note-toggle { position: relative; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.22); }
.trademark-note-toggle::before, .trademark-note-toggle::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 1px; background: var(--red); transition: transform .22s ease; }
.trademark-note-toggle::after { transform: rotate(90deg); }
.trademark-note details[open] .trademark-note-toggle::after { transform: rotate(0); }
.trademark-note p { max-width: 940px; margin: 0; padding: 0 22px 22px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.75; }

footer { min-height: 190px; padding: 46px clamp(24px, 6vw, 96px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 60px; background: #0b0c0e; color: white; border-top: 1px solid rgba(255,255,255,.08); }
.footer-brand { padding: 0; background: transparent; }
.footer-brand img { display: block; width: 59px; height: 59px; object-fit: contain; object-position: center; }
footer > p { margin: 0; color: rgba(255,255,255,.46); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
footer > div { grid-column: 1/-1; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.38); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,.62); transition: color .2s ease; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: white; outline: none; }

@media (max-width: 1260px) {
  .site-header { grid-template-columns: minmax(150px,1fr) auto 46px; gap: 12px; }
  .header-cta { grid-column: 2; }
  .menu-toggle { grid-column: 3; display: inline-flex; }
  .site-header nav { position: fixed; z-index: 1; top: 88px; left: 0; right: 0; max-height: calc(100vh - 88px); padding: 12px clamp(24px,5vw,80px) 24px; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: rgba(14,16,18,.99); box-shadow: 0 22px 38px rgba(0,0,0,.24); display: grid; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-18px); transition: opacity .24s ease, visibility .24s ease, transform .24s ease; }
  .site-header.is-menu-open nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-header nav a { min-width: 0; min-height: 58px; padding: 0 4px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); justify-content: flex-start; font-size: 13px; }
  .site-header nav a:last-child { border-bottom: 0; }
  .site-header nav a::before { left: 0; right: auto; bottom: -1px; width: 54px; transform-origin: left; }
  .process-grid { grid-template-columns: repeat(3,1fr); }
  .process-card:nth-child(4) { border-left: 1px solid #d8d9db; border-top: 1px solid #d8d9db; }
  .process-card:nth-child(5) { border-top: 1px solid #d8d9db; }
}

@media (max-width: 1100px) {
  .hero-content { width: 72vw; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,9,11,.96), rgba(8,9,11,.7) 60%, rgba(8,9,11,.2)); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-card:nth-child(3) { border-left: 1px solid #d8d9db; border-top: 1px solid #d8d9db; }
  .process-card:nth-child(4) { border-left: 0; border-top: 1px solid #d8d9db; }
  .process-card:nth-child(5) { border-left: 1px solid #d8d9db; border-top: 1px solid #d8d9db; }
  .detail-section, .automation-stage, .about-section, .contact-section { grid-template-columns: 1fr; }
  #messprogramme .detail-copy, #messprogramme .detail-media,
  #automatisierung .automation-copy, #automatisierung .automation-image { grid-column: 1; grid-row: auto; }
  .detail-media, .dark-media { min-height: 0; aspect-ratio: 16 / 10; }
  #messprogramme .detail-copy { order: 2; }
  #messprogramme .detail-media { order: 1; }
  .training-section .detail-copy { order: 2; }
  .training-section .detail-media { order: 1; }
  #automatisierung .automation-copy { order: 2; }
  #automatisierung .automation-image { order: 1; }
  .automation-stage { gap: 0; }
  .automation-image { min-height: 0; aspect-ratio: 16 / 10; }
  .automation-copy { padding: 90px 7vw; }
  .aim-section { padding-left: 7vw; padding-right: 7vw; }
  .aim-showcase { grid-template-columns: 1fr; }
  .aim-visual { position: sticky; top: 128px; height: min(56vw, 560px); min-height: 440px; z-index: 3; }
  .aim-feature-list { padding-bottom: 0; }
  .about-copy > p { max-width: 800px; }
  .contact-intro { max-width: 760px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  html, body { overflow-x: hidden; overscroll-behavior-x: none; }
  #leistungen, #aim, #ueber-mich, #kontakt { scroll-margin-top: 72px; }
  .site-header { height: 72px; grid-template-columns: minmax(86px,1fr) auto 44px; gap: 8px; padding: 0 14px; }
  .site-header > .brand { left: 14px; width: 91px; height: 95px; border-bottom-width: 2px; }
  .header-logo { width: 70px; height: 86px; }
  .header-cta { height: 40px; padding: 0 12px; gap: 7px; font-size: 10px; }
  .header-cta-long { display: none; }
  .header-cta-short { display: inline; }
  .menu-toggle { width: 44px; height: 44px; }
  .site-header nav { top: 72px; max-height: calc(100dvh - 72px); padding: 10px 18px 22px; }
  .site-header nav a { min-height: 54px; font-size: 12px; }
  .brand-name { display: none; }

  .hero { min-height: calc(100svh - 72px); height: auto; max-height: none; align-items: flex-end; padding: 110px 0 52px; }
  .hero-image { object-position: 40% center; transform: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,9,11,.82) 0%, rgba(8,9,11,.55) 42%, rgba(8,9,11,.08) 78%, rgba(8,9,11,.02) 100%), linear-gradient(90deg, rgba(8,9,11,.18), rgba(8,9,11,.04)); }
  .hero-grid { display: none; }
  .hero-content { width: calc(100% - 36px); margin: 0 18px; text-shadow: 0 2px 18px rgba(0,0,0,.72); }
  .eyebrow { margin-bottom: 16px; gap: 9px; font-size: 10px; line-height: 1.55; letter-spacing: .13em; }
  .hero h1 { max-width: 100%; font-size: clamp(44px, 13.2vw, 56px); line-height: .93; letter-spacing: -.052em; }
  .hero-lead { max-width: 100%; margin-top: 24px; font-size: 15.5px; line-height: 1.6; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; text-shadow: none; }
  .hero-actions .button { width: 100%; min-height: 50px; }

  .process-section { padding: 58px 16px 0; }
  .services-intro { padding: 21px 20px; }
  .services-intro h1, .services-intro h2 { font-size: 14px; letter-spacing: .11em; }
  .services-intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .services-specialization { width: 100%; min-width: 0; margin-left: 0; }
  .services-specialization summary { min-height: 50px; padding-left: 16px; }
  .services-specialization-body { margin-left: 16px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card,
  .process-card:first-child,
  .process-card:nth-child(3),
  .process-card:nth-child(4),
  .process-card:nth-child(5) { min-height: 270px; padding: 22px 20px; border: 0; border-left: 2px solid #cfd1d3; border-right: 2px solid #cfd1d3; border-bottom: 2px solid #cfd1d3; display: flex; flex-direction: column; }
  .process-icon { width: 46px; height: 46px; }
  .process-icon svg { width: 22px; height: 22px; }
  .process-card h2, .process-card h3 { min-height: 0; max-width: 270px; margin: 34px 0 11px; font-size: 20px; }
  .process-card p { max-width: 310px; font-size: 14.5px; line-height: 1.55; }
  .process-link { position: static; width: max-content; margin-top: auto; padding: 8px 10px; }
  .process-card::after { display: none; }
  .process-card:hover { color: var(--ink); background: transparent; box-shadow: none; }
  .process-card:hover::before { inset: 100% 0 0; }
  .process-card:hover p { color: var(--muted); }
  .process-card:hover .process-icon { border-color: #cfd0d2; background: transparent; }
  .process-card:hover .process-link { color: var(--red); background: rgba(227,35,45,.07); transform: none; }

  .detail-section { min-height: 0; }
  .service-section .detail-copy { order: 1 !important; }
  .service-section .detail-media { order: 2 !important; }
  .detail-media, .dark-media, .service-section .detail-media { min-height: 0; aspect-ratio: 4 / 3; }
  .detail-media > img, .automation-image img { object-position: center; }
  .lohn-media > img { object-position: 48% center; }
  .training-media > img { object-position: 54% center; }
  .dark-media > img { object-position: 48% center; }
  .detail-copy { padding: 54px 20px 62px; }
  .detail-copy h1, .detail-copy h2, .automation-copy h1, .automation-copy h2, .aim-copy h2, .simple-copy h2, .about-section h2, .contact-intro h1, .contact-intro h2 { font-size: 34px; line-height: 1.05; }
  .kicker { margin-bottom: 15px; font-size: 12px; line-height: 1.5; }
  .detail-lead { margin-top: 21px; font-size: 15.5px; line-height: 1.67; }
  .feature-list { margin-top: 24px; gap: 0; border-top: 1px solid #d5d6d7; }
  .feature-list li { gap: 13px; padding: 15px 0; border-bottom: 1px solid #d5d6d7; }
  .feature-list li > span { flex-basis: 26px; height: 26px; }
  .feature-list strong { font-size: 14.5px; }
  .feature-list p { font-size: 13.5px; line-height: 1.55; }
  .benefit-note { margin-top: 24px; padding: 16px 17px; }
  .media-badge { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px 18px; }
  .media-badge-left { left: 12px; right: 12px; }
  .media-badge strong { font-size: 16px; }
  .media-badge span { font-size: 12px; line-height: 1.45; }
  .image-index { left: 14px; top: 14px; }

  .automation-stage { padding: 0; gap: 0; }
  #automatisierung .automation-copy { order: 1; }
  #automatisierung .automation-image { order: 2; }
  .automation-image { min-height: 0; aspect-ratio: 4 / 3; }
  .automation-copy { padding: 54px 20px 62px; }
  .automation-copy > p:not(.kicker) { margin-top: 21px; font-size: 15.5px; line-height: 1.67; }
  .automation-list > div { padding-right: 5px; }
  .section-break { width: calc(100% - 32px); height: 54px; margin-top: 26px; }
  .section-break > span { width: 76vw; }
  .section-break-aim { margin-top: 26px; }

  .aim-section { padding: 72px 16px 82px; overflow: visible; }
  .aim-intro { margin-bottom: 36px; text-align: left; }
  .aim-intro .aim-wordmark { justify-content: center; align-items: center; text-align: center; }
  .aim-intro h1, .aim-intro h2 { font-size: 36px; line-height: 1.02; }
  .about-section h1 { font-size: 34px; line-height: 1.05; }
  .aim-intro .detail-lead { margin-left: 0; font-size: 15px; line-height: 1.67; }
  .aim-system-note { margin-top: 26px; }
  .aim-system-note summary { min-height: 60px; padding: 0 16px; }
  .aim-system-note p { padding: 0 16px 18px; font-size: 13.5px; line-height: 1.65; }
  .aim-system-note-bottom { margin-top: 46px; }
  .aim-video { margin-bottom: 78px; }
  .aim-video-frame::before { width: 54px; height: 54px; border-width: 2px; }
  .aim-showcase { display: block; height: calc(100vh - 90px + var(--aim-mobile-scroll-distance, 1700px)); height: calc(100dvh - 90px + var(--aim-mobile-scroll-distance, 1700px)); overflow: visible; }
  .aim-sticky-stage { --aim-pin-top: 78px; position: relative; top: auto; width: 100%; height: calc(100vh - 90px); height: calc(100dvh - 90px); min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #0e1012; }
  .aim-sticky-stage.is-pinned { position: fixed; z-index: 18; top: var(--aim-pin-top); left: var(--aim-stage-left, 16px); width: var(--aim-stage-width, calc(100% - 32px)); }
  .aim-sticky-stage.is-complete { position: absolute; z-index: 2; inset: auto 0 0; width: 100%; }
  .aim-visual { position: relative; top: auto; flex: 0 0 clamp(220px, 36dvh, 300px); height: auto; min-height: 0; aspect-ratio: auto; }
  .aim-visual-caption { left: 17px; right: 17px; bottom: 16px; padding-top: 13px; }
  .aim-swipe-hint { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(255,255,255,.075); color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.35; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
  .aim-swipe-hint span { display: inline-block; color: var(--red); font-size: 23px; line-height: 1; animation: aim-scroll-arrow 1.35s ease-in-out infinite; }
  .aim-scroll-progress { flex: 0 0 48px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding: 0 14px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(4,5,6,.72); }
  .aim-scroll-count { display: inline-flex; align-items: baseline; gap: 5px; color: rgba(255,255,255,.42); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
  .aim-scroll-count strong { color: white; font-size: 17px; font-weight: 800; }
  .aim-scroll-track { position: relative; display: block; width: 100%; height: 7px; overflow: hidden; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); }
  .aim-scroll-track::after { content: ""; position: absolute; z-index: 2; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(8,9,11,.72) calc(20% - 1px) 20%); pointer-events: none; }
  .aim-scroll-track > span { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--red); box-shadow: 0 0 15px rgba(227,35,45,.72); transition: width .12s linear; }
  .aim-feature-list { flex: 1 1 auto; min-height: 0; display: flex; align-items: stretch; gap: 12px; margin: 0 -16px; padding: 12px 16px 18px; overflow-x: hidden; overflow-y: hidden; overscroll-behavior-inline: none; touch-action: pan-y; scroll-snap-type: none; scroll-padding-inline: 16px; scrollbar-width: none; }
  .aim-feature-list { scrollbar-width: none; }
  .aim-feature-list::-webkit-scrollbar { display: none; }
  .aim-feature { flex: 0 0 min(84vw, 340px); height: 100%; min-height: 0; padding: 18px 16px; align-items: flex-start; overflow-y: auto; scroll-snap-align: center; }
  .aim-feature:hover, .aim-feature:focus-visible, .aim-feature.is-active { transform: none; }
  .aim-feature-copy strong { margin-bottom: 9px; font-size: 16px; }
  .aim-feature-copy small { font-size: 13px; line-height: 1.58; }
  .aim-wordmark { margin-bottom: 34px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .aim-logo-mark { width: min(340px, 100%); }
  .aim-logo-subtitle { font-size: 10px; letter-spacing: .12em; }

  .about-section, .contact-section { padding: 66px 20px; }
  .about-section { gap: 32px; }
  .profile-portrait { width: min(80%, 416px); height: min(94.4vw, 496px); margin-top: 34px; }
  .about-copy > p { font-size: 15.5px; line-height: 1.7; }
  .about-tags { margin-top: 30px; gap: 7px; }
  .about-tags span { padding: 9px 10px; font-size: 10px; line-height: 1.35; }
  .profile-link { min-height: 68px; grid-template-columns: 39px 1fr auto; padding: 12px 13px; }
  .linkedin-mark { width: 39px; height: 39px; }
  .expertise-block { margin-top: 30px; padding-top: 23px; }
  .contact-section { gap: 38px; }
  .contact-intro > p:not(.kicker) { margin-top: 22px; font-size: 15px; line-height: 1.65; }
  .contact-form { padding: 24px 17px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form input, .contact-form select { height: 52px; font-size: 16px; }
  .contact-form textarea { min-height: 130px; font-size: 16px; }
  .contact-form .button { width: 100%; }
  .page-cta { min-height: 0; padding: 58px 20px; align-items: flex-start; flex-direction: column; gap: 30px; }
  .page-cta h2 { font-size: 34px; }
  .page-cta > div > p:not(.kicker) { margin-top: 20px; font-size: 15px; line-height: 1.65; }
  .page-cta > .button { width: 100%; }
  .trademark-note { padding: 20px; }
  .trademark-note summary { min-height: 58px; padding: 0 16px; font-size: 10px; line-height: 1.5; }
  .trademark-note p { padding: 0 16px 18px; font-size: 12.5px; line-height: 1.7; }

  footer { grid-template-columns: 1fr; padding: 45px 20px; }
  footer > p { line-height: 1.7; }
  footer > div { align-items: flex-start; gap: 22px; flex-direction: column; }
  .footer-legal { flex-wrap: wrap; gap: 14px 22px; }
}

/* Smartphones im Querformat: wenig Höhe, aber deutlich mehr Breite als im Hochformat. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
  html { scroll-padding-top: 60px; }
  html, body { overflow-x: hidden; overscroll-behavior-x: none; }
  #start, #leistungen, #lohnmessung, #schulungen, #messprogramme, #automatisierung, #aim, #ueber-mich, #kontakt { scroll-margin-top: 60px; }

  .site-header { height: 60px; grid-template-columns: minmax(72px, 1fr) auto 40px; gap: 8px; padding: 0 12px; }
  .site-header > .brand { left: 12px; width: 79px; height: 80px; border-bottom-width: 2px; }
  .header-logo { width: 60px; height: 72px; }
  .header-cta { height: 36px; padding: 0 11px; gap: 6px; font-size: 9px; }
  .header-cta-long { display: none; }
  .header-cta-short { display: inline; }
  .menu-toggle { width: 40px; height: 40px; }
  .site-header nav { top: 60px; max-height: calc(100dvh - 60px); padding: 7px 16px 14px; }
  .site-header nav a { min-height: 44px; font-size: 11px; }

  .hero { min-height: max(360px, calc(100svh - 60px)); height: auto; max-height: none; align-items: center; padding: 34px 0 28px; }
  .hero-image { object-position: 78% center; transform: none; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,9,11,.98) 0%, rgba(8,9,11,.94) 24%, rgba(8,9,11,.74) 48%, rgba(8,9,11,.32) 76%, rgba(8,9,11,.08) 100%), linear-gradient(0deg, rgba(8,9,11,.38), transparent 60%); }
  .hero-grid { display: none; }
  .hero-content { width: min(560px, 68vw); margin-left: 24px; }
  .eyebrow { margin-bottom: 10px; font-size: 9px; line-height: 1.4; letter-spacing: .12em; }
  .hero h1 { max-width: 560px; font-size: clamp(43px, 7.1vw, 60px); line-height: .88; }
  .hero-lead { max-width: 510px; margin-top: 16px; font-size: 13.5px; line-height: 1.45; }
  .hero-actions { display: flex; gap: 9px; margin-top: 18px; }
  .hero-actions .button { width: auto; min-height: 42px; padding: 0 17px; font-size: 10px; }

  .process-section { padding: 62px 20px 0; }
  .services-intro { padding: 20px 24px; }
  .services-intro { align-items: center; flex-direction: row; gap: 28px; }
  .services-specialization { width: min(500px, 58vw); min-width: 360px; margin-left: auto; }
  .services-specialization summary { padding-left: 18px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 2px solid #cfd1d3; }
  .process-card,
  .process-card:first-child,
  .process-card:nth-child(3),
  .process-card:nth-child(4),
  .process-card:nth-child(5) { min-height: 255px; padding: 22px 20px; border: 0; border-right: 2px solid #cfd1d3; border-bottom: 2px solid #cfd1d3; display: flex; flex-direction: column; }
  .process-card:nth-child(5) { grid-column: 1 / -1; }
  .process-card h2, .process-card h3 { margin: 28px 0 10px; font-size: 20px; }
  .process-card p { font-size: 14px; line-height: 1.5; }
  .process-link { position: static; width: max-content; margin-top: auto; }

  .detail-section, .service-section, .automation-stage { min-height: 0; }
  .service-section .detail-copy, #messprogramme .detail-copy, #automatisierung .automation-copy { order: 1 !important; }
  .service-section .detail-media, #messprogramme .detail-media, #automatisierung .automation-image { order: 2 !important; }
  .detail-media, .dark-media, .service-section .detail-media, .automation-image { min-height: 0; aspect-ratio: 16 / 7; }
  .detail-copy, .automation-copy { padding: 54px 6vw 62px; }
  .detail-copy h1, .detail-copy h2, .automation-copy h1, .automation-copy h2, .aim-copy h2, .simple-copy h2, .about-section h2, .contact-intro h1, .contact-intro h2 { font-size: 36px; }
  .detail-lead, .automation-copy > p:not(.kicker) { margin-top: 21px; font-size: 15px; line-height: 1.65; }
  .media-badge { width: min(300px, 48%); padding: 17px 20px; }
  .section-break { height: 56px; margin-top: 28px; }

  .aim-section { padding: 68px 20px 76px; overflow: visible; }
  .aim-intro { margin-bottom: 34px; }
  .aim-intro .aim-wordmark { margin-bottom: 30px; }
  .aim-logo-mark { width: min(360px, 46vw); }
  .aim-intro h1, .aim-intro h2 { font-size: 39px; }
  .aim-intro .detail-lead { margin-top: 22px; font-size: 14.5px; }
  .aim-system-note-bottom { margin-top: 38px; }
  .aim-video { margin-bottom: 62px; }
  .aim-showcase { display: block; height: calc(100vh - 72px + var(--aim-mobile-scroll-distance, 1700px)); height: calc(100dvh - 72px + var(--aim-mobile-scroll-distance, 1700px)); overflow: visible; }
  .aim-sticky-stage { --aim-pin-top: 66px; position: relative; top: auto; width: 100%; height: calc(100vh - 72px); height: calc(100dvh - 72px); min-height: 0; display: grid; grid-template-columns: minmax(245px, .9fr) minmax(0, 1.1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 0 14px; overflow: hidden; background: #0e1012; }
  .aim-sticky-stage.is-pinned { position: fixed; z-index: 18; top: var(--aim-pin-top); left: var(--aim-stage-left, 20px); width: var(--aim-stage-width, calc(100% - 40px)); }
  .aim-sticky-stage.is-complete { position: absolute; z-index: 2; inset: auto 0 0; width: 100%; }
  .aim-visual { position: relative; top: auto; grid-column: 1; grid-row: 1 / 4; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
  .aim-swipe-hint { grid-column: 2; grid-row: 1; padding: 9px 12px; font-size: 9px; }
  .aim-scroll-progress { grid-column: 2; grid-row: 2; min-height: 38px; padding: 0 12px; gap: 10px; }
  .aim-scroll-count strong { font-size: 15px; }
  .aim-scroll-track { height: 6px; }
  .aim-feature-list { grid-column: 2; grid-row: 3; height: 100%; min-height: 0; display: flex; gap: 12px; margin: 0; padding: 10px 0 12px; overflow-x: hidden; overflow-y: hidden; overscroll-behavior-inline: none; touch-action: pan-y; scroll-snap-type: none; scroll-padding-inline: 0; scrollbar-width: none; }
  .aim-feature { flex: 0 0 min(62vw, 360px); height: 100%; min-height: 0; padding: 15px 14px; align-items: flex-start; overflow-y: auto; scroll-snap-align: start; }
  .aim-feature:hover, .aim-feature:focus-visible, .aim-feature.is-active { transform: none; }

  .about-section, .contact-section { padding: 62px 6vw; gap: 36px; }
  .about-section h1 { font-size: 36px; }
  .about-copy > p { font-size: 15.5px; line-height: 1.68; }
  .contact-form { padding: 30px; }
  .page-cta { min-height: 0; padding: 54px 6vw; }
  .page-cta h2 { font-size: 36px; }
  footer { min-height: 0; padding: 38px 6vw; }
}

@media (max-width: 380px) {
  .site-header { grid-template-columns: minmax(78px,1fr) auto 42px; padding-inline: 10px; }
  .site-header > .brand { left: 10px; width: 86px; }
  .header-cta { padding-inline: 10px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero h1 { font-size: 42px; }
  .hero-content { width: calc(100% - 28px); margin-inline: 14px; }
  .process-section, .aim-section { padding-left: 12px; padding-right: 12px; }
  .aim-feature-list { margin-inline: -12px; padding-inline: 12px; }
}

@keyframes aim-swipe-arrow {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50% { transform: translateX(7px); opacity: 1; }
}

@keyframes aim-scroll-arrow {
  0%, 100% { transform: translateY(-2px); opacity: .55; }
  50% { transform: translateY(4px); opacity: 1; }
}

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