/* ================================================================
   Livestream-Hilfe – Custom UI Overrides
   Bootstrap bleibt die Basis – wir überschreiben nur gezielt
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --c-accent: #1a1917;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.ls-navbar {
    background: #1a1917;
    padding: 0 16px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-radius: 0 !important;
}
.ls-navbar .navbar-brand {
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    letter-spacing: 0.08em;
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
}
.ls-navbar .navbar-brand span { color: #666; margin: 0 6px; }
.ls-navbar .navbar-actions { display: flex; align-items: center; gap: 8px; }
.ls-navbar .nav-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: #888 !important;
    background: none !important;
    border: 0.5px solid #444 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.4;
    transition: color .1s, border-color .1s;
}
.ls-navbar .nav-btn:hover { color: #fff !important; border-color: #888 !important; }
.ls-navbar .nav-user { font-family: var(--font-mono); font-size: 11px; color: #666; }

/* ── Form labels → monospace ────────────────────────────────────── */
.field-label, .akte-title, .card-header.fw-semibold {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.field-hint { font-size: 11px; color: #9e9b96; margin-top: 2px; }

/* ── Anlagenakte sections ────────────────────────────────────────── */
.akte-section {
    border-radius: 6px !important;
    margin-bottom: 8px;
    border: 0.5px solid #d1cfc9 !important;
    box-shadow: none !important;
}
.akte-hd {
    padding: 10px 14px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #fafaf9;
}
.akte-hd:hover { background: #f5f5f4; }
.akte-title {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    flex: 1;
}
.akte-icon { font-size: 14px; }
.akte-score {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    border: 0.5px solid;
}
.score-ok   { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.score-mid  { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.score-low  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.chevron { font-size: 10px; color: #aaa; transition: transform .15s; }
.chevron.open { transform: rotate(180deg); }
.akte-body { padding: 14px; display: none; }
.akte-body.open { display: block; }
.dyn-card {
    border: 0.5px solid #e5e3de !important;
    border-radius: 4px !important;
    padding: 12px !important;
    margin-bottom: 8px;
    background: #fafaf9;
    position: relative;
    box-shadow: none !important;
}
.dyn-card-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b6860;
    margin-bottom: 10px;
}
.btn-rm {
    position: absolute; top: 10px; right: 10px;
    background: none; border: none;
    color: #ccc; cursor: pointer; font-size: 12px;
}
.btn-rm:hover { color: #b91c1c; }
.btn-add {
    border: 0.5px dashed #d1cfc9 !important;
    background: none !important;
    color: #6b6860 !important;
    border-radius: 4px !important;
    padding: 7px !important;
    width: 100%;
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
}
.btn-add:hover { border-color: #1a1917 !important; color: #1a1917 !important; }
.pb-wrap { background: #e5e3de; border-radius: 2px; height: 4px; }
.pb-fill { background: #1a1917; border-radius: 2px; height: 4px; }
.s-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin: 0 2px; }

/* ── Sticky save bar ─────────────────────────────────────────────── */
.sticky-save {
    position: sticky; bottom: 0;
    background: rgba(245,245,244,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e5e3de;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

/* ── Image upload ────────────────────────────────────────────────── */
.img-upload-zone {
    border: 0.5px dashed #d1cfc9;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s;
    background: #fafaf9;
    margin-bottom: 4px;
}
.img-upload-zone:hover { border-color: #1a1917; }
.img-upload-zone input[type=file] { display: none; }
.img-thumb {
    width: 80px; height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 0.5px solid #d1cfc9;
}

/* ── Login page ──────────────────────────────────────────────────── */
.login-card {
    border: 0.5px solid #d1cfc9 !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.08) !important;
}
.login-icon { font-size: 2rem; color: #1a1917; }

/* ── Admin tables → cleaner ─────────────────────────────────────── */
.akte-section .table th, .admin-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b6860;
    font-weight: 400;
}

/* ── WA float ────────────────────────────────────────────────────── */
#wa-float { position: fixed; bottom: 60px; right: 14px; z-index: 100; }
.wa-bubble {
    width: 40px; height: 40px;
    border-radius: 4px;
    background: #15803d; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; text-decoration: none;
    transition: background .1s;
}
.wa-bubble:hover { background: #166534; }

/* ── Escalation ──────────────────────────────────────────────────── */
#escalation-banner {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 9999;
    align-items: center; justify-content: center; padding: 16px;
}
#escalation-banner.show { display: flex; }
.escalation-card {
    background: #fff; border: 0.5px solid #d1cfc9;
    border-radius: 6px; max-width: 380px; width: 100%; overflow: hidden;
}
.escalation-head {
    background: #b91c1c; padding: 12px 16px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #fff; display: flex; align-items: center; gap: 8px;
}
.escalation-body { padding: 16px; font-size: 13px; }
.escalation-foot { padding: 12px 16px; border-top: 0.5px solid #e5e3de; display: flex; gap: 8px; }

/* ── Progress bar ────────────────────────────────────────────────── */
.progress-bar-wrap { background: #e5e3de; border-radius: 2px; height: 4px; }
.progress-bar-fill { background: #1a1917; border-radius: 2px; height: 4px; transition: width .4s; }
