/* SCHMIDTWIRKUNG · Projektseiten V7 · „Fallbericht“ (setzt css/v7.css voraus)
   Vorlage für alle Projekte: Kopf mit Projektfoto, Steckbrief, vier Abschnitte
   (Ausgangslage, Vorgehen, Umsetzung, Wirkung), Abbildungen, Kundenstimme,
   voriger und nächster Fall, roter Schluss. */

/* ---------------------------------------------------------------- Kopf */
.hero--case { height: 100vh; height: 100svh; min-height: 34rem; max-height: 62rem; background: #2A2726; }
.hero--case .hero__ground { inset: -4% 0; }
.hero--case .hero__ground img { filter: none; object-position: 50% 45%; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(16, 12, 11, 0.86) 0%, rgba(16, 12, 11, 0.55) 26%, rgba(16, 12, 11, 0) 54%),
              linear-gradient(to bottom, rgba(16, 12, 11, 0.45), rgba(16, 12, 11, 0) 16%); }
.hero--case .hero__copy { top: auto; bottom: clamp(2.5rem, 8vh, 5.5rem); width: min(60rem, 86vw); }
@media (min-width: 1200px) { .hero--case .hero__copy { left: max(16rem, calc((100vw - 64rem) / 2)); } }
.hero--case .hero__name { font-size: clamp(2.6rem, 1.3rem + 5vw, 6.4rem); }
.hero--case .hero__role { margin-top: 0.6rem; font-family: var(--sc-font-text); text-transform: none; font-weight: 600; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.6rem); line-height: 1.3; letter-spacing: -0.005em; max-width: 34ch; }
@media (max-width: 760px) {
  .hero--case { height: 82svh; min-height: 30rem; }
  .hero--case .hero__copy { left: var(--gutter); right: var(--gutter); width: auto; }
  .hero--case .hero__ground img { object-position: var(--focus-m, 50% 45%); } /* Ausschnitt je Fall, z. B. das Logo auf der Autotür */
}

/* ----------------------------------------------------------- Steckbrief */
.case-intro { border-top: 0; }
.case-intro__wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.facts { background: var(--paper-hi); border: 1px solid var(--rule-strong); border-radius: 0.45rem; padding: 1.3rem 1.4rem 1.1rem; box-shadow: 0 1px 2px rgba(40, 10, 0, 0.06), 0 18px 34px -26px rgba(40, 10, 0, 0.35); }
.facts__head { font-family: var(--sc-font-display); text-transform: uppercase; color: var(--red-ink); font-size: 1.35rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
.facts dl { margin: 0; }
.facts dl > div { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; color: var(--ink); font-size: 0.97rem; line-height: 1.45; }
.facts a, a.ext { padding-block: 0.2rem; color: var(--red-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease), text-underline-offset 160ms var(--ease); }
a.ext::after { content: "↗"; display: inline-block; margin-left: 0.3em; transition: translate 200ms var(--ease); }
/* wie die übrigen Textlinks: Unterstreichung wird kräftig und rückt ab, der Pfeil zeigt nach draußen */
:is(.facts a, a.ext):is(:hover, :focus-visible) { color: var(--ink); text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
a.ext:is(:hover, :focus-visible)::after { translate: 0.15em -0.15em; }
@media (max-width: 900px) { .case-intro__wrap { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- Abbildungen */
.plate { margin: 0; }
.plate img { width: 100%; height: auto; border-radius: 0.2rem; box-shadow: 0 1px 2px rgba(40, 10, 0, 0.1), 0 22px 40px -26px rgba(40, 10, 0, 0.45); background: var(--paper-back); }
.plate figcaption { margin-top: 0.85rem; font-size: 0.88rem; color: var(--ink-soft); }
.plate--wide { width: min(100% - 2 * var(--gutter), 72rem); margin: clamp(0.5rem, 2vw, 1.5rem) auto clamp(1rem, 3vw, 2rem); }
@media (min-width: 1200px) { .plate--wide { margin-left: max(16rem, calc((100vw - 64rem) / 2)); width: min(100vw - max(16rem, calc((100vw - 64rem) / 2)) - var(--gutter), 72rem); } }
.pair { display: grid; gap: 1.8rem; margin-top: clamp(0rem, 4vw, 3rem); }
.pair .plate:nth-child(2) { width: 82%; justify-self: end; }

.screens { display: flex; align-items: flex-end; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 0 var(--gutter); margin: clamp(0.5rem, 3vw, 2rem) auto clamp(1.5rem, 4vw, 3rem); max-width: 72rem; }
@media (min-width: 1200px) { .screens { margin-left: max(16rem, calc((100vw - 64rem) / 2)); padding: 0; } }
.screens__big { flex: 3 1 0; min-width: 0; }
.screens__small { flex: 1 1 0; min-width: 0; max-width: 15rem; }
@media (max-width: 640px) { .screens { flex-direction: column; align-items: stretch; } .screens__small { max-width: 60%; align-self: flex-end; } }

/* ------------------------------------------------------- Packungsinhalt */
.contents { list-style: none; margin: clamp(1.5rem, 3vw, 2rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); max-width: 52rem; }
.contents li { position: relative; padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid var(--rule); color: var(--ink); font-weight: 500; }
.contents li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 0.85rem; height: 0.42rem; border-radius: 999px; background: var(--red); rotate: -27deg; }
@media (max-width: 640px) { .contents { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Stimme */
.voice { border-top: 0; padding-top: clamp(3rem, 7vw, 6rem); }
.voice__fig { margin: 0; max-width: 60rem; }
.voice__fig blockquote { margin: 0; }
.voice__fig blockquote p { font-family: var(--sc-font-display); text-transform: uppercase; color: var(--ink); font-size: clamp(2rem, 1.1rem + 3.4vw, 4.1rem); line-height: var(--lh-anton); letter-spacing: 0.004em; }
/* Jeder Satz eine eigene Zeilengruppe, darin gleichmäßig verteilt: kein „verstanden,“ allein */
.voice__fig .line { text-wrap: balance; }
.voice__fig figcaption { margin-top: 1.2rem; font-weight: 600; color: var(--red-ink); }

/* ------------------------------------------------------ weitere Fälle
   Wie die letzte Zeile eines Beipackzettels: kräftige Linie, zwei Hälften,
   der Name groß in Anton. Beim Überfahren wird er rot, der Pfeil wächst. */
.cases {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "prev next" "all all";
  max-width: 82rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
/* bündig mit dem Text, rechts neben der Falzleiste */
@media (min-width: 1200px) { .cases { max-width: none; margin: 0; padding-left: max(16rem, calc((100vw - 64rem) / 2)); padding-right: max(var(--gutter), calc((100vw - 76rem) / 2)); } }
.case { position: relative; display: grid; gap: 0.7rem; align-content: start; padding: 1.4rem 0 0; border-top: 3px solid var(--ink); text-decoration: none; color: var(--ink); }
.case--prev { grid-area: prev; padding-right: clamp(1rem, 3vw, 2.5rem); }
.case--next { grid-area: next; padding-left: clamp(1rem, 3vw, 2.5rem); text-align: right; border-left: 1px solid var(--rule); }
.case__meta { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.case--next .case__meta { justify-content: flex-end; }
.case__name { font-family: var(--sc-font-display); text-transform: uppercase; font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.5rem); line-height: var(--lh-anton); transition: color 200ms var(--ease); }
/* Pfeil aus Linie und Spitze, wächst beim Überfahren */
.case__arrow { position: relative; display: inline-block; width: 1.6rem; height: 2px; background: currentColor; transition: width 260ms var(--ease); }
.case__arrow::after { content: ""; position: absolute; top: 50%; width: 0.5rem; height: 0.5rem; border: solid currentColor; border-width: 2px 2px 0 0; }
.case--next .case__arrow::after { right: 0; transform: translateY(-50%) rotate(45deg); }
.case--prev .case__arrow::after { left: 0; transform: translateY(-50%) rotate(-135deg); }
.cases__all {
  grid-area: all; justify-self: center; margin-top: clamp(2rem, 4vw, 3rem); padding: 0.4rem 0;
  font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .case:hover .case__name, .case:hover .case__meta { color: var(--red-ink); }
  .case:hover .case__arrow { width: 2.8rem; }
  .cases__all:hover { color: var(--red-ink); }
}
.case:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 6px; }
@media (max-width: 700px) {
  .cases { grid-template-columns: 1fr; grid-template-areas: "next" "prev" "all"; row-gap: 2rem; }
  .case--next { border-left: 0; padding-left: 0; text-align: left; }
  .case--next .case__meta { justify-content: flex-start; }
  .case--prev { padding-right: 0; }
}

/* ------------------------------------------------- Abbildung vergrößern
   (js/v7.js). Kleine Abbildungen heben sich beim Überfahren leicht an. */
.page-case .plate:not(.plate--wide) img { cursor: zoom-in; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .page-case .plate:not(.plate--wide) img:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40, 10, 0, 0.12), 0 30px 50px -28px rgba(40, 10, 0, 0.55); }
}
.page-case .plate img:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 4px; }
html.lupe-open { overflow: hidden; }
.lupe {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: clamp(1rem, 4vw, 3rem); border: 0; display: grid; place-items: center;
  background: rgba(22, 20, 19, 0); color: #fff; cursor: zoom-out;
  transition: background-color 420ms var(--ease);
}
.lupe:not([open]) { display: none; }
.lupe::backdrop { background: transparent; }
.lupe.is-on { background: rgba(22, 20, 19, 0.9); }
.lupe__fig { margin: 0; display: grid; justify-items: center; gap: 1rem; }
.lupe__img { display: block; width: auto; height: auto; max-width: min(92vw, 110rem); max-height: calc(100vh - 9rem); max-height: calc(100svh - 9rem); border-radius: 0.25rem; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7); will-change: transform; }
.lupe__cap { max-width: 60ch; text-align: center; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); opacity: 0; transition: opacity 300ms var(--ease) 180ms; }
.lupe__cap .abb { color: #fff; font-weight: 700; margin-right: 0.4em; }
.lupe.is-on .lupe__cap { opacity: 1; }
.lupe__close {
  position: absolute; top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem);
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; cursor: pointer;
  opacity: 0; transition: opacity 300ms var(--ease) 180ms, rotate 260ms var(--ease);
}
.lupe__close::before, .lupe__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.2rem; height: 2px; background: #fff; translate: -50% -50%; rotate: 45deg; }
.lupe__close::after { rotate: -45deg; }
.lupe.is-on .lupe__close { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .lupe__close:hover { rotate: 90deg; } }

/* Anton immer in Versalien */
.facts__head, .voice__fig blockquote p { text-transform: uppercase; }
.plate figcaption .credit { display: block; margin-top: 0.2rem; font-size: 0.78rem; opacity: 0.8; }
