/* Zusatz nur für die Case Study. Basis bleibt styles.css. */

.case-page .case-hero,
.ref-hero {
  display: grid;
  gap: 12px 32px;
  align-items: center;
  background: #fff;
}
.case-page .case-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.ref-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.case-page .case-hero .shot {
  grid-column: 1 / -1;
  width: min(100%, 280px);
  justify-self: start;
  margin: 0;
}
.case-page .logo-card {
  width: 100%;
  max-width: 280px;
  margin: 0;
  padding: 18px 16px 14px;
  background: #fffdf8;
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
}
.case-page .logo-card .logo {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  object-fit: contain;
  background: transparent;
}
.case-page .case-hero .kpi,
.ref-hero .kpi { margin: 0; }
.case-page .case-hero .tax-line { grid-column: 1 / -1; margin: 8px 0 0; }

.kpi {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: #fff;
}
.kpi span {
  display: block;
  margin: 0 0 6px;
  color: var(--red);
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.case-page h1 {
  max-width: 16em;
  margin: 28px 0 0;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 0.92;
}
.ref-line {
  width: fit-content;
  max-width: 18em;
  margin: 18px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: #fff;
}
.ref-more { margin: 14px 0 0; background: #fff; width: fit-content; }
.footnote {
  margin: 8px 0 0;
  max-width: 36em;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #333;
  background: #fff;
}
.case-page .meta-line,
#referenz .meta-line {
  width: fit-content;
  max-width: 18em;
  margin: 14px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--red);
  background: #fff;
}
.case-page h3.meta-line,
#referenz h3.meta-line {
  max-width: 28em;
}
.case-page .lead { max-width: 38em; }
.case-page .prose { max-width: 68ch; }
.case-page .prose p { margin: 0 0 12px; }
.case-page .meta-line,
#referenz .meta-line { margin-top: 18px; }
.case-page .count {
  margin: 22px 0 0;
  width: fit-content;
  max-width: 16em;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: #fff;
}
.case-page .count span { color: var(--red); }

.badge {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 2px 8px 1px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  vertical-align: 2px;
}
.badge-live { background: var(--red); color: #111; }
.badge-next { background: #d9d9d9; color: #333; }

.case-page .cats h3 .num {
  display: block;
  font-size: 2.4rem;
  line-height: 0.9;
  color: var(--red);
}
.case-page .cats h3 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.45rem;
  line-height: 1;
}

.status-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-width: 72ch;
}
.status-list li {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
  background: #fff;
}

.case-page .diagram {
  margin: 8px 0 0;
  background: #fff;
}
.case-page .diagram img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.case-page .note {
  margin: 8px 0 0;
  max-width: 68ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
}
.case-page .cta { margin-top: 8px; }

@media (max-width: 800px) {
  .ref-hero { grid-template-columns: 1fr; }
  .case-page h1 { max-width: 14em; }
  .kpi span { font-size: clamp(2.6rem, 12vw, 3.6rem); }
}
@media (max-width: 700px) {
  .case-page .case-hero { grid-template-columns: 1fr; }
}

/* Case and homepage reference spacing, using the shared spacing scale. */
.case-page .case-hero, .ref-hero { gap: var(--space-4); }
.case-page .logo-card { padding: var(--space-3); }
.kpi { max-width: 32ch; line-height: 1.15; }
.kpi span { margin-bottom: var(--space-2); line-height: 1; }
.case-page .case-hero .tax-line { margin: 0; }
.case-page h1 { margin-top: var(--space-8); line-height: 1.05; }
.ref-line { margin-top: var(--space-4); line-height: 1.1; }
.ref-more { margin: var(--space-4) 0 0; }
.footnote { max-width: var(--text-measure); margin-top: var(--space-2); line-height: 1.5; }
.case-page .meta-line, #referenz .meta-line { margin-top: var(--space-3); line-height: 1.2; }
.case-page .lead, .case-page .prose { max-width: var(--text-measure); }
.case-page .prose p { margin: 0 0 var(--space-3); }
.case-page .prose p:last-child { margin-bottom: 0; }
.case-page .count { margin-top: var(--space-4); line-height: 1.1; }
.badge { padding: 0 var(--space-1); }
.case-page .cats h3 { line-height: 1.2; }
.case-page .cats h3 .num { margin-bottom: var(--space-1); line-height: 1; }
.status-list { max-width: var(--text-measure); margin-top: var(--space-3); }
.status-list li { padding: var(--space-3) 0; }
.case-page .diagram { margin: var(--space-4) 0; max-width: 1080px; }
.case-page .note { margin-top: var(--space-3); max-width: var(--text-measure); line-height: 1.4; }
.case-page .cta { margin: var(--space-4) 0 0; }

@media (max-width: 800px) {
  .case-page .case-hero, .ref-hero { gap: var(--space-4) var(--space-3); }
  .case-page h1 { margin-top: var(--space-6); }
}
