/*!
 * Gameserver für GSI-CMS – Darstellung (passt sich hell/dunkel und der Akzentfarbe des Layouts an)
 * Modul © 2026 gameserver-install.de · by rumpel
 */

.gs {
    --gs-a: #7c5cff;
    --gs-a2: color-mix(in srgb, var(--gs-a) 60%, #22d3ee);
    --gs-ok: #22c55e;
    --gs-bad: #ef4444;
    --gs-wait: #f5a524;
    --gs-r: 18px;
    --gs-ease: cubic-bezier(.2, .8, .2, 1);
    --gs-card: rgba(255, 255, 255, .045);
    --gs-card2: rgba(255, 255, 255, .08);
    --gs-solid: #151821;
    --gs-line: rgba(255, 255, 255, .1);
    --gs-text: #eef0f6;
    --gs-soft: #b9bfd0;
    --gs-mute: #8c93a8;
    --gs-shadow: 0 18px 40px -24px rgba(0, 0, 0, .85);
    position: relative;
    color: var(--gs-text);
    font-family: inherit;
    line-height: 1.5;
    text-align: left;
    container: gs / inline-size;
}
.gs--light {
    --gs-card: #fff;
    --gs-card2: #f3f5f9;
    --gs-solid: #fff;
    --gs-line: #e3e7ef;
    --gs-text: #182032;
    --gs-soft: #475069;
    --gs-mute: #747d93;
    --gs-shadow: 0 14px 32px -22px rgba(20, 30, 60, .35);
    --gs-ok: #16a34a;
}
.gs-wait { opacity: 0; animation: gs-show 0s 2.5s forwards; }
@keyframes gs-show { to { opacity: 1; } }
.gs { transition: opacity .3s; }
.gs *, .gs *::before, .gs *::after { box-sizing: border-box; }
.gs a { color: inherit; text-decoration: none; }
.gs a:hover { color: var(--gs-a); }
.gs h1, .gs h2, .gs h3 { color: var(--gs-text); font-family: inherit; text-transform: none; letter-spacing: -.01em; margin: 0; padding: 0; border: 0; background: none; text-shadow: none; }
.gs button { font: inherit; }
.gs .gs-i { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.gs-video__play .gs-i { width: 26px; height: 26px; fill: currentColor; }
.gs-btn .gs-i { width: 14px; height: 14px; fill: currentColor; }
.gs-code button .gs-i { width: 15px; height: 15px; }
.gs-back .gs-i, .gs-eyebrow .gs-i, .gs-search .gs-i, .gs-chip .gs-i { width: 15px; height: 15px; }
.gs [hidden] { display: none !important; }
.gs-muted { color: var(--gs-mute); font-size: 14px; margin: 0; }
.gs-page { margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- Kopf */
.gs-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 28px; margin-bottom: 18px; border-radius: calc(var(--gs-r) + 4px); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gs-a) 22%, transparent), transparent 60%), var(--gs-card); border: 1px solid var(--gs-line); box-shadow: var(--gs-shadow); overflow: hidden; }
.gs-hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.1; }
.gs-hero p { margin: 8px 0 0; color: var(--gs-soft); max-width: 60ch; }
.gs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gs-a); margin-bottom: 6px; }
.gs-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.gs-stat { padding: 12px 18px; border-radius: 14px; background: var(--gs-card2); border: 1px solid var(--gs-line); min-width: 140px; }
.gs-stat b { font-size: 26px; font-weight: 800; line-height: 1; margin-right: 4px; }
.gs-stat span { color: var(--gs-mute); font-size: 13px; }

/* ------------------------------------------------------------- Filter */
.gs-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.gs-search { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; max-width: 360px; height: 44px; padding: 0 14px; margin: 0; border-radius: 13px; background: var(--gs-card); border: 1px solid var(--gs-line); color: var(--gs-mute); transition: border-color .2s, box-shadow .2s; }
.gs-search:focus-within { border-color: color-mix(in srgb, var(--gs-a) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gs-a) 18%, transparent); }
.gs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--gs-text); font: inherit; font-size: 14px; padding: 0; height: 100%; box-shadow: none; }
.gs-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--gs-card); border: 1px solid var(--gs-line); }
.gs-seg button { border: 0; background: transparent; color: var(--gs-soft); padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.gs-seg button:hover { color: var(--gs-text); }
.gs-seg button.is-on { background: var(--gs-a); color: #fff; }
.gs-select { height: 44px; padding: 0 36px 0 14px; border-radius: 13px; background: var(--gs-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--gs-line); color: var(--gs-text); font: inherit; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.gs-select option { color: #111; background: #fff; }
.gs-nores, .gs-empty { text-align: center; color: var(--gs-mute); padding: 40px 10px; }
.gs-empty .gs-i { width: 38px; height: 38px; color: var(--gs-a); opacity: .7; margin-bottom: 12px; }
.gs-empty .gs-btn { margin-top: 10px; }

/* -------------------------------------------------------------- Abschnitte */
.gs-section { margin-bottom: 26px; }
.gs-section__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--gs-c, var(--gs-a)); }
.gs-section__head h2 { font-size: 20px; font-weight: 800; }
.gs-section__head h2 small { font-size: 12px; font-weight: 700; color: var(--gs-mute); background: var(--gs-card2); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.gs-section__head p { margin: 0; color: var(--gs-mute); font-size: 14px; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.gs-grid--one { grid-template-columns: minmax(0, 420px); }

/* ---------------------------------------------------------------- Karte */
.gs-card { position: relative; display: flex; flex-direction: column; border-radius: var(--gs-r); background: var(--gs-card); border: 1px solid var(--gs-line); box-shadow: var(--gs-shadow); overflow: hidden; transition: transform .35s var(--gs-ease), border-color .3s, box-shadow .35s; isolation: isolate; }
.gs-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gs-c) 55%, transparent); box-shadow: 0 24px 46px -26px color-mix(in srgb, var(--gs-c) 70%, #000); }
.gs-card.is-featured { border-color: color-mix(in srgb, var(--gs-a) 45%, transparent); }
.gs-card__link { position: absolute; inset: 0; z-index: 1; }
.gs-card__top { position: relative; height: 128px; }
.gs-media { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--gs-card2); }
.gs-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--gs-ease); }
.gs-card:hover .gs-media img { transform: scale(1.06); }
.gs-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .55)); }
.gs-media--auto { background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--gs-c) 75%, #fff 0%), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--gs-c) 85%, #000), color-mix(in srgb, var(--gs-c) 35%, #0b0d14)); display: flex; align-items: center; justify-content: center; }
.gs-media--auto b { font-size: 46px; font-weight: 900; letter-spacing: .02em; color: rgba(255, 255, 255, .9); text-shadow: 0 6px 24px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.gs-media--auto .gs-media__icon { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; image-rendering: pixelated; position: relative; z-index: 1; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.gs-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.2; background: var(--gs-card2); border: 1px solid var(--gs-line); color: var(--gs-soft); white-space: nowrap; }
.gs-chip i:not([class]) { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.gs-card__top .gs-chip--game { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(10, 12, 18, .6); color: #fff; border-color: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.gs-card__top .gs-state { position: absolute; right: 12px; top: 12px; z-index: 2; }
.gs-star .gs-i { width: 13px; height: 13px; fill: currentColor; }
.gs-star { position: absolute; left: 12px; top: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 18, .6); color: #ffd34d; font-size: 12px; backdrop-filter: blur(8px); }

/* Status */
.gs-state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .02em; background: rgba(10, 12, 18, .62); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.gs-dot { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gs-wait); flex: none; }
.is-online .gs-dot, .gs-dot.is-online, .is-online > .gs-dot { background: var(--gs-ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gs-ok) 60%, transparent); }
.is-offline .gs-dot { background: var(--gs-bad); }
.gs--anim .is-online .gs-dot { animation: gs-pulse 2s infinite; }
.gs--anim .is-unknown .gs-dot { animation: gs-blink 1s infinite; }
@keyframes gs-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gs-ok) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes gs-blink { 50% { opacity: .35; } }

.gs-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gs-card__title { font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.gs .gs-card__title a { position: relative; z-index: 0; color: var(--gs-text); }
.gs .gs-card__title a:hover { color: var(--gs-a); }
.gs-lock { color: var(--gs-mute); display: inline-flex; vertical-align: middle; }
.gs-lock .gs-i { width: 13px; height: 13px; }
.gs-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--gs-mute); }
.gs-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.gs-meta .gs-i { width: 12px; height: 12px; opacity: .8; }
.gs-players__n { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; font-size: 13px; color: var(--gs-mute); }
.gs-players__n b { font-size: 22px; font-weight: 800; color: var(--gs-text); line-height: 1; }
.gs-bar { display: block; height: 7px; border-radius: 99px; background: var(--gs-card2); overflow: hidden; }
.gs-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gs-c, var(--gs-a)), color-mix(in srgb, var(--gs-c, var(--gs-a)) 50%, #fff)); transition: width .8s var(--gs-ease); }
.is-offline .gs-bar > span { background: var(--gs-mute); opacity: .4; }
.gs-card__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; position: relative; z-index: 2; }

/* Adresse kopieren und Buttons */
.gs-addr { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 11px; border: 1px dashed color-mix(in srgb, var(--gs-a) 45%, var(--gs-line)); background: color-mix(in srgb, var(--gs-a) 8%, transparent); color: var(--gs-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; cursor: pointer; transition: background .2s, border-color .2s; }
.gs-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-addr .gs-i { color: var(--gs-a); width: 14px; height: 14px; }
.gs-addr:hover { background: color-mix(in srgb, var(--gs-a) 16%, transparent); border-style: solid; }
.gs-addr--lg { font-size: 15px; padding: 11px 15px; }
.gs-btn, .gs .gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.2; color: #fff; border: 1px solid transparent; background: linear-gradient(100deg, var(--gs-a), var(--gs-a2)); background-size: 160% 100%; box-shadow: 0 10px 24px -12px var(--gs-a); white-space: nowrap; cursor: pointer; transition: transform .25s var(--gs-ease), box-shadow .25s, background-position .4s; }
.gs-btn:hover, .gs .gs-btn:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 30px -12px var(--gs-a); }
.gs-btn--sm, .gs .gs-btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 11px; }
.gs-btn--ghost, .gs .gs-btn--ghost { background: var(--gs-card); color: var(--gs-soft); border-color: var(--gs-line); box-shadow: none; }
.gs-btn--ghost:hover, .gs .gs-btn--ghost:hover { color: var(--gs-a); box-shadow: none; }
.gs-flash { animation: gs-flash .9s; }
@keyframes gs-flash { 30% { color: var(--gs-a); } }

/* --------------------------------------------------------------- Zeilen */
.gs-rows { display: flex; flex-direction: column; gap: 8px; }
.gs-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--gs-card); border: 1px solid var(--gs-line); transition: border-color .25s, transform .25s var(--gs-ease); }
.gs-row:hover { border-color: color-mix(in srgb, var(--gs-c) 55%, transparent); transform: translateX(3px); }
.gs-row__media { position: relative; width: 42px; height: 42px; border-radius: 11px; overflow: hidden; display: block; }
.gs-row__media img { width: 100%; height: 100%; object-fit: cover; }
.gs-row__media.gs-media--auto { display: flex; }
.gs-row__media.gs-media--auto b { font-size: 14px; }
.gs-row__media .gs-media__icon { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.gs-row__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gs-row__main b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gs-text); }
.gs-row__main small { font-size: 12px; color: var(--gs-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-row .gs-bar { height: 4px; }
.gs-row__n { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gs-mute); white-space: nowrap; }
.gs-row__n b { color: var(--gs-text); font-size: 15px; }
.gs-row.is-online .gs-row__n .gs-dot { background: var(--gs-ok); }
.gs-row.is-offline .gs-row__n .gs-dot { background: var(--gs-bad); }
.gs-box__more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--gs-a) !important; }

/* Gesamtstatus */
.gs-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.gs-sum > div { padding: 10px 12px; border-radius: 13px; background: var(--gs-card); border: 1px solid var(--gs-line); }
.gs-sum b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.gs-sum span { font-size: 12px; color: var(--gs-mute); }
.gs-dots { display: flex; flex-direction: column; gap: 4px; }
.gs-dotlink { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; font-size: 13px; }
.gs-dotlink span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-dotlink small { color: var(--gs-mute); }
.gs-dotlink small b { color: var(--gs-text); }
.gs-dotlink:hover { background: var(--gs-card2); }

/* --------------------------------------------------------- Server-Seite */
.gs-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--gs-mute) !important; }
.gs-back:hover { color: var(--gs-a) !important; }
.gs-head { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 0; border-radius: calc(var(--gs-r) + 4px); overflow: hidden; background: var(--gs-card); border: 1px solid var(--gs-line); box-shadow: var(--gs-shadow); margin-bottom: 16px; }
.gs-head__media { position: relative; min-height: 190px; display: block; overflow: hidden; background: var(--gs-card2); }
.gs-head__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gs-head__media.gs-media--auto { display: flex; }
.gs-head__media.gs-media--auto b { font-size: 58px; font-weight: 900; color: rgba(255, 255, 255, .92); }
.gs-head__media .gs-media__icon { position: relative; width: 96px; height: 96px; border-radius: 18px; }
.gs-head__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; justify-content: center; background: radial-gradient(100% 140% at 100% 0%, color-mix(in srgb, var(--gs-c) 18%, transparent), transparent 60%); }
.gs-head__body h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.gs-head__chips, .gs-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gs-head .gs-state { background: var(--gs-card2); color: var(--gs-text); border-color: var(--gs-line); backdrop-filter: none; }

.gs-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.gs-kpi { padding: 14px 16px; border-radius: 15px; background: var(--gs-card); border: 1px solid var(--gs-line); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gs-kpi > span { font-size: 12px; color: var(--gs-mute); font-weight: 600; }
.gs-kpi b { font-size: 22px; font-weight: 800; line-height: 1.15; }
.gs-kpi b small { font-size: 13px; color: var(--gs-mute); font-weight: 600; }
.gs-kpi__txt { font-size: 16px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-kpi .gs-bar { margin-top: 4px; height: 5px; }

.gs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.gs-col-main, .gs-col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gs-panel { padding: 18px 20px; border-radius: var(--gs-r); background: var(--gs-card); border: 1px solid var(--gs-line); box-shadow: var(--gs-shadow); min-width: 0; }
.gs-panel h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.gs-panel h2 .gs-i { color: var(--gs-a); width: 16px; height: 16px; }
.gs-panel h2 small { font-size: 12px; color: var(--gs-mute); font-weight: 700; }
.gs-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gs-panel__head h2 { margin: 0; }
.gs-panel__head .gs-seg button { padding: 5px 11px; }

/* Diagramm */
.gs-chart { position: relative; min-height: 120px; }
.gs-svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.gs-grid-l { stroke: var(--gs-line); stroke-width: 1; }
.gs-axis { fill: var(--gs-mute); font-size: 11px; font-family: inherit; }
.gs-axis--l { fill: color-mix(in srgb, var(--gs-wait) 80%, var(--gs-mute)); }
.gs-line { fill: none; stroke: var(--gs-a); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.gs-line--l { stroke: var(--gs-wait); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .85; }
.gs-off { fill: var(--gs-bad); opacity: .14; }
.gs-cross { stroke: var(--gs-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.gs-cdot { fill: var(--gs-a); stroke: var(--gs-solid); stroke-width: 2; }
.gs-tip { position: absolute; top: -6px; padding: 6px 10px; border-radius: 9px; background: var(--gs-solid); border: 1px solid var(--gs-line); color: var(--gs-text); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: var(--gs-shadow); }
.gs-beats { display: flex; gap: 3px; margin-top: 12px; height: 26px; align-items: stretch; overflow: hidden; }
.gs-beats i { flex: 1 1 0; min-width: 3px; max-width: 10px; border-radius: 99px; background: var(--gs-ok); opacity: .9; transition: transform .2s; }
.gs-beats i.is-down { background: var(--gs-bad); }
.gs-beats i:hover { transform: scaleY(1.15); opacity: 1; }
.gs-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--gs-mute); }
.gs-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.gs-legend .gs-muted { margin-left: auto; font-size: 12px; }
.gs-lg { width: 14px; height: 3px; border-radius: 2px; display: inline-block; background: var(--gs-a); }
.gs-lg--l { background: var(--gs-wait); }

/* Spieler, Details */
.gs-plist { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gs-plist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 14px; }
.gs-plist li:nth-child(odd) { background: var(--gs-card2); }
.gs-plist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-plist li small { color: var(--gs-mute); font-variant-numeric: tabular-nums; }
.gs-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.gs-dl dt { color: var(--gs-mute); font-weight: 500; }
.gs-dl dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }

/* Video und Beschreibung */
.gs-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000 center / cover no-repeat; }
.gs-video--lazy { position: relative; cursor: pointer; overflow: hidden; background-color: #0d0f16; }
.gs-video--lazy::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
.gs-video__play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; background: var(--gs-a); color: #fff; font-size: 24px; box-shadow: 0 14px 34px -10px var(--gs-a); transition: transform .3s var(--gs-ease); }
.gs-video--lazy:hover .gs-video__play { transform: scale(1.1); }
.gs-video__note { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 12px; }
.gs-desc__body { color: var(--gs-soft); overflow-wrap: anywhere; }
.gs-desc__body img, .gs-desc__body iframe { max-width: 100%; height: auto; border-radius: 10px; }
.gs-desc__body a { color: var(--gs-a); text-decoration: underline; }

/* Teilen */
.gs-share label { display: block; font-size: 12px; font-weight: 700; color: var(--gs-mute); margin: 10px 0 4px; }
.gs-banner-prev { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--gs-line); }
.gs-code { display: flex; gap: 6px; }
.gs-code input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--gs-line); background: var(--gs-card2); color: var(--gs-text); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.gs-code button { width: 38px; border-radius: 9px; border: 1px solid var(--gs-line); background: var(--gs-card2); color: var(--gs-a); cursor: pointer; }

/* Platzhalter und Einbettung */
.gs-ph { margin: 14px 0; }
.gs-ph__load { display: flex; justify-content: center; padding: 20px; }
.gs-embed .gs-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gs-embed .gs-grid--one { grid-template-columns: 1fr; }
.gs-embed__by { margin: 8px 2px 0; font-size: 11px; text-align: right; opacity: .7; }

/* Hinweis */
.gs-toast { position: fixed; left: 50%; bottom: 24px; z-index: 99999; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 12px; background: #11141c; color: #fff; font: 600 14px/1.3 system-ui, sans-serif; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Einblenden */
.gs--anim .gs-card, .gs--anim .gs-row, .gs--anim .gs-kpi, .gs--anim .gs-panel { opacity: 0; transform: translateY(14px); }
.gs--anim.is-in .gs-card, .gs--anim.is-in .gs-row, .gs--anim.is-in .gs-kpi, .gs--anim.is-in .gs-panel { opacity: 1; transform: none; transition: opacity .5s var(--gs-ease) var(--gs-d, 0ms), transform .6s var(--gs-ease) var(--gs-d, 0ms), border-color .3s, box-shadow .35s; }
.gs--anim.is-in .gs-card:hover { transform: translateY(-4px); transition-delay: 0ms; }
.gs--anim.is-in .gs-row:hover { transform: translateX(3px); transition-delay: 0ms; }

/* ------------------------------------------------------ Schmale Spalten */
@container gs (max-width: 900px) {
    .gs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gs-cols { grid-template-columns: 1fr; }
}
@container gs (max-width: 620px) {
    .gs-hero { padding: 20px; }
    .gs-head { grid-template-columns: 1fr; }
    .gs-head__media { min-height: 150px; }
    .gs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gs-search { max-width: none; }
    .gs-stat { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gs *, .gs *::before { animation: none !important; transition: none !important; }
}

/* Schmale Seitenleisten (Boxen) */
@container gs (max-width: 250px) {
    .gs-row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; padding: 8px; }
    .gs-row__media { width: 36px; height: 36px; grid-row: span 2; }
    .gs-row__n { grid-column: 2; font-size: 12px; gap: 2px; }
    .gs-row__n .gs-dot { margin-right: 5px; }
    .gs-row__n b { font-size: 13px; }
    .gs-row .gs-bar { display: none; }
    .gs-sum { grid-template-columns: 1fr; }
    .gs-sum > div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    .gs-sum b { display: inline; font-size: 20px; }
}

/* Server-Werbung */
.gs-ad { position: relative; z-index: 2; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--gs-a) 40%, var(--gs-line)); background: linear-gradient(110deg, color-mix(in srgb, var(--gs-a) 12%, transparent), transparent 70%), var(--gs-card); padding: 12px 16px; color: var(--gs-soft); font-size: 14px; overflow-wrap: anywhere; }
.gs-ad--page { margin-bottom: 16px; padding: 16px 20px; }
.gs-ad--card { margin: 4px 0 0; padding: 9px 12px; font-size: 13px; border-radius: 11px; }
.gs-ad__label { position: absolute; top: 6px; right: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gs-mute); opacity: .8; }
.gs-ad--card .gs-ad__label { top: 4px; right: 8px; font-size: 9px; }
.gs-ad__body > :first-child { margin-top: 0; }
.gs-ad__body > :last-child { margin-bottom: 0; }
.gs-ad__body p { margin: 0 0 6px; }
.gs-ad__body img { max-width: 100%; height: auto; border-radius: 8px; vertical-align: middle; }
.gs-ad__body a { color: var(--gs-a) !important; font-weight: 700; text-decoration: none; }
.gs-ad__body a:hover { text-decoration: underline; }
.gs-ad__body strong, .gs-ad__body b { color: var(--gs-text); }
.gs-ad--card .gs-ad__body { padding-right: 34px; }
.gs-ad--page .gs-ad__body { padding-right: 50px; }
