/* =========================================================================
   Admin-Panel — Light-able-inspiriert. Blauer Akzent, nur im .admin-Scope.
   ========================================================================= */
.admin {
    /* Akzent im Admin auf Blau umstellen (überschreibt Portal-Teal) */
    --primary:      #3E8EF7;
    --primary-ink:  #2f6fd0;
    --primary-soft: #E9F2FE;
    --a-bg:         #F0F2F6;
    --a-side:       #FFFFFF;
    --a-ink:        #1D2630;
    --a-muted:      #6B7785;
    --a-line:       #EDF0F3;
    --a-shadow:     0 1px 3px rgba(43,52,69,.08), 0 1px 2px rgba(43,52,69,.04);
    --a-shadow-lg:  0 8px 24px rgba(43,52,69,.12);

    background: var(--a-bg);
    display: flex;
    min-height: 100vh;
    color: var(--a-ink);
}

/* ---------------- Sidebar ---------------- */
.asidebar {
    flex: 0 0 280px; width: 280px;
    background: var(--a-side);
    border-right: 1px solid var(--a-line);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    transition: margin-left .2s var(--ease);
}
/* Desktop: Sidebar ein-/ausklappen */
.admin.is-collapsed .asidebar { margin-left: -260px; }
.asidebar__brand {
    display: flex; align-items: center; gap: .5rem;
    padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--a-line);
}
.asidebar__brand .logo {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--a-ink);
}
.asidebar__brand .logo svg { width: 22px; height: 22px; color: var(--primary); }
.asidebar__brand .logo b { color: var(--primary); font-weight: 700; }
.asidebar__brand .ver {
    margin-left: auto; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--primary-ink); background: var(--primary-soft); padding: .18rem .45rem; border-radius: 999px;
}

.asidebar__nav { flex: 1 1 auto; overflow-y: auto; padding: .8rem .75rem 1.2rem; }

.navsec {
    font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #9AA6B2; margin: 1.1rem .6rem .4rem; }
.navsec:first-child { margin-top: .2rem; }

.navitem {
    display: flex; align-items: center; gap: .7rem;
    padding: .6rem .7rem; border-radius: 8px;
    color: #55606D; font-size: .93rem; font-weight: 500;
    text-decoration: none; cursor: pointer; list-style: none;
}
.navitem:hover { background: #F5F7FA; text-decoration: none; }
.navitem .mi { width: 19px; height: 19px; color: #98A2AE; flex: 0 0 auto; }
.navitem__label { flex: 1 1 auto; }
.navitem.is-active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.navitem.is-active .mi { color: var(--primary); }

.navgroup .navitem::-webkit-details-marker { display: none; }
.navchevron { width: 15px; height: 15px; color: #B4BDC7; transition: transform .2s var(--ease); }
.navgroup[open] > .navitem .navchevron { transform: rotate(90deg); }

.navsub { padding: .1rem 0 .3rem 1.1rem; margin-left: .55rem; border-left: 1px solid var(--a-line); }
.navsublink {
    display: flex; align-items: center; gap: .6rem;
    padding: .46rem .7rem; border-radius: 8px;
    color: #6B7785; font-size: .88rem; text-decoration: none;
}
.navsublink:hover { background: #F5F7FA; text-decoration: none; }
.navsublink .dot { width: 6px; height: 6px; border-radius: 50%; background: #C4CDD6; flex: 0 0 auto; }
.navsublink.is-active { color: var(--primary-ink); font-weight: 600; }
.navsublink.is-active .dot { background: var(--primary); }
.navsublink.is-soon { color: #AEB7C0; }
.navsublink.is-soon:hover { background: none; }

.soon {
    margin-left: auto; font-style: normal;
    font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #9AA6B2; background: #F0F2F6; padding: .12rem .4rem; border-radius: 999px;
}

.asidebar__user {
    display: flex; align-items: center; gap: .65rem;
    padding: .85rem 1.1rem; border-top: 1px solid var(--a-line);
}
.asidebar__user .uinfo { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.asidebar__user .uinfo strong { font-size: .9rem; color: var(--a-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asidebar__user .uinfo small { font-size: .76rem; color: var(--a-muted); }

.avatar {
    width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary-ink);
    font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}

/* ---------------- Hauptbereich ---------------- */
.amain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.atop {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 1rem;
    padding: .7rem clamp(1rem, 3vw, 1.6rem);
    background: var(--a-bg);
}
.atop__burger {
    display: flex; flex-direction: column; gap: 4px;
    width: 40px; height: 40px; padding: 12px 9px;
    background: var(--a-side); border: 1px solid var(--a-line); border-radius: 10px; cursor: pointer;
    justify-content: space-between;
}
.atop__burger span { display: block; height: 2px; background: var(--a-ink); border-radius: 2px; }

.atop__search {
    display: flex; align-items: center; gap: .55rem;
    flex: 0 1 420px;
    background: var(--a-side); border: 1px solid var(--a-line); border-radius: 10px;
    padding: .55rem .8rem; color: var(--a-muted);
}
.atop__search svg { width: 17px; height: 17px; flex: 0 0 auto; }
.atop__search input { border: 0; outline: 0; background: none; font: inherit; color: var(--a-ink); width: 100%; }
.atop__search kbd {
    font-family: var(--font-mono); font-size: .68rem; color: var(--a-muted);
    background: #F0F2F6; border: 1px solid var(--a-line); border-radius: 5px; padding: .1rem .4rem; white-space: nowrap;
}

.atop__actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.iconbtn {
    position: relative; width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--a-side); border: 1px solid var(--a-line); color: #5B6672; cursor: pointer;
}
.iconbtn:hover { color: var(--primary-ink); border-color: var(--primary-soft); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn__dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: #16C79A; border: 2px solid var(--a-side); }

/* Profil-Dropdown (nativ per <details>) */
.profile { position: relative; }
.profile > summary { list-style: none; cursor: pointer; }
.profile > summary::-webkit-details-marker { display: none; }
.avatar--btn { width: 40px; height: 40px; }
.profilemenu {
    position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40;
    width: 230px; background: var(--a-side);
    border: 1px solid var(--a-line); border-radius: 12px; box-shadow: var(--a-shadow-lg);
    overflow: hidden;
}
.profilemenu__head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-bottom: 1px solid var(--a-line); }
.profilemenu__head span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.profilemenu__head small { color: var(--a-muted); font-size: .78rem; }
.profilemenu__item { display: block; padding: .7rem 1rem; color: var(--a-ink); text-decoration: none; font-size: .9rem; }
.profilemenu__item:hover { background: #F5F7FA; text-decoration: none; }

/* ---------------- Content ---------------- */
.acontent { padding: .4rem clamp(1rem, 3vw, 1.6rem) 2.5rem; }
.crumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--a-muted); margin: .4rem 0 .2rem; }
.crumb a { color: var(--primary-ink); }
.crumb__cur { color: var(--a-ink); }
.acontent > h1 { font-size: 1.6rem; margin: .2rem 0 .3rem; }
.section-lead { color: var(--a-muted); margin-bottom: 1.6rem; }
.admin__h2 { font-size: 1.15rem; margin: 2rem 0 .9rem; }

/* Karten & Formraster */
.card {
    border: 1px solid var(--a-line); border-radius: 14px;
    background: var(--a-side); box-shadow: var(--a-shadow);
    padding: 1.3rem 1.4rem; margin-bottom: 1.1rem;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* Statistik-Kacheln */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.4rem; }
.stat {
    border: 1px solid var(--a-line); border-radius: 14px;
    background: var(--a-side); box-shadow: var(--a-shadow);
    padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .25rem;
}
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--a-ink); line-height: 1; }
.stat__lbl { font-size: .86rem; color: var(--a-muted); }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
    text-align: left; font-weight: 600; color: var(--a-muted);
    font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
    padding: .7rem .7rem; border-bottom: 1px solid var(--a-line);
}
.table td { padding: .8rem .7rem; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.table tbody tr:hover { background: #FAFBFC; }
.table tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--font-mono); font-size: .86em; }
.ta-right { text-align: right; }

/* Badges & Chips */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px; background: #EEF1F4; color: #5B6672; }
.badge-primary { background: var(--primary-soft); color: var(--primary-ink); }
.badge-active  { background: #E4F7EE; color: #148A5A; }
.badge-pending { background: #FBF1DC; color: #A9761A; }
.badge-canceled{ background: #F1E7E6; color: #9A5148; }
.badge-failed  { background: #FBE9E7; color: #C0392B; }
.chip { display: inline-block; font-size: .74rem; margin: 0 .25rem .2rem 0; padding: .16rem .55rem; border-radius: 7px; background: #EEF1F4; color: #5B6672; }

/* Mini-Buttons */
.btn-mini {
    display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .8rem;
    padding: .4rem .75rem; border-radius: 8px;
    border: 1px solid var(--a-line); background: var(--a-side); color: #55606D; text-decoration: none; cursor: pointer;
}
.btn-mini:hover { background: #F5F7FA; text-decoration: none; }
.btn-mini--danger { color: #C0392B; border-color: #F0CFCB; }
.btn-mini--danger:hover { background: #FDF3F2; }
.btn-inline { width: auto; display: inline-flex; }

/* Checkbox-Reihen */
.checks { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.checkline { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: #55606D; }
.checkline input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }

select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7785' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }

/* Overlay (mobil) */
.aoverlay { position: fixed; inset: 0; z-index: 25; background: rgba(29,38,48,.4); display: none; }

/* ---------------- Mobil: Sidebar off-canvas ---------------- */
@media (max-width: 900px) {
    .asidebar {
        position: fixed; top: 0; left: 0; z-index: 30; margin-left: 0;
        transform: translateX(-100%); transition: transform .22s var(--ease);
        box-shadow: var(--a-shadow-lg);
    }
    /* Mobil: offen = nicht eingeklappt */
    .admin:not(.is-collapsed) .asidebar { transform: translateX(0); }
    .admin.is-collapsed .asidebar { transform: translateX(-100%); margin-left: 0; }
    .admin:not(.is-collapsed) .aoverlay { display: block; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .atop__search { flex-basis: auto; }
    .atop__search kbd { display: none; }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr; }
    .grid2 { grid-template-columns: 1fr; }
    .atop__search { display: none; }
}

/* --- Listen-Toolbar (Einträge/Seite, Suche, Aktion) --- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar__left { display: flex; align-items: center; gap: .6rem; margin: 0; }
.toolbar__right { display: flex; align-items: center; gap: .6rem; }
.input--sm { height: 40px; padding: 0 .8rem; font-size: .9rem; width: auto; }
select.input--sm { padding-right: 2rem; }
.btn--sm { height: 40px; padding: 0 1rem; font-size: .9rem; }
.searchbox { margin: 0; }
.searchbox .input { min-width: 220px; height: 40px; }

/* --- Karte ohne Innenpolster für randlose Tabellen --- */
.card--flush { padding: 0; overflow: hidden; }
.card--flush .table th:first-child,
.card--flush .table td:first-child { padding-left: 1.3rem; }
.card--flush .table th:last-child,
.card--flush .table td:last-child { padding-right: 1.3rem; }
.table--rows td { padding-top: .9rem; padding-bottom: .9rem; }

/* --- Nutzer-Zelle (Avatar + Name + Mail) --- */
.usercell { display: flex; align-items: center; gap: .7rem; }
.usercell__txt { display: flex; flex-direction: column; line-height: 1.25; }
.usercell__txt strong { font-size: .93rem; color: var(--a-ink); }
.usercell__sub { font-size: .82rem; color: var(--primary-ink); text-decoration: none; }
.usercell__sub:hover { text-decoration: underline; }
.avatar--sm { width: 34px; height: 34px; font-size: .78rem; }

/* --- Zeilen-Aktionen (Stift/Papierkorb, bei Hover) --- */
.rowactions { display: inline-flex; gap: .4rem; justify-content: flex-end; opacity: 0; transition: opacity .12s var(--ease); }
.table--rows tr:hover .rowactions { opacity: 1; }
.rowactions form { margin: 0; display: inline; }
.iconaction {
    width: 34px; height: 34px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary-ink);
    border: 0; cursor: pointer; text-decoration: none;
}
.iconaction svg { width: 16px; height: 16px; }
.iconaction:hover { filter: brightness(.97); }
.iconaction--danger { background: #FBE9E7; color: #C0392B; }

/* --- Pagination --- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.pager__nav { display: inline-flex; gap: .3rem; }
.pager__page {
    min-width: 34px; height: 34px; padding: 0 .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--a-line); background: var(--a-side);
    color: #55606D; font-size: .88rem; text-decoration: none;
}
.pager__page:hover { background: #F5F7FA; text-decoration: none; }
.pager__page.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 560px) {
    .rowactions { opacity: 1; }
    .searchbox .input { min-width: 0; }
}


/* --- Selbstprüfung --- */
.stcard { padding: 1.1rem 1.3rem; border-radius: 12px; margin-bottom: 1rem; }
.stcard--gruen { background: #E8F6EF; border: 1px solid #B7E0CC; }
.stcard--rot   { background: #FDF0EC; border: 1px solid #F1C4B6; }
.stcard__stand { margin: 0; font-family: var(--font-display, inherit); font-size: 20px; font-weight: 800; }
.stcard--gruen .stcard__stand { color: #0C6E45; }
.stcard--rot .stcard__stand { color: #A32F1B; }
.stcard__zahlen { margin: .25rem 0 0; font-size: 13.5px; color: #4A5560; }
.stcard__hinweis { margin: .6rem 0 0; font-size: 13px; color: #4A5560; line-height: 1.6; }

.stform { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.stform label { font-size: 12.5px; color: #6B7681; }
.stwarn { margin: 0; font-size: 13.5px; line-height: 1.65; }

.stgruppe { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.stgruppe__punkt { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
.stgruppe__punkt--gruen { background: #17A673; }
.stgruppe__punkt--rot { background: #D9534F; }
.stgruppe__zahl { margin-left: auto; font-size: 12.5px; color: #6B7681; }

.stliste { list-style: none; margin: 0; padding: 0; }
.stzeile { display: grid; grid-template-columns: 1.2rem 12rem 1fr auto; gap: .6rem; align-items: baseline;
  padding: .45rem 0; border-top: 1px solid #EDF0F3; font-size: 13.5px; }
.stzeile__stand { color: #17A673; font-weight: 700; }
.stzeile.is-rot .stzeile__stand { color: #D9534F; }
.stzeile__name { font-weight: 600; }
.stzeile__wert { color: #4A5560; }
.stzeile__zeit { color: #93A0AC; font-size: 12px; }
.stzeile.is-rot { background: #FDF7F5; }

.stdetails { grid-column: 2 / -1; margin: .2rem 0 .1rem; font-size: 12.5px; }
.stdetails summary { cursor: pointer; color: #A32F1B; font-weight: 600; }
.stdetails ul { margin: .4rem 0 0; padding-left: 1.1rem; color: #4A5560; }
.stdetails li { margin-bottom: .15rem; word-break: break-word; }

.sttabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sttabelle td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid #EDF0F3; vertical-align: top; }
.sttabelle td:first-child { width: 14rem; color: #6B7681; }
.ststand { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.ststand--ok { background: #DFF2E8; color: #0C6E45; }
.ststand--bad { background: #FDE7E3; color: #A32F1B; }

.sthilfe dt { font-weight: 700; font-size: 13.5px; margin-top: .6rem; }
.sthilfe dd { margin: .1rem 0 0; font-size: 13px; color: #4A5560; line-height: 1.6; }

/* --- Fehlerprotokoll --- */
.logkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem; font-size: 13px; color: #4A5560; }
.logtabelle { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: .6rem; }
.logtabelle th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #93A0AC; padding: .3rem .6rem .3rem 0; border-bottom: 1px solid #EDF0F3; }
.logtabelle td { padding: .45rem .6rem .45rem 0; border-bottom: 1px solid #EDF0F3; vertical-align: top; }
.logtabelle td.nowrap { white-space: nowrap; color: #6B7681; }
.logtabelle tr.is-fehler td { background: #FDF7F5; }
.logtext { word-break: break-word; line-height: 1.55; }
.logstufe { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: 11px; font-weight: 700; }
.logstufe--fehler { background: #FDE7E3; color: #A32F1B; }
.logstufe--warnung { background: #FBEFDD; color: #8A5A00; }
.logstufe--ok { background: #DFF2E8; color: #0C6E45; }

/* =========================================================================
   Feinschliff (2026-07-23) — Buttons, Kacheln, Kartenköpfe, Protokoll
   ========================================================================= */

/* Buttons im Admin nie vollbreit (app.css setzt .btn auf 100%) */
.admin .btn { width: auto; padding: .6rem 1.15rem; font-size: .92rem; border-radius: 10px; }
.admin .btn--sm { padding: .44rem .95rem; font-size: .85rem; }
.admin .btn-ghost { padding: .6rem 1.15rem; border-radius: 10px; }

/* Kartenkopf: Überschrift mit Trennlinie */
.admin .card > h2 {
    font-size: 1.02rem; margin: 0 0 1rem;
    padding-bottom: .75rem; border-bottom: 1px solid var(--a-line);
}

/* Statistik-Kacheln: Symbolblase + Farbton */
.admin .stat { flex-direction: row; align-items: center; gap: 1rem; }
.stat__ico {
    width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
    display: grid; place-items: center;
}
.stat__ico svg { width: 21px; height: 21px; }
.stat__txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.stat--blau    .stat__ico { background: var(--primary-soft); color: var(--primary-ink); }
.stat--gruen   .stat__ico { background: #E4F7EE; color: #148A5A; }
.stat--bernstein .stat__ico { background: #FBF1DC; color: #A9761A; }
.stat--violett .stat__ico { background: #F0ECFB; color: #6A4FC7; }

/* Meta-Chips (z.B. Protokollkopf: Einträge · Größe · Datei) */
.metachips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.metachip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; color: #55606D;
    background: #F5F7FA; border: 1px solid var(--a-line);
    border-radius: 999px; padding: .28rem .7rem;
}
.metachip code { font-family: var(--font-mono); font-size: .92em; color: var(--a-ink); background: none; padding: 0; }
.metachip--fehler  { background: #FDE7E3; border-color: #F5CFC7; color: #A32F1B; font-weight: 600; }
.metachip--warnung { background: #FBEFDD; border-color: #F0DDBB; color: #8A5A00; font-weight: 600; }

/* Protokollkopf: Chips links, Aktion rechts */
.logkopf { align-items: center; }
.logkopf form { margin: 0; }

/* Protokolltabelle: scrollbarer Bereich mit haftendem Kopf */
.logscroll { max-height: 62vh; overflow: auto; margin-top: .8rem; border-top: 1px solid var(--a-line); }
.logscroll .logtabelle { margin-top: 0; }
.logscroll .logtabelle thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--a-side); box-shadow: 0 1px 0 var(--a-line);
    padding-top: .55rem; padding-bottom: .55rem;
}
.logtabelle td { padding-top: .55rem; padding-bottom: .55rem; }
.logtabelle tbody tr:hover td { background: #FAFBFC; }
.logtabelle tr.is-fehler td { background: #FDF9F8; }
.logtabelle tr.is-fehler td:first-child { box-shadow: inset 3px 0 0 #E05B4B; }
.logtabelle tr.is-warnung td:first-child { box-shadow: inset 3px 0 0 #DBA531; }
.logbereich {
    display: inline-block; font-family: var(--font-mono); font-size: .78rem;
    color: #55606D; background: #F5F7FA; border: 1px solid var(--a-line);
    border-radius: 6px; padding: .1rem .45rem; white-space: nowrap;
}

/* Leerer Zustand (Protokoll ohne Einträge) */
.leerstand {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 2.2rem 1rem; text-align: center; color: var(--a-muted);
}
.leerstand svg { width: 34px; height: 34px; color: #B7E0CC; }
.leerstand strong { color: var(--a-ink); font-size: .95rem; }
.leerstand span { font-size: .86rem; }

/* Selbstprüfung: gefundene PHP-Aufrufe als saubere Liste */
.phpcalls { display: flex; flex-direction: column; gap: .35rem; }
.phpcall { display: flex; align-items: center; gap: .55rem; }
.phpcall code {
    font-family: var(--font-mono); font-size: .82rem; color: var(--a-ink);
    background: #F5F7FA; border: 1px solid var(--a-line);
    border-radius: 6px; padding: .12rem .5rem;
}

/* =========================================================================
   Dashboard (2026-07-23) — Kennzahlen, Diagramme, Balken, Listen
   ========================================================================= */
.stats--sechs { grid-template-columns: repeat(3, 1fr); }
.stat__plus  { display: block; font-style: normal; font-size: .74rem; font-weight: 600; color: #148A5A; }
.stat__minus { display: block; font-style: normal; font-size: .74rem; font-weight: 600; color: #A32F1B; }

.dashgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.dashgrid .card { margin-bottom: 0; }

.dashchart { display: block; width: 100%; height: auto; }
.dashtick { font: 500 10px var(--font-body); fill: #93A0AC; }
.dashlegende { display: flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font-size: .8rem; color: var(--a-muted); }
.dashlegende .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: .6rem; }
.dashlegende .dot:first-child { margin-left: 0; }
.dashleer { margin: .4rem 0 0; font-size: .88rem; color: var(--a-muted); }

/* Warnstreifen: Datenblöcke konnten nicht geladen werden */
.dashwarn {
    background: #FBEFDD; border: 1px solid #F0DDBB; border-radius: 12px;
    padding: .85rem 1.1rem; margin-bottom: 1.1rem; font-size: .88rem; color: #6B4A00;
}
.dashwarn ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.dashwarn li { margin-top: .15rem; word-break: break-word; }

/* Horizontale Balken (Abos je Plan, Befunde je Bereich) */
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.hbar { display: grid; grid-template-columns: 1fr; gap: .3rem; }
.hbar__label { font-size: .88rem; font-weight: 600; color: var(--a-ink); display: flex; justify-content: space-between; gap: .6rem; }
.hbar__label em { font-style: normal; font-weight: 500; color: var(--a-muted); font-size: .8rem; }
.hbar__track { position: relative; height: 10px; border-radius: 999px; background: #F0F2F6; overflow: hidden; }
.hbar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--primary); min-width: 3px; }
.hbar__num { font-size: .82rem; font-weight: 700; color: var(--a-ink); text-align: right; margin-top: -1.55rem; }
.dashchips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }

/* Kartenkopf mit Aktion rechts */
.dashkopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashkopf > h2 { margin: 0; padding: 0; border: 0; }
.admin .card > .dashkopf { border-bottom: 1px solid var(--a-line); padding-bottom: .75rem; }
.dashkopf--pad { padding: 1.3rem 1.4rem .75rem; margin-bottom: 0; }
.card--flush .dashkopf--pad { border-bottom: 1px solid var(--a-line); }

/* Fehlerliste */
.dashliste { list-style: none; margin: 0; padding: 0; }
.dashfehler { display: flex; flex-direction: column; gap: .2rem; padding: .6rem 0; border-top: 1px solid var(--a-line); }
.dashfehler:first-child { border-top: 0; padding-top: 0; }
.dashfehler__meta { display: flex; align-items: center; gap: .6rem; }
.dashfehler__meta time { font-size: .76rem; color: #93A0AC; }
.dashfehler__text { font-size: .85rem; color: #4A5560; line-height: 1.5; word-break: break-word; }

@media (max-width: 1100px) { .stats--sechs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .dashgrid { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .stats--sechs { grid-template-columns: 1fr; } }

/* =========================================================================
   Zahnrad-Menü oben rechts (2026-07-23) — Einstellungen + Wartung
   ========================================================================= */
.sysmenu > summary.iconbtn { list-style: none; }
.sysmenu > summary.iconbtn::-webkit-details-marker { display: none; }
.sysmenu[open] > summary.iconbtn { color: var(--primary-ink); border-color: var(--primary-soft); background: var(--primary-soft); }
.sysmenu__pop { width: 220px; padding-bottom: .35rem; }
.sysmenu__sec {
    margin: 0; padding: .7rem 1rem .3rem;
    font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    color: #9AA6B2;
}
.sysmenu__sec:not(:first-child) { border-top: 1px solid var(--a-line); margin-top: .35rem; }
.sysmenu__pop .profilemenu__item { padding: .55rem 1rem; }
.sysmenu__pop .profilemenu__item.is-active { color: var(--primary-ink); font-weight: 600; background: var(--primary-soft); }

/* =========================================================================
   Funktionen & Roadmap im Admin (2026-07-23)
   ========================================================================= */
.afeat-meta { display: block; margin-top: .2rem; font-size: .84rem; color: #93A0AC; }
.afeat-h { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.afeat-sub { font-size: .82rem; font-weight: 500; color: var(--a-muted); }
.afeat-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .82rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px;
}
.afeat-badge--done     { background: #E4F7EE; color: #148A5A; }
.afeat-badge--progress { background: #FBF1DC; color: #A9761A; }
.afeat-badge--planned  { background: #F0F2F6; color: #55606D; }

.afeat-list { list-style: none; margin: 0; padding: 0; }
.afeat-item { display: flex; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--a-line); }
.afeat-item:first-child { border-top: 0; padding-top: .1rem; }
.afeat-dot {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center; margin-top: .1rem;
}
.afeat-dot--done     { background: #E4F7EE; color: #148A5A; }
.afeat-dot--progress { background: #FBF1DC; color: #A9761A; }
.afeat-dot--planned  { background: #F0F2F6; color: #7B8794; }
.afeat-body { min-width: 0; }
.afeat-title { font-size: .93rem; font-weight: 600; color: var(--a-ink); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.afeat-ver {
    font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
    color: var(--primary-ink); background: var(--primary-soft);
    border-radius: 6px; padding: .08rem .4rem;
}
.afeat-tag {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: #A9761A; background: #FBF1DC; border-radius: 999px; padding: .12rem .5rem;
}
.afeat-desc { margin-top: .15rem; font-size: .86rem; color: #4A5560; line-height: 1.55; }

/* Funktionen: aufklappbare Detail-Dokumentation */
.afeat-doc { margin-top: .45rem; }
.afeat-doc > summary {
    display: inline-flex; align-items: center; gap: .35rem;
    cursor: pointer; list-style: none;
    font-size: .8rem; font-weight: 600; color: var(--primary-ink);
}
.afeat-doc > summary::-webkit-details-marker { display: none; }
.afeat-doc > summary::before { content: "›"; font-weight: 700; transition: transform .15s ease; }
.afeat-doc[open] > summary::before { transform: rotate(90deg); }
.afeat-dl {
    margin: .5rem 0 0; padding: .7rem .9rem;
    background: #F8F9FB; border: 1px solid var(--a-line); border-radius: 10px;
}
.afeat-dl dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7B8794; margin-top: .55rem; }
.afeat-dl dt:first-child { margin-top: 0; }
.afeat-dl dd { margin: .1rem 0 0; font-size: .85rem; color: #4A5560; line-height: 1.55; }

/* Core: Abmelden als Formular-Knopf im Profilmenü (Logout nur per POST) */
.profilemenu__form { margin: 0; }
.profilemenu__item--btn { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
