/* assets/css/checklists.css */

/* --- Allgemeiner Header-Stil für alle Checklisten-Seiten --- */
.checklist-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.checklist-header h1 {
    font-size: 2rem;
    margin-top: 1rem;
    color: var(--text-main);
}
.checklist-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Stil für die Bereichs-Übersicht (area_list_view) --- */
.area-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.area-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.area-card-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background-color: var(--bg-body);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.area-card-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
}

.area-card-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Stil für die Checklisten-Übersicht (checklist_list_view) --- */
.checklist-list {
    display: grid;
    gap: 1rem;
}

.checklist-card {
    display: block;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.checklist-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.checklist-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
}

.checklist-card p {
    margin: 0;
    color: var(--text-muted);
}


/* =========================================
   STIL FÜR DIE CHECKLISTEN-DETAIL-TABELLE (Ausrichtung gefixt, amk)
   ========================================= */
.checklist-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.checklist-table th, .checklist-table td {
    padding: 0.25rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.checklist-table thead {
    background-color: #2c244a; /* Dein dunkler Header */
}
.checklist-table th {
    font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.8rem 0.5rem;
}
.checklist-table tbody tr:last-child td {
    border-bottom: none;
}
.checklist-item-row {
    transition: background-color 0.3s ease;
}
.checklist-item-row:hover {
    background-color: #128c9c8e;
}

/* Label für den Software-Namen */
.item-label {
    font-weight: 500;
    color: var(--text-main);
}

/* HIER IST DER FIX, BRUDER */
/* Richtet die LETZTE Spalte (Header UND Body) rechts aus */
.checklist-table th:last-child,
.checklist-table td:last-child {
    text-align: right;
}

/* Container für die Aktionen - KEIN FLEXBOX MEHR */
.item-actions {
    /* Diese Klasse brauchen wir eigentlich nicht mehr fürs Layout, aber wir lassen sie für die Zukunft. */
}
.btn-icon, .item-checkbox {
    margin-left: 1rem; /* Abstand zwischen den Action-Items */
}
.btn-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: inline-block;
}
.btn-icon:hover {
    color: var(--accent-color);
}
.item-checkbox {
    width: 1.3em;
    height: 1.3em;
    cursor: pointer;
    vertical-align: middle;
}

/* --- "ABGEHAKT"-EFFEKT --- */
.checklist-item-row:has(.item-checkbox:checked) {
    background-color: rgba(18, 192, 85, 0.555);
}
.checklist-item-row:has(.item-checkbox:checked) .item-label,
.checklist-item-row:has(.item-checkbox:checked) td {
    color: var(--text-muted);
}
.checklist-item-row:has(.item-checkbox:checked) .item-label {
    text-decoration: line-through;
}

/* =========================================
   VARIANTEN-TABS (NEU)
   ========================================= */
.checklist-variations {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.variation-label {
    font-weight: 600;
    color: var(--text-muted);
}

.variation-tabs {
    display: inline-flex;
    gap: 0.5rem;
}

.variation-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-muted);
}

.variation-tab:hover {
    border-color: var(--accent-color);
    color: var(--text-main);
}

.variation-tab.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    font-weight: 600;
}