.twst-story{--twst-bg:#191b23;--twst-fg:#f4f5fb;--twst-accent:#426c91;background:var(--twst-bg);color:var(--twst-fg);border-radius:12px;overflow:hidden;max-width:1200px;margin:24px auto;font-family:inherit}.twst-slide{min-height:470px;box-sizing:border-box}.twst-slide[hidden]{display:none}.twst-content{padding:clamp(18px,4vw,50px);box-sizing:border-box}.twst-content h2{font-size:clamp(26px,4vw,52px);line-height:1.15;color:inherit;margin:0 0 24px}.twst-body{font-size:clamp(16px,1.7vw,21px);line-height:1.6;max-width:850px}.twst-body *{color:inherit}.twst-image{display:block;max-width:100%;max-height:60vh;object-fit:contain;margin:20px auto;border-radius:8px}.twst-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#20232d;padding:12px 20px}.twst-nav button{background:#343a4c;color:#fff;border:1px solid #51576a;border-radius:6px;padding:10px 18px;cursor:pointer}.twst-nav button:disabled{opacity:.4;cursor:default}.twst-progress{font-variant-numeric:tabular-nums}.twst-frame{display:block;width:100%;height:min(65vh,650px);min-height:350px;border:0;background:#fff;border-radius:8px}.twst-map{height:min(65vh,650px);min-height:360px;border-radius:8px;background:#2b3040}.twst-light{background:#f4f5fb;color:#191b23}.twst-dark,.twst-title,.twst-chapter,.twst-outro{background:#11151f}.twst-quote .twst-body{font-size:clamp(24px,3vw,38px);font-style:italic}.twst-stat .twst-body{font-size:clamp(38px,7vw,88px);font-weight:800}.twst-highlight{background:#426c91}.twst-split .twst-content{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.twst-split h2{grid-column:1/-1}.twst-split .twst-image{grid-column:1;grid-row:2}.twst-split .twst-body{grid-column:2;grid-row:2}.twst-full .twst-image,.twst-image .twst-image{width:100%;max-height:70vh;object-fit:cover}.twst-popup{color:#191b23;min-width:190px}.twst-popup strong{display:block;margin-bottom:7px}.twst-popup div{margin:4px 0}.twst-popup a{color:#426c91}@media(max-width:700px){.twst-split .twst-content{display:block}.twst-slide{min-height:340px}.twst-map{min-height:350px}.twst-nav{padding:10px}.twst-nav button{padding:9px}}

.twst-body p{margin:0 0 1em}.twst-body h1,.twst-body h2,.twst-body h3,.twst-body h4{line-height:1.25;margin:.8em 0 .4em}.twst-body ul{list-style:disc;padding-left:1.6em}.twst-body ol{list-style:decimal;padding-left:1.6em}.twst-body blockquote{border-left:3px solid #426c91;padding-left:1.2em;margin:1.2em 0}.twst-body a{text-decoration:underline}.twst-body table{border-collapse:collapse;max-width:100%;width:100%}.twst-body td,.twst-body th{border:1px solid #747a89;padding:8px}.twst-body img{max-width:100%;height:auto}.twst-body figure{max-width:100%;margin:1em 0}.twst-body hr{border:0;border-top:1px solid #747a89;margin:1.5em 0}

.twst-progressbar{height:3px;background:#343a4c}.twst-progressbar span{display:block;height:100%;width:0;background:#426c91;transition:width .25s}.twst-data-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;width:100%}.twst-data-card{background:#20232d;border:1px solid #454959;border-radius:10px;padding:16px}.twst-data-card p{font-size:15px}.twst-chart-bar{height:8px;background:#426c91;border-radius:6px}.twst-caption{font-size:12px;opacity:.7}.twst-content video,.twst-content audio{max-width:100%}.twst-compare-images{position:relative;width:100%;max-width:960px;overflow:hidden}.twst-compare-images img{display:block;width:100%;height:auto}.twst-compare-images .twst-after{position:absolute;inset:0}.twst-compare-images input{position:absolute;bottom:15px;left:10%;width:80%}@media(prefers-reduced-motion:reduce){.twst-progressbar span{transition:none}}

/* Studio 2.1 navigation and map playback */
.twst-studio-toolbar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:#191b23;color:#f4f5fb}.twst-studio-toolbar button{background:#2b3040;color:#fff;border:1px solid #51576a;border-radius:7px;padding:8px 12px;cursor:pointer}.twst-scroll-label{display:flex;align-items:center;gap:6px;font-size:14px}.twst-toc{padding:12px;background:#20232d;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.twst-toc[hidden]{display:none}.twst-toc-entry{text-align:left;border:1px solid #454959;border-radius:7px;background:#2b3040;color:#f4f5fb;padding:10px;cursor:pointer}.twst-toc-entry:focus-visible,.twst-studio-toolbar button:focus-visible{outline:3px solid #8ab4d8;outline-offset:2px}.twst-scroll-mode .twst-slide{display:block!important;min-height:65vh;scroll-margin-top:24px;border-bottom:1px solid #454959}.twst-scroll-mode .twst-slide[hidden]{display:block!important}.twst-map-playback{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:14px}.twst-map-playback button{border:1px solid #426c91;border-radius:6px;background:#426c91;color:#fff;padding:9px 12px;cursor:pointer}.twst-map-playback span{font-variant-numeric:tabular-nums}@media(max-width:650px){.twst-toc{grid-template-columns:1fr}.twst-scroll-mode .twst-slide{min-height:45vh}}

.twst-quote .twst-body{font-size:clamp(1.45rem,3vw,2.8rem);line-height:1.4;font-style:italic}.twst-quote .twst-caption{font-weight:700}.twst-quote-role{opacity:.75;font-size:.95rem}

/* 2.8 */
.twst-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px;margin:22px 0}.twst-photo-grid figure{margin:0}.twst-photo-grid img{width:100%;height:260px;object-fit:cover;border-radius:8px}.twst-photo-grid figcaption{font-size:.88em;margin-top:8px;line-height:1.5}.twst-source-grid,.twst-network{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin:20px 0}.twst-source-card,.twst-network-node{padding:20px;border:1px solid currentColor;border-radius:10px}.twst-network-node small{display:block;opacity:.75;margin-top:5px}.twst-source-card p,.twst-network-node p{font-size:.9em;line-height:1.5}.twst-compare-images{position:relative;overflow:hidden;min-height:250px}.twst-compare-images img{display:block;width:100%;height:auto}.twst-compare-images img.twst-after{position:absolute;inset:0;height:100%;object-fit:cover}.twst-compare-images input[type=range]{position:absolute;bottom:12px;left:10%;width:80%;z-index:3}

/* Studio 2.9: responsive, accessible actor relationship graph */
.twst-graph-shell{margin:20px 0;border:1px solid #51576a;border-radius:12px;overflow:hidden;background:#20232d;color:#f4f5fb}.twst-graph-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #454959;font-size:13px}.twst-graph-toolbar button{background:#426c91;border:0;border-radius:6px;padding:9px 12px;color:white;cursor:pointer}.twst-graph-svg{width:100%;height:auto;max-height:620px;display:block;touch-action:pan-y}.twst-graph-links line{stroke:#7b93ad;opacity:.65}.twst-graph-node{cursor:grab;outline:none}.twst-graph-node:active{cursor:grabbing}.twst-graph-node circle{fill:#426c91;stroke:#c8d7e5;stroke-width:2}.twst-graph-node text{fill:#f4f5fb;font-size:12px;paint-order:stroke;stroke:#20232d;stroke-width:3px;stroke-linejoin:round}.twst-graph-node.is-selected circle,.twst-graph-node:focus-visible circle{fill:#b16c40;stroke:#fff;stroke-width:4}.twst-graph-detail{min-height:50px;padding:14px 18px;border-top:1px solid #454959;line-height:1.5}.twst-graph-detail p{margin:5px 0;font-size:14px}@media(max-width:650px){.twst-graph-svg{min-height:300px}.twst-graph-toolbar{font-size:12px}}

/* 3.0 Quellen-Explorer */
.twst-source-explorer{margin:20px 0}.twst-source-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:20px}.twst-source-filters input,.twst-source-filters select{background:#20232d;color:#f4f5fb;border:1px solid #51576a;border-radius:7px;padding:10px 12px;min-height:42px;max-width:100%}.twst-source-filters input{flex:2 1 220px}.twst-source-filters select{flex:1 1 150px}.twst-source-count{font-size:.85em;opacity:.8}.twst-source-card{min-width:0;overflow-wrap:anywhere}.twst-source-card a{color:#8ec8f5}.twst-source-meta{opacity:.8}.twst-source-timeline-list{border-left:2px solid #426c91;margin:20px 0 20px 12px;padding-left:24px;display:grid;gap:16px}.twst-source-timeline-list .twst-source-card{position:relative}.twst-source-timeline-list .twst-source-card:before{content:"";position:absolute;width:11px;height:11px;background:#426c91;border-radius:50%;left:-37px;top:22px}.twst-source-timeline-list time{display:block;font-weight:700;color:#9ec9e8;margin-bottom:9px}.twst-light .twst-source-filters input,.twst-light .twst-source-filters select{background:#fff;color:#191b23;border-color:#b8becd}.twst-light .twst-source-card a{color:#285a80}@media(max-width:600px){.twst-source-filters>*{flex-basis:100%!important}}
/* 3.1 data visualizations */
.twst-dataviz{margin:1.5rem 0;max-width:100%;color:inherit}.twst-viz-controls{display:flex;justify-content:flex-end;margin-bottom:1rem}.twst-viz-controls label{font-size:.9rem}.twst-viz-controls select{margin-left:.5rem;padding:.35rem .5rem;border-radius:6px}.twst-viz-bars{display:grid;gap:1rem}.twst-viz-row{display:grid;grid-template-columns:minmax(110px,1.3fr) minmax(100px,3fr) minmax(90px,auto);align-items:center;gap:.8rem}.twst-viz-name{overflow-wrap:anywhere}.twst-viz-track{height:18px;background:rgba(130,140,160,.2);border-radius:5px;overflow:hidden}.twst-viz-fill{height:100%;background:#426c91;border-radius:5px;min-width:0}.twst-viz-negative{background:#a65d55}.twst-viz-number{text-align:right;font-variant-numeric:tabular-nums}.twst-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:1rem}.twst-metric-card{border:1px solid rgba(140,150,170,.3);border-radius:12px;padding:1.3rem;display:grid;gap:.5rem}.twst-metric-label{opacity:.8}.twst-metric-value{font-size:clamp(1.6rem,4vw,3rem);line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.twst-metric-card p{margin:0;font-size:.9rem}@media(max-width:580px){.twst-viz-row{grid-template-columns:1fr auto;gap:.3rem}.twst-viz-track{grid-column:1/-1;grid-row:2}.twst-viz-number{grid-column:2;grid-row:1}}
/* 3.2 interactive layouts */
.twst-hotspot-image{position:relative;display:inline-block;max-width:100%;width:100%}.twst-hotspot-image>img{display:block;width:100%;height:auto}.twst-hotspot-pin{position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;border:2px solid white;background:#426c91;color:#fff;font-weight:700;cursor:pointer;box-shadow:0 2px 10px #0007}.twst-hotspot-pin[aria-pressed="true"]{background:#111}.twst-hotspot-info{padding:16px 0;min-height:2em}.twst-decision-panel{max-width:720px;margin:20px auto}.twst-decision-choice,.twst-decision-back{display:block;width:100%;margin:9px 0;padding:12px 16px;text-align:left;border:1px solid #8c98aa;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.twst-decision-choice:hover,.twst-decision-choice:focus-visible{border-color:#426c91;background:#426c9122}

/* 4.1: Drei redaktionelle Bild-/Textlayouts */
.twst-image-left .twst-content,.twst-image-right .twst-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 38px;align-items:center}
.twst-image-left .twst-content h2,.twst-image-right .twst-content h2{grid-column:1/-1;margin-bottom:4px}
.twst-image-left .twst-image{grid-column:1;grid-row:2;width:100%;max-height:65vh;object-fit:cover;margin:0}
.twst-image-left .twst-body{grid-column:2;grid-row:2}
.twst-image-right .twst-image{grid-column:2;grid-row:2;width:100%;max-height:65vh;object-fit:cover;margin:0}
.twst-image-right .twst-body{grid-column:1;grid-row:2}
.twst-image-left .twst-caption,.twst-image-right .twst-caption{grid-column:1/-1;font-size:13px;opacity:.8}
.twst-image-overlay .twst-content{position:relative;isolation:isolate;min-height:clamp(420px,72vh,760px);display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;overflow:hidden}
.twst-image-overlay .twst-content:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.83));z-index:-1}
.twst-image-overlay .twst-image{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;margin:0;border-radius:0;z-index:-2}
.twst-image-overlay .twst-content h2,.twst-image-overlay .twst-body,.twst-image-overlay .twst-caption{position:relative;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.35);max-width:850px}
.twst-image-overlay .twst-body *{color:#fff}
@media(max-width:700px){.twst-image-left .twst-content,.twst-image-right .twst-content{display:flex;flex-direction:column;align-items:stretch}.twst-image-left .twst-image,.twst-image-right .twst-image{width:100%;max-height:50vh}.twst-image-overlay .twst-content{min-height:480px}}

/* 4.2 editorial composition */
.twst-image-left.twst-ratio-40-60 .twst-content{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.twst-image-left.twst-ratio-60-40 .twst-content{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.twst-image-right.twst-ratio-40-60 .twst-content{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.twst-image-right.twst-ratio-60-40 .twst-content{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.twst-align-top .twst-content{align-items:start}
.twst-align-bottom .twst-content{align-items:end}
.twst-overlay-pos-top .twst-content{justify-content:flex-start}
.twst-overlay-pos-center .twst-content{justify-content:center}
.twst-overlay-pos-bottom .twst-content{justify-content:flex-end}
.twst-image-overlay.twst-shade-soft .twst-content:before{background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.42))}
.twst-image-overlay.twst-shade-strong .twst-content:before{background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.94))}
@media(max-width:700px){.twst-image-left .twst-content,.twst-image-right .twst-content{align-items:stretch}}

/* 4.3: consistent editorial rendering, responsive crop focus */
.twst-focus-top .twst-image{object-position:center top}
.twst-focus-bottom .twst-image{object-position:center bottom}
.twst-focus-left .twst-image{object-position:left center}
.twst-focus-right .twst-image{object-position:right center}
.twst-focus-center .twst-image{object-position:center center}
@media(max-width:700px){.twst-image-left .twst-content,.twst-image-right .twst-content{display:flex;flex-direction:column;align-items:stretch}.twst-image-left .twst-image,.twst-image-right .twst-image{width:100%;max-height:50vh}.twst-image-overlay .twst-content{min-height:420px}}

/* 4.4: flexible Textplatzierung und Hero-Höhen */
.twst-image-overlay.twst-horizontal-center .twst-content{align-items:center;text-align:center}
.twst-image-overlay.twst-horizontal-right .twst-content{align-items:flex-end;text-align:right}
.twst-image-overlay.twst-height-compact .twst-content{min-height:clamp(320px,48vh,540px)}
.twst-image-overlay.twst-height-full .twst-content{min-height:100svh}
.twst-image-overlay.twst-horizontal-center .twst-body,.twst-image-overlay.twst-horizontal-right .twst-body{width:100%}
@media(max-width:700px){.twst-image-overlay.twst-height-full .twst-content{min-height:100svh}}

/* 4.5: Lesebreite im Bild-Overlay */
.twst-image-overlay.twst-width-narrow .twst-body,.twst-image-overlay.twst-width-narrow .twst-content>h1{max-width:520px}
.twst-image-overlay.twst-width-normal .twst-body,.twst-image-overlay.twst-width-normal .twst-content>h1{max-width:780px}
.twst-image-overlay.twst-width-wide .twst-body,.twst-image-overlay.twst-width-wide .twst-content>h1{max-width:1100px}
.twst-image-overlay .twst-body{overflow-wrap:anywhere}
@media(max-width:700px){.twst-image-overlay .twst-content{padding:clamp(18px,5vw,36px)}.twst-image-overlay .twst-body{max-width:100%}}

/* 4.7.0: Bildunterschriften bleiben lesbar und layoutabhängig ausgerichtet. */
.twst-slide .twst-caption{font-size:.875rem;line-height:1.5;color:#b8becd;margin:.55rem 0 1.3rem;max-width:100%;overflow-wrap:anywhere}
.twst-slide.twst-caption-center .twst-caption{text-align:center}
.twst-slide.twst-caption-right .twst-caption{text-align:right}
.twst-slide.twst-caption-left .twst-caption{text-align:left}

/* 4.8.0: Bildnachweise */
.twst-image-credit{font-size:.72rem;line-height:1.45;opacity:.75;margin:.3rem 0 .8rem;text-align:right;}

/* v4.9: Bildformate, nur fuer eigenstaendige Bilder und Bild-Text-Layouts */
.twst-image-ratio-wide .twst-image{aspect-ratio:16/9;object-fit:cover}
.twst-image-ratio-classic .twst-image{aspect-ratio:4/3;object-fit:cover}
.twst-image-ratio-square .twst-image{aspect-ratio:1/1;object-fit:cover}
.twst-image-ratio-portrait .twst-image{aspect-ratio:3/4;object-fit:cover}
.twst-image-ratio-auto .twst-image{aspect-ratio:auto}

/* 6.1.3: Standalone full-viewport narrative, scoped to tw_story only. */
body.twst-standalone{overflow-x:hidden}
body.twst-standalone .twst-standalone-header{height:44px;box-sizing:border-box}
body.twst-standalone #main{width:100%;min-height:calc(100svh - 44px)}
body.twst-standalone .twst-story{width:100%;max-width:none;margin:0;border-radius:0;min-height:calc(100svh - 44px);display:flex;flex-direction:column}
body.twst-standalone .twst-slides{flex:1;min-height:0}
body.twst-standalone .twst-slide:not([hidden]){min-height:calc(100svh - 170px);display:flex;align-items:stretch}
body.twst-standalone .twst-slide .twst-content{width:100%;min-height:inherit;display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,4vw,68px) clamp(20px,6vw,110px)}
body.twst-standalone .twst-body{max-width:1100px;overflow-wrap:anywhere}
body.twst-standalone .twst-nav{position:sticky;bottom:0;z-index:12;min-height:60px;box-sizing:border-box}
body.twst-standalone .twst-studio-toolbar{position:relative;z-index:13}
body.twst-standalone .twst-scroll-mode .twst-slide{min-height:100svh!important;display:flex!important;scroll-margin-top:0}
body.twst-standalone .twst-scroll-mode .twst-content{min-height:100svh}
/* Text-only column layouts: flow the formatted body into columns without changing saved content. */
body.twst-standalone .twst-two .twst-body{max-width:none;width:100%;columns:2 320px;column-gap:clamp(24px,4vw,72px)}
body.twst-standalone .twst-three .twst-body{max-width:none;width:100%;columns:3 240px;column-gap:clamp(20px,3vw,55px)}
body.twst-standalone .twst-two .twst-body>*,body.twst-standalone .twst-three .twst-body>*{break-inside:avoid-column}
body.twst-standalone .twst-split .twst-content,body.twst-standalone .twst-image-left .twst-content,body.twst-standalone .twst-image-right .twst-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center}
body.twst-standalone .twst-split .twst-content h2,body.twst-standalone .twst-image-left .twst-content h2,body.twst-standalone .twst-image-right .twst-content h2{grid-column:1/-1}
body.twst-standalone .twst-image-overlay .twst-content{display:flex}
@media(max-width:760px){body.twst-standalone .twst-slide .twst-content{padding:22px 18px}body.twst-standalone .twst-two .twst-body,body.twst-standalone .twst-three .twst-body{columns:1}body.twst-standalone .twst-split .twst-content,body.twst-standalone .twst-image-left .twst-content,body.twst-standalone .twst-image-right .twst-content{display:flex;flex-direction:column;align-items:stretch}body.twst-standalone .twst-nav{min-height:54px}}
