/*
 * Jobcenter-Kontakte der Plattform: Übersicht (sortierbare Tabelle), Ansprechpartner, Stand und Zeitleiste.
 * Fällige Wiedervorlagen mit gelbem Rand links, Symbol und Wort (nie nur Farbe).
 */

.ct-table tbody th {
    font-weight: var(--fw-regular);
}

.ct-table tbody th > a {
    font-weight: var(--fw-medium);
}

.ct-table tr.is-due > :first-child {
    box-shadow: inset 3px 0 0 var(--c-warning);
}

.ct-sort {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.ct-sort:hover,
.ct-sort:focus-visible {
    text-decoration: underline;
}

.ct-sort .icon {
    width: 14px;
    height: 14px;
}

.ct-kinds {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.ct-grid {
    align-items: start;
}

.ct-section {
    margin-top: var(--space-5);
}

.ct-facts {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-small);
}

.ct-plain {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Ansprechpartner */
.ct-persons {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-person + .ct-person {
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-line);
}

.ct-person__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.ct-person__head h3,
.ct-state h3,
.ct-new h3 {
    margin: 0;
    color: var(--c-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
}

/* Stand aus vorhandenen Daten */
.ct-state + .ct-state {
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-line);
}

.ct-state h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.ct-state h3 .icon {
    width: 18px;
    height: 18px;
    color: var(--c-muted);
}

.ct-state__sub {
    margin: var(--space-3) 0 var(--space-2);
    color: var(--c-muted);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
}

/* Neuer Eintrag und Zeitleiste */
.ct-new {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-surface);
}

.ct-new h3 {
    margin-bottom: var(--space-3);
}

.ct-timeline {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: 0 0 0 var(--space-4);
    border-left: 2px solid var(--c-line);
    list-style: none;
}

.ct-note {
    position: relative;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-panel);
}

.ct-note::before {
    content: "";
    position: absolute;
    top: var(--space-4);
    left: calc(-1 * var(--space-4) - 6px);
    width: 10px;
    height: 10px;
    border: 2px solid var(--c-panel);
    border-radius: 50%;
    background: var(--c-border-strong);
}

.ct-note.is-due {
    box-shadow: inset 3px 0 0 var(--c-warning);
}

.ct-note.is-due::before {
    background: var(--c-warning);
}

.ct-note__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.ct-note__text {
    margin: var(--space-2) 0;
    overflow-wrap: anywhere;
}

.ct-note__meta {
    margin: 0 0 var(--space-2);
    font-size: var(--fs-small);
}

.ct-form {
    max-width: 60rem;
}

/* Art des Eintrags und Anrede: wenige kurze Möglichkeiten nebeneinander (auf dem Telefon umbrechend) */
:is(.ct-new, .ct-form) .choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
}
