@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

.grecaptcha-badge {
    visibility: hidden;
}

.material-icons {
    font-family: 'Material Icons', 'Material Icons Fallback', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}


.spenden-popup-container .material-icons:after {
    font-family: sans-serif;
}

.popup-close .material-icons:after {
    content: "×";
    font-size: 28px;
    font-weight: bold;
}

.spenden-popup-overlay {
    --sp-primary-color: #206035;
    --sp-primary-dark: #1a4f2a;
    --sp-secondary-color: #ff5722;
    --sp-background-color: #ffffff;
    --sp-text-color: #212121;
    --sp-text-secondary: #757575;
    --sp-border-color: #e0e0e0;
    --sp-shadow-color: rgba(0, 0, 0, 0.1);
    --sp-overlay-color: rgba(0, 0, 0, 0.5);
    --sp-success-color: #4caf50;
    --sp-error-color: #f44336;
    --sp-warning-color: #ff9800;
    --sp-border-radius: 12px;
    --sp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.spenden-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sp-overlay-color);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--sp-transition);
}

.spenden-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


.spenden-popup-container {
    width: 90%;
    max-width: 440px;
    max-height: 85vh; 
    background: var(--sp-background-color);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: var(--sp-transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.spenden-popup-overlay.active .spenden-popup-container {
    transform: scale(1) translateY(0);
}


.spenden-popup-content {
    position: relative;
    font-family: "Gabarito", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}


.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup-close .material-icons {
    color: #404040;
    font-size: 20px;
}


.popup-step {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    animation: slideIn 0.3s ease-out;
}

.popup-step.active {
    display: flex;
}


.popup-header {
    flex-shrink: 0; 
    padding: 20px 24px 16px; 
}

.popup-body {
    flex: 1;
    padding: 0 24px 20px;
    margin-top: 20px;
    overflow-y: auto; 
    min-height: 0;
}

#step-3 .popup-body {
    margin-top: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.popup-header {
    text-align: center;
    margin-bottom: 0; 
}

.popup-header h2 {
    margin: 8px 0 6px; 
    font-size: 20px; 
    font-weight: 600;
    color: #373737;
}

.popup-header p {
    margin: 0 0 8px; 
    color: #404040;
    font-size: 14px;
    line-height: 1.4;
}

#step-1 .popup-header p {
    padding: 0 20px;
}


.popup-image {
    margin-bottom: 6px; 
}

.donation-image {
    width: 60px; 
    height: 60px;
    object-fit: contain;
}

.donation-heart-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px; 
    height: 56px;
    background: var(--sp-primary-color);
    border-radius: 50%;
    margin: 0 auto;
}

.donation-heart-icon svg {
    
}


.donation-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f5, #e8f5e8);
    border-radius: var(--sp-border-radius);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--sp-primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--sp-text-secondary);
    font-weight: 500;
}


.amount-selection {
    margin-bottom: 16px; 
}

.amount-selection h3 {
    margin: 0 0 10px; 
    font-size: 16px; 
    font-weight: 500;
    color: var(--sp-text-color);
    text-align: center;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
    margin-bottom: 16px; 
}

.amount-btn {
    padding: 12px 8px; 
    border: 1px solid #e0e0e0;
    background: #eaeaea;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #373737;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 44px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.amount-btn:hover {
    border-color: var(--sp-primary-color);
    box-shadow: 0 2px 8px rgba(32, 96, 53, 0.15);
}

.amount-btn.selected {
    border-color: var(--sp-primary-color);
    background: var(--sp-primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(32, 96, 53, 0.3);
}

.amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.amount-btn:hover::before {
    left: 100%;
}


.custom-amount {
    position: relative;
    margin-top: 12px; 
}

.custom-amount input {
    width: 100%;
    padding: 0; 
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: "Gabarito", Arial, sans-serif;
    transition: all 0.2s ease;
    text-align: center;
    color: #404040;
    font-weight: 500;
    min-height: 44px; 
    box-sizing: border-box;
    background: #eaeaea;
}


.custom-amount input::-webkit-outer-spin-button,
.custom-amount input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount input[type=number] {
    -moz-appearance: textfield; 
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--sp-primary-color);
    box-shadow: 0 0 0 3px rgba(32, 96, 53, 0.1);
    color: #373737;
}

.custom-amount .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #404040;
    font-weight: 500;
    font-size: 16px;
}


.payment-methods {
    margin-top: 30px; 
    margin-bottom: 16px; 
}

.payment-methods h3 {
    margin: 0 0 10px; 
    font-size: 16px; 
    font-weight: 500;
    color: var(--sp-text-color);
    text-align: center;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #eaeaea;
    transition: all 0.2s ease;
    min-height: 68px; 
    justify-content: center;
    color: var(--sp-text-color);
}

.payment-option:hover .payment-option-content {
    border-color: var(--sp-primary-color);
}

.payment-option input:checked + .payment-option-content {
    border-color: var(--sp-primary-color);
    background: var(--sp-primary-color);
    color: white;
}

.payment-option-content .material-icons {
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--sp-text-color);
}

.payment-option input:checked + .payment-option-content .material-icons {
    color: white;
}

.payment-option-content span:last-child {
    font-weight: 600;
    font-size: 15px;
}


.btn-continue,
.btn-close {
    width: 100%;
    padding: 12px; 
    border: none;
    border-radius: 12px;
    background: #5a5a5a;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: "Gabarito", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px; 
}

.btn-continue:disabled {
    background: #d1d5db;
    color: #5a5a5a;
    cursor: not-allowed;
}

.btn-continue:not(:disabled) {
    background: var(--sp-primary-color);
}

.btn-continue:not(:disabled):hover,
.btn-close:hover {
    background: var(--sp-primary-dark);
    box-shadow: 0 4px 12px rgba(32, 96, 53, 0.3);
}


#step-2 .btn-donate {
    width: 100%;
    padding: 16px; 
    border: none;
    border-radius: 12px;
    background: var(--sp-primary-color);
    color: white;
    font-size: 16px; 
    font-weight: 600;
    font-family: "Gabarito", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px; 
    margin-top: 0; 
}

#step-2 .btn-donate:hover {
    background: var(--sp-primary-dark);
    box-shadow: 0 4px 12px rgba(32, 96, 53, 0.3);
}

#step-2 .btn-donate .material-icons {
    font-size: 18px;
}

.privacy-notice {
    margin: 0 0 10px 0 !important;
    text-align: center;
    font-size: 12px !important;
    color: #666;
    line-height: 1.4;
}

.privacy-notice a {
    color: var(--sp-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.privacy-notice a:hover {
    text-decoration: none;
    opacity: 0.9;
}

@media (max-width: 430px) {
    .privacy-notice {
        max-width: 200px;
        margin: 0 auto 10px auto !important;
    }
}

.btn-back {
    background: none;
    border: none;
    color: #404040;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    margin-bottom: 16px;
}


#step-2 .popup-header {
    padding: 46px 24px 0; 
    position: relative;
}

.step2-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin-top: 16px;
}

#step-2 .popup-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #373737;
    text-align: center;
}

#step-2 .popup-body p {
    margin: 0 0 24px;
    color: #5a5a5a;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}


.btn-back {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #404040;
    font-size: 24px;
}


.donation-form {
    max-height: none; 
}


#step-2 .form-group {
    margin-bottom: 20px; 
}

#step-2 .form-group label {
    display: block;
    margin-bottom: 8px; 
    font-weight: 500;
    color: #373737;
    font-size: 16px; 
}


.form-group label[for="donor-name"]:after,
.form-group label[for="donor-email"]:after {
    content: " *";
    color: #ef4444;
    font-weight: 600;
}


#step-2 .form-control {
    width: 100%;
    padding: 5px 10px; 
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Gabarito", Arial, sans-serif;
    transition: var(--sp-transition);
    box-sizing: border-box;
    background: #eaeaea;
    color: #404040;
}

.form-control:focus {
    outline: none;
    background: #e0e0e0;
    border-color: var(--sp-primary-color);
    color: #373737;
}


.form-control::placeholder,
.custom-amount input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #868686;
    opacity: 1;
}


.form-control.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}


#step-2 .donation-summary {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px; 
    margin-top: 32px; 
}

#step-2 .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px; 
    font-size: 16px;
}

#step-2 .summary-item:last-child {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

#step-2 .summary-item span:first-child {
    color: #373737;
    font-weight: 400;
}

#step-2 .summary-item span:last-child {
    color: #373737;
    font-weight: 600;
}


.success-check-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px; 
    height: 56px;
    background: var(--sp-primary-color);
    border-radius: 50%;
    margin: 0 auto;
}

#success-message {
    padding: 0 8px;
    max-width: 300px;
    margin: 0 auto;
}


.success-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0 0 0;
}


.bank-transfer-details {
    margin: 0 0 20px 0; 
}

.transfer-details-header {
    background: var(--sp-primary-color);
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 16px; 
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-details-content {
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    padding: 16px; 
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0; 
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px; 
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-row.highlight {
    background: #fff3cd;
    margin: -1px -16px -20px -16px;
    padding: 8px 16px;
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.detail-label {
    color: #373737;
    font-weight: 500;
}

.detail-value {
    color: #373737;
    font-weight: 500;
    text-align: right;
}


.paypal-success-details {
    margin-bottom: 32px;
    text-align: center;
}

.paypal-success-text {
    color: #404040;
    font-size: 16px;
    line-height: 1.5;
}

.paypal-error-details {
    margin-bottom: 5px;
    text-align: center;
}

.error-message h3 {
    color: #dc2626;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 8px;
}

.error-message p {
    color: #404040;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 auto 20px;
    max-width: 200px;
}

.error-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-switch-to-transfer {
    background: var(--sp-primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-switch-to-transfer:hover {
    background: var(--sp-primary-dark);
}

.btn-retry-payment {
    background: #dadada;
    color: #404040;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-retry-payment:hover {
    background: #c5c5c5;
}


.receipt-section {
    margin: 0;
    text-align: center;
}

.receipt-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #373737;
}

.receipt-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
}

.btn-receipt-yes {
    background: #dadada;
    color: #404040;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-receipt-yes:hover,
.btn-receipt-yes:active {
    background: var(--sp-primary-color);
    color: white;
}

.btn-receipt-no {
    background: #dadada;
    color: #404040;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-receipt-no:hover,
.btn-receipt-no:active {
    background: var(--sp-primary-color);
    color: white;
}


#step-4 .popup-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 8px;
    padding-bottom: 20px;
}

#step-4 .popup-header h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #373737;
}

#step-4 .popup-header p {
    margin: 0;
    color: #5a5a5a;
    font-size: 14px;
    line-height: 1.5;
}

#step-4 .popup-body > p {
    margin: 10px 0;
}

.receipt-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 20px 0 0 0;
}


.receipt-form {
    max-height: none;
}

#step-4 .form-group {
    margin-bottom: 16px;
}

#step-4 .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #373737;
    font-size: 15px;
}

#step-4 .form-control {
    width: 100%;
    padding: 0px 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Gabarito", Arial, sans-serif;
    transition: var(--sp-transition);
    box-sizing: border-box;
    background: #eaeaea;
    color: #404040;
}

#step-4 .form-control:focus {
    outline: none;
    background: #e0e0e0;
    border-color: var(--sp-primary-color);
    color: #373737;
}


.form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.form-col-30 {
    flex: 0 0 30%;
}

.form-col-70 {
    flex: 0 0 calc(70% - 12px);
}


.btn-submit-receipt {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--sp-primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: "Gabarito", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    margin-top: 20px;
    position: relative;
}

.btn-submit-receipt:hover {
    background: var(--sp-primary-dark);
    box-shadow: 0 4px 12px rgba(32, 96, 53, 0.3);
}


.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 600px) {
    .spenden-popup-container {
        width: 90%;
        max-height: 90vh; 
        margin: 10px;
    }

    .popup-header {
        padding: 16px 20px 12px; 
    }

    .popup-body {
        padding: 0 20px 16px;
    }

    .popup-header h2 {
        font-size: 18px; 
        margin: 6px 0 4px;
    }

    .popup-header p {
        font-size: 13px; 
        line-height: 1.3;
    }

    .donation-heart-icon,
    .success-check-icon {
        width: 48px; 
        height: 48px;
    }

    .amount-selection h3,
    .payment-methods h3 {
        font-size: 15px; 
        margin: 0 0 8px;
    }

    .amount-buttons {
        gap: 8px;
        margin-bottom: 12px;
    }

    .amount-btn {
        padding: 10px 6px; 
        font-size: 15px;
        min-height: 40px; 
    }

    .custom-amount {
        margin-top: 10px;
    }

    .custom-amount input {
        padding: 10px 35px 10px 12px;
        min-height: 40px;
        font-size: 15px;
    }

    .payment-options {
        gap: 8px;
    }

    .payment-option-content {
        padding: 12px 8px;
        min-height: 58px;
    }

    .payment-option-content .material-icons {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .payment-option-content span:last-child {
        font-size: 14px;
    }

    .btn-continue,
    .btn-close,
    .btn-donate {
        padding: 10px;
        min-height: 40px;
        font-size: 15px;
    }

    
    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 10px;
        font-size: 14px;
    }

    .donation-summary {
        margin-top: 16px;
        margin-bottom: 12px;
    }

    .summary-item {
        font-size: 14px;
        margin-bottom: 8px;
    }

    
    .transfer-details-header {
        padding: 10px 14px;
        font-size: 14px;
    }

    .transfer-details-content {
        padding: 12px;
    }

    .detail-row {
        padding: 6px 0;
        font-size: 13px;
    }

    .detail-row.highlight {
        margin: -1px -12px -20px -12px;
        padding: 8px 12px;
    }

    .receipt-question {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .btn-receipt-yes,
    .btn-receipt-no {
        padding: 12px 20px;
        font-size: 15px;
    }
}


@media (max-width: 415px) {
    #step-1 .popup-header p {
        padding: 0;
    }
}

@media (max-width: 400px) {
    .spenden-popup-container {
        width: 90%;
        max-height: 95vh;
    }

    .popup-header h2 {
        font-size: 17px;
    }

    .amount-btn {
        font-size: 14px;
        min-height: 38px;
    }

    .custom-amount input {
        min-height: 38px;
    }

    .payment-option-content {
        min-height: 54px;
    }
}


body.spenden-popup-open {
    overflow: hidden;
}


.spenden-popup-text-center {
    text-align: center;
}

.spenden-popup-mb-16 {
    margin-bottom: 16px;
}

.spenden-popup-mb-24 {
    margin-bottom: 24px;
}

.spenden-popup-hidden {
    display: none !important;
}


.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}



.popup-step {
    display: none; 
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.popup-step.active {
    display: flex; 
}

.popup-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.popup-header {
    flex-shrink: 0;
}

.popup-footer {
    flex-shrink: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--sp-border-color);
    background: #fafafa;
    margin-top: auto;
}


@media (max-width: 768px) {
    .spenden-popup-container {
        width: 90%;
        max-height: 98vh;
        margin: 1vh auto;
    }

    .popup-header {
        padding: 16px 20px 8px;
        text-align: center;
    }

    .popup-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .popup-header p {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .popup-body {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    .donation-stats {
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .amount-btn {
        padding: 10px 8px;
        font-size: 15px;
        min-height: 44px;
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .popup-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .popup-close .material-icons {
        font-size: 18px;
    }
}


@media (max-width: 480px) {
    .spenden-popup-container {
        width: 90%;
        max-height: 99vh;
        margin: 0.5vh auto;
    }

    .popup-header {
        padding: 12px 16px 6px;
    }

    .popup-header h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .popup-header p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .popup-body {
        padding: 0 16px 20px;
        font-size: 14px;
    }

    .amount-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 12px;
    }

    .amount-btn {
        padding: 8px 6px;
        font-size: 14px;
        min-height: 40px;
    }

    .donation-stats {
        gap: 8px;
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 11px;
    }

    .donation-image {
        width: 40px;
        height: 40px;
    }

    .donation-heart-icon {
        width: 45px;
        height: 45px;
    }

    .custom-amount input {
        padding: 8px 10px;
        font-size: 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 10px; 
        font-size: 16px;
    }

    .continue-btn,
    .submit-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}


@media (max-height: 600px) {
    .spenden-popup-container {
        max-height: 99vh;
    }

    .popup-header {
        padding: 8px 16px 4px;
    }

    .popup-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .popup-header p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .popup-body {
        padding: 0 16px 16px;
        font-size: 13px;
    }

    .donation-image {
        width: 32px;
        height: 32px;
    }

    .donation-heart-icon {
        width: 40px;
        height: 40px;
    }

    .donation-stats {
        margin-bottom: 8px;
    }

    .amount-selection h3,
    .payment-methods h3,
    .donation-form h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    
    .success-cards {
        gap: 12px;
    }

    .card-header {
        padding: 10px 12px;
    }

    .card-content {
        padding: 12px;
    }

    .detail-row {
        padding: 6px 0;
    }

    .detail-row.highlight,
    .detail-row.important {
        margin: -1px -12px -20px -12px;
        padding: 8px 12px;
    }

    .detail-row .value.mono {
        font-size: 11px;
    }
}



.success-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.success-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    background: var(--sp-primary-color);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header .material-icons {
    font-size: 20px;
}

.card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.card-content {
    padding: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.important {
    background: #fff3cd;
    margin: 8px -16px -16px;
    padding: 8px 20px;
    border-bottom: none;
}

.detail-row .label {
    font-size: 13px;
    color: #373737;
    font-weight: 500;
}

.detail-row .value {
    font-size: 14px;
    color: #373737;
    font-weight: 500;
    text-align: right;
}

.detail-row .value.highlight {
    color: var(--sp-primary-color);
    font-size: 16px;
    font-weight: 600;
}

.detail-row .value.mono {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1px;
}


.paypal-redirect {
    background: linear-gradient(135deg, #0070ba, #003087);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.redirect-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.paypal-redirect p {
    margin: 0;
    font-size: 14px;
}

.countdown {
    font-weight: 600;
    font-size: 16px;
}


.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 8px;
    color: #1565c0;
}

.info-note .material-icons {
    font-size: 18px;
}

.info-note p {
    margin: 0;
    font-size: 13px;
}


.receipt-section {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.receipt-question {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    justify-content: center;
}

.receipt-question .material-icons {
    color: var(--sp-primary-color);
    font-size: 20px;
}

.receipt-question p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.receipt-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
}

.btn-receipt-primary {
    background: linear-gradient(135deg, var(--sp-primary-color), var(--sp-primary-dark));
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(32, 96, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-receipt-primary:hover {
    background: linear-gradient(135deg, var(--sp-primary-dark), #0d2818);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 96, 53, 0.4);
}

.btn-receipt-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-receipt-primary:hover::before {
    left: 100%;
}

.btn-receipt-primary .material-icons {
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.btn-receipt-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-receipt-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-receipt-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(108, 117, 125, 0.1);
    transition: left 0.4s;
}

.btn-receipt-secondary:hover::before {
    left: 100%;
}

.btn-receipt-secondary .material-icons {
    font-size: 16px;
}

.receipt-success-popup {
    display: none;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.receipt-success-popup.show {
    display: block;
}

.success-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.success-content .material-icons {
    color: #155724;
    font-size: 24px;
    margin-top: 2px;
}

.success-text strong {
    color: #155724;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.success-text p {
    color: #155724;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}


.paypal-waiting-details {
    text-align: center;
    padding: 40px 20px;
}

.waiting-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--sp-border-color);
    border-radius: 50%;
    border-top-color: var(--sp-primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.waiting-indicator h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: var(--sp-text-color);
}

.waiting-indicator p {
    margin: 0;
    font-size: 16px;
    color: var(--sp-text-secondary);
}

.waiting-hint {
    font-size: 14px !important;
    font-style: italic;
    color: var(--sp-text-secondary) !important;
}