/* ── PF Events — CSS ──────────────────────────────────────────────────────── */

/* ── Event Cards (Profil + Übersicht) ──────────────────────────────────────── */
.pfe-profile-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
.pfe-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}
.pfe-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pfe-cards--single {
    grid-template-columns: 1fr;
}
@media (max-width: 768px) {
    .pfe-cards { grid-template-columns: 1fr; }
}
.pfe-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.pfe-card-expandable {
    cursor: pointer;
}
.pfe-card-expandable:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.pfe-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    background: #1a56a0;
    color: #fff;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
}
.pfe-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pfe-day {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}
.pfe-month {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .05em;
    margin-top: 3px;
    opacity: .9;
}
.pfe-card-body {
    padding: 14px 18px;
    flex: 1;
}
.pfe-card-details {
    padding: 12px 18px 16px;
    font-size: 0.87rem;
    color: #374151;
    line-height: 1.6;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 0 0 12px 0;
}
.pfe-anlage-name {
    display: block;
    font-size: 0.78rem;
    color: #1a56a0;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 4px;
}
.pfe-anlage-name:hover { text-decoration: underline; }
.pfe-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}
.pfe-card-meta {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 6px;
}
.pfe-card-kurz {
    font-size: 0.88rem;
    color: #374151;
    margin: 0 0 10px;
}
.pfe-card-info {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
    margin-top: 4px;
}
.pfe-card-info tr { vertical-align: top; }
.pfe-card-info td { padding: 2px 0; color: #374151; }
.pfe-info-label {
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 12px;
    min-width: 80px;
}

.pfe-acc-icon {
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform .2s;
    display: inline-block;
}
.pfe-acc-icon.open { transform: rotate(45deg); }

.pfe-kontakt-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
}
.pfe-wa   { background: #25D366; color: #fff; }
.pfe-tel  { background: #1a56a0; color: #fff; }
.pfe-link { background: #f3f4f6; color: #1a56a0; border: 1px solid #d1d5db; }
.pfe-card-kontakt { margin-top: 8px; }

/* ── Übersicht Shortcode ───────────────────────────────────────────────────── */
.pfe-search-bar { margin-bottom: 24px; }
.pfe-search-form { margin-bottom: 10px; }
.pfe-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pfe-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    height: 44px;
    box-sizing: border-box;
}
.pfe-radius-select {
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    height: 44px;
    width: 90px;
    flex-shrink: 0;
}
.pfe-search-btn {
    width: 44px;
    height: 44px;
    background: #1a56a0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pfe-result-count { font-size: 13px; color: #6b7280; margin: 0; }
.pfe-empty-overview { color: #9ca3af; font-size: 14px; }
.pfe-pagination {
    display: flex;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pfe-page-btn {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    background: #fff;
}
.pfe-page-btn.active { background: #1a56a0; color: #fff; border-color: #1a56a0; }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.pfe-dashboard { padding: 0; }
.pfe-dash-header { margin-bottom: 20px; }
.pfe-btn-add {
    padding: 9px 20px;
    background: #1a56a0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pfe-btn-add:hover { background: #113073; }
.pfe-form-wrap {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}
.pfe-form-wrap h3 { margin: 0 0 16px; font-size: 1rem; }
.pfe-muted { font-weight: 400; color: #9ca3af; font-size: 0.85em; }
.pfe-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.pfe-field { grid-column: span 2; }
.pfe-field-half { grid-column: span 1; }
.pfe-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.pfe-counter { font-weight: 400; color: #9ca3af; float: right; }
.pfe-field input[type=text],
.pfe-field input[type=date],
.pfe-field input[type=time],
.pfe-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
}
.pfe-field textarea { resize: vertical; }
.pfe-kontakt-radios {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.pfe-radio {
    display: flex !important;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 400 !important;
    cursor: pointer;
}
.pfe-radio input { width: auto !important; }
.pfe-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.pfe-toggle-track {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: #d1d5db;
    transition: background .2s;
}
.pfe-toggle-track.pfe-on { background: #1a56a0; }
.pfe-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    transition: left .2s;
}
.pfe-toggle-track.pfe-on .pfe-toggle-thumb { left: 25px; }
.pfe-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.pfe-btn-save {
    padding: 9px 20px;
    background: #1a56a0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.pfe-btn-save:hover { background: #113073; }
.pfe-btn-cancel {
    padding: 9px 16px;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.pfe-msg { font-size: 13px; color: #16a34a; }
.pfe-event-list { display: flex; flex-direction: column; gap: 8px; }
.pfe-dash-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    gap: 12px;
}
.pfe-dash-event.pfe-inaktiv { opacity: .6; }
.pfe-dash-event-info { flex: 1; }
.pfe-dash-event-info strong { display: block; font-size: 14px; color: #111; }
.pfe-dash-date { font-size: 12px; color: #6b7280; margin-right: 8px; }
.pfe-dash-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #f3f4f6; color: #374151; }
.pfe-aktiv .pfe-dash-status { background: #dcfce7; color: #16a34a; }
.pfe-dash-event-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pfe-btn-edit {
    padding: 5px 12px;
    border: 1px solid #1a56a0;
    color: #1a56a0;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
.pfe-btn-delete {
    padding: 5px 12px;
    border: 1px solid #dc2626;
    color: #dc2626;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
.pfe-empty { color: #9ca3af; font-size: 14px; }
.pfe-no-premium { padding: 20px; background: #fef3c7; border-radius: 8px; color: #92400e; }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .pfe-form-grid { grid-template-columns: 1fr; }
    .pfe-field-half { grid-column: span 1; }
    .pfe-day { font-size: 1.5rem; }
    .pfe-card-date { min-width: 64px; padding: 12px 10px; }
    .pfe-card-details { padding-left: 18px; }
    .pfe-dash-event { flex-direction: column; align-items: flex-start; }
    .pfe-dash-event-actions { width: 100%; }
    .pfe-radius-select,
    select[name="radius"] { font-size: 15px !important; }
}

