/* ==========================================================================
   Helfer gesucht Modul
   Clean Modern Design matching projekt-single.css / Spenden-Modul
   ========================================================================== */

/* 1. Haupt-Container (Passend zur Spendenbox mit dezentem grauem Rand) */
.helfer-box-container {
    border: 1px solid #ece8e2;
    border-radius: 12px;
    padding: 24px;
    background-color: #ffffff;
    font-family: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    box-sizing: border-box;
    width: 100%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.helfer-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.helfer-box-title {
    margin: 0 !important;
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #333333 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.helfer-box-icon {
    color: #2e7d46;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.helfer-box-icon svg {
    vertical-align: -0.15em;
}

.helfer-box-ziel {
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    color: #555555;
}

.helfer-box-ziel strong {
    color: #333333;
    font-weight: 700;
}

.helfer-progress-wrap {
    width: 100%;
    height: 8px;
    background-color: #eeeeee;
    border-radius: 5px;
    margin-bottom: 8px;
    overflow: hidden;
}

.helfer-progress-bar {
    height: 100%;
    background-color: #2e7d46;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.helfer-box-status {
    margin: 0 0 20px 0 !important;
    font-size: 13px !important;
    color: #8a8378;
}

.helfer-btn-mitmachen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: #eaf6ee;
    color: #2e7d46 !important;
    border: 1px solid rgba(46, 125, 70, 0.35);
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer;
    text-decoration: none !important;
    font-family: var(--body_typography-font-family, inherit);
    margin-bottom: 20px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.helfer-btn-mitmachen:hover:not(:disabled) {
    background-color: #2e7d46;
    color: #ffffff !important;
    border-color: #2e7d46;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 70, 0.25);
}

.helfer-btn-mitmachen:disabled,
.helfer-btn-voll {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 2. Liste der gemeldeten Helfer (Moderne Chips) */
.helfer-liste-wrap {
    padding-top: 16px;
    border-top: 1px solid #f0ede8;
}

.helfer-liste-titel {
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
}

.helfer-liste {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helfer-liste li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f7f6f4;
    border: 1px solid #ebe7e1;
    border-radius: 20px;
    font-size: 13px;
    color: #444444;
    font-weight: 500;
}

.helfer-liste li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e7d46;
    display: inline-block;
}

/* 3. Popup Modal Overlay (Fixiert & elegant zentriert) */
.helfer-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 24, 20, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.helfer-popup-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px 30px 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    font-family: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* Kleiner, eleganter Schließen-Button oben rechts */
.helfer-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #666666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.helfer-popup-close:hover {
    background: #e5e7eb;
    color: #111111;
    transform: scale(1.05);
}

.helfer-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #eaf6ee;
    color: #2e7d46;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.helfer-popup-title {
    margin: 0 0 8px 0 !important;
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #222222 !important;
    line-height: 1.25;
}

.helfer-popup-desc {
    margin: 0 0 22px 0 !important;
    font-size: 14px;
    line-height: 1.55;
    color: #666666;
}

/* Formular-Elemente */
.helfer-form-group {
    margin-bottom: 16px;
}

.helfer-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333333;
}

.helfer-form-group .required {
    color: #dc2626;
}

.helfer-form-group input[type="text"],
.helfer-form-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #222222;
    background: #fafafa;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

.helfer-form-group input[type="text"]:focus,
.helfer-form-group input[type="email"]:focus {
    background: #ffffff;
    border-color: #2e7d46;
    box-shadow: 0 0 0 3px rgba(46, 125, 70, 0.15);
    outline: none;
}

.helfer-checkbox-group {
    margin-top: 6px;
    margin-bottom: 20px;
}

.helfer-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555555;
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    font-weight: normal !important;
}

.helfer-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #2e7d46;
    margin: 0;
    cursor: pointer;
}

.helfer-submit-btn {
    width: 100%;
    padding: 13px 24px;
    background: #2e7d46;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 125, 70, 0.25);
    box-sizing: border-box;
}

.helfer-submit-btn:hover:not(:disabled) {
    background: #256639;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46, 125, 70, 0.35);
}

.helfer-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.helfer-form-feedback {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}
