/* Basis-Styles – werden ausgebaut */
* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    background: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Formulare */
.form-container {
    max-width: 420px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-control {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.form-check {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary { background: #0066cc; color: white; }
.btn-primary:hover { background: #0055aa; }

.field-error { color: #c00; font-size: 0.85rem; }
.form-hint   { margin-top: 1rem; font-size: 0.9rem; }

main {
    padding: 1rem 2rem;
}

.flash {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.flash.error { background: #fdd; border: 1px solid #f00; }
.flash.success { background: #dfd; border: 1px solid #0a0; }
.flash.info { background: #ddf; border: 1px solid #00a; }

/* Buttons */
.btn-secondary { background: #666; color: white; }
.btn-secondary:hover { background: #555; }
.btn-warning   { background: #e07800; color: white; }
.btn-warning:hover { background: #c06800; }

.btn-link { background: none; border: none; color: #0066cc; cursor: pointer;
            padding: 0; font-size: inherit; text-decoration: underline; }
.btn-link-danger { color: #c00; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.tabelle th, .tabelle td { padding: 0.6rem 0.8rem; text-align: left;
                            border-bottom: 1px solid #ddd; }
.tabelle th { background: #f4f4f4; font-weight: bold; }
.aktionen { display: flex; gap: 0.75rem; align-items: center; }

/* Status-Badges */
.status-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.status-vorbereitet { background: #eee;  color: #555; }
.status-freigegeben { background: #dfd;  color: #070; }
.status-gesperrt    { background: #fdd;  color: #900; }

/* Fragen-Liste */
.fragen-liste { list-style: none; padding: 0; }
.frage-item   { border: 1px solid #ddd; border-radius: 6px; padding: 1rem;
                margin-bottom: 0.75rem; }
.frage-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.frage-meta   { font-size: 0.85rem; color: #666; }
.frage-aktionen { margin-top: 0.5rem; display: flex; gap: 1rem; font-size: 0.9rem; }
.optionen-liste { margin: 0.5rem 0 0 1rem; padding: 0; list-style: none; }
.optionen-liste li { padding: 0.2rem 0; }
.optionen-liste li.korrekt { color: #070; font-weight: bold; }

/* Option-Zeile im Formular */
.option-zeile { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.option-zeile .form-control { flex: 1; }
