:root {
  --ink: #14161A;
  --anthracite: #242A30;
  --orange: #F25C05;
  --orange-soft: #FF8A3D;
  --paper: #FFFFFF;
  --mist: #F4F5F6;
  --line: #E2E4E7;
  --muted: #59616A;
  --font-display: "Sora", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --shell: min(100% - 2rem, 1240px);
  --measure: 69ch;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--orange); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: var(--paper); }
.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; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--orange);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-shell { width: var(--shell); margin-inline: auto; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -.055em;
}
h1 { font-size: clamp(2.65rem, 10vw, 6rem); margin-bottom: 1.35rem; }
h2 { font-size: clamp(2rem, 6vw, 4.15rem); margin-bottom: 1.35rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); margin-bottom: .65rem; }
p { margin-bottom: 1rem; }
.eyebrow, .footer-label, label, .section-kicker {
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section-kicker { display: inline-block; color: var(--ink); }
.section-kicker::after {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: .7rem;
  background: var(--orange);
  content: "";
}
.lede { max-width: 53ch; color: var(--muted); font-size: clamp(1.08rem, 2.4vw, 1.25rem); }
.text-link { color: var(--ink); font-weight: 750; text-decoration-color: var(--orange); }
.text-link::after { margin-left: .35rem; color: var(--orange); content: "→"; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .72rem 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn-primary { border-color: var(--orange); background: var(--orange); color: var(--paper); }
.btn-primary:hover { border-color: var(--orange-soft); background: var(--orange-soft); }
.btn-secondary { background: transparent; color: currentColor; }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.utility-bar { color: var(--paper); background: var(--ink); font-size: .8rem; }
.utility-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding: .42rem 0; }
.utility-inner p { margin: 0; }
.utility-inner a { color: var(--paper); font-weight: 700; text-decoration: none; }
.site-header { position: relative; z-index: 20; border-bottom: 2px solid var(--orange); background: var(--anthracite); color: var(--paper); }
.header-main { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1rem; padding: 1rem 0; }
.brand-logo { display: inline-flex; flex-direction: column; flex: 1 1 175px; gap: .15rem; min-width: 0; color: var(--paper); text-decoration: none; }
.brand-logo:hover { color: var(--paper); }
.brand-logo svg { width: 166px; height: auto; max-width: 100%; }
.brand-logo__mark { color: var(--paper); font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.055em; line-height: 1; text-transform: uppercase; }
.brand-logo__mark em { color: var(--orange); font-style: normal; }
.brand-logo__sub { color: #CBD0D5; font-size: .62rem; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.menu-toggle { display: none; align-items: center; gap: .6rem; padding: .5rem 0; border: 0; background: transparent; color: var(--paper); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.menu-toggle__bars { display: grid; gap: 5px; width: 22px; }
.menu-toggle__bars i { display: block; height: 2px; background: var(--orange); transition: transform var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav { flex-basis: 100%; order: 3; border-top: 1px solid rgba(255,255,255,.18); }
.nav ul { display: flex; flex-wrap: wrap; gap: .1rem .95rem; margin: 0; padding: .75rem 0 0; list-style: none; }
.nav a { display: inline-block; padding: .3rem 0; color: var(--paper); font-size: .84rem; font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--orange-soft); }
body[data-page="start"] .nav a[data-nav="start"],
body[data-page="leistungen"] .nav a[data-nav="leistungen"],
body[data-page="inspektion"] .nav a[data-nav="leistungen"],
body[data-page="ueber-uns"] .nav a[data-nav="ueber-uns"],
body[data-page="kontakt"] .nav a[data-nav="kontakt"] { color: var(--orange); }
.header-cta { order: 4; min-height: 2.75rem; padding-inline: .8rem; border-color: var(--orange); font-size: .72rem; }

.hero { position: relative; display: flex; align-items: flex-end; min-height: 78svh; color: var(--paper); isolation: isolate; background: var(--anthracite); }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(20,22,26,.92) 0%, rgba(20,22,26,.62) 50%, rgba(20,22,26,.2) 100%), linear-gradient(0deg, rgba(20,22,26,.76), transparent 55%); content: ""; }
.hero img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { width: var(--shell); margin-inline: auto; padding-top: 8rem; padding-bottom: clamp(3rem, 8vw, 7rem); }
.hero .eyebrow { color: #F4F5F6; }
.hero h1 { max-width: 13ch; color: var(--paper); }
.hero__lede { max-width: 48ch; margin-bottom: 2rem; color: var(--paper); font-size: clamp(1.05rem, 2.4vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn-secondary { border-color: var(--paper); color: var(--paper); }
.hero .btn-secondary:hover { border-color: var(--orange-soft); color: var(--paper); }
.hero__facts { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; background: rgba(20,22,26,.92); border-top: 1px solid rgba(255,255,255,.25); }
.hero__facts .site-shell { display: grid; grid-template-columns: 1fr; }
.hero__facts p { margin: 0; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.17); color: var(--paper); font-size: .78rem; font-weight: 700; }
.hero__facts p::before { display: inline-block; width: .45rem; height: .45rem; margin-right: .55rem; background: var(--orange); content: ""; }

.section { padding: clamp(4.25rem, 9vw, 8rem) 0; }
.section--mist { background: var(--mist); }
.section-heading { max-width: 770px; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.section-heading h2:last-child, .section-heading p:last-child { margin-bottom: 0; }
.service-lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-lines li { display: grid; grid-template-columns: 2.3rem 1fr; gap: .7rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.service-lines__number { color: var(--orange); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.05em; }
.service-lines h3 { margin-bottom: .35rem; font-size: clamp(1.2rem, 3.5vw, 1.7rem); }
.service-lines p { max-width: 65ch; margin-bottom: .6rem; color: var(--muted); }
.service-lines .text-link { font-size: .9rem; }

.split-layout { display: grid; gap: 2.2rem; align-items: center; }
.figure-clean { margin: 0; }
.figure-clean img { width: 100%; border-radius: 8px; object-fit: cover; }
.figure-clean figcaption { margin-top: .7rem; color: var(--muted); font-size: .8rem; }
.principle-list { margin: 1.75rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principle-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.principle-list strong { display: block; margin-bottom: .2rem; font-family: var(--font-display); letter-spacing: -.03em; }
.principle-list span { color: var(--muted); }
.quote-band { padding-top: 0; }
.brand-quote { max-width: 1030px; margin: 0; font-family: var(--font-display); font-size: clamp(1.85rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -.06em; line-height: 1.08; }
.brand-quote cite { display: block; margin-top: 1.2rem; color: var(--orange); font-family: var(--font-body); font-size: .76rem; font-style: normal; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.process-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; padding-top: 1.1rem; border-top: 2px solid var(--orange); }
.process-list .process-number { display: block; margin-bottom: .75rem; color: var(--orange); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.process-list h3 { margin-bottom: .45rem; }
.process-list p { max-width: 32ch; margin: 0; color: var(--muted); }
.region-layout { display: grid; gap: 2rem; align-items: end; }
.contact-address { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 4vw, 2.25rem); font-style: normal; font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.contact-address a { display: inline-block; margin-top: .8rem; color: var(--orange); text-decoration-thickness: 2px; }
.cta-band { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--anthracite); color: var(--paper); }
.cta-band h2 { max-width: 15ch; color: var(--paper); }
.cta-band p { max-width: 55ch; color: #D8DBDE; }
.cta-band .section-kicker { color: var(--orange-soft); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cta-band .btn-secondary { border-color: var(--paper); color: var(--paper); }

.page-hero { padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem); background: var(--mist); border-bottom: 1px solid var(--line); }
.breadcrumbs { margin: 0 0 1.7rem; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before { margin: 0 .5rem; color: var(--orange); content: "/"; }
.breadcrumbs a { color: var(--muted); }
.page-hero h1 { max-width: 17ch; margin-bottom: 1.2rem; }
.page-hero .lede { margin-bottom: 0; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 3.2rem; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.prose h3 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.15rem; }
.prose li + li { margin-top: .5rem; }
.prose p, .prose li { color: #353A40; }
.prose strong { color: var(--ink); }
.detail-image { margin: clamp(2.5rem, 6vw, 5rem) 0; }
.detail-image img { max-height: 520px; object-fit: cover; }
.service-intro { display: grid; gap: 2rem; align-items: start; }
.service-intro__aside { padding-top: 1rem; border-top: 2px solid var(--orange); }
.service-intro__aside p { color: var(--muted); }

.about-values { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.about-values > div { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.about-values dt { color: var(--orange); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.about-values dd { max-width: 60ch; margin: .35rem 0 0; color: var(--muted); }

.contact-layout { display: grid; gap: 3rem; align-items: start; }
.contact-details { padding: 1.5rem 0; border-top: 2px solid var(--orange); border-bottom: 1px solid var(--line); }
.contact-details address { margin-bottom: 1.4rem; font-family: var(--font-display); font-size: 1.45rem; font-style: normal; font-weight: 700; letter-spacing: -.04em; line-height: 1.25; }
.contact-details a { color: var(--orange); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.contact-details p:last-child { margin-bottom: 0; color: var(--muted); }
.contact-form { padding: 1.4rem; border: 1px solid var(--line); background: var(--paper); }
.form-grid { display: grid; gap: 1.15rem; }
.form-field { min-width: 0; }
.form-field label { display: block; color: var(--ink); }
.optional { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
input:not([type="checkbox"]), textarea {
  width: 100%;
  padding: .8rem .85rem;
  border: 1px solid #AEB5BC;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, textarea:focus { border-color: var(--orange); outline: 2px solid transparent; }
.field-error { margin: .42rem 0 0; color: #B32000; font-size: .84rem; font-weight: 700; line-height: 1.4; }
.form-field--check { margin: 1.3rem 0; }
.checkbox { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink); font-size: .9rem; font-weight: 500; letter-spacing: 0; line-height: 1.55; text-transform: none; }
.checkbox input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--orange); }
.checkbox a { color: var(--ink); text-decoration-color: var(--orange); }
.form-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--ink); font-weight: 700; }
.form-status a { color: var(--orange); }
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.form-note a { color: var(--ink); font-weight: 700; }

.settings-box { max-width: 720px; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); background: var(--paper); }
.setting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.setting-row:first-of-type { border-top: 0; }
.setting-row h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.setting-row p { margin: 0; color: var(--muted); font-size: .9rem; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; width: 3.15rem; height: 1.8rem; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { width: 100%; height: 100%; border-radius: 99px; background: #707880; transition: background var(--ease); }
.switch span::after { position: absolute; top: .22rem; left: .22rem; width: 1.36rem; height: 1.36rem; border-radius: 50%; background: var(--paper); content: ""; transition: transform var(--ease); }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(1.35rem); }
.switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }

.site-footer { padding-top: clamp(3.5rem, 8vw, 6.5rem); color: #E8EAEC; background: var(--ink); }
.footer-grid { display: grid; gap: 2.2rem; padding-bottom: 3rem; }
.footer-brand p:not(.footer-wordmark), .site-footer address, .site-footer a, .footer-small { color: #C6CBD0; }
.footer-wordmark { margin-bottom: .8rem; color: var(--paper); font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.08em; }
.footer-wordmark span { color: var(--orange); }
.footer-brand p:not(.footer-wordmark) { max-width: 30ch; }
.site-footer address { margin-bottom: .55rem; font-style: normal; }
.site-footer a { font-weight: 700; }
.site-footer a:hover { color: var(--orange-soft); }
.footer-label { color: var(--orange-soft); }
.footer-small { margin: .8rem 0 0; font-size: .83rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; margin: 0; padding: 0; list-style: none; }
.footer-legal { padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.footer-legal p { margin-bottom: .55rem; color: #AEB5BC; font-size: .76rem; line-height: 1.5; }
.footer-legal p:last-child { margin-bottom: 0; }

.consent-banner { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; left: 1rem; max-width: 740px; margin-inline: auto; padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--orange); background: var(--paper); box-shadow: 0 12px 40px rgba(20,22,26,.2); }
.consent-banner h2 { margin-bottom: .55rem; font-size: 1.35rem; }
.consent-banner p { margin-bottom: .55rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.consent-banner a { color: var(--ink); font-weight: 700; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.consent-banner__actions .btn { min-height: 2.7rem; font-size: .72rem; }

@media (max-width: 767px) {
  html.js .menu-toggle { display: inline-flex; }
  html.js .nav { display: none; }
  html.js .nav.is-open { display: block; }
  html.js .header-cta { display: none; }
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; padding-bottom: 0; }
  .hero__content { padding-top: 5.5rem; padding-bottom: 2.5rem; }
  .hero__facts { position: static; }
}

@media (min-width: 640px) {
  :root { --shell: min(100% - 3rem, 1240px); }
  .hero__facts .site-shell { grid-template-columns: repeat(3, 1fr); }
  .hero__facts p { padding: .9rem 1rem .9rem 0; border-bottom: 0; }
  .hero__facts p + p { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.17); }
  .process-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field--full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --shell: min(100% - 5rem, 1240px); }
  .header-main { flex-wrap: nowrap; min-height: 5.2rem; }
  .brand-logo { flex: 0 0 202px; }
  .brand-logo svg { width: 184px; }
  .nav { flex: 1; order: 0; border: 0; }
  .nav ul { justify-content: center; padding: 0; }
  .header-cta { order: 0; }
  .split-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(3rem, 8vw, 8rem); }
  .split-layout--reverse > :first-child { order: 2; }
  .region-layout { grid-template-columns: 1.2fr .8fr; gap: 6rem; }
  .service-intro { grid-template-columns: minmax(0, 1fr) 280px; gap: 6rem; }
  .contact-layout { grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr); gap: clamp(3rem, 8vw, 8rem); }
  .contact-form { padding: 2rem; }
}

@media (min-width: 1200px) {
  .service-lines li { grid-template-columns: 5rem minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: start; padding: 1.65rem 0; }
  .service-lines__number { font-size: 1.55rem; }
  .service-lines li > .text-link { align-self: center; justify-self: end; }
  .site-footer .footer-grid { grid-template-columns: 1.4fr .9fr .8fr; }
}

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