/* Startseite */

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-rows: 1fr auto;
  min-height: max(720px, 100svh); padding-top: var(--header-h); overflow: hidden;
}
.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 1180px); z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 38%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(3, 18, 10, .92) 0%, rgba(3, 18, 10, .35) 26%, transparent 46%),
              linear-gradient(180deg, rgba(3, 18, 10, .55), transparent 22%);
}
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 58% 38%; }
/* the clip is framed wider (16:9) than the photo – 90% keeps the people where the photo has them */
.squeegee-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 90% 50%; opacity: 0; transition: opacity 1s var(--ease-out); }
.has-video .squeegee-video { opacity: 1; }

/* fogged glass (before) */
.squeegee-fog img { filter: blur(7px) saturate(.4) brightness(1.08) contrast(.82); transform: scale(1.03); }
.squeegee-fog::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 23px),
    radial-gradient(60% 50% at 40% 40%, rgba(228, 236, 224, .42), rgba(214, 224, 212, .28));
}
/* clean glass (after) – revealed by the squeegee */
.squeegee-clean { clip-path: inset(0 100% 0 0); }
.is-wiping .squeegee-clean { animation: squeegee-reveal 2.1s var(--ease-in-out) forwards; }
.is-wiped .squeegee-clean { clip-path: none; animation: none; }
.is-wiped .squeegee-fog { visibility: hidden; }
@keyframes squeegee-reveal { to { clip-path: inset(0 0 0 0); } }
html:not(.js) .squeegee-clean { clip-path: none; }

.squeegee-edge {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .9) 12%, #fff 50%, rgba(255, 255, 255, .9) 88%, transparent);
  box-shadow: 0 0 22px 5px rgba(183, 224, 122, .55), 0 0 2px 1px rgba(255, 255, 255, .8);
}
.squeegee-edge span {
  position: absolute; left: -5px; width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 35% 35%, #fff, rgba(220, 240, 230, .6));
}
.squeegee-edge span:nth-child(1) { top: 21%; }
.squeegee-edge span:nth-child(2) { top: 48%; width: 5px; height: 8px; }
.squeegee-edge span:nth-child(3) { top: 73%; }
.is-wiping .squeegee-edge { animation: squeegee-edge 2.1s var(--ease-in-out) forwards; }
.is-wiping .squeegee-edge span { animation: drip 2.1s ease-in forwards; }
@keyframes squeegee-edge { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes drip { 70% { translate: 0 6px; } 100% { translate: 0 22px; opacity: 0; } }

.hero__glint { position: absolute; left: 63%; top: 31%; width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 0 8px rgba(183, 224, 122, .95)); opacity: 0; pointer-events: none; }
.is-wiped .hero__glint { animation: glint 1.3s var(--ease-out) .15s both; }
@keyframes glint { 0% { opacity: 0; scale: 0; rotate: -60deg; } 45% { opacity: 1; scale: 1.15; } 100% { opacity: 0; scale: .2; rotate: 40deg; } }

.hero__inner { position: relative; align-self: center; padding-block: clamp(40px, 8vh, 96px) 32px; }
.hero__copy { display: grid; gap: 26px; justify-items: start; max-width: 660px; }
.hero__title { color: #fff; }
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__line:nth-child(2) { padding-bottom: .3em; margin-bottom: -.3em; }
.hero__line > span { display: inline-block; transform: translateY(110%); animation: line-up 1.05s var(--ease-out) forwards; animation-delay: calc(.15s + var(--r) * .12s); }
.hero__rise { opacity: 0; transform: translateY(18px); animation: rise-in .9s var(--ease-out) forwards; animation-delay: calc(.15s + var(--r) * .12s); }
@keyframes line-up { to { transform: none; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
.hero__scribble { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s var(--ease-in-out) 1.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { color: rgba(238, 243, 234, .86); max-width: 34ch; font-size: clamp(1.15rem, 1rem + .55vw, 1.42rem); }

.hero__note {                         /* under the buttons, points at the team – never covers people */
  display: flex; align-items: flex-end; gap: 10px; margin: -6px 0 0 6px;
  font-size: clamp(1.4rem, 1.1rem + .5vw, 1.75rem); color: var(--lime-300); rotate: -3deg;
  opacity: 0; animation: rise-in .8s var(--ease-out) 2.4s forwards; pointer-events: none;
}
.hero__note svg { width: 96px; height: 34px; flex: none; margin-bottom: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero__values { position: relative; padding-bottom: clamp(24px, 4vh, 40px); }
.hero__values .values { padding-top: 26px; border-top: 1px solid var(--line-light); }

@media (max-width: 900px) {
  .hero { grid-template-rows: auto auto; min-height: 0; }
  .hero__media { width: 100%; height: min(64svh, 560px); bottom: auto; -webkit-mask-image: none; mask-image: none; }
  .hero__media::after { background: linear-gradient(0deg, var(--forest-900) 2%, rgba(7, 34, 19, .55) 45%, rgba(3, 18, 10, .25) 80%, rgba(3, 18, 10, .5)); }
  .hero__inner { padding-top: calc(min(64svh, 560px) - var(--header-h) - 150px); }
  .hero__note { display: none; }
  .hero__glint { left: 70%; top: 22%; }
}

/* ---------- marquee band ---------- */
.marquee-band { position: relative; z-index: 2; margin: -22px -12px 0; rotate: -1.4deg; background: var(--lime-500); color: var(--forest-950); box-shadow: 0 16px 30px -18px rgba(3, 18, 10, .6); }
.marquee-band .marquee { padding-block: 12px; }
.marquee-band .marquee__item:nth-child(even) { color: var(--forest-800); }
.marquee-band .marquee__item svg { color: var(--forest-800); }
@media (max-width: 900px) { .marquee-band { margin-top: 18px; } }

/* ---------- intro ---------- */
.intro { padding-top: calc(var(--section-y) + 20px); }
.intro__side { display: grid; gap: 18px; justify-items: start; }

/* ---------- service explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.explorer__list { border-top: 1px solid var(--line-light); }
.explorer__item {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) 28px; column-gap: 12px; align-items: center;
  padding: 18px 6px 18px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; color: var(--on-dark-muted);
}
.explorer__no { grid-row: span 2; align-self: start; padding-top: .2em; font-family: var(--font-hand); font-size: 1.7rem; font-weight: 700; color: var(--lime-500); line-height: 1; }
.explorer__name {
  font-family: var(--font-display); font-size: clamp(1.45rem, 1.05rem + 1.25vw, 2.2rem); font-weight: 650; letter-spacing: -.022em; line-height: 1.1; color: #fff;
  transition: color .3s, transform .5s var(--ease-out);
}
.explorer__item > .i { grid-column: 3; grid-row: 1; width: 24px; height: 24px; opacity: .35; transition: opacity .3s, transform .5s var(--ease-spring), color .3s; }
.explorer__sub { grid-column: 2; font-size: 1rem; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .55s var(--ease-out), opacity .45s, margin .45s; }
.explorer__item:hover .explorer__name { transform: translateX(6px); }
.explorer__item.is-active .explorer__name { color: var(--lime-400); }
.explorer__item.is-active > .i { opacity: 1; color: var(--lime-400); transform: translateX(4px); }
.explorer__item.is-active .explorer__sub { max-height: 4.5em; opacity: 1; margin-top: 6px; }

.explorer__stage {
  position: sticky; top: calc(var(--header-h) + 28px); aspect-ratio: 1096 / 940;
  border-radius: var(--radius-l); overflow: hidden; background: var(--forest-800); box-shadow: var(--shadow-2);
}
.explorer__panel { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 100% 0 0); transition: clip-path .85s var(--ease-in-out) .85s; }
.explorer__panel.is-active { z-index: 2; clip-path: inset(0 0 0 0); transition-delay: 0s; }
.explorer__panel picture, .explorer__panel img { width: 100%; height: 100%; }
.explorer__panel img { object-fit: cover; object-position: right center; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.explorer__panel.is-active img { transform: none; }
.explorer__panel figcaption { position: absolute; left: clamp(20px, 3vw, 34px); bottom: clamp(20px, 3vw, 34px); max-width: 56%; display: grid; gap: 16px; justify-items: start; color: #fff; }
.explorer__panel .checks { gap: 9px; font-size: .98rem; text-shadow: 0 1px 10px rgba(3, 18, 10, .7); }
.explorer__panel--sketch {
  background:
    linear-gradient(rgba(183, 224, 122, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(183, 224, 122, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(150deg, var(--forest-700), var(--forest-900));
}
.machine-sketch { position: absolute; right: 4%; top: 8%; width: 66%; height: auto; color: var(--lime-400); opacity: .85; }
.machine-sketch__spray { stroke: var(--lime-200); }
.machine-sketch__spark { stroke: #fff; }
.js .explorer__panel--sketch:not(.is-active) [data-draw] { stroke-dashoffset: var(--len); transition: none; }
.js .explorer__panel--sketch.is-active [data-draw] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-in-out) .4s; }
.explorer__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(36px, 5vw, 56px); }
.explorer__hand { font-size: 1.7rem; color: var(--lime-300); rotate: -2deg; }
.explorer__hand a { color: #fff; text-decoration-color: var(--lime-500); text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__stage { display: none; }
  .explorer__sub { max-height: none; opacity: 1; margin-top: 6px; }
  .explorer__item .explorer__name { color: #fff; }
  .explorer__item > .i { opacity: .8; color: var(--lime-400); }
}

/* ---------- wipe it yourself ---------- */
.wipe-section__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.wipe-section__text { display: grid; gap: 20px; justify-items: start; }
.wipe {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-l); overflow: hidden;
  background: var(--paper-3); box-shadow: var(--shadow-2); touch-action: pan-y; isolation: isolate;
}
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 24% center; }
.wipe canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1s var(--ease-out);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect x='4' y='6' width='32' height='7' rx='2.5' fill='%23072213'/%3E%3Crect x='3' y='12' width='34' height='3' rx='1.5' fill='%237cc22e'/%3E%3Crect x='17.5' y='15' width='5' height='20' rx='2.5' fill='%23072213'/%3E%3C/svg%3E") 20 12, crosshair;
}
.wipe.is-clean canvas { opacity: 0; pointer-events: none; }
.wipe__hint {
  position: absolute; right: 6%; top: 9%; z-index: 2; pointer-events: none;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); color: var(--forest-800); rotate: 5deg; transition: opacity .4s;
}
.wipe__hint svg { width: 64px; height: 42px; margin: 2px auto 0; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; scale: -1 1; }
@media (prefers-reduced-motion: no-preference) { .wipe__hint { animation: bob 2.6s ease-in-out infinite; } }
@keyframes bob { 50% { translate: 0 -6px; } }
.wipe.is-touched .wipe__hint, .wipe.is-clean .wipe__hint { opacity: 0; }
.wipe__done {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; max-width: calc(100% - 36px);
  padding: 10px 18px; border-radius: 14px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 600; font-size: .98rem;
  opacity: 0; translate: 0 14px; transition: opacity .6s .3s, translate .7s .3s var(--ease-spring); box-shadow: var(--shadow-1);
}
.wipe__done .hand { font-size: 1.6rem; color: var(--green-ink); margin-right: 4px; }
.wipe.is-clean .wipe__done { opacity: 1; translate: 0 0; }
.wipe__all { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.wipe.is-clean .wipe__all { display: none; }
html:not(.js) .wipe__hint, html:not(.js) .wipe__all, html:not(.js) .wipe__done { display: none; }
@media (max-width: 900px) {
  .wipe-section__grid { grid-template-columns: 1fr; }
  .wipe { aspect-ratio: 4 / 3.2; }
}

/* ---------- process ---------- */
.steps-wrap { position: relative; padding-top: 40px; }

/* ---------- team teaser ---------- */
.team-teaser .polaroids { max-width: 1040px; margin-inline: auto; }
.team-teaser__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 26px; margin-top: clamp(44px, 6vw, 72px); }
.team-teaser__hand { font-size: 1.8rem; color: var(--green-ink); rotate: -3deg; }

/* ---------- locations ---------- */
.locations__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.locations__text { display: grid; gap: 20px; }
.loc-cards { display: grid; gap: 14px; margin-top: 14px; }
.loc-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); transition: background-color .3s, border-color .3s; }
.loc-card:hover { background: rgba(124, 194, 46, .08); border-color: rgba(183, 224, 122, .35); }
.loc-card__title { font-size: 1.2rem; }
.loc-card__title small { font-family: var(--font-body); font-size: .8em; font-weight: 500; color: var(--on-dark-muted); letter-spacing: 0; }
.loc-card p { margin: 6px 0 10px; color: var(--on-dark-muted); line-height: 1.5; }
.locations .ch-map { width: 100%; max-width: 600px; justify-self: center; }
@media (max-width: 900px) { .locations__grid { grid-template-columns: 1fr; } }

/* factual one-paragraph summary (for people skimming – and for search/AI systems) */
.intro__facts { max-width: 78ch; margin: -18px 0 36px; color: var(--ink-2); font-size: 1.02rem; }
.intro__facts a { color: var(--green-ink); font-weight: 600; }
