From 7d767acdd7c0b41c106dcefa81d2de043af413eb Mon Sep 17 00:00:00 2001 From: sascha Date: Wed, 28 Jan 2026 15:53:39 +0000 Subject: [PATCH] app/static/style.css aktualisiert --- app/static/style.css | 98 +++++++++++++++++++------------------------- 1 file changed, 42 insertions(+), 56 deletions(-) diff --git a/app/static/style.css b/app/static/style.css index 207f490..1db5be1 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -33,7 +33,7 @@ body { h1 { font-size: 1.8rem; - margin-bottom: 20px; + margin-bottom: 30px; text-align: center; color: #444; } @@ -46,6 +46,7 @@ h1 { width: 100%; margin-bottom: 20px; box-sizing: border-box; + text-align: center; } .label { @@ -57,31 +58,34 @@ h1 { } .question { - font-size: 1.6rem; + font-size: 1.8rem; font-weight: bold; - margin-bottom: 20px; + margin-bottom: 25px; color: #222; } input[type="text"] { width: 100%; - padding: 12px; + 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); } -.action-btn { +/* BUTTONS */ +.action-btn, .mode-select button { width: 100%; - padding: 14px; - font-size: 1rem; + padding: 16px; + font-size: 1.1rem; border: none; border-radius: 8px; cursor: pointer; @@ -89,42 +93,50 @@ input[type="text"]:focus { color: white; font-weight: bold; transition: background 0.2s, transform 0.1s; - margin-bottom: 10px; + margin-bottom: 15px; /* Abstand nach unten */ + display: block; /* Erzwingt neue Zeile */ } -.action-btn:active { transform: scale(0.98); } +.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 { - display: flex; - flex-direction: column; /* Buttons untereinander auf Mobile */ - gap: 10px; - margin-bottom: 20px; width: 100%; + display: flex; + flex-direction: column; + gap: 0; /* Abstand wird über margin-bottom geregelt */ } +/* Normale Buttons in der Modus-Auswahl */ .mode-select button { - padding: 10px; - border: 2px solid #ddd; background: white; - border-radius: 8px; - cursor: pointer; - font-weight: 600; color: #555; - flex: 1; + border: 2px solid #ddd; + text-align: center; } +/* Aktiver Button */ .mode-select button.active { border-color: var(--primary); background: #e3f2fd; color: var(--primary); } -/* --- OVERLAY (WICHTIG!) --- */ +/* Spezialbutton für Verben */ +#btn-irregular { + border-color: #ff9800 !important; + color: #e65100 !important; +} +#btn-irregular.active { + background: #fff3e0 !important; +} + +/* --- OVERLAY --- */ .overlay { - display: none; /* Standardmäßig unsichtbar */ + display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; @@ -149,33 +161,25 @@ input[type="text"]:focus { .page-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; margin: 20px 0; overflow-y: auto; flex: 1; } -.page-item { position: relative; } - -.page-item input[type="checkbox"] { - position: absolute; - opacity: 0; - width: 100%; - height: 100%; - cursor: pointer; -} +.page-item input[type="checkbox"] { display: none; } /* Checkbox verstecken, Label stylen */ .page-item label { display: block; - padding: 10px; + padding: 12px; background: #f0f0f0; border-radius: 6px; text-align: center; font-weight: bold; color: #555; + cursor: pointer; border: 2px solid transparent; - transition: all 0.2s; } .page-item input:checked + label { @@ -185,11 +189,12 @@ input[type="text"]:focus { } /* FEEDBACK MESSAGES */ -#feedback-msg { margin-top: 15px; font-weight: bold; } +#feedback-msg { margin-top: 15px; font-weight: bold; text-align: center; } .msg-correct { color: var(--success); } .msg-wrong { color: var(--danger); } .msg-typo { color: var(--warning); } +/* Progress Bar */ .progress-container { background: #fff; border-top: 1px solid #eee; @@ -199,25 +204,6 @@ input[type="text"]:focus { 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 ease, background-color 0.3s; -} \ No newline at end of file +.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; } \ No newline at end of file