/* Stile, die NUR für den Kalender gelten */

.calendar-container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.calendar-container .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-container #current-month-year {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

.calendar-container .nav-btn {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.4em;
    color: #e0e0e0;
    padding: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.calendar-container .nav-btn:hover {
    background-color: #444;
    border-color: #777;
}

.add-event-btn {
    background-color: var(--main-brand-color);
    color: var(--text-color);
    border: 3px solid var(--main-brand-color);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-left: 15px;
    transition: 150ms ease-in-out;
}

.add-event-btn:hover {
    background: transparent;
    color: var(--main-brand-color);
}

.calendar-container .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-container .weekday,
.calendar-container .day-cell {
    text-align: center;
    padding: 12px 5px;
    font-size: 1em;
}

.calendar-container .weekday {
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.calendar-container .day-cell {
    background-color: #2a2a2a;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
}

.calendar-container .day-cell.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-container .day-cell:not(.empty):hover {
    background-color: #3a0e0e;
    color: #fff;
    cursor: pointer;
}

.calendar-container .day-cell.current-day {
    background-color: #8b0000;
    color: #ffffff;
    font-weight: bold;
    border: 1px solid #c83c3c;
}

.event-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #00e1ff;
    border-radius: 50%;
    box-shadow: 0 0 5px #00e1ff;
}

/* Stile für das Event-Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #2c2c2e;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #555;
    min-width: 300px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #888;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #fff;
}

/* Stile für das Formular im Modal */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-weight: bold;
    color: #aaa;
    display: block;
    margin-bottom: 5px;
}

.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content input[type="url"] {
    width: 100%;
    padding: 10px;
    background-color: #1e1e1e;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box; 
}

.modal-content button[type="submit"] {
    padding: 10px 15px;
    background-color: #8b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.modal-content button[type="submit"]:hover {
    background-color: #a12525;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row > div {
    flex: 1; 
}

/* Stile für die Event-Detail-Anzeige */
.event-details-container {
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 15px;
}
.event-details-container:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.event-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-details-header h4 {
    margin: 0;
    color: #00e1ff;
    font-size: 1.2rem;
}

.delete-event-btn {
    background-color: #8b0000;
    color: #fff;
    border: 3px solid #8b0000;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: 150ms ease-in-out;
}

.delete-event-btn:hover {
    background: transparent;
    color: #c83c3c;
    border-color: #c83c3c;
}

.event-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ccc;
}

.event-detail-item .icon {
    margin-right: 10px;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.btn-primary {
    display: inline-block;
    background-color: var(--main-brand-color);
    padding: 8px 18px;
    border: 3px solid var(--main-brand-color);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: 150ms ease-in-out;
}

.btn-primary:hover {
    background: transparent;
    color: var(--main-brand-color);
}

.ticket-link {
    padding: 8px 18px !important;
    font-size: 0.9em !important;
}

/* Stile für das Bestätigungs-Pop-up */
.confirmation-popup {
    text-align: center;
}

.confirmation-popup h2 {
    font-size: 3em;
    margin: 0;
    text-align: center; /* KORREKTUR: Wir zwingen die Hand hier explizit in die Mitte */
}

.confirmation-popup h3 {
    margin-top: 10px;
    margin-bottom: 25px;
    color: #fff;
}