/* Case Study (Referenzen) – Ergänzungen zu home.css */
.case-before .container { max-width: var(--max); }
.case-before-title {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--on-dark);
  max-width: min(760px, 56vw);
  margin: 14px 0 24px;
}
.case-before-title .serif { color: var(--glow); }
.case-profile { max-width: min(640px, 56vw); margin-bottom: 40px; }
.case-profile p { font-size: 16px; line-height: 1.7; color: var(--on-dark-muted); }
.case-profile strong { color: var(--on-dark); }
.case-before .compare-list { max-width: min(760px, 56vw); }

.case-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.case-after .proof-bar { margin-top: 0; }
.case-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.case-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-mods .mod:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.case-mods .mod:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
.case-tech { margin-top: 40px; text-align: center; font-size: 14px; letter-spacing: .02em; color: var(--text-muted); }

.case-table-wrap { max-width: 960px; margin: 0 auto; overflow-x: auto; }

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 64px auto 0;
}
.case-facts > div { border-top: 1px solid var(--line); padding-top: 22px; }
.case-facts p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 1024px) {
  .case-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-after { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .case-before-title, .case-profile, .case-before .compare-list { max-width: none; }
}
@media (max-width: 520px) {
  .case-mods { grid-template-columns: 1fr; }
  .case-mods .mod:nth-child(2n) { padding-left: 0; border-left: 0; }
  .case-facts { grid-template-columns: 1fr; }
  .result-table th, .result-table td { padding-right: 10px; }
}

/* Ergebnis-Tabelle mobil als gestapelte Zeilen */
@media (max-width: 600px) {
  .case-table-wrap { overflow: visible; }
  .result-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .result-table, .result-table tbody, .result-table tfoot { display: block; }
  .result-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .result-table td, .result-table td:last-child { padding: 0; border: 0; text-align: left; }
  .result-table td:first-child { grid-column: 1 / -1; font-size: 16px; font-weight: 700; color: var(--text); }
  .result-table td:last-child { grid-column: 1 / -1; color: var(--accent); }
  .result-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .result-table td:first-child::before { display: none; }
  .result-table td.is-empty { display: none; }
  .result-table tfoot tr { border-bottom: 0; }
}
