/* C1 / 6351: website screen controls only; no booklet or print rules. */
@media screen {
.ft-display-tools{box-sizing:border-box;max-width:1160px;width:calc(100% - 40px);margin:12px auto 0;display:flex;justify-content:flex-end}
.ft-theme-toggle{font:600 14px/1.4 FTInter,Arial,sans-serif;min-height:44px;padding:10px 16px;border:1px solid #697e76;border-radius:8px;background:#fffdf5;color:#17484b;cursor:pointer}
.ft-theme-toggle:focus-visible{outline:3px solid #b07b00;outline-offset:4px}
.ft-pdf-waitbox{box-sizing:border-box;width:100%;max-width:640px;padding:20px;margin:16px 0;border:2px solid #17666a;border-radius:12px;background:#e8f3ef;color:#143e43;font:400 16px/1.6 FTInter,Arial,sans-serif;scroll-margin-block:24px}
.ft-pdf-waitbox[hidden]{display:none!important}
.ft-pdf-waitbox p{margin:0 0 12px!important}
.ft-pdf-waitbox progress{display:block;width:100%;height:16px;accent-color:#17666a}
html[data-ft-theme=dark]{color-scheme:dark;background:#101e22}
html[data-ft-theme=dark] body.ft-design{--ft-paper:#1b3034;--ft-cream:#101e22;--ft-ink:#f7f0df;--ft-muted:#c3d2cd;--ft-teal:#a4d9d2;--ft-honey:#ffc642;--ft-sky:#193c42;--ft-line:#637e79;--ft-s3-paper:#1b3034;--ft-s3-sand:#101e22;--ft-s3-ink:#f7f0df;--ft-s3-line:#637e79;background:#101e22!important;color:#f7f0df!important}
html[data-ft-theme=dark] body.ft-design :is(.ft-s3-header,.ft-s3-footer,.ft-kopfzeile,.ft-fusszeile,.ft-display-tools){background:#101e22!important;color:#f7f0df!important;border-color:#637e79!important}
html[data-ft-theme=dark] body.ft-design :is(.ft-formularblatt,.ft-feld,.ft-abenteuer__eintrag,.ft-abenteuer__text,.ft-v5441-filters,.ft-s4-testfamily,.ft-s4-catalog-actions,.ft-s4-more,.story,.story-copy,.content,.quickfacts>div,.home-wait,.home-feedback,.journey,.ft-s3-fact,.ft-s3-reading,.ft-code-panel,.ft-meldung){background:#1b3034!important;color:#f7f0df!important;border-color:#637e79!important}
html[data-ft-theme=dark] body.ft-design :is(h1,h2,h3,h4,p,li,label,legend,summary,small,dt,dd,span,strong){color:inherit!important}
html[data-ft-theme=dark] body.ft-design a{color:#b9e4e0!important}
html[data-ft-theme=dark] body.ft-design :is(input,select,textarea){background:#13282c!important;color:#f7f0df!important;border-color:#8ca59b!important}
html[data-ft-theme=dark] body.ft-design :is(input,textarea)::placeholder{color:#b7c9c1!important;opacity:1}
html[data-ft-theme=dark] body.ft-design :is(.ft-knopf,.ft-s3-button,.ft-header-code,.ft-theme-toggle,button){background:#f2cf72!important;color:#142e32!important;border-color:#f2cf72!important}
html[data-ft-theme=dark] body.ft-design :is(.ft-v5441-badge,.ft-s4-status,.ft-augenmerk,.ft-spur){background:transparent!important;color:#d7e7d7!important}
html[data-ft-theme=dark] body.ft-design :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #ffc642!important;outline-offset:4px}
html[data-ft-theme=dark] .ft-pdf-waitbox{background:#1b3034;color:#f7f0df;border-color:#a4d9d2}
html[data-ft-theme=dark] .ft-pdf-waitbox progress{accent-color:#f2cf72}
@media(prefers-reduced-motion:reduce){.ft-pdf-waitbox progress{animation:none}}
}

/* C1 contrast follow-up: the home renderer has its own fixed ink colours. */
@media screen{
html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion :is(h1,h2,h3,h4,p,li,label,legend,summary,small,dt,dd,span,strong){color:#f7f0df!important}
html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion :is(.box.primary,.ft-s3-button){background:#f2cf72!important;color:#142e32!important;border-color:#f2cf72!important}
html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion :is(.box.primary,.ft-s3-button) :is(span,strong){color:inherit!important}
html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion .box.ft-s4-secondary{background:#1b3034!important;color:#f7f0df!important;border-color:#8ca59b!important}
}

@media screen{
html[data-ft-theme=dark] body.ft-design #inhalt :is(.ft-knopf,.ft-s3-button,button),html[data-ft-theme=dark] body.ft-design #inhalt :is(.ft-knopf,.ft-s3-button,button):is(:hover,:focus,:active){background:#f2cf72!important;color:#142e32!important;border-color:#f2cf72!important}
html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion a.story-link,html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion a.story-link:is(:hover,:focus,:active){background:#1b3034!important;color:#b9e4e0!important;border-color:#8ca59b!important}
}

@media screen{
html[data-ft-theme=dark] body.ft-design *{transition-property:transform,box-shadow!important}
html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion :is(button.ft-knopf,.ft-s3-button),html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion :is(button.ft-knopf,.ft-s3-button):is(:hover,:focus,:active){background:#f2cf72!important;color:#142e32!important;border-color:#f2cf72!important}
}

/* L2: detail pages use the home renderer and need dark surfaces too. */
@media screen{html[data-ft-theme=dark] body.ft-design.ft-page-start #festitale-motion :is(.followpage,.followpage .prepare){background:#1b3034!important;color:#f7f0df!important}}

/* WS4 6883 (20.10.2026): Ortskarten bei 600-1099 px gleich breit - letzte ungerade Karte nicht mehr ueber volle Breite, sondern gleich breit und mittig */
@media (min-width: 600px) and (max-width: 1099px) {
  html body.ft-design .ft-ws2b-orte .ft-s4-catalog-list > li.ft-abenteuer__eintrag.ft-story--place:nth-last-child(1 of :not([hidden])):nth-child(2n+1 of :not([hidden])) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}
