/* --- GLOBALE EINSTELLUNGEN --- */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #e3f2fd;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
}

main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- KARTEN-SYSTEM (Hauptseite & alle Unterseiten) --- */
.section-card, .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.section-card h2, .card h2 {
    color: #1e88e5;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    font-size: 1.6em;
}

/* --- TEXTELEMENTE & LISTEN --- */
ul {
    padding-left: 20px;
}

li {
    margin-bottom: 12px;
}

.explain {
    font-size: 14px;
    color: #555;
    margin-left: 18px;
    display: block;
    font-weight: normal;
}

code {
    background-color: #eee;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* --- FARBIGE BOXEN (Info & Sprechtext) --- */
.merke {
    border-left: 6px solid #4caf50;
    background: #e8f5e9;
}

.warnung, .example {
    border-left: 6px solid #f44336;
    background: #fdecea;
    padding: 15px;
    border-radius: 6px;
}

.example.good {
    border-left-color: #4caf50;
    background: #e8f5e9;
}

/* --- NAVIGATION / LINKS (Haupseite) --- */
.link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1e88e5;
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 1.3em;
    transition: transform 0.2s, background 0.2s;
}

.link-card i {
    font-size: 1.5em;
}

.link-card:hover {
    background: #1565c0;
    transform: scale(1.03);
}

/* --- QUIZ-STEUERUNG (Quiz.html) --- */
.answers {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.answers button {
    flex: 1;
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.answers button:hover {
    background-color: #1565c0;
}

.answers button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    display: none;
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
}

.correct {
    background-color: #d0f0c0;
    border-left: 6px solid #4caf50;
    color: #1b5e20;
    display: block; /* wird via JS gesteuert */
}

.wrong {
    background-color: #fcdcd8;
    border-left: 6px solid #f44336;
    color: #b71c1c;
    display: block; /* wird via JS gesteuert */
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #90a4ae;
    color: white;
    font-size: 14px;
    margin-top: 40px;
}
