feat: Artikel- und Quellen-Anzahl im zugeklappten Quellenübersicht-Header anzeigen

Zeigt "X Artikel aus Y Quellen" direkt im Header der Quellenübersicht-Kachel,
sodass die Info auch ohne Aufklappen sichtbar ist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
Claude Dev
2026-03-15 11:55:15 +01:00
Ursprung 4ce629ebcd
Commit 996ee71622
3 geänderte Dateien mit 302 neuen und 74 gelöschten Zeilen

Datei anzeigen

@@ -12,9 +12,9 @@
--bg-elevated: #1E2D45;
/* Accent (Gold) */
--accent: #C8A851;
--accent-hover: #B5923E;
--accent-pressed: #A07E2B;
--accent: #96791A;
--accent-hover: #7D6516;
--accent-pressed: #645112;
/* Text */
--text-primary: #E8ECF4;
@@ -61,10 +61,10 @@
--radius-lg: 8px;
/* Tints (halbtransparente Hintergründe) */
--tint-accent: rgba(200, 168, 81, 0.15);
--tint-accent-subtle: rgba(200, 168, 81, 0.08);
--tint-accent-faint: rgba(200, 168, 81, 0.04);
--tint-accent-strong: rgba(200, 168, 81, 0.18);
--tint-accent: rgba(150, 121, 26, 0.15);
--tint-accent-subtle: rgba(150, 121, 26, 0.08);
--tint-accent-faint: rgba(150, 121, 26, 0.04);
--tint-accent-strong: rgba(150, 121, 26, 0.18);
--tint-error: rgba(239, 68, 68, 0.12);
--tint-error-strong: rgba(239, 68, 68, 0.3);
--tint-error-border: rgba(239, 68, 68, 0.4);
@@ -81,8 +81,8 @@
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
/* Glows */
--glow-accent: 0 0 8px rgba(200, 168, 81, 0.4);
--glow-accent-strong: 0 0 16px rgba(200, 168, 81, 0.6);
--glow-accent: 0 0 8px rgba(150, 121, 26, 0.4);
--glow-accent-strong: 0 0 16px rgba(150, 121, 26, 0.6);
/* Overlay */
--backdrop: rgba(11, 17, 33, 0.85);
@@ -3613,6 +3613,14 @@ a:hover {
flex-shrink: 0;
}
/* === Quellenübersicht Header-Stats (zugeklappter Zustand) === */
.source-overview-header-stats {
font-size: 12px;
color: var(--text-tertiary);
font-weight: 400;
margin-left: 4px;
}
.source-overview-chevron.open {
transform: rotate(90deg);
}
@@ -4569,11 +4577,16 @@ a.map-popup-article:hover {
padding: 5px 0;
}
.tg-cat-item input[type="checkbox"] {
flex-shrink: 0;
margin: 0;
accent-color: var(--accent);
width: 15px;
height: 15px;
width: 16px;
height: 16px;
cursor: pointer;
}
.tg-cat-item span {
line-height: 16px;
}
.tg-cat-count {
font-size: 11px;
color: var(--text-disabled);
@@ -4596,3 +4609,227 @@ a.map-popup-article:hover {
.btn-link:hover {
color: var(--accent-hover);
}
/* ============================================================
Chat-Assistent Widget
============================================================ */
.chat-toggle-btn {
position: fixed;
bottom: 24px;
right: 24px;
width: 52px;
height: 52px;
border-radius: 50%;
background: var(--accent);
color: #fff;
border: none;
cursor: pointer;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
transition: transform 0.2s, background 0.2s;
}
.chat-toggle-btn:hover {
transform: scale(1.08);
background: var(--accent-hover);
}
.chat-toggle-btn.active {
background: var(--text-secondary);
}
.chat-toggle-btn svg {
width: 24px;
height: 24px;
fill: currentColor;
}
.chat-window {
position: fixed;
bottom: 88px;
right: 24px;
width: 380px;
height: 520px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
z-index: 9998;
display: none;
flex-direction: column;
box-shadow: 0 8px 32px rgba(0,0,0,0.25);
overflow: hidden;
}
.chat-window.open {
display: flex;
}
.chat-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.chat-header-title {
font-family: var(--font-title);
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.chat-header-close {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 4px;
line-height: 1;
font-size: 18px;
border-radius: 4px;
}
.chat-header-close:hover {
color: var(--text-primary);
background: var(--bg-tertiary);
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
}
.chat-message {
display: flex;
max-width: 85%;
}
.chat-message.user {
align-self: flex-end;
}
.chat-message.assistant {
align-self: flex-start;
}
.chat-bubble {
padding: 10px 14px;
border-radius: 12px;
font-size: 13px;
line-height: 1.5;
word-break: break-word;
}
.chat-message.user .chat-bubble {
background: var(--accent);
color: #fff;
font-weight: 600;
border-bottom-right-radius: 4px;
box-shadow: var(--shadow-sm);
}
.chat-message.assistant .chat-bubble {
background: var(--bg-primary);
color: var(--text-primary);
border: 1px solid var(--border);
border-bottom-left-radius: 4px;
box-shadow: var(--shadow-sm);
}
.chat-input-area {
display: flex;
align-items: flex-end;
gap: 8px;
padding: 12px;
border-top: 1px solid var(--border);
background: var(--bg-secondary);
flex-shrink: 0;
}
.chat-input-area textarea {
flex: 1;
resize: none;
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 12px;
font-size: 13px;
font-family: inherit;
line-height: 1.4;
background: var(--bg-primary);
color: var(--text-primary);
max-height: 120px;
min-height: 36px;
outline: none;
}
.chat-input-area textarea:focus {
border-color: var(--accent);
}
.chat-input-area textarea::placeholder {
color: var(--text-disabled);
}
.chat-send-btn {
background: var(--accent);
color: #fff;
border: none;
border-radius: 8px;
width: 36px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: background 0.15s;
}
.chat-send-btn:hover {
background: var(--accent-hover);
}
.chat-send-btn svg {
width: 16px;
height: 16px;
fill: currentColor;
}
/* Typing animation */
.chat-typing {
display: flex;
gap: 4px;
padding: 12px 16px;
}
.chat-typing span {
width: 6px;
height: 6px;
background: var(--text-disabled);
border-radius: 50%;
animation: chat-typing-bounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing-bounce {
0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
30% { transform: translateY(-6px); opacity: 1; }
}
/* Mobile */
@media (max-width: 640px) {
.chat-window {
bottom: 0;
right: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0;
border: none;
}
.chat-toggle-btn {
bottom: 16px;
right: 16px;
}
}
/* Light Theme */
[data-theme="light"] .chat-window {
box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
[data-theme="light"] .chat-message.assistant .chat-bubble {
background: var(--bg-primary);
}