/* Case Studies (neu gegenüber Framer): Bausteine aus tools/build_cases.py im RankPrompt-Stil.
   Farben = Framer-Tokens: Navy #131b42, gedämpft #131b42a3, Orange #f87853, Violett #6876e4, Flächen #fff4f0 / #f1f0fa / #e9ebfb.
   Schriften = Framer-Presets: Instrument Serif (Überschriften), Instrument Sans (Text). */

/* Übersicht: alle Karten groß, zwei je Zeile */
/* Framer setzt flex-flow mit Seitenklassen (Spezifität 0,2,0) – deshalb doppelte Klasse */
.rp-jaxov2.rp-cases-grid.rp-cases-grid { flex-wrap: wrap; row-gap: 56px; }
.rp-cases-grid.rp-cases-grid > .rp-k531m6 { flex: 0 0 calc(50% - 20px); width: auto; }
@media (max-width: 809.98px) { .rp-cases-grid.rp-cases-grid > .rp-k531m6 { flex: 0 0 auto; width: 100%; } }

/* Detailseite. Das Titelbild (Logo + Kurve) ist für Übersicht und Teilen gedacht; im Kopf der Seite doppelt es
   Logo und erstes Diagramm aus dem Text → ausblenden (Datei lädt nur auf Case-Seiten). */
.rp-1gsf7kr > .rp-2k80rq[data-rp-name="Cover"] { display: none; }
.rp-iysnvh .rp-case-logo { display: flex; width: fit-content; align-items: center; background: #fff; border: 1px solid rgba(248, 120, 83, .3); border-radius: 12px; padding: 12px 20px; margin: 0 0 24px; white-space: normal; }
.rp-iysnvh .rp-case-logo--dunkel { background: #131b42; border-color: #131b42; }
.rp-iysnvh .rp-case-logo img.rp-text { height: 34px; width: auto; max-width: 220px; display: block; }

.rp-iysnvh .rp-case-lead p.rp-text { --rp-font-size: 22px; --rp-line-height: 1.5em; --rp-text-color: #131b42a3; margin: 0 0 40px; }

.rp-case-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 40px; white-space: normal; }
.rp-case-kpi { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px; border-radius: 16px; background: linear-gradient(180deg, #fff4f0 0%, #f1f0fa 100%); text-align: center; }
.rp-case-kpi-wert { font-family: "RP Instrument Serif Regular", serif; font-size: 44px; line-height: 1; letter-spacing: -1px; color: #131b42; }
.rp-case-kpi-text { font-family: "RP Instrument Sans Regular", sans-serif; font-size: 16px; line-height: 1.4; color: #131b42; }
.rp-case-kpi-quelle { font-family: "RP Instrument Sans Regular", sans-serif; font-size: 13px; line-height: 1.4; color: #131b42a3; }

.rp-iysnvh figure.rp-case-figure { margin: 0 0 40px; white-space: normal; }
.rp-iysnvh img.rp-case-chart { display: block; width: 100%; height: auto; border: 1px solid #e9ebfb; border-radius: 16px; background: #fff; }
.rp-case-caption { margin-top: 12px; font-family: "RP Instrument Sans Regular", sans-serif; font-size: 14px; line-height: 1.5; color: #131b42a3; }

.rp-case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 8px 0 40px; padding: 8px 24px; border-radius: 16px; background: #f1f0fa; white-space: normal; }
.rp-case-facts > div { padding: 14px 0; border-bottom: 1px solid #e0e2f5; }
.rp-case-facts dt { font-family: "RP Instrument Sans Regular", sans-serif; font-size: 13px; line-height: 1.4; color: #131b42a3; text-transform: uppercase; letter-spacing: .04em; }
.rp-case-facts dd { margin: 4px 0 0; font-family: "RP Instrument Sans Regular", sans-serif; font-size: 17px; line-height: 1.45; color: #131b42; }

.rp-case-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 40px; white-space: normal; }
.rp-case-step { padding: 24px; border: 1px solid rgba(248, 120, 83, .3); border-radius: 16px; background: #fff; }
.rp-case-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 10px; background: #f87853; color: #fff; font-family: "RP Instrument Sans Regular", sans-serif; font-size: 15px; font-weight: 600; }
.rp-iysnvh .rp-case-step h3.rp-text { --rp-font-size: 28px; --rp-line-height: 1.1em; margin: 0 0 10px; }
/* Artikelvorlage setzt h3:not(:first-child) im Inhalt mit !important auf clamp(28px, 3vw, 40px) */
div[data-rp-name="Content"][data-rp-component-type="RichTextContainer"] .rp-case-step h3.rp-text:not(:first-child) { margin-top: 0 !important; }
.rp-iysnvh .rp-case-step p.rp-text { --rp-font-size: 17px; margin: 0; }

.rp-case-note { margin: 0 0 40px; padding: 24px; border-radius: 16px; background: #f1f0fa; border-left: 4px solid #6876e4; white-space: normal; }
.rp-iysnvh .rp-case-note p.rp-text { --rp-font-size: 17px; margin: 0; }

.rp-case-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 40px; white-space: normal; }
.rp-case-list { padding: 24px; border-radius: 16px; background: #fff4f0; }
.rp-case-list + .rp-case-list { background: #f1f0fa; }
.rp-iysnvh .rp-case-list h3.rp-text { --rp-font-size: 28px; --rp-line-height: 1.1em; margin: 0 0 12px; }
.rp-iysnvh .rp-case-list ul.rp-text, .rp-iysnvh .rp-case-list ul.rp-text:not(:first-child) { margin: 0; }
.rp-iysnvh .rp-case-list li.rp-text { --rp-font-size: 17px; }
.rp-iysnvh .rp-case-list li.rp-text + li.rp-text { margin-top: 12px; }

.rp-case-cta { margin: 48px 0 0; padding: 40px; border-radius: 24px; background: #131b42; white-space: normal; }
.rp-case-cta-frage { display: block; margin-bottom: 16px; font-family: "RP Instrument Serif Regular", serif; font-size: 34px; line-height: 1.1; letter-spacing: -1px; color: #fff; }
.rp-iysnvh .rp-case-cta p.rp-text { --rp-text-color: rgba(255, 255, 255, .8); margin: 0 0 24px; }
.rp-iysnvh .rp-case-cta p.rp-text:last-child { margin: 0; }
.rp-iysnvh .rp-case-cta a.rp-text { display: inline-flex; padding: 14px 22px; border-radius: 10px; background: #f87853; color: #fff; text-decoration: none; font-family: "RP Instrument Sans Regular", sans-serif; font-size: 16px; transition: background-color .2s; }
.rp-iysnvh .rp-case-cta a.rp-text:hover { background: #e9643f; color: #fff; }

@media (max-width: 809.98px) {
	.rp-case-facts, .rp-case-steps, .rp-case-lists { grid-template-columns: minmax(0, 1fr); }
	.rp-case-kpi-wert { font-size: 38px; }
	.rp-case-cta { padding: 28px 24px; }
	.rp-case-cta-frage { font-size: 28px; }
	.rp-iysnvh .rp-case-lead p.rp-text { --rp-font-size: 19px; }
}
