app/static/style.css aktualisiert

This commit is contained in:
sascha 2026-01-28 15:53:39 +00:00
parent 8de45e2873
commit 7d767acdd7

View File

@ -33,7 +33,7 @@ body {
h1 { h1 {
font-size: 1.8rem; font-size: 1.8rem;
margin-bottom: 20px; margin-bottom: 30px;
text-align: center; text-align: center;
color: #444; color: #444;
} }
@ -46,6 +46,7 @@ h1 {
width: 100%; width: 100%;
margin-bottom: 20px; margin-bottom: 20px;
box-sizing: border-box; box-sizing: border-box;
text-align: center;
} }
.label { .label {
@ -57,31 +58,34 @@ h1 {
} }
.question { .question {
font-size: 1.6rem; font-size: 1.8rem;
font-weight: bold; font-weight: bold;
margin-bottom: 20px; margin-bottom: 25px;
color: #222; color: #222;
} }
input[type="text"] { input[type="text"] {
width: 100%; width: 100%;
padding: 12px; padding: 14px;
font-size: 1.1rem; font-size: 1.1rem;
border: 2px solid #ddd; border: 2px solid #ddd;
border-radius: 8px; border-radius: 8px;
outline: none; outline: none;
transition: border-color 0.2s; transition: border-color 0.2s;
box-sizing: border-box; box-sizing: border-box;
text-align: center;
margin-bottom: 10px;
} }
input[type="text"]:focus { input[type="text"]:focus {
border-color: var(--primary); border-color: var(--primary);
} }
.action-btn { /* BUTTONS */
.action-btn, .mode-select button {
width: 100%; width: 100%;
padding: 14px; padding: 16px;
font-size: 1rem; font-size: 1.1rem;
border: none; border: none;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
@ -89,42 +93,50 @@ input[type="text"]:focus {
color: white; color: white;
font-weight: bold; font-weight: bold;
transition: background 0.2s, transform 0.1s; 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.primary { background: var(--primary); }
.action-btn.secondary { background: var(--secondary); } .action-btn.secondary { background: var(--secondary); }
.action-btn.danger { background: var(--danger); } .action-btn.danger { background: var(--danger); }
/* Modus Auswahl Container - Buttons untereinander */
.mode-select { .mode-select {
display: flex;
flex-direction: column; /* Buttons untereinander auf Mobile */
gap: 10px;
margin-bottom: 20px;
width: 100%; width: 100%;
display: flex;
flex-direction: column;
gap: 0; /* Abstand wird über margin-bottom geregelt */
} }
/* Normale Buttons in der Modus-Auswahl */
.mode-select button { .mode-select button {
padding: 10px;
border: 2px solid #ddd;
background: white; background: white;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
color: #555; color: #555;
flex: 1; border: 2px solid #ddd;
text-align: center;
} }
/* Aktiver Button */
.mode-select button.active { .mode-select button.active {
border-color: var(--primary); border-color: var(--primary);
background: #e3f2fd; background: #e3f2fd;
color: var(--primary); 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 { .overlay {
display: none; /* Standardmäßig unsichtbar */ display: none;
position: fixed; position: fixed;
top: 0; left: 0; top: 0; left: 0;
width: 100%; height: 100%; width: 100%; height: 100%;
@ -149,33 +161,25 @@ input[type="text"]:focus {
.page-grid { .page-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 10px; gap: 10px;
margin: 20px 0; margin: 20px 0;
overflow-y: auto; overflow-y: auto;
flex: 1; flex: 1;
} }
.page-item { position: relative; } .page-item input[type="checkbox"] { display: none; } /* Checkbox verstecken, Label stylen */
.page-item input[type="checkbox"] {
position: absolute;
opacity: 0;
width: 100%;
height: 100%;
cursor: pointer;
}
.page-item label { .page-item label {
display: block; display: block;
padding: 10px; padding: 12px;
background: #f0f0f0; background: #f0f0f0;
border-radius: 6px; border-radius: 6px;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
color: #555; color: #555;
cursor: pointer;
border: 2px solid transparent; border: 2px solid transparent;
transition: all 0.2s;
} }
.page-item input:checked + label { .page-item input:checked + label {
@ -185,11 +189,12 @@ input[type="text"]:focus {
} }
/* FEEDBACK MESSAGES */ /* 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-correct { color: var(--success); }
.msg-wrong { color: var(--danger); } .msg-wrong { color: var(--danger); }
.msg-typo { color: var(--warning); } .msg-typo { color: var(--warning); }
/* Progress Bar */
.progress-container { .progress-container {
background: #fff; background: #fff;
border-top: 1px solid #eee; border-top: 1px solid #eee;
@ -199,25 +204,6 @@ input[type="text"]:focus {
position: sticky; position: sticky;
bottom: 0; bottom: 0;
} }
.progress-text { text-align: center; margin-bottom: 8px; font-size: 0.9rem; color: #666; }
.progress-text { .progress-bar-bg { width: 100%; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
text-align: center; .progress-bar-fill { height: 100%; width: 0%; background: var(--success); transition: width 0.3s; }
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;
}