feat: Günther-Agent (Netzer-Style) + Expertenblick im TipModal
- AgentChat-Widget mit SSE-Streaming, Quick-Actions, Multiple-Choice - /api/agent/chat + /api/agent/insight Routen - Expertenblick-Panel im TipModal (lazy load) - Günther-Icon
This commit is contained in:
@@ -219,11 +219,11 @@
|
||||
}
|
||||
|
||||
.pickerBtn {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
background: var(--surface-high);
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 16px;
|
||||
color: var(--text-primary);
|
||||
font-size: 24px;
|
||||
font-weight: 300;
|
||||
@@ -232,22 +232,37 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.15s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 4px 10px rgba(0,0,0,0.2),
|
||||
inset 0 1px 0 rgba(255,255,255,0.08);
|
||||
0 6px 16px rgba(0,0,0,0.35),
|
||||
inset 0 1px 0 rgba(255,255,255,0.12),
|
||||
inset 1px 0 0 rgba(255,255,255,0.06);
|
||||
}
|
||||
|
||||
/* Glossy sheen – gleich wie flagLarge */
|
||||
.pickerBtn::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 50%;
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
|
||||
pointer-events: none;
|
||||
border-radius: 16px 16px 0 0;
|
||||
}
|
||||
|
||||
.pickerBtn:hover {
|
||||
background: var(--primary-dim);
|
||||
border-color: rgba(75,183,248,0.3);
|
||||
background: rgba(75,183,248,0.12);
|
||||
border-color: rgba(75,183,248,0.35);
|
||||
color: var(--primary);
|
||||
box-shadow:
|
||||
0 4px 16px rgba(75,183,248,0.15),
|
||||
inset 0 1px 0 rgba(75,183,248,0.1);
|
||||
0 6px 20px rgba(75,183,248,0.2),
|
||||
inset 0 1px 0 rgba(75,183,248,0.15),
|
||||
inset 1px 0 0 rgba(75,183,248,0.08);
|
||||
}
|
||||
|
||||
.pickerBtn:active {
|
||||
transform: scale(0.94);
|
||||
transform: scale(0.93);
|
||||
}
|
||||
|
||||
.pickerValue {
|
||||
@@ -258,6 +273,8 @@
|
||||
min-width: 70px;
|
||||
text-align: center;
|
||||
line-height: 1;
|
||||
text-shadow: 0 2px 12px rgba(0,0,0,0.4);
|
||||
filter: drop-shadow(0 0 18px rgba(75,183,248,0.12));
|
||||
}
|
||||
|
||||
/* Tendenz bar */
|
||||
@@ -270,7 +287,23 @@
|
||||
background: var(--surface-high);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.06);
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 4px 16px rgba(0,0,0,0.25),
|
||||
inset 0 1px 0 rgba(255,255,255,0.1),
|
||||
inset 1px 0 0 rgba(255,255,255,0.05);
|
||||
}
|
||||
|
||||
/* Glossy sheen – gleich wie flagLarge und pickerBtn */
|
||||
.tendencyBar::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 50%;
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.tendencyIcon { font-size: 18px; }
|
||||
@@ -285,6 +318,163 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ---- Expertenblick ---- */
|
||||
.insightWrapper {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.insightToggle {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 11px 16px;
|
||||
background: linear-gradient(135deg, rgba(254,174,50,0.12) 0%, rgba(254,174,50,0.05) 100%);
|
||||
border: 1px solid rgba(254,174,50,0.3);
|
||||
border-radius: 12px;
|
||||
color: var(--gold);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s;
|
||||
text-align: left;
|
||||
letter-spacing: 0.02em;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 2px 12px rgba(254,174,50,0.1),
|
||||
inset 0 1px 0 rgba(254,174,50,0.15);
|
||||
}
|
||||
|
||||
/* Glossy sheen */
|
||||
.insightToggle::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 50%;
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.insightToggle:hover {
|
||||
background: linear-gradient(135deg, rgba(254,174,50,0.2) 0%, rgba(254,174,50,0.08) 100%);
|
||||
border-color: rgba(254,174,50,0.5);
|
||||
box-shadow:
|
||||
0 4px 20px rgba(254,174,50,0.2),
|
||||
inset 0 1px 0 rgba(254,174,50,0.2);
|
||||
}
|
||||
|
||||
.insightIcon {
|
||||
color: var(--gold);
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 4px rgba(254,174,50,0.5));
|
||||
}
|
||||
|
||||
.insightChevron {
|
||||
margin-left: auto;
|
||||
color: rgba(254,174,50,0.6);
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.insightPanel {
|
||||
margin-top: 8px;
|
||||
padding: 14px 16px;
|
||||
background: var(--surface-high);
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(254,174,50,0.1);
|
||||
box-shadow: inset 0 1px 0 rgba(254,174,50,0.05);
|
||||
animation: insightFadeIn 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes insightFadeIn {
|
||||
from { opacity: 0; transform: translateY(-4px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.insightLoading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.insightSpinner {
|
||||
color: var(--primary);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.insightText {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.insightLine {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
}
|
||||
|
||||
.insightLine:last-child {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.insightLine:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.insightLabel {
|
||||
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||
font-weight: 700;
|
||||
font-size: 10px;
|
||||
color: var(--primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.insightValue {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.insightValue strong {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.insightCursor {
|
||||
display: inline-block;
|
||||
width: 2px;
|
||||
height: 14px;
|
||||
background: var(--primary);
|
||||
border-radius: 1px;
|
||||
margin-left: 2px;
|
||||
vertical-align: middle;
|
||||
animation: blink 0.8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
|
||||
.insightErrorMsg {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Error */
|
||||
.error {
|
||||
color: var(--error);
|
||||
|
||||
Reference in New Issue
Block a user