/* Maschinenzentrum Schack – Stylesheet */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1b1c1e;
  --ink-2: #26282c;
  --ink-3: #34373c;
  --red: #e3000b;
  --red-dark: #b8000a;
  --logo-red: #ff0000;
  --paper: #f5f3ef;
  --paper-2: #ebe7e0;
  --white: #fff;
  --line: #ddd8cf;
  --muted: #5f636a;
  --muted-light: #b9bcc2;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.22);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-stretch: 110%; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-lg { width: 30px; height: 30px; flex: none; }
.ico-xl { width: 56px; height: 56px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--head); font-stretch: 105%; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .95em 1.4em; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.12); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-sm { padding: .6em 1em; font-size: .92rem; }

.kicker { font-family: var(--head); font-stretch: 120%; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--red); margin-bottom: 1rem; display: flex; align-items: center; gap: .8em; }
.kicker::before { content: ""; width: 34px; height: 4px; background: currentColor; transform: skewX(-30deg); flex: none; }
.kicker-light { color: #fff; }
.kicker-light::before { background: var(--logo-red); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); background: rgba(27,28,30,.97); color: #fff; transition: background .3s, transform .35s, box-shadow .3s; }
.site-header.over-hero:not(.is-solid) { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); }
.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(0,0,0,.3); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; position: relative; width: clamp(220px, 26vw, 330px); flex: none; }
.logo { width: 100%; height: auto; }
.logo-color { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.logo-white { transition: opacity .3s; }
.is-solid .logo-color { opacity: 1; }
.is-solid .logo-white { opacity: 0; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.main-nav a { text-decoration: none; font-family: var(--head); font-stretch: 105%; font-weight: 650; font-size: .98rem; padding: .4em 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0) skewX(-30deg); transform-origin: left; transition: transform .25s; }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1) skewX(-30deg); }
.header-call { flex: none; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.burger .ico { width: 30px; height: 30px; }
.legal-page .site-header:not(.is-solid) { background: var(--ink); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 0 var(--gutter) 28px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.mm-logo { width: 230px; }
.mm-close { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.mm-close .ico { width: 30px; height: 30px; }
.mobile-menu ol { margin: 24px 0; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; font-family: var(--head); font-stretch: 112%; font-weight: 750; font-size: 1.7rem; }
.mobile-menu li a span { font-size: .85rem; color: var(--logo-red); font-weight: 700; }
.mm-actions { margin-top: auto; display: grid; gap: 12px; }
.mm-actions .btn { width: 100%; font-size: .95rem; word-break: break-all; }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); min-height: 640px; height: 100svh; max-height: 980px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.slide.is-active .slide-img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.45) 0%, rgba(10,10,12,.1) 30%, rgba(10,10,12,.55) 62%, rgba(10,10,12,.88) 100%), linear-gradient(90deg, rgba(10,10,12,.72), rgba(10,10,12,.25) 55%, rgba(10,10,12,0) 80%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(110px, 16vh, 170px); }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 5.4vw, 5.4rem); font-weight: 850; font-stretch: 115%; max-width: 14ch; text-wrap: balance; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 46ch; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 64px; margin-inline: auto; display: flex; gap: 10px; }
.dot { width: 34px; height: 5px; padding: 0; border: 0; background: rgba(255,255,255,.4); transform: skewX(-30deg); cursor: pointer; transition: background .3s, width .3s; }
.dot.is-active { background: var(--logo-red); width: 56px; }
.dot::before { content: ""; display: block; height: 28px; margin-top: -12px; } /* größere Klickfläche */
.hero-swoosh { position: absolute; z-index: 3; left: -2%; right: -2%; bottom: 0; height: 14px; background: var(--logo-red); transform: skewX(-40deg); }
.hero-swoosh::after { content: ""; position: absolute; right: 18%; bottom: 0; width: 26%; height: 34px; background: var(--logo-red); }

/* Facts */
.facts { background: var(--ink); color: #fff; }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 30px 22px 30px 0; border-right: 1px solid rgba(255,255,255,.12); padding-left: 22px; }
.facts-list li:first-child { padding-left: 0; }
.facts-list li:last-child { border-right: 0; }
.facts-list strong { display: block; font-family: var(--head); font-stretch: 115%; font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: 4px; }
.facts-list span { color: var(--muted-light); font-size: .93rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-intro { font-size: 1.1rem; color: var(--muted); }
.sec-head--light .sec-intro { color: var(--muted-light); }

/* Programm */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 26px); }
.cat { grid-column: span 2; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cat--wide { grid-column: span 3; }
.cat-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); position: relative; }
.cat--wide .cat-media { aspect-ratio: 16 / 9; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cat:hover .cat-media img { transform: scale(1.05); }
.cat-media--graphic { display: grid; place-items: center; background: repeating-linear-gradient(-50deg, transparent 0 22px, rgba(255,255,255,.035) 22px 44px), var(--ink-2); color: #fff; }
.cat-media--graphic::after { content: ""; position: absolute; left: -5%; right: 30%; bottom: 22%; height: 8px; background: var(--logo-red); transform: skewX(-40deg); }
.cat-graphic { position: relative; z-index: 1; display: grid; place-items: center; width: 108px; height: 108px; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; }
.cat-body { padding: clamp(22px, 2.4vw, 32px); position: relative; display: flex; flex-direction: column; flex: 1; }
.cat-nr { font-family: var(--head); font-weight: 800; font-stretch: 120%; color: var(--red); font-size: .85rem; letter-spacing: .1em; }
.cat h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-top: .3em; }
.cat p { color: var(--muted); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 8px; }
.chips li { font-size: .84rem; font-weight: 600; padding: .38em .8em; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; line-height: 1.3; }
.programm-ask { margin: clamp(32px, 4vw, 48px) 0 0; text-align: center; }

/* Service */
.service { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.service::before { content: ""; position: absolute; right: -10%; top: 70px; width: 55%; height: 10px; background: var(--logo-red); transform: skewX(-40deg); opacity: .9; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--ink-2); padding: clamp(26px, 2.6vw, 36px); }
.svc .ico-lg { color: var(--logo-red); width: 40px; height: 40px; margin-bottom: 22px; }
.svc h3 { font-size: 1.2rem; }
.svc p { color: var(--muted-light); font-size: .97rem; margin: 0; }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: inherit; font-family: var(--head); font-weight: 650; font-stretch: 105%; font-size: .93rem; padding: .6em 1.1em; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.g-grid { columns: 4 260px; column-gap: 14px; }
.g-item { break-inside: avoid; margin-bottom: 14px; }
.g-item[hidden] { display: none; }
.g-item a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.g-item img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-item a:hover img, .g-item a:focus-visible img { transform: scale(1.04); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.78)); opacity: 0; transform: translateY(6px); transition: all .3s; }
.g-zoom { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.92); border-radius: 50%; color: var(--ink); opacity: 0; transition: opacity .3s; }
.g-item a:hover .g-cap, .g-item a:focus-visible .g-cap, .g-item a:hover .g-zoom { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; } }

/* Marken */
.marken { background: var(--paper-2); padding-block: clamp(56px, 7vw, 96px); }
.brand-grid { display: grid; gap: clamp(28px, 3.5vw, 44px); }
.brand-group h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-stretch: 115%; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.brand-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.logo-tile { background: #fff; border-radius: var(--radius); height: 112px; display: grid; place-items: center; padding: 18px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.05); border-bottom: 3px solid transparent; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.logo-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-bottom-color: var(--red); }
.js .brand-group .logo-tile { opacity: 0; transform: translateY(14px); }
.js .brand-group.is-in .logo-tile { opacity: 1; transform: none; transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s, 0s; }
.js .brand-group.is-in .logo-tile:hover { transform: translateY(-4px); transition-delay: 0s; }

/* Über uns */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.about-media::after { content: ""; position: absolute; left: -16px; bottom: -16px; width: 60%; height: 10px; background: var(--logo-red); transform: skewX(-40deg); }
.about-text h3 { margin-top: 1.6em; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 118%; }
.team { display: grid; gap: 10px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 18px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--red); }
.p-name { font-weight: 700; font-family: var(--head); font-stretch: 108%; font-size: 1.08rem; }
.p-role { grid-row: 2; color: var(--muted); font-size: .92rem; }
.person a { grid-row: 1 / 3; grid-column: 2; align-self: center; display: inline-flex; align-items: center; gap: .45em; text-decoration: none; font-weight: 600; white-space: nowrap; }
.person a:hover { color: var(--red); }

/* Kontakt */
.kontakt { background: #fff; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.kontakt-list { margin: 28px 0 0; display: grid; gap: 22px; }
.kontakt-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 2px 16px; }
.kontakt-list .ico-lg { grid-row: 1 / 3; color: var(--red); }
.kontakt-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.kontakt-list dd { margin: 0; font-size: 1.08rem; }
.kontakt-list a { text-decoration: none; font-weight: 600; }
.kontakt-list a:hover { color: var(--red); }
.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px), var(--ink-2); color: #fff; display: flex; flex-direction: column; }
.map-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.map-placeholder .ico-xl { color: var(--logo-red); margin-bottom: 10px; }
.map-title { font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 1.4rem; margin-bottom: .3em; }
.map-text { color: var(--muted-light); max-width: 40ch; font-size: .95rem; }
.map-text a { color: #fff; }
.map iframe { position: absolute; inset: 0 0 52px; width: 100%; height: calc(100% - 52px); border: 0; }
.map-route { display: flex; align-items: center; justify-content: center; gap: .5em; height: 52px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 650; font-size: .95rem; position: relative; z-index: 1; }
.map-route:hover { background: var(--red); }

/* CTA */
.cta { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0 -10% 0 55%; background: rgba(0,0,0,.1); transform: skewX(-40deg); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(44px, 6vw, 72px); flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); margin-bottom: .25em; }
.cta p { margin: 0; max-width: 52ch; color: rgba(255,255,255,.92); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: 64px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { width: 280px; margin-bottom: 18px; }
.site-footer strong { color: #fff; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav li { margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }

/* Quickbar (mobil) */
.quickbar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12,12,14,.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100vh; padding: 60px 0 24px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb-fig figcaption { color: #fff; display: flex; gap: 18px; align-items: baseline; font-size: .98rem; text-align: center; flex-wrap: wrap; justify-content: center; }
.lb-count { color: var(--muted-light); font-size: .85rem; font-variant-numeric: tabular-nums; }
.lb-btn { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb-btn:hover { background: var(--red); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }

/* Rechtstexte */
.page-hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + 56px) 0 72px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 850; margin: 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal a { color: var(--red-dark); }
.legal-date { color: var(--muted); font-size: .92rem; margin-top: 2em; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .main-nav, .header-call { display: none; }
  .burger { display: block; }
}
@media (max-width: 1023px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat, .cat--wide { grid-column: span 1; }
  .cat--wide .cat-media { aspect-ratio: 16 / 10; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .facts-list li { padding: 22px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .facts-list li:nth-child(odd) { padding-left: 0; }
  .facts-list li:nth-child(even) { border-right: 0; }
  .facts-list li:nth-child(n+3) { border-bottom: 0; }
  .about-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .quickbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); border-top: 3px solid var(--red); transform: translateY(110%); transition: transform .35s; padding-bottom: env(safe-area-inset-bottom); }
  .quickbar.is-visible { transform: none; }
  .quickbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 600; }
  .quickbar a + a { border-left: 1px solid rgba(255,255,255,.1); }
  .quickbar .ico { width: 22px; height: 22px; }
  .site-footer { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand { width: 210px; }
  .hero { min-height: 600px; }
  .hero h1 { font-size: clamp(2rem, 1.1rem + 4.6vw, 2.6rem); font-stretch: 104%; overflow-wrap: anywhere; hyphens: auto; }
  .hero-content { padding-bottom: 104px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-dots { bottom: 50px; }
  .hero-swoosh { height: 10px; }
  .hero-swoosh::after { height: 22px; }
  .cat-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .facts-list strong { font-size: 1.08rem; }
  .facts-list span { font-size: .85rem; }
  .g-grid { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .g-cap { font-size: .76rem; padding: 26px 10px 9px; }
  .footer-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person a { grid-row: auto; grid-column: 1; margin-top: 6px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-fig { grid-column: 1; padding: 60px 8px 90px; }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .map { min-height: 360px; }
}
/* ===================== Animationen ===================== */

/* Kreissäge, die beim Scrollen durch ein Brett schneidet */
.has-saw { padding-top: clamp(24px, 4vw, 48px); }
.sawcut { position: relative; height: clamp(120px, 14vw, 180px); margin-bottom: clamp(24px, 4vw, 48px); overflow: hidden; --p: 0; --blade: clamp(104px, 12vw, 168px); }
.saw-track { position: absolute; inset: 0; }
.saw-board { position: absolute; left: -2%; right: -2%; top: 50%; height: clamp(40px, 4.2vw, 60px); transform: translateY(-50%); }
.saw-half { position: absolute; left: 0; right: 0; height: 50%;
  background:
    repeating-linear-gradient(178.6deg, rgba(255,240,215,0) 0 5px, rgba(140,84,36,.22) 5px 6px, rgba(255,240,215,0) 6px 11px, rgba(255,240,215,.22) 11px 13px, rgba(255,240,215,0) 13px 19px),
    repeating-linear-gradient(181.2deg, rgba(120,70,28,0) 0 9px, rgba(120,70,28,.16) 9px 10.5px, rgba(120,70,28,0) 10.5px 23px),
    radial-gradient(ellipse 60px 9px at 22% 70%, rgba(110,60,22,.35), transparent 70%),
    radial-gradient(ellipse 44px 7px at 71% 30%, rgba(110,60,22,.3), transparent 70%),
    linear-gradient(180deg, #e8c08a, #d4a065 55%, #c8914f);
  transition: transform .9s cubic-bezier(.3,1.6,.5,1); }
.saw-top { top: 0; border-radius: 2px 2px 0 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.35); }
.saw-bottom { bottom: 0; border-radius: 0 0 2px 2px; background-position: 0 -14px, 0 -7px, 0 0, 0 0, 0 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), 0 10px 18px -12px rgba(0,0,0,.45); }
/* Schnittfuge: wächst hinter dem Blatt mit */
.saw-kerf { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #3b2412, #1e130a 85%, rgba(30,19,10,.4)); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.sawcut.is-done .saw-top { transform: translateY(-5px) rotate(-.25deg); }
.sawcut.is-done .saw-bottom { transform: translateY(3px); }
.saw-blade-pos { position: absolute; top: 50%; left: 0; width: var(--blade); height: var(--blade); margin-top: calc(var(--blade) / -2);
  transform: translateX(calc(var(--p) * (100vw - var(--blade) * .2) - var(--blade) * .5)); will-change: transform; }
.saw-blade { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); animation: spin 2.4s linear infinite; }
.sawcut.is-cutting .saw-blade { animation-duration: .35s; }
.sawcut.is-done .saw-blade-pos { transform: translateX(calc(100vw + var(--blade))); transition: transform 1.1s cubic-bezier(.5,0,.3,1); }
@keyframes spin { to { transform: rotate(360deg); } }
.saw-dust { position: absolute; inset: 0; pointer-events: none; }
.dust { position: absolute; top: 50%; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: var(--c, #d9a66a); animation: dust .9s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes dust {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; }
}

/* Hero: Überschrift wortweise, Swoosh schiebt sich ein */
.js .hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.js .hero-title .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.25s + var(--i) * .09s); }
@keyframes wordUp { to { transform: none; } }
.js .hero .kicker, .js .hero .lead, .js .hero-ctas { opacity: 0; animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero .kicker { animation-delay: .1s; }
.js .hero .lead { animation-delay: .75s; }
.js .hero-ctas { animation-delay: .95s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero-swoosh, .js .page-hero .hero-swoosh { transform-origin: left; animation: swoosh 1.1s cubic-bezier(.7,0,.2,1) .2s both; }
@keyframes swoosh { from { transform: skewX(-40deg) scaleX(0); } to { transform: skewX(-40deg) scaleX(1); } }

/* Scroll-Hinweis mit drehendem Sägeblatt */
.scroll-cue { position: absolute; z-index: 3; right: var(--gutter); bottom: 54px; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-stretch: 112%; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; --bg: #2b2c2f; }
.cue-blade { width: 38px; height: 38px; color: rgba(255,255,255,.9); animation: spin 6s linear infinite; }
.scroll-cue:hover .cue-blade { animation-duration: .6s; color: var(--logo-red); }
.js .scroll-cue { opacity: 0; animation: fadeUp .8s ease 1.3s forwards; }

/* Sägeblatt im Button */
.btn-blade { width: 1.35em; height: 1.35em; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.btn-dark { --bg: var(--ink); }
.btn-dark:hover .btn-blade { transform: rotate(540deg); }
.btn .ico:last-child { transition: transform .25s; }
.btn:hover .ico:last-child { transform: translateX(4px); }

/* CTA: großes Blatt als Wasserzeichen */
.cta { --bg: var(--red); }
.cta-blade { position: absolute; right: -90px; top: 50%; width: 360px; height: 360px; margin-top: -180px; color: rgba(255,255,255,.1); animation: spin 22s linear infinite; pointer-events: none; }

/* Gestaffeltes Einblenden */
.js .reveal { transition-delay: var(--d, 0s); }
.js .kicker::before { transition: transform .7s cubic-bezier(.7,0,.2,1) .15s; }
.js .reveal:not(.is-in) .kicker::before { transform: skewX(-30deg) scaleX(0); transform-origin: left; }
.js .cat .chips li { opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .4s, transform .4s cubic-bezier(.3,1.5,.5,1), background .2s, border-color .2s; }
.js .cat.is-in .chips li { opacity: 1; transform: none; transition-delay: calc(.35s + var(--d, 0s) + var(--i) * 35ms), calc(.35s + var(--d, 0s) + var(--i) * 35ms), 0s, 0s; }
.cat .chips li:hover { background: #fff; border-color: var(--red); }
.js .svc .ico-lg * { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1); }
.js .svc.is-in .ico-lg * { stroke-dashoffset: 0; transition-delay: calc(var(--d, 0s) + .3s); }
.svc { transition: background .3s; }
.svc:hover { background: var(--ink-3); }
.svc:hover .ico-lg { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-10deg); } 65% { transform: rotate(8deg); } }
.js .g-item.reveal { transform: translateY(20px) scale(.97); }
.js .g-item.reveal.is-in { transform: none; }
.facts-list li strong { position: relative; }

@media (max-width: 1023px) {
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { height: 88px; padding: 14px; }
  .logo-tile img { max-height: 50px; }
  .cta-blade { width: 240px; height: 240px; margin-top: -120px; right: -80px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-title .w > span, .js .hero .kicker, .js .hero .lead, .js .hero-ctas, .js .scroll-cue { opacity: 1; transform: none; }
  .js .cat .chips li, .js .g-item.reveal, .js .brand-group .logo-tile { opacity: 1; transform: none; }
  .js .svc .ico-lg * { stroke-dashoffset: 0; }
  .js .reveal:not(.is-in) .kicker::before { transform: skewX(-30deg); }
  .sawcut { --p: 1; }
  .saw-blade-pos { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
