/* ============================================================
   QUIET SECTIONS — under-hero redesign (defined.vc DNA)
   Lots of whitespace · hairlines, not cards · monochrome with
   one teal accent · left-aligned · large quiet headlines.
   ============================================================ */

:root {
  --qs-pad-x: clamp(28px, 6vw, 96px);
  --qs-section-y: clamp(120px, 18vw, 220px);
  --qs-maxw: 1240px;
  --qs-fg: var(--fg);
  --qs-muted: var(--muted-1);
  --qs-muted-2: var(--muted-2);
  --qs-line: rgba(255, 255, 255, 0.10);
  --qs-line-strong: rgba(255, 255, 255, 0.18);
  --qs-accent: var(--teal-mid);
}

.qs-section {
  padding: var(--qs-section-y) var(--qs-pad-x);
  max-width: var(--qs-maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  scroll-margin-top: 50px;
}

#leistungen { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(20px, 3vw, 36px); }
#team { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(16px, 2vw, 24px); scroll-margin-top: 30px; }
#contact { padding-top: 0; }

.qs-section + .qs-section { padding-top: 0; }

/* ---------- Section header ---------- */
.qs-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  margin-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--qs-line);
  padding-top: 28px;
}
.qs-eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qs-accent);
  font-weight: 500;
  margin-bottom: 56px;
}
.qs-section-title {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--qs-fg);
  max-width: 22ch;
  text-wrap: balance;
  margin: 0;
}
.qs-section-lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--qs-muted);
  max-width: 56ch;
  margin-top: 32px;
  font-weight: 300;
}

/* ---------- Numbered service list ---------- */
.qs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.qs-item {
  display: block;
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--qs-line);
  position: relative;
}
.qs-item-anchor {
  position: absolute;
  top: 24px;
  scroll-margin-top: 80px;
}
.qs-item:last-child { border-bottom: 1px solid var(--qs-line); }

.qs-item-index {
  display: block;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--qs-accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
}

.qs-item-body { max-width: 920px; }
.qs-item-title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--qs-fg);
  margin: 0 0 28px;
  text-wrap: balance;
}
.qs-item-prose {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--qs-muted);
  font-weight: 400;
  margin: 0 0 28px;
  max-width: 60ch;
  text-align: justify;
  hyphens: auto;
}
.qs-item-tags {
  font-size: 13px;
  line-height: 1.5;
  color: var(--qs-fg);
  margin: 0;
  letter-spacing: 0.005em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qs-item-tags > span:not(.qs-tag-sep) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--qs-line-strong);
  border-radius: 999px;
  background: rgba(63, 182, 204, 0.05);
  font-weight: 500;
  white-space: normal;
}
.qs-item-tags > span:not(.qs-tag-sep)::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--qs-accent);
  flex-shrink: 0;
}
.qs-tag-sep {
  display: none;
}

.qs-item-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(48px, 5vw, 80px);
  row-gap: 40px;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--qs-line);
}
.qs-item-sub {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.qs-item-subtitle {
  position: relative;
  padding-left: 18px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--qs-fg);
  margin: 0;
}
.qs-item-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--qs-accent);
}
.qs-item-subprose {
  font-size: 15px;
  line-height: 1.6;
  color: var(--qs-muted);
  font-weight: 300;
  margin: 0;
  max-width: 50ch;
  text-align: justify;
  hyphens: auto;
}
.qs-item-cta-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--qs-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.qs-item-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 22px rgba(42, 163, 184, 0.30);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.qs-item-cta:hover {
  background: #c4f600;
  color: #0b1213;
  border-color: #c4f600;
  box-shadow: 0 8px 28px rgba(196, 246, 0, 0.55);
  transform: translateY(-1px);
}
.qs-item-cta svg { transition: transform .25s; }
.qs-item-cta:hover svg { transform: translateX(3px); }

.qs-item-outcome {
  margin: 0;
  padding: 0;
  border-top: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--qs-accent);
  font-weight: 400;
  max-width: 60ch;
  flex: 1 1 320px;
}

@media (max-width: 760px) {
  .qs-item-subgrid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
}

/* ---------- Team list ---------- */
.qs-team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.qs-team-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: clamp(28px, 3vw, 48px);
  align-items: start;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--qs-line);
}
.qs-team-row:last-child { border-bottom: 1px solid var(--qs-line); }

.qs-team-photo {
  position: relative;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: transparent;
  border: 0;
}
.qs-team-photo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.qs-team-row:has(img[alt="Bart Gorynski"]) {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  padding-top: 0;
  column-gap: clamp(28px, 3vw, 48px);
}
.qs-team-row:has(img[alt="Bart Gorynski"]) .qs-team-photo {
  height: 480px;
  width: 300px;
  margin-top: -160px;
  margin-left: 0;
  overflow: visible;
}
.qs-team-row:has(img[alt="Nina Gorynski"]) .qs-team-photo {
  overflow: hidden;
  height: 225px;
}
.qs-team-row:has(img[alt="Nina Gorynski"]) .qs-team-photo img {
  height: 240px;
}
.qs-team-photo:has(img) .qs-team-fallback { display: none; }
.qs-team-fallback {
  font-size: 42px;
  font-weight: 300;
  color: rgba(63, 182, 204, 0.55);
  letter-spacing: -0.02em;
}

.qs-team-text { padding-top: 4px; max-width: 56ch; }
.qs-team-name {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--qs-fg);
  margin: 0 0 6px;
}
.qs-team-role {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qs-accent);
  font-weight: 500;
  margin: 0 0 24px;
}
.qs-team-tagline {
  font-size: 17px;
  line-height: 1.55;
  color: var(--qs-muted);
  font-weight: 300;
  margin: 0 0 24px;
  max-width: 44ch;
}
.qs-team-contact {
  font-size: 15px;
  color: var(--qs-muted);
  font-weight: 300;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.qs-team-contact a {
  color: var(--qs-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--qs-line-strong);
  padding-bottom: 1px;
  transition: color .25s, border-color .25s;
}
.qs-team-contact a:hover {
  color: var(--qs-accent);
  border-color: var(--qs-accent);
}
.qs-sep {
  color: var(--qs-muted-2);
  opacity: 0.6;
  margin: 0 6px;
}

/* ---------- Contact ---------- */
.qs-contact {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.qs-contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--qs-line);
  padding-top: 0;
  margin-top: -10px;
}
.qs-contact-main { max-width: 720px; }

.qs-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  background: #c4f600;
  color: #0b1213;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 22px rgba(196, 246, 0, 0.45);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.qs-contact-cta:hover {
  background: #d4ff1a;
  box-shadow: 0 8px 28px rgba(196, 246, 0, 0.6);
  transform: translateY(-2px);
}
.qs-contact-cta svg { transition: transform .25s; }
.qs-contact-cta:hover svg { transform: translateX(4px); }
.qs-contact-aux {
  font-size: 16px;
  line-height: 1.55;
  color: var(--qs-muted);
  font-weight: 300;
  margin: 0;
}
.qs-contact-aux a {
  color: var(--qs-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--qs-line-strong);
  padding-bottom: 1px;
  transition: color .25s, border-color .25s;
}
.qs-contact-aux a:hover { color: var(--qs-accent); border-color: var(--qs-accent); }
.qs-muted { color: var(--qs-muted-2); }

.qs-contact-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 48px clamp(40px, 6vw, 80px);
  padding-top: 12px;
}
.qs-contact-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
}
.qs-contact-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.qs-contact-meta-row dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qs-accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.qs-contact-meta-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--qs-muted);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Reveal animation ---------- */
.qs-section .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.qs-section .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .qs-section { padding-left: 22px; padding-right: 22px; }
  .qs-item {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 56px 0;
  }
  .qs-item-index { padding-top: 0; }
  .qs-item-title { font-size: clamp(28px, 7vw, 40px); }
  .qs-item-subgrid { gap: 36px; }
  .qs-item-tags { font-size: 13px; }
  .qs-item-tags > span:not(.qs-tag-sep) { padding: 6px 12px 6px 10px; }
  .qs-team-row {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding: 48px 0;
  }
  .qs-team-photo { width: 140px; height: 180px; }
  .qs-contact-grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }
}

/* Hide the now-unused old halftone-strip if present beneath hero */
.halftone-strip { display: none !important; }


/* ---------- Footer overrides ---------- */
.footer-brand img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-bottom {
  padding: 40px var(--qs-pad-x);
  max-width: var(--qs-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-bottom .legal {
  font-size: 13px;
  color: var(--qs-muted-2);
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--qs-muted);
  text-decoration: none;
  transition: color .25s;
}
.footer-links a:hover { color: var(--qs-accent); }


.qs-contact-phone {
  display: inline-block;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--qs-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--qs-line-strong);
  padding-bottom: 6px;
  transition: color .3s, border-color .3s;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.qs-contact-phone:hover {
  color: var(--qs-accent);
  border-color: var(--qs-accent);
}
