/* Grundlayout */
body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #222;
    background: #f9f9f9;
    background-image: url('../images/design/ship_sketch.svg'); /* oder wie du sie nennst */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* bleibt beim Scrollen stehen, wirkt wie "Wasserzeichen" */
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #222;
    padding-bottom: 0.5rem;
}

/* Frage */
.frage {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Antwort-Buttons */
.antworten {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.antworten form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
}

.antworten button {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    min-height: 0;
    line-height: 1.6;
}

.antworten button:hover {
    background: #eee;
}

/* Feedback-Antworten */
.antwort-feedback {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.antwort-feedback p {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    line-height: 1.6;
    margin: 0;
}

.richtig {
    background: #d4edda;
    border-color: #28a745 !important;
    color: #155724;
}

.falsch {
    background: #f8d7da;
    border-color: #dc3545 !important;
    color: #721c24;
}

.neutral {
    background: #fff;
    border: 1px solid #ccc;;
}

/* Feedback-Text */
.feedback-text {
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Nächste Frage Button */
.btn-naechste {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-naechste:hover {
    background: #444;
}

nav {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

nav a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #222;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Tonsymbole */
.ton-kurz {
    display: inline-block;
    width: 24px;
    height: 12px;
    background: #000;
    vertical-align: middle;
}

.ton-lang {
    display: inline-block;
    width: 84px;
    height: 12px;
    background: #000;
    vertical-align: middle;
}

/* Fragenübersicht */
.fragen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.fragen-nr {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #222;
    font-size: 0.9rem;
    border-width: 3px;
}

.fragen-nr:hover {
    background: #eee;
}

.frage-bilder {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.frage-bilder img {
    max-width: 100%;
    height: auto;
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
    font-size: 0.85rem;
}

footer a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #666;
}

footer a:hover {
    text-decoration: underline;
}

/* Login-Formular */
.login-formular {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f0f0f0;
}

.login-formular input[type="text"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    margin-right: 0.5rem;
}

.login-formular button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-formular button:hover {
    background: #444;
}

/* Farbkodierung Lernfortschritt */
.fragen-nr.noch-nicht {
    background: #f0f0f0;
    color: #aaa;
    border-color: #ddd;
}

.fragen-nr.schwach {
    background: #ffe0cc;
    border-color: #ff6600;
    color: #cc4400;
}

.fragen-nr.gut {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.fragen-nr.sehr-gut {
    background: #1a7a34;
    border-color: #145a27;
    color: #fff;
}

/* Statistiktabelle */
.statistik-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.statistik-tabelle th,
.statistik-tabelle td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.statistik-tabelle th {
    background: #f0f0f0;
    font-weight: bold;
}

.statistik-tabelle tr:hover {
    background: #f9f9f9;
}

.statistik-tabelle .sehr-gut {
    background: #1a7a34;
    color: #fff;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

.statistik-tabelle .gut {
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

.statistik-tabelle .schwach {
    background: #ffe0cc;
    color: #cc4400;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

/* Prüfungsheader */
.pruefung-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.countdown {
    color: #222;
}

.countdown.warnung {
    color: #cc4400;
}

/* Prüfungsauswertung */
.auswertung-ergebnis {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
}

.auswertung-ergebnis.bestanden {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.auswertung-ergebnis.nicht-bestanden {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

.falsche-frage {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ccc;
}

/* Merk-Button */
.btn-merken {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.btn-merken.gemerkt {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.btn-merken:hover {
    background: #eee;
}

.h1-mit-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-merken {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 110px;
    text-align: center;
}

.btn-merken.gemerkt {
    background: #fff9c4;
    border-color: #f0c040;
    color: #7a6000;
}

.btn-merken:hover {
    background: #f5f5f5;
}

.fragen-nr.gemerkt {
    border-color: #f0c040;
    border-width: 3px;
}

/* Fehler-Button */
.btn-fehler {
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.btn-fehler:hover {
    background: #eee;
}

.btn-fehler.gemeldet {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    cursor: default;
}

.statistik-tabelle tr.gemerkt-zeile {
    background: #fffde7;
}
