/* Funktionen-Seite: Vorschau-Illustration oben in jeder Funktionskarte (features-visuals.js) */
.fxv {
    position: relative;
    height: 138px;
    margin: -22px -22px 18px;
    padding: 16px 18px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--fx-c, #5865f2) 22%, transparent), transparent 65%),
        rgba(30, 31, 40, 0.55);
    font-family: 'Inter', 'gg sans', system-ui, sans-serif;
    font-size: 12px;
    color: #dbdee1;
    pointer-events: none;
    user-select: none;
}
/* weiches Auslaufen nach unten */
.fxv::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 34px;
    background: linear-gradient(to bottom, transparent, rgba(22, 24, 38, 0.9));
}
.fx-card:hover .fxv > * { transform: translateY(-3px); }
.fxv > * { transition: transform 0.35s ease; }

.fxv-bar {
    display: block;
    height: 7px;
    margin: 5px 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
}
.fxv-ava {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e1f22;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}

/* Discord-Nachricht + Embed */
.fxv-msg { display: flex; gap: 10px; }
.fxv-msg__body { min-width: 0; flex: 1; }
.fxv-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.fxv-meta b { color: #fff; font-weight: 600; font-size: 12px; }
.fxv-tag { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 8px; font-weight: 700; line-height: 14px; }
.fxv-text { margin-bottom: 5px; }
.fxv-mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
.fxv-embed {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    padding: 8px 10px 8px 12px;
    border-radius: 6px;
    border-left: 4px solid var(--fxv-c);
    background: #2b2d31;
}
.fxv-embed > * { grid-column: 1; }
.fxv-embed__title { color: #fff; font-weight: 700; font-size: 12px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxv-fields { display: flex; gap: 6px; margin-top: 4px; }
.fxv-field {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 600;
    font-size: 11px;
}
.fxv-field b { font-weight: 400; }
.fxv-thumb {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: relative;
    width: 86px;
    height: 56px;
    border-radius: 6px;
    align-self: start;
}
.fxv-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.fxv-viewers {
    position: absolute;
    right: 4px;
    bottom: 3px;
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 9px;
}
.fxv-btns { display: flex; gap: 6px; margin-top: 6px; }
.fxv-btn {
    padding: 4px 10px;
    border-radius: 4px;
    background: #4e5058;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
}
.fxv-btn--primary { background: #5865f2; }
.fxv-btn--green { background: #248046; }
.fxv-code { display: flex; align-items: center; gap: 8px; }
.fxv-code span { color: #58a6ff; font-family: 'Space Mono', ui-monospace, monospace; font-size: 10px; }
.fxv-code .fxv-bar { flex: none; margin: 3px 0; }

/* Bilder */
.fxv-img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.fxv-card { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.fxv-card__host { position: absolute; top: 0; left: 0; width: 800px; height: 400px; transform-origin: 0 0; }

/* Browserfenster mit Tabelle */
.fxv-window { border-radius: 10px; overflow: hidden; background: #1e1f28; border: 1px solid rgba(255, 255, 255, 0.08); }
.fxv-window__bar { display: flex; gap: 5px; padding: 7px 9px; background: rgba(255, 255, 255, 0.04); }
.fxv-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3d4d; }
.fxv-row { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.fxv-row .fxv-ava { width: 20px; height: 20px; }
.fxv-row .fxv-bar { flex: none; margin: 0; }
.fxv-pill {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: var(--fxv-c);
    background: color-mix(in srgb, var(--fxv-c) 16%, transparent);
}

/* Server-Karte (Showcase) */
.fxv-server { position: relative; border-radius: 12px; overflow: hidden; background: #22232d; border: 1px solid rgba(255, 255, 255, 0.08); }
.fxv-server__banner { height: 38px; background: linear-gradient(120deg, #5865f2, #eb459e 60%, #fee75c); }
.fxv-server > .fxv-ava { position: absolute; left: 12px; top: 22px; width: 36px; height: 36px; border: 3px solid #22232d; }
.fxv-server__body { padding: 6px 12px 10px 60px; }
.fxv-server > .fxv-btn { position: absolute; right: 10px; top: 46px; }
.fxv-tags { display: flex; gap: 5px; margin-top: 4px; }
.fxv-tags span { padding: 1px 7px; border-radius: 999px; background: rgba(88, 101, 242, 0.2); color: #c9cdfb; font-size: 10px; }

/* Votes */
.fxv-vote { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #22232d; border: 1px solid rgba(255, 255, 255, 0.08); }
.fxv-vote__up { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #57f287, #248046); color: #fff; font-size: 16px; }
.fxv-vote div { flex: 1; }
.fxv-vote b { color: #fff; font-size: 20px; font-weight: 800; }
.fxv-streak { padding: 3px 9px; border-radius: 999px; background: rgba(245, 158, 11, 0.18); color: #fbbf24; font-weight: 700; }

/* Kanalbaum */
.fxv-tree { display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; background: #2b2d31; }
.fxv-cat { color: #949ba4; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; margin-top: 2px; }
.fxv-ch { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 4px; color: #b5bac1; }
.fxv-ch > span { color: #80848e; width: 14px; text-align: center; }
.fxv-ch b { color: #fff; }
.fxv-ch .fxv-bar { flex: none; margin: 0; }

/* Slash-Befehl */
.fxv-slash { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: #383a40; }
.fxv-slash__cmd { color: #c9cdfb; font-weight: 700; }
.fxv-slash .fxv-bar { flex: none; margin: 0; }

/* Chat */
.fxv-chat { display: flex; flex-direction: column; gap: 8px; }
.fxv-bubble { width: 72%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, 0.08); }
.fxv-bubble--me { align-self: flex-end; width: 52%; border-radius: 12px 12px 4px 12px; background: linear-gradient(135deg, #5865f2, #6f78ff); }
.fxv-bubble--me .fxv-bar { background: rgba(255, 255, 255, 0.45); }

/* Sprachwelle */
.fxv-voice { display: flex; align-items: center; gap: 12px; height: 92px; }
.fxv-voice__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #00b0f4, #5865f2); font-size: 18px; box-shadow: 0 0 0 6px rgba(0, 176, 244, 0.15); }
.fxv-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 64px; }
.fxv-wave i { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(to top, #00b0f4, #8b93ff); animation: fxv-wave 1.4s ease-in-out var(--d) infinite alternate; transform-origin: center; }
@keyframes fxv-wave { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

/* Galerie */
.fxv-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fxv-gallery span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* Rollen */
.fxv-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.fxv-role { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid color-mix(in srgb, var(--fxv-c) 45%, transparent); color: #fff; font-weight: 600; font-size: 11px; }
.fxv-role i { width: 9px; height: 9px; border-radius: 50%; background: var(--fxv-c); }

/* Auto-Rolle */
.fxv-auto { display: flex; align-items: center; justify-content: center; gap: 14px; height: 92px; }
.fxv-auto .fxv-ava { width: 46px; height: 46px; font-size: 18px; }
.fxv-arrow { color: #8b93ff; font-size: 20px; font-weight: 800; }

/* Terminal */
.fxv-term { padding: 10px 12px; border-radius: 10px; background: #0d0f1a; border: 1px solid rgba(255, 255, 255, 0.08); font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; line-height: 1.7; color: #c9d1d9; white-space: nowrap; overflow: hidden; }
.fxv-term .k { color: #ff7ab2; font-weight: 700; }
.fxv-term .c { color: #9ece6a; }
.fxv-term .ok { color: #57f287; }

@media (prefers-reduced-motion: reduce) {
    .fxv-wave i { animation: none; }
    .fxv > * { transition: none; }
}
