/* ═══════════════════════════════════════════════════════════
   AG-Haustechnik — Editorial Craft
   Bricolage Grotesque · Newsreader italic · Hanken Grotesk
   Warm paper · warm ink · cobalt accent
   ═══════════════════════════════════════════════════════════ */

:root {
  /* palette — pure black theme */
  --paper:    #000000;
  --paper-2:  #000000;
  --card:     #111111;
  --ink:      #F4EFE3;
  --ink-2:    #CBC6BA;
  --muted:    #908A7E;
  --muted-2:  #6B6559;
  --line:     rgba(255,255,255,.15);
  --line-2:   rgba(255,255,255,.08);

  /* accent — their blue, brightened for black */
  --accent:   #2C4BEE;
  --accent-2: #1B39D6;
  --accent-soft: rgba(44,75,238,.16);

  /* dark surfaces (all black, raised cards) */
  --dark:     #000000;
  --dark-2:   #0D0D0D;
  --dark-card:#141414;
  --dark-line:rgba(255,255,255,.13);
  --on-dark:  #F4EFE3;
  --on-dark-mut: rgba(244,239,227,.62);
  --accent-lite: #8C9DFF;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --serif:   "Newsreader", Georgia, serif;
  --sans:    "Hanken Grotesk", -apple-system, system-ui, sans-serif;

  --container: 1280px;
  --wide: 1480px;
  --gutter: 40px;
  --nav-h: 80px;

  --ease: cubic-bezier(.22,.61,.27,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ─── Type ─── */
h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.0;
  text-wrap: balance;
  color: var(--ink);
}
h1 {
  font-size: clamp(52px, 8.6vw, 128px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .94;
}
h2 {
  font-size: clamp(34px, 5.2vw, 74px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: .98;
}
h3 { font-size: clamp(21px, 2.1vw, 28px); font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
h1 em, h2 em { font-size: 1.04em; }
p { color: var(--muted); margin: 0; }
.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  font-weight: 400;
}

/* ─── Layout primitives ─── */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide { max-width: var(--wide); }
.section { padding: clamp(44px, 6vw, 84px) 0; position: relative; }
.section + .section { padding-top: 0; }
@media (max-width: 720px) { :root { --gutter: 22px; } }

/* index label */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: attr(data-no);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 13px;
}
.eyebrow--plain::before { content: none; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 52px);
}
.section-head h2 { margin-top: 22px; }
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  gap: 18px;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { max-width: 56ch; }
.galerie-head h2 {
  margin-top: 0;
  font-size: clamp(54px, 9vw, 128px);
  line-height: .95;
  letter-spacing: -.03em;
}
/* tighter vertical rhythm around "Meine Galerie:" */
#galerie { padding-top: clamp(10px, 1.6vw, 22px); padding-bottom: clamp(28px, 4vw, 56px); }
#galerie .galerie-head { margin-bottom: clamp(8px, 1.2vw, 16px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--lg { padding: 20px 32px; font-size: 15px; }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.section--dark .btn--ghost { color: var(--on-dark); border-color: var(--dark-line); }
.section--dark .btn--ghost:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

/* ─── Brand / logo ─── */
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__chip {
  display: grid; place-items: center;
  height: 52px; padding: 0 12px;
  background: #fff; border-radius: 12px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.brand__chip img { height: 32px; width: auto; display: block; }
.brand__logo { height: 46px; width: auto; display: block; flex-shrink: 0; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.brand__mark .dot { color: var(--accent-lite); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand__txt small {
  font-size: 9.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a { position: relative; padding: 4px 0; color: var(--ink-2); transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--accent); transition: right .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__phone {
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2);
}
.nav__phone::before { display: none; content: none; }
.nav__phone-ico { color: var(--accent); flex: none; }
.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 18px;
  color: #fff;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__phone {
    width: 46px; height: 46px;
    border: 1px solid var(--line); border-radius: 12px;
    justify-content: center; gap: 0;
  }
  .nav__phone-num { display: none; }
  .nav__phone-ico { width: 20px; height: 20px; }
  .nav__burger { display: inline-flex; }
  .brand__txt small { display: none; }
}
@media (max-width: 560px) {
  .nav__cta .btn { display: none; }
}

/* mobile menu */
.mmenu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 99;
  padding: 36px var(--gutter);
  flex-direction: column;
  gap: 6px;
}
.mmenu.is-open { display: flex; }
.mmenu__close {
  position: absolute; top: 18px; right: var(--gutter);
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  color: #fff; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.mmenu__close:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }
.mmenu a {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 16px 2px;
  color: #FFFFFF;
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.mmenu a:hover, .mmenu a:active { color: var(--accent-lite); padding-left: 8px; }
.mmenu .btn { align-self: flex-start; margin-top: 22px; font-size: 15px; color: #fff; }

/* ─── Hero ─── */
.hero { padding: clamp(48px, 8vw, 104px) 0 0; position: relative; }
.hero__inner { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.hero__logo {
  height: clamp(96px, 13vw, 168px);
  width: auto;
  display: block;
  margin: 0 0 38px -4px;
}
.hero__inner > * { animation: heroIn .9s var(--ease) both; }
.hero__inner > *:nth-child(2) { animation-delay: .06s; }
.hero__inner > *:nth-child(3) { animation-delay: .12s; }
.hero__inner > *:nth-child(4) { animation-delay: .18s; }
.hero__inner > *:nth-child(5) { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__inner > * { animation: none; } }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 30px; margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 12px; }
.hero__meta span:not(:last-child)::after { content: ""; }
.hero__avail { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); }
.hero__avail::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #2faa5e; box-shadow: 0 0 0 4px rgba(47,170,94,.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { margin: 0 0 34px; max-width: 16ch; }
.hero__lead {
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.5; color: var(--ink-2);
  max-width: 52ch; margin-bottom: 40px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .hero__visual { aspect-ratio: 4/3; } }
.hero__visual image-slot {
  --slot-bg: var(--paper-2);
  --slot-border: 0;
  --slot-color: var(--muted-2);
  width: 100%; height: 100%;
}
.hero__tag {
  position: absolute; left: 22px; bottom: 22px; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 100px;
  background: rgba(0,0,0,.62);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  pointer-events: none;
}

/* ─── Marquee ─── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
  color: var(--ink);
  padding: 24px 0;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 120px);
}
.marquee__track { white-space: nowrap; display: flex; }
.marquee__inner {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 600; letter-spacing: -.02em;
  animation: marquee 34s linear infinite;
  flex-shrink: 0;
}
.marquee__inner span { display: inline-flex; align-items: center; padding: 0 32px; }
.marquee__inner span::after { content: "✦"; color: var(--accent-lite); font-size: .5em; margin-left: 64px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ─── About ─── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 44px; } }

.about__photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about__photo image-slot {
  --slot-bg: var(--paper-2);
  --slot-border: 0;
  --slot-color: var(--muted-2);
  width: 100%; height: 100%;
}
.about__photo .badge {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  background: var(--accent); color: #fff;
  padding: 9px 16px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; border-radius: 100px;
}
.about__photo .caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(0,0,0,.6);
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.about__photo .caption strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.about__photo .caption span { color: rgba(244,239,227,.6); font-size: 12.5px; }

.about__content h2 { margin: 22px 0 26px; }
.about__content > p { margin-bottom: 30px; font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 50ch; }
.about__list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 0; }
.about__list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
  font-size: 15.5px; color: var(--ink);
}
.about__list li::before {
  content: "→"; color: var(--accent); font-weight: 700;
  font-size: 15px; flex-shrink: 0;
}

/* ─── Services (editorial rows) ─── */
.srv-list { border-top: 1px solid var(--line); }
.srv-row {
  display: grid;
  grid-template-columns: 64px minmax(0,1.1fr) minmax(0,1.2fr);
  gap: 24px;
  align-items: center;
  padding: 22px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .35s var(--ease), padding .35s var(--ease), color .35s var(--ease);
}
.srv-row:hover { background: #141414; border-radius: 16px; border-color: transparent; padding-left: 32px; padding-right: 32px; }
.srv-row:hover + .srv-row { border-top: 1px solid transparent; }
.srv-row__no {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  color: var(--accent); letter-spacing: 0; padding-top: 0;
}
.srv-row:hover .srv-row__no { color: var(--accent-lite); }
.srv-row__main h3 { font-size: clamp(18px, 1.5vw, 21px); transition: color .35s var(--ease); }
.srv-row:hover .srv-row__main h3 { color: var(--ink); }
.srv-row__main p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .35s var(--ease); }
.srv-row:hover .srv-row__main p { color: rgba(244,239,227,.66); }
.srv-row__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.srv-row__tags li {
  font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  padding: 4px 11px; border: 1px solid var(--line); border-radius: 100px;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.srv-row:hover .srv-row__tags li { color: var(--on-dark-mut); border-color: var(--dark-line); }
.srv-row__mark {
  font-family: var(--display); font-size: 20px; color: var(--muted-2);
  text-align: right; padding-top: 0;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.srv-row:hover .srv-row__mark { color: var(--accent-lite); transform: translateX(4px) rotate(-45deg); }
@media (max-width: 860px) {
  .srv-row { grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 18px 10px; }
  .srv-row__tags { grid-column: 2; margin-top: 10px; }
  .srv-row__mark { display: none; }
  .srv-row:hover { padding-left: 16px; padding-right: 16px; }
}

/* ─── Gallery (masonry) ─── */
.gallery__masonry {
  column-count: 4;
  column-gap: 16px;
}
@media (max-width: 1080px) { .gallery__masonry { column-count: 3; } }
@media (max-width: 720px)  { .gallery__masonry { column-count: 2; } }
@media (max-width: 460px)  { .gallery__masonry { column-count: 1; } }
.gallery__masonry .gm {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  --slot-bg: var(--paper-2);
  --slot-border: 0;
  --slot-color: var(--muted-2);
}
.gallery__cta { text-align: center; margin-top: 48px; }

/* ─── Atica reference (editorial feature) ─── */
.atica { padding: clamp(56px, 8vw, 120px) 0; }
.atica__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.atica__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-lite);
}
.atica__eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--accent-lite); opacity: .6;
}
.atica__text h2 {
  margin: 20px 0 0;
  font-size: clamp(40px, 6vw, 84px);
  line-height: .94; letter-spacing: -.035em;
}
.atica__text p {
  margin-top: 24px; font-size: 17px; line-height: 1.65;
  color: var(--ink-2); max-width: 44ch;
}
.atica__meta {
  list-style: none; margin: 30px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center;
  font-family: var(--display);
}
.atica__meta li {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center;
}
.atica__meta li:not(:last-child)::after {
  content: "✦"; color: var(--accent-lite); font-size: 9px;
  margin: 0 16px; transform: translateY(-2px);
}

.atica__media { position: relative; padding-bottom: clamp(24px, 4vw, 56px); }
.atica__img {
  margin: 0; position: relative; overflow: hidden;
  background: #0d0d0d; border-radius: 16px;
}
.atica__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s var(--ease);
}
.atica__img:hover img { transform: scale(1.05); }
.atica__img figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  padding: 8px 15px; border-radius: 100px;
  background: rgba(0,0,0,.6); color: var(--on-dark);
  border: 1px solid var(--dark-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
}
.atica__img--main {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.atica__img--inset {
  position: absolute; right: -28px; bottom: -28px; z-index: 4;
  width: 44%; aspect-ratio: 3 / 4;
  border: 7px solid var(--paper);
  box-shadow: 0 30px 70px -22px rgba(0,0,0,.85);
}
.atica__img--inset figcaption { left: 10px; bottom: 10px; padding: 6px 12px; font-size: 10.5px; }
@media (max-width: 860px) {
  .atica__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .atica__media { padding-bottom: 0; }
  .atica__img--inset {
    position: static; width: 64%; margin: -40px 0 0 auto;
    aspect-ratio: 4 / 3;
  }
}

/* base image-slot */
image-slot {
  --slot-bg: var(--paper-2);
  --slot-border: 1px solid var(--line);
  --slot-color: var(--muted-2);
  width: 100%; height: 100%;
}

/* ─── Dark section base ─── */
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-mut); }
.section--dark .lead { color: rgba(244,239,227,.8); }
.section--dark .eyebrow { color: var(--accent-lite); }

/* ─── Project showcase carousel ─── */
.project__viewer { position: relative; }
.project__stage {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 16px; overflow: hidden;
}
@media (max-width: 700px) { .project__stage { aspect-ratio: 4/3; } }
.project__slot {
  position: absolute !important; inset: 0;
  width: 100% !important; height: 100% !important; display: none;
  --slot-bg: var(--dark-card); --slot-border: 0; --slot-color: rgba(244,239,227,.34);
}
.project__slot[data-active] { display: block; }
.project__counter {
  position: absolute; top: 22px; left: 22px; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 100px;
  background: color-mix(in srgb, var(--dark) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--dark-line);
  font-family: var(--display); font-size: 14px; font-weight: 700;
  color: var(--on-dark); pointer-events: none; font-variant-numeric: tabular-nums;
}
.project__counter .sep { opacity: .4; }
.project__counter [data-total] { color: rgba(244,239,227,.5); }
.project__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 58px; height: 58px;
  background: color-mix(in srgb, var(--dark) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--dark-line); color: var(--on-dark);
  font-size: 28px; line-height: 1; display: grid; place-items: center;
  border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.project__arrow:hover { background: var(--accent); border-color: var(--accent); }
.project__arrow:active { transform: translateY(-50%) scale(.93); }
.project__arrow--prev { left: 22px; }
.project__arrow--next { right: 22px; }
@media (max-width: 600px) {
  .project__arrow { width: 46px; height: 46px; font-size: 24px; }
  .project__arrow--prev { left: 12px; } .project__arrow--next { right: 12px; }
}
.project__progress { margin-top: 22px; height: 2px; width: 100%; background: var(--dark-line); border-radius: 100px; overflow: hidden; }
.project__progress-fill { height: 100%; background: var(--accent-lite); width: 0%; transition: width .4s var(--ease); }

/* ─── Vorher / Nachher ─── */
.ba { background: var(--paper-2); }
.ba__head { text-align: center; margin-bottom: 40px; }
.ba__head .eyebrow { justify-content: center; }
.ba__head h2 { margin-top: 18px; }
.ba__head .lead { margin: 18px auto 0; }
.ba__tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 6px; border-radius: 100px;
  margin: 0 auto 40px; max-width: max-content; justify-content: center;
}
.ba__tab {
  background: transparent; border: 0; padding: 12px 24px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--muted); border-radius: 100px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.ba__tab:hover { color: var(--ink); }
.ba__tab.is-active { background: var(--accent); color: #fff; }
.ba__stage {
  position: relative;
  width: 100%; max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 4/3; background: #0d0d0d;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  user-select: none; touch-action: none;
}
@media (max-width: 700px) { .ba__stage { aspect-ratio: 3/4; } }
.ba__pair { position: absolute; inset: 0; display: none; }
.ba__pair.is-active { display: block; }
.ba__before, .ba__after { position: absolute; inset: 0; overflow: hidden; }
.ba__before image-slot, .ba__after image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  --slot-bg: #0d0d0d; --slot-border: 0; --slot-color: var(--muted-2);
}
.ba__after { clip-path: inset(0 0 0 50%); -webkit-clip-path: inset(0 0 0 50%); }
.ba__after image-slot { --slot-bg: #101216; }
.ba__badge {
  position: absolute; top: 16px; padding: 8px 15px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; border-radius: 100px; z-index: 3; pointer-events: none;
}
.ba__badge--before { left: 16px; background: rgba(0,0,0,.66); color: var(--on-dark); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ba__badge--after { right: 16px; background: var(--accent); color: #fff; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: #fff; z-index: 5; cursor: ew-resize; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.ba__handle-line { position: absolute; inset: 0; background: #fff; }
.ba__handle-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; background: #fff; border-radius: 50%;
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  font-size: 19px; font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06); cursor: ew-resize;
}
.ba__handle-knob span { line-height: 1; }
.ba__handle-knob span:first-child { color: var(--muted); }
.ba__handle-knob span:last-child { color: var(--accent); }
.ba__pair-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4;
  padding: 9px 18px; background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ─── Contact ─── */
.contact { background: var(--dark); color: var(--on-dark); }
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .contact__layout { grid-template-columns: 1fr; gap: 32px; } }
.contact__head { max-width: 620px; margin: 0 auto clamp(28px, 3.5vw, 44px); text-align: center; }
.contact__head .eyebrow { justify-content: center; color: var(--accent-lite); }
.contact__head h2 { margin: 14px 0 14px; }
.contact__head p { color: var(--on-dark-mut); font-size: 15px; line-height: 1.5; max-width: 42ch; margin: 0 auto; }

.contact__cards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 auto clamp(28px, 3.5vw, 44px); max-width: 920px; }
.contact__card {
  display: flex; align-items: center; gap: 13px;
  flex: 0 1 auto;
  padding: 14px 18px; background: var(--dark-card);
  border: 1px solid var(--dark-line); border-radius: 12px; color: var(--on-dark);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.contact__card:not(.contact__card--static):hover { background: var(--dark-2); border-color: rgba(255,255,255,.22); transform: translateY(-3px); }
.contact__card-ico {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(140,157,255,.14); color: var(--accent-lite);
  border-radius: 10px; font-size: 17px; margin: 0;
}
.contact__card-body { display: flex; flex-direction: column; min-width: 0; }
.contact__card-lbl { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,227,.5); display: block; margin-bottom: 2px; }
.contact__card-val { font-size: 14px; font-weight: 600; color: var(--on-dark); line-height: 1.35; white-space: nowrap; }
.contact__card-val small { display: block; font-size: 12px; font-weight: 400; color: var(--on-dark-mut); margin-top: 2px; }

.contact__form-block {
  max-width: 680px; margin: 0 auto;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 18px; padding: clamp(22px, 2.6vw, 34px);
}
.contact__form-head { margin-bottom: 20px; text-align: center; }
.contact__form-head h3 { color: var(--on-dark); font-size: clamp(20px,2.4vw,26px); font-weight: 700; margin-bottom: 6px; }
.contact__form-head p { color: var(--on-dark-mut); font-size: 14px; }
.contact__form { display: grid; gap: 18px; }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .contact__form .row { grid-template-columns: 1fr; } }
.contact__form label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,227,.5); margin-bottom: 10px; }
.contact__form input, .contact__form textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2); padding: 12px 0;
  font: inherit; font-size: 16px; color: var(--on-dark); outline: none;
  transition: border-color .25s var(--ease);
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: rgba(244,239,227,.32); }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--accent-lite); }
.contact__form textarea { resize: vertical; min-height: 100px; }
.contact__form .submit-row { margin-top: 12px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact__form .consent { font-size: 12px; color: rgba(244,239,227,.42); max-width: 34ch; line-height: 1.5; }
.contact__success { padding: 40px 0; text-align: center; }
.contact__success-icon {
  width: 66px; height: 66px; margin: 0 auto 24px;
  border: 1px solid var(--accent-lite); border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-lite); font-size: 30px;
}

/* ─── Footer (kompakt) ─── */
.footer { background: #000; color: var(--on-dark); padding: 24px 0 18px; }
.footer__grid {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 14px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; max-width: none; margin-right: auto; }
.footer__brand .brand__txt b { color: var(--on-dark); }
.footer__brand .brand__txt small { color: var(--on-dark-mut); }
.footer__plate { display: inline-block; background: #fff; border-radius: 9px; padding: 7px 11px; margin: 0; box-shadow: 0 8px 22px -14px rgba(0,0,0,.8); }
.footer__logo { height: 30px; width: auto; display: block; }
.footer__brand p { color: var(--on-dark-mut); font-size: 12px; line-height: 1.45; max-width: 30ch; }
.footer h4 { display: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 16px; flex-wrap: wrap; }
.footer__col { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__col li { color: var(--on-dark-mut); font-size: 12px; }
.footer__cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--dark-line); border-radius: 100px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.footer__cta:hover { border-color: var(--accent); background: rgba(44,75,238,.12); }
.footer__cta-ico {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  background: var(--accent); color: #fff;
}
.footer__cta-body { display: flex; flex-direction: column; line-height: 1.15; }
.footer__cta-body small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,239,227,.5); }
.footer__cta-body strong { font-family: var(--display); font-size: 13.5px; font-weight: 700; color: var(--on-dark); }
.footer__cta:hover .footer__cta-body strong { color: var(--accent-lite); }
.footer a { color: rgba(244,239,227,.86); transition: color .25s var(--ease); }
.footer a:hover { color: var(--accent-lite); }
.footer__bottom { padding-top: 0; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: rgba(244,239,227,.45); gap: 18px; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal button { background: transparent; border: 0; padding: 0; color: rgba(244,239,227,.7); font-size: 11.5px; }
.footer__legal button:hover { color: var(--accent-lite); }

/* ─── Modal ─── */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,8,4,.66); display: none; align-items: flex-start; justify-content: center; padding: 60px 24px; overflow-y: auto; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.is-open { display: flex; }
.modal__panel { background: var(--card); color: var(--ink); max-width: 760px; width: 100%; padding: clamp(36px,5vw,60px); position: relative; border-radius: 18px; animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal__close { position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; display: grid; place-items: center; }
.modal__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal__panel h2 { font-size: clamp(28px,4vw,40px); margin-bottom: 28px; }
.modal__panel h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.modal__panel h3:first-of-type { margin-top: 0; }
.modal__panel p, .modal__panel li { font-size: 14px; line-height: 1.65; color: var(--muted); }
.modal__panel ul { padding-left: 20px; margin: 8px 0; }
.modal__panel address { font-style: normal; }
.modal__panel a { color: var(--accent); }
body.modal-open { overflow: hidden; }
body.menu-open { overflow: hidden; }

/* ─── Reveal (only when JS is present; degrades to visible) ─── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; } html { scroll-behavior: auto; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media print { .nav, .mmenu, .footer__legal { display: none !important; } body::before { display: none; } }

/* ═══════════════════════════════════════════════
   ELEVATION PASS — depth, hover, polish
   ═══════════════════════════════════════════════ */

/* Hero — logo as the statement */
.hero {
  overflow: clip;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.hero__inner { width: 100%; }
.hero__glow {
  position: absolute; top: -200px; right: -140px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(44,75,238,.30), rgba(44,75,238,0) 62%);
  pointer-events: none; z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; gap: 36px; } }
.hero__left { display: flex; flex-direction: column; align-items: flex-start; }
.hero__logoplate {
  display: inline-block;
  background: #fff;
  border-radius: 26px;
  padding: clamp(28px, 3.4vw, 52px) clamp(34px, 4.4vw, 64px);
  margin: 0 0 36px;
  box-shadow: 0 40px 90px -34px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06);
}
.hero__logo { height: clamp(132px, 19vw, 268px); width: auto; display: block; margin: 0; }
.hero__ctas { margin-bottom: 0; }

/* Hero visual */
.hero__visual {
  position: relative; margin-top: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(0,0,0,.9);
  border-radius: 18px;
  border: 1px solid var(--line-2);
}
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 6s linear;
  z-index: 1;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.hero__visual-grad {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 44%);
}
.hero__tag { z-index: 5; }
.hero__badge {
  position: absolute; top: 22px; right: 22px; z-index: 3;
  display: flex; align-items: center; gap: 13px;
  padding: 13px 19px; border-radius: 15px;
  background: rgba(0,0,0,.5); border: 1px solid var(--dark-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__badge b { font-family: var(--display); font-size: 23px; font-weight: 800; color: var(--accent-lite); letter-spacing: -.04em; }
.hero__badge span { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mut); line-height: 1.35; }
@media (max-width: 560px) { .hero__badge { display: none; } }

/* Gallery — zoom + ring on hover */
.gallery__masonry .gm {
  position: relative; display: block; width: 100%;
  margin: 0 0 16px; break-inside: avoid;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2); background: #0d0d0d;
}
.gallery__masonry .gm image-slot {
  display: block; width: 100%; height: 100%;
  transition: transform .8s var(--ease);
  --slot-bg: #0d0d0d; --slot-border: 0; --slot-color: var(--muted-2);
}
.gallery__masonry .gm:hover image-slot { transform: scale(1.07); }
.gallery__masonry .gm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(140,157,255,0);
  background: linear-gradient(to top, rgba(44,75,238,0), transparent 50%);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.gallery__masonry .gm:hover::after {
  box-shadow: inset 0 0 0 1.5px rgba(140,157,255,.45);
  background: linear-gradient(to top, rgba(44,75,238,.18), transparent 52%);
}

/* Project — dots */
.project__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.project__dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.22);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.project__dot:hover { background: rgba(255,255,255,.5); }
.project__dot.is-active { background: var(--accent-lite); transform: scale(1.35); }

/* CTA band */
.ctaband { padding: clamp(36px, 5vw, 64px) 0; }
.ctaband__inner {
  position: relative; overflow: hidden;
  border-radius: 26px; border: 1px solid var(--dark-line);
  background: linear-gradient(135deg, #0b1230 0%, #07070c 58%);
  padding: clamp(36px, 5.5vw, 76px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.ctaband__glow {
  position: absolute; top: -140px; left: -90px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(44,75,238,.42), transparent 62%);
  pointer-events: none;
}
.ctaband__text { position: relative; z-index: 1; }
.ctaband__text .eyebrow { color: var(--accent-lite); }
.ctaband__text h2 { margin: 16px 0 14px; font-size: clamp(30px, 4.4vw, 58px); color: var(--on-dark); }
.ctaband__text p { color: var(--on-dark-mut); max-width: 46ch; font-size: 17px; }
.ctaband__actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) { .ctaband__inner { flex-direction: column; align-items: flex-start; } }

/* Einfamilienhaus — 3D infinite gallery */
.efh3d {
  position: relative;
  width: 100%;
  height: clamp(440px, 64vh, 760px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  background: radial-gradient(120% 100% at 50% 0%, #0e1230 0%, #050507 60%);
  touch-action: pan-y;
  cursor: grab;
}
.efh3d:active { cursor: grabbing; }
.efh3d canvas { display: block; width: 100% !important; height: 100% !important; }
.efh3d__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,239,227,.6); pointer-events: none;
  background: rgba(0,0,0,.4); border: 1px solid var(--dark-line);
  padding: 8px 16px; border-radius: 100px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.efh-grid--fallback[hidden] { display: none; }

/* Einfamilienhaus — square photo grid */
.efh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1080px) { .efh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .efh-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.efh-tile {
  position: relative; margin: 0;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--dark-line);
  background: #0d0d0d; cursor: zoom-in;
}
.efh-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.efh-tile:hover img { transform: scale(1.09); filter: brightness(1.05); }
.efh-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(140,157,255,0);
  background: linear-gradient(to top, rgba(44,75,238,0), transparent 55%);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.efh-tile:hover::after {
  box-shadow: inset 0 0 0 1.5px rgba(140,157,255,.5);
  background: linear-gradient(to top, rgba(44,75,238,.2), transparent 55%);
}
.efh-tile::before {
  content: "⤢"; position: absolute; top: 10px; right: 12px; z-index: 2;
  font-size: 15px; color: #fff; opacity: 0; transform: translateY(-4px);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.efh-tile:hover::before { opacity: .95; transform: none; }

/* clickable affordance for gallery masonry */
.gallery__masonry .gm { cursor: zoom-in; }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  animation: lb-in .3s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__btn {
  position: absolute; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__btn:active { transform: scale(.93); }
.lightbox__close { top: 22px; right: 22px; width: 50px; height: 50px; font-size: 20px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:active, .lightbox__next:active { transform: translateY(-50%) scale(.93); }
.lightbox__counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 18px; border-radius: 100px;
}
.lightbox__counter .sep { opacity: .45; margin: 0 6px; }
@media (max-width: 600px) {
  .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
  .lightbox__btn { width: 46px; height: 46px; font-size: 22px; }
}

/* ═══════════════════════════════════════════════
   GALLERY — expandable stack → grid ("Aus der Werkstatt")
   ═══════════════════════════════════════════════ */
.xgal { position: relative; }

/* top bar — only meaningful when expanded */
.xgal__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 0; opacity: 0; overflow: hidden;
  margin-bottom: 0; transition: height .4s var(--ease), opacity .4s var(--ease), margin-bottom .4s var(--ease);
}
.xgal.is-open .xgal__bar { height: 48px; opacity: 1; margin-bottom: 28px; }
.xgal__back {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: 0; padding: 0;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: color .25s var(--ease);
}
.xgal__back:hover { color: var(--ink); }
.xgal__back-ico {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  font-size: 18px; color: var(--ink);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.xgal__back:hover .xgal__back-ico { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(-3px); }
.xgal__count {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.xgal__count b { color: var(--accent-lite); font-family: var(--display); font-weight: 700; }

/* ── collapsed intro: pile + teaser ── */
.xgal__intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 3vw, 28px);
  min-height: 600px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.xgal.is-open .xgal__intro {
  opacity: 0; transform: scale(.96); pointer-events: none;
  position: absolute; inset: 0; height: 0; min-height: 0; overflow: hidden;
}

/* the tilted pile */
.xgal__stack {
  position: relative;
  width: 100%; max-width: 720px;
  height: clamp(300px, 42vw, 420px);
  display: grid; place-items: center;
  cursor: pointer;
}
.xgal__pcard {
  position: absolute; margin: 0;
  width: clamp(168px, 24vw, 268px);
  aspect-ratio: 1 / 1;
  border-radius: clamp(28px, 3vw, 44px);
  overflow: hidden;
  border: 6px solid var(--paper);
  background: #0d0d0d;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.05);
  transform: rotate(var(--r)) translate(var(--x), var(--y));
  z-index: var(--z);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.xgal__pcard img { width: 100%; height: 100%; object-fit: cover; }
.xgal__stack:hover .xgal__pcard {
  transform: rotate(calc(var(--r) * .72)) translate(var(--x), calc(var(--y) - 14px)) scale(1.04);
}
@media (hover: hover) {
  .xgal__pcard:hover { z-index: 50 !important; }
}
@media (max-width: 720px) {
  .xgal__pcard { --x: calc(var(--xm, 0px)); }
  .xgal__pcard:nth-child(1) { --x: -96px; }
  .xgal__pcard:nth-child(3) { --x: 84px; }
}

.xgal__teaser { text-align: center; max-width: 46ch; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.xgal__lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px); line-height: 1.3; color: var(--ink);
  letter-spacing: -.01em; text-wrap: balance;
}

/* ── expanded grid ── */
.xgal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 26px);
  opacity: 0; transform: translateY(20px);
  height: 0; overflow: hidden; pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.xgal.is-open .xgal__grid {
  opacity: 1; transform: none; height: auto; overflow: visible; pointer-events: auto;
}
@media (max-width: 760px) { .xgal__grid { grid-template-columns: repeat(2, 1fr); } }
.xgal__tile {
  position: relative; margin: 0;
  aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 36px);
  border: 4px solid var(--paper);
  background: #0d0d0d; cursor: zoom-in;
  box-shadow: 0 20px 50px -28px rgba(0,0,0,.9);
  /* enter animation */
  opacity: 0; transform: translateY(26px) scale(.96);
}
.xgal.is-open .xgal__tile {
  animation: xgalTileIn .55s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes xgalTileIn { to { opacity: 1; transform: none; } }
.xgal__tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.xgal__tile:hover img { transform: scale(1.07); filter: brightness(1.05); }
.xgal__tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(140,157,255,0);
  background: linear-gradient(to top, rgba(44,75,238,0), transparent 55%);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.xgal__tile:hover::after {
  box-shadow: inset 0 0 0 1.5px rgba(140,157,255,.5);
  background: linear-gradient(to top, rgba(44,75,238,.2), transparent 55%);
}
.xgal__tile::before {
  content: "⤢"; position: absolute; top: 12px; right: 14px; z-index: 2;
  font-size: 15px; color: #fff; opacity: 0; transform: translateY(-4px);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.xgal__tile:hover::before { opacity: .95; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .xgal__tile { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════
   CINEMATIC HERO (v2) — full-bleed slideshow
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: clip;
  padding: calc(var(--nav-h) + 24px) 24px 70px;
  text-align: left;
  background: var(--dark);
}
.hero__bg { position: absolute; inset: 0 0 0 auto; width: 52%; z-index: 0; }
@media (max-width: 760px) { .hero__bg { width: 100%; inset: 0; } }
.hero__bg .hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.07);
  transition: opacity 1.4s var(--ease), transform 7.5s linear;
}
.hero__bg .hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide--mobile { display: none; }
@media (max-width: 760px) {
  .hero__slide--desktop { display: none; }
  .hero__slide--mobile { display: block; filter: brightness(0.62); }
}
.hero__scrim {
  position: absolute; inset: 0 0 0 auto; width: 52%; z-index: 1;
  background:
    linear-gradient(to left, rgba(5,5,9,.45) 0%, rgba(5,5,9,.2) 55%, var(--dark) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,.2) 40%, rgba(5,5,9,.6) 100%);
}
@media (max-width: 760px) {
  .hero__scrim {
    width: 100%; inset: 0;
    background: linear-gradient(rgba(5,5,9,.25), rgba(5,5,9,.25));
  }
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  max-width: 520px;
  margin-left: clamp(0px, 6vw, 120px);
  margin-right: auto;
}
@media (max-width: 760px) {
  .hero { text-align: center; }
  .hero__content { margin: 0 auto; max-width: 560px; align-items: center; text-align: center; }
  .hero__kicker { text-align: center; }
  .hero__ctas { justify-content: center; }
}
.hero__logoplate {
  display: inline-block; background: #fff;
  border-radius: clamp(20px, 2.4vw, 34px);
  padding: clamp(28px, 3.6vw, 58px) clamp(34px, 4.6vw, 76px);
  margin: 0;
  box-shadow: 0 50px 130px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12);
}
.hero__logo { height: clamp(96px, 14vw, 188px); width: auto; display: block; margin: 0; }
.hero__kicker {
  color: rgba(244,239,227,.92); margin: 0;
  font-size: clamp(13px, 1.2vw, 16px); font-weight: 500; letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; margin: 0; }
.hero__ctas .btn { padding: 13px 22px; font-size: 13.5px; }
.hero__ctas .btn--ghost {
  background: rgba(0,0,0,.32); color: #fff;
  border-color: rgba(255,255,255,.34);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__ctas .btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,239,227,.72);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll i { font-style: normal; font-size: 18px; animation: heroBob 1.9s ease-in-out infinite; }
@keyframes heroBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 600px) { .hero__scroll span { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i { animation: none; } }

/* ═══════════════════════════════════════════════
   MOBILE — alles kompakter (Layout bleibt gleich)
   ═══════════════════════════════════════════════ */
@media (max-width: 560px) {
  /* Typografie kleiner */
  h1 { font-size: clamp(34px, 11vw, 46px); line-height: .96; }
  h2 { font-size: clamp(26px, 8.2vw, 36px); line-height: 1; }
  h3 { font-size: 18px; }
  .lead { font-size: 15.5px; line-height: 1.5; }
  p { font-size: 14.5px; }

  /* Sektions-Abstände enger */
  .section { padding: clamp(34px, 9vw, 52px) 0; }

  /* Hero */
  .hero__logoplate { padding: 20px 26px; border-radius: 18px; align-self: center; }
  .hero__logo { height: clamp(64px, 20vw, 96px); }
  .hero__kicker { font-size: 12px; }
  .hero__content { gap: 16px; align-items: center; text-align: center; }
  .hero__ctas { justify-content: center; }
  .hero__ctas .btn { padding: 11px 18px; font-size: 12.5px; }
  .hero__scroll { bottom: 18px; }

  /* Buttons generell */
  .btn--lg { padding: 12px 20px; font-size: 13px; }

  /* About */
  .about__grid { gap: 32px; }

  /* Leistungen — Service-Zeilen kompakter */
  .srv-row { padding: 14px 8px; gap: 4px 12px; }
  .srv-row__no { font-size: 13px; }
  .srv-row__main h3 { font-size: 19px; }
  .srv-row p { font-size: 13.5px; }
  .srv-row__tags { gap: 6px; }
  .srv-row__tags li { font-size: 11px; padding: 4px 10px; }

  /* Atica */
  .atica { padding: 44px 0; }
  .atica__text p { font-size: 14.5px; margin-top: 16px; }
  .atica__meta { margin-top: 22px; padding-top: 18px; }
  .atica__meta li { font-size: 13px; }
  .atica__meta li:not(:last-child)::after { margin: 0 11px; }

  /* Galerie-Überschrift */
  .galerie-head h2 { font-size: clamp(40px, 13vw, 60px); }
  #galerie { padding-top: 18px; padding-bottom: 34px; }
  #galerie .galerie-head { margin-bottom: 2px; position: relative; z-index: 3; }
  .xgal__intro { min-height: 0; gap: 10px; justify-content: flex-start; padding-top: 30px; }
  .xgal__stack { height: clamp(220px, 62vw, 320px); align-items: center; }

  /* Vorher/Nachher — mobile: Tabs & Slider weg, Paare gestapelt */
  .ba__tabs  { display: none; }
  .ba__stage {
    position: static !important;
    aspect-ratio: unset !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
  .ba__pair,
  .ba__pair.is-active {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
  }
  .ba__before,
  .ba__after {
    position: static !important;
    overflow: hidden;
    border-radius: 10px;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  .ba__before image-slot,
  .ba__after image-slot { aspect-ratio: 3/4; width: 100%; display: block; }
  .ba__handle  { display: none !important; }
  .ba__badge   { font-size: 10px; padding: 4px 8px; }
  .ba__pair-label {
    grid-column: 1 / -1;
    display: block;
    font-size: 11px;
    padding: 2px 0 4px;
    text-align: center;
  }

  /* Kontakt */
  .contact__form { gap: 14px; }
  .contact__form input, .contact__form textarea { font-size: 15px; }

  /* CTA-Band */
  .ctaband__text p { font-size: 15px; }

  /* Footer noch kompakter */
  .footer { padding: 32px 0 16px; }
  .footer__grid { gap: 24px 22px; padding-bottom: 24px; margin-bottom: 18px; }
  .footer__plate { padding: 9px 13px; border-radius: 9px; margin-bottom: 12px; }
  .footer__logo { height: 32px; }
  .footer__brand p { font-size: 12.5px; line-height: 1.5; }
  .footer h4 { font-size: 9.5px; margin-bottom: 10px; }
  .footer ul { gap: 7px; }
  .footer a, .footer__col li { font-size: 12.5px; }
  .footer__cta { margin-top: 14px; padding: 9px 14px 9px 10px; }
  .footer__cta-ico { width: 30px; height: 30px; font-size: 14px; }
  .footer__cta-body strong { font-size: 14.5px; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 11px; }
  .footer__legal { gap: 16px; justify-content: center; }
  .footer__legal button { font-size: 11px; }
  .footer__grid { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer__brand { justify-content: center; margin-right: 0; }
  .footer__col { justify-content: center; }
  .footer ul { justify-content: center; }
}
