/* ===================================================================
 * Styles für das Ferienprogramm Registrierungssystem
 * =================================================================== */

/* Wrapper und allgemeines Layout */
.fp-registration-wrapper, .fp-admin-view {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 2em 0;
}

/* Tabellen-Styling (öffentlich und admin) */
.fp-event-table, .fp-admin-table, .fp-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    font-size: 0.95em;
}
.fp-event-table th, .fp-admin-table th, .fp-summary-table th {
    background-color: #f2f2f2;
    text-align: left;
    padding: 12px;
    border: 1px solid #ddd;
}
.fp-event-table td, .fp-admin-table td, .fp-summary-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.fp-event-table tr:nth-child(even), .fp-admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Stil für den klickbaren Event-Titel */
.fp-event-title-link {
    font-weight: bold;
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
}
.fp-event-title-link:hover {
    text-decoration: underline;
}


/* Status-Texte in der Tabelle */
.status-full {
    color: #d9534f;
    font-weight: bold;
}
.status-booked {
    color: #5cb85c;
    font-weight: bold;
}
.status-info {
    color: #777;
    font-style: italic;
}

/* Zentrierung für die Auswahl-Checkbox */
.fp-event-table .selection-cell {
    text-align: center;
}


/* Anmeldeformular */
.fp-form-title {
    margin-top: 2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5em;
}
.fp-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 1.5em;
}
.fp-form-group {
    display: flex;
    flex-direction: column;
}
.fp-form-group.fp-form-group-full {
    grid-column: 1 / -1;
}
.fp-form-group label {
    font-weight: bold;
    margin-bottom: 6px;
}
.fp-form-group .required {
    color: #d9534f;
}
.fp-form-group input[type="text"],
.fp-form-group input[type="email"],
.fp-form-group input[type="tel"],
.fp-form-group input[type="date"],
.fp-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.fp-form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.fp-radio-group label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
}

/* NEU: Stil für die Bestätigungs-Checkbox */
.fp-confirm-group {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
}
.fp-confirm-group label {
    font-weight: normal;
    font-style: italic;
    color: #555;
}


/* Formular-Footer und Button */
.fp-form-footer {
    text-align: right;
    margin-top: 2em;
}
#fp-submit-button {
    background-color: #0073aa;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}
#fp-submit-button:hover {
    background-color: #005a87;
}
#fp-submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Modal / Popup-Fenster */
.fp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}
.fp-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 700px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.fp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: #999;
}
.fp-modal-close:hover {
    color: #333;
}
.fp-modal-body h2 {
    margin-top: 0;
}
.fp-summary-table {
    margin-top: 1.5em;
}

/* Stile für das Detail-Popup */
.fp-details-popup-content .fp-event-description {
    margin-top: 1em;
    line-height: 1.6;
}
.fp-details-popup-content .fp-event-description p:first-child {
    margin-top: 0;
}
.fp-details-popup-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5em 0;
}
.fp-details-popup-content h3 {
    margin-bottom: 0.5em;
}
.fp-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fp-details-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f2f2f2;
}
.fp-details-list li:last-child {
    border-bottom: none;
}
.fp-details-list li strong {
    color: #555;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .fp-form-fields {
        grid-template-columns: 1fr;
    }

    .fp-event-table thead, .fp-admin-table thead {
        display: none;
    }
    .fp-event-table tr, .fp-admin-table tr {
        display: block;
        margin-bottom: 1.5em;
        border: 1px solid #ddd;
        padding: 10px;
    }
     .fp-event-table td, .fp-admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border: none;
        border-bottom: 1px dotted #ccc;
        padding: 8px 0;
    }
    .fp-event-table td:last-child, .fp-admin-table td:last-child {
        border-bottom: none;
    }

    .fp-event-table td:before, .fp-admin-table td:before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        padding-right: 15px;
    }
}