/* === Grundlayout === */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #000;
}

h2 {
    margin-top: 20px;
}

button, input[type="button"], input[type="submit"] {
    font-family: inherit;
    font-size: inherit;
}

.headline {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    margin: 0.4em 0 0.6em 0;
    color: black;
}

.section-title {
    color: #0000cc;
    font-weight: bold;
    font-size: 18px;
    margin-top: 30px;
}

a.grammatikhilfe-link {
    color: #007bff;
    text-decoration: underline;
}

a.grammatikhilfe-link:hover {
    color: #0056b3;
}

/* benötigt für: Benutzereinstellungen */
.form-block {
    display: inline-block;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px 40px;
    max-width: none;
}

.buttons {
    margin-top: 20px;
}

.buttons button {
    margin-right: 10px;
}

/* === Tabellen === */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
}

th, td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #eee;
}

th.sortable {
    cursor: pointer;
}

.sort-indicator {
    font-size: 0.8em;
    margin-left: 5px;
}

/* === Zeilenfarben für Status === */
tr.green {
    background-color: #a6e7a1 !important;
}

tr.yellow {
    background-color: #fff48a !important;
}

tr.orange {
    background-color: #ffb066 !important;
}

tr.white {
    background-color: #f2f2f2 !important;
}

/* === Dropdown-Menü === */
.user-dropdown {
    position: relative;
    display: inline-block;
    font-size: 14px;
    z-index: 1001;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.user-dropdown-content form,
.user-dropdown-content a {
    margin: 0;
}

.user-dropdown-content .dropdown-link {
    background: none;
    border: none;
    padding: 10px 14px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    color: #000;
}

.user-dropdown-content .dropdown-link:hover {
    background-color: #eee;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

/* === Buttons === */
button {
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

button.btn-delete {
    background-color: #f44336;
    color: white;
}

button.btn-activate {
    background-color: #4CAF50;
    color: white;
}

/* === Divider === */
.divider {
    border-bottom: 1px solid #444;
    margin: 20px 0;
}

/* === Nachrichten === */
.messages {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.messages li {
    padding: 10px;
    margin: 5px 0;
    border-left: 5px solid #33aa33;
    background-color: #e0ffe0;
    color: #333;
}

.messages li.error {
    background-color: #ffe0e0;
    border-left-color: #cc0000;
}

/* === Popup === */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

#popup-modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 9999;
}

#popup-message {
    margin-bottom: 16px;
    font-size: 16px;
}

#popup-input {
    display: none;
    width: 100%;
    padding: 6px;
    margin-bottom: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* === Auth-Container für Login, Registrierung, Passwort-Reset === */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1em;
}

.auth-container label {
    font-weight: bold;
}

.auth-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.auth-container button {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

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

.auth-links {
    text-align: center;
    margin-top: 1em;
    font-size: 0.95em;
}

.testaccount-hint {
    margin-top: 30px;
    padding: 15px;
    border: 1px dashed #aaa;
    background-color: #f4f4f4;
    border-radius: 8px;
    font-size: 0.95em;
    text-align: center;
}

/* Inaktive Lehrer optisch abheben */
  tr.inactive-teacher {
    color: grey;
    font-style: italic;
    opacity: 0.7;
  }

/* === Container-Box (Schulverwaltung, Userverwaltung etc.) === */
.container-box {
    max-width: 1400px; /* vorher 1000px */
    margin: 40px 0 30px 40px;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

/* === Tabellen Standard-Stil === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}

table th {
    background-color: #eee;
}

/* === Button-Container bei Aktionen === */
.button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.task-block {
    margin-bottom: 1.5em;
}

.section-title {
    margin-bottom: 0.8em;
}

/* === Formularfelder innerhalb von Boxen === */
.container-box input[type="text"],
.container-box input[type="url"],
.container-box input[type="email"],
.container-box input[type="password"],
.container-box input[type="datetime-local"],
.container-box select {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* === Formulareingabegruppen === */
.form-group {
    margin-bottom: 15px;
}

/* === Trennlinie === */
.divider {
    border: none;
    border-bottom: 1px solid #ccc;
    margin: 30px 0;
}

/*#dashboard-table tbody tr.selected td {
    border: 3px solid #007bff;
}*/

#dashboard-table tbody tr.selected {
    box-shadow: inset 0 0 0 3px #007bff, 0 0 4px rgba(0, 123, 255, 0.6);
}

.vh-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.8em; /* ⬅️ engerer Abstand */
  justify-content: start;
  margin-top: 1em;
}
.vh-choice {
  border: 4px solid transparent;
  border-radius: 8px;
  padding: 4px;
  transition: border 0.2s ease;
}
.vh-correct {
  border-color: #4CAF50;
}
.vh-wrong {
  border-color: #f44336;
}
.vh-word {
  font-size: 24px;
  font-weight: bold;
  color: black;
}
.section-title {
  margin-top: 1.5em;
  font-weight: bold;
  color: #1a4fc4;
}

.vh-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}
.vh-buttons {
  display: flex;
  gap: 0.8em;
}
.vh-hint {
  font-weight: bold;
  font-size: 18px;
  color: #0000cc;
  margin-top: 1.5em;
}

.feedback-buttons {
  display: flex;
  justify-content: space-between;
  width: 300px;
  margin-bottom: 1em;
}

.feedback-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn-feedback {
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: default;
}

.btn-feedback-correct {
  background-color: #a6e6a6;
  color: black;
}

.btn-feedback-wrong {
  background-color: #f6c6c6;
  color: black;
}



.vs-silbe-btn, .vs-control-btn {
  margin: 4px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#vs-anzeigefeld {
  white-space: nowrap;
  color: black;
  font-family: sans-serif;
}

.button-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.vs-eingabe-box {
  border: 1px solid #ccc;
  padding: 12px;
  background-color: #f9f9f9;
  margin-top: 15px;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

#vs-anzeigefeld-wrapper {
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  min-height: 40px;
  width: 100%;
  font-size: 18px;
  box-sizing: border-box;
  margin-top: 12px;
}

#class-filter-menu label { display:block; margin:4px 0; cursor:pointer; }
#class-filter-menu input[type="checkbox"] { margin-right:6px; }
