/* Case Studies und Projektreferenzen. Ergänzt styles.css ohne Framework. */
.cs-page { overflow-wrap: break-word; }
.cs-page .eyebrow, .references .ref-card .eyebrow, .ref-note .eyebrow { font-size: 12px; letter-spacing: .11em; }
.cs-hero { padding: 36px 0 66px; background: var(--navy); color: white; }
.cs-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 62px; color: #bbcbe0; font-size: 14px; }
.cs-breadcrumb a:hover { color: white; text-decoration: underline; text-underline-offset: 5px; }
.cs-hero .eyebrow { color: var(--sky); margin-bottom: 23px; }
.cs-hero h1 { max-width: 1050px; font-size: clamp(42px, 5.1vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
.cs-hero .cs-lead { max-width: 750px; margin-top: 27px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: #c1cfe2; }
.cs-jump { display: inline-flex; align-items: center; gap: 28px; margin-top: 32px; font-size: 14px; color: white; }
.cs-jump:hover { color: var(--sky); }
.cs-highlights { background: var(--pale); border-bottom: 1px solid var(--line); }
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 35px; }
.cs-stats > div { padding: 0 32px; border-left: 1px solid #d3dbe7; }
.cs-stats > div:first-child { padding-left: 0; border-left: 0; }
.cs-stats strong { display: block; font-size: clamp(26px, 3vw, 43px); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; color: var(--blue); }
.cs-stats span { display: block; max-width: 270px; margin-top: 9px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cs-layout { display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 740px); gap: clamp(40px, 7vw, 112px); justify-content: space-between; padding-block: 80px 88px; }
.cs-sidebar { align-self: start; position: sticky; top: 120px; }
.cs-sidebar > .eyebrow { margin-bottom: 22px; }
.cs-sidebar dl { margin: 0; }
.cs-sidebar dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.cs-sidebar dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cs-sidebar dd { margin: 0; font-size: 15px; line-height: 1.5; }
.cs-toc { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; margin-top: 7px; padding-top: 22px; font-size: 14px; }
.cs-toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.cs-download { display: inline-flex; align-items: center; gap: 20px; margin-top: 27px; padding: 12px 0; border-bottom: 1px solid var(--blue); color: var(--blue); font-size: 14px; font-weight: 600; }
.cs-story { min-width: 0; }
.cs-story-section { margin-bottom: 44px; scroll-margin-top: 120px; }
.cs-story-section .eyebrow { margin-bottom: 14px; }
.cs-story-section h2 { font-size: clamp(28px, 3vw, 39px); letter-spacing: -.04em; line-height: 1.17; margin-bottom: 19px; }
.cs-story-section > p:not(.eyebrow) { font-size: 17px; line-height: 1.8; }
.cs-media { margin: 0 0 48px; }
.cs-media img { width: 100%; height: auto; max-height: 370px; object-fit: cover; border-radius: 4px; }
.cs-media figcaption { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 11px; }
.cs-media-interface img { max-height: none; object-fit: contain; background: var(--pale); padding: 12px; border: 1px solid var(--line); }
.cs-media-logo { padding: 30px; background: var(--pale); border-radius: 4px; }
.cs-media-logo img { max-width: 340px; height: 110px; object-fit: contain; margin: auto; }
.cs-media-logo figcaption { text-align: center; margin-top: 22px; }
.cs-quote { padding: 30px 34px; border-left: 3px solid var(--blue); background: var(--pale); margin: 12px 0 44px; }
.cs-quote blockquote { margin: 0 0 23px; }
.cs-quote blockquote p { font-size: clamp(20px, 2vw, 25px); line-height: 1.5; letter-spacing: -.02em; color: var(--ink); }
.cs-quote figcaption strong, .cs-quote figcaption span { display: block; font-size: 13px; }
.cs-quote figcaption span { color: var(--muted); margin-top: 3px; }
.cs-tech { padding-top: 24px; border-top: 1px solid var(--line); }
.cs-tech .eyebrow { margin-bottom: 15px; }
.cs-tech ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cs-tech li { padding: 5px 12px; background: var(--pale); color: var(--muted); font-size: 13px; border-radius: 3px; }
.cs-contact { padding: 56px 0; background: var(--pale); }
.cs-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cs-contact .eyebrow { margin-bottom: 15px; }
.cs-contact h2 { font-size: clamp(29px, 3.4vw, 43px); }
.cs-contact p:not(.eyebrow) { margin-top: 17px; max-width: 510px; }
.cs-contact .button { margin-top: 25px; }
.cs-person { flex: 0 0 280px; display: flex; align-items: center; gap: 18px; }
.cs-person img { width: 85px; height: 104px; object-fit: cover; border-radius: 3px; }
.cs-person p { margin: 0 !important; font-size: 13px; }
.cs-person strong, .cs-person span { display: block; }
.cs-person strong { color: var(--ink); font-size: 16px; }
.cs-next { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 35px; font-size: 14px; }
.cs-next > a:last-child { text-align: right; font-size: 19px; }
.cs-next a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.cs-next a b { color: var(--blue); margin-left: 15px; font-weight: 400; }
.cs-next a:hover { color: var(--blue); }
.cs-page a:focus-visible, .references a:focus-visible, .ref-card-details summary:focus-visible { outline: 3px solid #7299ff; outline-offset: 6px; border-radius: 2px; }

/* Ruhige Projektübersicht: Aufgaben statt hervorgehobener Kennzahlen. */
.references.reference-overview { background: #f7f8fa; color: var(--ink); }
.reference-overview .section-heading { align-items: end; }
.reference-overview .section-heading h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.15; }
.references.reference-overview .section-heading > p { color: var(--muted); }
.reference-overview .eyebrow.light { color: var(--muted); }
.ref-grid { display: grid; gap: 0 64px; }
.ref-grid-unified { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ref-card { display: flex; flex-direction: column; min-width: 0; padding: 28px 0 34px; border-top: 1px solid var(--line); }
.references .ref-card .eyebrow { margin-bottom: 12px; font-size: 12px; letter-spacing: .07em; color: var(--muted); }
.ref-card h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 12px; }
.ref-card > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 18px; }
.reference-overview .ref-card .case-link { display: inline-flex; justify-content: flex-start; align-self: flex-start; gap: 12px; width: auto; margin: 0; padding: 0; border: 0; color: var(--blue); font-size: 14px; }
.reference-overview .ref-card .case-link span { font-size: 18px; }
.reference-overview .ref-card .case-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* Native Details: Projekttexte bleiben vollständig im HTML. */
.ref-card-details { margin: 0; }
.ref-card-details > summary { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: fit-content; padding: 0; color: var(--blue); font-size: 14px; cursor: pointer; list-style: none; }
.ref-card-details > summary::-webkit-details-marker { display: none; }
.ref-card-details > summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ref-chevron { flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 3px 4px 0; transition: transform .2s; }
.ref-card-details[open] .ref-chevron { transform: rotate(225deg); margin-top: 8px; }
.ref-card-detail-body { padding-top: 22px; }
.ref-card-detail-body h4 { margin: 21px 0 9px; font-size: 15px; font-weight: 600; }
.ref-card-detail-body h4:first-child { margin-top: 0; }
.ref-card-detail-body p, .ref-card-detail-body li { font-size: 15px; line-height: 1.75; color: var(--muted); }
.ref-card-detail-body p + p { margin-top: 17px; }
.ref-card-detail-body ul { padding-left: 20px; margin: 0; }
.ref-card-detail-body li + li { margin-top: 6px; }
.reference-overview .ref-context { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 1050px) {
    .cs-layout { gap: 40px; grid-template-columns: 210px minmax(0, 1fr); }
    .cs-contact-inner { align-items: flex-start; }
    .cs-person { flex-basis: 230px; }
}
@media (max-width: 760px) {
    .cs-hero { padding: 26px 0 42px; }
    .cs-breadcrumb { margin-bottom: 39px; }
    .cs-hero h1 { font-size: clamp(35px, 6.8vw, 49px); }
    .cs-hero .cs-lead { font-size: 18px; }
    .cs-stats { gap: 22px; padding-block: 25px; }
    .cs-stats > div { border-left: 0; padding: 0; }
    .cs-stats strong { font-size: clamp(22px, 4.2vw, 32px); }
    .cs-stats span { font-size: 12px; }
    .cs-layout { display: flex; flex-direction: column; gap: 37px; padding-block: 38px 50px; }
    .cs-sidebar { position: static; width: 100%; }
    .cs-sidebar dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
    .cs-toc { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
    .cs-sidebar > .eyebrow { margin-bottom: 13px; }
    .cs-download { margin-top: 15px; }
    .cs-story-section { margin-bottom: 33px; }
    .cs-story-section > p:not(.eyebrow) { font-size: 16px; }
    .cs-contact-inner { flex-direction: column; gap: 28px; }
    .cs-person { flex-basis: auto; }
    .ref-grid-unified { grid-template-columns: 1fr; }
    .ref-card { padding: 25px 0 29px; }

}
@media (max-width: 420px) {
    .cs-stats { grid-template-columns: 1fr; gap: 0; padding-block: 13px; }
    .cs-stats > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .cs-stats > div:last-child { border-bottom: 0; }
    .cs-stats span { margin: 0; font-size: 13px; }
    .cs-quote { padding: 23px; }
    .cs-next { align-items: flex-start; }
    .cs-next > a:last-child { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ref-chevron { transition: none; } }
@media print {
    .cs-sidebar { position: static; }
    .cs-layout { display: block; }
    .cs-sidebar, .cs-contact, .cs-next, .cs-jump, .cs-breadcrumb { display: none; }
    .cs-hero { background: white; color: black; padding: 20px 0; }
    .cs-hero .cs-lead, .cs-hero .eyebrow { color: #333; }
    .cs-story-section, .cs-quote, .cs-media { break-inside: avoid; }
}
