/**
 * src/css/pledge.css
 * Design für das Ehrenkodex-Modal (Pledge).
 * REFACTORED: Nutzt Variablen und delegiert Animationen an animations.css.
 * Fokus: Klarheit, Fokus und Verbindlichkeit.
 */

/* 1. OVERLAY (HINTERGRUND-ABDUNKLUNG) */
#pledge-overlay {
    display: none; /* Steuerung erfolgt via JS (auth.js) */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Über allem anderen */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 2. DIE PLEDGE-KARTE */
.pledge-box {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
    /* Trigger für die Animation aus animations.css */
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pledge-box h2 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 800;
}

.pledge-box p {
    margin-bottom: 30px;
    color: var(--text-main);
    line-height: 1.6;
    text-align: center;
    font-size: 15px;
}

/* 3. DIE CHECKLISTE */
.pledge-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.pledge-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 15px;
    font-weight: 500;
}

.pledge-item:hover {
    background: #f0fdf4;
}

.pledge-check {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-green);
}

/* 4. DER BESTÄTIGUNGS-BUTTON */
/* Nutzt die Basis aus components.css, hier nur Modal-spezifische Werte */
#pledge-submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Spezialzustand für den Pledge-Button (Pulsieren wenn bereit) */
#pledge-submit-btn.active {
    background-color: var(--primary-green);
    animation: ringGlow 3s infinite ease-in-out;
    cursor: pointer;
}

/* 5. RESPONSIVE OPTIMIERUNG */
@media (max-width: 480px) {
    .pledge-box {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }
    
    .pledge-box h2 {
        font-size: 22px;
    }
}