Div Erweiterungen

This commit is contained in:
2025-09-15 23:52:59 +02:00
parent ad6ba66220
commit 5ca7b0b19c
9 changed files with 2567 additions and 24 deletions

View File

@@ -1552,6 +1552,226 @@ input:checked+.toggle-slider:before {
min-width: 120px;
}
/* Analytics and Statistics Styles */
.analytics-section, .statistics-section {
margin: 2rem 0;
padding: 1.5rem;
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
border-radius: 10px;
border: 1px solid #34495e;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.section-header {
text-align: center;
margin-bottom: 2rem;
}
.section-header h2 {
color: #ecf0f1;
margin-bottom: 0.5rem;
font-size: 2rem;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.section-header p {
color: #bdc3c7;
font-size: 1.1rem;
}
.analytics-grid, .statistics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.analytics-card, .statistics-card {
background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
border: 1px solid #34495e;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.analytics-card:hover, .statistics-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.analytics-card h3, .statistics-card h3 {
color: #ecf0f1;
margin-bottom: 1rem;
font-size: 1.2rem;
border-bottom: 2px solid #3498db;
padding-bottom: 0.5rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* Mini Stats in Cards */
.analytics-stats, .statistics-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}
.mini-stat {
text-align: center;
padding: 0.5rem;
background: rgba(52, 73, 94, 0.6);
border-radius: 5px;
border: 1px solid #34495e;
}
.mini-stat-number {
font-size: 1.2rem;
font-weight: bold;
color: #ecf0f1;
margin-bottom: 0.25rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.mini-stat-label {
font-size: 0.8rem;
color: #bdc3c7;
}
/* Trend Stats */
.trend-stats, .activity-stats, .monthly-stats, .consistency-stats, .progress-stats {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.trend-item, .activity-item, .monthly-item, .consistency-item, .progress-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
background: rgba(52, 73, 94, 0.6);
border-radius: 5px;
border: 1px solid #34495e;
margin-bottom: 0.5rem;
}
.trend-label, .activity-label, .monthly-label, .consistency-label, .progress-label {
font-weight: 500;
color: #bdc3c7;
}
.trend-value, .activity-value, .monthly-value, .consistency-value, .progress-value {
font-weight: bold;
color: #ecf0f1;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* Personal Records */
.personal-records {
max-height: 200px;
overflow-y: auto;
}
.record-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
margin-bottom: 0.5rem;
background: rgba(52, 73, 94, 0.6);
border-radius: 5px;
border-left: 4px solid #3498db;
border: 1px solid #34495e;
}
.record-rank {
font-weight: bold;
color: #e74c3c;
font-size: 1.1rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.record-time {
font-weight: bold;
color: #ecf0f1;
font-family: 'Courier New', monospace;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.record-location {
color: #bdc3c7;
font-size: 0.9rem;
}
/* Location Performance */
.location-stats {
max-height: 200px;
overflow-y: auto;
}
.location-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
margin-bottom: 0.5rem;
background: rgba(52, 73, 94, 0.6);
border-radius: 5px;
border: 1px solid #34495e;
}
.location-name {
font-weight: 500;
color: #ecf0f1;
}
.location-best {
font-weight: bold;
color: #27ae60;
font-family: 'Courier New', monospace;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.location-runs {
color: #bdc3c7;
font-size: 0.9rem;
}
/* Ranking Stats */
.ranking-stats {
max-height: 200px;
overflow-y: auto;
}
.ranking-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
margin-bottom: 0.5rem;
background: rgba(52, 73, 94, 0.6);
border-radius: 5px;
border: 1px solid #34495e;
}
.ranking-category {
font-weight: 500;
color: #ecf0f1;
}
.ranking-position {
font-weight: bold;
color: #e74c3c;
font-size: 1.1rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.ranking-total {
color: #bdc3c7;
font-size: 0.9rem;
}
/* Responsive Settings */
@media (max-width: 768px) {
.setting-item {