body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

main {
    padding: 2rem;
}

footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cert-tile {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.cert-tile:hover {
    transform: translateY(-5px);
}

.cert-tile h3 {
    margin-top: 0;
    color: #333;
}

.cert-tile ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.cert-tile li {
    margin: 0.5rem 0;
}

.cert-tile a.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cert-tile a.btn:hover {
    background-color: #45a049;
}

/* Quiz Styles */
#progress {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

#timer {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

#time-bar {
    width: 100%;
    background-color: #ddd;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

#time-bar-fill {
    height: 100%;
    width: 100%;
    background-color: #4CAF50;
    transition: width 1s linear;
}

.question {
    display: none;
}

.question p {
    font-weight: bold;
    color: #333;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
}

button {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
}

.action-buttons {
    margin-top: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

a.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

a.btn:hover {
    background-color: #45a049;
}

/* Feedback */
.feedback {
    margin-top: 0.5rem;
    font-style: italic;
    color: green;
}

code {
    background-color: #f2f2f2;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

pre {
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    overflow-x: auto;
}

/* Accordion Styles */
.accordion {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin: 0;
}

.accordion-content {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.accordion-icon {
    font-size: 16px;
}

.top-buttons {
    margin-bottom: 2rem; /* Abstand nach unten */
    text-align: left;    /* Linksbündig für bessere Sichtbarkeit */
}

/* Dark Mode Styles */

/* Dark Mode Styles */
:root {
    --background-color: #f4f4f9;
    --text-color: #333;
    --header-background: #4CAF50;
    --header-text: white;
    --tile-background: #ffffff;
    --tile-border: #ddd;
    --footer-background: #f1f1f1;
    --code-background: #f2f2f2;
    --accordion-header: #f5f5f5;
    --label-color: #555;
    --question-color: #333;
    --progress-color: #333;
    --timer-color: #333;
}

.dark-mode {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --header-background: #2d6a30;
    --header-text: #f0f0f0;
    --tile-background: #1e1e1e;
    --tile-border: #444;
    --footer-background: #1a1a1a;
    --code-background: #2d2d2d;
    --accordion-header: #252525;
    --label-color: #e0e0e0;
    --question-color: #e0e0e0;
    --progress-color: #e0e0e0;
    --timer-color: #e0e0e0;
}

/* Anpassen der Textfarben für Label und Fragen */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--label-color);
}

.question p {
    font-weight: bold;
    color: var(--question-color);
}

#progress {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--progress-color);
}

#timer {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--timer-color);
}

/* Anpassungen für korrekte und falsche Antworten im Dark Mode */
.dark-mode .answer-correct {
    background-color: rgba(40, 167, 69, 0.3); /* Etwas stärkeres Grün für besseren Kontrast */
}

.dark-mode .answer-incorrect {
    background-color: rgba(220, 53, 69, 0.2); /* Etwas stärkeres Rosa für besseren Kontrast */
}

/* Anpassungen für Bereiche in der Ergebnisansicht */
.dark-mode .answer-list li.correct-answer {
    background-color: rgba(76, 175, 80, 0.25); /* Stärkeres Grün im Dark Mode */
}

.dark-mode .answer-list li.incorrect-answer {
    background-color: rgba(244, 67, 54, 0.25); /* Stärkeres Rot im Dark Mode */
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.question p,
.quiz-question h2,
.cert-tile h3,
.cert-tile li,
.result-item {
    /* Silbentrennung aktivieren */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

header {
    background-color: var(--header-background);
    color: var(--header-text);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

footer {
    background-color: var(--footer-background);
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
    transition: background-color 0.3s;
}

.cert-tile {
    background-color: var(--tile-background);
    border: 1px solid var(--tile-border);
    transition: transform 0.2s, background-color 0.3s, border-color 0.3s;
}

code, pre {
    background-color: var(--code-background);
    transition: background-color 0.3s;
}

.accordion-header {
    background-color: var(--accordion-header);
    transition: background-color 0.3s;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: var(--header-background);
    color: var(--header-text);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: #45a049;
}

.theme-toggle i {
    font-size: 20px;
}

/* Anpassung für die Quiz-Fragen in der Ergebnisansicht, identisch zum Quiz */
.quiz-question h2 {
    margin-bottom: 20px;
    font-size: 1.2em;
    line-height: 1.5;
    padding: 15px;
    background-color: var(--section-background);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Neue Stile für die zweispaltige Anzeige der Ergebnisse */
.results-container {
    margin: 20px 0;
}

.result-item {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid var(--tile-border);
    border-radius: 8px;
    background-color: var(--tile-background);
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.answer-column {
    padding: 10px;
    border-radius: 6px;
    background-color: var(--section-background);
}

.answer-column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--tile-border);
}

.answer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.answer-list li {
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.answer-list li.correct-answer {
    background-color: rgba(76, 175, 80, 0.15); /* Leicht grünlich */
}

.answer-list li.incorrect-answer {
    background-color: rgba(244, 67, 54, 0.15); /* Leicht rötlich/rosa */
}

.no-answer {
    opacity: 0.5;
    margin-right: 5px;
}

/* Stil für richtige und falsche Antworten */
.answer-correct {
    background-color: rgba(40, 167, 69, 0.2); /* Leichtes Grün */
    border-left: 4px solid #28a745;
    padding-left: 10px;
    transition: background-color 0.3s ease;
}

.answer-incorrect {
    background-color: rgba(220, 53, 69, 0.1); /* Leichtes Rosa */
    border-left: 4px solid #dc3545;
    padding-left: 10px;
    transition: background-color 0.3s ease;
}

/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }

    .answer-column {
        margin-bottom: 15px;
    }
}