/* Konto-Bereich (/settings/): Uebersicht-Abschnitt, Fortschrittsbalken und
   die Kopfzeile fuer Angemeldete.

   Die Abschnitte liegen in der Kartenoptik der Einstellungen (s-card/s-head,
   definiert im Style-Block von settings/settings_.html). Hier steht nur, was
   darin dargestellt wird. */

/* ── Kopfzeile ──────────────────────────────────────────────────────── */

.kopf-angemeldet {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* ── Gemeinsamer Innenabstand der Uebersicht-Abschnitte ─────────────── */

.ko-abschnitt {
    padding: 16px 18px;
}

/* ── Meine Systeme ─────────────────────────────────────────────────── */

.ko-systeme {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    padding: 16px 18px;
}

.ko-system {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ko-system-kopf {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ko-system-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ko-neu-zahl {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 1px 7px;
}

.ko-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: #9ca3af;
}

.ko-gruppen {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ko-gruppe {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 8px;
}

.ko-oeffnen {
    margin-top: 10px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ko-oeffnen:hover {
    background: #1f2937;
    color: #fde68a;
}

.ko-leer {
    margin: 0;
    padding: 16px 18px;
    font-size: 0.84rem;
    color: #6b7280;
}

/* ── Fortschrittsbalken ────────────────────────────────────────────── */

.ko-balken-zeile {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.ko-balken-wert {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.ko-balken-wert span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
}

.ko-balken-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.ko-balken {
    height: 8px;
    border-radius: 999px;
    background: #f3f4f6;
    overflow: hidden;
}

.ko-balken > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
    transition: width 0.4s ease;
}

.ko-mehr {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d97706;
    text-decoration: none;
}

.ko-mehr:hover {
    text-decoration: underline;
}

/* ── Neuerungen ────────────────────────────────────────────────────── */

.ko-neuerungen {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ko-neu {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    overflow: hidden;
}

.ko-neu-kopf {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: #f9fafb;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    font-size: 0.78rem;
    color: #6b7280;
}

.ko-neu-kopf:hover {
    background: #f3f4f6;
}

.ko-neu-kopf time {
    margin-left: auto;
}

.ko-version {
    font-size: 0.72rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 1px 8px;
}

.ko-punkt {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d97706;
    flex: 0 0 auto;
}

.ko-neu.ist-gelesen .ko-neu-kopf {
    color: #9ca3af;
}

.ko-neu.ist-gelesen .ko-version {
    background: #f3f4f6;
    color: #6b7280;
}

/* Nach dem Aufklappen ist der Eintrag gelesen -- der Ungelesen-Punkt muss
   dann weg, sonst widerspricht er der abgeblassten Darstellung. */
.ko-neu.ist-gelesen .ko-punkt {
    display: none;
}

.ko-neu-text {
    padding: 4px 12px 12px;
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.5;
}

.ko-neu-text p {
    margin: 0 0 6px;
}

.ko-neu-text p:last-child {
    margin-bottom: 0;
}

/* ── Fortschritt in der Doku-Seitenleiste ──────────────────────────── */

.docs-fortschritt {
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}

.docs-fortschritt .ko-balken-wert {
    font-size: 1.15rem;
}

.docs-fortschritt .ko-balken-text {
    font-size: 0.76rem;
}

/* ── Staff-Seite: SSO-Zuordnungen ───────────────────────────────────── */

.zu-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.zu-tabelle th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    font-weight: 700;
    padding: 0 10px 8px;
    white-space: nowrap;
}

.zu-tabelle td {
    padding: 9px 10px;
    border-top: 1px solid #f1f1f4;
    vertical-align: middle;
}

.zu-tabelle tr.zu-inaktiv td {
    opacity: 0.55;
}

.zu-klein {
    font-size: 0.76rem;
    color: #9ca3af;
}

.zu-gut {
    font-weight: 700;
    color: #166534;
}

.zu-hinweis {
    font-size: 0.83rem;
    color: #6b7280;
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.zu-hinweis code {
    background: #f3f4f6;
    border-radius: 5px;
    padding: 1px 5px;
    color: #92400e;
}

.zu-btn {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.zu-btn:hover {
    border-color: #fbbf24;
    background: #fffdf5;
}

.zu-btn-dunkel {
    background: #111827;
    border-color: #111827;
    color: #fbbf24;
}

.zu-btn-dunkel:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #fde68a;
}

/* Freigabe-Schalter: Zustand muss auf einen Blick erkennbar sein. */
.zu-schalter {
    border: 1.5px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
}

.zu-schalter:hover {
    border-color: #9ca3af;
}

.zu-schalter.ist-frei {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

/* ── Seitenlayout fuer Konto- und Staff-Seiten ──────────────────────────
   Diese Klassen werden von /settings/, /sso/zuordnungen/ und der
   Doku-Seitenleiste benutzt. Wichtig ist der display-Reset: main.css setzt
   global `section { display:grid; place-items:center; align-content:center;
   padding-top:4rem }` -- ohne Gegensteuern schrumpft und zentriert das jeden
   Block, und Karten sehen aus wie zusammengefallener Text. */

.bereich-wrap {
    padding: 2.5rem 1.5rem 4rem;
    background:
        radial-gradient(circle at 10% 5%, rgba(251, 191, 36, 0.14), transparent 40%),
        #f7f7f8;
    min-height: calc(100vh - 150px);
}

.bereich-kopf {
    max-width: 1040px;
    margin: 0 auto 1.75rem;
}

.bereich-kopf h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.bereich-kopf p {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.bereich-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.bereich-block {
    display: block;
    place-items: initial;
    align-content: initial;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #ececf0;
    border-radius: 18px;
}

.bereich-block-weit {
    grid-column: 1 / -1;
}

.bereich-block h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.1rem;
}

.bereich-block h2 i {
    color: #f59e0b;
}

.bereich-zahl {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border-radius: 50px;
    padding: 0.1rem 0.55rem;
}

.bereich-leer {
    margin: 0;
    font-size: 0.87rem;
    color: #6b7280;
}

@media (max-width: 820px) {
    .bereich-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Benutzeruebersicht: Suche, Zuordnungspaare, Blaettern. */
.zu-suche {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
    max-width: 520px;
}

.zu-marke {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 4px;
}

.zu-marke-aus {
    color: #991b1b;
    background: #fee2e2;
}

.zu-paar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.zu-paar code {
    font-size: 0.76rem;
    background: #f3f4f6;
    border-radius: 5px;
    padding: 1px 6px;
    color: #374151;
}

.zu-neu {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 320px;
}

.zu-blaettern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
}
