/* BetriebsFerien Plugin Styles */

.bf-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.bf-form {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.bf-field {
    margin-bottom: 20px;
}

.bf-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.bf-field input[type="text"],
.bf-field input[type="email"],
.bf-field input[type="tel"],
.bf-field input[type="url"],
.bf-field input[type="number"],
.bf-field input[type="time"],
.bf-field input[type="date"],
.bf-field textarea,
.bf-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.bf-field input:focus,
.bf-field textarea:focus,
.bf-field select:focus {
    outline: none;
    border-color: #f0c000;
    box-shadow: 0 0 0 3px rgba(240, 192, 0, 0.2);
}

.bf-field textarea {
    resize: vertical;
    min-height: 100px;
}

.bf-field--privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.bf-field--privacy input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #f0c000;
}

.bf-row {
    display: flex;
    gap: 16px;
}

.bf-row .bf-field {
    flex: 0 0 120px;
}

.bf-row .bf-field--grow {
    flex: 1;
}

.bf-row--time {
    max-width: 360px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.bf-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}

.bf-btn:hover {
    opacity: 0.88;
}

.bf-btn--primary {
    background: #f0c000;
    color: #1a1a1a;
}

.bf-btn--secondary {
    background: #e5e7eb;
    color: #374151;
}

.bf-btn--danger {
    background: #ef4444;
    color: #fff;
}

.bf-btn--small {
    padding: 5px 12px;
    font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Messages                                                            */
/* ------------------------------------------------------------------ */

.bf-msg {
    margin-top: 14px;
    font-size: 15px;
}

.bf-msg--success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 10px 14px;
}

.bf-msg--error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
}

/* ------------------------------------------------------------------ */
/* Notices                                                             */
/* ------------------------------------------------------------------ */

.bf-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.bf-notice--warning {
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #713f12;
}

.bf-notice--error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ------------------------------------------------------------------ */
/* Company portal                                                      */
/* ------------------------------------------------------------------ */

.bf-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0c000;
}

.bf-portal-company-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.bf-booked-appointment {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.bf-booked-appointment h4 {
    margin: 0 0 8px;
    color: #166534;
    font-size: 15px;
    font-weight: 700;
}

.bf-booked-appointment p {
    margin: 0;
    font-size: 15px;
    color: #374151;
}

.bf-section {
    margin-bottom: 40px;
}

.bf-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.bf-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    margin-top: 4px;
}

.bf-hint--warning {
    display: inline-block;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 5px 10px;
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Jobs widget                                                         */
/* ------------------------------------------------------------------ */

.bf-jobs-widget {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.bf-jobs-entry {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bf-jobs-entry input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.bf-jobs-entry input:focus {
    outline: none;
    border-color: #f0c000;
    box-shadow: 0 0 0 3px rgba(240, 192, 0, 0.2);
}

/* ------------------------------------------------------------------ */
/* Calendar                                                            */
/* ------------------------------------------------------------------ */

#bf-calendar {
    margin-bottom: 24px;
}

.bf-cal-month {
    margin-bottom: 28px;
}

.bf-cal-month-heading {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.bf-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bf-cal-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0;
}

.bf-cal-cell {
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 14px;
    cursor: default;
}

.bf-cal-cell--empty {
    /* placeholder for alignment */
}

.bf-cal-cell--inactive {
    color: #d1d5db;
}

.bf-cal-cell--green {
    background: #dcfce7;
    color: #166534;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #86efac;
}

.bf-cal-cell--green:hover {
    background: #bbf7d0;
}

.bf-cal-cell--yellow {
    background: #fef9c3;
    color: #713f12;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid #fde047;
}

.bf-cal-cell--yellow:hover {
    background: #fef08a;
}

.bf-cal-cell--red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    cursor: not-allowed;
    opacity: 0.75;
}

.bf-cal-cell--selected {
    outline: 3px solid #1d4ed8;
    outline-offset: 1px;
}

/* ------------------------------------------------------------------ */
/* Time picker                                                         */
/* ------------------------------------------------------------------ */

.bf-time-picker {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.bf-time-picker h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* ------------------------------------------------------------------ */
/* File uploads                                                        */
/* ------------------------------------------------------------------ */

.bf-file-input {
    display: block;
    margin-top: 8px;
}

.bf-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
}

.bf-logo-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* ------------------------------------------------------------------ */
/* WYSIWYG (simple contenteditable)                                   */
/* ------------------------------------------------------------------ */

.bf-wysiwyg {
    min-height: 140px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    outline: none;
    background: #fff;
}

.bf-wysiwyg:focus {
    border-color: #f0c000;
    box-shadow: 0 0 0 3px rgba(240, 192, 0, 0.2);
}

/* ------------------------------------------------------------------ */
/* Berufsfelder checkbox group                                         */
/* ------------------------------------------------------------------ */

.bf-berufsfelder-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 6px;
}

.bf-berufsfeld-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
}

.bf-berufsfeld-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #f0c000;
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Admin list table badges                                             */
/* ------------------------------------------------------------------ */

.bf-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.bf-badge--warning { background: #fef9c3; color: #713f12; }
.bf-badge--success { background: #dcfce7; color: #166534; }
.bf-badge--danger  { background: #fee2e2; color: #991b1b; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 600px) {
    .bf-row {
        flex-direction: column;
    }

    .bf-row .bf-field {
        flex: unset;
    }

    .bf-cal-cell {
        padding: 6px 2px;
        font-size: 12px;
    }

    .bf-form {
        padding: 16px;
    }
}
