/* XFM Online (xfm-online.de): Seitenrahmen, Hauptbereiche "Liga live" / "Spielen", volle Breite und neue News.
   Ergänzt style.css, xfm.css und xfm-online.css (Datenstudio, Bernstein-Akzent) und überschreibt nur, was der Rahmen braucht. */
.xs-site {
    --xs-gutter: clamp(16px, 2.4vw, 44px);
    --xs-head: 56px;
    --xs-play: #59d391;
    --xs-play-ink: #071a10;
    min-height: 100vh;
}
.xs-site .xs-wide { width: 100%; max-width: 2400px; margin: 0 auto; padding-left: max(var(--xs-gutter), env(safe-area-inset-left)); padding-right: max(var(--xs-gutter), env(safe-area-inset-right)); }

/* ---------- Kopf ---------- */
.xs-site .xs-header { position: sticky; top: 0; z-index: 60; padding: 0; background: var(--xo-bg); border-bottom: 1px solid var(--xo-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.xs-site .xs-bar { display: flex; align-items: stretch; gap: 8px 28px; min-height: 56px; max-width: 2400px; margin: 0 auto; padding: 0 max(var(--xs-gutter), env(safe-area-inset-right)) 0 max(var(--xs-gutter), env(safe-area-inset-left)); }
.xs-site .xs-logo { display: flex; align-items: center; gap: 6px; font-family: var(--xo-cond); font-weight: 700; font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; color: var(--xo-text); text-decoration: none; white-space: nowrap; }
.xs-site .xs-logo span { color: var(--xo-accent); }
.xs-site .xs-views { display: flex; align-items: stretch; gap: 4px; }
.xs-site .xs-view { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--xo-text-faint); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, background .15s; }
.xs-site .xs-view:hover { color: var(--xo-text); background: var(--xo-panel); }
.xs-site .xs-view svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xs-site .xs-view span { display: flex; flex-direction: column; font-size: .95rem; font-weight: 600; line-height: 1.15; }
.xs-site .xs-view small { font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--xo-text-faint); }
.xs-site .xs-view-on { color: var(--xo-text); border-bottom-color: var(--xo-accent); }
.xs-site .xs-view-on svg { color: var(--xo-accent); }
.xs-site .xs-view[data-view-link="play"].xs-view-on { border-bottom-color: var(--xs-play); }
.xs-site .xs-view[data-view-link="play"].xs-view-on svg, .xs-site .xs-view[data-view-link="play"] small { color: var(--xs-play); }
.xs-site .xs-running { position: absolute; top: 10px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--xs-play); box-shadow: 0 0 0 3px #59d39133; animation: xs-pulse 2s ease-in-out infinite; }
@keyframes xs-pulse { 50% { box-shadow: 0 0 0 6px #59d39100; } }
.xs-site .xs-aside { display: flex; align-items: center; gap: 22px; margin-left: auto; min-width: 0; }
.xs-site .xs-status { display: flex; align-items: center; margin: 0; font-size: .76rem; color: var(--xo-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xs-site .xs-ext { font-size: .84rem; color: var(--xo-text-faint); text-decoration: none; white-space: nowrap; padding: 7px 12px; border: 1px solid var(--xo-line-strong); border-radius: var(--xo-radius); }
.xs-site .xs-ext:hover { color: var(--xo-text); border-color: var(--xo-accent); }

/* ---------- Bereiche umschalten ---------- */
.xs-site[data-view="play"] #xs-liga { display: none; }
.xs-site[data-view="liga"] #xs-play { display: none; }
/* Läuft das Spiel, bleibt sein Rahmen in voller Größe erhalten, nur unsichtbar: kein Neuladen, keine Größenänderung im Spiel. */
.xs-site.xs-game-on[data-view="liga"] #xs-play { display: block; position: fixed; left: 0; right: 0; top: var(--xs-head); height: calc(100dvh - var(--xs-head)); visibility: hidden; pointer-events: none; z-index: -1; }

/* ---------- Liga live ---------- */
.xs-site .xo-hero { padding-top: 16px; padding-bottom: 0; }
.xs-site .xo-hero h1 { font-size: 1.75rem; }
.xs-site .xo-sticky { top: var(--xs-head); }
.xs-site .xo-section { padding-top: 10px; }
.xs-site .xo-about { padding-bottom: 40px; }
.xs-site .xo-grid { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); }
@media (min-width: 1700px) {
    .xs-site .xo-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
    .xs-site .xo-top-teaser { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.xs-site .xs-footer { padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); background: var(--xo-bg); border-top: 1px solid var(--xo-line); }
.xs-site .xs-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.xs-site .xs-footer p { margin: 0; font-size: .82rem; color: var(--xo-text-faint); }
.xs-site .xs-footer p a { color: var(--xo-text-dim); }
.xs-site .xs-footer .footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.xs-site .xs-footer .footer-links a { font-size: .82rem; }

/* ---------- Spielen ---------- */
.xs-site .xs-play { height: calc(100dvh - var(--xs-head)); min-height: 320px; background: #05080a; }
.xs-site .xs-play-intro { height: 100%; overflow: auto; display: grid; place-items: center; padding: 24px max(var(--xs-gutter), env(safe-area-inset-right)) 24px max(var(--xs-gutter), env(safe-area-inset-left));
    background: radial-gradient(1200px 600px at 70% 0%, #59d39114, transparent 60%), radial-gradient(900px 500px at 0% 100%, #e2a33610, transparent 60%), #0b0e0f; }
.xs-site .xs-play-card { width: min(640px, 100%); padding: 34px 34px 28px; border: 1px solid #2b4a3a; border-radius: 10px; background: #0d1512; box-shadow: 0 30px 80px #0008; }
.xs-site .xs-eyebrow { display: block; color: var(--xs-play); font-family: var(--xo-cond); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.xs-site .xs-play-card h2 { margin: 0 0 12px; font-family: var(--xo-cond); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; letter-spacing: .01em; color: var(--xo-text); }
.xs-site .xs-play-card p { margin: 0 0 16px; color: var(--xo-text-dim); line-height: 1.65; font-size: .95rem; }
.xs-site .xs-play-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.xs-site .xs-play-facts li { position: relative; padding-left: 22px; color: var(--xo-text-dim); font-size: .88rem; line-height: 1.55; }
.xs-site .xs-play-facts li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; background: var(--xs-play); transform: rotate(45deg); }
.xs-site .xs-play-facts b { color: var(--xo-text); font-weight: 600; }
.xs-site .xs-play-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.xs-site .xs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; border: 1px solid #335744; background: transparent; color: #c5f0d7; font: inherit; font-size: .94rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.xs-site .xs-btn:hover { background: #ffffff0d; }
.xs-site .xs-btn-primary { background: var(--xs-play); border-color: var(--xs-play); color: var(--xs-play-ink); min-width: 180px; }
.xs-site .xs-btn-primary:hover { background: #83e9af; }
.xs-site .xs-play-small { font-size: .78rem !important; color: var(--xo-text-faint) !important; margin: 0 !important; }
.xs-site .xs-play-small a { color: var(--xo-text-dim); text-decoration: underline; text-underline-offset: 3px; }

.xs-site .xs-stage { display: flex; flex-direction: column; height: 100%; background: #05080a; }
.xs-site .xs-stage[hidden] { display: none !important; }
.xs-site .xs-gamebar { display: flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 2px max(10px, env(safe-area-inset-right)) 2px max(12px, env(safe-area-inset-left)); border-bottom: 1px solid #ffffff14; background: #090c0d; }
.xs-site .xs-gametitle { margin-right: auto; font-family: var(--xo-cond); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--xo-text); }
.xs-site .xs-gametitle span { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #59d39126; color: var(--xs-play); font-size: .68rem; }
.xs-site .xs-gbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 11px; border: 1px solid #2b4a3a; border-radius: 6px; background: transparent; color: #c5f0d7; font: inherit; font-size: .8rem; cursor: pointer; }
.xs-site .xs-gbtn:hover { background: #ffffff0d; }
.xs-site .xs-gbtn[hidden] { display: none; }
.xs-site .xs-gbtn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xs-site .xs-gbtn-stop:hover { border-color: var(--xo-loss); color: var(--xo-loss-text); }
.xs-site .xs-framebox { position: relative; flex: 1 1 auto; min-height: 0; }
.xs-site .xs-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #05080a; }
.xs-site .xs-stage:fullscreen { width: 100vw; height: 100vh; }

/* ---------- Smartphone ---------- */
@media (max-width: 900px) {
    .xs-site .xs-aside .xs-ext { display: none; }
}
@media (max-width: 720px) {
    .xs-site .xs-bar { gap: 0 10px; min-height: 52px; }
    .xs-site .xs-logo { font-size: 1.05rem; }
    .xs-site .xs-view { padding: 0 10px; gap: 7px; }
    .xs-site .xs-view small { display: none; }
    .xs-site .xs-view span { font-size: .88rem; }
    .xs-site .xs-status { font-size: 0; }           /* nur das Statussymbol */
    .xs-site .xs-status .xfm-status-dot { margin-right: 0; }
    .xs-site .xo-hero h1 { font-size: 1.3rem; }
    .xs-site .xo-grid { grid-template-columns: minmax(0, 1fr); }
    .xs-site .xs-play-card { padding: 26px 20px 22px; }
    .xs-site .xs-gbtn span { display: none; }
    .xs-site .xs-gbtn { min-width: 40px; justify-content: center; }
    .xs-site .xs-footer-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
    .xs-site .xs-logo span { display: none; }
}
/* Telefon quer: jede Bildschirmzeile zählt. Kopf weg, die Spielleiste wird eine schmale Leiste am linken Rand. */
@media (orientation: landscape) and (max-height: 520px) {
    .xs-site.xs-game-on[data-view="play"] .xs-header { display: none; }
    .xs-site.xs-game-on[data-view="play"] { --xs-head: 0px; }
    .xs-site.xs-game-on .xs-stage { flex-direction: row; }
    .xs-site.xs-game-on .xs-gamebar { flex-direction: column; justify-content: flex-start; width: calc(44px + env(safe-area-inset-left)); min-height: 0; padding: max(6px, env(safe-area-inset-top)) 4px 6px max(4px, env(safe-area-inset-left)); border-bottom: 0; border-right: 1px solid #ffffff14; }
    .xs-site.xs-game-on .xs-gametitle { margin: 0 0 6px; font-size: .62rem; writing-mode: vertical-rl; transform: rotate(180deg); }
    .xs-site.xs-game-on .xs-gametitle span { display: none; }
    .xs-site.xs-game-on .xs-gbtn { width: 36px; min-width: 0; min-height: 36px; padding: 0; justify-content: center; }
    .xs-site.xs-game-on .xs-gbtn span { display: none; }
    .xs-site.xs-game-on .xs-gbtn-stop { margin-top: auto; }
    .xs-site .xs-play-intro { place-items: start center; }
}

/* ---------- News ---------- */
.xs-site .xo-newsbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; margin: 0 0 16px; }
.xs-site .xo-newsbar .xo-seg button { min-height: 44px; padding: 6px 16px; font-size: .86rem; }
.xs-site .xo-newsbar select { min-width: 200px; }
.xs-site .xo-newsbar .xo-search { flex: 1 1 240px; max-width: 420px; }
.xs-site .xo-newsbar input[type="search"] { min-width: 0; width: 100%; }
.xs-site .xo-news-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 8px; }
.xs-site .xo-news-top-split { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); align-items: start; }
.xs-site .xo-news-leadlink { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xs-site .xo-news-leadlink:hover { color: var(--xo-accent); }
.xs-site .xo-news-leadteaser { margin: 0 0 14px; color: var(--xo-text-dim); line-height: 1.7; font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.xs-site .xo-news-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.xs-site .xo-news-actions:empty { display: none; }
.xs-site .xo-news-side { padding: 14px 16px; }
.xs-site .xo-news-sidelist { list-style: none; margin: 0; padding: 0; }
.xs-site .xo-news-sidelist li + li { border-top: 1px solid var(--xo-line); }
.xs-site .xo-news-sideitem { display: grid; gap: 2px; width: 100%; padding: 10px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xs-site .xo-news-sideitem:hover .xo-news-sidetitle { color: var(--xo-accent); }
.xs-site .xo-news-sidetitle { font-weight: 600; font-size: .95rem; }
.xs-site .xo-news-sideteaser { font-size: .8rem; line-height: 1.5; color: var(--xo-text-faint); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xs-site .xo-news-day { margin-top: 26px; }
.xs-site .xo-news-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xs-site .xo-news-count { font-family: var(--xo-sans); font-size: .74rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--xo-text-faint); }
.xs-site .xo-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.xs-site .xo-ncard { min-width: 0; border: 1px solid var(--xo-line); border-top: 2px solid var(--xo-line-strong); border-radius: var(--xo-radius); background: var(--xo-panel); transition: background .15s, border-color .15s; }
.xs-site .xo-ncard:hover { background: var(--xo-panel-hover); border-color: var(--xo-line-strong); }
.xs-site .xo-ncard-league { border-top-color: var(--xo-accent); }
.xs-site .xo-ncard-cup { border-top-color: var(--xo-cc); }
.xs-site .xo-ncard-ticker { border-top-color: var(--xs-play); }
.xs-site .xo-ncard-btn { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 14px 16px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xs-site .xo-ncard-kicker { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--xo-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.xs-site .xo-ncard-league .xo-ncard-kicker { color: var(--xo-accent); }
.xs-site .xo-ncard-cup .xo-ncard-kicker { color: var(--xo-cc); }
.xs-site .xo-ncard-ticker .xo-ncard-kicker { color: var(--xs-play); }
.xs-site .xo-ncard-h { font-weight: 600; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.xs-site .xo-ncard-teaser { font-size: .84rem; line-height: 1.55; color: var(--xo-text-dim); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xs-site .xo-ncard-more { margin-top: auto; padding-top: 4px; font-size: .74rem; font-family: var(--xo-cond); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--xo-text-faint); }
.xs-site .xo-ncard:hover .xo-ncard-more { color: var(--xo-accent); }
.xs-site .xo-empty .xo-btn { margin-top: 10px; }

/* Lesefenster */
.xs-site .xo-reader { width: min(860px, calc(100vw - 24px)); padding: 0; }
.xs-site .xo-reader-head { position: sticky; top: 0; z-index: 2; margin: 0; padding: 12px 18px; background: var(--xo-panel); flex-wrap: nowrap; }
.xs-site .xo-reader-head .xo-news-kicker { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs-site .xo-reader-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.xs-site .xo-reader-nav .xo-btn { min-width: 40px; }
.xs-site .xo-reader-nav .xo-btn:disabled { opacity: .35; cursor: default; }
.xs-site .xo-reader-pos { min-width: 52px; text-align: center; font-size: .76rem; color: var(--xo-text-faint); }
.xs-site #xo-reader-body { padding: 18px 26px 26px; }
.xs-site .xo-reader-h { margin: 0 0 10px; font-family: var(--xo-sans); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.22; font-weight: 600; text-transform: none; letter-spacing: -.005em; color: var(--xo-text); overflow-wrap: anywhere; }
.xs-site .xo-reader-content > * + * { margin-top: 16px; }
.xs-site .xo-reader .xo-news-text p { font-size: 1rem; line-height: 1.75; }

@media (max-width: 1000px) {
    .xs-site .xo-news-top-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .xs-site .xo-newsbar { gap: 10px; }
    .xs-site .xo-newsbar .xo-seg { width: 100%; }
    .xs-site .xo-newsbar .xo-seg button { flex: 1 1 0; padding: 6px 4px; }
    .xs-site .xo-newsbar .xo-field { flex: 1 1 140px; }
    .xs-site .xo-newsbar select { min-width: 0; width: 100%; }
    .xs-site .xo-newsbar .xo-search { max-width: none; }
    .xs-site .xo-reader { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .xs-site .xo-reader-head { padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
    .xs-site #xo-reader-body { padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); }
    .xs-site .xo-reader-pos { display: none; }
}

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.xs-legal .xs-legal-main { width: min(860px, 100%); margin: 0 auto; padding: 28px var(--xs-gutter) 60px; }
.xs-legal .xs-legal-back { display: inline-flex; gap: 8px; margin-bottom: 16px; font-size: .84rem; color: var(--xo-text-faint); text-decoration: none; }
.xs-legal .xs-legal-back:hover { color: var(--xo-accent); }
.xs-legal .xs-legal-card { padding: clamp(20px, 4vw, 40px); border: 1px solid var(--xo-line); border-radius: var(--xo-radius); background: var(--xo-panel); }
.xs-legal h1 { margin: 0 0 6px; font-family: var(--xo-cond); font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: .02em; text-transform: uppercase; color: var(--xo-text); }
.xs-legal .xs-legal-sub { margin: 0 0 24px; font-size: .84rem; color: var(--xo-text-faint); }
.xs-legal section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--xo-line); }
.xs-legal h2 { margin: 0 0 10px; font-family: var(--xo-cond); font-size: 1.1rem; letter-spacing: .04em; color: var(--xo-text); }
.xs-legal h3 { margin: 16px 0 6px; font-size: .96rem; color: var(--xo-text); }
.xs-legal p, .xs-legal li { color: var(--xo-text-dim); font-size: .92rem; line-height: 1.7; margin: 0 0 10px; overflow-wrap: anywhere; }
.xs-legal ul { padding-left: 20px; margin: 0 0 12px; }
.xs-legal a { color: var(--xo-accent); }
.xs-legal .xs-optout { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--xo-line-strong); border-radius: var(--xo-radius); }
.xs-legal .xs-optout .xo-btn { margin-left: 10px; }
