/* QUADRO OFFICE · Startseiten-Entwurf V3 „Highlights“
   Baut auf quadro.css (Richtung B) auf. Zusätzliche Töne der Leistungs-Farbskala sind
   Ableitungen aus Fliederlicht und Abendviolett und brauchen eine Freigabe. */

:root {
  --scale-1: #DDD5E8;  /* Fliederlicht */
  --scale-2: #CBC0D9;  /* abgeleitet */
  --scale-3: #C4D600;  /* QUADRO-Grün, ein Akzent */
  --scale-4: #A898B8;  /* abgeleitet */
  --scale-5: #6E5F75;  /* abgeleitet */
  --scale-6: #4A3D50;  /* abgeleitet */
  --scale-7: #352C38;  /* Abendviolett */
  --bar-h: 76px;
}
@media (min-width: 1100px) { :root { --bar-h: 88px; } }

/* ---------- 1 · Kopfzeile in eigener Farbe (Montana) ---------- */
.v3-bar {
  position: relative; z-index: 30;
  height: var(--bar-h);
  background: var(--frame);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 16px;
}
@media (min-width: 768px) { .v3-bar { padding: 0 clamp(24px, 5.5vw, 96px); } }
.v3-bar nav { display: none; gap: 26px; font-size: .97rem; font-weight: 500; }
.v3-bar nav a { text-decoration: none; position: relative; }
.v3-bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.v3-bar nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.v3-bar .right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.v3-bar .logo { grid-column: 2; }
.v3-bar .logo img { height: 40px; }
@media (min-width: 1100px) {
  .v3-bar nav { display: flex; }
  .v3-bar .logo img { height: 46px; }
}
.v3-bar .burger { background: transparent; }
@media (min-width: 1100px) { .v3-bar .burger { display: none; } }
.v3-bar .btn { --h: 44px; padding: 0 1.1em; font-size: .93rem; display: none; }
@media (min-width: 1100px) { .v3-bar .btn { display: inline-flex; } }

/* ---------- 2 · Schwebende Kapsel (Powerhouse), erscheint nach der Kopfzeile ---------- */
.v3-pill {
  position: fixed; z-index: 55; top: 14px; left: 50%;
  transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: color-mix(in srgb, var(--dark) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  color: var(--on-dark);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.6);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100% - 24px);
}
.pill-on .v3-pill { transform: translate(-50%, 0); }
.v3-pill .mark { display: block; flex: none; background: var(--bg); padding: 4px 8px; }
.v3-pill .mark img { height: 30px; width: auto; }
.v3-pill .items { position: relative; display: none; }
.v3-pill .items a { position: relative; z-index: 1; display: block; padding: 11px 14px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--on-dark); white-space: nowrap; transition: color .3s; }
.v3-pill .items a.is-hot { color: var(--dark); }
.v3-pill .ind { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; background: var(--frame); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.v3-pill .items:hover .ind, .v3-pill .items:focus-within .ind { opacity: 1; }
.v3-pill .btn { --h: 38px; padding: 0 1em; font-size: .88rem; }
.v3-pill .burger { width: 38px; height: 38px; background: rgba(255,255,255,.08); }
.v3-pill .burger span, .v3-pill .burger span::before, .v3-pill .burger span::after { background: var(--on-dark); }
@media (min-width: 1100px) { .v3-pill .items { display: flex; } .v3-pill .burger { display: none; } }
.menu-open .v3-pill { transform: translate(-50%, 0); }
.menu-open .v3-pill .burger span { background: transparent; }

/* ---------- Hero: Bild im Abendviolett-Rahmen, Headline im Bild (Montana) ---------- */
.v3-hero { background: var(--dark); padding: 0 12px; }
@media (min-width: 768px) { .v3-hero { padding: 0 clamp(24px, 5.5vw, 96px); } }
.v3-hero-media { position: relative; margin: 0; overflow: hidden; height: min(calc(100svh - var(--bar-h)), 880px); min-height: 560px; }
.v3-hero-media img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: 60% 40%; will-change: transform; }
.v3-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,31,41,0) 30%, rgba(38,31,41,.82) 100%), linear-gradient(90deg, rgba(38,31,41,.55) 0%, rgba(38,31,41,0) 60%); }
.v3-hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 20px 28px; color: #fff; display: grid; gap: 18px; }
@media (min-width: 768px) { .v3-hero-copy { padding: 0 clamp(28px, 6vw, 104px) 56px; } }
.v3-hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); font-weight: 300; max-width: 22ch; color: #fff; }
.v3-hero-copy h1 strong { font-weight: 600; }
.v3-hero-copy p { color: rgba(255,255,255,.86); max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.v3-hero-copy .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.v3-hero-copy .btn--ghost:hover { box-shadow: inset 0 0 0 1px #fff; }
.v3-hero .img-tag { z-index: 2; }

/* ---------- 3 · Leistungen als Farbskala (Montréal-Prinzip) ---------- */
.scale-section { padding-block: clamp(72px, 9vw, 140px) 0; }
.scale-head { display: grid; gap: 20px; margin-bottom: 36px; }
@media (min-width: 960px) { .scale-head { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.scale { display: flex; flex-direction: column; }
.strip {
  --c: var(--scale-1); --t: var(--dark);
  position: relative; display: block; width: 100%; text-align: left;
  background: var(--c); color: var(--t); border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; overflow: hidden;
}
.strip:nth-child(1) { --c: var(--scale-1); }
.strip:nth-child(2) { --c: var(--scale-2); }
.strip:nth-child(3) { --c: var(--scale-3); }
.strip:nth-child(4) { --c: var(--scale-4); }
.strip:nth-child(5) { --c: var(--scale-5); --t: var(--on-dark); }
.strip:nth-child(6) { --c: var(--scale-6); --t: var(--on-dark); }
.strip:nth-child(7) { --c: var(--scale-7); --t: var(--on-dark); }
.strip-title { display: flex; align-items: baseline; gap: 14px; padding: 18px 16px; }
.strip-no { font: 500 .9rem/1 var(--f-head); font-variant-numeric: tabular-nums; opacity: .8; }
.strip-name { font-family: var(--f-head); font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -0.03em; line-height: 1; font-weight: 300; transition: font-weight .6s, font-variation-settings .6s; }
.strip.is-open .strip-name, .strip:hover .strip-name { font-weight: 600; }
.strip-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1); }
.strip-body > span { display: block; overflow: hidden; min-height: 0; }
.strip-body .inner > span { display: block; }
.strip-body .inner { padding: 0 16px 22px; display: grid; gap: 14px; max-width: 46ch; }
.strip-body p { font-size: 1rem; }
.strip-body .go { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.strip.is-open .strip-body { grid-template-rows: 1fr; }

@media (min-width: 900px) {
  .scale { flex-direction: row; height: clamp(520px, 74vh, 720px); }
  .strip { flex: 1 1 0; min-width: 0; transition: flex-grow .8s cubic-bezier(.2,.8,.2,1); }
  .strip.is-open { flex-grow: 5.2; }
  .strip-title { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 22px 18px 20px; }
  .strip-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(2rem, 3.6vw, 3.8rem); white-space: nowrap; order: 1; }
  .strip-no { order: 2; font-size: clamp(2.4rem, 4vw, 4.4rem); font-weight: 600; line-height: .8; letter-spacing: -0.04em; opacity: 1; }
  .strip.is-open .strip-name { writing-mode: horizontal-tb; transform: none; white-space: normal; max-width: 12ch; }
  .strip-body { position: absolute; left: 18px; right: 22px; bottom: 22px; display: block; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
  .strip-body .inner { padding: 0 0 0 calc(clamp(2.4rem, 4vw, 4.4rem) * 1.6); }
  .strip.is-open .strip-body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
}
/* Typo-Animation beim Einblenden: Streifen wachsen von unten, Titel steigen nach */
.js .scale.is-ready .strip { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), flex-grow .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--k) * 70ms); }
.js .scale.is-ready .strip-name { opacity: 0; translate: 0 30px; transition: opacity .8s, translate 1s cubic-bezier(.2,.8,.2,1), font-weight .6s; transition-delay: calc(var(--k) * 70ms + .45s); }
.js .scale.is-ready.in .strip { clip-path: inset(0 0 0 0); }
.js .scale.is-ready.in .strip-name { opacity: 1; translate: 0 0; }

/* ---------- 4 · Projekte: Bento-Galerie (GSAP Flip + ScrollTrigger) ---------- */
.bento-intro { padding-block: clamp(72px, 9vw, 140px) 40px; }
.bento-wrap { position: relative; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100% - 32px, 1360px); margin-inline: auto; }
@media (min-width: 768px) { .bento { width: min(100% - 64px, 1360px); } }
.bento__item { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--frame); }
.bento__item:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.bento:not(.bento--final) { grid-auto-flow: dense; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; }
.bento__item figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--surface); padding: 6px 10px; font-size: .8rem; font-weight: 500; }
.bento-cta { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; display: none; }

@media (min-width: 900px) {
  .bento-wrap.is-live { height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .is-live .bento {
    grid-template-columns: repeat(3, 32.5vw);
    grid-template-rows: repeat(4, 23vh);
    gap: 1vh; justify-content: center; align-content: center; width: auto; margin: 0;
  }
  .is-live .bento__item { aspect-ratio: auto; }
  .is-live .bento__item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
  .is-live .bento__item:nth-child(2) { grid-area: 3 / 1 / 5 / 2; }
  .is-live .bento__item:nth-child(3) { grid-area: 1 / 2 / 2 / 3; }
  .is-live .bento__item:nth-child(4) { grid-area: 2 / 2 / 4 / 3; }
  .is-live .bento__item:nth-child(5) { grid-area: 4 / 2 / 5 / 3; }
  .is-live .bento__item:nth-child(6) { grid-area: 1 / 3 / 3 / 4; }
  .is-live .bento__item:nth-child(7) { grid-area: 3 / 3 / 5 / 4; }
  .is-live .bento.bento--final { grid-template-columns: repeat(3, 100vw); grid-template-rows: repeat(4, 49.5vh); gap: 1vh; }
  .is-live .bento__item:nth-child(4) figcaption { display: none; }
  .is-live .bento-cta { display: grid; gap: 14px; justify-items: start; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(38,31,41,.75)); padding: 120px clamp(28px, 6vw, 104px) 56px; }
  .is-live .bento-cta h3 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 300; color: #fff; max-width: 16ch; }
  .is-live .bento-cta h3 strong { font-weight: 600; }
}
.project-index { padding-block: 40px clamp(72px, 9vw, 140px); }
.project-index ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; }
@media (min-width: 768px) { .project-index ul { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.project-index ul a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 var(--f-head); letter-spacing: -0.015em; }
.project-index ul a span { font: 400 .85rem/1.6 var(--f-body); color: var(--ink-soft); }

/* ---------- 5 · Marken-Laufband + Kontakt (CROX-Prinzip mit Flieder) ---------- */
.partners { display: grid; background: var(--bg); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .partners { grid-template-columns: clamp(160px, 14vw, 220px) 1fr; } }
.partners-side {
  background: var(--frame); color: var(--dark);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 0 0 18px;
}
.partners-side .bars { height: 28px; background: repeating-linear-gradient(90deg, var(--dark) 0 5px, transparent 5px 11px); }
.partners-side .label { padding: 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.partners-main { min-width: 0; display: grid; }
.partners-stage {
  padding: clamp(40px, 7vw, 100px) 16px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 5px);
  display: grid; place-items: center;
}
.partners-card {
  background: var(--bg); width: min(100%, 880px);
  padding: clamp(24px, 4vw, 48px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 768px) { .partners-card { grid-template-columns: 180px 1fr; gap: 40px; } }
.partners-card .motif { aspect-ratio: 1; background:
  linear-gradient(var(--green), var(--green)) 0 0 / 34% 34% no-repeat,
  repeating-linear-gradient(135deg, var(--dark) 0 1px, transparent 1px 7px); opacity: .9; max-width: 96px; width: 100%; }
@media (min-width: 768px) { .partners-card .motif { max-width: 180px; } }
.partners-card h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 14px; }
.partners-card p { color: var(--ink-soft); max-width: 46ch; }
.partners-card .hero-cta { margin-top: 22px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-cell { flex: none; width: clamp(150px, 14vw, 200px); height: clamp(96px, 9vw, 128px); display: grid; place-items: center; border-right: 1px solid var(--line); }
.marquee-cell img { max-width: 62%; max-height: 46%; width: auto; height: auto; filter: grayscale(1); opacity: .72; mix-blend-mode: multiply; transition: opacity .3s, filter .3s; }
.marquee-cell:hover img { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-note { padding: 10px 16px; font-size: .78rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ---------- Ohne Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .strip, .strip-body, .strip-name, .v3-pill { transition: none !important; }
}
.reduce-motion .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
.reduce-motion .marquee-track [aria-hidden="true"] { display: none; }
.reduce-motion .strip, .reduce-motion .strip-body, .reduce-motion .strip-name { transition: none !important; }

/* ---------- Was wir machen: großes QUADRO-Quadrat als Stilelement ---------- */
.intro-v3 { position: relative; overflow: hidden; }
.big-square {
  position: absolute; z-index: 0; left: 24vw; top: 50%;
  width: clamp(220px, 32vw, 520px); aspect-ratio: 1; background: var(--green);
  translate: 0 -50%;
}
.intro-v3 .wrap { position: relative; z-index: 1; }
.intro-v3 .eyebrow { color: var(--dark); }
.intro-v3 .intro-statement .soft { color: var(--ink-soft); }
@media (max-width: 959px) { .big-square { left: 30vw; top: 40px; translate: none; width: 56vw; } .intro-v3 .intro-grid { padding-top: 22vw; } }
/* Line-Splits: jede Zeile in eigener Maske (SplitText mask: "lines") */
.intro-statement .line-mask { padding-bottom: .06em; }

/* ---------- Endlos-Panels DB Loft ---------- */
.loop { padding: clamp(72px, 9vw, 140px) 0; background: var(--bg); }
.loop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-bottom: 28px; }
.loop-head .h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.loop-head .link { margin-left: auto; }
.loop-viewport { overflow: hidden; }
.loop-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.loop-item { flex: none; margin: 0; height: clamp(300px, 62vh, 640px); aspect-ratio: 3 / 4; overflow: hidden; }
.loop-item.is-wide { aspect-ratio: 4 / 3; }
.loop-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.loop-item:hover img { transform: scale(1.04); }
.loop-note { margin-top: 14px; font-size: .8rem; color: var(--ink-soft); }
.reduce-motion .loop-viewport, html:not(.js) .loop-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.reduce-motion .loop-item, html:not(.js) .loop-item { scroll-snap-align: start; }

/* ---------- Einrichtung als typografische Liste mit Bildwechsel ---------- */
.sit-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 900px; }
.sit-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .sit-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; } }
.sit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sit-row {
  display: grid; grid-template-columns: 2.6rem 1fr 92px; grid-template-areas: "no name thumb" "no txt thumb"; gap: 4px 14px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.sit-no { grid-area: no; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; align-self: start; padding-top: .5em; }
.sit-name { grid-area: name; font: 300 clamp(1.6rem, 3.6vw, 3.4rem)/1.05 var(--f-head); letter-spacing: -0.035em; transition: font-weight .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.sit-txt { grid-area: txt; font-size: .95rem; color: var(--ink-soft); }
.sit-thumb { grid-area: thumb; width: 92px; aspect-ratio: 1; object-fit: cover; }
.sit-row.is-active .sit-name, .sit-row:hover .sit-name { font-weight: 600; }
@media (min-width: 960px) {
  .sit-row { grid-template-columns: 3rem 1fr; grid-template-areas: "no name" "no txt"; padding: 24px 0; }
  .sit-thumb { display: none; }
  .sit-txt { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s; }
  .sit-row.is-active .sit-txt { max-height: 3em; opacity: 1; }
  .sit-row.is-active .sit-name { transform: translateX(10px); }
  .sit-row.is-active .sit-no::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--green); margin-right: 8px; }
}
.sit-visual { display: none; }
@media (min-width: 960px) {
  .sit-visual { display: block; position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--frame); }
  .sit-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 1.2s cubic-bezier(.2,.8,.2,1); }
  .sit-visual img.is-active { opacity: 1; transform: none; }
  .sit-count { position: absolute; left: 16px; bottom: 16px; background: var(--surface); padding: 6px 10px; font-size: .82rem; font-variant-numeric: tabular-nums; }
}

/* ---------- Team-Sequenz ---------- */
.team { border-top: 1px solid var(--line); }
.team-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .team-head { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.team-side { display: grid; gap: 18px; justify-items: start; }
.members {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64%, 260px); gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-left: 1px solid var(--line);
}
.members::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .members { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }
.member { scroll-snap-align: start; padding: 0 14px 6px; border-right: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.member figure { margin: 0 0 12px; overflow: hidden; aspect-ratio: 3 / 4.6; position: relative; background: var(--frame); }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); transition: filter .6s, transform 1s cubic-bezier(.2,.8,.2,1); }
.member figure::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 10px; height: 10px; background: var(--green); transform: scale(0); transition: transform .4s; }
.member:hover img { filter: none; transform: scale(1.04); }
.member:hover figure::after { transform: scale(1); }
.member h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.member p { font-size: .88rem; color: var(--ink-soft); }
@media (hover: none) { .member img { filter: none; } }
