- index.html: "Jährlicher Konsum nach Sorte" sowie "Geräten", "Hinzufügen", "Brühzeit", "Einträge" korrigiert (Umlaute fehlten) - Neuer Tee-Timer: Presets 3/5 Min., eigene Zeit (Min/Sek. einstellbar), Start/Pause/Weiter/Zurücksetzen, Restzeit driftfrei über Endzeit, akustischer Alarm (WebAudio) + Toast bei Ablauf - styles.css: Timer-Styles (Display, Presets, Controls, Status) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
764 lines
13 KiB
CSS
764 lines
13 KiB
CSS
/* General Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #2E7D32;
|
|
--secondary-color: #4CAF50;
|
|
--accent-color: #81C784;
|
|
--background-color: #F5F5F5;
|
|
--card-background: #FFFFFF;
|
|
--text-primary: #333333;
|
|
--text-secondary: #666666;
|
|
--border-color: #E0E0E0;
|
|
--success-color: #4CAF50;
|
|
--warning-color: #FF9800;
|
|
--error-color: #F44336;
|
|
--shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
--border-radius: 8px;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: var(--background-color);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* App Container */
|
|
.app-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
position: relative;
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
margin-bottom: 30px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* User-Bereich im Header (nur sichtbar, wenn angemeldet) */
|
|
.user-area {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.user-name {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
max-width: 220px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 10px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.header p {
|
|
font-size: 1.1rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 30px;
|
|
}
|
|
|
|
/* Auth Section */
|
|
.auth-section {
|
|
background: var(--card-background);
|
|
border-radius: var(--border-radius);
|
|
padding: 25px;
|
|
box-shadow: var(--shadow);
|
|
text-align: center;
|
|
}
|
|
|
|
.auth-section.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.auth-card {
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.auth-card h2 {
|
|
color: var(--primary-color);
|
|
margin-bottom: 15px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.auth-card p {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.google-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 12px 20px;
|
|
font-size: 1rem;
|
|
background-color: #4285F4;
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.google-btn:hover {
|
|
background-color: #3367D6;
|
|
}
|
|
|
|
.google-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
background-color: white;
|
|
color: #4285F4;
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.auth-status {
|
|
margin-top: 15px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Sections */
|
|
section {
|
|
background: var(--card-background);
|
|
border-radius: var(--border-radius);
|
|
padding: 25px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
section h2 {
|
|
color: var(--primary-color);
|
|
margin-bottom: 20px;
|
|
font-size: 1.5rem;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid var(--accent-color);
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.stat-card {
|
|
background: linear-gradient(135deg, var(--card-background) 0%, #F9F9F9 100%);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
text-align: center;
|
|
border: 1px solid var(--border-color);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.stat-card h3 {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2.5rem;
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Charts */
|
|
.charts-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.chart-container {
|
|
background: var(--card-background);
|
|
border-radius: var(--border-radius);
|
|
padding: 20px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.chart-container.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.chart-container h3 {
|
|
font-size: 1.1rem;
|
|
color: var(--text-primary);
|
|
margin-bottom: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.add-form {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.add-form input[type="text"] {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.add-form input[type="color"] {
|
|
width: 50px;
|
|
height: 50px;
|
|
padding: 0;
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.track-form {
|
|
display: grid;
|
|
gap: 15px;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.form-group label {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.form-group input[type="text"],
|
|
.form-group input[type="number"],
|
|
.form-group input[type="date"],
|
|
.form-group select,
|
|
.form-group textarea {
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
/* Radio Group */
|
|
.radio-group {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.radio-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 15px;
|
|
background: var(--background-color);
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.radio-label:hover {
|
|
background: #E8F5E8;
|
|
}
|
|
|
|
.radio-label input[type="radio"] {
|
|
accent-color: var(--primary-color);
|
|
}
|
|
|
|
.radio-label input[type="radio"]:checked + span {
|
|
color: var(--primary-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #266F2B;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--background-color);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #E0E0E0;
|
|
}
|
|
|
|
.btn-secondary.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 6px 14px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: var(--error-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #D32F2F;
|
|
}
|
|
|
|
/* Hidden class */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Tea List */
|
|
.tea-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tea-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 15px;
|
|
background: var(--background-color);
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.tea-item .tea-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.tea-item .tea-color {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--text-secondary);
|
|
}
|
|
|
|
.tea-item .tea-name {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tea-item .tea-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tea-item .btn-icon {
|
|
padding: 5px 10px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* History Section */
|
|
.history-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.history-entry {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: 15px;
|
|
background: var(--background-color);
|
|
border-radius: var(--border-radius);
|
|
border-left: 4px solid var(--primary-color);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.history-entry:hover {
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.history-entry .entry-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.history-entry .entry-date {
|
|
font-weight: 600;
|
|
color: var(--primary-color);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.history-entry .entry-details {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.history-entry .entry-amount {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.history-entry .brew-time-badge {
|
|
padding: 3px 8px;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.brew-time-badge.kurz {
|
|
background: #E3F2FD;
|
|
color: #1976D2;
|
|
}
|
|
|
|
.brew-time-badge.normal {
|
|
background: #FFF3E0;
|
|
color: #F57C00;
|
|
}
|
|
|
|
.brew-time-badge.lang {
|
|
background: #FCE4EC;
|
|
color: #C2185B;
|
|
}
|
|
|
|
.history-entry .entry-actions {
|
|
display: flex;
|
|
gap: 5px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.history-entry .btn-icon {
|
|
padding: 3px 6px;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state p {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.empty-state .icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
margin-top: 30px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.charts-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.add-form {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.add-form input[type="text"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.user-area {
|
|
position: static;
|
|
justify-content: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.history-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.history-controls .btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.tea-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tea-item .tea-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.history-entry {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.history-entry .entry-actions {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.section-animated {
|
|
animation: fadeIn 0.5s ease-out;
|
|
}
|
|
|
|
/* Toast Notifications */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
background: var(--text-primary);
|
|
color: white;
|
|
padding: 12px 24px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
z-index: 1000;
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
.toast.success {
|
|
background: var(--success-color);
|
|
}
|
|
|
|
.toast.error {
|
|
background: var(--error-color);
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Loading Spinner */
|
|
.loading-spinner {
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 3px solid rgba(46, 125, 50, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: var(--primary-color);
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Backup Section */
|
|
.backup-section {
|
|
background: var(--card-background);
|
|
}
|
|
|
|
.backup-controls {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.backup-status {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
margin-left: 10px;
|
|
}
|
|
|
|
/* Tea Timer Section */
|
|
.timer-section {
|
|
background: var(--card-background);
|
|
}
|
|
|
|
.timer-display {
|
|
font-size: 3.5rem;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: center;
|
|
color: var(--primary-color);
|
|
font-family: 'Courier New', monospace;
|
|
letter-spacing: 4px;
|
|
}
|
|
|
|
.timer-presets {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.timer-custom {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.timer-custom input[type="number"] {
|
|
width: 70px;
|
|
padding: 8px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
font-size: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.timer-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.timer-controls .btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.timer-status {
|
|
text-align: center;
|
|
font-size: 0.95rem;
|
|
color: var(--text-secondary);
|
|
min-height: 1.2em;
|
|
}
|