.login-overlay { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; padding:20px; background:rgba(5,22,77,.42); backdrop-filter:blur(5px); overflow:auto; }
.login-panel { width:min(100%,440px); background:#fff; border-radius:16px; padding:32px; box-shadow:0 16px 60px #05164d44; color:#05164d; }
.login-panel h2 { margin-top:0; }
.login-panel label,.admin-grid>label { display:flex; flex-direction:column; gap:8px; font-weight:600; }
.login-panel label { margin:20px 0; }
.login-panel input,.admin-grid input:not([type=checkbox]),.admin-grid select { width:100%; min-height:48px; padding:12px; font:inherit; color:inherit; background:#fff; border:1px solid #8996b4; border-radius:6px; box-sizing:border-box; }
.login-panel button { width:100%; }
#loginError,#adminMessage { padding:12px; border:1px solid currentColor; white-space:pre-wrap; }
.admin-section { padding:24px; margin-bottom:24px; }
.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.admin-grid small { font-weight:400; }
.admin-wide { grid-column:1/-1; }
.admin-grid .admin-check,.admin-check { display:flex; flex-direction:row; align-items:center; gap:12px; min-height:48px; }
.admin-check input { width:24px; height:24px; flex-shrink:0; }
.api-switch { font-size:20px; font-weight:600; }
.admin-user-list { display:grid; gap:10px; margin-bottom:24px; }
.admin-user-list button { text-align:left; white-space:normal; min-height:56px; }
@media(max-width:619px) { .admin-grid { grid-template-columns:1fr; } .login-panel,.admin-section { padding:20px; } }
/* v62: Login, Kopfzeile und Administration. */
.appbar .appbar-actions { align-items:center; flex-wrap:wrap; }
.header-account { display:flex; flex-direction:column; align-items:flex-end; gap:5px; min-width:0; }
.login-panel { width:min(100%,480px); padding:40px; box-sizing:border-box; border:1px solid #dce2ef; border-radius:20px; }
.login-logo { display:block; width:150px; height:64px; object-fit:contain; margin:0 auto 24px; }
.login-heading { text-align:center; margin-bottom:28px; }
.login-heading h2 { font-size:28px; margin:8px 0 12px; }
.login-heading p { margin:8px 0; line-height:1.5; }
.login-heading>p:first-child { font-weight:600; }
.login-field { margin:20px 0; position:relative; }
.login-label { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.login-panel .login-label label { margin:0; }
.login-panel .help-trigger { display:grid; place-items:center; width:44px; height:44px; min-height:44px; flex:0 0 44px; padding:0; background:transparent; border:0; color:#243f9b; font-size:17px; font-weight:700; cursor:pointer; }
.help-trigger::before { content:''; position:absolute; width:22px; height:22px; border:1.5px solid currentColor; border-radius:50%; pointer-events:none; }
.login-panel input { min-height:54px; background:#f9faff; }
.login-panel input:focus { outline:2px solid #243f9b; outline-offset:2px; background:white; }
.login-panel .field-tooltip { position:absolute; z-index:20; top:44px; right:0; width:min(320px,100%); box-sizing:border-box; margin:0; padding:14px 16px; border:1px solid #cdd7ec; border-radius:8px; background:#edf2fb; color:#05164d; font-size:14px; line-height:1.5; box-shadow:0 8px 24px rgba(5,22,77,.18); overflow-wrap:anywhere; }
.login-panel .field-tooltip::before { content:''; position:absolute; top:-6px; right:16px; width:10px; height:10px; background:#edf2fb; border-top:1px solid #cdd7ec; border-left:1px solid #cdd7ec; transform:rotate(45deg); }
.login-panel .field-tooltip[hidden] { display:none; }
.login-panel .login-submit { min-height:52px; margin-top:12px; }
.admin-section { padding:0; overflow:hidden; }
.admin-section>summary { cursor:pointer; padding:22px 24px; font-size:20px; font-weight:600; color:#05164d; background:#f5f7fc; }
.admin-section[open]>summary { border-bottom:1px solid #dce2ef; }
.admin-section-body { padding:24px; }
.admin-user-list { list-style:none; padding:0; gap:0; border:1px solid #dce2ef; border-radius:8px; overflow:hidden; }
.admin-user-list:empty { display:none; }
.admin-user-list li+li { border-top:1px solid #dce2ef; }
.admin-user-list .user-row { width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px; border:0; background:white; color:#05164d; font:inherit; cursor:pointer; }
.admin-user-list .user-row:hover { background:#f5f7fc; }
.user-row-info { min-width:0; overflow-wrap:anywhere; }
.user-row-info strong,.user-row-info small { display:block; }
.user-row-info small { margin-top:6px; color:#526080; }
.user-state { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; flex-shrink:0; }
.user-state::before { content:''; width:10px; height:10px; border-radius:50%; background:currentColor; }
.user-state.is-active { color:#176b36; }
.user-state.is-inactive { color:#b00020; }
@media(max-width:619px) {
  .login-panel { padding:28px 22px; } .admin-section-body { padding:18px; }
  .appbar { flex-wrap:wrap; gap:12px; }
  .appbar .appbar-actions { gap:8px; }
  .admin-user-list .user-row { padding:14px 12px; }
}

/* Benutzerkontext im Inhaltsbereich, auf allen angemeldeten Seiten sichtbar. */
.user-breadcrumb { max-width:1100px; box-sizing:border-box; margin:0 auto; padding:22px 24px 0; }
.user-breadcrumb-content { display:inline-flex; align-items:center; gap:12px; padding:10px 16px; border:1px solid #dce2ef; border-radius:10px; background:#f5f7fc; color:#526080; font-size:14px; line-height:1.5; max-width:100%; box-sizing:border-box; }
.user-breadcrumb-content svg { width:20px; height:20px; flex-shrink:0; color:#243f9b; }
.user-breadcrumb-content span { min-width:0; overflow-wrap:anywhere; }
.user-breadcrumb-content strong { color:#05164d; font-weight:600; }
@media(max-width:619px) { .user-breadcrumb { padding:16px 16px 0; } .user-breadcrumb-content { padding:10px 12px; font-size:13px; } }

/* v65: kompakte, weiterhin beschriftete Bedienelemente für Screenreader. */
.appbar-actions .mobile-logout-icon { display:none; width:24px; height:24px; flex-shrink:0; }
@media(max-width:619px) {
  .appbar-actions .header-button-label { display:none; }
  .appbar-actions>.back-button { width:44px; height:44px; min-width:44px; padding:8px; justify-content:center; gap:0; }
  .appbar-actions .back-arrow { font-size:24px; line-height:1; }
  .appbar-actions .mobile-logout-icon { display:block; }
}

/* v66: Administration und strukturierte Benutzerübersicht. */
#openAdministration { border:1px solid #ff0000; }
#openAdministration:hover { border-color:#ff0000; }
#openAdministration .tile-icon { color:#ff0000; background:#fff1f1; }
#openAdministration .tile-icon svg { fill:currentColor; }
.user-table-scroll { overflow-x:auto; margin:0 0 24px; border:1px solid #dce2ef; border-radius:10px; }
.user-table { width:100%; min-width:640px; border-collapse:collapse; font-size:14px; }
.user-table caption { padding:20px 18px; text-align:left; color:#05164d; font-size:20px; font-weight:700; line-height:1.4; }
.user-table th { text-align:left; padding:14px 16px; background:#edf2fb; color:#05164d; font-weight:700; }
.user-table td { padding:12px 16px; border-top:1px solid #dce2ef; vertical-align:middle; overflow-wrap:anywhere; max-width:280px; }
.user-table tbody tr { cursor:pointer; }
.user-table tbody tr:hover { background:#f5f7fc; }
.user-table .user-edit { min-height:44px; padding:8px 0; background:transparent; border:0; color:#243f9b; font:inherit; font-weight:600; text-align:left; text-decoration:underline; cursor:pointer; }

.user-tools { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:12px; margin-bottom:18px; }
.user-tools label { display:flex; flex-direction:column; gap:8px; font-size:14px; font-weight:600; min-width:0; }
.user-tools input,.user-tools select { width:100%; min-height:44px; padding:10px; border:1px solid #8996b4; border-radius:6px; background:white; color:inherit; font:inherit; box-sizing:border-box; }
#userForm[hidden] { display:none; }
.user-table { min-width:850px; }
.user-table tbody tr { cursor:default; }
.user-table .user-group th { background:#e5eaf5; padding:12px 16px; border-top:1px solid #cdd7ec; }
.user-actions { white-space:nowrap; }
.user-actions button { display:inline-flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:10px; margin:3px; }
.user-actions button svg { width:22px; height:22px; flex-shrink:0; }
#userCount { margin:24px 0 20px; line-height:1.5; color:#526080; }
@media(max-width:900px) { .user-tools { grid-template-columns:1fr 1fr; } }
@media(max-width:480px) { .user-tools { grid-template-columns:1fr; } }

/* v69: Benutzermenü und Kennwortdialog. */
.account-menu-wrap { position:relative; }
.account-toggle { display:grid; place-items:center; width:44px; height:44px; border:1px solid #95a8e5; border-radius:8px; background:#fff; color:#243f9b; cursor:pointer; }
.account-toggle svg { width:24px; height:24px; }
.account-toggle:hover,.account-toggle[aria-expanded=true] { background:#e5f1ff; }
.account-menu { position:absolute; z-index:100; top:calc(100% + 10px); right:0; width:280px; max-width:calc(100vw - 32px); padding:8px; box-sizing:border-box; background:#fff; color:#05164d; border:1px solid #dce2ef; border-radius:12px; box-shadow:0 12px 36px #05164d26; }
.account-menu[hidden] { display:none; }
.account-menu-identity { padding:12px; border-bottom:1px solid #dce2ef; margin-bottom:6px; overflow-wrap:anywhere; }
.account-menu-identity strong,.account-menu-identity small { display:block; }
.account-menu-identity small { margin-top:6px; font-size:13px; color:#526080; }
.account-menu button { display:block; width:100%; min-height:44px; text-align:left; padding:12px; border:0; border-radius:6px; background:white; color:inherit; font:inherit; cursor:pointer; }
.account-menu button:hover { background:#edf2fb; }
.password-dialog { width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 32px); overflow:auto; border:0; border-radius:16px; padding:0; color:#05164d; }
.password-dialog::backdrop { background:#05164d77; }
.password-dialog .dialog-body label { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; font-weight:600; }
.password-dialog input { box-sizing:border-box; width:100%; min-height:48px; padding:12px; border:1px solid #8996b4; border-radius:6px; font:inherit; }
#passwordMessage { padding:12px; border:1px solid #95a8e5; background:#edf2fb; border-radius:6px; }
@media(max-width:619px) { .account-menu { position:fixed; top:90px; right:16px; max-height:calc(100dvh - 110px); overflow:auto; } }

.column-head { display:flex; align-items:center; gap:4px; }
.column-head>span { margin-right:4px; }
.column-head button { display:inline-flex; justify-content:center; align-items:center; flex-shrink:0; min-width:36px; min-height:44px; border:0; border-radius:6px; background:transparent; color:#243f9b; cursor:pointer; font-size:18px; }
.column-head button svg { width:18px; height:18px; }
.column-head button:hover,.column-head .column-filter-active { background:#d4def4; }
#resetUserFilters { margin-bottom:18px; }
.column-filter-dialog { width:min(380px,calc(100% - 32px)); padding:24px; border:0; border-radius:12px; color:#05164d; }
.column-filter-dialog::backdrop { background:#05164d55; }
.column-filter-dialog label { display:flex; align-items:center; gap:10px; margin:18px 0; }
.column-filter-dialog input[type=search] { min-width:0; width:100%; min-height:44px; padding:10px; border:1px solid #8996b4; border-radius:6px; font:inherit; }
.column-filter-dialog input[type=checkbox] { width:22px; height:22px; }
.user-table { min-width:1100px; }

/* v71: zweizeilige Benutzerkonten statt breiter Einzelspalten. */
.user-table { min-width:580px; }
.user-table th:first-child { width:35%; }
.user-table td { padding:16px; }
.user-identity strong,.user-identity small { display:block; }
.user-identity strong { font-size:15px; font-weight:600; }
.user-identity small { margin-top:6px; color:#526080; font-size:13px; }
.user-access .role-icon { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid #dce2ef; background:#edf2fb; border-radius:8px; color:#243f9b; margin-bottom:6px; }
.role-icon svg { width:21px; height:21px; }
.user-access .user-state { font-size:12px; }
.user-table .user-actions { width:112px; }
@media(max-width:619px) { .user-table { min-width:510px; } .user-table td,.user-table th { padding:12px 10px; } }

/* v72: ruhiger Tabellenkopf ohne Spaltenaktionen. */
.user-heading-primary,.user-heading-secondary { display:block; }
.user-heading-primary { font-weight:700; }
.user-heading-secondary { margin-top:6px; font-size:13px; font-weight:400; color:#526080; }
