app/static/style.css aktualisiert

This commit is contained in:
sascha 2026-01-28 18:23:58 +00:00
parent 6c22425292
commit 534140d099

View File

@ -1,209 +1,165 @@
:root { :root {
--primary: #007bff; --primary: #007bff;
--accent: #ff9800;
--success: #28a745; --success: #28a745;
--danger: #dc3545; --danger: #dc3545;
--warning: #ffc107;
--secondary: #6c757d;
--bg: #f4f4f9; --bg: #f4f4f9;
--card-bg: #ffffff;
--text: #333;
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-family: sans-serif;
background-color: var(--bg); background: var(--bg);
color: var(--text);
margin: 0; margin: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; height: 100vh;
} }
.container { .container {
flex: 1; flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
max-width: 600px; max-width: 600px;
margin: 0 auto; margin: 0 auto;
padding: 20px;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
}
h1 {
font-size: 1.8rem;
margin-bottom: 30px;
text-align: center;
color: #444;
}
.card {
background: var(--card-bg);
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
width: 100%;
margin-bottom: 20px;
box-sizing: border-box;
text-align: center;
}
.label {
font-size: 0.9rem;
color: #888;
margin-bottom: 5px;
text-transform: uppercase;
letter-spacing: 1px;
}
.question {
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 25px;
color: #222;
}
input[type="text"] {
width: 100%;
padding: 14px;
font-size: 1.1rem;
border: 2px solid #ddd;
border-radius: 8px;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
text-align: center;
margin-bottom: 10px;
}
input[type="text"]:focus {
border-color: var(--primary);
}
/* BUTTONS */
.action-btn, .mode-select button {
width: 100%;
padding: 16px;
font-size: 1.1rem;
border: none;
border-radius: 8px;
cursor: pointer;
background: var(--success);
color: white;
font-weight: bold;
transition: background 0.2s, transform 0.1s;
margin-bottom: 15px; /* Abstand nach unten */
display: block; /* Erzwingt neue Zeile */
}
.action-btn:active, .mode-select button:active { transform: scale(0.98); }
.action-btn.primary { background: var(--primary); }
.action-btn.secondary { background: var(--secondary); }
.action-btn.danger { background: var(--danger); }
/* Modus Auswahl Container - Buttons untereinander */
.mode-select {
width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0; /* Abstand wird über margin-bottom geregelt */
} }
/* Normale Buttons in der Modus-Auswahl */ h1 { text-align: center; color: #333; }
.mode-select button {
background: white; /* SETUP SCREEN */
.section-title {
font-weight: bold;
margin: 20px 0 10px;
color: #555; color: #555;
border: 2px solid #ddd; text-transform: uppercase;
text-align: center; font-size: 0.9rem;
} }
/* Aktiver Button */ .button-group {
.mode-select button.active { display: flex;
flex-direction: column;
gap: 10px;
}
button {
padding: 15px;
border: 2px solid #ddd;
border-radius: 8px;
background: white;
font-size: 1rem;
cursor: pointer;
font-weight: 600;
width: 100%;
transition: all 0.2s;
}
button:hover { background: #f0f0f0; }
/* Active States */
button.active {
border-color: var(--primary); border-color: var(--primary);
background: #e3f2fd; background: #e3f2fd;
color: var(--primary); color: var(--primary);
} }
/* Spezialbutton für Verben */ .special-btn.active {
#btn-irregular { border-color: var(--accent);
border-color: #ff9800 !important; background: #fff3e0;
color: #e65100 !important; color: #e65100;
}
#btn-irregular.active {
background: #fff3e0 !important;
} }
/* --- OVERLAY --- */ /* Action Buttons */
.overlay { .action-btn {
display: none; border: none;
position: fixed; color: white;
top: 0; left: 0; margin-top: 10px;
width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1000;
justify-content: center;
align-items: center;
padding: 20px;
box-sizing: border-box;
} }
.primary { background: var(--primary); }
.secondary { background: #6c757d; }
.danger { background: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.overlay-content { /* QUIZ CARD */
.card {
background: white; background: white;
padding: 20px; padding: 20px;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
text-align: center;
margin-bottom: 20px;
}
.question { font-size: 1.8rem; font-weight: bold; margin: 15px 0; }
.hint { color: #888; font-style: italic; margin-bottom: 15px; }
input {
width: 100%;
padding: 12px;
margin-bottom: 10px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 1.1rem;
box-sizing: border-box;
text-align: center;
}
input:focus { border-color: var(--primary); outline: none; }
#verb-inputs {
display: flex;
flex-direction: column;
gap: 5px;
}
/* FEEDBACK */
.feedback { font-weight: bold; min-height: 20px; }
.correct { color: var(--success); }
.wrong { color: var(--danger); }
.typo { color: var(--accent); }
/* OVERLAY */
.overlay {
display: none;
position: fixed;
top:0; left:0; right:0; bottom:0;
background: rgba(0,0,0,0.5);
z-index: 99;
align-items: center;
justify-content: center;
padding: 20px;
}
.overlay-content {
background: white;
padding: 20px;
border-radius: 10px;
width: 100%; width: 100%;
max-width: 400px; max-width: 400px;
max-height: 80vh; max-height: 80vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.page-grid { .page-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 10px; gap: 8px;
margin: 20px 0;
overflow-y: auto; overflow-y: auto;
flex: 1; margin: 15px 0;
} }
.page-item input[type="checkbox"] { display: none; } /* Checkbox verstecken, Label stylen */
.page-item label { .page-item label {
display: block; display: block;
padding: 12px; padding: 10px;
background: #f0f0f0; background: #eee;
border-radius: 6px;
text-align: center; text-align: center;
font-weight: bold; border-radius: 5px;
color: #555;
cursor: pointer; cursor: pointer;
border: 2px solid transparent;
} }
.page-item input { display: none; }
.page-item input:checked + label { .page-item input:checked + label {
background: #e3f2fd; background: var(--primary);
border-color: var(--primary); color: white;
color: var(--primary);
} }
/* FEEDBACK MESSAGES */ /* PROGRESS */
#feedback-msg { margin-top: 15px; font-weight: bold; text-align: center; } .progress-bar-bg { height: 6px; background: #ddd; width: 100%; }
.msg-correct { color: var(--success); } .progress-bar-fill { height: 100%; background: var(--success); width: 0%; transition: width 0.3s; }
.msg-wrong { color: var(--danger); }
.msg-typo { color: var(--warning); }
/* Progress Bar */
.progress-container {
background: #fff;
border-top: 1px solid #eee;
padding: 15px 20px;
width: 100%;
box-sizing: border-box;
position: sticky;
bottom: 0;
}
.progress-text { text-align: center; margin-bottom: 8px; font-size: 0.9rem; color: #666; }
.progress-bar-bg { width: 100%; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: var(--success); transition: width 0.3s; }