body {
    background-color: #353533;
    color: whitesmoke;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px 20px 20px;
    background-color: #333;
    border-radius: 8px;
}

.color-picker {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.color-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.events-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.events-table th,
.events-table td {
    border: 1px solid #555;
    padding: 10px;
    text-align: left;
}
.events-table td.timestamp {
    font-size: 11px;
}
.events-table th {
    background-color: #444;
    color: whitesmoke;
    font-weight: bold;
}
.events-table tbody tr:nth-child(odd) {
    background-color: var(--color-odd, #353533); /* Fallback zu Standard */
}

.events-table tbody tr:nth-child(even) {
    background-color: var(--color-even, #353533); /* Fallback zu Standard */
}

.events-table input,
.events-table textarea,
.events-table select {
    padding: 6px;
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: whitesmoke;
    border: 1px solid #555;
    border-radius: 4px;
}
.events-table input:focus,
.events-table textarea:focus,
.events-table select:focus {
    border: 2px solid #ebb000;
    outline: none;
}
.events-table textarea {
    height: 50px;
    margin-bottom: 6px;
    resize: vertical;
    width: 200px;
}

/* Styling für die Ersteller-Spalte */
#events-table th:nth-child(10), #events-table td:nth-child(10) {
    display: none;
}

.toggle-creator-checkbox:checked ~ #events-table th:nth-child(10),
.toggle-creator-checkbox:checked ~ #events-table td:nth-child(10) {
    display: table-cell;
}

/* Container für den Button */
.table-header-container {
    display: flex;
    justify-content: flex-end; /* Button ganz rechts */
    margin-bottom: 10px; /* Abstand zur Tabelle */
}

/* Styling für den Toggle-Button */
.toggle-creator-btn {
    cursor: pointer;
    padding: 2px 4px;
    background-color: #333;
    border-radius: 3px;
    border: 1px solid #ff0000;
    margin: 0 0 10px 20px;
    display: inline-block;
    font-size: 10px;
}
.toggle-creator-btn:hover {
  border: 1px solid whitesmoke;
  background-color: #8B0000;
}

/* Checkbox unsichtbar machen */
.toggle-creator-checkbox {
    display: none;
}

.small-center {
  font-size: 11px;
  text-align: center;
  margin: auto;
}
.description-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.entry-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.entry-select {
    width: 150px;
}
.va-type-text[style*="display:none"],
.ak-price[style*="display:none"],
.link-field[style*="display:none"],
.reduced-price[style*="display:none"],
.price-suffix[style*="display:none"],
.reduced-suffix[style*="display:none"] {
    display: none;
}
.input-short {
    width: 50px;
}
.input-price {
    width: 35px;
}
.input-medium {
    width: 150px;
}
.input-link {
    width: 170px;
}

.delete-btn,
.save-as-preset {
  cursor: pointer;
  font-size: 16px;
  background-color: #636363;
  border-radius: 50%;
  padding: 5px;
  height: 20px;
  width: 20px;
  text-align: center;
  line-height: 20px;
  vertical-align: middle;
}
.delete-btn {
    color: #A91101;
}
.delete-btn:hover {
    color: #FF0800;
}

.save-as-preset {
    color: #21bd1f;
}
.save-as-preset:hover {
    color: #00ff00;
}


.cancel-btn,
.add-btn,
.edit-presets-btn,
.save-btn,
.logout-btn {
    background-color: #ebb000;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
    margin: 10px 0;
}
.save-btn {
  margin-top: 10px !important ;
}
.cancel-btn:hover,
.add-btn:hover,
.edit-presets-btn:hover,
.save-btn:hover,
.logout-btn:hover {
    background-color: #ffd700;
}
input[data-jscolor] {
    width: 100px;
    padding: 6px;
    background-color: #2a2a2a;
    border: 1px solid #ebb000;
    border-radius: 4px;
    color: whitesmoke;
    cursor: pointer;
}
input[data-jscolor]:focus {
    border-color: #ffd700;
    outline: none;
}
.error {
    color: #FF0800;
    font-weight: bold;
}
.success {
    color: #00ff00;
    font-weight: bold;
}
.form-group select {
    width: 120px;
    padding: 6px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: whitesmoke;
}

/* NEU */
.login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input {
    width: 75%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-group input:focus {
    border: 2px solid #ebb000;
    outline: none;
}
.login-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.login-btn:hover {
    background-color: #0056b3;
}
/* Bestehende Stile für .login-container, etc. bleiben erhalten */
main#content {
  padding-top: 0 !important;
}
.month-nav {
    margin: 0;
    text-align: center;
    border-top: 1px solid #333;
    min-height: 25px !important;
    padding: 10px 0;
}

.month-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 5px auto;
    background-color: #555;
    height: 25px;
    border-radius: 3px;
}

.month-nav li {
    margin: 3px 5px;
}

.month-nav a {
    text-decoration: none;
    color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.month-nav a:hover {
    background-color: #ebb000;
    color: #000;
}

.month-nav a.active {
    background-color: #ebb000;
    color: #000;
}
/* Hebt die Zentrierung für den Admin-Bereich auf */
#admin-form, .month-links, .color-picker {
    text-align: left;
    margin-left: 0;
}

/* Optional: Stelle sicher, dass die Tabelle die volle Breite nutzt */
#events-table {
    width: 100%;
    margin: 0;
}

/* NEU */

/* Breitere Eingabefelder für Name und Beschreibung */
#events-table input.name-input,
#events-table textarea.description-input {
    min-width: 200px; /* Breiter für bessere Lesbarkeit */
}

/* Beschreibung als textarea */
#events-table textarea.description-input {
    resize: vertical; /* Nur vertikal skalierbar */
    min-height: 50px;
}

/* Scrollbare Tabelle */
#events-table-container {
    overflow-x: auto;
    max-width: 100%;
}



/* Modal-Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dunklerer Hintergrund */
    z-index: 1000;
    overflow-y: auto; /* Vertikales Scrollen für lange Modals */
}

.modal-content {
    background-color: #333; /* Dunkles Theme */
    color: whitesmoke; /* Textfarbe */
    margin: 5% auto; /* Höher positioniert */
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative; /* Für den Schließen-Button */
    max-height: 80vh; /* Maximale Höhe, um Scrollen zu ermöglichen */
    overflow-y: auto; /* Vertikales Scrollen innerhalb des Modals */
    text-align: right;
}
.modal-content form {
  margin: 0;
  width: 90% !important;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content .form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.modal-content label {
    width: 150px;
    flex-shrink: 0;
}
.modal-content input.time {
  width: 60px;
}
.modal-content .event-date {
  width: 140px;
}
.modal-content select.entry {
  width: 120px;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
    /*width: calc(100% - 160px);*/
    width: 90%;
    padding: 6px;
    background-color: #2a2a2a;
    color: whitesmoke;
    border: 1px solid #555;
    border-radius: 4px;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border: 2px solid #ebb000;
    outline: none;
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #whitesmoke;
    cursor: pointer;
}

.close-btn:hover {
    color: #ffd700;
}

/* Buttons im Modal */
.modal-content .save-btn,
.modal-content .cancel-btn {
    background-color: #ebb000;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 5px 0 0;
}

.modal-content .cancel-btn {
    background-color: #555;
    color: whitesmoke;
}

.modal-content .save-btn:hover {
    background-color: #ffd700;
}

.modal-content .cancel-btn:hover {
    background-color: #777;
}
