app/static/style.css aktualisiert

This commit is contained in:
sascha 2026-01-28 15:48:23 +00:00
parent 9121d86c7f
commit 8de45e2873

View File

@ -8,6 +8,7 @@
--card-bg: #ffffff; --card-bg: #ffffff;
--text: #333; --text: #333;
} }
body { body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg); background-color: var(--bg);
@ -17,6 +18,7 @@ body {
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
} }
.container { .container {
flex: 1; flex: 1;
display: flex; display: flex;
@ -28,107 +30,112 @@ body {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
h1 { h1 {
font-size: 1.8rem; font-size: 1.8rem;
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; text-align: center;
color: #444; color: #444;
} }
.card { .card {
background: var(--card-bg); background: var(--card-bg);
padding: 25px; padding: 25px;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08); box-shadow: 0 4px 12px rgba(0,0,0,0.08);
width: 100%; width: 100%;
text-align: center;
box-sizing: border-box;
margin-bottom: 20px; margin-bottom: 20px;
box-sizing: border-box;
} }
.label { .label {
font-size: 0.9rem; font-size: 0.9rem;
color: #666; color: #888;
margin-bottom: 5px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
margin-bottom: 10px;
} }
.question { .question {
font-size: 1.6rem; font-size: 1.6rem;
font-weight: 700; font-weight: bold;
margin: 15px 0 25px 0; margin-bottom: 20px;
word-wrap: break-word; color: #222;
} }
input[type="text"] { input[type="text"] {
width: 100%; width: 100%;
padding: 12px 15px; padding: 12px;
font-size: 1.1rem; font-size: 1.1rem;
border: 2px solid #ddd; border: 2px solid #ddd;
border-radius: 8px; border-radius: 8px;
box-sizing: border-box;
outline: none; outline: none;
transition: border-color 0.3s; transition: border-color 0.2s;
-webkit-appearance: none; box-sizing: border-box;
} }
input[type="text"]:focus { input[type="text"]:focus {
border-color: var(--primary); border-color: var(--primary);
} }
button {
.action-btn {
width: 100%; width: 100%;
padding: 14px; padding: 14px;
font-size: 1rem;
border: none; border: none;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
font-size: 1rem; background: var(--success);
font-weight: 600; color: white;
font-weight: bold;
transition: background 0.2s, transform 0.1s;
margin-bottom: 10px; margin-bottom: 10px;
transition: transform 0.1s, opacity 0.2s;
-webkit-tap-highlight-color: transparent;
}
button:active {
transform: scale(0.98);
} }
.action-btn:active { transform: scale(0.98); }
.action-btn.primary { background: var(--primary); }
.action-btn.secondary { background: var(--secondary); }
.action-btn.danger { background: var(--danger); }
.mode-select { .mode-select {
display: grid; display: flex;
grid-template-columns: 1fr 1fr 1fr; flex-direction: column; /* Buttons untereinander auf Mobile */
gap: 8px; gap: 10px;
margin-bottom: 20px; margin-bottom: 20px;
width: 100%; width: 100%;
} }
.mode-select button { .mode-select button {
font-size: 0.9rem; padding: 10px;
padding: 10px 5px; border: 2px solid #ddd;
background: #e0e0e0; background: white;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
color: #555; color: #555;
margin-bottom: 0; flex: 1;
} }
.mode-select button.active { .mode-select button.active {
background: var(--primary); border-color: var(--primary);
color: white; background: #e3f2fd;
color: var(--primary);
} }
.action-btn.primary { background-color: var(--primary); color: white; }
.action-btn.secondary { background-color: var(--secondary); color: white; } /* --- OVERLAY (WICHTIG!) --- */
.action-btn.danger { background-color: var(--danger); color: white; }
.action-btn { margin-top: 5px; }
#feedback-msg {
margin-top: 15px;
min-height: 1.2em;
font-weight: 500;
line-height: 1.4;
}
.msg-correct { color: var(--success); }
.msg-wrong { color: var(--danger); }
.msg-typo { color: #d39e00; }
.overlay { .overlay {
display: none; display: none; /* Standardmäßig unsichtbar */
position: fixed; position: fixed;
top: 0; left: 0; top: 0; left: 0;
width: 100%; height: 100%; width: 100%; height: 100%;
background: rgba(0,0,0,0.6); background: rgba(0,0,0,0.5);
z-index: 1000; z-index: 1000;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.overlay-content { .overlay-content {
background: white; background: white;
padding: 20px; padding: 20px;
@ -139,6 +146,7 @@ button:active {
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(70px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
@ -147,7 +155,9 @@ button:active {
overflow-y: auto; overflow-y: auto;
flex: 1; flex: 1;
} }
.page-item { position: relative; } .page-item { position: relative; }
.page-item input[type="checkbox"] { .page-item input[type="checkbox"] {
position: absolute; position: absolute;
opacity: 0; opacity: 0;
@ -155,6 +165,7 @@ button:active {
height: 100%; height: 100%;
cursor: pointer; cursor: pointer;
} }
.page-item label { .page-item label {
display: block; display: block;
padding: 10px; padding: 10px;
@ -166,11 +177,19 @@ button:active {
border: 2px solid transparent; border: 2px solid transparent;
transition: all 0.2s; transition: all 0.2s;
} }
.page-item input:checked + label { .page-item input:checked + label {
background: #e3f2fd; background: #e3f2fd;
border-color: var(--primary); border-color: var(--primary);
color: var(--primary); color: var(--primary);
} }
/* FEEDBACK MESSAGES */
#feedback-msg { margin-top: 15px; font-weight: bold; }
.msg-correct { color: var(--success); }
.msg-wrong { color: var(--danger); }
.msg-typo { color: var(--warning); }
.progress-container { .progress-container {
background: #fff; background: #fff;
border-top: 1px solid #eee; border-top: 1px solid #eee;
@ -180,28 +199,25 @@ button:active {
position: sticky; position: sticky;
bottom: 0; bottom: 0;
} }
.progress-text { .progress-text {
text-align: center; text-align: center;
margin-bottom: 8px; margin-bottom: 8px;
font-size: 0.9rem; font-size: 0.9rem;
font-weight: 600; color: #666;
color: #555;
} }
.progress-bar-bg { .progress-bar-bg {
background: #e9ecef; width: 100%;
height: 12px; height: 8px;
border-radius: 6px; background: #eee;
border-radius: 4px;
overflow: hidden; overflow: hidden;
} }
.progress-bar-fill { .progress-bar-fill {
height: 100%; height: 100%;
width: 0%; width: 0%;
transition: width 0.4s ease, background-color 0.4s ease; background: var(--success);
} transition: width 0.3s ease, background-color 0.3s;
@media (max-width: 480px) {
h1 { font-size: 1.5rem; }
.card { padding: 20px; }
.question { font-size: 1.4rem; }
.mode-select { display: flex; flex-direction: column; }
.mode-select button { width: 100%; padding: 12px; }
} }