/* ==========================================================================
   Page sections
   ========================================================================== */

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 4rem) clamp(3.5rem, 7vw, 6.5rem);
  overflow: clip;
}
.hero__bg {
  position: absolute;
  inset: -2rem 0 0;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 78% 30%, rgb(179 222 44 / .22), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 1.6px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title { margin: 0 0 1.9rem; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .4rem .85rem .4rem .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
}
.hero__kicker .icon { width: 18px; height: 18px; color: var(--accent-text); }
.hero__slogan {
  display: block;
  font-size: var(--fs-display);
  font-weight: 820;
  line-height: .96;
  letter-spacing: -.045em;
  hyphens: none;
}
.hero__word { display: block; }
/* Accent underline for "Zukunft." and "Zuverlässige Technik.": a real
   text-decoration sits below the baseline and skips descenders (g, p …), so
   it never covers glyphs – unlike a painted bar or pseudo-element. */
.hero__mark,
.statement__part:last-child {
  text-decoration-line: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: .09em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: auto;
}
.hero__lead { margin-bottom: .75rem; font-size: var(--fs-lead); font-weight: 650; color: var(--text); line-height: 1.45; }
.hero__text { max-width: 56ch; color: var(--text-2); }
.hero__steps {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 0;
  margin-top: 2.25rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero__steps li { display: inline-flex; align-items: center; }
.hero__steps li::before {
  content: "";
  width: 7px; height: 7px;
  margin-right: .55rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent-text);
}
.hero__steps li:not(:last-child)::after { content: ""; width: clamp(.9rem, 2vw, 1.6rem); height: 1.5px; margin-inline: .6rem; background: var(--border-strong); }
.hero__steps li:first-child::before { background: var(--accent); border-color: var(--accent); }

.hero__media { position: relative; padding: 0 0 2.5rem; }
.hero__photo { overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-2); }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { aspect-ratio: 4 / 3.3; box-shadow: var(--shadow-lg); }
.hero__photo--inset {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 30%;
  aspect-ratio: 3 / 4;
  border: 5px solid var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: min(330px, 62%);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-lg);
}
.hero__card-title { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-weight: 700; font-size: var(--fs-sm); }
.hero__card-title .icon { color: var(--accent-text); }
.hero__chips { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.hero__chips li {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .55rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 650;
  min-width: 0;
}
.hero__chips .icon { width: 16px; height: 16px; color: var(--accent-text); }
.hero__orbit {
  position: absolute;
  top: -7%; right: -5%;
  z-index: -1;
  width: 38%;
  overflow: visible;
}
.hero__orbit-ring { fill: none; stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 2 7; }
.hero__orbit-dot { fill: var(--sun); }
.hero__orbit-spin { transform-origin: 100px 100px; animation: spin 36s linear infinite; }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__kicker, .hero__word, .hero__lead, .hero__text, .hero .btn-row, .hero__steps {
    animation: rise .9s var(--ease-out) both;
  }
  .hero__kicker { animation-delay: .05s; }
  .hero__word:nth-child(1) { animation-delay: .12s; }
  .hero__word:nth-child(2) { animation-delay: .2s; }
  .hero__word:nth-child(3) { animation-delay: .28s; }
  .hero__lead { animation-delay: .38s; }
  .hero__text { animation-delay: .44s; }
  .hero .btn-row { animation-delay: .5s; }
  .hero__steps { animation-delay: .58s; }
  .hero__mark { animation: mark 1s var(--ease-out) .7s both; }
  .hero__photo--main, .page-hero__media { animation: reveal-media 1.1s var(--ease-out) backwards; }
  .hero__photo--inset { animation: rise 1s var(--ease-out) .45s both; }
  .hero__card { animation: rise 1s var(--ease-out) .6s both; }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes mark { from { text-decoration-color: transparent; text-underline-offset: .34em; } }
@keyframes reveal-media { from { clip-path: inset(5% 5% 5% 5% round 32px); } to { clip-path: inset(0 round 32px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
  .hero__media { padding: 0 0 3rem 8%; }
  .hero__photo--main { aspect-ratio: 4 / 4.5; }
  .hero__photo--inset { left: 0; bottom: 0; width: 34%; }
  .hero__card { right: -3%; bottom: 7%; }
}
@media (max-width: 520px) {
  .hero__media { padding-bottom: 0; }
  .hero__photo--inset { display: none; }
  .hero__card { position: relative; right: auto; bottom: auto; width: auto; margin: -2.5rem .75rem 0; }
  .hero__orbit { width: 44%; top: -9%; right: -12%; }
}

/* --------------------------------------------------------------- Marquee */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; gap: 2.75rem; padding: 1.2rem 1.375rem; }
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee__list .icon { width: 22px; height: 22px; color: var(--accent-text); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ----------------------------------------------------------------- Intro */

.intro__grid { display: grid; gap: 2.5rem 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.intro__text > p:not(.eyebrow):not(.section-lead) { color: var(--text-2); max-width: 60ch; }
.statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.7rem);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -.035em;
  hyphens: none;
}
.statement__pre { display: block; margin-bottom: .6rem; color: var(--text-3); font-size: .42em; font-weight: 650; letter-spacing: -.01em; }
.statement__part { display: block; transition: color .8s var(--ease-out); }
.js .statement__part { color: var(--border-strong); }
.js .statement.is-lit .statement__part { color: var(--text); }
.js .statement.is-lit .statement__part:nth-child(3) { transition-delay: .25s; }
.js .statement.is-lit .statement__part:nth-child(4) { transition-delay: .5s; }
.js .statement:not(.is-lit) .statement__part:last-child { text-decoration-color: transparent; }
.js .statement.is-lit .statement__part:last-child { transition: color .8s var(--ease-out) .5s, text-decoration-color .9s var(--ease-out) 1s; }
.statement--center { text-align: center; }

.values { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.value { padding: 1.5rem 0 0; border-top: 1px solid var(--border-strong); }
.value__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.value__icon .icon { width: 22px; height: 22px; }
.value__title { margin-bottom: .45rem; font-size: var(--fs-h3); font-weight: 700; }
.value p { color: var(--text-2); font-size: var(--fs-sm); }
.values--cards .value { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; } }
@media (min-width: 1000px) {
  .intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.services-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .55rem;
  padding: 1.5rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.services-cta__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto; border-radius: 14px; background: var(--surface); color: var(--accent-text); border: 1px solid var(--border); }
.services-cta__title { margin: .75rem 0 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.services-cta__text { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: .5rem; }
@media (min-width: 640px) and (max-width: 1099px) {
  .services-cta { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------- Split blocks */

.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__text > p:not(.eyebrow):not(.section-lead) { color: var(--text-2); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split__media { order: 2; }
}

.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.audience { display: grid; gap: .55rem; }
.audience picture { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.audience__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.audience:hover .audience__img { transform: scale(1.06); }
.audience__label { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.audience__label .icon { width: 16px; height: 16px; color: var(--accent-text); }

/* --------------------------------------------------------------- Process */

.process-layout { display: grid; gap: 1rem 5rem; }
.process-layout__head .btn { margin-top: -1rem; margin-bottom: 2.5rem; }
@media (min-width: 1000px) {
  .process-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
  .process-layout__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ------------------------------------------------------------ Why / reasons */

.why { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.why__media { aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); }
.reasons { display: grid; }
.reason {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.reason:last-child { border-bottom: 1px solid var(--border); }
.reason__num { padding-top: .15rem; color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; }
.reason__title { margin-bottom: .25rem; font-size: var(--fs-h3); font-weight: 700; }
.reason p { color: var(--text-2); }
@media (min-width: 900px) {
  .why { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .why--reverse .why__media { order: -1; }
  .why--reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* ------------------------------------------------------------ Work strip */

.work-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 320px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.work-strip__item { scroll-snap-align: start; }
.work-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
}
.work-tile picture, .work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.work-tile:hover img { transform: scale(1.05); }
.work-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(3 15 29 / .8)); }
.work-tile__caption { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; }
@media (min-width: 900px) {
  .work-strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .work-strip__item:nth-child(3n + 2) { translate: 0 2rem; }
  .work-strip { padding-bottom: 2rem; }
}

/* ------------------------------------------------------------------- FAQ */

.faq-layout { display: grid; gap: 2rem 5rem; align-items: start; }
.faq-layout__contact { display: grid; gap: .25rem; margin-top: -1.5rem; color: var(--text-2); }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* -------------------------------------------------------------- CTA band */

.cta-band {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius-xl);
  background: var(--navy-800);
  overflow: hidden;
  isolation: isolate;
}
:root[data-theme="dark"] .cta-band { background: #0b1f3a; border: 1px solid var(--border); }
.cta-band__cells { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: rgb(255 255 255 / .1); }
.cta-band__glow {
  position: absolute;
  z-index: -1;
  right: -15%; top: -45%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(199 236 80 / .35), transparent 65%);
  filter: blur(10px);
}
.cta-band__title { margin-bottom: 1rem; color: #fff; font-size: var(--fs-h2); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; }
.cta-band__text { max-width: 58ch; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.55; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cta-band__facts { display: grid; gap: 1.1rem; align-content: end; }
.cta-band__facts div { padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: rgb(3 15 29 / .25); }
.cta-band__facts dt { display: flex; align-items: center; gap: .45rem; margin-bottom: .2rem; color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cta-band__facts dt .icon { width: 16px; height: 16px; color: var(--lime-400); }
.cta-band__facts dd { color: var(--text); font-weight: 600; }
@media (min-width: 960px) {
  .cta-band { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); align-items: end; }
}

/* ------------------------------------------------------------- Page hero */

.page-hero { position: relative; padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5.5rem); overflow: clip; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -2rem 0 0;
  z-index: -1;
  background:
    radial-gradient(40% 55% at 88% 20%, rgb(179 222 44 / .16), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 1.6px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.page-hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.page-hero__media--illustration { align-self: center; }
@media (min-width: 1000px) {
  .page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}

/* ------------------------------------------------------ Service details */

.scope { display: grid; gap: 2.5rem 4rem; align-items: start; }
.scope__head .btn { margin-top: 1.5rem; }
@media (min-width: 1000px) {
  .scope { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .scope__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.equation { display: grid; gap: 2rem 3rem; align-items: center; }
.equation__text p { color: var(--text-2); }
.equation__parts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .5rem; }
.equation__parts li { display: inline-flex; align-items: center; gap: .5rem; }
.equation__parts li + li::before { content: "+"; color: var(--accent-text); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.equation__parts span {
  padding: .6rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-weight: 650;
  font-size: var(--fs-sm);
}
.equation__parts li:last-child span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) { .equation { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.audience-cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.audience-card .media-frame { aspect-ratio: 4 / 3; }
.audience-card__label { display: flex; align-items: center; gap: .5rem; margin: .85rem 0 0; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; }
.audience-card__label .icon { color: var(--accent-text); }
@media (min-width: 700px) { .audience-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feature-media { display: grid; gap: 1rem; }
.feature-media--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.feature-media--2 .media-frame { aspect-ratio: 3 / 4; }
.feature-media--2 .media-frame:last-child { margin-top: 3rem; }
.feature-media--1 .media-frame { aspect-ratio: 16 / 9; }

/* Leistungen overview tiles */
.service-index { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-2);
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.service-tile:focus-within { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.service-tile__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service-tile__media picture, .service-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.service-tile:hover .service-tile__media img { transform: scale(1.05); }
.service-tile__body { position: relative; display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.5rem; }
.service-tile__num { position: absolute; top: 1.4rem; right: 1.5rem; margin: 0; color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; }
.service-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -3.1rem; border: 4px solid var(--surface); border-radius: 16px; background: var(--accent); color: var(--accent-ink); position: relative; }
.service-tile__icon .icon { width: 22px; height: 22px; }
.service-tile__title { font-size: var(--fs-h3); font-weight: 720; letter-spacing: -.015em; }
.service-tile__title a { color: inherit; text-decoration: none; }
.service-tile__title a::after { content: ""; position: absolute; inset: 0; }
.service-tile__title a:focus-visible { outline: none; }
.service-tile__text { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.service-tile .tags { margin-top: .25rem; }
.service-tile__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .75rem; color: var(--link); font-weight: 650; font-size: var(--fs-sm); }
.service-tile__more .icon { transition: transform var(--dur-2) var(--ease-out); }
.service-tile:hover .service-tile__more .icon { transform: translateX(4px); }
@media (min-width: 700px) { .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .service-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- Gallery */

.gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.filter:hover { color: var(--text); border-color: var(--text-3); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); }
.filter[aria-pressed="true"] .filter__count { background: var(--accent); color: var(--accent-ink); }
.gallery__status { margin: 0; color: var(--text-3); font-size: var(--fs-sm); font-weight: 600; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery__item--portrait { grid-row: span 2; }
@media (min-width: 640px) { .gallery__item--wide { grid-column: span 2; } }
.gallery__item.is-entering { animation: rise .6s var(--ease-out) both; }
.gallery__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: #fff;
  text-decoration: none;
}
.gallery__link picture, .gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery__link:hover img { transform: scale(1.05); }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(3 15 29 / .82)); transition: opacity var(--dur-2); }
.gallery__meta { position: absolute; left: 1rem; right: 3.5rem; bottom: .9rem; z-index: 1; display: grid; gap: .15rem; }
.gallery__cat { color: var(--lime-400); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gallery__caption { font-size: var(--fs-sm); font-weight: 650; line-height: 1.3; }
.gallery__zoom {
  position: absolute; right: .9rem; bottom: .9rem; z-index: 1;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.gallery__zoom .icon { width: 18px; height: 18px; }
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { background: var(--lime-400); color: var(--navy-900); transform: scale(1.08); }

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(2 8 16 / .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: block; }
.lightbox__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4.5rem clamp(1rem, 7vw, 6rem) 1.5rem;
}
.lightbox__figure { display: grid; gap: .85rem; justify-items: center; max-width: 100%; }
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 30px 80px rgb(0 0 0 / .5);
}
.lightbox[open] .lightbox__img { animation: zoom-in .45s var(--ease-out); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .75rem; max-width: 70ch; font-size: var(--fs-sm); text-align: center; color: rgb(255 255 255 / .9); }
.lightbox__cat { color: var(--lime-400); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.lightbox__count { color: rgb(255 255 255 / .55); font-family: var(--font-mono); font-size: var(--fs-xs); }
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: #fff;
  transition: background-color var(--dur-1), border-color var(--dur-1);
}
.lightbox__btn:hover { background: var(--lime-400); border-color: var(--lime-400); color: var(--navy-900); }
.lightbox__btn:focus-visible { outline-color: var(--lime-300); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 1rem; translate: none; }
  .lightbox__inner { padding-bottom: 5.5rem; }
  .lightbox__img { max-height: calc(100dvh - 13rem); }
}

/* Project examples */
.examples { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.example {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3);
}
.example:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.example:focus-within { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.example__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.example__media picture, .example__media img { width: 100%; height: 100%; object-fit: cover; }
.example__media--illustration { display: grid; place-items: center; padding: .5rem; background: radial-gradient(90% 80% at 90% 0%, var(--accent-soft), transparent 60%), var(--surface-2); }
.example__media--illustration svg { width: 100%; height: 100%; }
.example__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.35rem 1.5rem 1.5rem; }
.example__body p { color: var(--text-2); font-size: var(--fs-sm); }
.example__body .link-arrow { margin-top: auto; font-size: var(--fs-sm); }
.example__title { font-size: var(--fs-h3); font-weight: 720; }
.example__title a { color: inherit; text-decoration: none; }
.example__title a::after { content: ""; position: absolute; inset: 0; }
.example__title a:focus-visible { outline: none; }
@media (min-width: 640px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .examples { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- About */

.claim { display: grid; gap: 2rem; justify-items: center; max-width: 900px; margin-inline: auto; text-align: center; }
.claim__text { max-width: 64ch; color: var(--text-2); font-size: var(--fs-lead); }

.location { display: grid; gap: 2.5rem 4rem; align-items: center; }
.location__map {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 960px) { .location { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* --------------------------------------------------------------- Contact */

.contact { display: grid; gap: 1.5rem; align-items: start; }
.contact__form { scroll-margin-top: calc(var(--header-h) + 1rem); }
.contact__form:focus { outline: none; }
.contact__form-title { margin-bottom: .35rem; font-size: var(--fs-h3); font-weight: 750; }
.contact__form-intro { margin-bottom: 1.5rem; color: var(--text-3); font-size: var(--fs-sm); }
.contact__info { display: grid; gap: 1rem; }
.contact-card { display: grid; gap: .85rem; }
.contact-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.contact-card__title { font-size: var(--fs-h3); font-weight: 720; }
.contact-card p { color: var(--text-2); }
.contact-card__meta { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: var(--fs-sm); }
.contact-card--navy {
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(199 236 80 / .16), transparent 60%),
    var(--navy-800);
  border-color: transparent;
}
:root[data-theme="dark"] .contact-card--navy { background: radial-gradient(80% 60% at 100% 0%, rgb(199 236 80 / .12), transparent 60%), #0b1f3a; border-color: var(--border); }
.contact-card__logo .brand__img { height: 46px; }
.contact-card__name { margin: 0; color: var(--text); font-weight: 700; }
.contact-card--navy .facts { margin: .5rem 0; }
.contact-card__actions { display: grid; gap: .6rem; }
.cta-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 1000px) {
  .contact { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 2rem; }
  .contact__info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* --------------------------------------------------------------- 404 */

.notfound__inner { display: grid; justify-items: center; text-align: center; }
.notfound__inner .page-title, .notfound__inner .page-lead { margin-inline: auto; }
.notfound__art { width: min(420px, 100%); margin-bottom: 2rem; overflow: visible; }

@media (max-width: 520px) {
  .hero__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  .hero__steps li::after { display: none; }
}

/* Grid children may shrink below their min-content width (long German
   compounds must wrap instead of widening the track). */
.hero__inner > *, .page-hero__inner > *, .intro__grid > *, .split > *, .process-layout > *,
.why > *, .faq-layout > *, .scope > *, .equation > *, .location > *, .contact > *,
.cta-band > *, .energy-flow > *, .site-footer__grid > *, .claim > * { min-width: 0; }
