.storyline-page-bg {
    background-color: #ece8df;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* Gesamtbereich */
.storyline-wrap {
    max-width: 1000px;
    margin: 34px auto;
    padding: 0 22px;
    color: #1c2b31;
}

/* Grundboxen */
.storyline-topbox,
.storyline-panel,
.storyline-cta-wrap {
    border: 1px solid rgba(28, 43, 49, 0.22);
    background:
        linear-gradient(180deg, rgba(252, 250, 245, 0.96), rgba(239, 235, 225, 0.98));
    box-shadow:
        0 18px 38px rgba(28, 43, 49, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

/* Großer Storyline-Kopf */
.storyline-topbox {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

/* Headerbild */
.storyline-topbox::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: .90;
    z-index: 0;
    pointer-events: none;
}

/* Verlauf über dem Headerbild */
.storyline-topbox::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(244, 240, 230, 1) 0%,
            rgba(244, 240, 230, .96) 38%,
            rgba(244, 240, 230, .72) 64%,
            rgba(244, 240, 230, .20) 100%
        );
    z-index: 1;
    pointer-events: none;
}

.storyline-topbox > * {
    position: relative;
    z-index: 2;
}

/* Überschriftenleisten */
.storyline-panel-head {
    position: relative;
    background:
        linear-gradient(180deg, #1c2b31 0%, #142025 100%);
    color: #f7f2e8;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(28, 43, 49, 0.26);
}

.storyline-panel-head::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -1px;
    height: 1px;
    background: rgba(247, 242, 232, 0.32);
}

/* Toptext links */
.storyline-topbox-body {
    width: 56%;
    max-width: 56%;
    min-height: 250px;
    padding: 24px 28px;
    box-sizing: border-box;
}

/* Lesebox im Header */
.storyline-scroll {
    max-height: 245px;
    overflow: auto;
    padding: 18px 20px;
    color: rgba(28, 43, 49, 0.86);
    line-height: 1.85;
    font-size: 11px;
    text-align: justify;
    background: rgba(255, 255, 255, 0.42);
    border-left: 3px solid rgba(28, 43, 49, 0.52);
    box-shadow:
        inset 0 0 0 1px rgba(28, 43, 49, 0.08),
        0 8px 18px rgba(28, 43, 49, 0.06);
}

.storyline-scroll::-webkit-scrollbar {
    width: 10px;
}

.storyline-scroll::-webkit-scrollbar-track {
    background: rgba(28, 43, 49, 0.08);
}

.storyline-scroll::-webkit-scrollbar-thumb {
    background: rgba(28, 43, 49, 0.55);
    border: 2px solid #f4f0e6;
}

/* Layout */
.storyline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .8fr);
    gap: 20px;
    align-items: start;
}

.storyline-main,
.storyline-side {
    min-width: 0;
}

.storyline-panel {
    margin-bottom: 20px;
}

.storyline-panel-body {
    padding: 24px 28px;
}

/* Haupttext */
.storyline-content {
    color: rgba(28, 43, 49, 0.86);
    font-size: 12px;
    line-height: 1.8;
    text-align: justify;
}

.storyline-content p {
    margin: 0 0 1.15em 0;
}

.storyline-content p:first-child {
    margin-top: 0;
}

.storyline-content p:last-child {
    margin-bottom: 0;
}

/* Fakten */
.storyline-facts {
    display: block;
}

.storyline-fact-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 18px;
    border-top: 1px solid rgba(28, 43, 49, 0.11);
    background: rgba(28, 43, 49, 0.035);
}

.storyline-fact-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.34);
}

.storyline-fact-row:first-child {
    border-top: 0;
}

.storyline-fact-label {
    color: #1c2b31;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: 10px;
    flex: 0 0 120px;
    opacity: .82;
}

.storyline-fact-value {
    color: rgba(28, 43, 49, 0.82);
    text-align: right;
    flex: 1 1 auto;
    font-size: 13px;
}

/* Statistik */
.storyline-stats-list,
.storyline-recent-list {
    display: block;
}

.storyline-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    border-top: 1px solid rgba(28, 43, 49, 0.11);
    background: rgba(28, 43, 49, 0.035);
}

.storyline-stat-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.34);
}

.storyline-stat-row:first-child {
    border-top: 0;
}

.storyline-stat-label {
    color: rgba(28, 43, 49, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.storyline-stat-label i {
    color: #1c2b31;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.storyline-stat-value {
    color: #1c2b31;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

/* Aktuelle Themen */
.storyline-recent-row {
    padding: 15px 18px;
    border-top: 1px solid rgba(28, 43, 49, 0.11);
    background: rgba(28, 43, 49, 0.035);
}

.storyline-recent-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.34);
}

.storyline-recent-row:first-child {
    border-top: 0;
}

.storyline-recent-title {
    display: block;
    color: #1c2b31;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.storyline-recent-title:hover {
    color: #000;
    text-decoration: none;
}

.storyline-recent-meta {
    color: rgba(28, 43, 49, 0.54);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* CTA Bereich */
.storyline-cta-wrap {
    margin-top: 10px;
}

.storyline-cta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
}

.storyline-cta-card {
    position: relative;
    padding: 24px 22px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.storyline-cta-card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: rgba(28, 43, 49, 0.36);
}

.storyline-cta-icon {
    color: #1c2b31;
    font-size: 24px;
    margin-bottom: 14px;
    margin-left: 12px;
}

.storyline-cta-title {
    color: #1c2b31;
    text-transform: uppercase;
    letter-spacing: .10em;
    font-size: 12px;
    margin-bottom: 10px;
    margin-left: 12px;
}

.storyline-cta-text {
    color: rgba(28, 43, 49, 0.72);
    line-height: 1.75;
    font-size: 13px;
    margin-bottom: 18px;
    margin-left: 12px;
    flex: 1 1 auto;
}

.storyline-cta-button {
    display: inline-block;
    margin-left: 12px;
    padding: 10px 15px;
    border: 1px solid rgba(28, 43, 49, 0.34);
    color: #1c2b31;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.42);
}

.storyline-cta-button:hover {
    color: #000;
    border-color: rgba(28, 43, 49, 0.56);
    background: rgba(28, 43, 49, 0.07);
    text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 1100px) {
    .storyline-grid {
        grid-template-columns: 1fr;
    }

    .storyline-topbox {
        min-height: 360px;
    }

    .storyline-topbox::after {
        width: 100%;
        opacity: .20;
    }

    .storyline-topbox::before {
        background:
            linear-gradient(
                180deg,
                rgba(244, 240, 230, .90) 0%,
                rgba(244, 240, 230, .98) 100%
            );
    }

    .storyline-topbox-body {
        width: 100%;
        max-width: 100%;
    }

    .storyline-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 700px) {
    .storyline-wrap {
        padding: 0 10px;
    }

    .storyline-panel-head {
        padding: 14px 16px;
    }

    .storyline-panel-body,
    .storyline-topbox-body {
        padding: 16px;
    }

    .storyline-scroll {
        padding: 15px 16px;
        font-size: 14px;
        line-height: 1.75;
    }

    .storyline-content {
        font-size: 14px;
        line-height: 1.75;
    }

    .storyline-fact-row,
    .storyline-stat-row,
    .storyline-recent-row {
        padding: 12px 14px;
    }

    .storyline-fact-row,
    .storyline-stat-row {
        display: block;
    }

    .storyline-fact-label,
    .storyline-fact-value,
    .storyline-stat-label,
    .storyline-stat-value {
        display: block;
        text-align: left;
    }

    .storyline-fact-value,
    .storyline-stat-value {
        margin-top: 6px;
    }

    .storyline-cta-grid {
        grid-template-columns: 1fr;
    }
}