/* CareConnect – Informationsmanagement (I1: Fundament) */

.cc-info-wrap { font-size: .92rem; color: #1a1a2e; }
.cc-info-wrap * { box-sizing: border-box; }

.cc-info-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.cc-info-firma-auswahl { display: flex; align-items: center; gap: 8px; }
.cc-info-firma-auswahl select {
    padding: 7px 10px; border: 1px solid #ccc; border-radius: 6px; min-width: 220px;
}

.cc-info-filterleiste {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.cc-info-filterleiste select,
.cc-info-filterleiste input[type="text"] {
    padding: 6px 9px; border: 1px solid #ccc; border-radius: 6px; font-size: .85rem;
}

.cc-info-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
}
.cc-info-btn:disabled { opacity: .5; cursor: not-allowed; }
.cc-info-btn-primary { background: #0078d4; border-color: #0078d4; color: #fff; }
.cc-info-btn-primary:hover:not(:disabled) { background: #005ea6; }
.cc-info-btn-secondary { background: #f2f6fb; border-color: #cdd8e4; }
.cc-info-btn-abbrechen { background: #f5f5f5; }
.cc-info-btn-danger { background: #fdecec; border-color: #f3b3b3; color: #b42323; }
.cc-info-btn-mini {
    font-size: .72rem; padding: 3px 8px; border-radius: 4px; border: 1px solid #ccc; background: #fff; cursor: pointer;
}
.cc-info-btn-mini.danger { color: #b42323; border-color: #f0b8b8; }

.cc-info-hinweis { color: #666; font-size: .85rem; }

/* ── Liste ── */
.cc-info-tabelle { width: 100%; border-collapse: collapse; background: #fff; }
.cc-info-tabelle th {
    text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
    color: #667; border-bottom: 2px solid #e5e9ef; padding: 8px 10px;
}
.cc-info-tabelle td { padding: 10px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.cc-info-tabelle tr:hover td { background: #f8fafc; }

.cc-info-titelzelle { font-weight: 600; }
.cc-info-meta { color: #888; font-size: .78rem; margin-top: 2px; }

/* Prioritäts-Badges */
.cc-info-prio {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 20px; font-size: .75rem; font-weight: 700;
    white-space: nowrap;
}
.cc-info-prio-kritisch { background: #fdecec; color: #b42323; }
.cc-info-prio-hoch     { background: #fff2df; color: #b4650b; }
.cc-info-prio-normal   { background: #fff9d9; color: #8a7500; }
.cc-info-prio-information { background: #e6f4ea; color: #1e7a34; }

.cc-info-status {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 600;
    background: #eef1f5; color: #556;
}
.cc-info-status-veroeffentlicht { background: #e6f4ea; color: #1e7a34; }
.cc-info-status-entwurf { background: #eef1f5; color: #556; }
.cc-info-status-archiviert { background: #f0f0f0; color: #888; }

.cc-info-tag {
    display: inline-block; padding: 1px 8px; margin: 2px 4px 2px 0;
    border-radius: 20px; background: #f2f6fb; color: #0078d4; font-size: .72rem;
}

/* ── Modal / Formular ── */
.cc-info-feld { margin-bottom: 14px; }
.cc-info-feld label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 4px; }
.cc-info-feld input[type="text"],
.cc-info-feld select,
.cc-info-feld textarea {
    width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: .88rem;
}
.cc-info-feld textarea { min-height: 140px; resize: vertical; }
.cc-info-feld-hinweis { color: #888; font-size: .76rem; margin-top: 4px; }

.cc-info-zielgruppe-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cc-info-zielgruppe-tab {
    padding: 5px 12px; border-radius: 20px; border: 1px solid #ccc; background: #fff;
    cursor: pointer; font-size: .8rem;
}
.cc-info-zielgruppe-tab.aktiv { background: #0078d4; border-color: #0078d4; color: #fff; }

.cc-info-checkbox-liste {
    max-height: 220px; overflow-y: auto; border: 1px solid #e5e9ef; border-radius: 6px; padding: 8px;
}
.cc-info-checkbox-liste label {
    display: flex; align-items: center; gap: 6px; padding: 4px 2px; font-weight: 400; font-size: .85rem;
}

/* ── KI-Einstellungen (Phase I4) ── */
.cc-api-status {
    padding: 10px 14px; border-radius: 6px; font-size: .85rem; font-weight: 500; margin-bottom: 10px;
}
.cc-api-ok      { background: #e6f4ea; color: #1e7a34; border: 1px solid #a7f3d0; }
.cc-api-missing { background: #fff2df; color: #b4650b; border: 1px solid #fde68a; }

@media (max-width: 782px) {
    .cc-info-toolbar { flex-direction: column; align-items: stretch; }
    .cc-info-tabelle thead { display: none; }
    .cc-info-tabelle, .cc-info-tabelle tbody, .cc-info-tabelle tr, .cc-info-tabelle td { display: block; width: 100%; }
    .cc-info-tabelle tr { margin-bottom: 10px; border: 1px solid #eef1f5; border-radius: 8px; }
}
