/* ============================================================
   Baverotech — editorial / architectural studio
   ============================================================ */

:root {
  --paper: #f4f2ed;
  --paper-2: #e8e4da;
  --ink: #172944;
  --ink-2: #213a5e;
  --soft: #586a82;
  --soft-2: #93a0b4;
  --line: rgba(23, 41, 68, .16);
  --line-light: rgba(244, 242, 237, .16);
  --accent: #ca672e;
  --grey: #8a8d92;
  --container: 1280px;
  --gut: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, Segoe UI, sans-serif;
  --disp: 'Archivo', 'Inter Fallback', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Selbst gehostete Schriften (latin, variabel) — kein externer Aufruf an Google. */
@font-face { font-family: 'Inter';          font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Archivo';        font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono';  font-style: normal; font-weight: 100 800; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }

/* Metrik-angepasster Ersatzschrift (Arial), damit beim Laden von Inter
   kein Layout-Sprung entsteht (z. B. Navigationsbreite beim ersten Aufruf). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0.00%;
  size-adjust: 107.06%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { scrollbar-width: none; -ms-overflow-style: none; }      /* Scrollbar ausblenden (FF, IE) */
html::-webkit-scrollbar { display: none; }                     /* Scrollbar ausblenden (Chrome, Safari) */

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.display { font-family: var(--disp); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(2rem, 3.3vw, 2.7rem); }

/* ===== Arrow link ===== */
.al {
  display: inline-flex; align-items: baseline; gap: .5em;
  font-weight: 600; font-size: 1rem; position: relative; color: var(--ink);
  padding-bottom: 4px;
}
.al i { font-style: normal; transition: transform .35s var(--ease); }
.al::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: currentColor; transform-origin: left; transform: scaleX(1); transition: transform .4s var(--ease); }
.al:hover i { transform: translate(3px, -3px); }
.al--muted { color: var(--soft); }
.al--muted::after { background: var(--line); }
.al--muted:hover { color: var(--ink); }

/* ===== Button ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--ink); color: var(--paper);
  padding: 17px 26px; border: 0; border-radius: 2px; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover { background: var(--accent); }
.btn:hover i { transform: translate(3px, -3px); }

/* ===== Header ===== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0; background: var(--paper);
  transition: padding .35s var(--ease), box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled {
  border-bottom-color: var(--line);
  padding: 14px 0;
  box-shadow: 0 8px 24px -18px rgba(23, 41, 68, .5);
}
.hdr__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand__img { height: 62px; width: auto; display: block; transition: height .35s var(--ease); }
.hdr.is-scrolled .brand__img { height: 50px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: .94rem; font-weight: 500; color: var(--ink); position: relative; }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nav__cta i { font-style: normal; transition: transform .3s var(--ease); }
.nav__cta:hover { color: var(--accent); }
.nav__cta:hover i { transform: translate(2px, -2px); }

.burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding-top: 156px;
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 84px 0 -28px;
  z-index: -2;
  pointer-events: none;
  opacity: .36;
  background:
    linear-gradient(90deg, rgba(23, 41, 68, .052) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 41, 68, .04) 1px, transparent 1px),
    url("../images/hero-blueprint.svg");
  background-size: 92px 92px, 92px 92px, max(1800px, 122vw) auto;
  background-position: center 8px, center 8px, center top;
  background-repeat: repeat, repeat, no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 242, 237, .96) 0%, rgba(244, 242, 237, .82) 38%, rgba(244, 242, 237, .62) 100%),
    linear-gradient(180deg, rgba(244, 242, 237, 1) 0%, rgba(244, 242, 237, .38) 34%, rgba(244, 242, 237, .9) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__top {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: .76rem; text-transform: uppercase; color: var(--soft);
  padding-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.hero__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(16px, 2vw, 36px); align-items: center; padding: clamp(16px, 2vw, 36px) 0 clamp(24px, 3vw, 48px); }
.hero__col { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero__photo { position: relative; margin: 0; }
.hero__photo img { width: 134%; max-width: none; height: auto; display: block; margin-left: auto; margin-right: calc(-1 * var(--gut)); filter: drop-shadow(0 34px 46px rgba(21, 36, 60, .26)); }
.hero__title {
  font-family: var(--disp); font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.2rem, 4.7vw, 4.4rem); text-transform: none;
}
.hero__title em { font-style: normal; color: var(--accent); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease); }
.is-visible .reveal-line > span, .reveal-line.is-visible > span { transform: none; }
.hero__title .reveal-line:nth-child(2) > span { transition-delay: .08s; }

.hero__aside { max-width: 500px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); position: relative; }
.hero__aside::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.hero__aside p { color: var(--soft); font-size: 1.05rem; }
.hero__aside p + p { margin-top: 14px; }
.hero__links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }

.hero__draw { position: absolute; right: 2%; top: 16%; width: clamp(220px, 30vw, 400px); color: var(--ink); opacity: .9; pointer-events: none; z-index: -1; }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hs { padding-top: 18px; border-top: 1px solid var(--line); min-width: 0; }
.hs b { font-family: var(--disp); font-weight: 700; font-size: 1.24rem; letter-spacing: -.01em; display: block; line-height: 1.15; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.hs b i { font-style: normal; color: var(--accent); }
.hs span { display: block; margin-top: 9px; font-size: .9rem; color: var(--soft); line-height: 1.45; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

/* ===== Section base ===== */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--trade { background: var(--paper-2); }

.lead { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.lead--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin-bottom: 22px; }
.kicker--light { color: var(--soft-2); }
.kicker__dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.lead__sub { margin-top: 22px; color: var(--soft); font-size: 1.12rem; max-width: 540px; }
.section--dark .lead__sub { color: var(--soft-2); }

/* ===== Services (editorial rows) ===== */
.svc { list-style: none; border-top: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 24px;
  padding: clamp(26px, 3vw, 40px) 24px; border-bottom: 1px solid var(--line);
  position: relative; transition: color .3s;
}
.svc--materials .svc__row { grid-template-columns: 64px 1fr; }
.svc__row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: 0; }
.svc__row > * { position: relative; z-index: 1; }
.svc__row:hover { color: var(--paper); }
.svc__row:hover::before { transform: scaleY(1); }
.svc__no { font-size: .85rem; color: var(--soft); align-self: start; padding-top: 8px; }
.svc__row:hover .svc__no { color: var(--accent); }
.svc__head { display: flex; align-items: center; gap: 14px; }
.svc__section-icon {
  width: clamp(34px, 3vw, 44px);
  height: clamp(34px, 3vw, 44px);
  flex: 0 0 auto;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc__section-icon--fill {
  padding: 4px;
  fill: currentColor;
  stroke: none;
}
.svc__body h3 { font-family: var(--disp); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.svc__body p { color: var(--soft); margin-top: 8px; font-size: 1rem; max-width: 620px; }
.svc__row:hover .svc__body p { color: var(--soft-2); }
.svc__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 18px;
  max-width: 860px;
}
.svc--materials .svc__list { margin-inline: auto; }
.svc__list li {
  position: relative;
  padding: 12px 14px 12px 34px;
  min-height: 52px;
  border: 1px solid var(--line);
  background: rgba(244, 242, 237, .42);
  color: var(--soft);
  font-size: .95rem;
  line-height: 1.42;
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.svc__row:hover .svc__list li {
  border-color: var(--line-light);
  background: rgba(244, 242, 237, .06);
  color: var(--soft-2);
}

/* Materialprodukte als redaktionelle Textkarten im Popup */
.svc--materials .svc__row::before { display: none; }              /* dunkle Row-Invertierung entfernen */
.svc--materials .svc__row:hover { color: inherit; }
.svc--materials .svc__list { grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1000px; }

.svc__list li.prod {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 18px 44px 18px 20px; min-height: 0; min-width: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.svc__list li.prod::before, .svc__list li.prod::after { display: none; }   /* alte Bullet/Arrow entfernen */
.svc--materials .svc__row:hover .svc__list li.prod {                       /* Row-Hover-Änderungen zurücknehmen */
  border-color: var(--line); background: var(--paper); color: var(--ink);
}
.prod__idx { font-size: .72rem; color: var(--accent); letter-spacing: .14em; }
.prod__name { font-family: var(--disp); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; line-height: 1.22; color: var(--ink); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.prod__desc {
  color: var(--soft); font-size: .9rem; line-height: 1.5; margin-top: -4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word;
}
.prod__go {
  font-style: normal; position: absolute; top: 16px; right: 16px; color: var(--accent);
  opacity: 0; transform: translate(-4px, 4px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.svc__list li.prod:hover,
.svc--materials .svc__row:hover .svc__list li.prod:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 18px 38px -22px rgba(23, 41, 68, .55);
}
.svc__list li.prod:hover .prod__go { opacity: 1; transform: none; }
.svc__list li.prod:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.svc__arrow { font-style: normal; font-size: 1.4rem; color: var(--soft); transition: transform .4s var(--ease), color .3s; }
.svc__row:hover .svc__arrow { color: var(--accent); transform: translate(4px, -4px); }

/* ===== Trade / materials ===== */
.trade__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.speclist { list-style: none; margin: 30px 0 34px; border-top: 1px solid var(--line); }
.speclist li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 500; }
.speclist .mono { color: var(--accent); font-size: .82rem; flex: 0 0 auto; }
.trade__figures { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fig { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: baseline; }
.fig b { font-family: var(--disp); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.02em; line-height: 1; }
.fig span { color: var(--soft); font-size: 1rem; }
.trade__text .al { margin-top: 30px; }
.trade__text .lead__sub + .lead__sub { margin-top: 18px; }

/* ===== Partnerlogo-Karussell ===== */
.logos { align-self: center; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.logos__track { display: flex; align-items: center; width: max-content; animation: logos-scroll 22s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__item { flex: 0 0 auto; margin-right: clamp(44px, 5vw, 84px); display: inline-flex; align-items: center; opacity: .9; transition: opacity .3s, transform .3s var(--ease); }
.logos__item img { height: clamp(50px, 6.5vw, 82px); width: auto; display: block; }
.logos__item:hover { opacity: 1; transform: translateY(-2px); }
@keyframes logos-scroll { to { transform: translateX(-50%); } }

/* ===== Vollbreite Bildergalerie (Karussell) ===== */
.gallery { position: relative; margin-top: clamp(44px, 5vw, 76px); }
.gallery__viewport { overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; width: max-content; }
.gallery__item { flex: 0 0 auto; width: clamp(330px, 35vw, 600px); aspect-ratio: 1; margin-right: 5px; overflow: hidden; border-radius: 3px; background: var(--paper-2); scroll-snap-align: start; cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }

.gallery__nav {
  position: absolute; top: 50%; z-index: 2;
  width: clamp(42px, 4vw, 56px); height: clamp(42px, 4vw, 56px);
  display: grid; place-items: center;
  border: none; cursor: pointer; padding: 0;
  background: var(--accent); color: var(--paper);
  border-radius: 50%;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.gallery__nav svg {
  width: 42%; height: 42%;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.gallery__nav:hover { background: var(--ink); }
.gallery__nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gallery__nav--prev { left: clamp(8px, 1.5vw, 20px); transform: translateY(-50%); }
.gallery__nav--next { right: clamp(8px, 1.5vw, 20px); transform: translateY(-50%); }
.gallery__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.gallery__nav--next:hover { transform: translateY(-50%) translateX(3px); }

/* ===== Katalogs (sortiments) ===== */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 44px); border-top: 1px solid var(--line); }
.catcol__no { display: block; font-size: .82rem; text-transform: uppercase; color: var(--accent); padding: 26px 0 12px; }
.catcol ul { list-style: none; }
.catcol li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 1.02rem; }
.catcol li:first-child { border-top: 0; }
.catgrid__cta { margin-top: clamp(36px, 5vw, 60px); }

/* ===== Projects ===== */
.proj-list { display: grid; gap: clamp(56px, 8vw, 110px); }
.proj { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.proj:nth-child(even) .proj__img { order: 2; }

.proj__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); cursor: pointer; border-radius: 2px; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transform: scale(1.01); transition: filter .6s var(--ease), transform .9s var(--ease); }
.proj__img:hover img { filter: grayscale(0) contrast(1); transform: scale(1.05); }
.proj__idx { position: absolute; left: 18px; top: 16px; font-family: var(--mono); font-size: .8rem; color: var(--paper); mix-blend-mode: difference; }
.proj__open {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 9px 14px; border-radius: 2px;
  transform: translateY(8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.proj__img:hover .proj__open { transform: none; opacity: 1; }

.proj__cat { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; color: var(--accent); }
.proj__title { font-family: var(--disp); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; line-height: 1.04; margin: 14px 0 14px; }
.proj__desc { color: var(--soft); font-size: 1.05rem; max-width: 460px; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 24px 28px; margin: 26px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.proj__meta dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--soft); }
.proj__meta dd { font-family: var(--disp); font-weight: 600; font-size: 1.2rem; margin-top: 4px; }

.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--paper-2); border: 0; padding: 0; border-radius: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s, transform .5s var(--ease); }
.thumb:hover img { filter: grayscale(0); transform: scale(1.1); }
.thumb--more { display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .95rem; }
.thumb--more:hover { color: var(--accent); }

/* ===== Voices ===== */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.voice { background: var(--ink); padding: clamp(30px, 3.5vw, 46px); display: flex; flex-direction: column; gap: 22px; transition: background .4s; }
.voice:hover { background: var(--ink-2); }
.voice__q { font-family: var(--disp); font-size: 4rem; line-height: .6; color: var(--accent); height: 30px; }
.voice blockquote { font-family: var(--disp); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35; letter-spacing: -.01em; color: var(--paper); }
.voice figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.voice figcaption .mono { color: var(--accent); letter-spacing: .15em; font-size: .85rem; }
.voice figcaption span:last-child { display: flex; flex-direction: column; font-size: .92rem; color: var(--soft-2); }
.voice figcaption strong { color: var(--paper); font-weight: 600; font-size: 1rem; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.contact__info li { display: flex; align-items: baseline; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__info .mono { font-size: .74rem; color: var(--soft); flex: 0 0 78px; }
.contact__info a, .contact__info li > span:last-child { font-family: var(--disp); font-weight: 600; font-size: 1.3rem; transition: color .25s; }
.contact__info a:hover { color: var(--accent); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.form__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.form__head .kicker { margin-bottom: 0; }
.form__lead { font-size: .8rem; color: var(--soft); }
.form__lead--note { grid-column: 1 / -1; margin-bottom: -10px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.req { color: var(--accent); font-weight: 700; }
.opt { text-transform: none; letter-spacing: 0; color: var(--soft-2); font-size: .92em; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1.02rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  padding: 10px 2px; resize: vertical; transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field select { appearance: none; cursor: pointer; }
.form .btn { grid-column: 1 / -1; justify-content: center; }
.form__note { grid-column: 1 / -1; font-weight: 500; color: #2c6e3f; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--paper); padding: clamp(44px, 6vw, 76px) 0 40px; overflow: hidden; }
.footer__mark {
  display: block;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(10px, 1.6vw, 24px);
  color: var(--paper);
}
.footer__mark svg { display: block; width: 100%; height: auto; }
.footer__mark text { font-family: var(--disp); font-weight: 900; }
.footer__row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 40px 0; margin-top: 20px; border-top: 1px solid var(--line-light); }
.footer__row p { max-width: 340px; color: var(--soft-2); }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__row nav a { font-size: .95rem; color: var(--paper); transition: color .25s; }
.footer__row nav a:hover { color: var(--accent); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .76rem; color: var(--soft-2); text-transform: uppercase; }
.footer__rights { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-top: 18px; font-size: .72rem; line-height: 1.6; color: var(--soft-2); }
.footer__rights p { max-width: 720px; margin: 0; }
.footer__credit { flex: none; color: #283E5E; white-space: nowrap; transition: color .25s; }
.footer__credit:hover { color: var(--soft-2); }

/* ===== Standort / Karte (full-bleed) ===== */
.map { position: relative; background: var(--ink); }
.map__embed {
  position: relative; width: 100%;
  height: clamp(360px, 52vh, 560px);
  overflow: hidden; background: var(--ink-2);
}
.map__embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  transition: filter .5s var(--ease);
}

/* Scroll-Zoom nur bei Hover: Karte fängt den Seiten-Scroll erst ab,
   wenn der Zeiger darüber liegt. Auf Touch bleibt sie normal bedienbar. */
@media (hover: hover) and (pointer: fine) {
  .map__embed iframe { pointer-events: none; filter: grayscale(1) contrast(.95) brightness(.97); }
  .map__embed:hover iframe,
  .map__embed:focus-within iframe { pointer-events: auto; filter: none; }
}

/* Einwilligungs-Gate (vor dem Laden der Google-Karte) */
.map__gate {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; text-align: center;
  padding: 40px var(--gut);
  color: var(--paper);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--ink-2) 0%, var(--ink) 70%);
}
.map__gate::before {
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
}
.map__gate-inner { position: relative; max-width: 460px; display: grid; justify-items: center; gap: 18px; }
.map__gate .kicker { margin-bottom: 0; }
.map__note { font-size: .78rem; line-height: 1.6; color: var(--soft-2); max-width: 380px; }
.map__note a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.map.is-loaded .map__gate { display: none; }

/* Schwebende Standort-Karte (erst nach dem Laden sichtbar) */
.map__card {
  position: absolute; left: var(--gut); bottom: var(--gut); z-index: 3;
  max-width: 340px;
  background: var(--paper); color: var(--ink);
  padding: 26px 28px; border-radius: 2px;
  box-shadow: 0 28px 64px -34px rgba(15, 13, 10, .7);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.map.is-loaded .map__card { opacity: 1; visibility: visible; transform: none; }
.map__card .kicker { margin-bottom: 14px; }

.map__addr {
  font-family: var(--disp); font-weight: 600; font-size: 1.3rem; line-height: 1.2;
  margin-bottom: 16px;
}
.map__addr span {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-weight: 500; font-size: .92rem; color: var(--soft);
}
.map__gate .map__addr { color: var(--paper); }
.map__gate .map__addr span { color: var(--soft-2); }

/* Hover-Hinweis */
.map__hint {
  position: absolute; right: var(--gut); top: var(--gut); z-index: 3;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper); background: rgba(23, 41, 68, .72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 8px 14px; border-radius: 2px; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.map.is-loaded .map__hint { opacity: 1; visibility: visible; }
@media (hover: hover) and (pointer: fine) {
  .map__embed:hover .map__hint { opacity: 0; }
}
@media (hover: none) {
  .map__hint { display: none; }
}

/* ===== Lightbox ===== */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 5vh 6vw; background: rgba(15, 13, 10, .96); opacity: 0; visibility: hidden; transition: opacity .35s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__stage { display: flex; flex-direction: column; gap: 16px; max-width: min(1100px, 92vw); }
.lb__stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 2px; transform: scale(.97); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.lb.is-open .lb__stage img { transform: none; opacity: 1; }
.lb__stage figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--paper); font-size: .95rem; }
.lb__counter { color: var(--soft-2); }
.lb__close { position: absolute; top: 24px; right: 30px; z-index: 2; background: none; border: 0; color: var(--paper); font-size: 1.5rem; cursor: pointer; opacity: .7; transition: opacity .2s, transform .3s; }
.lb__close:hover { opacity: 1; transform: rotate(90deg); }
.lb__nav {
  position: absolute; top: 50%; z-index: 2;
  width: clamp(42px, 4vw, 56px); height: clamp(42px, 4vw, 56px);
  display: grid; place-items: center;
  border: 0; cursor: pointer; padding: 0;
  background: var(--accent); color: var(--paper);
  border-radius: 50%;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.lb__nav svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb__nav:hover { filter: brightness(1.12); }
.lb__nav:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.lb__nav--prev { left: 1vw; transform: translateY(-50%); }
.lb__nav--next { right: 1vw; transform: translateY(-50%); }
.lb__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb__nav--next:hover { transform: translateY(-50%) translateX(3px); }

/* ===== Produkta popup ===== */
.pop { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
.pop.is-open { visibility: visible; }
.pop__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 38, .55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; }
.pop__card {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr;
  width: min(960px, 100%); max-height: 88vh;
  background: var(--paper); border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .65); opacity: 0;
}
.pop__media { position: relative; background: var(--paper-2); overflow: hidden; min-height: 340px; }
.pop__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pop__cat { color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; }
.pop__title { font-family: var(--disp); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.06; color: var(--ink); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.pop__desc { color: var(--soft); font-size: 1.02rem; line-height: 1.72; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.pop__close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: background .25s, transform .35s var(--ease);
}
.pop__close:hover { background: #fff; transform: rotate(90deg); }
.pop__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .pop { padding: 16px; }
  .pop__card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .pop__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .logos__track, .gallery__track { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .proj, .proj:nth-child(even) .proj__img { grid-template-columns: 1fr; order: 0; }
  .trade__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 0; }
  /* Gestapelt: Formular klar von den Kontaktdaten abtrennen */
  .contact .form { margin-top: clamp(36px, 9vw, 56px); padding-top: clamp(32px, 8vw, 48px); border-top: 1px solid var(--line); }
  .voices { grid-template-columns: 1fr; }
  .hero__layout { grid-template-columns: 1fr; gap: 12px; }
  .hero__photo img { width: calc(100% + var(--gut)); margin-right: calc(-1 * var(--gut)); }
}
@media (max-width: 820px) {
  .catgrid { grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .lead--row { align-items: flex-start; }
  .svc--materials .svc__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  :root { --gut: 20px; }
  .hero::before {
    inset: 76px 0 -20px;
    opacity: .28;
    background-size: 76px 76px, 76px 76px, 1280px auto;
    background-position: center 4px, center 4px, 42% 24px;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(244, 242, 237, .98) 0%, rgba(244, 242, 237, .72) 42%, rgba(244, 242, 237, .92) 100%),
      linear-gradient(90deg, rgba(244, 242, 237, .94) 0%, rgba(244, 242, 237, .7) 100%);
  }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; background: var(--ink); padding: 0 var(--gut); z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-family: var(--disp); font-size: clamp(1.9rem, 7.5vw, 2.6rem); font-weight: 600; color: var(--paper); letter-spacing: -.01em; padding: 12px 0; }
  .nav a:not(.nav__cta)::after { bottom: 8px; height: 2px; }
  .nav__cta { color: var(--accent); }
  .nav__cta:hover { color: var(--paper); }
  .burger { display: flex; z-index: 61; }
  .burger[aria-expanded="true"] span { background: var(--paper); }
  .form { grid-template-columns: 1fr; }
  .catgrid { grid-template-columns: 1fr; gap: 0; }
  .hero__title { font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.04; max-width: none; }
  /* Nummer (01, 02..) über Titel/Absatz; Body über volle Breite */
  .svc__row, .svc--materials .svc__row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .svc__no { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; }
  .svc__arrow { grid-column: 2; grid-row: 1; align-self: center; }
  .svc__body { grid-column: 1 / -1; grid-row: 2; }
  .svc__list { grid-template-columns: 1fr; gap: 8px; }
  .svc__list li { min-height: auto; padding-block: 10px; font-size: .92rem; }
  .svc--materials .svc__list { grid-template-columns: 1fr; gap: 10px; }
  .svc__list li.prod { padding-block: 14px; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
  .proj__meta { gap: 20px; }
  /* Karte: niedriger und Standort-Karte über volle Breite unten */
  .map__embed { height: clamp(320px, 70vh, 440px); }
  .map__card {
    left: var(--gut); right: var(--gut); bottom: var(--gut);
    max-width: none; padding: 20px 22px;
  }
  .map__addr { font-size: 1.15rem; }
}

/* ===== Cookie-Consent-Banner ===== */
.cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -24px 60px -30px rgba(15, 23, 38, .4);
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.cc.is-visible { transform: none; }
.cc__inner { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); padding-block: 22px; flex-wrap: wrap; }
.cc__text { flex: 1 1 360px; min-width: 0; }
.cc__title { font-family: var(--disp); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.cc__text p { color: var(--soft); font-size: .92rem; line-height: 1.55; }
.cc__text a { color: var(--accent); text-decoration: underline; }
.cc__actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cc__btn {
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 2px; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.cc__btn--accept { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.cc__btn--accept:hover { background: var(--accent); border-color: var(--accent); }
.cc__btn--reject { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cc__btn--reject:hover { border-color: var(--ink); }
.cc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 680px) {
  .cc__inner { align-items: stretch; gap: 16px; padding-block: 18px; }
  .cc__actions { width: 100%; }
  .cc__btn { flex: 1 1 0; text-align: center; justify-content: center; }
}

/* ===== Rechtstexte (Datenschutz / Impressum) ===== */
.legal { padding: 150px 0 90px; }
.legal__wrap { max-width: 820px; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); margin-bottom: 26px; }
.legal__back:hover { color: var(--accent); }
.legal h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.legal__updated { margin-top: 10px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft-2); }
.legal h2 { font-family: var(--disp); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; color: var(--ink); margin: 42px 0 12px; }
.legal h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink-2); margin: 24px 0 8px; }
.legal p, .legal li { color: var(--soft); font-size: 1rem; line-height: 1.72; overflow-wrap: break-word; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--soft); line-height: 1.74; }
