/* ==========================================================================
   CG Bau – Stylesheet (Mobile-First)
   1. Fonts & Tokens   2. Basis   3. Utilities & Buttons   4. Header & Nav
   5. Hero   6. Leistungen   7. Unternehmen   8. Ablauf
   9. Maschinen   10. Referenzen & Lightbox   11. FAQ   12. Kontakt & Formular
   13. Footer   14. Unterseiten   15. Motion
   ========================================================================== */

/* 1. Fonts & Tokens ------------------------------------------------------- */
/* Barlow: an Straßenschildern angelehnte Groteske (SIL Open Font License) */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --asphalt: #23231f;
  --asphalt-2: #2e2e29;
  --orange: #f39a1d;
  --orange-hover: #ffad3b;
  --orange-ink: #9a5a00;       /* Orange als Text auf Hell – 5,5:1 */
  --paper: #fafaf8;
  --white: #ffffff;
  --gravel: #e6e3dc;
  --line: #dcd9d1;
  --ink: #23231f;
  --muted: #5f5d58;            /* 6,5:1 auf Weiß */
  --on-dark: #f3f2ee;
  --on-dark-muted: #b8b5ae;    /* 8,3:1 auf Asphalt */
  --pipe: #1f9d55;
  --laser: #e2231a;
  --error: #b42318;
  --success: #1d7a45;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + .75vw, 1.85rem);
  --step-3: clamp(2.1rem, 1.65rem + 2vw, 3.3rem);
  --step-4: clamp(2.7rem, 1.9rem + 3.8vw, 5.2rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --max: 76rem;
  --r-sm: 6px;
  --r-md: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-family: var(--font); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }
p + p { margin-top: 1em; }
.tnum { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--asphalt); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--asphalt); color: var(--white); padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. Utilities & Buttons -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-intro { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-intro p { color: var(--muted); margin-top: 1rem; font-size: var(--step-1); line-height: 1.5; }
.kicker { display: block; font-weight: 700; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .9rem; }
.on-dark .kicker { color: var(--orange); }

.btn {
  --btn-bg: var(--orange); --btn-fg: var(--asphalt);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bg);
  font-weight: 600; font-size: var(--step-0); line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .25s var(--ease); }
.btn:hover { --btn-bg: var(--orange-hover); box-shadow: 0 6px 18px -8px rgba(243, 154, 29, .8); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--white); box-shadow: none; }
.on-dark .btn--outline, .btn--outline-light { --btn-fg: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .btn--outline:hover, .btn--outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--asphalt); border-color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn:hover .icon-arrow { transform: translateX(3px); }

.text-link { font-weight: 600; color: var(--orange-ink); text-decoration: underline; }
.text-link:hover { color: var(--ink); }

/* 4. Header & Nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
/* Blur auf eigenem Layer: backdrop-filter am Header selbst würde das fixierte Mobilmenü einsperren */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 250, 248, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.site-header:has(.nav.is-open)::before { background: var(--paper); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { height: 40px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: var(--step--1);
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); padding: 1rem var(--gutter) 2rem;
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); letter-spacing: -.02em;
}
.nav li a[aria-current="true"] { color: var(--orange-ink); }
.nav-cta { margin-top: auto; padding-top: 2rem; display: grid; gap: .75rem; }
.nav-cta .nav-phone { display: flex; justify-content: center; }
body.nav-open { overflow: hidden; }

@media (min-width: 64em) {
  :root { --header-h: 80px; }
  .brand img { height: 48px; }
  .nav-toggle { display: none; }
  .nav {
    position: static; inset: auto; visibility: visible; opacity: 1; transform: none; transition: none;
    flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; overflow: visible;
  }
  .nav ul { display: flex; gap: 1.75rem; }
  .nav li a {
    min-height: 44px; border: 0; font-family: var(--font); font-weight: 600; font-size: .95rem; letter-spacing: 0;
    position: relative; color: var(--muted); transition: color .2s;
  }
  .nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav li a:hover, .nav li a[aria-current="true"] { color: var(--ink); }
  .nav li a:hover::after, .nav li a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-cta { margin: 0; padding: 0; display: flex; }
  .nav-cta .btn--outline { display: none; }
}

/* 5. Hero ----------------------------------------------------------------- */
/* Mobil: Foto als Hintergrund hinter dem Text. Desktop: Text auf Asphalt links, Foto randlos rechts. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--asphalt); color: var(--on-dark);
  min-height: calc(100svh - var(--header-h)); display: grid; align-items: end;
}
.hero-grid { position: relative; z-index: 1; padding-block: 9rem clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero h1 { max-width: 15ch; color: var(--white); }
.hero-kicker { display: block; margin-bottom: 1rem; font-weight: 700; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hero-lead { margin-top: 1.25rem; max-width: 36rem; font-size: var(--step-1); line-height: 1.5; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-actions .btn { flex: 1 1 14rem; }
.trust { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: .65rem; }
.trust li { display: flex; align-items: center; gap: .65rem; font-weight: 600; font-size: var(--step--1); }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--pipe); }
.hero .trust svg { color: var(--orange); }

.hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 35%; background: var(--asphalt-2); }
.hero-media::after { /* Abdunkelung für lesbaren Text */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,35,31,.35) 0%, rgba(35,35,31,.72) 38%, rgba(35,35,31,.94) 70%, var(--asphalt) 100%);
}
.hero-media figcaption { display: none; }
.laser-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--laser); flex: none; box-shadow: 0 0 0 3px rgba(226, 35, 26, .28); }

@media (min-width: 48em) {
  .trust { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 64em) {
  .hero { min-height: min(calc(100svh - var(--header-h)), 860px); align-items: center; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
  .hero-text { padding-right: clamp(1.5rem, 3vw, 3.5rem); }
  .hero-media { left: 50%; z-index: 0; }
  .hero-media::after { background: linear-gradient(90deg, var(--asphalt) 0, rgba(35,35,31,0) 22%); }
  .hero-media img { object-position: 50% 40%; }
  .hero-media figcaption {
    position: absolute; right: 16px; bottom: 16px; z-index: 1;
    display: flex; align-items: center; gap: .65rem;
    background: rgba(35, 35, 31, .86); color: var(--on-dark);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    padding: .6rem .85rem; border-radius: var(--r-sm); font-size: var(--step--1); line-height: 1.35;
  }
}

/* Absperrband mit laufenden Leistungen (dekorativ) */
.ribbon { overflow: hidden; padding-block: 1.25rem; background: linear-gradient(var(--asphalt) 50%, var(--paper) 50%); }
.ribbon-band {
  width: 104%; margin-left: -2%; transform: rotate(-1.6deg);
  background: var(--orange); color: var(--asphalt);
  border-block: 7px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--asphalt) 0 10px, var(--orange) 10px 20px) 7;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.5);
}
.ribbon-track { display: flex; width: max-content; padding-block: .7rem; }
.ribbon-track span {
  display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.ribbon-track span::after { content: ""; width: .55em; height: .55em; background: var(--asphalt); transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  .ribbon-track { animation: ribbon 38s linear infinite; }
  /* Hero: Foto zoomt langsam, Inhalte steigen beim Laden gestaffelt auf */
  .hero-media img { animation: kenburns 24s ease-in-out infinite alternate; }
  .hero-text > * { animation: rise .8s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
  .hero-text > :nth-child(4) { animation-delay: .36s; }
  /* Leistungen blenden beim Scrollen nacheinander ein */
  .js .services .service { opacity: 0; transform: translateY(28px); }
  .js .services .service.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s var(--ease); transition-delay: var(--d, 0s); }
  .js .services .service.is-in:not(.service--cta):hover { transform: translateY(-3px); transition-delay: 0s; }
  .services .service:nth-child(3n+2) { --d: .1s; }
  .services .service:nth-child(3n) { --d: .2s; }
}
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 6. Leistungen ----------------------------------------------------------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); }
.service {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service picture { overflow: hidden; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gravel); transition: transform .6s var(--ease); }
.service img.pos-low { object-position: 50% 70%; }
.service img.pos-mid { object-position: 50% 40%; }
.service-body { padding: 1.4rem 1.5rem 1.6rem; }
.service-tag { display: block; font-size: var(--step--1); font-weight: 600; color: var(--orange-ink); margin-bottom: .35rem; }
.service-body p { color: var(--muted); margin-top: .5rem; }
.service-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; min-height: 24px; font-weight: 700; color: var(--orange-ink); text-decoration: none; }
.service-link svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.service-link:hover { color: var(--ink); }
.service-link:hover svg { transform: translateX(3px); }
.service--dark .service-link { color: var(--orange); }
.service--dark .service-link:hover { color: var(--white); }
.service--dark { background: var(--asphalt); border-color: var(--asphalt); color: var(--on-dark); }
.service--dark .service-tag { color: var(--orange); }
.service--dark .service-body p { color: var(--on-dark-muted); }
.service-icon { width: 56px; height: 56px; margin: 1.6rem 1.5rem 0; color: var(--orange); }
.service--dark .service-body { margin-top: auto; }
.service--cta { background: var(--orange); border-color: var(--orange); color: var(--asphalt); justify-content: space-between; padding-bottom: 1.5rem; }
.service--cta h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.service--cta .service-body p { color: var(--asphalt); }
.service--cta .btn { margin-inline: 1.5rem; align-self: flex-start; }
@media (min-width: 40em) { /* Kontaktkarte als breiter Abschluss unter den Leistungen */
  .service--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; padding: .5rem 1.5rem .5rem 0; }
  .service--cta h3 { font-size: var(--step-2); }
  .service--cta .btn { margin: 0; flex: none; align-self: center; }
}
.btn--dark { --btn-bg: var(--asphalt); --btn-fg: var(--white); border-color: var(--asphalt); }
.btn--dark:hover { --btn-bg: #000; box-shadow: none; }

@media (hover: hover) {
  .service:not(.service--cta):hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(35,35,31,.45); }
  .service:hover img { transform: scale(1.04); }
}
@media (min-width: 40em) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .services { grid-template-columns: repeat(3, 1fr); } }

/* 7. Unternehmen ---------------------------------------------------------- */
.company { background: var(--white); border-block: 1px solid var(--line); }
.company-grid { display: grid; gap: 2.5rem; }
.company-text p { color: var(--muted); }
.company-text h2 { margin-bottom: 1.25rem; }
.firms { display: grid; gap: .75rem; margin-top: 2rem; }
.firm { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.firm img { width: 64px; height: auto; flex: none; }
.firm strong { display: block; font-weight: 600; }
.firm span { color: var(--muted); font-size: var(--step--1); }
.company-media { margin: 0; }
.company-media img { width: 100%; border-radius: var(--r-md); aspect-ratio: 4 / 3; object-fit: cover; background: var(--gravel); }
.company-media figcaption { margin-top: .6rem; font-size: var(--step--1); color: var(--muted); }
@media (min-width: 40em) and (max-width: 63.99em) { .firms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .company-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } .company-media { order: -1; } }

/* 8. Ablauf --------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem 1.5rem 1.7rem; }
.step-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--asphalt); color: var(--orange); margin-bottom: 1.1rem; }
.step-badge svg { width: 30px; height: 30px; }
.step-no { display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .25rem; }
.step p { color: var(--muted); margin-top: .4rem; }
@media (max-width: 39.99em) { /* mobil kompakt: Symbol links neben dem Text */
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; padding: 1.2rem; }
  .step-badge { grid-row: span 3; width: 48px; height: 48px; border-radius: 12px; margin: 0; }
  .step-badge svg { width: 26px; height: 26px; }
}
@media (min-width: 40em) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step:not(:last-child)::after { /* Pfeil zum nächsten Schritt */
    content: ""; position: absolute; top: 2.6rem; right: -1.15rem; width: .8rem; height: .8rem; z-index: 1;
    border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg);
  }
}

/* 9. Maschinenpark -------------------------------------------------------- */
.machines { position: relative; isolation: isolate; overflow: hidden; background: var(--asphalt); color: var(--on-dark); }
.machines-bg { position: absolute; inset: 0; z-index: -1; }
.machines-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .28; filter: grayscale(.3); }
.machines-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,35,31,.55), var(--asphalt) 92%); }
.machines .section-intro p { color: var(--on-dark-muted); }
.machine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden; }
.machine { background: rgba(46,46,41,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 1.6rem 1.5rem; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.machine svg { width: 46px; height: 46px; color: var(--orange); }
.machine p { color: var(--on-dark-muted); margin-top: .3rem; }
@media (min-width: 48em) { .machine-list { grid-template-columns: repeat(3, 1fr); } .machine { grid-template-columns: 1fr; padding: 2rem; } }

/* 10. Referenzen & Lightbox ---------------------------------------------- */
.filter { display: flex; gap: .5rem; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: var(--step--1); color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }
.chip .count { opacity: .85; margin-left: .3rem; font-variant-numeric: tabular-nums; }

/* Slider: native Scroll-Snap, Wischen auf Touch, Ziehen mit der Maus, Pfeile */
.slider { position: relative; }
.gallery {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem;
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { flex: 0 0 78%; scroll-snap-align: start; }
.gallery li[hidden] { display: none; }
.gallery.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery.is-dragging .tile { pointer-events: none; }
@media (min-width: 40em) { .gallery li { flex-basis: 40%; } }
@media (min-width: 64em) { .gallery li { flex-basis: calc((100% - 2 * var(--gutter) - 36px) / 4); } .gallery { cursor: grab; } }
.slider-ui { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.slider-progress { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 25%; border-radius: 2px; background: var(--orange); transition: width .2s, margin-left .2s; }
.slider-btns { display: flex; gap: .5rem; }
.slider-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--asphalt); background: var(--white); color: var(--asphalt); transition: background .2s, color .2s, opacity .2s;
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover:not(:disabled) { background: var(--asphalt); color: var(--white); }
.slider-btn:disabled { opacity: .3; cursor: default; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--r-sm); overflow: hidden; background: var(--gravel); aspect-ratio: 3 / 4;
}
.tile picture { position: absolute; inset: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem .8rem .7rem; text-align: left;
  background: linear-gradient(transparent, rgba(20,20,18,.78)); color: var(--white); font-size: var(--step--1); font-weight: 600; line-height: 1.3;
}
.tile-zoom {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--asphalt);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease);
}
.tile-zoom svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .tile:hover img { transform: scale(1.045); }
  .tile:hover .tile-zoom, .tile:focus-visible .tile-zoom { opacity: 1; transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #121210; color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .25s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; }
.lb-counter { font-size: var(--step--1); color: var(--on-dark-muted); padding-left: .5rem; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; padding: 0 .5rem; touch-action: pan-y; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.lb-stage img.is-loading { opacity: .3; }
.lb-caption { text-align: center; padding: .9rem 1rem 1.2rem; font-size: var(--step--1); color: var(--on-dark); }
.lb-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); color: var(--white); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(0,0,0,.8); border-color: rgba(255,255,255,.6); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* 11. FAQ ----------------------------------------------------------------- */
.faq-grid { display: grid; gap: 2rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 64px; padding: 1rem 0; font-weight: 600; font-size: var(--step-1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: background-color .2s, border-color .2s; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; transition: transform .3s var(--ease);
}
.faq-item summary .plus::after { transform: rotate(90deg); }
.faq-item[open] summary .plus { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }
.faq-item[open] summary .plus::after { transform: rotate(0deg); }
.faq-item summary:hover .plus { border-color: var(--ink); }
.faq-answer { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }
.faq-media { display: none; margin: 2rem 0 0; }
.faq-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; border-radius: var(--r-md); background: var(--gravel); }
@media (min-width: 64em) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } .faq-media { display: block; } }

/* 12. Kontakt & Formular -------------------------------------------------- */
.contact { background: var(--asphalt); color: var(--on-dark); }
.contact-grid { display: grid; gap: 3rem; }
.contact .section-intro p { color: var(--on-dark-muted); }
.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.direct a, .direct .direct-static {
  display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: center;
  padding: .9rem 1rem; border-radius: var(--r-md); text-decoration: none;
  background: var(--asphalt-2); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, background-color .2s;
}
.direct a:hover { border-color: var(--orange); background: #34342e; }
.direct .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,154,29,.14); color: var(--orange); }
.direct .ico svg { width: 20px; height: 20px; }
.direct small { display: block; color: var(--on-dark-muted); font-size: var(--step--1); }
.direct strong { font-weight: 600; font-size: var(--step-1); line-height: 1.3; overflow-wrap: anywhere; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.form-card h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); letter-spacing: -.02em; }
.form-card > p { color: var(--muted); margin-top: .5rem; }
.form { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); }
.field .req { color: var(--error); }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: .75rem .9rem; border-radius: var(--r-sm);
  border: 1.5px solid #b9b5ab; background: var(--white); font-size: 1rem; /* 16px verhindert iOS-Zoom */
  transition: border-color .2s, box-shadow .2s;
}
.input:hover { border-color: #8f8b81; }
.input:focus { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 3px rgba(243,154,29,.45); }
textarea.input { min-height: 140px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323231f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field.has-error .input { border-color: var(--error); }
.field-error { display: none; color: var(--error); font-size: var(--step--1); font-weight: 600; }
.field.has-error .field-error { display: block; }

.file-drop {
  position: relative; display: grid; gap: .25rem; justify-items: start; padding: 1rem;
  border: 1.5px dashed #b9b5ab; border-radius: var(--r-sm); background: var(--white); transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--asphalt); background: #fff8ee; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop:focus-within { border-color: var(--asphalt); box-shadow: 0 0 0 3px rgba(243,154,29,.45); }
.file-drop strong { font-weight: 600; }
.file-list { list-style: none; margin: .25rem 0 0; padding: 0; font-size: var(--step--1); color: var(--muted); }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; font-size: var(--step--1); color: var(--muted); }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--asphalt); cursor: pointer; }
.field.has-error .check { color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; border-radius: var(--r-sm); padding: 1rem 1.1rem; font-weight: 600; }
.form-status.is-error { display: block; background: #fdecea; color: var(--error); }
.form-success { display: none; text-align: left; }
.form-success.is-visible { display: block; animation: rise .5s var(--ease); }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: var(--white); margin-bottom: 1.2rem; }
.form-success .tick svg { width: 28px; height: 28px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s var(--ease) forwards; }
.form-success p { color: var(--muted); margin-top: .6rem; }
.form.is-hidden { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .icon-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 64em) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }

/* 13. Footer -------------------------------------------------------------- */
.site-footer { background: #1a1a17; color: var(--on-dark-muted); padding: 3.5rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: var(--step--1); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h2 { font-family: var(--font); font-weight: 600; font-size: var(--step-0); color: var(--white); letter-spacing: 0; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { text-decoration: none; display: inline-block; padding-block: .2rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }

/* Mobile Schnellkontakt */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(250,250,248,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease);
}
.quickbar.is-visible { transform: none; }
.quickbar .btn { min-height: 48px; }
body.has-quickbar .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 48em) { .quickbar { display: none; } body.has-quickbar .site-footer { padding-bottom: 2rem; } }

/* 14. Unterseiten --------------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) 1rem; }
.prose { max-width: 46rem; padding-bottom: var(--section); }
.prose h2 { font-size: var(--step-2); margin: 2.5rem 0 .8rem; }
.prose h3 { margin: 1.75rem 0 .5rem; }
.prose p, .prose li { color: #3d3c38; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--orange-ink); font-weight: 600; }
.prose a:hover { color: var(--ink); }
.prose address { font-style: normal; }
.center-page { min-height: calc(100vh - var(--header-h) - 200px); display: grid; align-content: center; padding-block: var(--section); }
.center-page p { color: var(--muted); max-width: 34rem; margin-top: 1rem; font-size: var(--step-1); }
.center-page .hero-actions { margin-top: 2rem; }
.big-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: .9; letter-spacing: -.04em; color: var(--gravel); }

/* Leistungsseiten (/leistungen/…) ---------------------------------------- */
.breadcrumb ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--step--1); color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.lp-hero { background: var(--asphalt); color: var(--on-dark); padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem); }
.lp-hero h1 { color: var(--white); max-width: 16ch; }
.lp-lead { margin-top: 1.25rem; max-width: 38rem; font-size: var(--step-1); line-height: 1.5; }
.lp-hero .btn--outline { --btn-fg: var(--white); border-color: rgba(255,255,255,.6); }
.lp-hero .btn--outline:hover { --btn-bg: var(--white); --btn-fg: var(--asphalt); }
.lp-hero-grid { display: grid; gap: 2rem; align-items: center; }
.lp-media { margin: 0; }
.lp-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--asphalt-2); }
.lp-media--icon { display: none; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--asphalt-2); color: var(--orange); }
.lp-media--icon svg { width: 40%; height: auto; }
@media (min-width: 64em) { .lp-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } .lp-media--icon { display: grid; } }
.lp-split { display: grid; gap: 1.5rem; }
@media (min-width: 64em) { .lp-split { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.lp-checks li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 600; }
.lp-checks svg { width: 22px; height: 22px; flex: none; color: var(--pipe); margin-top: .1rem; }
@media (min-width: 40em) { .lp-checks { grid-template-columns: 1fr 1fr; } }
.lp-arbeit { background: var(--asphalt); color: var(--on-dark); }
.lp-arbeit h2 { color: var(--white); margin-bottom: 2rem; }
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lp-cards li { padding: 1.5rem; border-radius: var(--r-md); background: var(--asphalt-2); border-top: 3px solid var(--orange); }
.lp-cards h3 { color: var(--white); }
.lp-cards p { color: var(--on-dark-muted); margin-top: .5rem; }
@media (min-width: 48em) { .lp-cards { grid-template-columns: repeat(3, 1fr); } }
.lp-fotos h2 { margin-bottom: 1.5rem; }
.lp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); background: var(--gravel); }
@media (min-width: 40em) { .lp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .lp-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-more { margin-top: 1rem; }
.lp-cta { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-md); background: var(--orange); color: var(--asphalt); }
.lp-cta h2 { font-size: var(--step-2); }
.lp-cta p { margin-top: .5rem; max-width: 40rem; }
.lp-cta .btn { justify-self: start; }
@media (min-width: 48em) { .lp-cta { grid-template-columns: 1fr auto; } }
.lp-andere-title { font-size: var(--step-2); margin: 3rem 0 1rem; }
.lp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.lp-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding: .8rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-weight: 600; text-decoration: none; }
.lp-links a:hover { border-color: var(--ink); }
.lp-links svg { width: 1.1em; height: 1.1em; flex: none; color: var(--orange-ink); }
@media (min-width: 48em) { .lp-links { grid-template-columns: repeat(3, 1fr); } }

/* 15. Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
@media print {
  .site-header, .quickbar, .nav, .filter, .lightbox, .form-card { display: none !important; }
  body { background: #fff; }
}
