/*
 * Medien.Bayern — Article Summary Box (12015)
 * v1.1 — 4 styles, CTA = article-next-part pattern
 * Depends on: MB CI variables from style-mediasquare.css
 */

/* ── Container ─────────────────────────────── */

.mb-article-summary {
    font-family: 'Montserrat', sans-serif;
    margin: 48px 0;
    border-radius: 2px;
    overflow: hidden;
    padding: 36px 40px;
}

/* ── Background styles ──────────────────────── */

.mb-summary--lightblue {
    background-color: var(--mb-bluelight, #9bd5e8);
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary--darkblue {
    background-color: var(--mb-bluedark, #1c345e);
    color: var(--mb-white, #fff);
}

.mb-summary--grey {
    background-color: #f5f5f5;
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary--white {
    background-color: var(--mb-white, #fff);
    color: var(--mb-bluedark, #1c345e);
}

/* ── Headline ───────────────────────────────── */

.mb-summary__headline {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    padding: 0;
}

.mb-summary--lightblue .mb-summary__headline,
.mb-summary--grey       .mb-summary__headline,
.mb-summary--white      .mb-summary__headline {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary--darkblue .mb-summary__headline {
    color: var(--mb-bluelight, #9bd5e8);
}

/* ── Rows (dl/dt/dd) ────────────────────────── */

.mb-summary__rows {
    margin: 0;
    padding: 0;
}

.mb-summary__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 24px;
    padding: 14px 0;
    align-items: baseline;
}

/* Image row: vertically center text next to image */
.mb-summary__row--image {
    align-items: center;
}

/* Image wrap */
.mb-summary__image-wrap {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.mb-summary__image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Dividers */
.mb-summary--dividers .mb-summary__row {
    border-bottom: 1px solid rgba(28, 52, 94, 0.15);
}

.mb-summary--dividers .mb-summary__row:first-child {
    border-top: 1px solid rgba(28, 52, 94, 0.15);
}

.mb-summary--dividers.mb-summary--darkblue .mb-summary__row {
    border-color: rgba(156, 213, 232, 0.2);
}

/* Label */
.mb-summary__label {
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
    padding: 0;
    align-self: start;
    padding-top: 2px;
}

.mb-summary--lightblue .mb-summary__label,
.mb-summary--grey       .mb-summary__label,
.mb-summary--white      .mb-summary__label {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary--darkblue .mb-summary__label {
    color: var(--mb-bluelight, #9bd5e8);
}

/* Text */
.mb-summary__text {
    font-weight: 400;
    line-height: 1.6;
    color: inherit;
    margin: 0;
    padding: 0;
}

.mb-summary__text--full {
    grid-column: 1 / -1;
}

/* ── CTA Block — mirrors article-next-part ──────
   Uses .mb-next--* classes directly so all 4
   style variants + hover animations are inherited.
   ──────────────────────────────────────────── */

.mb-summary__cta {
    margin-top: 28px;
    border-radius: 2px;
    overflow: hidden;
}

.mb-summary__cta-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    transition: background-color 0.25s ease;
    text-decoration: none;
    cursor: pointer;
}

.mb-summary__cta-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* Arrow — shared with article-next-part */
.mb-summary__cta .mb-next__arrow {
    font-family: 'MediaSquareCode03', sans-serif;
    font-weight: 400;
    font-size: 80px;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
    transition: color 0.25s ease, font-size 0.25s ease;
}

/* Shared text elements — inherit from mb-next--* */
.mb-summary__cta .mb-next__intro {
    display: block;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 0;
    transition: color 0.25s ease;
}

.mb-summary__cta .mb-next__desc {
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    transition: color 0.25s ease;
}

.mb-summary__cta .mb-next__desc p {
    margin: 0;
}

.mb-summary__cta .mb-next__cta {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 4px;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* ── CTA: DarkBlue ──────────────────────────── */

.mb-summary__cta.mb-next--darkblue .mb-summary__cta-inner {
    background-color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--darkblue .mb-summary__cta-inner:hover {
    background-color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--darkblue .mb-next__arrow {
    color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--darkblue .mb-summary__cta-inner:hover .mb-next__arrow {
    color: var(--mb-white, #fff);
    font-size: 100px;
}

.mb-summary__cta.mb-next--darkblue .mb-next__intro {
    color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--darkblue .mb-summary__cta-inner:hover .mb-next__intro {
    color: var(--mb-white, #fff);
}

.mb-summary__cta.mb-next--darkblue .mb-next__desc {
    color: var(--mb-white, #fff);
}

.mb-summary__cta.mb-next--darkblue .mb-summary__cta-inner:hover .mb-next__desc {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--darkblue .mb-next__cta {
    color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--darkblue .mb-summary__cta-inner:hover .mb-next__cta {
    color: var(--mb-white, #fff);
}

/* ── CTA: LightBlue ─────────────────────────── */

.mb-summary__cta.mb-next--lightblue .mb-summary__cta-inner {
    background-color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--lightblue .mb-summary__cta-inner:hover {
    background-color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--lightblue .mb-next__arrow {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--lightblue .mb-summary__cta-inner:hover .mb-next__arrow {
    color: var(--mb-bluelight, #9bd5e8);
    font-size: 100px;
}

.mb-summary__cta.mb-next--lightblue .mb-next__intro {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--lightblue .mb-summary__cta-inner:hover .mb-next__intro {
    color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--lightblue .mb-next__desc {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--lightblue .mb-summary__cta-inner:hover .mb-next__desc {
    color: var(--mb-white, #fff);
}

.mb-summary__cta.mb-next--lightblue .mb-next__cta {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--lightblue .mb-summary__cta-inner:hover .mb-next__cta {
    color: var(--mb-bluelight, #9bd5e8);
}

/* ── CTA: Grey ──────────────────────────────── */

.mb-summary__cta.mb-next--grey .mb-summary__cta-inner {
    background-color: #f5f5f5;
}

.mb-summary__cta.mb-next--grey .mb-summary__cta-inner:hover {
    background-color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--grey .mb-next__arrow {
    color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--grey .mb-summary__cta-inner:hover .mb-next__arrow {
    color: var(--mb-bluedark, #1c345e);
    font-size: 100px;
}

.mb-summary__cta.mb-next--grey .mb-next__intro {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--grey .mb-summary__cta-inner:hover .mb-next__intro {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--grey .mb-next__desc {
    color: #000;
}

.mb-summary__cta.mb-next--grey .mb-summary__cta-inner:hover .mb-next__desc {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--grey .mb-next__cta {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--grey .mb-summary__cta-inner:hover .mb-next__cta {
    color: var(--mb-bluedark, #1c345e);
}

/* ── CTA: White ─────────────────────────────── */

.mb-summary__cta.mb-next--white .mb-summary__cta-inner {
    background-color: var(--mb-white, #fff);
}

.mb-summary__cta.mb-next--white .mb-summary__cta-inner:hover {
    background-color: #f5f5f5;
}

.mb-summary__cta.mb-next--white .mb-next__arrow {
    color: var(--mb-bluelight, #9bd5e8);
}

.mb-summary__cta.mb-next--white .mb-summary__cta-inner:hover .mb-next__arrow {
    color: var(--mb-bluelight, #9bd5e8);
    font-size: 100px;
}

.mb-summary__cta.mb-next--white .mb-next__intro {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--white .mb-summary__cta-inner:hover .mb-next__intro {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--white .mb-next__desc {
    color: #000;
}

.mb-summary__cta.mb-next--white .mb-summary__cta-inner:hover .mb-next__desc {
    color: #000;
}

.mb-summary__cta.mb-next--white .mb-next__cta {
    color: var(--mb-bluedark, #1c345e);
}

.mb-summary__cta.mb-next--white .mb-summary__cta-inner:hover .mb-next__cta {
    color: var(--mb-bluedark, #1c345e);
}

/* ── Richtext variant ───────────────────────── */

.mb-summary__richtext {
    line-height: 1.6;
}

.mb-summary__richtext p {
    margin: 0 0 12px 0;
}

.mb-summary__richtext p:last-child {
    margin-bottom: 0;
}

.mb-summary__richtext ul,
.mb-summary__richtext ol {
    margin: 0 0 12px 0;
    padding-left: 1.4em;
}

.mb-summary__richtext ul {
    list-style: disc;
}

.mb-summary__richtext ol {
    list-style: decimal;
}

.mb-summary__richtext li {
    list-style: inherit;
    padding-left: 0.3em;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* Mehrzeilige Listenpunkte: Folgezeilen bündig eingerückt */
.mb-summary__richtext li::marker {
    flex-shrink: 0;
}

.mb-summary__richtext ul:last-child,
.mb-summary__richtext ol:last-child {
    margin-bottom: 0;
}

.mb-summary__richtext strong,
.mb-summary__richtext b {
    font-weight: 600;
}

.mb-summary__richtext em,
.mb-summary__richtext i {
    font-style: italic;
}

.mb-summary__richtext a {
    text-decoration: none;
    color: inherit;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 768px) {
    .mb-article-summary {
        padding: 24px 20px;
        margin: 32px 0;
    }

    .mb-summary__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .mb-summary__label {
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding-top: 0;
    }

    .mb-summary__text--full {
        grid-column: 1;
    }

    .mb-summary__cta-inner {
        padding: 20px 18px;
        gap: 18px;
    }

    .mb-summary__cta .mb-next__arrow {
        font-size: 60px;
    }

    .mb-summary__cta .mb-summary__cta-inner:hover .mb-next__arrow {
        font-size: 76px;
    }
}
