/*
 * Retaro ProBS Portal – Basis/Fallback Styles
 * Die Elementor Widgets überschreiben Designwerte über ihre Style-Controls.
 * Hier bleiben vor allem Struktur, Responsiveness und sinnvolle Defaults.
 */

.probs-profile-form,
.probs-dashboard {
    display: grid;
    gap: 24px;
    width: 100%;
}

.probs-form-card,
.probs-pending {
    background: #fffdfc;
    border: 1px solid #e8ddd7;
    border-radius: 22px;
    padding: 30px;
}

.probs-form-card-header {
    margin-bottom: 26px;
}

.probs-form-card-header h2,
.probs-pending h2,
.probs-dashboard-card h2 {
    margin: 6px 0 8px;
    color: #171a22;
}

.probs-form-card-header p,
.probs-pending p {
    margin: 0;
    color: #626873;
}

.probs-form-eyebrow {
    display: block;
    color: #ae4545;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.probs-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.probs-field {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.probs-field--full { grid-column: 1 / -1; }
.probs-field--wide { grid-column: span 9; }
.probs-field--small { grid-column: span 3; }

.probs-field label,
.probs-opening-day label,
.probs-opening-day-head strong,
.probs-toggle-row {
    color: #171a22;
    font-size: 14px;
    font-weight: 700;
}

.probs-field input,
.probs-field textarea,
.probs-field select,
.probs-opening-day input,
.probs-opening-day select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #ded8d4;
    border-radius: 14px;
    padding: 13px 15px;
    background: #fff;
    color: #171a22;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.probs-field input:focus,
.probs-field textarea:focus,
.probs-field select:focus,
.probs-opening-day input:focus,
.probs-opening-day select:focus {
    outline: none;
    border-color: #ae4545;
    box-shadow: 0 0 0 3px rgba(174,69,69,.10);
}

.probs-field textarea {
    resize: vertical;
}

.probs-field-help {
    color: #626873;
    font-size: 12px;
}

.probs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.probs-image-field {
    grid-column: auto;
}

.probs-image-preview {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    background: #faf5f2;
    border: 1px solid #e8ddd7;
}

.probs-image-preview img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.probs-image-preview span {
    padding: 20px;
    text-align: center;
    color: #626873;
}

.probs-remove-check,
.probs-toggle-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.probs-remove-check input,
.probs-toggle-row input {
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
}

.probs-hours-master-row {
    margin-bottom: 0;
}

.probs-hours-dependent {
    margin-top: 18px;
}

.probs-general-hours-hint {
    margin-bottom: 18px;
}

.probs-opening-hours {
    display: grid;
    gap: 14px;
}

.probs-opening-day {
    padding: 18px;
    border: 1px solid #e8ddd7;
    border-radius: 18px;
    background: #fff;
}

.probs-opening-day-head {
    display: grid;
    grid-template-columns: 1fr minmax(220px, .6fr);
    align-items: center;
    gap: 16px;
}

.probs-opening-times {
    margin-top: 16px;
}

.probs-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.probs-time-row label {
    display: grid;
    gap: 6px;
}

.probs-time-row--second {
    margin-top: 12px;
}

.probs-opening-day > .probs-field {
    margin-top: 14px;
}

.probs-submit-bar {
    position: sticky;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    background: rgba(255,253,252,.94);
    border: 1px solid #e8ddd7;
    border-radius: 20px;
    box-shadow: 0 16px 50px rgba(23,26,34,.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.probs-submit-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.probs-submit-info span {
    color: #626873;
    font-size: 13px;
}

.probs-submit-button,
.probs-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.probs-submit-button {
    border: 0;
    background: #ae4545;
    color: #fff;
}

.probs-submit-button:hover {
    background: #923838;
    color: #fff;
}

.probs-secondary-button {
    border: 1px solid #e8ddd7;
    background: #fff;
    color: #171a22;
}

.probs-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.probs-message {
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.probs-message--success {
    background: rgba(32,135,78,.09);
    border: 1px solid rgba(32,135,78,.18);
}

.probs-message--error {
    background: rgba(174,69,69,.09);
    border: 1px solid rgba(174,69,69,.18);
}

.probs-message--notice {
    margin-top: 18px;
    background: rgba(0,184,255,.08);
    border: 1px solid rgba(0,184,255,.16);
}

.probs-message--preview {
    background: rgba(0,184,255,.08);
    border: 1px dashed rgba(0,126,174,.35);
    color: #171a22;
}

.probs-profile-form--preview input,
.probs-profile-form--preview textarea,
.probs-profile-form--preview select,
.probs-profile-form--preview button {
    pointer-events: none;
}

.probs-public-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.probs-public-gallery img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
}

.probs-opening-hours-public {
    display: grid;
    gap: 9px;
}

.probs-hours-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: start;
}

.probs-hours-row span {
    color: #626873;
}

.probs-hours-row small {
    display: block;
    margin-top: 3px;
}

.probs-hours-hint {
    margin: 10px 0 0;
    color: #626873;
}

/* Wichtig: eigene Layout-Regeln dürfen HTML hidden nicht überschreiben. */
.probs-profile-form [hidden],
.probs-profile-form--preview [hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .probs-form-card,
    .probs-pending {
        padding: 22px 18px;
    }

    .probs-form-grid,
    .probs-gallery-grid {
        grid-template-columns: 1fr;
    }

    .probs-field,
    .probs-field--full,
    .probs-field--wide,
    .probs-field--small {
        grid-column: auto;
    }

    .probs-opening-day-head,
    .probs-time-row,
    .probs-hours-row {
        grid-template-columns: 1fr;
    }

    .probs-submit-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .probs-submit-button {
        width: 100%;
    }

    .probs-public-gallery {
        grid-template-columns: 1fr 1fr;
    }
}


/* Änderungsanträge im Mitgliederbereich */
.probs-member-changes {
    display: grid;
    gap: 22px;
}

.probs-member-changes-head h2 {
    margin: 6px 0 8px;
    color: #171a22;
}

.probs-member-changes-head p {
    margin: 0;
    color: #626873;
}

.probs-member-changes-list {
    display: grid;
    gap: 16px;
}

.probs-member-change-card {
    padding: 22px;
    background: #fffdfc;
    border: 1px solid #e8ddd7;
    border-radius: 20px;
}

.probs-member-change-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.probs-member-change-top h3 {
    margin: 4px 0 0;
    color: #171a22;
}

.probs-member-change-date {
    color: #626873;
    font-size: 13px;
}

.probs-member-change-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.probs-member-change-status--offen {
    color: #8a5800;
    background: #fff2cf;
}

.probs-member-change-status--freigegeben {
    color: #176b3a;
    background: #e8f7ee;
}

.probs-member-change-status--abgelehnt {
    color: #8d3030;
    background: #f9e8e8;
}

.probs-member-change-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    color: #626873;
    font-size: 13px;
}

.probs-member-change-reason {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(174,69,69,.18);
    border-radius: 14px;
    background: rgba(174,69,69,.06);
}

.probs-member-change-reason p {
    margin: 5px 0 0;
}

.probs-member-change-details {
    margin-top: 18px;
    border-top: 1px solid #e8ddd7;
    padding-top: 16px;
}

.probs-member-change-details summary {
    cursor: pointer;
    color: #ae4545;
    font-weight: 700;
}

.probs-member-change-detail-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.probs-member-change-detail-row {
    padding: 16px;
    border-radius: 14px;
    background: #faf5f2;
}

.probs-member-change-detail-row > strong {
    display: block;
    margin-bottom: 10px;
    color: #171a22;
}

.probs-member-change-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.probs-member-change-values > div > span {
    display: block;
    margin-bottom: 5px;
    color: #626873;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.probs-member-change-value {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #e8ddd7;
    border-radius: 12px;
    background: #fff;
    overflow-wrap: anywhere;
}

.probs-member-change-value--new {
    background: #fff8f4;
    border-color: rgba(174,69,69,.22);
}

.probs-member-change-value img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 140px;
    object-fit: contain;
    border-radius: 10px;
}

.probs-member-changes-empty {
    padding: 24px;
    color: #626873;
    text-align: center;
    background: #fffdfc;
    border: 1px dashed #d8cec8;
    border-radius: 18px;
}

.probs-review-empty-value {
    color: #8e9197;
    font-style: normal;
}

@media (max-width: 767px) {
    .probs-member-change-top {
        flex-direction: column;
    }

    .probs-member-change-values {
        grid-template-columns: 1fr;
    }
}


/* Account activation */
.probs-activation-card {
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid #e8ddd7;
    border-radius: 22px;
    background: #fffdfc;
}

.probs-activation-card h2 {
    margin: 6px 0 8px;
    color: #171a22;
}

.probs-activation-card > p {
    margin: 0 0 22px;
    color: #626873;
}

.probs-activation-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 15px;
    background: #faf5f2;
}

.probs-activation-company strong {
    color: #171a22;
}

.probs-activation-company span {
    color: #626873;
    font-size: 13px;
}

.probs-activation-card .probs-submit-button {
    margin-top: 20px;
}


/* Gallery items: each image has its own wrapper so overlays remain per-image. */
.probs-public-gallery .probs-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
}

.probs-public-gallery .probs-gallery-item img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}

.probs-public-gallery .probs-gallery-item::after {
    border-radius: inherit;
}


/* Public empty states */
.probs-public-empty {
    box-sizing: border-box;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #e8ddd7;
    border-radius: 16px;
    background: #faf5f2;
    color: #626873;
    line-height: 1.55;
}

/* Dynamic icon-list widgets */
.probs-dynamic-icon-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.probs-dynamic-icon-list--vertical {
    flex-direction: column;
}

.probs-dynamic-icon-list--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.probs-dynamic-icon-list__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.probs-dynamic-icon-list__link,
.probs-dynamic-icon-list__static {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.probs-dynamic-icon-list__link {
    transition: color .2s ease;
}

.probs-dynamic-icon-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    transition: color .2s ease;
}

.probs-dynamic-icon-list__icon i,
.probs-dynamic-icon-list__icon svg {
    display: block;
    transition: color .2s ease, fill .2s ease;
}

.probs-dynamic-icon-list__text {
    min-width: 0;
    transition: color .2s ease;
}

/* Gutschein-Antwort */
.probs-voucher-answer {
    font-weight: 700;
}


/* Dynamic title & text */
.probs-dynamic-title {
    margin-top: 0;
}

.probs-dynamic-text {
    white-space: normal;
}


.probs-dynamic-variable-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.probs-dynamic-variable-link:hover {
    color: #AE4545;
}


/* ProBS Mitglieder-Karte */
.probs-member-map {
    --probs-map-pin-color: #AE4545;
    --probs-map-pin-inner: #FFFFFF;
    --probs-map-pin-size: 36px;
    --probs-map-contrast: 105%;
    --probs-map-brightness: 100%;
    width: 100%;
}

.probs-member-map__stage {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #F5EBE5;
    border-radius: 22px;
}

.probs-member-map__canvas {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: #F5EBE5;
}

.probs-member-map__canvas .leaflet-tile-pane {
    filter: grayscale(100%) contrast(var(--probs-map-contrast)) brightness(var(--probs-map-brightness));
}

.probs-map-marker-icon {
    background: transparent !important;
    border: 0 !important;
}

.probs-map-pin {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: var(--probs-map-pin-size);
    height: var(--probs-map-pin-size);
    background: var(--probs-map-pin-color);
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 8px 22px rgba(23,26,34,.24);
    box-sizing: border-box;
}

.probs-map-pin__dot {
    position: absolute;
    width: 34%;
    height: 34%;
    left: 33%;
    top: 33%;
    background: var(--probs-map-pin-inner);
    border-radius: 50%;
}

.probs-member-map .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(23,26,34,.18);
}

.probs-member-map .leaflet-popup-content {
    margin: 16px 18px;
    line-height: 1.5;
}

.probs-member-map .leaflet-control-attribution {
    font-size: 10px;
}

.probs-member-map__privacy-cover {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    background: #FAF5F2;
    color: #626873;
    text-align: center;
}

.probs-member-map__privacy-text {
    max-width: 520px;
    line-height: 1.55;
}

.probs-member-map__load-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: #AE4545;
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.probs-member-map__load-button:hover {
    transform: translateY(-1px);
}

.probs-member-map__external-link {
    display: inline-flex;
    margin-top: 12px;
    color: #AE4545;
    text-decoration: none;
    font-weight: 600;
}

.probs-member-map__external-link:hover {
    color: #923838;
}

.probs-public-empty--map {
    width: 100%;
}


/* Verknüpfte Veranstaltungen */
.probs-events-slider {
    --probs-events-per-view: 3;
    --probs-events-gap: 18px;
    position: relative;
    width: 100%;
    min-width: 0;
}

.probs-events-slider__nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.probs-events-slider__arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E8DDD7;
    border-radius: 999px;
    background: #FFFFFF;
    color: #171A22;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.probs-events-slider__arrow:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #AE4545;
}

.probs-events-slider__arrow:disabled {
    opacity: .35;
    cursor: default;
}

.probs-events-slider__track {
    display: flex;
    gap: var(--probs-events-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
}

.probs-events-slider__track::-webkit-scrollbar {
    display: none;
}

.probs-event-card {
    flex: 0 0 calc(
        (100% - (var(--probs-events-gap) * (var(--probs-events-per-view) - 1)))
        / var(--probs-events-per-view)
    );
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #E8DDD7;
    border-radius: 22px;
    background: #FFFDFC;
}

.probs-event-card__image {
    display: block;
    overflow: hidden;
}

.probs-event-card__image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}

.probs-event-card:hover .probs-event-card__image img {
    transform: scale(1.025);
}

.probs-event-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.probs-event-card__type,
.probs-event-card__meta {
    color: #AE4545;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.probs-event-card__type {
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.probs-event-card__meta {
    margin-bottom: 9px;
}

.probs-event-card__title {
    margin: 0;
    color: #171A22;
    font-size: 22px;
    line-height: 1.25;
}

.probs-event-card__title a {
    color: inherit;
    text-decoration: none;
}

.probs-event-card__location {
    margin-top: 10px;
    color: #626873;
    font-size: 14px;
}

.probs-event-card__excerpt {
    margin-top: 14px;
    color: #626873;
    line-height: 1.55;
}

.probs-event-card__button {
    display: inline-flex;
    margin-top: 18px;
    color: #AE4545;
    font-weight: 700;
    text-decoration: none;
}

.probs-event-card__button:hover {
    color: #923838;
}

.probs-public-empty--events {
    width: 100%;
}

@media (max-width: 767px) {
    .probs-events-slider__nav {
        justify-content: flex-start;
    }
}

/* Event submission workflow 2.0 */
.probs-event-checkboxes,
.probs-event-member-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; }
.probs-event-checkboxes label,
.probs-event-member-picker label { display:flex; align-items:center; gap:8px; }
.probs-event-list { display:grid; gap:12px; }
.probs-event-list-row { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 0; border-top:1px solid #e8ddd7; }
.probs-event-list-row:first-child { border-top:0; }
.probs-event-list-row > div:first-child { display:flex; flex-direction:column; gap:4px; }
.probs-event-list-row span { color:#626873; font-size:13px; }
.probs-event-participation-button { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.probs-event-participation-button small { color:#626873; max-width:620px; }
@media(max-width:767px){ .probs-event-checkboxes,.probs-event-member-picker{grid-template-columns:1fr}.probs-event-list-row{align-items:flex-start;flex-direction:column}.probs-event-list-row form{display:flex;flex-wrap:wrap;gap:8px} }
.probs-event-preview-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; margin:24px 0; }
.probs-event-preview-rows > div { display:flex; flex-direction:column; gap:3px; }
.probs-event-preview-rows span { color:#626873; }
.probs-event-preview-description { padding-top:20px; border-top:1px solid #e8ddd7; }
.probs-event-submission-preview .probs-dashboard-actions form { margin:0; }
@media(max-width:767px){.probs-event-preview-rows{grid-template-columns:1fr}}


/* =========================================================
   Event submission / portal UI – 2.1.0
   ========================================================= */
.probs-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.probs-event-submission-form {
    gap: 24px;
}

.probs-event-form-card {
    overflow: hidden;
}

.probs-event-submission-form .probs-form-card-header {
    margin-bottom: 28px;
}

.probs-event-submission-form .probs-form-card-header h2 {
    margin: 6px 0 8px;
    font-size: clamp(22px, 2.2vw, 30px);
}

.probs-event-all-day {
    padding: 14px 16px;
    border: 1px solid #e8ddd7;
    border-radius: 14px;
    background: #faf5f2;
}

.probs-event-checkboxes,
.probs-event-member-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.probs-event-checkbox,
.probs-event-member-option {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #e8ddd7;
    border-radius: 999px;
    background: #faf5f2;
    color: #171a22;
    font-weight: 600 !important;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.probs-event-checkbox input,
.probs-event-member-option input {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0;
}

.probs-field--url {
    position: relative;
}

.probs-url-field {
    position: relative;
}

.probs-url-field__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #ae4545;
    font-size: 16px;
    pointer-events: none;
}

.probs-url-field input {
    padding-left: 43px !important;
}

.probs-event-submit-bar .probs-submit-button {
    flex: 0 0 auto;
}

.probs-event-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.probs-event-list {
    display: grid;
    gap: 12px;
}

.probs-event-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid #e8ddd7;
    border-radius: 16px;
    background: #faf5f2;
}

.probs-event-list-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.probs-event-list-main strong {
    color: #171a22;
    font-size: 16px;
}

.probs-event-list-main > span:not(.probs-event-list-status) {
    color: #626873;
}

.probs-event-list-status {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef0f2;
    color: #626873;
    font-size: 12px;
    font-weight: 700;
}

.probs-event-list-status--submitted,
.probs-event-list-status--email_pending {
    background: #fff2cf;
    color: #8a5800;
}

.probs-event-list-status--approved {
    background: #e8f7ee;
    color: #176b3a;
}

.probs-event-list-status--rejected,
.probs-event-list-status--spam {
    background: #f9e8e8;
    color: #8d3030;
}

.probs-event-list-actions,
.probs-participation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.probs-event-list-empty {
    padding: 18px 20px;
    border: 1px dashed #e8ddd7;
    border-radius: 14px;
    background: #faf5f2;
    color: #626873;
}

.probs-event-participation-button {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.probs-event-participation-button small {
    color: #626873;
    line-height: 1.5;
}

.probs-event-participation-state {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid #e8ddd7;
    border-radius: 16px;
    background: #faf5f2;
}

.probs-event-participation-state strong {
    color: #171a22;
}

.probs-event-participation-state span {
    color: #626873;
}

.probs-event-participation-state--success {
    background: #eef8f2;
    border-color: #cee9d8;
}

.probs-event-participation-state--notice {
    background: #fff8e8;
    border-color: #f0dfad;
}

@media (max-width: 767px) {
    .probs-event-list-head,
    .probs-event-list-row {
        align-items: stretch;
        flex-direction: column;
    }

    .probs-event-new-button,
    .probs-event-list-actions .probs-secondary-button,
    .probs-participation-actions button {
        width: 100%;
    }
}


/* =========================================================
   Eigene Medien / Event-Titelbild – 2.1.1
   ========================================================= */
.probs-event-image-picker {
    display: grid;
    gap: 12px;
}

.probs-event-image-picker__preview {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed #d9d0ca;
    border-radius: 18px;
    background: #faf5f2;
}

.probs-event-image-picker__preview.has-image {
    border-style: solid;
    background: #fff;
}

.probs-event-image-picker__preview img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.probs-event-image-picker__placeholder {
    display: grid;
    justify-items: center;
    gap: 7px;
    max-width: 420px;
    padding: 28px;
    text-align: center;
    color: #626873;
}

.probs-event-image-picker__placeholder strong {
    color: #171a22;
}

.probs-event-image-picker__placeholder-icon {
    color: #ae4545;
    font-size: 36px;
    line-height: 1;
}

.probs-event-image-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.probs-event-upload-button {
    cursor: pointer;
}

.probs-event-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.probs-event-remove-image {
    appearance: none;
    border: 0;
    background: transparent;
    color: #ae4545;
    padding: 10px 4px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.probs-event-remove-image:hover {
    text-decoration: underline;
}

.probs-event-media-modal[hidden] {
    display: none !important;
}

.probs-event-media-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.probs-event-media-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11,16,31,.58);
    backdrop-filter: blur(4px);
}

.probs-event-media-modal__dialog {
    position: absolute;
    inset: 5vh 5vw;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    background: #fffdfc;
    box-shadow: 0 30px 90px rgba(0,0,0,.24);
}

.probs-event-media-modal__header,
.probs-event-media-modal__toolbar,
.probs-event-media-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.probs-event-media-modal__header h3 {
    margin: 4px 0 0;
    color: #171a22;
    font-size: 24px;
}

.probs-event-media-modal__close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8ddd7;
    border-radius: 999px;
    background: #fff;
    color: #171a22;
    font-size: 24px;
    cursor: pointer;
}

.probs-event-media-modal__toolbar input {
    flex: 1 1 auto;
    min-width: 0;
}

.probs-event-media-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.probs-event-media-item {
    appearance: none;
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e8ddd7;
    border-radius: 14px;
    background: #fff;
    color: #171a22;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.probs-event-media-item:hover,
.probs-event-media-item:focus-visible {
    border-color: #ae4545;
    box-shadow: 0 8px 24px rgba(23,26,34,.08);
    transform: translateY(-1px);
    outline: none;
}

.probs-event-media-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.probs-event-media-item span {
    display: block;
    overflow: hidden;
    padding: 9px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.probs-event-media-empty {
    padding: 30px;
    text-align: center;
    color: #626873;
}

.probs-event-media-count {
    color: #626873;
    font-size: 13px;
}

html.probs-media-modal-open {
    overflow: hidden;
}

.probs-event-preview-image-wrap {
    margin: 18px 0;
    overflow: hidden;
    border-radius: 18px;
}

.probs-event-preview-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .probs-event-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .probs-event-image-picker__actions {
        flex-direction: column;
    }

    .probs-event-image-picker__actions .probs-secondary-button,
    .probs-event-remove-image {
        width: 100%;
    }

    .probs-event-media-modal__dialog {
        inset: 2vh 3vw;
        padding: 16px;
    }

    .probs-event-media-modal__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .probs-event-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   Beteiligte Veranstaltungen im Mitgliederportal – 2.2.0
   ========================================================= */
.probs-member-involved-events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.probs-member-involved-event-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8ddd7;
    border-radius: 20px;
    background: #fffdfc;
}

.probs-member-involved-event-card__image {
    display: block;
    overflow: hidden;
}

.probs-member-involved-event-card__image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .25s ease;
}

.probs-member-involved-event-card:hover .probs-member-involved-event-card__image img {
    transform: scale(1.02);
}

.probs-member-involved-event-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.probs-member-involved-event-card__type,
.probs-member-involved-event-card__date {
    color: #ae4545;
    font-size: 12px;
    font-weight: 700;
}

.probs-member-involved-event-card__type {
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.probs-member-involved-event-card__date {
    margin-bottom: 8px;
}

.probs-member-involved-event-card__title {
    margin: 0;
    color: #171a22;
    font-size: 20px;
    line-height: 1.25;
}

.probs-member-involved-event-card__title a {
    color: inherit;
    text-decoration: none;
}

.probs-member-involved-event-card__location {
    margin-top: 9px;
    color: #626873;
    font-size: 14px;
}

.probs-member-involved-event-card__button {
    display: inline-flex;
    margin-top: 16px;
    color: #ae4545;
    font-weight: 700;
    text-decoration: none;
}

.probs-member-involved-event-card__button:hover {
    text-decoration: underline;
}

.probs-member-involved-events-empty {
    width: 100%;
}

@media (max-width: 767px) {
    .probs-member-involved-events {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Event-Einreichungsformular – Interaktivität 2.3.0
   ========================================================= */
.probs-event-time-fields[hidden] {
    display: none !important;
}

.probs-form-grid--inner {
    grid-column: 1 / -1;
    width: 100%;
}

.probs-required-choice-group > label:first-child {
    margin-bottom: 2px;
}

.probs-event-image-picker__filename {
    min-height: 18px;
    color: #626873;
    font-size: 12px;
    font-weight: 600;
}

.probs-event-self-member {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(174,69,69,.22);
    border-radius: 16px;
    background: rgba(174,69,69,.055);
}

.probs-event-self-member small {
    color: #626873;
    line-height: 1.5;
}

.probs-event-member-selector {
    display: grid;
    gap: 14px;
}

.probs-event-member-selector__toolbar {
    display: flex;
    gap: 10px;
}

.probs-event-member-selector__toolbar input {
    flex: 1 1 auto;
    min-width: 0;
}

.probs-event-member-selector__selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.probs-event-member-selector__selected:empty {
    display: none;
}

.probs-event-member-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 10px 7px 12px;
    border-radius: 999px;
    background: #f7e9e9;
    color: #8d3030;
    font-size: 13px;
    font-weight: 700;
}

.probs-event-member-selected-chip button {
    appearance: none;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(174,69,69,.12);
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.probs-event-member-hidden-values {
    display: none;
}

.probs-event-member-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.probs-event-member-result {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e8ddd7;
    border-radius: 13px;
    background: #fff;
    color: #171a22;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.probs-event-member-result:hover,
.probs-event-member-result:focus-visible {
    border-color: rgba(174,69,69,.55);
    outline: none;
    box-shadow: 0 0 0 3px rgba(174,69,69,.08);
}

.probs-event-member-result.is-selected {
    border-color: rgba(174,69,69,.45);
    background: #fff7f5;
}

.probs-event-member-result > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.probs-event-member-result__state {
    flex: 0 0 auto;
    color: #ae4545;
    font-size: 12px;
    font-weight: 700;
}

.probs-event-member-selector__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.probs-event-member-count,
.probs-event-member-empty {
    color: #626873;
    font-size: 13px;
}

.probs-event-submit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.probs-event-submit-actions .probs-secondary-button,
.probs-event-submit-actions .probs-submit-button {
    width: auto;
}

@media (max-width: 767px) {
    .probs-event-member-selector__toolbar,
    .probs-event-member-selector__footer,
    .probs-event-submit-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .probs-event-member-results {
        grid-template-columns: 1fr;
    }

    .probs-event-member-selector__toolbar .probs-secondary-button,
    .probs-event-member-selector__footer .probs-secondary-button,
    .probs-event-submit-actions .probs-secondary-button,
    .probs-event-submit-actions .probs-submit-button {
        width: 100%;
    }
}

/* =========================================================
   Portal security / account / membership – 3.0.0
   ========================================================= */
.probs-auth-card,
.probs-account-card {
    padding: 26px;
    border: 1px solid #e8ddd7;
    border-radius: 20px;
    background: #fffdfc;
}

.probs-auth-card {
    max-width: 620px;
}

.probs-auth-card h2,
.probs-account-card h2 {
    margin: 6px 0 14px;
    color: #171a22;
}

.probs-auth-card form,
.probs-account-card form {
    display: grid;
    gap: 16px;
}

.probs-auth-link {
    display: inline-flex;
    width: fit-content;
    color: #ae4545;
    text-decoration: none;
    font-weight: 600;
}

.probs-auth-link:hover { text-decoration: underline; }

.probs-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #626873;
}

.probs-local-captcha {
    padding: 14px 16px;
    border: 1px solid #e8ddd7;
    border-radius: 14px;
    background: #faf5f2;
}

.probs-local-captcha label {
    display: grid;
    gap: 7px;
}

.probs-local-captcha__question {
    color: #171a22;
    font-size: 16px;
}

.probs-local-captcha input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ded8d4;
    border-radius: 12px;
    padding: 11px 13px;
    background: #fff;
}

.probs-local-captcha small {
    display: block;
    margin-top: 7px;
    color: #626873;
    font-size: 12px;
}

.probs-account-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.probs-account-card:last-child {
    grid-column: 1 / -1;
}

.probs-security-status {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef0f2;
    color: #626873;
    font-size: 12px;
    font-weight: 700;
}

.probs-security-status--on {
    background: #e8f7ee;
    color: #176b3a;
}

.probs-security-status--off {
    background: #f9e8e8;
    color: #8d3030;
}

.probs-security-secret {
    display: grid;
    gap: 5px;
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #e8ddd7;
    border-radius: 14px;
    background: #faf5f2;
}

.probs-security-secret code,
.probs-security-uri {
    word-break: break-all;
}

.probs-security-recovery {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #cee9d8;
    border-radius: 16px;
    background: #eef8f2;
}

.probs-recovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.probs-recovery-grid code {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
}

.probs-membership-form {
    gap: 24px;
}

.probs-membership-form .probs-form-card-header {
    margin-bottom: 24px;
}

.probs-link-danger {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 8px 4px;
    color: #a53434;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.probs-link-danger:hover { text-decoration: underline; }

.probs-event-list-actions form,
.probs-member-involved-event-card__actions form {
    margin: 0;
}

.probs-member-involved-event-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
}

.probs-member-involved-event-card__button {
    margin-top: 0 !important;
}

.probs-member-involved-event-card__managed {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef0f2;
    color: #626873;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .probs-account-settings,
    .probs-recovery-grid {
        grid-template-columns: 1fr;
    }

    .probs-account-card:last-child {
        grid-column: auto;
    }
}


/* =========================================================
   Login / Mitgliedsantrag UX – 3.1.0
   ========================================================= */
.probs-auth-card {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    box-sizing: border-box;
}

.probs-auth-card form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.probs-auth-card .probs-field {
    width: 100%;
    grid-column: 1 / -1;
}

.probs-auth-card .probs-field input,
.probs-auth-card .probs-local-captcha__answer {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
}

.probs-local-captcha {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
    align-items: end;
    gap: 16px;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #e8ddd7;
    border-radius: 14px;
    background: #faf5f2;
}

.probs-local-captcha__copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.probs-local-captcha__copy > span {
    color: #626873;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.probs-local-captcha__question {
    color: #171a22;
    font-size: 17px;
    line-height: 1.3;
}

.probs-local-captcha__answer {
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #ded8d4 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.probs-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.probs-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.probs-auth-remember input {
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.probs-auth-submit,
.probs-auth-card .probs-submit-button {
    width: 100%;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 999px;
    box-sizing: border-box;
}

.probs-membership-template-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #e8ddd7;
    border-radius: 16px;
    background: #faf5f2;
}

.probs-membership-template-box > div {
    display: grid;
    gap: 5px;
}

.probs-membership-template-box strong {
    color: #171a22;
}

.probs-membership-template-box span {
    color: #626873;
    line-height: 1.5;
}

@media (max-width: 620px) {
    .probs-local-captcha {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .probs-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .probs-membership-template-box {
        align-items: stretch;
        flex-direction: column;
    }

    .probs-membership-template-box .probs-secondary-button {
        width: 100%;
    }
}


/* Login-Layout gegen globale Theme-/Elementor-Regeln absichern */
.probs-auth-card form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
}

.probs-auth-card form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.probs-auth-card .probs-auth-submit,
.probs-auth-card button.probs-submit-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 12px 22px !important;
    line-height: 1.25 !important;
}

.probs-auth-card .probs-local-captcha__answer {
    height: 50px !important;
    max-height: 50px !important;
}


/* Dashboard ausgeloggt – 3.1.1 */
.probs-dashboard-login-card {
    display: grid;
    gap: 8px;
}
.probs-dashboard-login-card h2 {
    margin-bottom: 0;
}
.probs-dashboard-login-text {
    margin: 4px 0 2px;
    color: #626873;
    line-height: 1.6;
}
.probs-dashboard--logged-out .probs-dashboard-actions {
    margin-top: 14px;
}

/* 4.0.0 – useful personal dashboard before an organization profile exists. */
.probs-profile-create-form{margin-top:28px;padding-top:20px;border-top:1px solid #e8ddd7;display:flex;gap:14px;flex-wrap:wrap}.probs-profile-create-form .probs-field{flex:1 0 100%}.probs-profile-create-form p,.probs-dashboard-profile-note{color:#626873;line-height:1.6}.probs-profile-create-form p{font-size:14px}

/* 4.1.0: do not inherit white global Elementor button text in member selection. */
.probs-event-submission-form .probs-event-member-result,
.probs-event-submission-form .probs-event-member-result > span,
.probs-event-submission-form .probs-event-member-result:is(:hover,:focus-visible,.is-selected) > span {
 color:var(--probs-member-choice-color,#ae4545) !important;
}
.probs-event-submission-form .probs-event-member-result {font:inherit;text-align:start;}
