/* Portalgestaltung innerhalb des Portalbereichs; die Anmeldeseite verwendet eigene Stile. */
body.portal-mode {
  background: #f2f7fd;
  color: #112b49;
  display: block;
  font-size: 14px;
}
body.portal-mode > main {
  display: block;
  padding: 0;
}
body.portal-mode > footer {
  display: none;
}
#portal {
  --accent: #0068dc;
  --muted: #7a818c;
  --line: #d9e5f3;
  --ink: #112b49;
  width: 100%;
  line-height: 1.5;
}
#portal svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
#portal button {
  width: auto;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
#portal button:hover {
  transform: translateY(-1px);
}
#portal h1,
#portal h2,
#portal h3 {
  color: var(--ink);
  letter-spacing: -0.035em;
}
#portal h1 {
  font-size: 30px;
  font-weight: 650;
  line-height: 1.3;
}
#portal h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0;
}
#portal h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}
#portal p {
  color: #747c88;
  line-height: 1.65;
}
#portal small {
  font-size: 11px;
}
#portal .eyeline {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: #95969e;
  display: block;
  margin-bottom: 9px;
}
#portal .sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 29px 18px 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: auto;
}
#portal .portal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0 7px 23px;
  border-bottom: 1px solid var(--line);
}
/* Dunkle Logo-Variante vollständig und ohne zusätzliche NEX-Zeile anzeigen. */
#portal .portal-brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  overflow: hidden;
}
#portal .portal-brand img {
  display: block;
  width: 100%;
  height: auto;
}
#portal .workspace-label {
  font-size: 11px;
  color: #737b87;
  padding: 20px 8px 24px;
  display: flex;
  align-items: center;
  gap: 9px;
}
#portal .workspace-dot {
  height: 7px;
  width: 7px;
  background: #1684e9;
  border-radius: 50%;
}
#portal .nav-caption {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #9da3ac;
  display: block;
  margin: 0 13px 9px;
}
#portal .nav-link {
  display: flex;
  width: 100%;
  background: none;
  color: #717984;
  padding: 11px 13px;
  margin: 3px 0;
  border-radius: 7px;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
#portal .nav-link svg {
  width: 18px;
  height: 18px;
}
#portal .nav-link small {
  margin-left: auto;
  background: #f0f1f3;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
#portal .nav-link:hover {
  background: #f2f7fd;
  transform: none;
}
#portal .nav-link.active {
  background: #e4f0ff;
  color: #0054b7;
}
#portal .nav-link.active small {
  background: #c9e1ff;
  color: #0054b7;
}
#portal .admin-caption {
  margin-top: 28px;
}
#portal .sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
#portal .demo-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 0 12px;
  color: #626d7b;
}
#portal .demo-label > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b08a52;
}
#portal .sidebar-bottom > p {
  font-size: 10px;
  padding: 0 12px;
  margin: 5px 0 20px;
}
#portal .profile {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 4px;
}
#portal .profile > div {
  min-width: 0;
  flex: 1;
}
#portal .profile strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
#portal .profile small {
  display: block;
  color: #8c929b;
  font-size: 10px;
  margin-top: 1px;
}
#portal .person-avatar,
#portal .top-avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: #e5effb;
  border-radius: 50%;
  color: #245b94;
  font-weight: 650;
  font-size: 11px;
  flex-shrink: 0;
}
#portal .icon-btn {
  background: transparent;
  color: #8b929d;
  padding: 6px;
  border-radius: 6px;
}
#portal .icon-btn:hover {
  background: #edf5ff;
  color: var(--accent);
}
#portal .portal-main {
  margin-left: 246px;
}
#portal .portal-topbar {
  height: 72px;
  min-height: 0;
  padding: 0 38px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
#portal .portal-topbar > div {
  display: flex;
  gap: 17px;
  align-items: center;
  font-size: 11px;
}
#portal .portal-topbar span {
  color: #8b939d;
}
#portal .portal-topbar b {
  font-weight: 400;
  color: #d4d6db;
}
#portal .portal-topbar strong {
  font-weight: 500;
}
#portal .portal-topbar .demo-pill {
  font-size: 9px;
  letter-spacing: 0.09em;
  border: 1px solid #e7e4df;
  background: #faf9f6;
  color: #a28a69;
  border-radius: 5px;
  padding: 5px 9px;
}
#portal .portal-topbar .top-avatar {
  color: #245b94;
}
#portal .portal-content {
  display: block;
  max-width: 1500px;
  margin: auto;
  padding: 34px 38px 0;
}
#portal .page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 20px;
}
#portal .page-heading p {
  font-size: 12px;
  margin: 8px 0 0;
}
#portal .page-date {
  color: #707985;
  text-align: right;
  font-size: 11px;
  white-space: nowrap;
}
#portal .page-date small {
  color: #a0a5ad;
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
}
#portal .welcome-banner {
  border: 1px solid #dce5d3;
  background: linear-gradient(110deg, #edf2e7 0%, #f7f9f3 64%, #e3ebda 100%);
  border-radius: 12px;
  padding: 33px 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  position: relative;
  overflow: hidden;
  min-height: 282px;
}
#portal .welcome-banner .eyeline {
  color: #697e58;
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 15px;
}
#portal .welcome-banner h2 {
  font-size: 34px;
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #34412f;
}
#portal .welcome-banner p {
  max-width: 440px;
  font-size: 12px;
  color: #697660;
  line-height: 1.75;
  margin: 14px 0 21px;
}
#portal .p-btn {
  display: inline-flex;
  background: white;
  color: #535b66;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 11px;
  line-height: 1.5;
}
#portal .p-btn svg {
  width: 15px;
  height: 15px;
}
#portal .p-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 3px 5px #0068dc12;
}
#portal .p-btn.primary:hover {
  background: #0055b8;
}
#portal .p-btn.ghost {
  background: transparent;
  border: 0;
  color: #60734f;
  margin-left: 8px;
}
#portal .p-btn.light:hover {
  background: #eef3e7;
}
#portal .hero-art {
  position: relative;
  min-height: 220px;
}
#portal .hero-sheet {
  position: absolute;
  top: 4px;
  left: 30%;
  background: #fdfefb;
  border-radius: 8px;
  width: 155px;
  height: 203px;
  padding: 23px 18px;
  box-shadow: 3px 12px 25px #53633f12;
  transform: rotate(9deg);
  border: 1px solid #d7e0ce;
}
#portal .hero-sheet.back {
  transform: rotate(-11deg);
  left: 22%;
  top: 15px;
  background: #e1ead7;
  box-shadow: none;
}
#portal .mini-brand {
  color: #61754e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
#portal .sheet-line {
  display: block;
  background: #dfe7d7;
  height: 4px;
  border-radius: 2px;
  margin-top: 9px;
  width: 100%;
}
#portal .sheet-line.short {
  width: 65%;
}
#portal .sheet-symbol {
  height: 73px;
  margin: 10px 0;
  background: #eff4e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9c77;
  border-radius: 4px;
}
#portal .sheet-symbol svg {
  width: 38px;
  height: 38px;
  stroke-width: 1;
}
#portal .hero-stamp {
  position: absolute;
  bottom: 9px;
  left: 12%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  background: white;
  border: 1px solid #e7e4dc;
  border-radius: 7px;
  box-shadow: 0 6px 16px #4a62390c;
  color: #56816f;
  font-size: 10px;
  transform: rotate(-4deg);
  white-space: nowrap;
}
#portal .hero-stamp svg {
  width: 15px;
  height: 15px;
}
#portal .hero-spark {
  position: absolute;
  right: 4%;
  top: 6px;
  color: #8b9f76;
  font-size: 44px;
  font-weight: 200;
}
#portal .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0 33px;
}
#portal .stat-card {
  display: block;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 19px;
  border-radius: 9px;
  color: var(--ink);
}
#portal .stat-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px #29364c09;
}
#portal .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7e8691;
  font-weight: 400;
}
#portal .stat-top svg {
  width: 17px;
  height: 17px;
  color: #aaa4a8;
}
#portal .stat-card strong {
  display: block;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 6px 0 4px;
}
#portal .stat-card small {
  color: #9a9fa8;
  font-size: 9px;
  font-weight: 400;
}
#portal .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
#portal .section-heading .eyeline {
  font-size: 9px;
  margin-bottom: 6px;
}
#portal .section-heading h2 {
  font-size: 20px;
}
#portal .news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
#portal .news-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
#portal .news-card:hover {
  box-shadow: 0 7px 20px #25334b0b;
}
#portal .art-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
#portal .art-button:hover {
  transform: none;
}
#portal .news-art {
  height: 151px;
  position: relative;
  overflow: hidden;
  background: #e9e7e4;
  color: #92918a;
  display: flex;
  align-items: center;
  justify-content: center;
}
#portal .news-art.technik {
  background: linear-gradient(130deg, #e6e7e8, #d7dcdf);
  color: #727f86;
}
#portal .news-art.medizin {
  background: linear-gradient(130deg, #e9efdf, #d7e2c9);
  color: #82966c;
}
#portal .news-art.kommunales {
  background: linear-gradient(130deg, #e8e9dd, #d5dccb);
  color: #819079;
}
#portal .art-orbit {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  right: -45px;
  top: -59px;
  box-shadow:
    0 0 0 22px #ffffff18,
    0 0 0 44px #ffffff18;
}
#portal .art-icon {
  background: #ffffff45;
  border: 1px solid #ffffff65;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 83px;
  border-radius: 13px;
  transform: rotate(-7deg);
  box-shadow: 8px 9px 0 #ffffff19;
}
#portal .art-icon svg {
  width: 56px;
  height: 56px;
  stroke-width: 0.8;
}
#portal .art-caption {
  position: absolute;
  bottom: 12px;
  left: 17px;
  font-size: 7px;
  letter-spacing: 0.13em;
  font-weight: 500;
}
#portal .news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
#portal .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: #99a0a9;
}
#portal .p-badge {
  display: inline-block;
  border-radius: 4px;
  background: #f0f1f4;
  color: #76808e;
  padding: 3px 7px;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#portal .p-badge.technik {
  background: #edf0f5;
  color: #70849a;
}
#portal .p-badge.medizin {
  background: #edf3e5;
  color: #6c8156;
}
#portal .p-badge.kommunales {
  background: #f0f3e9;
  color: #839565;
}
#portal .news-card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.4;
}
#portal .text-button {
  color: var(--ink);
  background: none;
  padding: 0;
  border-radius: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}
#portal .text-button:hover {
  background: none;
  color: var(--accent);
  transform: none;
}
#portal .news-body > p {
  font-size: 11px;
  line-height: 1.75;
  margin: 0 0 19px;
}
#portal .card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eff0f2;
  padding-top: 12px;
  gap: 8px;
  color: #9b9fa7;
  font-size: 9px;
}
#portal .card-bottom .icon-btn svg {
  width: 15px;
  height: 15px;
}
#portal .quick-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
#portal .quick-panel h3 {
  font-size: 14px;
}
#portal .quick-panel p {
  font-size: 11px;
  margin: 4px 0 0;
}
#portal .quick-panel > .p-btn {
  margin-left: auto;
}
#portal .quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #edf3e5;
  display: grid;
  place-items: center;
  color: #7c9367;
}
#portal .portal-footer {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a1a7af;
  margin-top: 14px;
}
#portal .filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 12px;
}
#portal .category-tabs {
  display: flex;
  gap: 24px;
}
#portal .category-tabs button {
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: #7c8591;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
#portal .category-tabs button.selected {
  color: var(--accent);
  border-color: var(--accent);
}
#portal .sort-label {
  font-size: 11px;
  color: #9b9faa;
  white-space: nowrap;
}
#portal .search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 19px;
}
#portal .p-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 7px;
  padding: 0 12px;
  margin: 0;
  max-width: 400px;
  flex: 1;
  color: #9ca3ad;
}
#portal .p-search input {
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 11px;
  font-size: 12px;
  outline-offset: -2px;
}
#portal input,
#portal select,
#portal textarea {
  font: inherit;
  font-size: 12px;
  color: #485361;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  max-width: 100%;
}
#portal textarea {
  display: block;
  width: 100%;
  resize: vertical;
  line-height: 1.85;
}
#portal select {
  min-width: 0;
}
#portal .result-label {
  font-size: 11px;
  color: #939ba5;
  margin-bottom: 15px;
}
#portal .post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 325px;
}
#portal .channel {
  font-weight: 600;
  color: #6a7482;
  font-size: 10px;
}
#portal .post-audience {
  font-size: 10px;
  color: #9ca1aa;
  margin-top: 25px;
}
#portal .post-card h3 {
  font-size: 17px;
  margin-top: 8px;
}
#portal .post-excerpt {
  font-size: 12px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#portal .notice {
  border: 1px solid #eae5da;
  background: #fcfaf5;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 11px;
  color: #9b8867;
  margin: 0 0 20px;
  line-height: 1.7;
}
#portal .catalog-search {
  max-width: 100%;
  margin-bottom: 20px;
}
#portal .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
#portal .catalog-panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 20px;
}
#portal .catalog-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 23px;
}
#portal .category-symbol {
  background: #edf0f3;
  color: #7a8996;
  padding: 10px;
  border-radius: 8px;
  display: flex;
}
#portal .category-symbol.medizin {
  background: #eaf1e0;
  color: #70885b;
}
#portal .category-symbol.kommunales {
  background: #edf0e7;
  color: #8a976f;
}
#portal .catalog-title .eyeline {
  font-size: 8px;
  margin-bottom: 4px;
}
#portal details {
  border-top: 1px solid var(--line);
}
#portal summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: 12px;
  color: #646d7b;
  position: relative;
  padding-right: 25px;
}
#portal summary small {
  position: absolute;
  right: 0;
  top: 16px;
  color: #a5aab2;
  font-size: 9px;
}
#portal .service {
  background: none;
  color: #818a97;
  padding: 9px 0;
  width: 100%;
  text-align: left;
  font-size: 11px;
  justify-content: space-between;
  border-radius: 0;
  font-weight: 400;
}
#portal .service:hover {
  background: #f0f4eb;
  color: var(--accent);
  transform: none;
}
#portal .service svg {
  width: 13px;
  height: 13px;
}
#portal .admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 22px;
  align-items: start;
}
#portal .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  min-width: 0;
}
#portal .panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 23px;
}
#portal .panel-heading h2 {
  font-size: 18px;
}
#portal .panel p {
  font-size: 12px;
  margin: 9px 0 18px;
}
#portal .panel-heading p {
  font-size: 11px;
  margin: 5px 0 0;
}
#portal .p-field {
  display: block;
  margin: 0 0 21px;
  font-size: 12px;
  color: #596475;
}
#portal .p-field > span {
  display: block;
  margin-bottom: 9px;
}
#portal .p-field > input,
#portal .p-field > select {
  width: 100%;
}
#portal .p-field > small {
  display: block;
  color: #9ca3ae;
  font-size: 10px;
  margin-top: 7px;
  font-weight: 400;
}
#portal .two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
#portal .check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  color: #667180;
  margin: 0 0 24px;
}
#portal .check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
#portal .form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
#portal .form-footer > span {
  font-size: 10px;
  color: #a0a6af;
}
#portal .status {
  color: #618b74;
  background: #eef5ef;
  font-size: 9px;
  display: inline-block;
  border-radius: 4px;
  padding: 4px 7px;
  white-space: nowrap;
}
#portal .next-run {
  display: block;
  font-size: 27px;
  color: #657c50;
  margin-top: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
#portal .pipeline > div {
  display: flex;
  gap: 11px;
  align-items: center;
  position: relative;
  margin-top: 18px;
}
#portal .pipeline > div > span {
  border: 1px solid #dbe5d1;
  color: #7f9769;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
#portal .pipeline > div > p {
  margin: 0;
  color: #69717e;
  font-size: 11px;
}
#portal .pipeline small {
  display: block;
  color: #a4a8b0;
  font-size: 9px;
  margin-top: 3px;
}
#portal .pipeline .muted {
  font-size: 10px;
  margin-top: 22px;
  margin-bottom: 0;
}
#portal .prompt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 25px;
}
#portal .prompt-tabs button {
  background: #f8f9fa;
  color: #88909b;
  border: 1px solid #eef0f2;
  font-size: 10px;
  padding: 8px;
  border-radius: 5px;
}
#portal .prompt-tabs button.selected {
  background: #edf3e5;
  border-color: #d7e3ca;
  color: #5c7647;
}
#portal .prompt-tabs small {
  opacity: 0.6;
}
#portal #prompt-form h3 {
  margin-bottom: 20px;
}
#portal .variable-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 22px 0;
}
#portal code {
  background: #f3f4f7;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 10px;
  color: #818c9b;
}
#portal table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
#portal th {
  background: #fafbfc;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #9ca3ad;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
#portal td {
  padding: 18px 14px;
  border-bottom: 1px solid #eff1f3;
  color: #7b8593;
  font-size: 11px;
}
#portal td strong {
  color: #596575;
  font-size: 12px;
  font-weight: 550;
}
#portal td .person-avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
  margin-right: 10px;
}
#portal .p-btn.small {
  font-size: 10px;
  padding: 6px 9px;
  margin: 2px;
}
#portal .p-btn.small svg {
  width: 12px;
  height: 12px;
}
#portal .danger {
  color: #b3777c;
}
#portal .block {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: #a2a8b0;
}
#portal .table-scroll {
  overflow: auto;
}
#portal .empty {
  grid-column: 1/-1;
  padding: 60px 20px;
  text-align: center;
  background: white;
  border: 1px dashed #dce1e8;
  border-radius: 9px;
  color: #a7afb8;
}
#portal .empty svg {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}
#portal .empty .p-btn svg {
  width: 15px;
  height: 15px;
  margin: 0;
}
#portal .empty p {
  font-size: 12px;
}
#portal .p-dialog {
  border: 1px solid #dfe5d8;
  border-radius: 14px;
  padding: 28px;
  width: min(680px, calc(100vw - 32px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 25px 100px #20253433;
}
#portal .p-dialog::backdrop {
  background: #20263366;
  backdrop-filter: blur(4px);
}
#portal .dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
#portal .dialog-heading h2 {
  font-size: 23px;
  line-height: 1.35;
}
#portal .detail-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8e96a0;
  font-size: 11px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
#portal .p-dialog .news-art {
  border-radius: 8px;
  height: 190px;
  margin-bottom: 25px;
}
#portal .detail-copy > p,
#portal .detail-copy li {
  font-size: 13px;
  color: #737f8c;
}
#portal .detail-copy h3 {
  margin: 23px 0 10px;
}
#portal .detail-copy ul {
  padding-left: 20px;
  line-height: 1.9;
}
#portal .editor-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3ad;
  margin-top: 10px;
}
#portal .muted {
  font-size: 12px;
  color: #9da4ad;
}
#portal .permission-list p {
  padding: 10px;
  border-bottom: 1px solid #eff0f2;
}
#p-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #343b46;
  color: white;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 6px 20px #17243826;
  max-width: 90vw;
}
#portal .p-dialog[open] ~ #p-toast {
  z-index: 100;
}
@media (min-width: 1600px) {
  #portal .portal-content {
    padding-top: 42px;
  }
  #portal .welcome-banner {
    padding: 40px 45px;
  }
  #portal .welcome-banner h2 {
    font-size: 40px;
  }
  #portal .news-art {
    height: 180px;
  }
}
@media (max-width: 1150px) {
  #portal .sidebar {
    width: 218px;
    padding-left: 12px;
    padding-right: 12px;
  }
  #portal .portal-main {
    margin-left: 218px;
  }
  #portal .portal-content {
    padding: 25px 24px 0;
  }
  #portal .portal-topbar {
    padding: 0 24px;
  }
  #portal .welcome-banner {
    padding: 28px;
  }
  #portal .welcome-banner h2 {
    font-size: 29px;
  }
  #portal .hero-sheet {
    left: 20%;
    width: 140px;
  }
  #portal .hero-sheet.back {
    left: 10%;
  }
  #portal .hero-stamp {
    left: 0;
  }
  #portal .news-grid {
    gap: 13px;
  }
  #portal .news-body {
    padding: 14px;
  }
  #portal .card-meta {
    flex-wrap: wrap;
  }
  #portal .stats-grid {
    gap: 10px;
  }
  #portal .stat-card {
    padding: 15px;
  }
  #portal .stat-card small {
    font-size: 8px;
  }
  #portal .admin-layout {
    grid-template-columns: 1fr;
  }
  #portal .admin-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  #portal .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  #portal .catalog-panel:last-child {
    grid-column: 1/-1;
  }
  #portal .search-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  #portal .sidebar {
    position: relative;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  #portal .portal-brand {
    border: 0;
    align-items: flex-start;
    padding: 0;
  }
  #portal .workspace-label {
    display: none;
  }
  #portal .sidebar nav {
    display: flex;
    overflow-x: auto;
    margin-top: 17px;
    gap: 5px;
  }
  #portal .nav-link {
    width: auto;
    flex-shrink: 0;
    margin: 0;
    font-size: 11px;
    padding: 9px 11px;
  }
  #portal .nav-caption {
    display: none;
  }
  #portal .sidebar-bottom {
    margin: 0;
    padding: 0;
  }
  #portal .sidebar-bottom > .demo-label,
  #portal .sidebar-bottom > p {
    display: none;
  }
  #portal .profile {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    padding: 0;
  }
  #portal .profile > div {
    max-width: 120px;
  }
  #portal .portal-main {
    margin: 0;
  }
  #portal .portal-topbar {
    height: 53px;
  }
  #portal .portal-content {
    padding: 24px 18px 0;
  }
  #portal .page-heading h1 {
    font-size: 25px;
  }
  #portal .page-date {
    display: none;
  }
  #portal .welcome-banner {
    grid-template-columns: 1.4fr 1fr;
    padding: 25px;
  }
  #portal .welcome-banner h2 {
    font-size: 28px;
  }
  #portal .hero-sheet {
    left: 14%;
  }
  #portal .hero-spark {
    right: -8%;
  }
  #portal .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 25px;
  }
  #portal .stat-card small {
    font-size: 10px;
  }
  #portal .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #portal .news-grid .news-card:last-child:nth-child(3) {
    grid-column: 1/-1;
  }
  #portal .quick-panel {
    flex-wrap: wrap;
  }
  #portal .quick-panel > .p-btn {
    margin-left: 58px;
  }
  #portal .category-tabs {
    gap: 17px;
  }
  #portal .sort-label {
    display: none;
  }
}
@media (max-width: 520px) {
  #portal .portal-topbar {
    padding: 0 18px;
  }
  #portal .portal-topbar .demo-pill {
    font-size: 7px;
    padding: 4px 5px;
  }
  #portal .top-avatar {
    display: none;
  }
  #portal .welcome-banner {
    display: block;
    min-height: 0;
    padding: 25px 22px;
  }
  #portal .hero-art {
    display: none;
  }
  #portal .welcome-banner h2 {
    font-size: 30px;
  }
  #portal .welcome-banner .p-btn {
    font-size: 10px;
  }
  #portal .p-btn.ghost {
    margin-left: 0;
    padding-left: 8px;
  }
  #portal .news-grid,
  #portal .catalog-grid {
    grid-template-columns: 1fr;
  }
  #portal .catalog-panel:last-child {
    grid-column: auto;
  }
  #portal .news-art {
    height: 180px;
  }
  #portal .news-body {
    padding: 19px;
  }
  #portal .stat-card {
    padding: 14px;
  }
  #portal .stat-card small {
    font-size: 8px;
  }
  #portal .section-heading h2 {
    font-size: 17px;
  }
  #portal .section-heading > .p-btn {
    font-size: 9px;
    padding: 7px;
  }
  #portal .category-tabs {
    gap: 15px;
  }
  #portal .category-tabs button {
    font-size: 10px;
  }
  #portal .search-row .p-search {
    flex-basis: 100%;
    max-width: none;
  }
  #portal .search-row select {
    flex: 1;
    font-size: 10px;
  }
  #portal .panel {
    padding: 18px;
  }
  #portal .panel-heading {
    flex-wrap: wrap;
  }
  #portal .two-fields,
  #portal .admin-layout > aside {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #portal .form-footer {
    flex-wrap: wrap;
  }
  #portal .p-dialog {
    padding: 20px;
  }
  #portal .dialog-heading h2 {
    font-size: 20px;
  }
  #portal .portal-footer {
    font-size: 8px;
  }
  #portal .page-heading .eyeline {
    font-size: 8px;
  }
  #portal .quick-panel h3 {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #portal button {
    transition: none;
  }
  #portal button:hover {
    transform: none;
  }
}
#portal .dialog-status {
  background: #eaf3ff;
  border-radius: 6px;
  padding: 10px 14px;
  color: #537d63;
  font-size: 12px;
}
/* Die globale Zentrierung der Anmeldeseite für den Arbeitsbereich zurücksetzen. */
#portal .portal-content {
  place-items: normal;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 240px;
}
.module-card .p-btn {
  margin-top: auto;
}
.panel li {
  margin: 12px 0;
}
.panel fieldset {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  margin: 20px 0;
}
.sidebar nav {
  overflow-y: auto;
}
.panel textarea {
  width: 100%;
}
@media (max-width: 850px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

.workplace-banner {
  min-height: 180px;
}
.p-dialog fieldset {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  padding: 12px;
  margin: 20px 0;
}
.p-dialog input[type='checkbox'] {
  accent-color: #087af0;
}

.account-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-layout nav {
  display: grid;
  gap: 8px;
}
.account-layout .panel {
  min-width: 0;
}
.p-dialog {
  max-width: 760px;
}
.p-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
fieldset {
  border: 1px solid #dedbd8;
  border-radius: 10px;
  margin: 20px 0;
  padding: 16px;
}
@media (max-width: 760px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-layout nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#portal .sidebar > nav {
  margin-top: 20px;
}
#portal .portal-version {
  padding: 12px;
  color: #77818a;
  font-size: 11px;
  text-align: left;
}
#portal .portal-version-label {
  display: block;
  white-space: nowrap;
  text-align: left;
}
#portal .workspace-home {
  background: transparent;
  color: #78828c;
  padding: 4px 0;
  font-size: 11px;
}
#portal .top-avatar {
  border: 0;
  padding: 0;
  display: inline-flex;
}
#portal .portal-content {
  padding-bottom: 30px;
}
#portal .update-button {
  display: flex;
  align-items: center;
  text-align: left;
  white-space: normal;
  width: 100%;
  background: #eff7fd;
  color: #407fa9;
  border: 1px solid #d4e9f7;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  line-height: 1.4;
  animation: update-glow 3s ease-in-out infinite;
}
#portal .update-button small {
  display: block;
  color: #407fa9;
}
.update-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #79b8e8;
  animation: update-pulse 3s ease-in-out infinite;
}
@keyframes update-glow {
  0%,
  100% {
    background: #eff7fd;
    border-color: #d4e9f7;
    box-shadow: 0 0 0 0 #79b8e800;
  }
  50% {
    background: #dcedfb;
    border-color: #8fc5eb;
    box-shadow: 0 0 12px 2px #79b8e835;
  }
}
@keyframes update-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 #79b8e830;
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 0 5px #79b8e810;
  }
}
@media (prefers-reduced-motion: reduce) {
  .update-dot,
  #portal .update-button {
    animation: none;
  }
}
@media (max-width: 800px) {
  #portal .sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
  }
  #portal .portal-version {
    padding: 0;
    flex: 1;
  }
  #portal .sidebar-bottom > .nav-link {
    flex-shrink: 0;
  }
  #portal .update-button {
    max-width: 250px;
  }
  #portal .page-date {
    display: block;
    font-size: 9px;
  }
}

/* Farbiges Anmeldemotiv unter den Inhalten, im Blau der Portaloberfläche. */
#portal .portal-main {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
}
#portal .portal-main::before {
  content: '';
  position: fixed;
  inset: 0 0 0 246px;
  z-index: -1;
  pointer-events: none;
  background: url('/assets/dashboard-background-v8-nex.png') center / cover no-repeat;
  filter: saturate(0.8);
  opacity: 0.22;
}
@media (max-width: 1150px) {
  #portal .portal-main::before {
    left: 218px;
  }
}
@media (max-width: 800px) {
  #portal .portal-main::before {
    left: 0;
  }
}

/* Leistungskatalog mit dauerhaft gespeicherten Daten. */
.catalog-toolbar,
.catalog-actions,
.catalog-category-tools,
.catalog-sub-tools,
.catalog-manage-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-toolbar {
  justify-content: space-between;
  margin-bottom: 20px;
}
.catalog-toolbar p {
  margin: 6px 0 0;
}
.catalog-category-tools,
.catalog-sub-tools {
  margin: 12px 0;
}
.catalog-manage-note {
  justify-content: space-between;
}
.catalog-service {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e7e7e4);
}
.catalog-service > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-service strong {
  font-size: 14px;
  font-weight: 500;
}
.catalog-service p {
  font-size: 13px;
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.catalog-actions {
  flex-shrink: 0;
}
.catalog-actions .p-btn {
  font-size: 12px;
  padding: 7px 10px;
}
.catalog-sub-body {
  padding: 0 12px 8px;
}
.catalog-panel summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-panel h2 {
  overflow-wrap: anywhere;
}
.catalog-grid.catalog-managing {
  grid-template-columns: 1fr;
}
.catalog-managing .catalog-panel {
  padding: 24px;
}
.catalog-managing .catalog-title {
  margin-bottom: 8px;
}
#catalog-form-error,
#catalog-delete-error {
  color: #a73135;
}
#catalog-form textarea {
  resize: vertical;
}
@media (max-width: 700px) {
  .catalog-service {
    flex-direction: column;
  }
  .catalog-toolbar {
    align-items: flex-start;
  }
  .catalog-actions {
    flex-wrap: wrap;
  }
  .catalog-managing .catalog-panel {
    padding: 16px;
  }
}

/* Katalogbaum und direkt eingebundener Editor. */
.catalog-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
}
.catalog-tree-panel {
  min-width: 0;
  padding: 20px;
}
.catalog-tree-panel .catalog-search {
  margin: 0 0 16px;
}
.catalog-tree {
  margin-top: 12px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 6px;
}
.catalog-branch {
  border: 0 !important;
}
.catalog-branch > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 3px 0 !important;
  list-style: none;
}
.catalog-branch > summary::before {
  content: '▸';
  width: 16px;
  flex-shrink: 0;
  color: #667261;
}
.catalog-branch[open] > summary::before {
  content: '▾';
}
.catalog-branch > summary::-webkit-details-marker {
  display: none;
}
.catalog-branch > summary > small {
  font-size: 11px;
  color: #889080;
  margin-left: auto;
  padding: 0 5px;
}
.catalog-children {
  margin-left: 15px;
  padding-left: 9px;
  border-left: 1px solid #dfe4d9;
}
.catalog-node-name {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  flex: 1;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 9px 7px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.catalog-node-name:hover {
  background: #f0f3eb;
}
.catalog-node-name.selected {
  background: #e7eedd;
  color: #38522a;
  font-weight: 600;
}
.catalog-node-name:focus-visible {
  outline: 2px solid #66894d;
  outline-offset: 1px;
}
.catalog-node-icon {
  flex-shrink: 0;
  color: #708164;
}
.catalog-leaf {
  padding-left: 16px;
}
.catalog-leaf .catalog-node-name {
  width: 100%;
}
.catalog-empty-branch {
  font-size: 12px;
  color: #888;
  padding: 8px;
}
.catalog-editor {
  min-width: 0;
  position: sticky;
  top: 24px;
}
.catalog-editor h2 {
  overflow-wrap: anywhere;
}
.catalog-editor fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.catalog-editor .p-field {
  margin: 16px 0;
}
.catalog-editor select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.catalog-breadcrumb {
  font-size: 12px;
  color: #7b8274;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.catalog-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.catalog-editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.catalog-delete-area {
  border-top: 1px solid #e3e6df;
  padding-top: 20px;
  margin-top: 24px;
}
.p-btn.danger {
  background: #fff5f3;
  border: 1px solid #e7c7c0;
  color: #a2362c;
}
@media (max-width: 900px) {
  .catalog-workspace {
    grid-template-columns: 1fr;
  }
  .catalog-tree {
    max-height: 45vh;
  }
  .catalog-editor {
    position: static;
  }
  .catalog-tree-panel {
    padding: 16px;
  }
}
.catalog-tree .catalog-node-name {
  justify-content: flex-start;
  text-align: left;
}
#portal .catalog-node-name {
  justify-content: flex-start;
  text-align: left;
}
#portal .catalog-node-name:hover {
  transform: none;
}
#portal .catalog-leaf .catalog-node-name {
  width: 100%;
}
#portal .p-btn.danger {
  background: #fff5f3;
  border-color: #e7c7c0;
  color: #a2362c;
}
#portal .catalog-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
#portal .catalog-tabs button {
  flex: 1;
  border-radius: 6px 6px 0 0;
  padding: 10px 6px;
  background: transparent;
  color: #747c88;
  font-size: 12px;
}
#portal .catalog-tabs button[aria-selected='true'] {
  background: #edf2e5;
  color: #4f673c;
  border-bottom: 2px solid #0068dc;
}
#portal .catalog-favorite-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #425237;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 8px;
  gap: 4px;
  overflow-wrap: anywhere;
}
#portal .catalog-favorite-row small {
  font-weight: 400;
  color: #7b8274;
  font-size: 11px;
  white-space: normal;
}
#portal .catalog-favorite-row:hover {
  background: #f2f5ee;
  transform: none;
}
.catalog-topic-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}
.catalog-home {
  margin-bottom: 24px;
}

/* Im Modul ersetzt das Kontextmenü die gemeinsame Modulauswahl. */
#portal .nav-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 10px;
}
#portal .module-back {
  font-size: 12px;
}
#portal .module-back + .nav-divider {
  margin-top: 6px;
  margin-bottom: 6px;
}
#portal .module-back > span:first-child {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
}
#portal .location-indicator {
  flex-wrap: wrap;
  min-width: 0;
}
#portal .location-indicator [aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 800px) {
  #portal .sidebar nav > .nav-divider {
    flex: 0 0 1px;
    align-self: stretch;
    border: 0;
    background: var(--line);
    margin: 5px;
  }
  #portal .portal-topbar {
    min-height: 53px;
    height: auto;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

#portal .portal-version,
#portal .portal-version-label,
#portal .portal-copyright {
  text-align: center;
}
#portal .sidebar-logout {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
#portal .sidebar-logout .nav-link {
  justify-content: center;
}
#portal .profile-content {
  max-width: 1000px;
}
#portal .k-content .catalog-workspace {
  margin-top: 0;
}
@media (max-width: 800px) {
  #portal .sidebar-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  #portal .sidebar-logout {
    border: 0;
    padding: 0;
  }
}

#portal .nav-module-title {
  margin: 4px 14px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
@media (max-width: 800px) {
  #portal .nav-module-title {
    flex-shrink: 0;
    align-self: center;
    margin: 0 10px;
  }
}

@media (min-width: 801px) {
  #portal .sidebar > nav {
    margin-top: 0;
  }
  #portal .sidebar > nav > .nav-link:first-child {
    margin-top: 0;
  }
  #portal .sidebar > nav > .module-back {
    margin-top: 0;
    margin-bottom: 0;
  }
  #portal .sidebar > nav > .module-back + .nav-divider {
    margin-top: 0;
  }
}

/* Gemeinsame NEX-Palette nach Norberts Entwurf: Marineblau, Blau und helle Flächen. */
#portal {
  --accent: #0068dc;
  --ink: #10284c;
  --line: #d9e5f3;
  --muted: #536c87;
}
#portal .sidebar {
  background: linear-gradient(160deg, #193750, #12283f);
  border-right: 1px solid #284661;
  color: #f4f8ff;
}
#portal .portal-brand {
  border-bottom-color: #38516a;
}
#portal .portal-brand-logo {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
#portal .sidebar .nav-link {
  color: #edf5ff;
}
#portal .sidebar .nav-link:hover {
  background: #284c6b;
  color: white;
}
#portal .sidebar .nav-link.active {
  background: #087af0;
  color: white;
  box-shadow: none;
}
#portal .sidebar .nav-divider,
#portal .sidebar-logout {
  border-color: #38516a;
}
#portal .sidebar .nav-module-title {
  color: white;
}
#portal .sidebar .portal-version,
#portal .sidebar .portal-copyright,
#portal .sidebar .portal-version-label {
  color: #c7d9ec;
}
#portal .portal-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
#portal .panel,
#portal .k-workspace {
  border-color: var(--line);
}
#portal .p-btn.primary {
  background: #0068dc;
  color: white;
  border-color: #0068dc;
}
#portal .p-btn.primary:hover {
  background: #0055b8;
}
#portal .k-tabs [aria-selected='true'],
#portal .category-tabs .selected {
  color: #0057bf;
  border-color: #087af0;
  background: #eaf4ff;
}
#portal .k-row.selected,
#portal .m-record-table tr.selected {
  background: #e6f1ff;
}
#portal .home-tile:nth-child(4n + 1),
#portal .stat-card:nth-child(4n + 1) {
  background: #eaf4ff;
}
#portal .home-tile:nth-child(4n + 2),
#portal .stat-card:nth-child(4n + 2) {
  background: #eaf8f2;
}
#portal .home-tile:nth-child(4n + 3),
#portal .stat-card:nth-child(4n + 3) {
  background: #f2edfc;
}
#portal .home-tile:nth-child(4n + 4),
#portal .stat-card:nth-child(4n + 4) {
  background: #fff3e7;
}
#portal .sidebar .nav-link:focus-visible {
  outline: 2px solid #9ed5ff;
  outline-offset: 2px;
}
.schaden-combobox {
  position: relative;
  min-width: 180px;
}
.schaden-options {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  min-width: 240px;
  max-width: min(600px, 80vw);
  max-height: 290px;
  overflow-y: auto;
  z-index: 100;
  background: white;
  color: #17314d;
  border: 1px solid #bed5ee;
  border-radius: 8px;
  box-shadow: 0 8px 24px #12283f26;
}
.schaden-options [role='option'] {
  padding: 9px 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.schaden-options [role='option']:hover,
.schaden-options [aria-selected='true'] {
  background: #e6f1ff;
}
.schaden-options p {
  padding: 8px 12px;
}

#portal .portal-content {
  background: transparent;
}

/* Lesbare Arbeitsanweisungen und stets erreichbare Dialogaktionen. */
.p-dialog.wide-dialog {
  width: min(1100px, 96vw);
  max-width: 1100px;
}
.dialog-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface, #fff);
}
.dialog-actions {
  position: sticky;
  top: 68px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #fff;
  padding: 0.8rem 0;
  border-bottom: 1px solid #d8e2ec;
}
.prompt-previews {
  display: grid;
  gap: 1rem;
}
.prompt-previews textarea {
  width: 100%;
  resize: vertical;
  min-height: 8rem;
}
.content-photo {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 1rem auto;
}
.k-topic-children {
  padding-left: 1.3rem;
  border-left: 1px solid #d8e2ec;
}

/* Sortierbare Spaltenköpfe bleiben als Überschriften lesbar. */
th .p-btn[data-table-sort],
th .p-btn[data-summary-sort] {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.3rem 0;
  color: #35465b;
  font-weight: 600;
  text-align: left;
}
th .p-btn[data-table-sort]:hover,
th .p-btn[data-summary-sort]:hover {
  color: #175aa6;
  text-decoration: underline;
}

/* Dialogtitel und Inhalt haben getrennte Layout- und Scrollbereiche. */
#portal .p-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
#portal .dialog-fixed > .dialog-heading {
  position: static;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8e2ec;
}
#portal .dialog-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
#portal .dialog-fixed > .dialog-actions {
  top: 0;
  margin: 0;
}
.m-profile-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}
.m-profile-dropdown {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
}
.m-profile-dropdown summary {
  padding: 0.75rem;
  cursor: pointer;
}
.m-profile-options {
  max-height: 15rem;
  overflow: auto;
  padding: 0.75rem;
  border-top: 1px solid #d8e2ec;
}

#portal .dialog-fixed > .dialog-actions {
  position: static;
}
