/* Ergänzungen zum Designsystem (tokens.css + design.css). Nur, was dort fehlt. */
.workspace, .workspace:hover { color: inherit; text-decoration: none; }
.sidebar > form { display: contents; }
.kpi-grid a.kpi, .list .list-row, .folder-grid a { color: inherit; }
.inline { display: inline; }
.pre { white-space: pre-line; }
.progress__bar--0 { width: 0; }
details.withdraw > summary { list-style: none; cursor: pointer; }
details.withdraw > summary::-webkit-details-marker { display: none; }
details.withdraw > form { margin-top: var(--space-3); display: grid; gap: var(--space-3); }
.table__action .row { justify-content: flex-end; }
.toolbar form { display: contents; }
.detail-grid .kv { grid-template-columns: minmax(124px, 42%) minmax(0, 1fr); }
/* Wortmarke Athena-Plan statt Buchstaben-Kachel */
.workspace__logo { height: 32px; width: auto; flex: none; display: block; }
.workspace__text { border-left: 1px solid var(--border); padding-left: var(--space-3); }
.auth__logo { height: 40px; width: auto; display: block; }
.auth__brand-name { border-left: 1px solid var(--border); padding-left: var(--space-3); line-height: 40px; white-space: nowrap; }
@media (max-width: 360px) { .auth__logo { height: 32px; } .auth__brand-name { line-height: 32px; } }
@media (max-width: 1024px) { .app .workspace__logo { height: 22px; } }
@media (max-width: 768px) { .app .workspace__logo { height: 32px; } }
/* Filter-Auswahl in der Werkzeugleiste der Vorgänge */
.select--inline { width: auto; min-width: 180px; flex: 0 1 220px; }
.toolbar { flex-wrap: wrap; gap: var(--space-2); }
.toolbar .search--wide { flex: 1 1 200px; width: auto; max-width: none; min-width: 0; }
.toolbar .ml-auto { display: none; }
/* Mehrere Unterzeichner im NDA-Formular */
.person-row { padding: var(--space-5) var(--space-6) 0; }
.person-row + .person-row { border-top: 1px solid var(--border); margin-top: var(--space-5); }
.person-row .form-grid { padding: var(--space-3) 0 0; }
.person-row__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.person-row__nr { font-weight: var(--font-weight-semibold, 600); font-size: var(--font-size-14); }
.person-row__nr .t-tertiary { font-weight: 400; font-size: var(--font-size-13); margin-left: var(--space-2); }
.person-add { padding: var(--space-5) var(--space-6) var(--space-6); border-top: 1px solid var(--border); margin-top: var(--space-5); }
.signer__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-2) 0 0 44px; }
.signer__actions details > form { display: flex; gap: var(--space-2); margin-top: var(--space-2); flex-wrap: wrap; }
.signer__actions details > form .input { min-width: 220px; flex: 1 1 220px; }
.signer__actions summary { list-style: none; cursor: pointer; }
.signer__actions summary::-webkit-details-marker { display: none; }
/* Nutzerliste: feste Maske ohne seitliches Scrollen */
.nutzer-wrap { overflow: hidden; }
.nutzer-tabelle { table-layout: fixed; width: 100%; }
.nutzer-tabelle col.nt-name { width: 30%; }
.nutzer-tabelle col.nt-firma { width: 16%; }
.nutzer-tabelle col.nt-rolle { width: 96px; }
.nutzer-tabelle col.nt-status { width: 19%; }
.nutzer-tabelle col.nt-login { width: 118px; }
.nutzer-tabelle col.nt-aktion { width: 184px; }
.nutzer-tabelle td { overflow: hidden; }
.nutzer-tabelle .person__name, .nutzer-tabelle .person__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nutzer-tabelle .person__text { min-width: 0; flex: 1 1 auto; }
.nutzer-tabelle .nt-firma { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.nutzer-tabelle .status { white-space: normal; }
.nt-knoepfe { display: flex; justify-content: flex-start; gap: var(--space-2); }
.nt-knoepfe form { display: contents; }
.nt-loeschen:hover { color: var(--danger, #b42318); }
.nt-legende { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-3); }
.nt-legende .icon { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 1180px) {
  .nutzer-tabelle col.nt-login, .nutzer-tabelle th:nth-child(5), .nutzer-tabelle td.nt-login { display: none; }
  .nutzer-tabelle col.nt-name { width: 34%; }
}
@media (max-width: 900px) {
  .nutzer-tabelle, .nutzer-tabelle tbody, .nutzer-tabelle tr, .nutzer-tabelle td { display: block; width: 100%; }
  .nutzer-tabelle thead, .nutzer-tabelle colgroup { display: none; }
  .nutzer-tabelle tr { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); }
  .nutzer-tabelle tbody tr:last-child { border-bottom: 0; }
  .nutzer-tabelle td { padding: 0 !important; border: 0; }
  .nutzer-tabelle td.nt-name, .nutzer-tabelle td.nt-aktion { grid-column: 1 / -1; }
  .nutzer-tabelle td.nt-login { display: block; }
  .nutzer-tabelle td[data-label]::before { content: attr(data-label); display: block; font-size: var(--font-size-12); color: var(--text-tertiary); margin-bottom: 2px; }
  .nt-knoepfe { justify-content: flex-start; }
}
/* Präsentations-Feinschliff */
.signer__mail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signer__zeit { white-space: normal; }
.signer__sub + .signer__sub { margin-top: 1px; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.card { min-width: 0; }
@media (max-width: 600px) {
  .detail-head .status--pill { margin-left: 64px; }
}
/* Tabellen werden auf schmalen Bildschirmen zu Karten statt seitlich zu scrollen */
@media (max-width: 900px) {
  .tabelle-karten, .tabelle-karten tbody, .tabelle-karten tr, .tabelle-karten td { display: block; width: 100%; }
  .tabelle-karten thead { display: none; }
  .tabelle-karten tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
  .tabelle-karten tbody tr:last-child { border-bottom: 0; }
  .tabelle-karten td { padding: 0 !important; border: 0; }
  .tabelle-karten td:first-child, .tabelle-karten td.table__action { grid-column: 1 / -1; }
  .tabelle-karten td.table__action { text-align: left; }
  .tabelle-karten td[data-label]::before { content: attr(data-label); display: block; font-size: var(--font-size-12); color: var(--text-tertiary); margin-bottom: 2px; }
  .tabelle-karten tbody tr:hover td { background: transparent; }
  .table-wrap:has(.tabelle-karten) { overflow-x: visible; }
}
.docrow__knoepfe { display: flex; gap: var(--space-2); flex: none; }
.demo-hinweis { margin-bottom: var(--space-4); }
.auth-page .demo-hinweis { position: absolute; top: var(--space-4); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); }
.auth-page { position: relative; }
/* Statushilfe (Popover ohne JavaScript) */
.hilfe { width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow-y: auto; margin: auto; padding: var(--space-6);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.hilfe::backdrop { background: rgb(17 24 39 / 0.35); }
.hilfe__kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.hilfe__titel { font-size: var(--font-size-18, 18px); font-weight: var(--font-weight-bold); }
.hilfe__intro { color: var(--text-secondary); margin: var(--space-1) 0 var(--space-4); }
.hilfe__farben { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.hilfe__farben li { display: grid; grid-template-columns: 10px 64px minmax(0, 1fr); align-items: baseline; gap: var(--space-3); font-size: var(--font-size-14); color: var(--text-secondary); }
.hilfe__farben .hilfe__punkt { align-self: center; }
.hilfe__farben strong { color: var(--text); }
.hilfe__punkt { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hilfe__punkt--blau { background: transparent; box-shadow: inset 0 0 0 2px var(--status-sent-text); }
.hilfe__punkt--orange { background: var(--status-waiting-text); }
.hilfe__punkt--gruen { background: var(--status-signed-text); }
.hilfe__punkt--rot { background: var(--status-declined-text); }
.hilfe__punkt--grau { background: var(--status-withdrawn-text); }
.hilfe__abschnitt { font-size: var(--font-size-13); font-weight: var(--font-weight-bold); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; margin: var(--space-4) 0 var(--space-2); }
.hilfe__ablauf { display: grid; gap: var(--space-3); }
.hilfe__ablauf li { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: var(--font-size-13); line-height: var(--line-height-13); color: var(--text-secondary); }
.hilfe__ablauf .status { white-space: nowrap; }
.hilfe__fuss { margin-top: var(--space-5); font-size: var(--font-size-13); color: var(--text-tertiary); }
@media (max-width: 600px) { .hilfe__ablauf li { grid-template-columns: 1fr; gap: var(--space-1); } }
/* Anmeldung im klaren Stil: zentrierte Karte auf ruhigem Hintergrund, Felder mit Unterstrich */
.auth-page {
  background:
    radial-gradient(1200px 700px at 15% 10%, rgb(194 78 10 / 0.18), transparent 60%),
    radial-gradient(900px 600px at 85% 90%, rgb(120 90 70 / 0.35), transparent 60%),
    linear-gradient(135deg, #2b2724 0%, #4a3f38 55%, #6b5a4e 100%);
}
.auth--klar { max-width: 460px; padding: 48px 56px 36px; border-radius: 10px; border: 0; box-shadow: 0 24px 60px rgb(0 0 0 / 0.28), 0 2px 6px rgb(0 0 0 / 0.12); text-align: left; }
.auth--klar .auth__logo-mitte { display: block; height: 34px; width: auto; margin: 0 auto 24px; }
.auth--klar .auth__title { text-align: center; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.01em; }
.auth--klar .auth__intro { text-align: center; }
.auth--klar .auth__form { gap: 22px; margin-top: 36px; }
.field--linie { gap: 2px; }
.field--linie .field__label { font-weight: 400; color: var(--text-tertiary); font-size: 14px; }
.field--linie .input {
  border: 0; border-bottom: 1px solid #8a8f98; border-radius: 0; background: transparent;
  padding: 6px 0; height: auto; font-size: 18px; line-height: 28px; color: var(--text);
}
.field--linie .input:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.field--linie .input:focus-visible { outline: none; }
.field--linie.field--error .input { border-bottom-color: var(--danger); }
.field--linie .field__hint { margin-top: 4px; }
.auth__knopf { margin-top: 26px !important; min-height: 50px; font-size: 18px; font-weight: 600; border-radius: 6px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.22); }
.auth__knopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth__link {
  display: block; margin: 22px auto 0; background: none; border: 0; cursor: pointer; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 8px;
}
.auth__link:hover { color: var(--accent); }
.auth__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hilfe--klein { width: min(420px, calc(100vw - 32px)); }
.auth-page .demo-hinweis { color: var(--text); }
@media (max-width: 480px) { .auth--klar { padding: 36px 24px 28px; } .auth--klar .auth__title { font-size: 28px; } }
/* Fester Header auf Anmelde- und Passwortseite: Logo oben links */
.auth-kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 100px;
  display: flex; align-items: center; gap: 14px; padding: 0 40px;
  background: var(--surface); box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 6px 20px rgb(0 0 0 / 0.18);
}
.auth-kopf__logo { height: 48px; width: auto; display: block; }
.auth-page { padding-top: calc(100px + var(--space-6)); }
.auth-page .demo-hinweis { top: calc(100px + var(--space-4)); }
.auth--klar .auth__title { margin-top: 4px; }
@media (max-width: 480px) { .auth-kopf { padding: 0 16px; height: 84px; justify-content: center; } .auth-kopf__logo { height: 40px; } .auth-page { padding-top: calc(84px + var(--space-6)); } .auth-page .demo-hinweis { top: calc(84px + var(--space-4)); } }
/* Hintergrundbild der Anmeldeseiten (Wachssiegel); Dateiname trägt die Version, weil statische Dateien lange gecacht werden */
.auth-page {
  background-color: #6b5f55;
  background-image: linear-gradient(180deg, rgb(20 16 12 / 0.10) 0%, rgb(20 16 12 / 0.28) 100%), url("img/login-hintergrund-2.webp");
  background-size: cover; background-position: center, 20% 60%; background-repeat: no-repeat;
}
@media (max-width: 900px) {
  .auth-page { background-image: linear-gradient(180deg, rgb(20 16 12 / 0.10) 0%, rgb(20 16 12 / 0.30) 100%), url("img/login-hintergrund-2-klein.webp"); background-position: center, 78% 70%; }
}
