﻿/* =========================================================
   MobilioPortal – Konsolidierte Styles (Dark UI + Login)
   ========================================================= */

/* ---------- Farbpalette ---------- */
/* Deine Palette + abgeleitete Tokens */
:root {
    /* Mobilio Palette */
    --c1: #222831; /* very dark slate */
    --c2: #393E46; /* dark grey-blue */
    --c3: #948979; /* taupe (Accent) */
    --c4: #DFD0B8; /* sand (Light surface) */
    /* Dark UI */
    --bg-dark: var(--c1);
    --panel: #1f2226;
    --panel-2: #262a2f;
    --card: #ffffff;
    --text-2: #e5e7eb;
    --muted-2: #98a2b3;
    --border-2: #30343a;
    --card-hover: #2b3138;
    /* Light (nur Topbar) */
    --text: #111827;
    --border: #e5e7eb;
    /* Aktion/Fokus */
    --accent: var(--c3); /* Hauptakzent in UI */
    --accent-strong: #3b82f6; /* dezent für Hovers/Focus */
    --danger: #ef4444;
}

/* ---------- Base ---------- */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-2);
    font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial;
}

a {
    color: var(--accent-strong);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.empty-layout {
    min-height: 100vh; /* volle Höhe */
    background: var(--bg-dark); /* dunkler Hintergrund */
}

/* =========================================================
   Topbar (hell) – MobilioPortal schwarz, Login/Logout rechts
   ========================================================= */
.topbar.light {
    background: #fff;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .topbar.light .brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--text);
    }

        .topbar.light .brand .logo {
            height: 28px;
            width: auto
        }

    .topbar.light a, .topbar.light .link-btn {
        color: var(--text);
        background: transparent;
        border: 0;
        cursor: pointer;
        font: inherit;
    }

        .topbar.light a:hover, .topbar.light .link-btn:hover {
            color: var(--accent-strong)
        }

/* =========================================================
   App-Layout: schmale Sidebar + Content
   ========================================================= */
.layout-body {
    display: grid;
    grid-template-columns: 80px 1fr;
    height: calc(100vh - 52px);
    background: var(--bg-dark);
    color: var(--text-2);
}
/* Sidebar (nur Icons/Logo) */
.sidebar {
    background: #1c1f23;
    border-right: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
}

.sidebar-logo img {
    width: 38px;
    height: auto;
    margin-bottom: 24px
}

.side-scroll {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.side-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2a2d32;
    border: 1px solid #34373d;
    opacity: .88;
}

    .side-item:hover {
        opacity: 1
    }

.side, .sidebar, .rail, .left, .bg, .overlay {
    z-index: 1;
}

.topbar {
    z-index: 99999 !important;
}

/* Content */
.body-content {
    padding: 20px
}

/* =========================================================
   Dashboard
   ========================================================= */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px 0;
}

.search input {
    width: 320px;
    max-width: 50vw;
    height: 40px;
    border-radius: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border-2);
    color: var(--card);
    padding: 10px 12px;
}

.ghost {
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--muted-2);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: default;
}

/* Cards */
.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr))
}

.card {
    text-decoration: none;
    color: inherit;
    background: var(--panel);
    border: 1px solid #2e3339;
    border-radius: 16px;
    min-height: 150px;
    display: block;
    transition: transform .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease;
}

    .card:hover {
        transform: translateY(-3px);
        background: var(--card-hover);
        border-color: var(--accent-strong);
        box-shadow: 0 8px 24px rgba(0,0,0,.25);
    }

    .card .card-body {
        padding: 16px;
        display: grid;
        gap: 8px
    }

.card-title {
    font-weight: 700;
    letter-spacing: .2px
}

.card-sub, .card-meta {
    color: var(--muted-2)
}

.card-sub {
    font-size: 14px
}

.card-meta {
    font-size: 12px
}

/* =========================================================
   LOGIN – Avast-Style (helle Card auf dunklem Verlauf)
   ========================================================= */
/* Alias: .auth-shell == .login-viewport  |  .auth-card == .login-card */
.login-viewport, .auth-shell {
    min-height: 100vh;
    background: radial-gradient(1100px 600px at 18% 8%, color-mix(in srgb, var(--c4) 92%, #fff 0%) 0%, rgba(223,208,184,0) 60%), radial-gradient(900px 520px at 80% 0%, color-mix(in srgb, var(--c3) 55%, transparent) 0%, rgba(0,0,0,0) 55%), radial-gradient(700px 420px at -10% 60%, color-mix(in srgb, var(--c2) 40%, transparent) 0%, rgba(0,0,0,0) 55%), var(--bg-dark);
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.login-card, .auth-card {
    width: min(560px,92vw);
    background: #fff;
    color: #111827;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 80px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.06);
    padding: 28px 32px 32px;
}

/* Kopf: Logo-Kreis + Titel */
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--c4); /* sand */
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    margin-bottom: 12px;
}

    .avatar img {
        width: 32px;
        height: auto;
        display: block;
        filter: drop-shadow(0 1px 0 rgba(0,0,0,.05))
    }

.login-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #0f172a
}

/* Sichtbarkeit & Breite der Eingaben in der Login-Karte erzwingen */
.login-card input,
.login-card .auth-input,
.login-card input[type="text"],
.login-card input[type="password"] {
    display: block;
    width: 100%;
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    height: 46px;
    padding: 10px 12px;
}

/* Buttons */
.btn.primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .btn.primary:hover {
        background: #2767d8;
    }

/* Abstände – falls Labels überlaufen */
.field {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
/* (Subtext entfällt – auf Wunsch bewusst nicht vorhanden) */

/* Felder + Aktionen */
.field {
    display: grid;
    gap: 6px;
    margin: 12px 0
}

    .field label {
        font-size: 12px;
        color: #6b7280
    }

    .field input, .auth-input, .input {
        height: 46px;
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        color: #111827;
        outline: none;
        transition: border-color .15s ease,box-shadow .15s ease,background .15s ease;
    }

        .field input:focus, .auth-input:focus, .input:focus {
            border-color: var(--accent); /* taupe */
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
            background: #fff;
        }

.actions, .row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px
}

.btn.primary, .btn-primary {
    background: var(--accent);
    color: #0f172a;
    border: none;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 35%, rgba(0,0,0,0)), 0 2px 6px rgba(0,0,0,.14);
    transition: transform .06s ease,filter .15s ease,background .15s ease;
}

    .btn.primary:hover, .btn-primary:hover {
        filter: brightness(1.05)
    }

    .btn.primary:active, .btn-primary:active {
        transform: translateY(1px)
    }

.muted, .auth-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none
}

    .muted:hover, .auth-link:hover {
        color: #475569;
        text-decoration: underline
    }

/* Validierung/Fehler */
.error, .form-error {
    color: var(--danger);
    font-size: .95rem;
    margin-top: 10px
}
/* ========= Topbar (hell, bleibt wie gewünscht) ========= */
.topbar.light {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

    .topbar.light .brand {
        font-weight: 700;
        font-size: 1.2rem;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 10px
    }

        .topbar.light .brand .logo {
            height: 28px
        }

    .topbar.light a, .topbar.light .link-btn {
        color: #111827;
        background: transparent;
        border: 0;
        cursor: pointer;
        font: inherit
    }

        .topbar.light a:hover, .topbar.light .link-btn:hover {
            color: #222831
        }

/* ========= Dashboard-Layout ========= */
.dash {
    background: linear-gradient(180deg,#2a2f36 0%, var(--c1) 35%);
    color: var(--text);
    min-height: calc(100vh - 52px);
    position: relative;
}

/* --- Linke, fixierte Icon-Leiste --- */
.side {
    position: fixed;
    left: 0;
    top: 52px; /* unterhalb der Topbar */
    width: 78px;
    height: calc(100vh - 52px);
    background: var(--c1);
    border-right: 1px solid var(--c2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

    .side .logo {
        width: 38px;
        height: auto;
        margin-bottom: 10px;
        filter: drop-shadow(0 2px 2px rgba(0,0,0,.2))
    }

    .side .dot {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #2a2f34;
        border: 1px solid var(--c2);
        opacity: .85
    }

        .side .dot:hover {
            opacity: 1
        }

/* --- Rechts vom Sidebar: Inhalt --- */
.dash-main {
    margin-left: 10px; /* Platz für Sidebar */
    padding: 20px;
}

/* --- Toolbar oben: Suche + Filter --- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.search input {
    width: 360px;
    max-width: 55vw;
    height: 42px;
    background: var(--c2);
    color: var(--card);
    border: 1px solid var(--c2);
    border-radius: 12px;
    padding: 10px 12px;
}

.pill {
    background: transparent;
    border: 1px solid var(--c2);
    color: var(--card);
    padding: 8px 10px;
    border-radius: 12px;
    cursor: default;
}

/* --- Grid & Karten --- */
.card-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
}

.card {
    text-decoration: none;
    color: inherit;
    background: var(--c1);
    border: 1px solid var(--c2);
    border-radius: 16px;
    min-height: 150px;
    display: block;
    box-shadow: none;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}


    .card.online:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 20px rgba(223, 208, 184, 0.2);
    }

    /* 🔴 Deaktivierte Karten */
    .card.offline {
        opacity: 0.4;
        cursor: not-allowed;
        filter: grayscale(60%);
        pointer-events: auto; /* Mausereignisse zulassen (für Tooltip), aber Klick ignoriert JS */
    }

        .card.offline:hover {
            opacity: 0.3;
            transform: none;
            box-shadow: none;
        }

        .card.offline .card-title,
        .card.offline .card-sub,
        .card.offline .card-meta {
            color: #948979; /* leicht entsättigtes Beige für deaktivierte Schrift */
        }

    .card:hover {
        transform: translateY(-3px);
        background: var(--c2);
        border-color: var(--brand);
        box-shadow: var(--shadow);
    }

    .card .card-body {
        padding: 16px;
        display: grid;
        gap: 8px
    }

.card-title {
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff
}

.card-sub {
    color: var(--c4);
    font-size: .95rem
}

.card-meta {
    color: var(--c3);
    font-size: .8rem
}

/* ========= Responsiv ========= */
@media (max-width: 900px) {
    .search input {
        width: 260px
    }

    .card-grid {
        grid-template-columns: repeat(2,minmax(160px,1fr))
    }
}

@media (max-width: 600px) {
    .dash-main {
        padding: 16px
    }

    .search input {
        width: 100%
    }

    .toolbar {
        flex-wrap: wrap;
        gap: 10px
    }

    .card-grid {
        grid-template-columns: 1fr
    }
}
/* Header: immer oben und klickbar */
.topbar.light {
    position: sticky; /* oder fixed; sticky reicht i.d.R. */
    top: 0;
    z-index: 9999; /* wichtiger als alles andere */
    pointer-events: auto;
}

/* Alles unter dem Header darf darunter liegen */
.layout-body, .site, .body-content, .content {
    position: relative;
    z-index: 1;
}

/* Falls du irgendwo full-screen Overlays hast, die evtl. offen bleiben: */
.overlay, .scrim, .glass {
    pointer-events: none; /* nur wenn solche Klassen existieren */
}

.topbar .nav .link-btn {
    pointer-events: auto; /* falls irgendwo global pointer-events gesetzt wurde */
}


/* ======== Shift Planner ======== */
.sp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 16px 14px;
}

.sp-left, .sp-right {
    display: flex;
    align-items: center;
    gap: 10px
}

.sp-select {
    background: #393E46;
    color: #DFD0B8;
    border: 1px solid #2e3339;
    border-radius: 10px;
    padding: 8px 10px
}

.sp-weeklabel {
    color: #DFD0B8;
    opacity: .9;
    margin: 0 6px
}

.sp-btn {
    border: 1px solid #2e3339;
    background: #2a2f35;
    color: #DFD0B8;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer
}

    .sp-btn.ghost {
        background: transparent
    }

    .sp-btn.primary {
        background: #28a3ff;
        border-color: #28a3ff;
        color: #0b1a24
    }

    .sp-btn.small {
        padding: 6px 10px;
        font-size: .9rem
    }

    .sp-btn.xsmall {
        padding: 4px 8px;
        font-size: .8rem;
        border-radius: 8px
    }

.sp-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    padding: 0 16px 16px
}

.sp-staff {
    min-height: calc(100vh - 140px)
}

.sp-box {
    background: #222831;
    border: 1px solid #2e3339;
    border-radius: 14px;
    padding: 12px
}

.sp-box-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #DFD0B8
}

.sp-input {
    width: 100%;
    background: #2a2f35;
    border: 1px solid #2e3339;
    color: #DFD0B8;
    border-radius: 10px;
    padding: 8px 10px;
    margin: 6px 0 8px
}

.sp-staff-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-height: calc(100vh - 270px);
    overflow: auto
}

.sp-staff-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e2329;
    border: 1px solid #2e3339;
    border-radius: 12px;
    padding: 8px 10px
}

    .sp-staff-item .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #3b7c2b
    }

    .sp-staff-item .info .name {
        color: #DFD0B8;
        font-weight: 700
    }

    .sp-staff-item .info .role {
        color: #948979;
        font-size: .85rem
    }

    .sp-staff-item .pill {
        margin-left: auto;
        background: transparent;
        border: 1px solid #2e3339;
        color: #948979;
        border-radius: 999px;
        padding: 4px 8px;
        cursor: pointer
    }

.sp-main {
    min-height: calc(100vh - 140px)
}

.sp-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px
}

.sp-grid-head {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 8px
}

.dayhead {
    background: #222831;
    border: 1px solid #2e3339;
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between
}

    .dayhead .dow {
        color: #DFD0B8;
        font-weight: 700
    }

    .dayhead .date {
        color: #948979
    }

/* Body: Zeiten + 7 Spalten */
.sp-grid-body {
    display: grid;
    grid-template-columns: 70px repeat(7,1fr);
    gap: 8px;
    min-height: 720px
}

.sp-times {
    display: grid;
    grid-template-rows: repeat( (20 - 6 + 1), 1fr )
}

    .sp-times .time {
        color: #948979;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding-top: 2px;
        font-size: .9rem
    }

.sp-daycol {
    position: relative;
    background: #1d2227;
    border: 1px solid #2e3339;
    border-radius: 12px;
    overflow: hidden
}

    .sp-daycol::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 0 100%);
    }

.sp-daycol {
    --rows: @(20-6);
}

.sp-daycol {
    background-image: repeating-linear-gradient(to bottom, transparent 0 59px, rgba(255,255,255,.03) 60px);
}

/* Shift block */
.shift {
    position: absolute;
    left: 6px;
    right: 6px;
    background: var(--c,#28a3ff);
    color: #0b1a24;
    border-radius: 10px;
    padding: 6px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25)
}

    .shift .s-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700
    }

    .shift .s-del {
        border: none;
        background: transparent;
        color: #0b1a24;
        font-size: 18px;
        line-height: 1;
        cursor: pointer
    }

    .shift .s-time {
        font-size: .9rem;
        margin-top: 2px
    }

    .shift .s-note {
        font-size: .85rem;
        opacity: .85
    }

/* ===== Modal-Overlay (Hintergrund) ===== */
.sp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9980; /* war vermutlich kleiner */
}


/* ===== Modal-Fenster ===== */
.sp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1f242b;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    z-index: 9990; /* ganz oben */
    max-height: 90vh;
    overflow-y: auto;
}

    /* optional: falls du sp-wide benutzt */
    .sp-modal.sp-wide {
        width: min(1100px, 95vw);
    }

.sp-modal-head, .sp-modal-foot {
    padding: 12px 14px;
    border-bottom: 1px solid #2e3339;
    color: #DFD0B8;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.sp-modal-foot {
    border-top: 1px solid #2e3339;
    border-bottom: none
}

.sp-modal-body {
    padding: 12px 14px;
    display: grid;
    gap: 10px;
    color: #DFD0B8
}

.sp-modal .row {
    display: grid;
    gap: 6px
}

    .sp-modal .row.two {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

/* breite Variante fürs Organisations-Fenster */
.sp-modal.sp-modal-xl {
    max-width: 1100px;
}

/* Tabs */
.sp-modal-tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}

.sp-tab {
    padding: 8px 12px;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    background: #2a2d32;
    color: #e5e7eb;
}

    .sp-tab.active {
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59,130,246,.25) inset;
    }

/* Box + List */
.sp-box {
    background: var(--panel);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    padding: 12px;
}

.sp-box-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.sp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    max-height: 420px;
    overflow: auto;
}

.sp-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    background: var(--panel-2);
}

    .sp-list-item.active {
        border-color: #3b82f6;
    }

    .sp-list-item .title {
        font-weight: 600;
    }

    .sp-list-item .sub {
        font-size: 12px;
        color: var(--muted-2);
    }

    .sp-list-item .grow {
        flex: 1;
    }

.mt-1 {
    margin-top: .5rem
}

.mt-2 {
    margin-top: .75rem
}

.sp-btn.ghost {
    background-color: transparent;
    border: 1px solid #3b3b3b;
    color: #e5e7eb;
}

    .sp-btn.ghost:hover {
        border-color: #3b82f6;
        color: #3b82f6;
    }

.ctx-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    min-width: 220px;
}

.ctx-line {
    line-height: 1.1;
}

    .ctx-line.strong {
        font-weight: 700;
        color: #fff;
        font-size: 13px;
    }

    .ctx-line.dim {
        color: #cfd8e3;
        font-size: 12px;
        opacity: .95;
    }

.layout {
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
}

    .brand:hover {
        background: rgba(255,255,255,0.06);
    }

.brand-logo {
    width: 18px;
    height: 18px;
}

.brand-text {
    font-weight: 700;
    color: #fff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-link {
    color: #cfd8e3;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

    .logout-link:hover {
        background: rgba(255,255,255,0.08);
    }

.content {
    padding: 0 12px 18px 12px;
}

.user-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    min-width: 260px;
    max-width: 520px;
}

.ub-line1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    opacity: .9;
}

.ub-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-weight: 600;
}

.ub-value {
    font-weight: 600;
}

.ub-sep {
    opacity: .6;
}

.ub-line2 {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 760px) {
    .user-badge {
        min-width: 0;
        max-width: 100%;
    }

    .ub-line1 {
        display: none;
    }
    /* auf Handy nur User anzeigen */
}