/**
 * Checkliste Styles
 * Assessment Center Academy Design
 */

/* === WRAPPER === */
.aca-checkliste-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === SELECTOR DROPDOWN === */
.aca-checkliste-selector {
    background: #f4f9ed;
    border-left: 6px solid #88b441;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.aca-checkliste-selector label {
    display: block;
    color: #1a243b;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.aca-zeitrahmen-dropdown {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #88b441;
    border-radius: 6px;
    background: white;
    color: #1a243b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aca-zeitrahmen-dropdown:hover,
.aca-zeitrahmen-dropdown:focus {
    border-color: #76a036;
    outline: none;
    box-shadow: 0 0 0 3px rgba(136, 180, 65, 0.1);
}

/* === ZEITPLAN CONTAINER === */
.aca-zeitplan {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 32px;
}

/* === HEADER === */
.aca-zeitplan-header {
    background: #1a243b;
    color: white;
    padding: 32px;
    position: relative;
}

.aca-zeitplan-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.aca-zeitplan-intro {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.aca-zeitplan-print {
    position: absolute;
    top: 32px;
    right: 32px;
    background: #88b441;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.aca-zeitplan-print:hover {
    background: #76a036;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 180, 65, 0.3);
}

.aca-zeitplan-print svg {
    flex-shrink: 0;
}

/* === PHASEN CONTAINER === */
.aca-phasen-container {
    padding: 0;
}

/* === PHASE === */
.aca-phase {
    border-bottom: 1px solid #e8e8e8;
}

.aca-phase:last-child {
    border-bottom: none;
}

.aca-phase-header {
    background: #f8f9fa;
    padding: 20px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
}

.aca-phase-header:hover {
    background: #f0f8e8;
}

.aca-phase-header h3 {
    color: #1a243b;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.aca-toggle-icon {
    color: #88b441;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.aca-phase.open .aca-toggle-icon {
    transform: rotate(180deg);
}

.aca-phase-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.aca-phase.open .aca-phase-content {
    max-height: 2000px;
}

/* === AUFGABEN LISTE === */
.aca-aufgaben-liste {
    list-style: none;
    padding: 24px 32px;
    margin: 0;
}

.aca-aufgaben-liste li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    color: #1a243b;
    font-size: 15px;
    line-height: 1.6;
}

.aca-aufgaben-liste li:last-child {
    margin-bottom: 0;
}

.aca-aufgaben-liste li::before {
    content: "☐";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: #88b441;
}

/* === ACCORDION (ALLE ZEITPLAENE) === */
.aca-alle-zeitplaene-accordion .aca-zeitplan {
    margin-bottom: 24px;
}

.aca-alle-zeitplaene-accordion .aca-zeitplan:last-child {
    margin-bottom: 0;
}

/* === PRINT STYLES === */
@media print {
    .aca-checkliste-selector,
    .aca-zeitplan-print {
        display: none !important;
    }
    
    .aca-zeitplan {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .aca-phase {
        page-break-inside: avoid;
    }
    
    .aca-phase-content {
        max-height: none !important;
        display: block !important;
    }
    
    .aca-toggle-icon {
        display: none;
    }
    
    .aca-aufgaben-liste li::before {
        content: "☐";
        font-size: 16px;
    }
    
    .aca-zeitplan-header {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .aca-phase-header {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        cursor: default;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .aca-checkliste-wrapper {
        padding: 10px;
    }
    
    .aca-checkliste-selector {
        padding: 20px;
    }
    
    .aca-zeitplan-header {
        padding: 24px 20px;
    }
    
    .aca-zeitplan-header h2 {
        font-size: 24px;
        padding-right: 0;
    }
    
    .aca-zeitplan-print {
        position: static;
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .aca-phase-header,
    .aca-aufgaben-liste {
        padding: 16px 20px;
    }
    
    .aca-aufgaben-liste li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .aca-checkliste-wrapper {
        margin: 24px 0;
        padding: 0;
    }
    
    .aca-checkliste-selector {
        border-radius: 0;
        margin: 0 0 24px 0;
    }
    
    .aca-zeitplan {
        border-radius: 0;
        margin: 0 0 24px 0;
    }
}
