/* Ergänzungen fürs Team-Dashboard (baut auf style.css des Haupt-Dashboards auf). */
.wort-team { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0; color: var(--meta); align-self: flex-end; margin-bottom: 3px; }
.server-wahl { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-klein); background: var(--flaeche); }
.server-wahl b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oben-titel { font-weight: 500; }
.marke.rot { background: var(--rot-tief); color: #ff8a8f; }

/* Tabelle */
.tabelle-karte { padding: 12px; }
.tabelle { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tabelle th { text-align: left; font-weight: 500; color: var(--meta); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tbody tr { cursor: pointer; transition: background var(--schnell); }
.tabelle tbody tr:hover, .tabelle tbody tr:focus-visible { background: var(--hoch); }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle .rechts { text-align: right; }
.tabelle td.rechts { display: table-cell; }
.tabelle td.rechts .marke + .marke { margin-left: 6px; }

/* Fälle */
.fall-liste { list-style: none; margin: 0; padding: 0; }
.fall { display: grid; grid-template-columns: 8px 1fr auto; gap: 14px; align-items: start; padding: 14px 4px; border-top: 1px solid var(--linie); }
.fall:first-child { border-top: 0; }
.fall .art-punkt { margin-top: 7px; }
.fall-titel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fall-titel .link { padding: 0; font-size: 14px; color: var(--text); text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px; }
.fall-grund { color: var(--leise); margin-top: 4px; overflow-wrap: anywhere; }
.fall-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; font-size: 13px; }
.karte .suchfeld + .fall-liste { margin-top: 8px; }
.leer-gross { display: grid; place-items: center; gap: 6px; text-align: center; padding: 48px 16px; }

/* Profil */
.profil-kopf { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--flaeche); position: relative; overflow: hidden; }
.profil-kopf::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--rot); transform-origin: left; animation: wachse 0.9s var(--kurve) both; }
.avatar.riesig { width: 72px; height: 72px; }
.profil-name { min-width: 0; }
.profil-name h1 { font-size: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-rang { font-family: 'Anton', sans-serif; font-size: clamp(22px, 3vw, 40px); letter-spacing: 0.02em; color: var(--rot); white-space: nowrap; }
.zurueck { background: var(--hoch); }
.profil-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--hoch); margin-bottom: 12px; }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--leise); cursor: pointer; transition: background var(--schnell), color var(--schnell); }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: var(--text); color: #000; }
.infos { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.info { padding: 10px 12px; border-radius: var(--radius-klein); background: var(--hoch); }
.info-wert { font-weight: 500; overflow-wrap: anywhere; }
.id-zeile { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.symbol-knopf.klein { width: 26px; height: 26px; }
.rollen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rolle { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tief); font-size: 13px; font-weight: 500; max-width: 100%; }
.aktionen-liste { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.aktion {
  display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: var(--radius-klein); border: 0; text-align: left; font-weight: 500; cursor: pointer;
  background: var(--hoch); color: var(--text); transition: background var(--schnell), transform var(--schnell) var(--kurve);
}
.aktion:hover { background: var(--tief); }
.aktion:active { transform: scale(0.98); }
.aktion.gefahr { background: var(--rot-tief); color: #ff8a8f; }
.aktion.gefahr:hover { background: #3a1216; }
.aktion:disabled { opacity: 0.55; }
.aktion.laedt { position: relative; color: transparent; }
.aktion.laedt::after { content: ''; position: absolute; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid #777; border-color: #777 #777 transparent transparent; animation: dreh 0.7s linear infinite; }
.karte h2.zweite { margin-top: 18px; }
.karte > .hilfe { margin-top: 12px; }

/* Notizen */
.notiz-neu { display: flex; flex-direction: column; }
.notiz-liste { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notiz-liste li { padding: 12px 14px; border-radius: var(--radius-klein); background: var(--hoch); }
.notiz-liste p { white-space: pre-wrap; overflow-wrap: anywhere; }
.notiz-fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* Team-Liste */
.ebene-karte h2 { font-size: 18px; margin-bottom: 8px; }
.rang-block { padding: 12px 0; border-top: 1px solid var(--linie); }
.rang-block:first-of-type { border-top: 0; }
.rang-kopf { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; }
.personen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border: 0; border-radius: 999px; background: var(--hoch); cursor: pointer; transition: background var(--schnell); }
.person-chip:hover { background: var(--tief); }
.person-chip .avatar { width: 26px; height: 26px; }
.person-zeile { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; padding: 0; }
.person-zeile:hover .zeile-haupt { text-decoration: underline; text-underline-offset: 3px; }

/* Dialog-Formular */
.dialog-felder { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.dialog-fehler { color: #ff8a8f; min-height: 0; margin-top: 8px; }
.dialog-fehler:empty { display: none; }
.dauer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dauer-chips .chip { height: 28px; padding: 0 10px; }

@media (max-width: 1180px) {
  .profil-raster { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .profil-kopf { grid-template-columns: auto 1fr; }
  .profil-kopf .zurueck { display: none; }
  .profil-rang { grid-column: 1 / -1; font-size: 26px; }
  .nur-breit { display: none; }
  .fall { grid-template-columns: 8px 1fr; }
  .fall-meta { grid-column: 2; flex-direction: row; gap: 8px; align-items: center; }
}
