/**
 * Frontend-Styles für Freispringen Manager
 * 
 * @package Freispringen_Manager
 * @version 1.0.0
 */

/* ==========================================================================
   Basis-Styles
   ========================================================================== */

.fsm-kalender-wrapper,
.fsm-buchung-wrapper,
.fsm-meine-buchungen-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   Notices (Hinweise/Warnungen)
   ========================================================================== */

.fsm-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
    background: #f0f6fc;
    border-radius: 4px;
}

.fsm-notice-error {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.fsm-notice-info {
    border-left-color: #72aee6;
    background: #f0f6fc;
}

.fsm-notice-success {
    border-left-color: #00a32a;
    background: #f0fdf4;
}

.fsm-notice p {
    margin: 0;
    font-size: 15px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.fsm-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.fsm-btn-primary {
    background: #2271b1;
    color: #fff;
}

.fsm-btn-primary:hover {
    background: #135e96;
    color: #fff;
    text-decoration: none;
}

.fsm-btn-secondary {
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #dcdcde;
}

.fsm-btn-secondary:hover {
    background: #dcdcde;
    color: #2c3338;
}

.fsm-btn-large {
    padding: 14px 30px;
    font-size: 16px;
}

.fsm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Termin-Grid (Kalenderansicht)
   ========================================================================== */

.fsm-termine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.fsm-termin-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fsm-termin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fsm-termin-datum {
    background: #2271b1;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.fsm-termin-datum .fsm-tag {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.fsm-termin-datum .fsm-monat {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fsm-termin-details {
    padding: 20px;
}

.fsm-termin-details h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #1d2327;
}

.fsm-info-row {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 14px;
    color: #50575e;
}

.fsm-info-row .dashicons {
    margin-right: 8px;
    color: #2271b1;
}

.fsm-teilnehmer-liste {
    margin: 15px 0;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
}

.fsm-teilnehmer-liste details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2271b1;
    list-style: none;
}

.fsm-teilnehmer-liste details summary::-webkit-details-marker {
    display: none;
}

.fsm-teilnehmer-liste ul {
    margin: 10px 0 0;
    padding-left: 20px;
    font-size: 13px;
}

.fsm-teilnehmer-liste li {
    margin: 5px 0;
}

/* ==========================================================================
   Buchungsformular
   ========================================================================== */

.fsm-termin-header {
    background: linear-gradient(135deg, #1a4d7a 0%, #0d2e4a 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fsm-termin-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fsm-termin-datum {
    margin: 0 0 10px !important;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fsm-termin-info {
    margin: 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
}

.fsm-termin-info .dashicons {
    margin-right: 8px;
}

/* Tagesablauf-Tabelle */

.fsm-tagesablauf {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.fsm-tagesablauf h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #1d2327;
}

.fsm-schedule-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.fsm-schedule-table thead th {
    background: #f6f7f7;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dcdcde;
}

.fsm-schedule-table tbody tr {
    border-bottom: 1px solid #dcdcde;
}

.fsm-schedule-table tbody tr:last-child {
    border-bottom: none;
}

.fsm-schedule-table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.fsm-schedule-table tbody td:first-child {
    width: 180px;
    white-space: nowrap;
}

.fsm-schedule-table .fsm-slot-aufbau td,
.fsm-schedule-table .fsm-slot-abbau td {
    background: #fff8e5 !important; /* Gelb wie Aufbau */
    font-weight: 600 !important;
}

/* Alternativ: Noch kräftigeres Gelb */
.fsm-schedule-table tbody tr.fsm-slot-aufbau td,
.fsm-schedule-table tbody tr.fsm-slot-abbau td {
    background-color: #fff8e5 !important;
    font-weight: 600 !important;
}

.fsm-schedule-table .fsm-slot-wechsel td {
    background: #f9fafb;
    color: #8c8f94;
    font-size: 12px;
    padding: 6px 12px;
    line-height: 1.3;
}

.fsm-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    background: #f0f0f1;
    border-radius: 3px;
    margin-left: 5px;
}

/* Formular */

.fsm-buchungsformular {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.fsm-buchungsformular h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1d2327;
}

.fsm-form-row {
    margin-bottom: 20px;
}

.fsm-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.fsm-form-row input[type="text"],
.fsm-form-row input[type="email"],
.fsm-form-row select {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.fsm-form-row input:focus,
.fsm-form-row select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.fsm-form-row small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #646970;
}

/* Checkboxen */

.fsm-checkboxen {
    background: #f9fafb;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
}

.fsm-checkboxen h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #1d2327;
}

.fsm-checkbox-row {
    margin: 15px 0;
}

.fsm-checkbox-row label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.fsm-checkbox-row input[type="checkbox"] {
    margin: 3px 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.fsm-checkbox-row span {
    font-size: 14px;
    line-height: 1.5;
    color: #1d2327;
}

.fsm-checkbox-row ul {
    margin: 5px 0 0 20px;
    font-size: 13px;
}

.fsm-checkbox-row a {
    color: #2271b1;
    text-decoration: underline;
}

/* Submit */

.fsm-form-submit {
    margin-top: 30px;
    text-align: center;
}

/* Messages */

.fsm-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 15px;
}

.fsm-message.fsm-success {
    background: #f0fdf4;
    border-left: 4px solid #00a32a;
    color: #00a32a;
}

.fsm-message.fsm-error {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #d63638;
}

/* Hinweise */

.fsm-hinweise {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 20px;
}

.fsm-hinweise h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1d2327;
}

.fsm-hinweise ul {
    margin: 0;
    padding-left: 20px;
}

.fsm-hinweise li {
    margin: 8px 0;
    font-size: 14px;
    color: #50575e;
}

/* Branding */

.fsm-branding {
    margin: 30px 0 0;
    padding: 15px 0 0;
    border-top: 1px solid #dcdcde;
    text-align: center;
}

.fsm-branding p {
    margin: 0;
    font-size: 12px;
    color: #8c8f94;
}

.fsm-branding a {
    color: #2271b1;
    text-decoration: none;
}

.fsm-branding a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Meine Buchungen
   ========================================================================== */

.fsm-search-form {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.fsm-bookings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fsm-booking-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fsm-booking-card h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #2271b1;
}

.fsm-booking-card p {
    margin: 8px 0;
    font-size: 14px;
    color: #50575e;
}

.fsm-booking-card .fsm-btn {
    margin-top: 15px;
    width: 100%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .fsm-termine-grid {
        grid-template-columns: 1fr;
    }
    
    .fsm-bookings-list {
        grid-template-columns: 1fr;
    }
    
    .fsm-form-row input[type="text"],
    .fsm-form-row input[type="email"],
    .fsm-form-row select {
        max-width: 100%;
    }
    
    .fsm-schedule-table {
        font-size: 13px;
    }
    
    .fsm-schedule-table tbody td {
        padding: 8px;
    }
}
