*, *::before, *::after {
  box-sizing: border-box;
}

.input-full {
  display: block;
  width: 100%;
}

.input-inline,
.label-inline {
  display: inline;
  width: auto;
}

/* === Funktionskacheln (Verwaltungs-Startseite) === */
.function-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.function-card-link {
  text-decoration: none;
}

.function-card {
  background: #fff;
  border: 1.5px solid #e0e3e9;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  height: 100%;
}

.function-card-link:hover .function-card {
  border-color: var(--green-light);
  box-shadow: 0 4px 16px rgba(106, 170, 116, 0.15);
}

.function-card-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.function-card-title {
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.function-card-desc {
  font-size: 0.82rem;
  color: #999;
}

.section-heading {
  margin-top: 2rem;
  margin-bottom: 0;
}

/* === Kursliste Filter === */
.filter-bar {
  background: #fff;
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group .group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip input[type="checkbox"],
.filter-chip input[type="radio"] {
  display: none;
}

.filter-chip label {
  display: inline-block;
  padding: 3px 11px;
  border: 1.5px solid var(--light-gray);
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  color: #555;
  background: var(--very-light-gray);
  user-select: none;
}

.filter-chip input:checked + label {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.filter-chip label:hover {
  border-color: var(--green-light);
}

.filter-reset {
  font-size: 0.8rem;
  color: #aaa;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 2px;
  text-decoration: underline;
  align-self: flex-end;
}

.filter-reset:hover {
  color: var(--red-dark);
}

body {
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #222;
  font-size: 15px;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.3rem;
}

li::before {
  content: "-";
  position: absolute;
  left: 0.5rem;
  color: #555;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrapper {
  margin: 2rem auto;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
}

#content {
  background-color: var(--white);
  border-radius: 14px;
  border: 1.5px solid var(--light-gray);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.09);
  padding: 1.5rem;
}

.header-wrapper {
  padding: 1rem;
  background-color: #ffffff;
  color: #1a1a2e;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.09);
  border: 1.5px solid #e0e3e9;
  text-align: center;
}

.context-wrapper {
  margin-bottom: 1rem;
  display: flex;
  gap: 2%;
}

.left-wrapper,
.right-wrapper,
.center-wrapper {
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.09);
  border: 1.5px solid var(--light-gray);
  padding: 1rem;
  height: 100%;
  top: 2rem;
  display: flex;
  flex-direction: column;
}

.left-wrapper {
  width: 70%;
}

.right-wrapper {
  width: 30%;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.center-wrapper {
  width: 100%;
  height: fit-content;
}

.foot-wrapper {
  margin-top: auto;
  text-align: center;
}

.course {
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f8f9fb;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 0;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 0;
  margin-bottom: 20px;
}

h3 {
  color: #1a1a2e;
}

p {
  line-height: 1.7;
  color: #444;
  margin: 0 0 16px;
}

b {
  color: #222;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--very-light-gray);
  color: #222;
}

select:focus {
  outline: none;
  border-color: var(--green-light);
}

label {
  font-weight: 600;
  display: block;
  color: #333;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  border: 1.5px solid var(--light-gray);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--very-light-gray);
  color: #222;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-light);
}

label.required::after {
  content: ' *';
  color: var(--red);
}

input.field-error,
textarea.field-error,
input.field-error:focus,
textarea.field-error:focus {
  border-color: var(--red);
}

.char-hint {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 3px;
}

.kurs-form > .char-hint {
  grid-column: 2;
  margin-top: calc(-0.75rem + 3px);
}

.char-hint.char-hint-error {
  color: var(--red);
}

button,
input[type="button"] {
  background: #fff;
  color: var(--green);
  border: 1.5px solid var(--greenish-gray-light);
  border-radius: 7px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

button:hover,
input[type="button"]:hover {
  background: var(--green-light);
  color: #fff;
  border-color: var(--green-light);
}

.submit-button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--green);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s;
}

.submit-button:hover {
  background-color: var(--green-dark);
}

.submit-button.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.danger-button {
  padding: 0.5rem 1rem;
  background-color: #fff;
  color: var(--red-dark);
  border: 1.5px solid var(--redish-gray-light);
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.danger-button:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.info-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #555;
}

.error {
  color: var(--red-dark);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

#errorMsg,
#deadlineMsg {
  background-color: #fff5f5;
  border: 1.5px solid #f5c6cb;
  border-radius: 7px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  color: var(--red-dark);
  font-weight: 600;
  display: none;
}

.success {
  background-color: #f0fff4;
  border: 1.5px solid var(--greenish-gray-light);
  border-radius: 7px;
  padding: 10px;
  margin-top: 15px;
  color: var(--green);
  font-weight: 600;
  display: none;
}

.linkbutton,
.realbutton {
  padding: 5px 10px;
  border: 1.5px solid var(--greenish-gray-light);
  background-color: var(--very-light-gray);
  border-radius: 7px;
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}

.linkbutton.no-bold,
.realbutton.no-bold {
  font-weight: normal;
}

.linkbutton:hover,
.realbutton:hover {
  background-color: var(--green-light);
  color: #fff;
  border-color: var(--green-light);
  text-decoration: none;
}

.kurs-item {
  /* wrapper bleibt im HTML, kein eigenes Layout nötig */
}

.kurs-item-body {
  /* wrapper bleibt im HTML, kein eigenes Layout nötig */
}

.kurs-foto-thumb {
  display: block;
  width: 120px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.kurs-ansicht {
  display: grid;
  grid-template-columns: 13rem 1fr;
  column-gap: 1rem;
  row-gap: 0.3rem;
  align-items: baseline;
  margin: 0;
}

.kurs-ansicht dt {
  font-weight: 600;
  color: #666;
}

.kurs-ansicht dd {
  margin: 0;
}

.kurs-form {
  display: grid;
  grid-template-columns: 15rem 1fr;
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: start;
  margin-bottom: 1rem;
}

.kurs-form > label {
  padding-top: 8px;
}

.kurs-form textarea {
  height: 100px;
}

.kurs-form > div {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-link {
  color: #999;
  text-decoration: none;
  font-weight: 600;
}

/* Kategorie-Container Styles */
.category-container {
  margin-bottom: 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  border-left: 9px solid var(--light-gray);
}

.category-header {
  background-color: var(--very-light-gray);
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1.5px solid var(--light-gray);
  transition: background-color 0.15s ease;
}

.category-header:hover {
  background-color: #f0f4f1;
}

.category-title {
  margin: 0;
  font-size: 1.1rem;
  color: #1a1a2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.category-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #ffffff;
  padding: 0 1rem;
}

.category-content .course {
  margin-bottom: 1rem;
}

.category-content .course:last-child {
  margin-bottom: 0;
}

.mtop0 {
  margin-top: 0;
}

/* Akzentfarben am linken Rand für Kategorien */
.category-color-1 { border-left-color: #e83e4c; }
.category-color-2 { border-left-color: #eb9f35; }
.category-color-3 { border-left-color: #ffe603; }
.category-color-4 { border-left-color: #23a842; }
.category-color-5 { border-left-color: #4a90e2; }
.category-color-6 { border-left-color: #9b59b6; }

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

input.input-short,
select.input-short,
.input-group.input-short {
  width: 280px;
  max-width: 100%;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group input {
  border-radius: 7px 0 0 7px;
  border-right: none;
  flex: 1;
  width: auto;
}

.input-group input:focus {
  border-color: var(--green-light);
  z-index: 1;
}

.input-group-suffix {
  border: 1.5px solid var(--light-gray);
  border-radius: 0 7px 7px 0;
  padding: 7px 10px;
  background: #f0f2f5;
  color: #555;
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.checkbox-container {
  padding: 3px 11px;
  border: 1.5px solid var(--light-gray);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--very-light-gray);
  color: #555;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
  font-weight: normal;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkbox-container:has(input:checked) {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.checkbox-container:not(.disabled):hover {
  border-color: var(--green-light);
}

.checkbox-container.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* -------------------------------------------------------
   Wahlsimulation Modal
   ------------------------------------------------------- */
#sim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.sim-modal {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.sim-form-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sim-form-row > label:first-child {
  min-width: 90px;
  font-weight: 600;
  padding-top: 6px;
}

.sim-form-row select {
  flex: 1;
}

.sim-modus-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sim-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

/* === Statistik-Chart === */
.tables-side-by-side {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tables-side-by-side h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}
.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.chart-wrapper {
  max-width: 860px;
  margin-bottom: 32px;
}

/* === Statistik-Tabellen === */
.data-table {
  width: fit-content;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.data-table th,
.data-table td {
  padding: 6px 14px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th {
  background: #f5f5f5;
  font-weight: 600;
}

/* === Kurs-Thumbnail (SuS-Ansicht) === */
.kurs-thumb {
  display: block;
  width: 160px;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  margin-bottom: 0.75rem;
}

/* === Lightbox === */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
  display: block;
}

@media (min-width: 641px) {
  #lightbox-img {
    max-width: 65vw;
    max-height: 70vh;
  }
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1.1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}

#lightbox-close:hover,
#lightbox-close:focus {
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}
.upload-zone {
  border: 2px dashed var(--greenish-gray-light);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--very-light-gray);
  margin-bottom: 0;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--green-light);
  background: #f0f7f2;
}

.upload-zone-icon {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
  pointer-events: none;
}

.upload-zone-text {
  font-size: 0.92rem;
  color: #444;
  font-weight: 600;
  margin-bottom: 0.2rem;
  pointer-events: none;
  word-break: break-all;
}

.upload-zone-hint {
  font-size: 0.76rem;
  color: #999;
  pointer-events: none;
}

.upload-zone-preview {
  display: none;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: contain;
}

/* === Schüler suchen (Verwaltung) === */
.schueler-info {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.schueler-info strong {
  color: #1a1a2e;
}

#result-section,
#reassign-section,
#any-assign-section {
  display: none;
}

.data-table .zuweisen-btn {
  padding: 4px 12px;
  font-size: 0.85rem;
}

.highlight-row td {
  background: #f0fff4;
  font-weight: 600;
}

#status-msg {
  display: none;
  margin-top: 0.75rem;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
}

#status-msg.success {
  display: block;
  background: #f0fff4;
  border: 1.5px solid var(--greenish-gray-light);
  color: var(--green);
}

#status-msg.error {
  display: block;
  background: #fff5f5;
  border: 1.5px solid #f5c6cb;
  color: var(--red-dark);
}

.any-assign-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.any-assign-row select {
  min-width: 280px;
  max-width: 100%;
}

/* === Kurs-Schülerliste (Verwaltung) === */
.kurs-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.kurs-filter-row select {
  min-width: 320px;
  max-width: 100%;
}

#kurs-search {
  min-width: 240px;
  max-width: 100%;
}

#kurs-status-msg {
  display: none;
  margin-bottom: 0.75rem;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
}

#kurs-status-msg.error {
  display: block;
  background: #fff5f5;
  border: 1.5px solid #f5c6cb;
  color: var(--red-dark);
}

.kurs-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.kurs-cell .ki {
  position: relative;
  cursor: help;
  color: var(--green-light);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1;
}

.kurs-cell .ki::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}

.kurs-cell .ki:hover::after {
  opacity: 1;
}

/* === Seiten-Footer === */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  text-align: center;
  padding: 20px 16px;
  font-size: 0.875rem;
  color: #666;
}

.site-footer a {
  color: #555;
  text-decoration: none;
  margin: 0 8px;
}

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

/* === Zugangsdaten-Box nach Benutzeranlage === */
.credentials-box {
  background: #f0fff4;
  border: 2px solid var(--green-light);
  border-radius: var(--r8);
  padding: 1rem 1.25rem;
  line-height: 1.6;
}

.credentials-box code {
  background: #fff;
  border: 1px solid var(--greenish-gray-light);
  border-radius: var(--r4);
  padding: 2px 8px;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* === Tag-Badges (Aufgabenliste) === */
.tag-badge {
  display: inline-block;
  background: var(--very-light-gray);
  border: 1px solid var(--light-gray);
  border-radius: var(--r4, 4px);
  padding: 1px 7px;
  font-size: 0.8rem;
  margin: 1px 2px 1px 0;
  white-space: nowrap;
}

/* === Markdown-Vorschau (Aufgabenformular) === */
.md-hint {
  font-size: 0.8rem;
  font-weight: normal;
  color: #888;
}

.md-preview-row {
  margin-bottom: 0.75rem;
}

.md-preview-btn {
  font-size: 0.82rem;
  padding: 2px 10px;
  background: var(--very-light-gray);
  border: 1px solid var(--light-gray);
  border-radius: var(--r4, 4px);
  cursor: pointer;
  margin-bottom: 0.4rem;
}

.md-preview {
  border: 1.5px solid var(--light-gray);
  border-radius: var(--r8, 8px);
  padding: 0.75rem 1rem;
  background: #fafbfc;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Markdown-gerenderter Inhalt (hilfe.php + Vorschau) === */
.md-content p,
.md-preview p { margin: 0 0 0.6em; }

.md-content p:last-child,
.md-preview p:last-child { margin-bottom: 0; }

.md-content ul,
.md-content ol,
.md-preview ul,
.md-preview ol { margin: 0 0 0.6em 1.25em; padding: 0; }

.md-content code,
.md-preview code {
  background: var(--very-light-gray);
  border: 1px solid var(--light-gray);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.md-content pre,
.md-preview pre {
  background: var(--very-light-gray);
  border: 1px solid var(--light-gray);
  border-radius: var(--r4, 4px);
  padding: 0.75rem;
  overflow-x: auto;
}

.md-content pre code,
.md-preview pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Block-Mathe ($$...$$) zentriert */
.math-block {
  text-align: center;
  margin: 0.75em 0;
  overflow-x: auto;
}

/* Einrückungen via Markdown-Blockquote (> Text) */
.md-content blockquote,
.md-preview blockquote {
  margin: 0.4em 0 0.4em 1.5em;
  padding: 0;
  border: none;
  color: inherit;
  font-style: normal;
}

.md-content blockquote blockquote,
.md-preview blockquote blockquote {
  margin-left: 1.5em;
}

td.kurs-match {
  background-color: #d4edda !important;
}

/* === Kurs-Detailkarte === */
.kurs-detail-card {
  background: var(--very-light-gray);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.kurs-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}

.kurs-detail-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kurs-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
}

.kurs-detail-value {
  font-size: 0.9rem;
  color: #1a1a2e;
}

.kurs-detail-desc {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: #555;
  border-top: 1px solid var(--light-gray);
  padding-top: 0.6rem;
  white-space: pre-wrap;
}

