/* ══════════════════════════════════════════════════════════════════
   Quove Creativ — Blog (öffentlich) + Admin — im Marken-Stil
   ══════════════════════════════════════════════════════════════════ */

/* ── Kategorie-Badge ── */
.qc-blog-cat {
    display: inline-block;
    font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: #675c8e; background: rgba(103,92,142,0.10);
    padding: 4px 11px; border-radius: 999px;
}
.qc-blog-cat--float {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(42,52,61,0.12);
}

/* ── „Zuletzt aktualisiert" — dezenter Transparenz-Hinweis ── */
.qc-blog-updated {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
    color: #476A6F; background: rgba(71,106,111,0.09);
    padding: 4px 11px; border-radius: 999px;
}
.qc-blog-updated svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.85; }
.qc-blog-updated time { font-weight: 700; }

/* ── KI-Kennzeichnung (Transparenzpflicht DE / EU AI Act) ──
   Bewusst dezent: kleines, halbtransparentes Pill unten rechts,
   fügt sich in die Bildwelt ein, bleibt aber klar erkennbar. */
.qc-ai-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Inter', sans-serif; font-size: 0.58rem; font-weight: 600;
    letter-spacing: 0.05em; line-height: 1; white-space: nowrap;
    color: #2A343D; background: rgba(255,255,255,0.80);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 5px 9px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 2px 8px rgba(42,52,61,0.14);
    user-select: none;
}
.qc-ai-badge-mark { color: #ff893f; font-size: 0.7em; }
.qc-ai-badge--float {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    pointer-events: none;
}

/* ── Feature-Beitrag ── */
.qc-blog-feature-img {
    position: relative;
    min-height: 260px; background-size: cover; background-position: center;
    background-color: #2A343D;
    background-image: linear-gradient(135deg, #2A343D, #675c8e);
}

/* ── Karten-Grid ── */
.qc-blog-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #eef1f4; border-radius: 1.5rem;
    overflow: hidden; box-shadow: 0 1px 2px rgba(42,52,61,0.04);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.qc-blog-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(42,52,61,0.12); }
.qc-blog-card-img {
    position: relative; aspect-ratio: 16 / 10;
    background-size: cover; background-position: center;
    background-color: #eef1f4;
    background-image: linear-gradient(135deg, #cad6d1, #b5c4bd);
}
.qc-blog-card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

/* ── Tags ── */
.qc-blog-tag {
    font-size: 0.72rem; font-weight: 600; color: #64748b;
    background: #f1f5f9; padding: 4px 11px; border-radius: 999px;
}

/* ── Artikel-Typografie (Beitragsinhalt) ── */
.qc-blog-content {
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    font-size: 1.075rem; line-height: 1.85; color: #334155;
}
.qc-blog-content > * + * { margin-top: 1.35rem; }
.qc-blog-content h2 {
    font-family: 'Roboto', 'Roboto Fallback', sans-serif; font-weight: 800;
    font-size: 1.7rem; line-height: 1.25; color: #1a1f24; letter-spacing: -0.01em;
    margin-top: 2.6rem; margin-bottom: 0.2rem;
}
.qc-blog-content h3 {
    font-family: 'Roboto', 'Roboto Fallback', sans-serif; font-weight: 700;
    font-size: 1.3rem; line-height: 1.3; color: #1a1f24;
    margin-top: 2rem; margin-bottom: 0.1rem;
}
.qc-blog-content p { margin-top: 1.25rem; }
.qc-blog-content a { color: #675c8e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(103,92,142,0.35); }
.qc-blog-content a:hover { text-decoration-color: #675c8e; }
.qc-blog-content strong { color: #1a1f24; font-weight: 700; }
.qc-blog-content ul, .qc-blog-content ol { margin-top: 1.25rem; padding-left: 1.4rem; }
.qc-blog-content li { margin-top: 0.5rem; }
.qc-blog-content ul li { list-style: none; position: relative; padding-left: 1.4rem; }
.qc-blog-content ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 2px; background: #ff893f; }
.qc-blog-content ol { list-style: decimal; }
.qc-blog-content img { width: 100%; height: auto; border-radius: 1.25rem; margin-top: 1.8rem; box-shadow: 0 8px 28px rgba(42,52,61,0.10); }
.qc-blog-content blockquote {
    border-left: 3px solid #ff893f; padding: 0.4rem 0 0.4rem 1.4rem; margin-top: 1.8rem;
    font-family: 'Playfair Display', 'Playfair Fallback', serif; font-style: italic;
    font-size: 1.25rem; color: #1a1f24; line-height: 1.5;
}
.qc-blog-content code { background: #f1f5f9; padding: 2px 7px; border-radius: 6px; font-size: 0.9em; color: #475569; }
.qc-blog-content pre { background: #1a1f24; color: #e2e8f0; padding: 1.1rem 1.3rem; border-radius: 1rem; overflow-x: auto; font-size: 0.9rem; margin-top: 1.6rem; }
.qc-blog-content pre code { background: none; padding: 0; color: inherit; }
.qc-blog-content h2 + p, .qc-blog-content h3 + p { margin-top: 0.6rem; }

/* ══════════════════════════════════════════════════════════════════
   Admin
   ══════════════════════════════════════════════════════════════════ */
body.qc-admin { font-family: 'Inter', 'Inter Fallback', sans-serif; margin: 0; }
.qc-admin-bar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid #eef1f4; padding: 11px 22px;
    box-shadow: 0 1px 3px rgba(42,52,61,0.05);
}
.qc-admin-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.qc-admin-logo { height: 30px; width: auto; object-fit: contain; }
.qc-admin-brand-wm { display: flex; flex-direction: column; line-height: 1; gap: 3px; border-left: 1.5px solid #e2e8f0; padding-left: 11px; }
.qc-admin-brand-name { font-family: 'Roboto','Roboto Fallback',sans-serif; font-weight: 900; font-size: 15px; color: #2A343D; letter-spacing: 0.01em; }
.qc-admin-brand-sub { font-size: 7.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: #675c8e; }
.qc-admin-bar-links { display: flex; gap: 6px; align-items: center; }
.qc-admin-bar-links a { color: #64748b; text-decoration: none; font-size: 0.82rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.qc-admin-bar-links a:hover { color: #1a1f24; background: #f1f5f9; }
.qc-admin-newbtn { background: #2A343D !important; color: #fff !important; font-weight: 700 !important; }
.qc-admin-newbtn:hover { background: #3d4f5c !important; color: #fff !important; }
.qc-admin-main { min-height: 80vh; padding: 30px 20px 60px; }
.qc-admin-wrap { max-width: 1100px; margin: 0 auto; }

/* Login */
.qc-admin-login { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.qc-admin-login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid #eef1f4; border-radius: 1.5rem; padding: 2.2rem; box-shadow: 0 24px 60px rgba(42,52,61,0.14); }

/* Formularelemente */
.qc-admin-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 14px; }
.qc-admin-input {
    display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 0.7rem;
    padding: 10px 13px; font-family: inherit; font-size: 0.9rem; color: #1a1f24; outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.qc-admin-input:focus { border-color: #675c8e; background: #fff; }
.qc-admin-code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.6; }

.qc-admin-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: none; cursor: pointer; border-radius: 999px;
    font-family: inherit; font-size: 0.85rem; font-weight: 700; padding: 11px 20px;
    text-decoration: none; transition: background 0.18s, transform 0.18s;
}
.qc-admin-btn--primary { background: #2A343D; color: #fff; }
.qc-admin-btn--primary:hover { background: #3d4f5c; transform: translateY(-1px); }

.qc-admin-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 0.7rem; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 14px; }
.qc-admin-note  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 0.7rem; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 18px; }

.qc-admin-card { background: #fff; border: 1px solid #eef1f4; border-radius: 1.1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(42,52,61,0.04); margin-bottom: 18px; }

/* Tabelle */
.qc-admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.qc-admin-table th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; font-weight: 700; padding: 14px 16px; border-bottom: 1px solid #eef1f4; }
.qc-admin-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.qc-admin-table tr:last-child td { border-bottom: none; }
.qc-admin-status { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; }
.qc-admin-status--pub   { background: rgba(40,200,64,0.12); color: #15803d; }
.qc-admin-status--draft { background: #f1f5f9; color: #64748b; }
.qc-admin-link { font-size: 0.8rem; font-weight: 600; color: #675c8e; text-decoration: none; margin-left: 12px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.qc-admin-link:hover { text-decoration: underline; }
.qc-admin-link--danger { color: #dc2626; }

/* Editor-Layout */
.qc-admin-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .qc-admin-grid { grid-template-columns: 1fr 320px; align-items: start; } }
.qc-admin-col-main .qc-admin-label { margin-bottom: 18px; }

/* ══ Editor: fixierte Action-Bar (Sub-Menü direkt unter dem Header) ══
   Klebt exakt unter der globalen Admin-Bar (Höhe via JS in --qc-bar-h). */
.qc-editorbar {
    position: sticky; top: var(--qc-bar-h, 52px); z-index: 15;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
    border: 1px solid #eef1f4; border-radius: 1rem;
    padding: 10px 14px; margin-bottom: 22px;
    box-shadow: 0 8px 20px -14px rgba(42,52,61,0.35);
}
.qc-editorbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qc-editorbar-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
    background: #f1f5f9; color: #475569; text-decoration: none; font-size: 1.15rem; line-height: 1;
    transition: background .15s ease, color .15s ease;
}
.qc-editorbar-back:hover { background: #e2e8f0; color: #1a1f24; }
.qc-editorbar-titlewrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qc-editorbar-title { font-family: 'Roboto','Roboto Fallback',sans-serif; font-weight: 700; font-size: 1rem; color: #1a1f24; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-editorbar-hint { font-size: 0.72rem; color: #94a3b8; line-height: 1.2; transition: color .15s ease; }
.qc-editorbar-hint.is-dirty { color: #d97706; font-weight: 600; }
.qc-editorbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qc-editorbar-status { width: auto; min-width: 155px; margin-top: 0; padding: 9px 12px; }
.qc-editorbar-save.is-dirty { box-shadow: 0 0 0 3px rgba(217,119,6,0.28); }

/* ══ Responsive-Feinschliff Admin ══ */
@media (max-width: 640px) {
    .qc-admin-main { padding: 18px 12px 48px; }
    .qc-admin-bar  { padding: 9px 14px; }
    .qc-editorbar  { padding: 9px 11px; gap: 9px; border-radius: 0.85rem; }
    .qc-editorbar-actions { width: 100%; }
    .qc-editorbar-status  { flex: 1 1 120px; min-width: 0; }
    .qc-editorbar-save    { flex: 1 1 120px; }
    .qc-editorbar-preview { flex: 1 1 100%; order: 3; }
    /* Dashboard-Tabelle: Kategorie & Datum ausblenden, Aktionen umbrechen */
    .qc-admin-table th:nth-child(2), .qc-admin-table td:nth-child(2),
    .qc-admin-table th:nth-child(4), .qc-admin-table td:nth-child(4) { display: none; }
    .qc-admin-table th, .qc-admin-table td { padding: 12px 12px; }
    .qc-admin-table td:last-child { white-space: normal; }
    .qc-admin-link { margin-left: 0; margin-right: 12px; display: inline-block; margin-top: 2px; }
}

/* Admin: Options-Toggles (Hervorheben / noindex) */
.qc-admin-check {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    padding: 11px 12px; border: 1.5px solid #e2e8f0; border-radius: 0.7rem;
    margin-bottom: 12px; background: #f8fafc; transition: border-color .15s ease, background .15s ease;
}
.qc-admin-check:hover { border-color: #cbd5e1; background: #fff; }
.qc-admin-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: #675c8e; flex-shrink: 0; }
.qc-admin-check span { display: flex; flex-direction: column; gap: 2px; }
.qc-admin-check strong { font-size: 0.82rem; font-weight: 600; color: #1a1f24; }
.qc-admin-check small { font-size: 0.72rem; color: #94a3b8; line-height: 1.3; }

/* Admin: Ghost-Button (z.B. Bild hochladen) */
.qc-admin-btn--ghost { background: #f1f5f9; color: #475569; border: 1.5px solid #e2e8f0; }
.qc-admin-btn--ghost:hover { background: #e9eef3; color: #1a1f24; }

/* Blog: Entwurfs-Vorschau-Banner */
.qc-draft-banner {
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
    border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════════════
   Admin: Live-Chat-Panel
   ══════════════════════════════════════════════════════════════════ */
.qc-admin-livelink { display: inline-flex !important; align-items: center; gap: 7px; background: rgba(103,92,142,0.10) !important; color: #675c8e !important; font-weight: 700 !important; }
.qc-admin-livelink:hover { background: rgba(103,92,142,0.18) !important; color: #574d78 !important; }
.qc-admin-livelink svg { width: 16px; height: 16px; }
.qc-admin-user { display: inline-flex; align-items: center; gap: 7px; color: #1a1f24; font-size: 0.82rem; font-weight: 700; padding: 8px 13px; }
.qc-admin-user svg { width: 16px; height: 16px; color: #64748b; }

/* ══ Admin-Übersicht: Widget-Karten (Hub) ══ */
.qc-hub-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px)  { .qc-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .qc-hub-grid { grid-template-columns: repeat(3, 1fr); } }
.qc-hub-card {
    background: #fff; border: 1px solid #eef1f4; border-radius: 1.1rem; padding: 1.35rem 1.4rem;
    box-shadow: 0 1px 2px rgba(42,52,61,0.04); display: flex; flex-direction: column; gap: 1.1rem;
    transition: box-shadow .18s ease, transform .18s ease;
}
.qc-hub-card:hover { box-shadow: 0 12px 28px -16px rgba(42,52,61,0.28); transform: translateY(-2px); }
.qc-hub-top { display: flex; align-items: center; gap: 14px; }
.qc-hub-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 0.9rem; flex-shrink: 0; }
.qc-hub-head { min-width: 0; }
.qc-hub-title { font-family: 'Roboto','Roboto Fallback',sans-serif; font-weight: 700; font-size: 1.15rem; color: #1a1f24; line-height: 1.2; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.qc-hub-sub { font-size: 0.82rem; color: #64748b; margin-top: 3px; }
.qc-hub-badge {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: #b45309; background: rgba(255,137,63,0.16); padding: 3px 9px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
}
.qc-hub-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff893f; animation: qcLcPulse 2s ease-in-out infinite; }
.qc-hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
@media (max-width: 640px) { .qc-hub-actions .qc-admin-btn { flex: 1 1 auto; } }

/* ══ Admin-Übersicht: Termine (callback_requests) ══ */
.qc-appt-list { display: flex; flex-direction: column; gap: 10px; }
.qc-appt {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #eef1f4; border-radius: 1rem; padding: 13px 16px;
    box-shadow: 0 1px 2px rgba(42,52,61,0.04);
    transition: box-shadow .18s ease, border-color .18s ease;
}
.qc-appt:hover { box-shadow: 0 12px 26px -18px rgba(42,52,61,0.30); }
.qc-appt--new { border-color: rgba(255,137,63,0.45); box-shadow: 0 0 0 1px rgba(255,137,63,0.18), 0 1px 2px rgba(42,52,61,0.04); }
.qc-appt--done-row { opacity: 0.62; }
.qc-appt--done-row:hover { opacity: 1; }

.qc-appt-date {
    flex-shrink: 0; width: 60px; text-align: center; border-radius: 0.85rem; padding: 7px 0;
    background: linear-gradient(135deg, #f0f4f4, #e5eceb); color: #2A343D; line-height: 1;
}
.qc-appt-date .wd { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.qc-appt-date .d  { display: block; font-family: 'Roboto','Roboto Fallback',sans-serif; font-weight: 800; font-size: 1.5rem; margin: 2px 0; }
.qc-appt-date .m  { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #476A6F; }
.qc-appt-date--today { background: linear-gradient(135deg, #ff893f, #ff6f91); color: #fff; }
.qc-appt-date--today .wd, .qc-appt-date--today .m { color: rgba(255,255,255,0.85); }

.qc-appt-main { flex: 1; min-width: 0; }
.qc-appt-time { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #1a1f24; font-size: 0.95rem; }
.qc-appt-todaychip { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #c2410c; background: rgba(255,137,63,0.15); padding: 2px 8px; border-radius: 999px; }
.qc-appt-contact { font-size: 0.82rem; color: #64748b; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px 16px; }
.qc-appt-contact a { color: #675c8e; text-decoration: none; }
.qc-appt-contact a:hover { text-decoration: underline; }
.qc-appt-note { font-size: 0.78rem; color: #94a3b8; margin-top: 5px; font-style: italic; }

.qc-appt-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.qc-appt-status { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.qc-appt-status--new    { background: rgba(255,137,63,0.15); color: #c2410c; }
.qc-appt-status--called { background: rgba(103,92,142,0.13); color: #675c8e; }
.qc-appt-status--done   { background: rgba(40,200,64,0.13); color: #15803d; }
.qc-appt-actions { display: flex; gap: 6px; }
.qc-appt-actions form { margin: 0; }
.qc-appt-btn {
    border: 1.5px solid #e2e8f0; background: #f8fafc; color: #475569; cursor: pointer;
    font-family: inherit; font-size: 0.72rem; font-weight: 600; padding: 6px 11px; border-radius: 999px;
    transition: border-color .15s ease, background .15s ease, color .15s ease; white-space: nowrap;
}
.qc-appt-btn:hover { border-color: #cbd5e1; background: #fff; color: #1a1f24; }
.qc-appt-btn--done:hover { border-color: rgba(40,200,64,0.5); color: #15803d; background: rgba(40,200,64,0.06); }

@media (max-width: 640px) {
    .qc-appt { flex-wrap: wrap; gap: 12px; }
    .qc-appt-main { flex: 1 1 60%; }
    .qc-appt-side { width: 100%; justify-content: space-between; border-top: 1px solid #f1f5f9; padding-top: 11px; }
}
.qc-lc-live-dot { font-size: 0.72rem; color: #15803d; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.qc-lc-live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 3px rgba(40,200,64,0.2); animation: qcLcPulse 2s ease-in-out infinite; }
@keyframes qcLcPulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.qc-lc { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: 72vh; min-height: 460px;
    background: #fff; border: 1px solid #eef1f4; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 8px 30px rgba(42,52,61,0.07); }
@media (max-width: 760px){ .qc-lc { grid-template-columns: 1fr; height: auto; } .qc-lc-list { max-height: 30vh; } }

.qc-lc-list { border-right: 1px solid #eef1f4; overflow-y: auto; background: #fafbfc; }
.qc-lc-empty { padding: 24px 18px; color: #94a3b8; font-size: 0.85rem; text-align: center; }
.qc-lc-item { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 13px 16px; border-bottom: 1px solid #f1f5f9; transition: background .15s ease; font-family: inherit; }
.qc-lc-item:hover { background: #f1f5f9; }
.qc-lc-item.is-active { background: #f6f3fb; box-shadow: inset 3px 0 0 #675c8e; }
.qc-lc-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qc-lc-item-name { font-weight: 700; font-size: 0.85rem; color: #1a1f24; }
.qc-lc-item-prev { font-size: 0.75rem; color: #64748b; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-lc-item-time { font-size: 0.68rem; color: #b0bac6; margin-top: 4px; }
.qc-lc-badge { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; }
.qc-lc-badge--live { background: rgba(40,200,64,0.14); color: #15803d; }

.qc-lc-main { display: flex; flex-direction: column; min-width: 0; }
.qc-lc-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.qc-lc-conv { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.qc-lc-conv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef1f4; flex-shrink: 0; }
.qc-lc-status { font-size: 0.72rem; font-weight: 600; margin-left: 10px; }
.qc-lc-status--live { color: #15803d; }
.qc-lc-status--waiting { color: #b45309; }
.qc-lc-status--closed { color: #94a3b8; }

.qc-lc-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; background: #fafbfc; min-height: 0; }
.qc-lc-b { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.qc-lc-who { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.55; margin-bottom: 3px; }
.qc-lc-b--user  { align-self: flex-start; background: #fff; color: #1a1f24; border: 1px solid #eef1f4; border-bottom-left-radius: 4px; }
.qc-lc-b--bot   { align-self: flex-start; background: #f6f3fb; color: #3b345c; border-bottom-left-radius: 4px; }
.qc-lc-b--agent { align-self: flex-end; background: #2A343D; color: #fff; border-bottom-right-radius: 4px; }
.qc-lc-sys { align-self: center; text-align: center; font-size: 0.72rem; color: #94a3b8; background: #f1f5f9; padding: 5px 13px; border-radius: 999px; margin: 4px auto 12px; }

.qc-lc-reply { display: flex; gap: 10px; padding: 13px 16px; border-top: 1px solid #eef1f4; flex-shrink: 0; align-items: flex-end; }
.qc-lc-reply textarea { flex: 1; resize: none; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 0.9rem; padding: 10px 13px; font-family: inherit; font-size: 0.9rem; color: #1a1f24; outline: none; transition: border-color .15s; }
.qc-lc-reply textarea:focus { border-color: #675c8e; background: #fff; }

/* ── Admin-Toast: automatische Vorlese-Audio-Erzeugung nach dem Speichern ── */
.qc-audio-toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 70;
    display: flex; align-items: center; gap: 11px;
    background: #1a1f24; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 0.86rem; font-weight: 600;
    padding: 13px 17px; border-radius: 14px;
    box-shadow: 0 16px 40px -12px rgba(26,31,36,0.55);
    max-width: min(92vw, 380px);
    transition: opacity .3s ease, transform .3s ease;
}
.qc-audio-toast.is-hide { opacity: 0; transform: translateY(10px); pointer-events: none; }
.qc-audio-toast-sub { display: block; font-weight: 500; font-size: 0.74rem; color: rgba(255,255,255,0.55); margin-top: 1px; }
.qc-audio-toast-spin {
    width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
    border: 2.5px solid rgba(255,255,255,0.22); border-top-color: #ff893f;
    animation: qcAudioSpin .7s linear infinite;
}
.qc-audio-toast.is-done .qc-audio-toast-spin,
.qc-audio-toast.is-error .qc-audio-toast-spin { display: none; }
.qc-audio-toast.is-done::before  { content: '✓'; color: #34d399; font-weight: 800; font-size: 1.05rem; line-height: 1; }
.qc-audio-toast.is-error::before { content: '✕'; color: #f87171; font-weight: 800; font-size: 1.05rem; line-height: 1; }
@keyframes qcAudioSpin { to { transform: rotate(360deg); } }

/* ── Titelbild-Vorschau im Blog-Editor ── */
.qc-cover-preview {
    position: relative; display: block; line-height: 0;
    border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
    background: #f1f5f9; box-shadow: 0 2px 10px rgba(42,52,61,0.06);
}
.qc-cover-preview img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.qc-cover-preview-badge {
    position: absolute; top: 8px; left: 8px;
    font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; line-height: 1;
    color: #fff; background: rgba(26,31,36,0.72);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    padding: 4px 9px; border-radius: 999px;
}
.qc-cover-preview-broken { display: none; }
.qc-cover-preview.is-broken { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; }
.qc-cover-preview.is-broken img,
.qc-cover-preview.is-broken .qc-cover-preview-badge { display: none; }
.qc-cover-preview.is-broken .qc-cover-preview-broken {
    display: block; padding: 1rem; text-align: center; line-height: 1.4;
    font-size: 0.78rem; font-weight: 600; color: #ef4444;
}
.qc-cover-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    aspect-ratio: 16 / 10; border: 1.5px dashed #cbd5e1; border-radius: 14px;
    color: #94a3b8; font-size: 0.82rem; font-weight: 500; background: #f8fafc;
}
.qc-cover-empty svg { opacity: 0.7; }

/* ══════════════════════════════════════════════════════════════════
   Vorlesen (Text-to-Speech) — runder Badge-Button im Marken-Stil
   ══════════════════════════════════════════════════════════════════ */
.qc-tts {
    display: inline-flex; align-items: center; gap: 15px;
    margin-top: 1.75rem; padding: 9px 22px 9px 9px;
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
    border: 1px solid #eef1f4; border-radius: 999px;
    box-shadow: 0 2px 14px rgba(42,52,61,0.05);
    max-width: 100%;
}
.qc-tts[hidden] { display: none; }

.qc-tts-btn {
    position: relative; flex-shrink: 0;
    width: 58px; height: 58px; border-radius: 999px;
    display: grid; place-items: center;
    background: #fff; border: 1px solid #eef1f4; color: #675c8e;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 18px rgba(103,92,142,0.14);
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, color .25s ease;
}
.qc-tts-btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(103,92,142,0.22); }
.qc-tts-btn:active { transform: translateY(0); }
.qc-tts-btn:focus-visible { outline: 2px solid #675c8e; outline-offset: 3px; }

.qc-tts-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.qc-tts-ring-track { fill: none; stroke: rgba(103,92,142,0.14); stroke-width: 2.4; }
.qc-tts-ring-prog  { fill: none; stroke: #675c8e; stroke-width: 2.4; stroke-linecap: round;
    stroke-dasharray: 125.66; stroke-dashoffset: 125.66; transition: stroke-dashoffset .18s linear; }

.qc-tts-ico { grid-area: 1 / 1; width: 22px; height: 22px; display: none; }
.qc-tts[data-state="idle"]    .qc-tts-ico--play,
.qc-tts[data-state="paused"]  .qc-tts-ico--resume,
.qc-tts[data-state="playing"] .qc-tts-ico--pause { display: block; }
.qc-tts[data-state="playing"] .qc-tts-btn { color: #ff893f; }
.qc-tts[data-state="playing"] .qc-tts-ring-prog { stroke: #ff893f; }
.qc-tts[data-state="playing"] .qc-tts-ring-track { stroke: rgba(255,137,63,0.16); }

.qc-tts-meta  { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qc-tts-label { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.94rem; color: #1a1f24; line-height: 1.2; }
.qc-tts-sub   { font-size: 0.76rem; color: #94a3b8; font-weight: 500; }

.qc-tts-eq { display: none; align-items: flex-end; gap: 2.5px; height: 11px; margin-top: 4px; }
.qc-tts[data-state="playing"] .qc-tts-eq { display: inline-flex; }
.qc-tts-eq i { width: 2.5px; border-radius: 2px; background: #ff893f; height: 40%; animation: qcEq .9s ease-in-out infinite; }
.qc-tts-eq i:nth-child(2) { animation-delay: .12s; }
.qc-tts-eq i:nth-child(3) { animation-delay: .24s; }
.qc-tts-eq i:nth-child(4) { animation-delay: .36s; }
.qc-tts-eq i:nth-child(5) { animation-delay: .48s; }
@keyframes qcEq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .qc-tts-eq i { animation: none; height: 60%; } }

/* ══════════════════════════════════════════════════════════════════
   Teilen — Enterprise Share-Card mit echten Marken-Icons
   ══════════════════════════════════════════════════════════════════ */
.qc-share {
    position: relative; overflow: hidden;
    margin-top: 4rem; padding: 2.6rem 2rem 2.75rem;
    background:
        radial-gradient(120% 90% at 12% 0%, rgba(103,92,142,0.06), transparent 55%),
        radial-gradient(120% 90% at 92% 8%, rgba(71,106,111,0.06), transparent 55%),
        linear-gradient(180deg, #ffffff, #fcfcfe);
    border: 1px solid #edf0f3; border-radius: 2.25rem;
    box-shadow: 0 1px 2px rgba(42,52,61,0.04), 0 24px 60px -34px rgba(42,52,61,0.22);
    text-align: center;
}
.qc-share-head { position: relative; z-index: 1; }
.qc-share-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: #675c8e; background: rgba(103,92,142,0.10);
    padding: 6px 14px; border-radius: 999px;
}
.qc-share-kicker svg { width: 13px; height: 13px; }
.qc-share-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.7rem; color: #1a1f24; line-height: 1.18; margin-top: 0.95rem; letter-spacing: -0.01em; }
.qc-share-sub   { color: #64748b; font-size: 0.96rem; margin-top: 0.55rem; }

.qc-share-row {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    margin-top: 2rem;
}

/* App-Icon-Style: Marken-Icon im Ruhezustand farbig, füllt sich beim Hover
   komplett in der Markenfarbe. --c = Markenfarbe je Button. */
.qc-share-btn {
    --c: #475569;
    position: relative; flex-shrink: 0;
    width: 58px; height: 58px; border-radius: 19px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #edf0f3; color: var(--c);
    cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 3px 10px rgba(42,52,61,0.06);
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background-color .28s ease, color .28s ease, border-color .28s ease;
}
.qc-share-btn::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: var(--c); opacity: 0; transition: opacity .28s ease;
}
.qc-share-btn svg { position: relative; z-index: 1; width: 23px; height: 23px; }
.qc-share-btn:hover {
    transform: translateY(-6px); color: #fff; border-color: var(--c);
    box-shadow: 0 18px 30px -10px color-mix(in srgb, var(--c) 55%, transparent);
}
.qc-share-btn:hover::before { opacity: 1; }
.qc-share-btn:active { transform: translateY(-2px); }
.qc-share-btn:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

.qc-share-btn--native { --c: #1a1f24; }
.qc-share-btn--li     { --c: #0A66C2; }
.qc-share-btn--x      { --c: #000000; }
.qc-share-btn--fb     { --c: #1877F2; }
.qc-share-btn--wa     { --c: #25D366; }
.qc-share-btn--mail   { --c: #476A6F; }
.qc-share-btn--copy   { --c: #675c8e; }

/* Tooltip */
.qc-share-tip {
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
    background: #1a1f24; color: #fff; font-size: 0.7rem; font-weight: 600; white-space: nowrap;
    padding: 5px 10px; border-radius: 8px; opacity: 0; pointer-events: none;
    box-shadow: 0 6px 16px rgba(26,31,36,0.28); transition: opacity .2s ease, transform .2s ease; z-index: 5;
}
.qc-share-tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: #1a1f24;
}
.qc-share-btn:hover .qc-share-tip, .qc-share-btn:focus-visible .qc-share-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Link kopieren: Icon-Wechsel + Bestätigung */
.qc-share-btn--copy .qc-copy-ok { display: none; }
.qc-share-btn--copy.is-copied { --c: #16a34a; color: #fff; border-color: #16a34a; transform: translateY(-6px); }
.qc-share-btn--copy.is-copied::before { opacity: 1; }
.qc-share-btn--copy.is-copied .qc-copy-ic { display: none; }
.qc-share-btn--copy.is-copied .qc-copy-ok { display: block; }
.qc-share-btn--copy.is-copied .qc-share-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.qc-share-btn--copy.is-copied .qc-share-tip span { font-size: 0; }
.qc-share-btn--copy.is-copied .qc-share-tip::before { content: 'Link kopiert!'; }

@media (max-width: 480px) {
    .qc-share { padding: 2rem 1.25rem 2.25rem; border-radius: 1.75rem; }
    .qc-share-title { font-size: 1.4rem; }
    .qc-share-row { gap: 11px; }
    .qc-share-btn { width: 52px; height: 52px; border-radius: 17px; }
}
