feat: Stadium Elite Design, Rangliste, Profil-Team, User-Upsert & n8n Cronjob

- MatchCard + TipModal: Uhrzeit statt VS zwischen Flaggen, Gruppe zentriert
- LeaderboardPage: Podium (2./1./3.), DU-Badge, Trend-Pfeile, Team-Zeile, CTA-Card
- AdminPage: Stadium Elite Redesign mit Result-Bar und Inline-Spinner
- ProfilePage: Team-Feld inline editierbar (PATCH /api/profile/team)
- User-Upsert beim ersten App-Aufruf (Matches-Route) statt erst beim Tipp
- DB Migration 002: team-Spalte in users, Leaderboard View aktualisiert
- Leaderboard-Refresh automatisch nach Tipps-Auswertung
- n8n Workflow angelegt: stündlicher Sync + Auswertung (ID: t3SDspIGDXwkfOt3)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ronny Mueller
2026-04-03 23:37:38 +02:00
parent e967f36f6c
commit e27a62a37b
20 changed files with 1515 additions and 297 deletions
+261 -58
View File
@@ -1,118 +1,321 @@
/* TipModal — Stadium Elite / Stitch Style */
.overlay {
position: fixed; inset: 0; z-index: 200;
background: rgba(0,0,0,0.7);
backdrop-filter: blur(8px);
display: flex; align-items: center; justify-content: center;
padding: 20px;
position: fixed;
inset: 0;
z-index: 200;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(12px);
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 0;
animation: fadeIn 0.2s ease;
}
.modal {
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Bottom sheet */
.sheet {
background: var(--surface-mid);
border-radius: var(--radius-xl);
padding: 28px;
width: 100%; max-width: 440px;
box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(75,183,248,0.1);
width: 100%;
max-width: 540px;
border-radius: 28px 28px 0 0;
padding: 12px 28px 36px;
box-shadow:
0 -8px 40px rgba(0,0,0,0.5),
0 0 0 1px rgba(75,183,248,0.08),
inset 0 1px 0 rgba(255,255,255,0.08);
animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
position: relative;
}
.header {
display: flex; align-items: center; justify-content: space-between;
@keyframes slideUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
/* Glossy sheen on top of sheet */
.sheet::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 40%;
background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
border-radius: 28px 28px 0 0;
pointer-events: none;
}
/* Drag handle */
.handle {
width: 40px;
height: 4px;
background: rgba(255,255,255,0.15);
border-radius: 2px;
margin: 0 auto 20px;
}
/* Match header */
.matchHeader {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
}
.title {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 20px; font-weight: 800;
.groupBadge {
font-size: 11px;
font-weight: 700;
color: var(--primary);
background: var(--primary-dim);
padding: 3px 10px;
border-radius: 20px;
border: 1px solid rgba(75,183,248,0.2);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.closeBtn {
background: var(--surface-high);
border: none; color: var(--text-secondary);
width: 32px; height: 32px; border-radius: 50%;
cursor: pointer; font-size: 14px;
display: flex; align-items: center; justify-content: center;
transition: all 0.15s;
}
.closeBtn:hover { background: var(--surface-high); color: var(--text-primary); }
/* Teams row */
.teamsRow {
display: flex; align-items: center; justify-content: space-between;
gap: 12px; margin-bottom: 28px;
display: grid;
grid-template-columns: 1fr 40px 1fr;
gap: 8px;
margin-bottom: 32px;
align-items: start;
}
.team { display: flex; align-items: center; gap: 8px; flex: 1; }
.teamRight { flex-direction: row-reverse; }
.teamBlock {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.crest { width: 32px; height: 32px; object-fit: contain; }
/* Large flag box */
.flagLarge {
width: 72px;
height: 72px;
border-radius: 18px;
background: var(--surface-high);
box-shadow:
0 8px 24px 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);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.flagLarge::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
pointer-events: none;
z-index: 1;
}
.flagImg {
width: 48px;
height: 48px;
object-fit: contain;
position: relative;
z-index: 0;
}
.flagEmoji { font-size: 36px; }
.teamName {
font-family: 'Plus Jakarta Sans', sans-serif;
font-weight: 600; font-size: 14px;
font-weight: 700;
font-size: 14px;
color: var(--text-primary);
text-align: center;
line-height: 1.2;
}
.vs { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.teamShort {
font-size: 11px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.vsBlock {
display: flex;
align-items: center;
justify-content: center;
height: 72px;
}
.kickoffBlock {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.kickoffDate {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 11px;
font-weight: 700;
color: var(--text-secondary);
text-align: center;
white-space: nowrap;
}
.kickoffTime {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 12px;
font-weight: 800;
color: var(--primary);
text-align: center;
white-space: nowrap;
}
/* Picker section */
.pickerSection {
margin-bottom: 20px;
}
.pickerLabel {
text-align: center;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 16px;
}
.pickerRow {
display: flex; align-items: center; justify-content: center;
gap: 20px; margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
}
.colon {
.pickerColon {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 40px; font-weight: 800;
font-size: 48px;
font-weight: 800;
color: var(--text-secondary);
line-height: 1;
padding-bottom: 12px;
}
/* Individual picker */
.picker {
display: flex; flex-direction: column;
align-items: center; gap: 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.pickerBtn {
width: 48px; height: 48px;
width: 52px;
height: 52px;
background: var(--surface-high);
border: 1px solid rgba(255,255,255,0.1);
border-radius: var(--radius-md);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 14px;
color: var(--text-primary);
font-size: 22px; font-weight: 300;
font-size: 24px;
font-weight: 300;
cursor: pointer;
display: flex; align-items: center; justify-content: center;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
box-shadow:
0 4px 10px rgba(0,0,0,0.2),
inset 0 1px 0 rgba(255,255,255,0.08);
}
.pickerBtn:hover {
background: var(--primary-dim);
border-color: rgba(75,183,248,0.3);
color: var(--primary);
box-shadow:
0 4px 16px rgba(75,183,248,0.15),
inset 0 1px 0 rgba(75,183,248,0.1);
}
.pickerBtn:active {
transform: scale(0.94);
}
.pickerBtn:hover { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); }
.pickerValue {
font-family: 'Plus Jakarta Sans', sans-serif;
font-size: 52px; font-weight: 800;
font-size: 58px;
font-weight: 800;
color: var(--text-primary);
min-width: 60px; text-align: center;
min-width: 70px;
text-align: center;
line-height: 1;
}
.tendencyRow {
display: flex; align-items: center; justify-content: center;
gap: 8px; margin-bottom: 24px;
padding: 10px;
/* Tendenz bar */
.tendencyBar {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 16px;
background: var(--surface-high);
border-radius: var(--radius-sm);
border-radius: 12px;
margin-bottom: 20px;
border: 1px solid rgba(255,255,255,0.06);
}
.tendencyLabel { font-size: 13px; color: var(--text-secondary); }
.tendencyValue { font-size: 14px; font-weight: 700; color: var(--primary); }
.tendencyIcon { font-size: 18px; }
.tendencyText {
font-size: 14px;
color: var(--text-secondary);
}
.tendencyText strong {
color: var(--tendency-color, var(--primary));
font-weight: 700;
}
/* Error */
.error {
color: var(--error);
font-size: 13px;
text-align: center;
padding: 10px 14px;
background: rgba(248,113,113,0.08);
border-radius: 10px;
margin-bottom: 16px;
padding: 10px;
background: rgba(248,113,113,0.1);
border-radius: var(--radius-sm);
border: 1px solid rgba(248,113,113,0.15);
}
.actions {
display: flex; gap: 12px; justify-content: flex-end;
/* CTA Buttons */
.saveBtn {
width: 100%;
padding: 15px;
font-size: 15px;
border-radius: 14px;
margin-bottom: 10px;
box-shadow: 0 6px 20px rgba(75,183,248,0.25);
}
.actions .btn-primary { flex: 1; }
.cancelBtn {
width: 100%;
padding: 12px;
background: transparent;
border: none;
color: var(--text-muted);
font-size: 14px;
cursor: pointer;
transition: color 0.15s;
}
.cancelBtn:hover { color: var(--text-secondary); }