style: Spielplan — glassmorphism stats card, timeline date headers

- Stats: glass card with 2/104 progress + Punkte/Exakt/Offen details
- Date sections: timeline divider with centered label + lines
  instead of accordion (no more broken border-radius)
- Past matches: simple toggle button, separate from timeline
- Match list: clean vertical flow without section containers

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ronny
2026-04-11 22:27:58 +02:00
parent a7ce8141a3
commit d39ec7a579
2 changed files with 186 additions and 130 deletions
+112 -48
View File
@@ -1,84 +1,148 @@
.page { display: flex; flex-direction: column; gap: 16px; }
/* Compact stats line */
.statsLine {
/* ── Stats Card (glassmorphism) ── */
.statsCard {
padding: 18px 20px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--surface-mid);
border-radius: var(--radius-sm);
border: 1px solid var(--border-subtle);
gap: 16px;
}
.statsText {
font-size: 13px;
color: var(--text-secondary);
.statsMain {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.statsText strong {
color: var(--text-primary);
.statsProgress {
display: flex;
align-items: baseline;
gap: 2px;
}
.statsReminder {
font-size: 12px;
color: var(--gold);
.statsNum {
font-size: 28px;
font-weight: 800;
color: var(--primary);
line-height: 1;
}
.statsSlash {
font-size: 18px;
color: var(--text-muted);
font-weight: 300;
margin: 0 1px;
}
.statsTotal {
font-size: 16px;
font-weight: 600;
color: var(--text-secondary);
line-height: 1;
}
/* Sections */
.section {
border-radius: var(--radius-md);
overflow: hidden;
.statsLabel {
font-size: 11px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.sectionHighlight {
border-left: 3px solid var(--gold);
.statsDivider {
width: 1px;
height: 40px;
background: var(--border-subtle);
flex-shrink: 0;
}
.sectionHeader {
.statsDetails {
display: flex;
gap: 16px;
flex: 1;
justify-content: space-around;
}
.statsDetail {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.statsDetailValue {
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
line-height: 1;
}
.statsDetailLabel {
font-size: 10px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ── Date Headers (timeline dividers) ── */
.dateHeader {
display: flex;
align-items: center;
width: 100%;
padding: 14px 16px;
background: var(--surface-mid);
border: none;
border-bottom: 1px solid var(--border-subtle);
color: var(--text-primary);
cursor: pointer;
font-size: 0.95rem;
gap: 8px;
transition: background 0.15s;
}
.sectionHeader:hover {
background: var(--surface-high);
gap: 12px;
padding: 4px 0;
}
.sectionLabel {
font-weight: 700;
.dateLine {
flex: 1;
text-align: left;
height: 1px;
background: var(--border-subtle);
}
.sectionCount {
font-size: 0.8rem;
color: var(--text-muted);
.dateLabel {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
white-space: nowrap;
display: flex;
align-items: center;
gap: 8px;
}
.dateCount {
font-size: 11px;
font-weight: 500;
}
.sectionChevron {
font-size: 0.85rem;
color: var(--text-muted);
}
.sectionContent {
/* ── Match List ── */
.matchList {
display: flex;
flex-direction: column;
gap: 10px;
padding: 10px 0;
margin-bottom: 8px;
}
/* States */
/* ── Past matches toggle ── */
.pastToggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 12px 16px;
background: var(--surface-low);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: background 0.15s;
}
.pastToggle:hover {
background: var(--surface-mid);
}
/* ── States ── */
.loadingState, .errorState, .emptyState {
display: flex;
flex-direction: column;