/* Kundenbeispiel (case study) page: hero portrait, story chapters, fact sheet, before/after, recommendation. */

/* ---------- Hero: case study head ---------- */
.ghero .eyebrow { color: var(--g-yellow); margin-bottom: 0; }

/* customer portrait card replaces the mascot */
.ghero-portrait { position: relative; z-index: 2; justify-self: center; width: 300px; margin: 0 0 3rem; text-align: center; }
.ghero-portrait-photo { display: block; aspect-ratio: 4 / 5; border: 8px solid var(--white); border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: 0 24px 50px rgba(16, 30, 54, .35); }
.ghero-portrait-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ghero-portrait-logo { position: absolute; left: -28px; bottom: 96px; background: var(--white); border-radius: 16px; padding: 10px 14px; box-shadow: var(--sh-md); }
.ghero-portrait-logo img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.ghero-portrait figcaption { margin-top: 16px; color: var(--white); font-size: 1.05rem; line-height: 1.35; }
.ghero-portrait figcaption b { display: block; font-size: 1.25rem; }
.ghero-portrait figcaption small { display: block; margin-top: 2px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) {
    /* portrait below the text, smaller logo badge */
    .ghero-portrait { width: 220px; margin: 0 auto 2.5rem; }
    .ghero-portrait-logo { left: -18px; bottom: 80px; padding: 8px 10px; }
    .ghero-portrait-logo img { height: 32px; max-width: 110px; }
}

/* ---------- Before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.ba-card { background: var(--white); border: 1px solid var(--border); border-radius: 28px; padding: 30px 28px; box-shadow: var(--sh-sm); }
.ba-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.ba-card ul { list-style: none; margin: 0; padding: 0; }
.ba-card li { position: relative; padding: 8px 0 8px 30px; }
.ba-card li b { display: block; font-family: var(--f-body-bold); font-weight: 400; font-size: .98rem; color: var(--ink); }
.ba-card li::before { font-family: "Font Awesome 5 Pro"; font-weight: 900; position: absolute; left: 0; top: 10px; font-size: .85rem; }
.ba-card--before li::before { content: "\f068"; color: var(--danger); }
.ba-card--after li::before { content: "\f00c"; color: var(--success); }
@media (max-width: 980px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- Story: chapters with quotes, fact sheet aside ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.story-chapter { font-size: 1.6rem; margin: 44px 0 12px; }
.story-main > .story-chapter:first-child { margin-top: 0; }
.story-text { color: var(--text-mid); font-size: 1.05rem; line-height: 1.65; max-width: 66ch; }
.story-quote { position: relative; margin: 24px 0; padding: 22px 26px 22px 64px; background: var(--yellow-soft); border-radius: 24px; font-family: var(--f-body-bold); font-size: 1.15rem; line-height: 1.45; color: var(--ink); }
.story-quote::before { content: "\f10d"; font-family: "Font Awesome 5 Pro"; font-weight: 900; position: absolute; left: 24px; top: 22px; color: var(--yellow-dark); font-size: 1.3rem; }

/* fact sheet in dark blue, yellow accents */
.story-side { position: sticky; top: 110px; background: radial-gradient(circle at 86% 10%, rgba(245, 184, 0, .22), transparent 34%), linear-gradient(160deg, #5E7EB1, #48679C); border-radius: 28px; padding: 30px; box-shadow: var(--sh-sm); color: var(--white); }
.story-side .eyebrow { display: block; margin-bottom: 10px; color: var(--yellow); }
.story-highlight { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.story-highlight b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1.05; color: var(--yellow); }
.story-highlight span { display: block; margin-top: 4px; font-size: .98rem; color: var(--white); }
.story-side-logo { display: block; max-height: 56px; max-width: 180px; width: auto; margin-bottom: 22px; background: var(--white); border-radius: 14px; padding: 8px 12px; box-sizing: content-box; }
.story-facts { list-style: none; margin: 0 0 24px; padding: 0; }
.story-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: .98rem; color: var(--white); line-height: 1.35; }
.story-facts i { flex: 0 0 20px; color: var(--yellow); text-align: center; }
.story-modules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.story-pill { background: var(--g-yellow); border: 1px solid var(--g-yellow); border-radius: 999px; padding: 7px 16px; font-family: var(--f-body-bold); font-size: .85rem; color: var(--g-navy); text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); transition: background-color .2s, border-color .2s; }
.story-pill:hover { background: var(--white); border-color: var(--white); color: var(--g-navy); text-decoration: none; }
.story-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-body-bold); color: var(--white); }
.story-link i { color: var(--yellow); }
.story-link:hover { text-decoration: underline; }

/* recommendation with result image */
.story-advice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; background: linear-gradient(145deg, #fff, #D9E6F8); border: 1px solid var(--border); border-radius: 32px; padding: 40px; box-shadow: var(--sh-sm); }
.story-advice--text { grid-template-columns: 1fr; }
.story-advice-img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--sh-sm); }
.story-advice-quote { margin: 8px 0 16px; font-family: var(--f-body-bold); font-size: 1.5rem; line-height: 1.35; color: var(--ink); }
.story-advice p { color: var(--text-mid); font-size: 1rem; line-height: 1.6; }
.story-advice .gbtn { margin-top: 8px; }
@media (max-width: 900px) {
    .story-grid, .story-advice { grid-template-columns: 1fr; gap: 28px; }
    .story-side { position: static; order: -1; }
    .story-advice { padding: 26px; border-radius: 24px; }
}
