/* Release Notes (Entwurf) – Changelog-Layout, Flumina-Palette */
.rel-page {
    --rel-navy: #010a2d;
    --rel-magenta: #c01466;
    --rel-blue: #b0deed;
    --rel-mint: #1a9e62;
    --rel-muted: #5b6478;
    --rel-line: #e3e8f0;
    --rel-bg: #f5f7fb;
    font-family: "Ubuntu", sans-serif;
    color: var(--rel-navy);
    background: #fff;
}
.rel-page [hidden] { display: none !important; }
.rel-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.rel-hero { background: var(--rel-navy); color: #fff; padding: 150px 0 40px; }
.rel-kicker { color: var(--rel-blue); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin: 0 0 10px; }
.rel-hero h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; margin: 0 0 12px; }
.rel-lead { font-size: 18px; color: #dfe7f5; margin: 0 0 28px; }
.rel-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-filter button {
    font: inherit; font-size: 14px; cursor: pointer;
    background: transparent; color: #dfe7f5;
    border: 1px solid rgba(176, 222, 237, .35); border-radius: 999px; padding: 6px 14px;
}
.rel-filter button:hover { border-color: var(--rel-blue); color: #fff; }
.rel-filter button.is-active { background: var(--rel-magenta); border-color: var(--rel-magenta); color: #fff; }

/* Layout: Jahresnavigation + Feed */
.rel-layout { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 80px; }
.rel-years { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.rel-years a { color: var(--rel-muted); text-decoration: none; font-size: 14px; padding: 4px 0 4px 12px; border-left: 2px solid var(--rel-line); }
.rel-years a:hover { color: var(--rel-magenta); border-left-color: var(--rel-magenta); }
.rel-years, .rel-years a { background: transparent !important; box-shadow: none !important; }
.rel-years a.is-current { color: var(--rel-magenta); border-left-color: var(--rel-magenta); font-weight: 700; }
.rel-anchor { position: absolute; top: -110px; }

/* Ältere Releases: Liste + Abbildung */
.rel-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.rel-split .rel-items li { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--rel-line); padding: 9px 0; }
.rel-split .rel-items li:last-child { border-bottom: 0; }
.rel-split .rel-type { flex: 0 0 auto; }
.rel-text .rel-area { display: block; margin: 0 0 1px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rel-text .rel-area::after { content: ""; }
.rel-figure { margin: 0; position: sticky; top: 120px; }
.rel-illu { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 32px -18px rgba(1, 10, 45, .35); }
.rel-figure figcaption { color: var(--rel-muted); font-size: 12px; margin-top: 8px; text-align: right; }

/* Einträge */
.rel-entry { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--rel-line); }
.rel-entry:first-child { border-top: 0; padding-top: 0; }
.rel-meta { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.rel-version { font-family: Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; color: var(--rel-navy); }
.rel-meta time { color: var(--rel-muted); font-size: 14px; }
.rel-latest { align-self: flex-start; margin-top: 6px; background: var(--rel-magenta); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; }

.rel-body h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
.rel-entry--major .rel-body h2 { font-size: clamp(28px, 3vw, 36px); }
.rel-intro { font-size: 17px; line-height: 1.55; color: #2b3450; margin: 0 0 24px; max-width: 720px; }
.rel-milestone {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
    color: var(--rel-magenta); font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.rel-milestone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rel-magenta); box-shadow: 0 0 0 4px rgba(192, 20, 102, .15); }

.rel-media { margin: 0 0 28px; }
.rel-media img, .rel-gallery img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--rel-line); background: var(--rel-bg); }

.rel-group { margin: 28px 0 14px; }
.rel-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px 20px; }
.rel-feature { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.rel-icon { flex: 0 0 36px; height: 36px; border-radius: 8px; background: var(--rel-navy); display: grid; place-items: center; }
.rel-icon img { width: 22px; height: 22px; object-fit: contain; }
.rel-feature h4 { font-size: 15px; margin: 0 0 2px; }
.rel-feature p { font-size: 14px; line-height: 1.45; margin: 0; color: var(--rel-muted); }

.rel-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.rel-gallery figure { margin: 0; }
.rel-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.rel-gallery figcaption { color: var(--rel-muted); font-size: 13px; margin-top: 6px; }

/* Listen */
.rel-items { list-style: none; margin: 0; padding: 0; }
.rel-items li { font-size: 15px; line-height: 1.55; padding: 6px 0; color: #2b3450; }
.rel-type {
    display: inline-block; min-width: 76px; text-align: center; margin-right: 8px;
    border-radius: 4px; padding: 1px 8px; font-size: 12px; font-weight: 700; vertical-align: 1px;
}
.rel-group .rel-type { font-size: 13px; padding: 3px 10px; }
.rel-type--neu { background: rgba(26, 158, 98, .12); color: var(--rel-mint); }
.rel-type--verbessert { background: rgba(1, 10, 45, .07); color: var(--rel-navy); }
.rel-area { display: inline-block; margin-right: 8px; color: var(--rel-muted); font-size: 13px; }
.rel-area::after { content: " ·"; }

.rel-note { margin: 24px 0 16px; padding: 14px 16px; background: var(--rel-bg); border-radius: 8px; font-size: 15px; color: #2b3450; }
.rel-button { display: inline-block; background: var(--rel-navy); color: #fff !important; padding: 11px 20px; border-radius: 6px; text-decoration: none; font-size: 15px; }
.rel-button:hover { background: var(--rel-magenta); }
.rel-draft { margin-top: 32px; padding: 12px 16px; border: 1px dashed var(--rel-magenta); border-radius: 8px; color: var(--rel-magenta); font-size: 14px; }

@media (max-width: 860px) {
    .rel-layout { grid-template-columns: minmax(0, 1fr); }
    .rel-years { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .rel-years a { border-left: 0; border-bottom: 2px solid var(--rel-line); padding: 4px 8px; }
    .rel-entry { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .rel-meta { position: static; flex-direction: row; align-items: center; gap: 12px; }
    .rel-latest { margin-top: 0; }
    .rel-gallery { grid-template-columns: minmax(0, 1fr); }
    .rel-split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rel-figure { position: static; }
}
@media (max-width: 600px) {
    .rel-wrap { padding: 0 16px; }
    .rel-hero { padding-top: 96px; }
    .rel-type { min-width: 0; }
}

/* Layout-Vielfalt: Meilensteine mit großer Abbildung und Kacheln, sonst abwechselnd */
.rel-split--reverse .rel-figure { order: -1; }
.rel-split--feature { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rel-split--feature .rel-figure { order: -1; position: static; }
.rel-split--feature .rel-illu { max-width: 760px; }
.rel-split--feature .rel-figure figcaption { text-align: left; }
.rel-split--feature .rel-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.rel-split--feature .rel-items li { flex-direction: column; gap: 8px; border: 1px solid var(--rel-line); border-top: 3px solid var(--rel-teal, #137b8a); border-radius: 8px; padding: 14px; background: #fff; }
.rel-split--feature .rel-items li:last-child { border-bottom: 1px solid var(--rel-line); }
.rel-entry--milestone .rel-body h2 { font-size: 26px; }
.rel-milestone { margin-right: 14px; }
.rel-ms-strip { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 22px; }
.rel-ms-label { color: var(--rel-blue); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-right: 4px; }
.rel-ms-strip a { color: #dfe7f5; text-decoration: none; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(176, 222, 237, .08); }
.rel-ms-strip a b { color: var(--rel-magenta); margin-right: 4px; }
.rel-ms-strip a:hover { background: rgba(192, 20, 102, .25); color: #fff; }
@media (max-width: 860px) {
    .rel-split--reverse .rel-figure { order: 0; }
}

/* Hardware-Reihe im aktuellen Release */
.rel-group--hw { font-size: 17px; margin: 32px 0 14px; }
.rel-hardware { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel-hw { margin: 0; background: #fff; border: 1px solid var(--rel-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.rel-hw-stage { height: 220px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #ffffff 0%, var(--rel-bg) 70%); padding: 18px; }
.rel-hw-stage img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(1, 10, 45, .18)); }
.rel-hw-stage--etag .rel-etag { width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 14px 18px rgba(1, 10, 45, .18)); }
.rel-hw figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.rel-hw figcaption strong { font-size: 15px; }
.rel-hw figcaption span { font-size: 14px; line-height: 1.45; color: var(--rel-muted); }
@media (max-width: 860px) { .rel-hardware { grid-template-columns: minmax(0, 1fr); } }
.rel-hw-stage img.rel-hw-flat { mix-blend-mode: multiply; filter: none; max-height: 82%; }

/* Vorgeschichte mit Link zur Meilenstein-Seite */
.rel-hero-link { color: #fff; text-decoration: underline; text-decoration-color: var(--rel-magenta); text-underline-offset: 4px; white-space: nowrap; }
.rel-hero-link:hover { color: var(--rel-blue); }
.rel-prehistory { position: relative; margin-top: 24px; padding: 32px; border-radius: 14px; background: var(--rel-navy); color: #fff; }
.rel-prehistory .rel-kicker { margin-bottom: 6px; }
.rel-prehistory h2 { font-size: 26px; margin: 0 0 20px; color: #fff; }
.rel-pre-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rel-pre-steps li { border-top: 3px solid var(--rel-magenta); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rel-pre-steps b { font-size: 20px; color: var(--rel-blue); }
.rel-pre-steps span { font-size: 14px; line-height: 1.45; color: #dfe7f5; }
.rel-prehistory .rel-button { background: var(--rel-magenta); }
.rel-prehistory .rel-button:hover { background: #fff; color: var(--rel-navy) !important; }
@media (max-width: 860px) { .rel-pre-steps { grid-template-columns: minmax(0, 1fr); } .rel-prehistory { padding: 22px; } }
.rel-layout > .rel-prehistory { grid-column: 1 / -1; }

/* Fotogalerie einzelner Releases (z. B. erste flumen Dots) */
.rel-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rel-photos figure { margin: 0; }
.rel-photo-stage { height: 170px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--rel-line); border-radius: 10px; background: radial-gradient(circle at 50% 60%, #fff 0%, var(--rel-bg) 75%); }
.rel-photo-stage img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rel-photos figcaption { font-size: 13px; color: var(--rel-muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 860px) { .rel-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Neue Anwendungsfälle je Release */
.rel-usecases { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid #c01466; background: #fbf3f7; border-radius: 0 10px 10px 0; }
.rel-usecases-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c01466; margin-right: 6px; }
.rel-uc { font-size: 14px; line-height: 1.3; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid #ecd2df; color: #010a2d; }
.rel-usecases--current { margin: 22px 0; }

/* Große Skizze im aktuellen Release */
.rel-figure--wide { position: static; margin: 26px 0 8px; }


/* Mitlaufende Zeitachse links */
.rel-years { --rel-progress: 0%; padding-left: 2px; }
.rel-years::before, .rel-years::after { content: ""; position: absolute; left: 6px; top: 6px; width: 2px; border-radius: 2px; }
.rel-years::before { bottom: 72px; background: var(--rel-line); }
.rel-years::after { height: calc((100% - 78px) * var(--rel-progress) / 100%); background: linear-gradient(#137b8a, #c01466);  }
.rel-years a { position: relative; border-left: 0 !important; padding: 5px 0 5px 22px; transition: color .2s; }
.rel-years a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; border: 2px solid var(--rel-line); box-sizing: border-box; z-index: 1; transition: all .2s; }
.rel-years a.is-current { font-weight: 700; }
.rel-years a.is-current::before { background: #c01466; border-color: #c01466; box-shadow: 0 0 0 4px rgba(192, 20, 102, .15); }
.rel-years-now { margin-top: 14px; padding: 8px 0 0 22px; font-size: 12px; line-height: 1.35; color: var(--rel-muted); border-top: 1px solid var(--rel-line); }
.rel-years-now b { display: block; font-family: Menlo, Consolas, monospace; font-size: 13px; color: #010a2d; }
@media (max-width: 860px) { .rel-years::before, .rel-years::after, .rel-years a::before, .rel-years-now { display: none; } .rel-years a { padding: 4px 8px; } }

/* Chronik der Bereiche */
.rel-c--vsm { --c: #010a2d; } .rel-c--group { --c: #4f9fbb; } .rel-c--dot { --c: #c01466; }
.rel-c--iot { --c: #137b8a; } .rel-c--shopfloor { --c: #d9822b; } .rel-c--co2 { --c: #2e8b57; }
.rel-chrono { margin: 8px 0 64px; padding: 40px 36px 28px; border-radius: 16px; background: #f5f7fb; }
.rel-chrono h2 { margin: 4px 0 8px; }
.rel-chrono-lead { margin: 0 0 18px; color: #4a5470; }
.rel-chrono-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rel-chrono-filter button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid #d5dbe6; background: #fff; color: #010a2d; cursor: pointer; }
.rel-chrono-filter button.is-active { background: #010a2d; border-color: #010a2d; color: #fff; }
.rel-chrono-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rel-chrono-body { position: relative; }
.rel-chrono-body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #d5dbe6; }
.rel-chrono-year { position: relative; padding-bottom: 8px; }
.rel-chrono-yearlabel { position: relative; z-index: 1; width: max-content; margin: 0 auto 14px; padding: 4px 14px; border-radius: 999px; background: #010a2d; color: #fff; font-size: 15px; font-family: Menlo, Consolas, monospace; }
.rel-chrono-year ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; grid-auto-flow: row dense; }
.rel-chrono-year li { position: relative; grid-column: 1; margin-bottom: 14px; }
.rel-chrono-year li.is-right { grid-column: 2; margin-top: 28px; }
.rel-chrono-dot { position: absolute; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px #f5f7fb; }
.rel-chrono-year li:not(.is-right) .rel-chrono-dot { right: -30px; }
.rel-chrono-year li.is-right .rel-chrono-dot { left: -30px; }
.rel-chrono-card { padding: 14px 16px; background: #fff; border-radius: 10px; border-left: 3px solid var(--c); box-shadow: 0 1px 2px rgba(1, 10, 45, .06); }
.rel-chrono-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 12px; }
.rel-chrono-area { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.rel-chrono-meta time { font-family: Menlo, Consolas, monospace; color: #4a5470; }
.rel-chrono-card h4 { margin: 0 0 4px; font-size: 16px; color: #010a2d; }
.rel-chrono-card p { margin: 0; font-size: 14px; line-height: 1.45; color: #4a5470; }
.rel-chrono-img { float: right; width: 84px; height: 72px; margin: 2px 0 6px 12px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 50% 60%, #fff 0%, #eef1f6 80%); }
.rel-chrono-img img { max-width: 76px; max-height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.rel-chrono-img--etag svg { width: 80px; height: auto; }
.rel-chrono-tech { clear: both; display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; }
.rel-chrono-tech span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #f0f2f7; color: #3a4460; }
@media (max-width: 860px) {
    .rel-chrono { padding: 28px 16px 16px; }
    .rel-chrono-body::before { left: 6px; }
    .rel-chrono-yearlabel { margin-left: 0; }
    .rel-chrono-year ol { grid-template-columns: minmax(0, 1fr); }
    .rel-chrono-year li, .rel-chrono-year li.is-right { grid-column: 1; margin: 0 0 12px 26px; }
    .rel-chrono-year li .rel-chrono-dot, .rel-chrono-year li:not(.is-right) .rel-chrono-dot, .rel-chrono-year li.is-right .rel-chrono-dot { left: -26px; right: auto; }
}
.rel-chrono-icon { float: right; width: 44px; height: 44px; margin: 0 0 6px 12px; display: grid; place-items: center; border-radius: 12px; background: var(--c); box-shadow: 0 4px 10px -4px var(--c); }
.rel-chrono-icon img { width: 24px; height: 24px; object-fit: contain; }

/* Die Seite setzt global overflow auf html/body, deshalb greift position: sticky nicht.
   Die Zeitachse wird per JavaScript (translateY) mitgeführt. */
.rel-layout { position: relative; }
.rel-years { position: relative !important; top: 0 !important; }
.rel-years.is-fixed { position: fixed !important; top: 110px !important; width: 88px; z-index: 5; }
.rel-years.is-end { position: absolute !important; top: auto !important; bottom: 80px; width: 88px; }
@media (max-width: 860px) { .rel-years.is-fixed, .rel-years.is-end { position: relative !important; left: auto !important; bottom: auto; width: auto; } }
.rel-layout > .rel-years { grid-column: 1; grid-row: 1; }
.rel-layout > .rel-feed { grid-column: 2; grid-row: 1; }
@media (max-width: 860px) { .rel-layout > .rel-years, .rel-layout > .rel-feed { grid-column: auto; grid-row: auto; } }
.rel-media--board { margin: 28px 0 10px; }
.rel-media--board img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rel-line); box-shadow: 0 18px 40px -24px rgba(1, 10, 45, .35); }
.rel-media--board figcaption { margin-top: 8px; font-size: 13px; color: var(--rel-muted); }
.rel-c--erp { --c: #5b4bb7; } .rel-c--ki { --c: #a0700a; }
