/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.personalized-greeting {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.personalized-greeting p {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

/* Main Content */
.main {
    padding: 3rem 0;
    min-height: 70vh;
}

/* Total Donations Banner */
.total-donations-banner {
    background: #38a169;
    padding: 2rem;
}

.total-donations-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: white;
}

.total-donations-icon {
    font-size: 4rem;
    opacity: 0.9;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.total-donations-text {
    text-align: center;
}

.total-donations-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.total-donations-text p {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    font-size: 1rem;
}

.total-donations-amount {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

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

.projects-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2d3748;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(72, 187, 120, 0.2);
}

.project-card:hover .project-title {
    color: #4b7d73;
}

.project-card.completed {
    opacity: 0.8;
    border: 2px solid #4b7d73;
}

/* Projekt-Beschreibung mit Mehr-erfahren-Toggle */
.project-description-wrapper {
    margin-bottom: 1rem;
}

.project-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    max-height: 2.8em; /* ca. 2 Zeilen bei line-height 1.4 */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.project-description.expanded {
    max-height: 1000px; /* Große Zahl für vollständige Anzeige */
}

.project-read-more-btn {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0;
    background: none;
    border: none;
    color: #3182ce;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.project-read-more-btn:hover {
    color: #2b6cb0;
}

.project-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.project-content {
    padding: 1rem 1rem 0.75rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #2d3748;
    line-height: 1.3;
}

/* Alte .project-description Regel entfernt - wird jetzt durch die neue Regel mit Mehr-erfahren-Toggle ersetzt (Zeile 165-176) */

.project-link {
    color: #4b7d73;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
}

.project-link:hover {
    text-decoration: underline;
}

.project-progress {
    margin-bottom: 0.75rem;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
width:100%;
    margin-top: auto;

}

.project-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.project-donate-btn {
    background: #4b7d73;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    width:100%;
}

.project-donate-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.project-donate-btn:disabled {
    background: #cbd5e0;
    color: #718096;
    cursor: not-allowed;
    transform: none;
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #bee3f8;
    color: #2b6cb0;
}

.status-completed {
    background-color: #c6f6d5;
    color: #276749;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Donation Options */
.donation-options {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.donation-options h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donation-options h4::before {
    content: '💝';
    font-size: 1.25rem;
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #cbd5e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    color: #4a5568;
}

.amount-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(72, 187, 120, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.amount-btn:hover::before {
    width: 300px;
    height: 300px;
}

.amount-btn:hover {
    border-color: #4b7d73;
    background-color: #f7fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.2);
}

.amount-btn.selected {
    border-color: #4b7d73;
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.amount-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1rem;
    font-weight: bold;
}

.amount-btn.preview-active {
    border-color: #4b7d73;
    background-color: rgba(72, 187, 120, 0.1);
    transform: scale(1.02);
}

.custom-amount {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    border: 2px solid #cbd5e0;
    transition: all 0.3s ease;
}

.custom-amount:focus-within {
    border-color: #4b7d73;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
}

.custom-amount input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.custom-amount input:focus {
    outline: none;
}

.custom-amount input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.custom-amount span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b7d73;
    padding-right: 0.5rem;
}

/* Donation Cart */
.donation-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.donation-cart.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.cart-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    color: #718096;
    font-size: 0.9rem;
}

.cart-item-amount {
    font-weight: 600;
    color: #4b7d73;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.cart-total {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.4);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart.hidden {
    display: none;
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar für Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    border-bottom: none;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: #f7fafc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0.75rem 1.5rem 1rem 1.5rem;
}

.modal-body img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.progress-info {
    margin-bottom: 1.5rem;
}

/* Progress bar removed from modal */

.progress-info .progress-text {
    font-size: 1rem;
    font-weight: 500;
}

.progress-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4b7d73;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.progress-preview.show {
    opacity: 1;
    transform: translateY(0);
}

.progress-preview-text {
    color: #4b7d73;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.progress-preview-amount {
    color: #4a5568;
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(180deg, transparent 0%, #f8f9fa 100%);
}

.modal-footer .btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

.modal-footer .btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.modal-footer .btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.voucher-note {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    margin: 1rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #4b7d73;
    margin-bottom: 1rem;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-icon {
    font-size: 4rem;
    color: #e53e3e;
    margin-bottom: 1rem;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.error-modal h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.error-modal p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    white-space: pre-line;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Modal - Mobile Optimiert */
.success-modal-mobile {
    max-width: 500px;
    padding: 0;
}

.success-modal-mobile .modal-body {
    padding: 1.5rem 1.25rem;
}

/* Success Header - Kompakt */
.success-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.success-header p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
}

/* Certificate Info - Kompakt */
.certificate-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.certificate-info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.certificate-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.certificate-info-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.certificate-info-text span {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.3;
}

/* Success Actions */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.btn-block {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
}

.btn-block i {
    font-size: 1.1rem;
}

/* Certificate Name Prompt - Kompakt */
.certificate-name-prompt {
    margin-top: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.name-prompt-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
}

.name-prompt-header i {
    color: #4b7d73;
}

.name-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.name-input:focus {
    outline: none;
    border-color: #4b7d73;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.name-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-text {
    background: transparent;
    border: none;
    color: #718096;
    padding: 0.625rem;
    font-size: 0.9rem;
}

.btn-text:hover {
    background: #edf2f7;
    color: #4a5568;
}

/* Certificate Loading Animation */
.certificate-loading {
    margin-top: 1rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.loading-santa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.santa-icon {
    font-size: 3rem;
    animation: santaBounce 1s ease-in-out infinite;
}

@keyframes santaBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loading-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.loading-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.loading-text span {
    font-size: 0.85rem;
    color: #718096;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4b7d73 0%, #38a169 100%);
    border-radius: 2px;
    animation: progressMove 1.5s ease-in-out infinite;
}

@keyframes progressMove {
    0% {
        width: 0%;
        margin-left: 0%;
    }
    50% {
        width: 50%;
        margin-left: 25%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Share Section - Kompakt */
.share-section {
    margin-top: 1rem;
    padding: 0.875rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Mobile Optimierungen */
@media (max-width: 600px) {
    .success-modal-mobile {
        width: 95%;
        margin: 0.5rem;
    }
    
    .success-modal-mobile .modal-body {
        padding: 1.25rem 1rem;
    }
    
    .success-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .success-header h2 {
        font-size: 1.375rem;
    }
    
    .success-header p {
        font-size: 0.9rem;
    }
    
    .certificate-info {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .certificate-info-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .certificate-info-text strong {
        font-size: 0.9rem;
    }
    
    .certificate-info-text span {
        font-size: 0.8rem;
    }
}

/* Desktop Anpassungen */
@media (min-width: 601px) {
    .success-modal-mobile {
        max-width: 480px;
    }
    
    .success-modal-mobile .modal-body {
        padding: 2rem 1.5rem;
    }
}

/* Animated Checkmark */
.success-animation {
    margin-bottom: 2rem;
}

.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4b7d73;
    background: #f0fff4;
    animation: scaleIn 0.5s ease-in-out;
}

.icon-line {
    height: 5px;
    background-color: #4b7d73;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.line-tip {
    top: 56px;
    left: 25px;
    width: 25px;
    transform: rotate(45deg);
    animation: drawTip 0.3s ease-in-out 0.5s forwards;
    opacity: 0;
}

.line-long {
    top: 50px;
    right: 15px;
    width: 50px;
    transform: rotate(-45deg);
    animation: drawLong 0.3s ease-in-out 0.7s forwards;
    opacity: 0;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(72, 187, 120, 0.2);
}

.icon-fix {
    top: 12px;
    width: 10px;
    left: 32px;
    z-index: 1;
    height: 95px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #f0fff4;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawTip {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 25px;
        opacity: 1;
    }
}

@keyframes drawLong {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 50px;
        opacity: 1;
    }
}

/* Success Title */
.success-title {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease-in-out 0.9s both;
}

.success-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-in-out 1s both;
}

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

/* Success Details */
.success-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-in-out 1.1s both;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-radius: 12px;
    border-left: 4px solid #4b7d73;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.5rem;
    color: #4b7d73;
    min-width: 30px;
}

.detail-item span {
    color: #2d3748;
    font-weight: 500;
    text-align: left;
}

/* Certificate Card */
.certificate-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef5e7 0%, #fef9e7 100%);
    border-radius: 16px;
    border: 2px solid #f6ad55;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-in-out 1.2s both;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3);
}

.certificate-icon-wrapper {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.certificate-icon-wrapper i {
    font-size: 1.8rem;
    color: white;
}

.certificate-text {
    text-align: left;
    flex: 1;
}

.certificate-text h4 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.certificate-text p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Success Buttons */
.success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-in-out 1.3s both;
}

.btn-download {
    background: linear-gradient(135deg, #4b7d73 0%, #38a169 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.btn-download i {
    font-size: 1.1rem;
}

.btn-close-success {
    background: #e2e8f0;
    color: #4a5568;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-success:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Voucher Modal Specific Styles */
.voucher-modal-content {
    max-width: 600px;
}

.voucher-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fef5e7 0%, #fef9e7 100%);
    border-radius: 16px;
    border: 2px solid #f6ad55;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-in-out 0.9s both;
    transition: all 0.3s ease;
}

.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3);
}

.voucher-icon-wrapper {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.4);
}

.voucher-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

.voucher-content {
    text-align: left;
    flex: 1;
}

.voucher-content h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.voucher-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.voucher-content p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

.voucher-code-card {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #4fd1c5;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease-in-out 0.9s both;
}

.voucher-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed #4fd1c5;
}

.voucher-header .voucher-icon-wrapper {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.voucher-header-text {
    text-align: left;
    flex: 1;
}

.voucher-header-text h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.3rem 0;
}

.voucher-header-text p {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 0;
}

.voucher-code-card label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.voucher-code {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    letter-spacing: 2px;
    border: 2px dashed #4fd1c5;
    margin-bottom: 1rem;
    user-select: all;
}

.btn-copy {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

.voucher-note {
    color: #4a5568;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.voucher-note i {
    color: #4fd1c5;
}

/* Responsive - Voucher Modal */
@media (max-width: 600px) {
    .voucher-modal-content {
        padding: 1.5rem 1rem;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-text {
        text-align: center;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .voucher-card {
        flex-direction: column;
        text-align: center;
    }
    
    .voucher-content {
        text-align: center;
    }
    
    .voucher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .voucher-header-text {
        text-align: center;
    }
    
    .voucher-header-text h3 {
        font-size: 1.5rem;
    }
    
    .voucher-code {
        font-size: 1.2rem;
    }
}

/* Donor Form */
.donor-form {
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4b7d73;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Voucher Modal */
.voucher-modal-content {
    max-width: 500px;
    text-align: center;
}

.voucher-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.voucher-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4b7d73;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border-radius: 12px;
    border: 2px solid #4b7d73;
}

.voucher-code-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.voucher-code-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.voucher-code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 2px solid #4b7d73;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.copy-voucher-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.copy-voucher-btn.copied {
    background: #4b7d73 !important;
    color: white !important;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4b7d73;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .total-donations-banner {
        padding: 1.5rem;
    }
    
    .total-donations-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .total-donations-icon {
        font-size: 3rem;
    }
    
    .total-donations-amount {
        font-size: 2rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .donation-cart {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .amount-buttons {
        justify-content: center;
    }
    
    .modal-footer {
        flex-direction: column;  /* Mobile: Normale Reihenfolge (Primär oben) */
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .project-donate-btn {
        width: 100%;
    }
    
    .floating-cart {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .header p {
        font-size: 1rem;
    }
}
