.storyline-page-bg,
.storyline-wrap,
.storyline-wrap *,
.storyline-intro,
.storyline-overview-copy,
.storyline-cta-grid,
.storyline-cta-card {
    box-sizing: border-box;
    border-radius: 0;
}

.storyline-page-bg {
    min-height: 100%;
}

.storyline-wrap {
    --story-dark: var(--rpg-dark, #1c2b31);
    --story-dark-2: var(--rpg-dark-2, #142025);
    --story-paper: var(--rpg-paper, #f7f6f2);
    --story-paper-2: var(--rpg-paper-2, #ece8df);
    --story-brick: var(--rpg-brick, #732C26);
    --story-gold: var(--rpg-gold, #D5AA43);

    --story-text: rgba(28, 43, 49, .78);
    --story-muted: rgba(28, 43, 49, .50);
    --story-soft: rgba(255, 255, 255, .28);
    --story-line: rgba(28, 43, 49, .14);
    --story-line-soft: rgba(28, 43, 49, .08);

    width: auto;
    max-width: 1200px;
    margin: 20px auto;

    color: var(--story-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.65;
}

/* =========================================================
   SCROLLBALKEN
   ========================================================= */

.storyline-scroll {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 10px;
    line-height: 1.65;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(28, 43, 49, .24)
        rgba(28, 43, 49, .045);
}

.storyline-scroll::-webkit-scrollbar {
    width: 8px;
}

.storyline-scroll::-webkit-scrollbar-track {
    background:
        linear-gradient(
            180deg,
            rgba(28, 43, 49, .035),
            rgba(255, 255, 255, .055)
        );
    border-left: 1px solid rgba(28, 43, 49, .07);
}

.storyline-scroll::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            rgba(28, 43, 49, .26),
            rgba(28, 43, 49, .13)
        );

    border: 2px solid var(--story-paper);
    border-radius: 0;
}

.storyline-scroll::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            rgba(28, 43, 49, .36),
            rgba(28, 43, 49, .22)
        );
}

.storyline-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

/* =========================================================
   GRUNDBOXEN
   ========================================================= */

.storyline-topbox,
.storyline-panel,
.storyline-cta-wrap {
    margin-bottom: 15px;

    border: 1px solid var(--story-line);
    background:
        linear-gradient(90deg, rgba(255,255,255,.42), rgba(236,232,223,.34)),
        rgba(247,246,242,.62);

    box-shadow:
        0 14px 28px rgba(28,43,49,.07);
}

.storyline-panel-body {
    padding: 15px;
}

.storyline-panel-head {
    min-height: 38px;
    padding: 10px 12px;

    border-bottom: 1px solid var(--story-line);

    background:
        linear-gradient(90deg, rgba(28,43,49,.075), rgba(255,255,255,.20) 48%, rgba(255,255,255,.06));

    color: var(--story-dark);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* =========================================================
   TOPBOX
   Header oben, Text links, Bild rechts
   ========================================================= */

.storyline-topbox {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 330px;
    grid-template-areas:
        "head head"
        "text image";

    min-height: 0;
    overflow: hidden;
}

.storyline-topbox::after {
    display: none;
    content: none;
}

.storyline-topbox > .storyline-panel-head {
    grid-area: head;

    border: 0;
    border-bottom: 1px solid var(--story-line);
}

.storyline-topbox-body {
    grid-area: text;

    width: auto;
    max-width: none;
    padding: 18px 22px;

    border: 0;
    border-right: 1px solid var(--story-line);

    background: transparent;
}

.storyline-topbox-body .storyline-scroll {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 10px;

    color: rgba(28,43,49,.76);
    font-size: 12px;
    line-height: 1.72;
}

.storyline-topbox-body p {
    margin: 0;
}

.storyline-topimage {
    grid-area: image;

    margin: 0;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background:
        linear-gradient(180deg, rgba(28,43,49,.035), rgba(255,255,255,.18));
}

.storyline-topimage img {
    display: block;

    width: 100%;
    max-width: 255px;
    height: auto;
    max-height: 255px;

    object-fit: contain;
    object-position: center;

    filter: saturate(.95) contrast(1.02);
}

.storyline-topbox .trow1,
.storyline-topbox .thead {
    box-shadow: none;
}

/* =========================================================
   KLAPPENTEXT / INTRO
   ========================================================= */

.storyline-intro {
    max-width: 760px;
    padding: 8px 4px;
}

.storyline-intro-kicker,
.storyline-copy-kicker {
    display: block;
    margin-bottom: 6px;

    color: rgba(28,43,49,.50);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.storyline-intro h2 {
    margin: 0 0 12px;

    color: var(--story-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .035em;
}

.storyline-intro p {
    margin: 0 0 11px;

    color: rgba(28,43,49,.72);
    font-size: 12px;
    line-height: 1.75;
}

.storyline-intro .storyline-intro-lead {
    color: var(--story-dark);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.storyline-intro .storyline-intro-end {
    margin-top: 14px;
    padding: 10px 12px;

    color: rgba(28,43,49,.76);

    background: rgba(255,255,255,.20);
    border-left: 2px solid rgba(28,43,49,.20);
}

/* =========================================================
   GRID: HAUPTSPALTE / SEITENSPALTE
   ========================================================= */

.storyline-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 15px;
    align-items: start;
}

.storyline-main,
.storyline-side {
    min-width: 0;
}

.storyline-side .storyline-panel:last-child,
.storyline-main .storyline-panel:last-child {
    margin-bottom: 0;
}

.storyline-content {
    color: rgba(28,43,49,.74);
    font-size: 12px;
    line-height: 1.72;
}

.storyline-content > :first-child,
.storyline-scroll > :first-child {
    margin-top: 0;
}

.storyline-content > :last-child,
.storyline-scroll > :last-child {
    margin-bottom: 0;
}

/* =========================================================
   GUIDE-INHALTE
   ========================================================= */

.storyline-content h2 {
    margin: 0 0 10px 0;
    padding: 0 0 8px 0;

    border-bottom: 1px solid var(--story-line-soft);

    color: var(--story-dark);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .035em;
}

.storyline-content h2:not(:first-child) {
    margin-top: 22px;
}

.storyline-content p {
    margin: 0 0 12px 0;

    color: rgba(28,43,49,.72);
    font-size: 12px;
    line-height: 1.75;
    text-align: left;
}

.gd-guide-note {
    margin: 14px 0;
    padding: 10px 12px;

    border-left: 2px solid rgba(28,43,49,.20);
    background: rgba(255,255,255,.20);

    color: rgba(28,43,49,.72);
    font-size: 12px;
    line-height: 1.65;
}

.gd-district-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin: 12px 0 18px 0;
}

.gd-district-card {
    padding: 11px 12px;

    border: 1px solid rgba(28,43,49,.10);
    border-left: 2px solid rgba(28,43,49,.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)),
        rgba(247,246,242,.34);

    color: rgba(28,43,49,.70);
    font-size: 11px;
    line-height: 1.65;
}

.gd-district-card strong {
    display: block;
    margin-bottom: 5px;

    color: var(--story-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.gd-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin: 12px 0 18px 0;
}

.gd-tag {
    display: inline-flex;
    align-items: center;

    min-height: 24px;
    padding: 0 8px;

    border: 1px solid rgba(28,43,49,.12);
    background: rgba(255,255,255,.20);

    color: rgba(28,43,49,.58);
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* =========================================================
   GROSSER ÜBERBLICK
   ========================================================= */

.storyline-overview-copy {
    display: grid;
    gap: 12px;
}

.storyline-copy-section {
    padding: 14px 16px;

    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)),
        rgba(247,246,242,.34);

    border: 1px solid rgba(28,43,49,.10);
    border-left: 2px solid rgba(28,43,49,.20);
}

.storyline-copy-section:nth-child(even) {
    border-left-color: rgba(28,43,49,.20);
}

.storyline-copy-section h3 {
    margin: 0 0 10px;

    color: var(--story-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .03em;
}

.storyline-copy-section p {
    margin: 0 0 10px;

    color: rgba(28,43,49,.72);
    font-size: 12px;
    line-height: 1.75;

    text-align: left;
    hyphens: auto;
}

.storyline-copy-section p:last-child {
    margin-bottom: 0;
}

.storyline-copy-section strong {
    color: var(--story-dark);
    font-weight: 600;
}

/* =========================================================
   FAKTEN / STATS / AKTUELLES
   ========================================================= */

.storyline-fact-row,
.storyline-stat-row,
.storyline-recent-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;

    padding: 10px 12px;

    border-top: 1px solid var(--story-line-soft);
}

.storyline-fact-row:first-child,
.storyline-stat-row:first-child,
.storyline-recent-row:first-child {
    border-top: 0;
}

.storyline-fact-label,
.storyline-stat-label {
    color: rgba(28,43,49,.48);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.storyline-fact-value,
.storyline-stat-value,
.storyline-recent-date {
    color: var(--story-dark);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

.storyline-stat-label i {
    width: 18px;
    margin-right: 6px;
    text-align: center;
    color: rgba(28,43,49,.52);
}

.storyline-recent-subject {
    min-width: 0;
    overflow-wrap: anywhere;
}

.storyline-recent-subject a {
    color: var(--story-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(28,43,49,.18);
}

.storyline-recent-subject a:hover {
    color: var(--story-brick);
    border-bottom-color: rgba(115,44,38,.36);
}

/* KI-Hinweis, falls Inline-Styles vorhanden sind */

.storyline-ai-note {
    display: block;
    padding: 10px 12px !important;

    border-top: 1px solid var(--story-line-soft);
    background: rgba(255,255,255,.16) !important;

    color: rgba(28,43,49,.72);
    font-size: 11px !important;
    line-height: 1.5 !important;
}

.storyline-ai-note div[style*="font-weight"] {
    color: var(--story-dark);
    font-size: 12px !important;
    letter-spacing: .04em !important;
}

.storyline-ai-note div[style*="display:flex"] > div {
    border: 1px solid rgba(28,43,49,.10) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.20) !important;
}

/* =========================================================
   CTA-KACHELN / SPEZIALS
   ========================================================= */

.storyline-cta-wrap {
    margin-top: 15px;
}

.storyline-cta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.storyline-cta-card {
    display: grid;
    grid-template-rows: 135px auto 1fr;
    gap: 10px;

    min-width: 0;
    min-height: 270px;
    padding: 14px;

    text-align: left;

    background:
        linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.08)),
        rgba(247,246,242,.34);

    border-left: 1px solid var(--story-line-soft);
}

.storyline-cta-card:first-child {
    border-left: 0;
}

.storyline-cta-image {
    display: block;

    width: 100%;
    height: 135px;

    object-fit: cover;
    object-position: center;

    border: 1px solid rgba(28,43,49,.12);
    background: rgba(255,255,255,.20);

    filter: saturate(.96) contrast(1.02);
}

.storyline-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: rgba(28,43,49,.62);
    font-size: 15px;

    background: rgba(255,255,255,.20);
    border-left: 2px solid rgba(28,43,49,.22);
}

.storyline-cta-title {
    margin: 0;

    color: var(--story-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .025em;
}

.storyline-cta-text {
    color: rgba(28,43,49,.66);
    font-size: 11px;
    line-height: 1.65;
}

.storyline-cta-button {
    justify-self: start;

    min-height: 27px;
    margin: 5px 0 0 !important;
    padding: 0 10px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(28,43,49,.18);
    background: rgba(255,255,255,.20);

    color: var(--story-dark) !important;
    font-size: 8px !important;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .13em;
    text-decoration: none !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.storyline-cta-button:hover {
    border-color: rgba(28,43,49,.34);
    background: var(--story-dark);
    color: var(--story-paper) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .storyline-grid {
        grid-template-columns: 1fr;
    }

    .storyline-topbox {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "image"
            "text";
    }

    .storyline-topimage {
        border-bottom: 1px solid var(--story-line);
    }

    .storyline-topbox-body {
        border-right: 0;
    }

    .storyline-topimage img {
        max-width: 220px;
        max-height: 220px;
    }

    .storyline-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storyline-cta-card:nth-child(3) {
        border-left: 0;
    }

    .storyline-cta-card:nth-child(n+3) {
        border-top: 1px solid var(--story-line-soft);
    }
}

@media (max-width: 760px) {
    .storyline-wrap {
        margin: 10px auto;
    }

    .storyline-topbox-body,
    .storyline-panel-body {
        padding: 14px;
    }

    .storyline-topbox-body .storyline-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .storyline-fact-row,
    .storyline-stat-row,
    .storyline-recent-row {
        flex-direction: column;
        gap: 4px;
    }

    .storyline-fact-value,
    .storyline-stat-value,
    .storyline-recent-date {
        text-align: left;
    }

    .gd-district-grid {
        grid-template-columns: 1fr;
    }

    .storyline-cta-grid {
        grid-template-columns: 1fr;
    }

    .storyline-cta-card,
    .storyline-cta-card:nth-child(3) {
        min-height: 0;
        border-left: 0;
        border-top: 1px solid var(--story-line-soft);
    }

    .storyline-cta-card:first-child {
        border-top: 0;
    }
}