app/static/style.css aktualisiert

This commit is contained in:
sascha 2026-01-28 21:44:27 +00:00
parent 6bc0326580
commit 1f5d25c6b1

View File

@ -1,118 +1,235 @@
:root {
--primary: #8b0000; /* Dunkelrot */
--bg: #fdf5e6; /* Pergament */
--primary: #c0392b; /* Modernes Rot für Latein */
--primary-hover: #a93226;
--bg: #f4f6f8; /* Kühles Hellgrau (Modern) */
--card-bg: #ffffff;
--text: #333333;
--border: #dfe6e9;
--correct: #d4edda;
--correct-border: #28a745;
--wrong: #f8d7da;
--wrong-border: #dc3545;
--typo: #fff3cd;
--typo-border: #ffc107;
--incomplete: #fff3cd;
--incomplete-border: #ffc107;
}
* { box-sizing: border-box; }
body {
font-family: "Georgia", serif;
background: var(--bg);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg);
color: var(--text);
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
max-width: 500px; /* Handy-optimierte Breite */
width: 100%;
flex: 1;
margin: auto;
display: flex;
flex-direction: column;
justify-content: center;
gap: 20px;
}
h1 { text-align: center; color: #444; border-bottom: 2px solid var(--primary); padding-bottom: 10px; }
h1 {
text-align: center;
font-size: 1.8rem;
color: var(--primary);
margin-bottom: 10px;
font-weight: 700;
}
/* Lesson Grid */
/* --- CARD STYLE (Wie Englisch App) --- */
.card, #setup-screen {
background: var(--card-bg);
padding: 25px;
border-radius: 16px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.section-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 15px;
text-align: center;
color: #666;
}
/* --- LEKTIONEN WAHL (Chips statt Checkboxen) --- */
.lesson-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 10px;
margin-bottom: 20px;
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 8px;
margin-bottom: 25px;
max-height: 300px;
overflow-y: auto; /* Scrollen wenn zu viele */
}
.lesson-item input { display: none; }
.lesson-item label {
display: block;
padding: 10px;
background: #fff;
border: 1px solid #ccc;
padding: 10px 5px;
background: #f1f2f6;
border-radius: 8px;
text-align: center;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
color: #555;
transition: all 0.2s;
border: 2px solid transparent;
}
.lesson-item input:checked + label {
background: var(--primary);
color: white;
border-color: var(--primary);
box-shadow: 0 2px 5px rgba(192, 57, 43, 0.3);
}
/* --- OPTIONS --- */
.options {
text-align: center;
margin-bottom: 20px;
font-size: 1.1rem;
}
.card {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
text-align: center;
margin-bottom: 20px;
}
.question { font-size: 2.5rem; font-weight: bold; margin: 10px 0; }
.hint { font-style: italic; color: #666; margin-bottom: 20px; }
.input-row {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.lbl { width: 50px; font-weight: bold; color: #555; }
input[type="text"] {
flex: 1;
padding: 10px;
font-size: 1.1rem;
border: 2px solid #ddd;
border-radius: 4px;
}
.correct { background-color: var(--correct); border-color: green !important; }
.wrong { background-color: var(--wrong); border-color: red !important; }
.typo { background-color: var(--typo); border-color: orange !important; }
.incomplete { background-color: #fff3cd; border-color: #ffc107 !important; }
.quiz-controls {
display: flex;
flex-direction: column;
justify-content: center;
gap: 10px;
margin-bottom: 20px;
padding: 10px;
background: #f9f9f9;
border-radius: 8px;
}
.options input { transform: scale(1.2); }
.options label { cursor: pointer; font-size: 0.95rem; }
/* --- QUIZ AREA --- */
.label {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
color: #888;
margin-bottom: 5px;
}
.question {
font-size: 2rem;
font-weight: 800;
color: #2d3436;
margin: 5px 0 10px 0;
}
.hint {
font-style: italic;
color: #636e72;
margin-bottom: 25px;
font-size: 0.95rem;
min-height: 20px;
}
/* --- INPUTS --- */
.input-row {
margin-bottom: 15px;
text-align: left;
}
.lbl {
display: block;
font-size: 0.85rem;
font-weight: bold;
color: #666;
margin-bottom: 5px;
}
.quiz-input {
width: 100%;
padding: 14px;
font-size: 1.1rem; /* Groß genug für Handy (kein Zoom) */
border: 2px solid var(--border);
border-radius: 10px;
outline: none;
transition: border-color 0.2s;
background: #fff;
-webkit-appearance: none;
}
.quiz-input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}
/* Feedback Farben */
.correct { background-color: var(--correct); border-color: var(--correct-border) !important; color: #155724; }
.wrong { background-color: var(--wrong); border-color: var(--wrong-border) !important; color: #721c24; }
.typo { background-color: var(--typo); border-color: var(--typo-border) !important; color: #856404; }
.incomplete { background-color: var(--incomplete); border-color: var(--incomplete-border) !important; }
/* --- BUTTONS --- */
.action-btn {
width: 100%;
padding: 15px;
padding: 16px;
font-size: 1.1rem;
background: var(--primary);
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
font-weight: bold;
border-radius: 5px;
font-weight: 700;
letter-spacing: 0.5px;
transition: background 0.2s, transform 0.1s;
margin-top: 10px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.danger { background: #555; }
.action-btn:disabled { opacity: 0.5; }
.action-btn:hover { background: var(--primary-hover); }
.action-btn:active { transform: scale(0.98); }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.danger { background: #636e72; margin-top: 15px; }
/* --- FEEDBACK TEXT --- */
.feedback {
margin-top: 15px;
font-weight: bold;
font-size: 1.1rem;
min-height: 25px;
}
/* --- PROGRESS BAR --- */
.progress-container {
background: #fff;
padding: 10px;
text-align: center;
position: fixed;
bottom: 0; left: 0; right: 0;
background: white;
padding: 10px 20px;
border-top: 1px solid #eee;
z-index: 100;
display: flex;
flex-direction: column;
align-items: center;
}
#stats-text {
font-size: 0.85rem;
color: #666;
margin-bottom: 5px;
font-weight: 600;
}
.progress-bar-bg {
height: 8px;
background: #e9ecef;
width: 100%;
max-width: 500px;
border-radius: 4px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--primary);
width: 0%;
transition: width 0.4s ease;
border-radius: 4px;
}
.progress-bar-bg { height: 10px; background: #eee; width: 100%; margin-top: 5px; }
.progress-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s; }