/* storybay · Handy-Ebene der Altseiten (#sbm). Desktop bleibt die Muse-Fassung. */
#sbm[hidden] { display: none; }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  html, body { min-width: 0 !important; width: auto !important; height: auto !important; min-height: 0 !important; overflow-x: hidden !important; margin: 0 !important; padding: 0 !important; background: var(--sbm-seite, #fff) !important; }
  body > *:not(#sbm):not(.zk-modal):not(.lity):not(script):not(style):not(link) { display: none !important; }
  #sbm[hidden] { display: block !important; }
}
#sbm { background: var(--sbm-bg, #fff); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; min-height: 100vh; }
#sbm *, #sbm *::before, #sbm *::after { box-sizing: border-box; }
.sbm-leiste { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 2px; min-height: 52px; padding: env(safe-area-inset-top) max(6px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #1b1c1f; border-bottom: 1px solid rgba(0, 0, 0, .08); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.sbm-sb { color: #1b1c1f !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.sbm-luecke { flex: 1; }
.sbm-sprachen { display: inline-flex; }
.sbm-sprachen a { opacity: 1 !important; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #74767b; text-decoration: none; }
.sbm-sprachen a[aria-current] { color: #1b1c1f; }
.sbm-teilen { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.sbm-inhalt { padding: 0 0 12px; overflow-wrap: anywhere; }
.sbm-text { padding: 16px max(20px, env(safe-area-inset-left)); }
.sbm-text > * { max-width: 36em; margin-left: auto; margin-right: auto; }
.sbm-text p, .sbm-text h2, .sbm-text h3, .sbm-text ul { margin-top: 0; margin-bottom: .6em; }
.sbm-text > :last-child { margin-bottom: 0; }
.sbm-text h2 { line-height: 1.12; margin-bottom: .35em; }
.sbm-text h3 { line-height: 1.25; }
.sbm-text ul { padding-left: 1.2em; }
.sbm-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sbm-text p.sbm-link { margin-bottom: 0; }
.sbm-text .sbm-link a { display: inline-block; padding: 10px 0; }
.sbm-text .sbm-lang a { text-decoration: none; }
.sbm-text > :is(p, h2, h3) > a:only-child { display: inline-block; padding: 8px 0; }
.sbm-bild { margin: 0; }
.sbm-bild img { display: block; width: 100%; height: auto; }
.sbm-video { position: relative; display: block; }
.sbm-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .62); }
.sbm-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.sbm-reihe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 16px 20px; }
.sbm-reihe img { display: block; max-width: 100%; height: auto; }
.sbm-reihe a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.sbm-buehne { background-size: cover; background-position: center; padding: 28px 0; color: #1b1c1f; }
.sbm-buehne.sbm-dunkel { color: #fff; }
.sbm-buehne .sbm-text { padding-top: 8px; padding-bottom: 8px; }
.sbm-galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sbm-galerie img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: center; }
.sbm-platz { padding: 12px max(20px, env(safe-area-inset-left)); }
.sbm-platz .zk-platz { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
.sbm-platz.sbm-klein .zk-platz { aspect-ratio: auto; }
.sbm-platz iframe { display: block; width: 100% !important; max-width: 100%; }
.sbm-platz iframe[height], .sbm-platz iframe.actAsDiv { height: auto !important; aspect-ratio: 16 / 9; }
.sbm-fuss { display: flex; flex-wrap: wrap; gap: 0 20px; justify-content: center; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); font-size: 14px; border-top: 1px solid rgba(127, 127, 127, .25); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.sbm-fuss a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.sbm-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #1b1c1f; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; z-index: 60; }
.sbm-paare .sbm-paar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 14px; max-width: 36em; margin: 0 auto; padding: 3px 0; }
.sbm-paare .sbm-paar > div > * { margin: 0 !important; text-align: left !important; font-size: 16px !important; }
.sbm-paare .sbm-rolle > * { opacity: .75; }
/* Handy quer: Bilder höchstens so hoch wie der Bildschirm */
@media (orientation: landscape) {
  .sbm-bild img { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
  .sbm-galerie { background: #000; }
  .sbm-galerie img { height: 82vh; object-fit: contain; }
  .sbm-buehne { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
}
