/* Seitenblöcke (uplifts/seite-*): Standortseiten und einfache Seiten
   (Downloads, Anleitungen, Feedback). Baut auf style.css und pages.css auf
   und nutzt deren Bausteine (sub-hero, sec, paper, closing, faq, case-figure,
   logo-wall, cta). Regeln wie dort: Haarlinien statt Schatten, Überschriften
   Gewicht 500, Lime auf Hell nie als Text, Farben und Dauern aus den Tokens.
   Jeder Block kann auf dunklem oder hellem Grund stehen (.paper). */

/* ---------- Gemeinsam ---------- */

/* Mehrere helle Blöcke hintereinander: ein Blatt, ein Abstand (wie zwei
   Abschnitte auf gleichem Grund in pages.css) */
.paper:has(> [class*="ek-"]):has(+ .paper > [class*="ek-"]) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.paper:has(> [class*="ek-"]) + .paper:has(> [class*="ek-"]) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.paper:has(> [class*="ek-"]) + .paper > .sec {
  padding-top: 0;
}
/* Helles Blatt als letzter Abschnitt: ein dunkler Streifen bis zum Fuß (wie auf /formular/) */
main > .paper:last-child:has(> [class*="ek-"]) {
  margin-bottom: clamp(14px, 2vw, 24px);
}
/* Dunkler Abschnitt direkt unter dem dunklen Kopf: ein Abstand statt zwei */
.ek-kopf:has(+ .sec) {
  padding-bottom: clamp(80px, 9vw, 128px);
}
.ek-kopf + .sec {
  padding-top: 0;
}

/* Abschnittskopf: Kicker, Titel, darunter der Untertitel in der Größe von
   „Umsatz pro Jahr.“ (CLAUDE.md, Untertitel unter Überschriften) */
.ek-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.ek-einleitung {
  margin: clamp(10px, 1.1vw, 16px) 0 0;
  font-size: clamp(16px, 0.9vw + 11px, 22px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--grey-1);
  text-wrap: balance;
}
.paper .ek-einleitung {
  color: var(--ink-2);
}
.ek-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.ek-acts--mitte {
  justify-content: center;
  margin-top: clamp(48px, 6vw, 80px);
}
/* Titel, die eine Ebene tiefer stehen (H3 der alten Seite als Abschnittstitel) */
.ek-titel-klein {
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* ---------- Seitenkopf ---------- */

.ek-kopf-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px var(--gutter);
  align-items: center;
}
.ek-kopf--bild .ek-kopf-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}
.ek-kopf-titel {
  max-width: 18ch;
  margin: 0;
}
.ek-abzeichen {
  width: auto;
  height: clamp(34px, 3vw, 44px);
  margin: 0 0 24px;
}
.ek-hinweis {
  margin: 14px 0 0;
}
.ek-hinweis a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .ek-hinweis a:hover {
    text-decoration-color: currentColor;
  }
}
.ek-kopf-bild {
  margin: 0;
}
.ek-kopf-bild img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--hair);
}
.ek-kopf-link {
  display: block;
  border-radius: 24px;
}
@media (max-width: 860px) {
  .ek-kopf--bild .ek-kopf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Logo-Wand ohne Überschrift, drei Reihen ---------- */

.logos.ek-logos {
  padding: 0 0 clamp(64px, 8vw, 112px);
}
/* Folgt ein Abschnitt auf gleichem dunklem Grund (Standortseiten seit
   05.11.2026 ganz dunkel), gilt nur ein Abschnitts-Abstand wie in pages.css */
.logos.ek-logos:has(+ .sec) {
  padding-bottom: clamp(80px, 9vw, 128px);
}
.logos.ek-logos + .sec {
  padding-top: 0;
}
.ek-logos .logos-wall {
  margin-top: 0;
}
.ek-logos .logo-wall li:nth-child(n + 19) {
  display: none;
}
@media (max-width: 1000px) {
  .ek-logos .logo-wall li:nth-child(n + 13) {
    display: none;
  }
}
@media (max-width: 620px) {
  .ek-logos .logo-wall li:nth-child(n + 10) {
    display: none;
  }
}

/* ---------- Text ---------- */

.ek-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px var(--gutter);
}
.ek-text-main {
  max-width: 68ch;
}
.ek-text--bilder .ek-text-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}
.ek-text--links .ek-text-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.ek-text--links .ek-text-bilder {
  order: -1;
}
.ek-text-main > .t-h2 {
  margin-bottom: 22px;
}
.ek-text-bilder {
  display: grid;
  gap: 12px;
}
.ek-bild {
  margin: 0;
}
.ek-bild img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair);
}
.paper .ek-bild img {
  box-shadow: 0 0 0 1px var(--ink-hair);
}
@media (max-width: 860px) {
  .ek-text--bilder .ek-text-grid,
  .ek-text--links .ek-text-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ek-text--links .ek-text-bilder {
    order: 0;
  }
}
/* Tablet: zwei Bilder nebeneinander statt zweimal volle Breite */
@media (min-width: 520px) and (max-width: 860px) {
  .ek-text-bilder:has(> :nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fließtext: Absätze, Zwischenüberschriften, Listen, Links (wie lg-body) */
.ek-prosa {
  font-size: 15px;
  line-height: 1.65;
  color: var(--grey-1);
}
.paper .ek-prosa {
  color: var(--ink-2);
}
.ek-prosa > :first-child {
  margin-top: 0;
}
.ek-prosa p,
.ek-prosa ul,
.ek-prosa ol {
  margin: 0 0 14px;
}
.ek-prosa > :last-child {
  margin-bottom: 0;
}
.ek-prosa ul,
.ek-prosa ol {
  padding-left: 1.2em;
}
.ek-prosa li + li {
  margin-top: 6px;
}
.ek-prosa h3,
.ek-prosa h4 {
  margin: 26px 0 8px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
}
.ek-prosa strong {
  font-weight: 500;
  color: var(--white);
}
.paper .ek-prosa :is(h3, h4, strong) {
  color: var(--ink);
}
.ek-prosa a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--hair-strong);
  text-underline-offset: 4px;
}
.paper .ek-prosa a {
  color: var(--ink);
  text-decoration-color: var(--ink-hair);
}
.ek-prosa img {
  border-radius: 14px;
}

/* ---------- Karten ---------- */

.ek-grid {
  --spalten: 3;
  display: grid;
  grid-template-columns: repeat(var(--spalten), minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair);
}
.paper .ek-grid {
  box-shadow: 0 0 0 1px var(--ink-hair);
}
/* Haarlinien zwischen den Karten: jede Karte zeichnet ihre rechte und untere
   Linie in die Fuge, außen schneidet der Rahmen sie ab. So bleibt eine
   unvollständige letzte Reihe leer statt grau gefüllt. */
.ek-karte {
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  background: var(--black);
  box-shadow: 1px 1px 0 0 var(--hair);
}
.paper .ek-karte {
  background: var(--card-light);
  box-shadow: 1px 1px 0 0 var(--ink-hair);
}
.ek-karte-titel {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.ek-karte-text {
  color: var(--grey-1);
}
.paper .ek-karte-text {
  color: var(--ink-2);
}
.ek-karte-text p {
  margin: 0;
}
.ek-karte-text p + p {
  margin-top: 10px;
}
.ek-karte-acts {
  margin: auto 0 0;
  padding-top: 22px;
}
.ek-karte-bild {
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-bottom: 22px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--hair);
}
.paper .ek-karte-bild {
  box-shadow: 0 0 0 1px var(--ink-hair);
}
/* Schritte: Nummer im Kreis aus Haarlinie */
.ek-nr {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 0 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  color: var(--white);
}
.paper .ek-nr {
  box-shadow: inset 0 0 0 1px var(--ink-hair);
  color: var(--ink);
}
.ek-fuss {
  margin: clamp(28px, 3vw, 40px) 0 0;
  font-size: clamp(16px, 0.9vw + 11px, 22px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  text-align: center;
  color: var(--grey-1);
}
.paper .ek-fuss {
  color: var(--ink-2);
}
@media (max-width: 1000px) {
  .ek-grid {
    grid-template-columns: repeat(min(var(--spalten), 2), minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ek-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Beratung ---------- */

.ek-beratung-bild {
  position: relative;
  z-index: 1;
  margin: 0;
}
.ek-beratung-bild img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--hair);
}

/* ---------- Case Studies ---------- */

.ek-case-liste {
  display: grid;
  gap: clamp(56px, 7vw, 104px);
}
.ek-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px var(--gutter);
  align-items: start;
}
.ek-case:nth-child(even) .ek-case-bild {
  order: 2;
}
.ek-case-bild {
  margin: 0;
}
.ek-case-bild a {
  display: block;
  border-radius: 18px;
}
.ek-case-bild img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair);
}
.paper .ek-case-bild img {
  box-shadow: 0 0 0 1px var(--ink-hair);
}
.ek-case-kicker {
  margin: 0 0 10px;
}
.ek-case-titel {
  margin: 0 0 26px;
}
.ek-zahlen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ek-zahlen .case-figure {
  padding-top: 14px;
  border-top: 1px solid var(--hair-strong);
}
.paper .ek-zahlen .case-figure {
  border-top-color: var(--ink-hair);
}
.paper .case-figure > .t-small {
  color: var(--ink-2);
}
.paper .case-figure .label {
  color: var(--ink);
}
/* Zählwerk auf Papier: die Walze in Tinte statt Weiß */
.paper [data-odo] .odo-d::after {
  color: var(--ink);
}
.ek-stimme {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
}
.ek-stimme-video {
  max-width: 340px;
}
.ek-stimme-video img {
  aspect-ratio: 16 / 9;
}
.ek-zitat {
  margin: 0;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.ek-zitat p {
  margin: 0;
}
.ek-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ek-person > span {
  display: grid;
}
.ek-person-foto {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}
.ek-person-name {
  font-weight: 500;
}
.ek-pzl {
  display: grid;
  margin: 30px 0 0;
}
.ek-pzl > div {
  display: grid;
  grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.paper .ek-pzl > div {
  border-top-color: var(--ink-hair);
}
.ek-pzl dt {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--grey-2);
}
.paper .ek-pzl dt {
  color: var(--ink-2);
}
.ek-pzl dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .ek-case {
    grid-template-columns: minmax(0, 1fr);
  }
  .ek-case:nth-child(even) .ek-case-bild {
    order: 0;
  }
}
@media (max-width: 479px) {
  .ek-pzl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Video-Anleitungen ---------- */

.ek-filter {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.ek-filter-titel {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.ek-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ek-chips .chip-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ek-bereich {
  margin: clamp(64px, 8vw, 112px) 0 0;
}
.ek-filter + .ek-bereich {
  margin-top: 0;
}
.ek-gruppe {
  margin: clamp(32px, 4vw, 48px) 0 18px;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.026em;
  color: var(--grey-1);
}
.ek-bereich,
.ek-gruppe,
.ek-video {
  scroll-margin-top: 96px;
}
.ek-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair);
}
.ek-video {
  padding: 20px;
  background: var(--black);
  box-shadow: 1px 1px 0 0 var(--hair);
}
.ek-video-knopf {
  margin-bottom: 16px;
}
.ek-video-knopf img,
.ek-video-leer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ek-video-kicker {
  margin: 0 0 4px;
}
.ek-video-titel {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
