/* side by sight — project pages ("Reise hinter die Kulissen")
   All project pages share one system and the side by sight colours:
   --proj (orange accent), --proj-ink (navy, carries white text), --proj-soft (light tint).
   Orange stays reserved for side by sight actions. */

.case {
  --anchor-extra: 56px;
  /* One system for every project: side by sight navy and orange, no client colours */
  --proj: var(--orange);
  --proj-ink: var(--navy);
  --proj-soft: var(--tint);
}

/* Head: name, facts, big image */
.case-head { padding-top: clamp(6.5rem, 5rem + 5vw, 9rem); }
.case-back {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 600; font-size: .9375rem; color: var(--muted); text-decoration: none;
}
.case-back::before {
  content: ""; width: .45em; height: .45em;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg);
}
.case-back:hover { color: var(--navy); }
.case-head__grid { display: grid; gap: 2rem; margin-top: 1rem; }
.case-head__title {
  font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.25rem, 1.5rem + 9vw, 9.5rem); line-height: .9; letter-spacing: -0.01em; color: var(--navy);
}
.case-head__lede { margin-top: 1.25rem; max-width: 36rem; color: var(--muted); }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); align-self: end; }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9375rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 1rem; color: var(--navy); font-weight: 500; }
.facts a { display: inline-flex; min-height: 24px; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .25em; }
.case-hero { margin-top: clamp(2rem, 1rem + 3vw, 4rem); border-radius: var(--r); overflow: hidden; background: #fff; }
.case-hero img { display: block; width: 100%; height: auto; max-height: min(62vh, 640px); object-fit: cover; }
@media (min-width: 900px) {
  .case-head__grid { grid-template-columns: 7fr 5fr; column-gap: clamp(2rem, 5vw, 6rem); align-items: end; }
}

/* Journey: chapter rail + chapters */
.journey { position: relative; padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.rail {
  position: sticky; top: 4.5rem; z-index: 20;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  background: var(--paper); box-shadow: 0 1px 0 var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail ol { display: flex; gap: .25rem; margin: 0; padding: .375rem 0; white-space: nowrap; }
.rail a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .25rem .75rem;
  border-radius: var(--r-sm); font-weight: 600; font-size: .9375rem; color: var(--muted); text-decoration: none;
  transition: background-color .25s, color .25s;
}
.rail__n { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: .875rem; color: var(--proj-ink); opacity: .7; }
.rail a:hover { color: var(--navy); }
.rail a[aria-current="true"] { background: var(--navy); color: #fff; }
.rail a[aria-current="true"] .rail__n { color: #fff; opacity: .8; }

@media (min-width: 1000px) {
  .case { --anchor-extra: 0px; }
  .journey { display: grid; grid-template-columns: 12rem minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 6rem); }
  .rail {
    top: 7rem; align-self: start; margin: 0; padding: 0;
    background: none; box-shadow: none; overflow: visible;
    padding-top: clamp(3rem, 2rem + 3vw, 5.5rem);
  }
  /* A vertical track that fills in the client colour as you read */
  .rail ol { position: relative; flex-direction: column; gap: .25rem; padding: 0 0 0 1.25rem; white-space: normal; }
  .rail ol::before, .rail ol::after {
    content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px;
  }
  .rail ol::before { background: var(--line); }
  .rail ol::after { background: var(--proj); transform-origin: 0 0; transform: scaleY(var(--progress, 0)); transition: transform .2s linear; }
  .rail a { padding-inline: 0; border-radius: 0; background: none; }
  .rail a[aria-current="true"] { background: none; color: var(--navy); }
  .rail a[aria-current="true"] .rail__n { color: var(--proj-ink); opacity: 1; }
}

/* Chapters */
.chapter { min-width: 0; padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); scroll-margin-top: calc(4.5rem + var(--anchor-extra) + 1rem); }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter__n {
  font-family: var(--display); font-stretch: 62%; font-weight: 800; line-height: 1;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); color: var(--proj); margin-bottom: .75rem;
}
.chapter h2 { color: var(--navy); max-width: 20ch; }
.chapter__text { margin-top: 1rem; max-width: 38rem; }

/* Modules: tiles on one grid, like pages of a design manual */
.modules { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.module { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.module img { display: block; width: 100%; height: auto; }
.module figcaption { padding: .9rem 1rem 1rem; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.module figcaption strong { display: block; color: var(--navy); font-weight: 600; font-size: 1rem; }
.module--white { background: #fff; }
.art { aspect-ratio: 1; display: grid; place-items: center; padding: 16%; background: #fff; }
.art img { width: 100%; height: 100%; object-fit: contain; }
.art--full { padding: 0; }

/* Colour module: the client colour itself is the content */
.module--proj { background: var(--proj-ink); }
.module--proj figcaption { color: rgba(255, 255, 255, .82); }
.module--proj figcaption strong { color: #fff; }
.swatches { flex: 1; display: grid; grid-template-rows: 3fr 1fr 1fr; min-height: 14rem; }
.swatches span:first-child { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }

.module--note { background: var(--proj-soft); padding: clamp(1.25rem, 1rem + 1vw, 2rem); justify-content: flex-end; }
.note__title { font-weight: 600; color: var(--proj-ink); }
.note__list { margin-top: .75rem; }
.note__list li {
  padding-block: .65rem; border-top: 1px solid rgba(42, 98, 51, .2);
  font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.15; color: var(--navy);
}

.module--channel {
  background: var(--proj-ink); color: #fff; text-decoration: none;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem); justify-content: flex-end; gap: .35rem; min-height: 12rem;
  transition: background-color .25s;
}
.module--channel:hover { background: var(--navy); }
.channel__handle { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.05; overflow-wrap: anywhere; }
.channel__text { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.channel__text::after {
  content: ""; width: .5em; height: .5em; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg);
}
.module--channel:focus-visible { outline-color: var(--navy); }

@media (min-width: 700px) {
  .modules--3 { grid-template-columns: repeat(3, 1fr); }
  .modules--content { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); align-items: end; }
}
@media (min-width: 900px) {
  .modules--manual { grid-template-columns: 7fr 5fr; }
}

/* Applications: three formats side by side at their real proportions */
.modules--apps { grid-template-columns: 1fr 1fr; align-items: start; }
.module--screen { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .modules--apps { grid-template-columns: 6fr 2.2fr 3fr; align-items: end; }
  .module--screen { grid-column: auto; }
}

/* End: ask for a project, or move on to the next case — the same on every project page */
.case-end { padding-block: var(--section) 0; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: end; }
.case-end__ask { display: grid; gap: 1rem; justify-items: start; }
.case-end h2 { color: var(--navy); max-width: 18ch; }
.case-end p { max-width: 34rem; color: var(--muted); }
.case-end__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 1rem; }
/* More projects: three other cases in one quiet row.
   On hover the card widens a little and pushes its neighbours aside, as on the homepage. */
.more { padding-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); border-top: 1px solid var(--line); }
.more__title { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.more__list { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 0; }
.more__card { display: grid; gap: .15rem; text-decoration: none; color: inherit; }
.more__img { --inset: 14px; position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: .5rem; border-radius: var(--r-sm); overflow: hidden; background: var(--navy); isolation: isolate; }
.more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.22, 1, .36, 1), filter .6s ease; }
/* Same hover as the homepage: toned in company blue, "Projekt ansehen" rises */
.more__img .project__cta { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); }
.more__card:hover .project__tint::before, .more__card:focus-visible .project__tint::before { opacity: 1; }
.more__card:hover .project__tint::after, .more__card:focus-visible .project__tint::after { opacity: .32; }
.more__card:hover .more__img img, .more__card:focus-visible .more__img img { transform: scale(1.035); filter: grayscale(1) brightness(1.12) contrast(1.05); }
.more__card:hover .project__cta, .more__card:focus-visible .project__cta { opacity: 1; transform: none; }
.more__name { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--navy); }
.more__name::after { content: ""; width: .32em; height: .32em; border-top: 1.5px solid var(--orange); border-right: 1.5px solid var(--orange); transform: rotate(45deg); transition: transform .25s; }
.more__card:hover .more__name::after { transform: translateX(3px) rotate(45deg); }
.more__type { font-size: .875rem; color: var(--muted); }
.more__card:focus-visible { outline-offset: 6px; }
@media (min-width: 700px) {
  .more__list { display: flex; container-type: inline-size; }
  .more__list > li { flex: 1 1 0; min-width: 0; transition: flex-grow 1.1s cubic-bezier(.22, 1, .36, 1); }
  /* Image height stays fixed while the widths shift */
  .more__img { aspect-ratio: auto; height: calc((100cqw - 2rem) / 3 * .62); }
}
@media (min-width: 700px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .more__list > li:hover, .more__list > li:has(a:focus-visible) { flex-grow: 1.08; }
}

/* Shots: rows of photos that keep their real proportions and share one height */
.shots { display: grid; gap: clamp(.5rem, .35rem + .6vw, 1rem); margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.shots__row { display: flex; flex-wrap: wrap; gap: clamp(.5rem, .35rem + .6vw, 1rem); }
.shot { position: relative; margin: 0; flex: 1 1 calc(50% - 1rem); border-radius: var(--r); overflow: hidden; background: var(--proj-soft); }
.shot img { display: block; width: 100%; height: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.shot figcaption {
  position: absolute; left: .5rem; bottom: .5rem;
  padding: .25rem .55rem; border-radius: var(--r-sm);
  background: rgba(244, 244, 242, .92); color: var(--navy); font-size: .8125rem; font-weight: 600; line-height: 1.3;
}
/* Phones: landscapes take the full width, portraits pair up */
.shot--wide { flex-basis: 100%; order: -1; }
.shot:not(.shot--wide) img { aspect-ratio: 3 / 4; }
@media (min-width: 700px) {
  .shots__row { flex-wrap: nowrap; }
  .shot { flex: calc(var(--ar)) 1 0; min-width: 0; }
  .shot--wide { order: 0; }
  .shot:not(.shot--wide) img { aspect-ratio: var(--ar); }
}

/* Reels: 9:16 slots, Instagram only loads after a click */
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 20rem); gap: clamp(.75rem, .5rem + 1vw, 1.25rem);
  margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.reel { scroll-snap-align: start; }
.reel { display: grid; gap: .25rem; }
.reel__frame {
  position: relative; aspect-ratio: 9 / 17; border-radius: var(--r); overflow: hidden;
  background: var(--proj-ink); color: #fff; display: grid; place-items: center; align-content: center; gap: .75rem; padding: 1rem; text-align: center;
}
.reel__frame.is-loaded { padding: 0; background: #fff; }
.reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.reel__play {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem 1.1rem .6rem .7rem;
  border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .2s;
}
.reel__play:hover { transform: scale(1.04); }
.reel__icon { width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); position: relative; }
.reel__icon::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .38rem 0 .38rem .62rem; border-color: transparent transparent transparent #fff; }
.reel__link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .25em; }
@media (min-width: 1000px) {
  .reels { margin-left: 0; padding-left: 0; scroll-padding-inline: 0; }
}

/* Own reel videos */
.reel__frame--video { padding: 0; background: #111; }
.reel__frame--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__frame--video { aspect-ratio: 9 / 16; }
.reel__sound {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15, 27, 43, .62); color: #fff; display: grid; place-items: center;
  transition: background-color .2s;
}
.reel__sound:hover { background: rgba(15, 27, 43, .85); }
.reel__sound[aria-pressed="true"] { background: var(--orange); }
/* Speaker icon, struck through while muted */
.reel__sound-icon { position: relative; width: 18px; height: 18px; }
.reel__sound-icon::before {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  clip-path: polygon(0 35%, 30% 35%, 62% 8%, 62% 92%, 30% 65%, 0 65%);
}
.reel__sound-icon::after {
  content: ""; position: absolute; left: 50%; top: -2px; width: 2px; height: 22px; background: currentColor;
  transform: rotate(-45deg); transform-origin: 50% 50%;
}
.reel__sound[aria-pressed="true"] .reel__sound-icon::after { display: none; }

/* Strip: one row of photos at a fixed height, swiped sideways */
.strip {
  --strip-h: clamp(13rem, 9rem + 12vw, 20rem);
  display: flex; gap: clamp(.5rem, .35rem + .6vw, .875rem);
  margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) .75rem;
  list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.strip__item { flex: none; height: var(--strip-h); aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; background: var(--proj-soft); scroll-snap-align: start; }
.strip__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .strip { margin-left: 0; padding-left: 0; scroll-padding-inline: 0; }
}

/* Crew: who does what on the day */
.crew__title { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-size: var(--t-h3); color: var(--navy); }
.crew__intro { margin-top: .75rem; max-width: 40rem; }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: clamp(1rem, .75rem + 1vw, 1.75rem); margin-top: 1.25rem; max-width: 46rem; }
.crew__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: var(--proj-soft); display: grid; place-items: center;
}
.crew__photo::before {
  content: attr(data-initials);
  font-family: var(--display); font-stretch: 62%; font-weight: 800; font-size: 3rem; color: var(--proj); opacity: .35;
}
.crew__member img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.crew__member--lead .crew__photo { background: var(--proj-ink); }
.crew__member--lead .crew__photo::before { color: #fff; opacity: .4; }
.crew__name { margin-top: .75rem; font-weight: 600; font-size: 1.0625rem; color: var(--navy); }
.crew__roles { margin-top: .15rem; font-size: .9375rem; font-style: italic; line-height: 1.45; color: var(--muted); }

/* Result brief: the client's problem and how it was solved, then the numbers */
.brief-result { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.brief-result p { max-width: 34rem; }
.brief-result__label { font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.brief-result__icon { color: var(--orange); }
/* Numbers: cells share one height so every hairline runs straight.
   Two per row on phones and tablets, all in one row on wide screens. */
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0; border-top: 1px solid var(--navy); }
.stats > div { padding: 1.1rem 1rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stats dt {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: calc(1.35rem + clamp(2.5rem, 2rem + 2.4vw, 4rem));
  font-family: var(--display); font-stretch: 62%; font-weight: 800; line-height: 1;
  font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem); color: var(--navy); font-variant-numeric: tabular-nums;
}
.stats__pre { display: block; font-family: var(--sans); font-stretch: 100%; font-weight: 600; font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.stats dd { margin: .5rem 0 0; font-size: 1rem; line-height: 1.4; color: var(--navy); max-width: 16rem; }
@media (min-width: 900px) {
  .brief-result { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .stats > div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .stats > div:first-child { padding-left: 0; border-left: 0; }
  .stats > div:last-child:nth-child(odd) { grid-column: auto; }
}

/* Smaller image block: two quiet rows instead of a full-width wall */
@media (min-width: 700px) {
  .shots--compact { max-width: 54rem; }
}

/* Head image for print work: cover and one spread side by side, same height */
.cover-duo { display: flex; gap: clamp(.5rem, .35rem + .6vw, 1rem); margin-top: clamp(2rem, 1rem + 3vw, 4rem); }
.cover-duo figure { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 43, .08); }
.cover-duo figure:first-child { flex: 0.707 1 0; }
.cover-duo figure:last-child { flex: 1.414 1 0; }
.cover-duo img { display: block; width: 100%; height: auto; }

/* Client voice */
.quote { display: grid; grid-template-columns: 5.5rem 1fr; gap: .25rem 1.25rem; align-items: start; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 46rem; }
.quote__photo { grid-row: span 2; width: 5.5rem; height: 5.5rem; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: var(--proj-soft); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--navy); text-wrap: pretty; }
.quote blockquote p:first-child::before { content: "\201E"; color: var(--orange); }
.quote blockquote p:last-child::after { content: "\201C"; color: var(--orange); }
.quote blockquote p + p { margin-top: .75em; }
.quote figcaption { font-size: .9375rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* Page plan viewer: one spread large, the whole issue as a flatplan below */
.viewer { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.viewer__stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--proj-soft); box-shadow: 0 1px 2px rgba(15, 27, 43, .08); aspect-ratio: 1600 / 1131; }
.viewer__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.viewer__img.is-loading { opacity: .35; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.viewer__label { font-size: .9375rem; font-weight: 600; color: var(--navy); text-align: center; }
.viewer__btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--navy); transition: border-color .2s, background-color .2s; }
.viewer__btn:hover { border-color: var(--navy); }
.viewer__arrow { width: .55rem; height: .55rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-2px) rotate(45deg); }
.viewer__arrow--prev { transform: translateX(2px) rotate(-135deg); }
.flat { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.flat__page { display: grid; gap: .3rem; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.flat__page img { display: block; width: 100%; aspect-ratio: 1600 / 1131; object-fit: cover; border-radius: 3px; background: #fff; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, opacity .2s; opacity: .8; }
.flat__page--cover img { object-fit: contain; background: var(--proj-soft); }
.flat__page:hover img { opacity: 1; }
.flat__page[aria-current="true"] img { outline-color: var(--orange); opacity: 1; }
.flat__num { font-size: .75rem; color: var(--muted); }
.flat__page[aria-current="true"] .flat__num { color: var(--navy); font-weight: 600; }
.brief-result__label { display: flex; align-items: center; gap: .5rem; }
.brief-result__icon { width: 1.375rem; height: 1.375rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stats__link { margin-top: 1rem; }

/* Film: a still with a play button; YouTube only loads after the click */
.film { position: relative; margin-top: clamp(2rem, 1rem + 3vw, 4rem); aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: #fff; font: inherit; text-align: left; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.film__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 27, 43, .7), rgba(15, 27, 43, 0) 55%); }
.film__poster:hover img { transform: scale(1.02); }
.film__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(4rem, 3rem + 4vw, 6rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); transform: translate(-50%, -50%); transition: transform .25s;
}
.film__play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .75em 0 .75em 1.2em; border-color: transparent transparent transparent #fff; font-size: clamp(.9rem, .7rem + .6vw, 1.25rem); }
.film__poster:hover .film__play { transform: translate(-50%, -50%) scale(1.06); }
.film__label { position: absolute; z-index: 1; left: clamp(1rem, .5rem + 2vw, 2rem); bottom: clamp(1rem, .5rem + 2vw, 1.75rem); font-weight: 600; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); }
.film__meta { display: block; font-weight: 400; font-size: .875rem; opacity: .8; }
.film__poster:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* Credit line under the film: who made it together */
.credit { display: grid; gap: .25rem; margin-top: 1rem; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.credit__names { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.1; color: var(--navy); }
.credit__x { color: var(--orange); margin-inline: .2em; }
.credit__names a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.credit__note { font-size: .9375rem; color: var(--muted); }
@media (min-width: 900px) {
  .credit { grid-template-columns: auto 1fr; align-items: baseline; gap: 2rem; }
}
.credit__role { display: block; font-family: var(--sans); font-stretch: 100%; font-weight: 600; font-size: .875rem; line-height: 1.4; color: var(--muted); }
/* A full-length testimonial sits above the numbers */
.quote--long { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); padding-top: 0; border-top: 0; max-width: 48rem; }
.quote--long blockquote p { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
.quote--long + .stats { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* Roles: what I did, grouped */
.roles { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.roles__title { font-weight: 600; color: var(--muted); font-size: .9375rem; margin-bottom: .5rem; }
.roles ul { margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.roles li {
  padding-block: .7rem; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.15; color: var(--navy);
}
@media (min-width: 900px) {
  .roles { grid-template-columns: 1fr 1fr; }
}

/* Mock-up slots: business cards at their real 85 × 55 mm proportion */
.mockups { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.mockup {
  aspect-ratio: 85 / 55; border-radius: var(--r); background: var(--tint);
  display: grid; place-items: center; color: var(--muted); font-size: .9375rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mockups img { display: block; width: 100%; height: auto; border-radius: var(--r); }
@media (min-width: 700px) {
  .mockups { grid-template-columns: 1fr 1fr; }
}

.film__note { margin-top: .75rem; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.film__note a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: .25em; }

/* Logo-Vergleich: fünf Varianten, drei Hintergründe, eine Mini-Vorschau.
   Die Logos sind Inline-SVGs in currentColor, der Hintergrund gibt die Logofarbe vor. */
.bench { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.bench__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); transition: background-color .35s ease, color .35s ease; }
.bench__stage[data-ground="grau"] { background: var(--kf-grey); color: var(--kf-gold); }
.bench__stage[data-ground="weiss"] { background: #fff; color: var(--kf-grey); box-shadow: inset 0 0 0 1px var(--line); }
.bench__stage[data-ground="gold"] { background: var(--kf-gold); color: var(--kf-grey); }
.bench__logo { grid-area: 1 / 1; margin: 0; min-height: 0; padding: var(--pad, 18%); opacity: 0; transform: scale(1.12); transition: opacity .12s linear; }
.bench__logo.is-active { opacity: 1; transform: none; animation: bench-drop .34s cubic-bezier(.3, 1.5, .5, 1); }
.bench__logo svg, .bench__mini svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.bench__mini { position: absolute; right: .75rem; bottom: .75rem; width: 44px; height: 44px; }
@media (min-width: 700px) {
  .bench__mini { right: 1rem; bottom: 1rem; width: 56px; height: 56px; }
}
@media (min-width: 900px) {
  .bench__stage { aspect-ratio: 16 / 9; }
}
.bench__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: .75rem; }
.bench__group { display: flex; flex-wrap: wrap; gap: .375rem; }
.bench__group button {
  min-width: 44px; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent;
  color: var(--navy); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.bench__group button:hover { border-color: var(--navy); }
.bench__group button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Solange die Werkbank von selbst wechselt: Balken im aktiven Variantenknopf, einmal pro Schritt voll */
.bench__group button { position: relative; overflow: hidden; }
.bench.is-auto [data-variant][aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--orange);
  transform-origin: left; animation: bench-progress var(--bench-step, 2.5s) linear both;
}
@keyframes bench-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bench-drop { from { transform: scale(1.14); } 60% { transform: scale(.985); } }
@media (prefers-reduced-motion: reduce) {
  .bench__logo.is-active { animation: none; }
}

/* Kingdom Fitness: Gold und Grau sind hier Inhalt (das Logo auf seinen Farben), die Bedienung bleibt navy und orange */
.case--kf { --kf-gold: #FFCF6E; --kf-grey: #4E4E4D; }
.kf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Kopf: die Logoanimation läuft einmal und bleibt auf dem fertigen Logo stehen.
   Der Grauton ist der Hintergrund des Videos selbst. */
.kf-intro { position: relative; aspect-ratio: 4 / 3; max-height: min(68vh, 660px); background: #4F4F4F; }
.kf-intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kf-intro__replay {
  position: absolute; left: clamp(.75rem, .5rem + 1vw, 1.25rem); bottom: clamp(.75rem, .5rem + 1vw, 1.25rem);
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem 1rem .4rem .4rem;
  border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: transform .2s;
}
.kf-intro__replay[hidden] { display: none; }
.kf-intro__replay:hover { transform: scale(1.04); }
.kf-intro__icon { width: 2rem; height: 2rem; padding: .4rem; border-radius: 50%; background: var(--orange); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) { .kf-intro { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .kf-intro { aspect-ratio: 21 / 9; } }

/* Logo-Kapitel: Bildmarke und Farben nebeneinander, die Schrift darunter über die volle Breite */
.kf-sheet__wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .kf-sheet { grid-template-columns: 7fr 5fr; }
}
.kf-art { aspect-ratio: 4 / 3; padding: 15% 22%; background: var(--kf-grey); color: var(--kf-gold); }
.kf-art svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.kf-swatches { flex: 1; display: grid; grid-template-rows: 1fr 1fr; min-height: 17rem; }
.kf-swatch { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: clamp(1rem, .8rem + .8vw, 1.5rem); }
.kf-swatch--gold { background: var(--kf-gold); color: var(--kf-grey); }
.kf-swatch--grey { background: var(--kf-grey); color: var(--kf-gold); }
.kf-swatch__name { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1; }
.kf-swatch dl { margin: 0; display: grid; gap: .1rem; font-size: .875rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.kf-swatch dl > div { display: grid; grid-template-columns: 3.25rem 1fr; }
.kf-swatch dt { font-weight: 600; }
.kf-swatch dd { margin: 0; }

/* Schriftmuster wie in den Guidelines: oben „kin g d om“, unten „fit n e ss“, je Spalte ein Schnitt.
   --u ist die Größe einer Logo-Einheit, damit beide Zeilen im Maßstab des Originals bleiben. */
.kf-specimen { container-type: inline-size; display: grid; gap: clamp(1.75rem, 1rem + 2.5vw, 3rem); padding: clamp(1.25rem, .75rem + 2.5vw, 3rem); background: var(--kf-gold); color: var(--kf-grey); }
.kf-type { --gap: clamp(.5rem, 1.6cqw, 1.75rem); --u: min(3.4px, calc((100cqw - 6 * var(--gap)) / 212)); display: flex; }
.kf-type__col { display: flex; flex-direction: column; align-items: flex-start; padding-inline: var(--gap); border-left: 1px solid rgba(78, 78, 77, .45); }
.kf-type__col:first-child { padding-left: 0; border-left: 0; }
.kf-type svg { display: block; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); fill: currentColor; }
.kf-type__cut { display: block; width: min-content; margin-block: .65rem .8rem; font-size: .75rem; font-weight: 600; line-height: 1.25; }
@media (min-width: 700px) {
  .kf-type__cut { font-size: .8125rem; }
}

/* Animation: das Reel im Hochformat, daneben was im Logokit steckt */
.kf-motion { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.5rem); margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.kf-motion .reel { width: min(100%, 22rem); }
.kf-motion .reel__frame--video { background: #4F4F4F; }
@media (min-width: 760px) {
  .kf-motion { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: end; }
  .kf-motion .reel { width: auto; }
}

/* Café Hoffnung: Logo-Präsentation nach dem Muster von Kingdom Fitness.
   Grün aus der Logodatei (250404_cafe-logo.svg), Dunkelgrün aus der Logoanimation.
   Kundenfarben nur in den Präsentationsflächen, die Seite selbst bleibt bei side by sight */
.case--cafe { --ch-green: #3D8247; --ch-deep: #1D4928; --ch-black: #1E1E1E; }
.ch-intro { background: var(--ch-deep); }
.ch-art { aspect-ratio: 4 / 3; padding: 13% 30%; background: #fff; color: var(--ch-green); }
.ch-art svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.ch-swatches { grid-template-rows: repeat(3, 1fr); min-height: 21rem; }
.ch-swatch--green { background: var(--ch-green); color: #fff; }
.ch-swatch--deep { background: var(--ch-deep); color: #fff; }
.ch-swatch--black { background: var(--ch-black); color: #fff; }
.ch-specimen { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, .75rem + 4vw, 4rem); background: var(--ch-green); color: #fff; }
.ch-specimen svg { display: block; width: min(100%, 27rem); height: auto; aspect-ratio: 157.2 / 92.8; fill: currentColor; }
.ch-specimen .kf-type__cut { width: auto; margin: 0; }
/* Werkbank: drei Hintergründe, der Button spart das Logo in der Hintergrundfarbe aus */
.case--cafe .bench__stage[data-ground="weiss"] { --bench-bg: #fff; background: #fff; color: var(--ch-green); box-shadow: inset 0 0 0 1px var(--line); }
.case--cafe .bench__stage[data-ground="gruen"] { --bench-bg: var(--ch-green); background: var(--ch-green); color: #fff; }
.case--cafe .bench__stage[data-ground="dunkel"] { --bench-bg: var(--ch-deep); background: var(--ch-deep); color: #fff; }
.ch-knockout { fill: var(--bench-bg, #fff); }
.kf-motion .ch-motion { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
/* Anwendungen: zwei Reihen wie bei den Fotos, jede Reihe gleich hoch, Breite nach Seitenverhältnis (--ar).
   Handys: das Video über die ganze Breite, alles andere paarweise */
.ch-apps { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.ch-apps__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.ch-apps__row > .module { flex: 1 1 calc(50% - 1.25rem); min-width: 0; }
.ch-apps__row > .ch-apps__wide { flex-basis: 100%; }
.ch-apps .module img { aspect-ratio: var(--ar); object-fit: cover; }
.ch-apps .reel__frame--video.ch-apps__video { aspect-ratio: var(--ar); border-radius: 0; background: var(--ch-deep); }
@media (min-width: 900px) {
  .ch-apps__row { flex-wrap: nowrap; }
  .ch-apps__row > .module, .ch-apps__row > .ch-apps__wide { flex: calc(var(--ar)) 1 0; }
}
