/* =========================================================
   jonathanwallner.de – SAP Fiori Launchpad
   Alle Farben/Metriken sind SAP-Theming-Parameter (--sap…), deren Werte
   pro Theme in themes.css stehen (generiert aus SAP theming-base-content).
   Schrift "72" und SAP-icons self-hosted (Apache-2.0, siehe fonts/).
   ========================================================= */

@font-face { font-family: "72"; src: url("fonts/72-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "72"; src: url("fonts/72-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "72"; src: url("fonts/72-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "72"; src: url("fonts/72-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "SAP-icons"; src: url("fonts/SAP-icons.woff2") format("woff2"); font-display: block; }

@view-transition { navigation: auto; }

/* Englisch: Seite erst nach der Übersetzung zeigen (Fallback-Timeout im <head>) */
html.i18n-pending body { visibility: hidden; }

/* ---------- Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--sapBackgroundColor); color: var(--sapTextColor);
  font-family: "72", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: .875rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, h4 { margin: 0; color: var(--sapTitleColor); font-weight: 700; line-height: 1.25; }
p { margin: 0; }
a { color: var(--sapLinkColor); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: var(--sapContent_FocusColor) solid .125rem; outline-offset: .0625rem; border-radius: .375rem; }
[hidden] { display: none !important; }
.ico { font-family: "SAP-icons"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }
.content { max-width: 80rem; margin: 0 auto; padding: 0 2rem; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell Bar ---------- */
.shellbar { position: sticky; top: 0; z-index: 30; height: 3.25rem; background: var(--sapShellColor); box-shadow: var(--sapShell_Shadow); view-transition-name: shellbar; }
.shellbar .content { height: 100%; display: flex; align-items: center; gap: .5rem; max-width: none; padding: 0 1rem; }
.shell-logo { flex: none; width: 2rem; height: 2rem; border-radius: .5rem; display: grid; place-items: center; background: var(--sapBrandColor); color: var(--sapContent_ContrastTextColor); font-weight: 900; font-size: .8125rem; margin-right: .25rem; }
.shell-logo:hover { text-decoration: none; }
.shell-title { font-size: 1rem; font-weight: 700; color: var(--sapShell_TextColor); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-title:hover { text-decoration: none; }
.shell-subtitle { font-size: .875rem; color: var(--sapShell_TextColor); opacity: .75; white-space: nowrap; }
.shell-spacer { flex: 1; }
.shell-btn {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--sapButton_BorderCornerRadius);
  display: grid; place-items: center; border: .0625rem solid transparent; background: transparent;
  color: var(--sapShell_InteractiveTextColor); cursor: pointer; font-size: 1rem; text-decoration: none;
}
.shell-btn:hover { background: color-mix(in srgb, var(--sapShell_TextColor) 10%, transparent); text-decoration: none; }
.shell-search { position: relative; flex: 0 1 20rem; }
.shell-search input {
  width: 100%; height: 2.25rem; border-radius: 1.125rem; border: .0625rem solid transparent;
  background: var(--sapShell_InteractiveBackground); color: var(--sapShell_InteractiveTextColor);
  font: inherit; padding: 0 2.25rem; outline: none;
}
.shell-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.shell-search input::placeholder { color: var(--sapShell_InteractiveTextColor); opacity: .7; }
.shell-search input:hover { border-color: var(--sapShell_InteractiveBorderColor); }
.shell-search input:focus { border-color: var(--sapContent_FocusColor); }
.shell-search > .ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--sapShell_InteractiveTextColor); font-size: 1rem; pointer-events: none; }
.shell-search .clear { position: absolute; right: .25rem; top: .25rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 0; background: transparent; color: var(--sapShell_InteractiveTextColor); cursor: pointer; display: grid; place-items: center; }
.shell-search .clear .ico { font-size: .875rem; }
.shell-search .clear:hover { background: color-mix(in srgb, var(--sapShell_TextColor) 12%, transparent); }
.shell-avatar {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--sapAvatar_6_Background); color: var(--sapAvatar_6_TextColor);
  border: .0625rem solid var(--sapAvatar_6_BorderColor); font: inherit; font-size: .8125rem; padding: 0;
}
.shell-avatar:hover, .shell-avatar[aria-expanded="true"] { box-shadow: 0 0 0 .1875rem color-mix(in srgb, var(--sapShell_TextColor) 18%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  height: 2.25rem; min-width: 2.25rem; padding: 0 .6875rem;
  border-radius: var(--sapButton_BorderCornerRadius); border: .0625rem solid var(--sapButton_BorderColor);
  background: var(--sapButton_Background); color: var(--sapButton_TextColor);
  font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--sapButton_Hover_Background); border-color: var(--sapButton_Hover_BorderColor); color: var(--sapButton_Hover_TextColor); text-decoration: none; }
.btn .ico { font-size: 1rem; }
.btn.emph { background: var(--sapButton_Emphasized_Background); border-color: var(--sapButton_Emphasized_BorderColor); color: var(--sapButton_Emphasized_TextColor); }
.btn.emph:hover { background: var(--sapButton_Emphasized_Hover_Background); border-color: var(--sapButton_Emphasized_Hover_BorderColor); color: var(--sapButton_Emphasized_Hover_TextColor); }
.btn.trans { background: var(--sapButton_Lite_Background); border-color: var(--sapButton_Lite_BorderColor); color: var(--sapButton_Lite_TextColor); }
.btn.trans:hover { background: var(--sapButton_Lite_Hover_Background); border-color: var(--sapButton_Lite_Hover_BorderColor); color: var(--sapButton_Lite_Hover_TextColor); }
.btn.icon-only { padding: 0; width: 2.25rem; }
.btn.trans.icon-only { color: var(--sapContent_IconColor); }

/* ---------- Launchpad ---------- */
.lp-welcome { padding: 2rem 0 .5rem; }
.lp-welcome .content { display: flex; align-items: center; gap: 1rem; }
.lp-welcome .avatar { width: 4rem; height: 4rem; font-size: 1.5rem; }
.lp-welcome h1 { font-size: 1.5rem; }
.lp-welcome p { color: var(--sapContent_LabelColor); margin-top: .125rem; }
.lp-section { padding: 1.5rem 0 .5rem; }
.lp-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.tiles { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Generic Tile 1x1 (11rem) / 2x1 (22.5rem) / Flat */
.tile {
  position: relative; display: flex; flex-direction: column;
  width: 11rem; height: 11rem; padding: 1rem;
  border-radius: var(--sapTile_BorderCornerRadius); border: .0625rem solid var(--sapTile_BorderColor);
  background: var(--sapTile_Background); box-shadow: var(--sapContent_Shadow0);
  color: var(--sapTile_TitleTextColor); text-decoration: none; cursor: pointer;
  transition: background .1s, transform .1s;
}
.tile:hover { background: var(--sapTile_Hover_Background); text-decoration: none; }
.tile:active { background: var(--sapTile_Active_Background); transform: scale(.98); }
.tile.wide { width: 22.5rem; }
.tile.flat { height: 5.5rem; }
.tile-title { font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--sapTile_TitleTextColor); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-subtitle { font-size: .875rem; color: var(--sapTile_TextColor); margin-top: .125rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-content { flex: 1; display: flex; align-items: flex-end; min-height: 0; }
.tile-icon { font-size: 2rem; color: var(--sapTile_IconColor); }
.tile-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; color: var(--sapTile_TextColor); margin-top: .5rem; min-height: 1.25rem; }
.tile .num { display: flex; align-items: baseline; gap: .25rem; }
.tile .num-value { font-size: 2.25rem; font-weight: 400; line-height: 1; color: var(--sapTile_TitleTextColor); }
.tile .num-unit { font-size: .875rem; color: var(--sapTile_TextColor); }
.tile .num-ind { font-size: 1rem; color: var(--sapPositiveElementColor); margin-left: .25rem; }
.tile-ext { font-size: .75rem; color: var(--sapTile_IconColor); }
/* Feature-Tile (2x1) */
.tile.feature { background: var(--jwFeature_Background); border-color: var(--jwFeature_BorderColor); }
.tile.feature:hover { background: var(--jwFeature_Background); filter: brightness(1.08); }
.tile.feature .tile-title, .tile.feature .tile-subtitle, .tile.feature .tile-footer, .tile.feature .feature-text { color: var(--jwFeature_TextColor); }
.tile.feature .tile-subtitle { opacity: .85; }
.tile.feature .feature-text { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.tile.feature .status { background: transparent; color: var(--jwFeature_TextColor); border-color: var(--jwFeature_TextColor); }
.tile[data-filtered="out"] { display: none; }
.lp-empty { text-align: center; padding: 4rem 1rem; color: var(--sapContent_LabelColor); }
.lp-empty > .ico { font-size: 4rem; color: var(--sapContent_NonInteractiveIconColor); display: block; margin: 0 auto 1rem; }
.lp-empty h2 { font-size: 1.25rem; margin-bottom: .25rem; }

/* ---------- Avatar / Status / Tokens ---------- */
.avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--sapAvatar_6_Background); color: var(--sapAvatar_6_TextColor); border: .0625rem solid var(--sapAvatar_6_BorderColor); font-size: 1rem; }
.avatar.xl { width: 5rem; height: 5rem; font-size: 2rem; }
.avatar.sq { border-radius: .75rem; }
.avatar .ico { font-size: 1.125em; }
.avatar.c1 { background: var(--sapAvatar_1_Background); color: var(--sapAvatar_1_TextColor); border-color: var(--sapAvatar_1_BorderColor); }
.avatar.c5 { background: var(--sapAvatar_5_Background); color: var(--sapAvatar_5_TextColor); border-color: var(--sapAvatar_5_BorderColor); }
.avatar.c7 { background: var(--sapAvatar_7_Background); color: var(--sapAvatar_7_TextColor); border-color: var(--sapAvatar_7_BorderColor); }
.avatar.c8 { background: var(--sapAvatar_8_Background); color: var(--sapAvatar_8_TextColor); border-color: var(--sapAvatar_8_BorderColor); }
.avatar.c9 { background: var(--sapAvatar_9_Background); color: var(--sapAvatar_9_TextColor); border-color: var(--sapAvatar_9_BorderColor); }
.status { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 700; line-height: 1rem; padding: .0625rem .25rem; border-radius: .25rem; color: var(--sapPositiveTextColor); background: var(--sapSuccessBackground); border: .0625rem solid var(--sapSuccessBorderColor); vertical-align: middle; white-space: nowrap; }
.status .ico { font-size: .75rem; }
.status.info { color: var(--sapInformativeTextColor); background: var(--sapInformationBackground); border-color: var(--sapInformationBorderColor); }
.status-plain { display: inline-flex; align-items: center; gap: .375rem; color: var(--sapPositiveTextColor); font-weight: 600; }
.tokens { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.token {
  height: 1.625rem; display: inline-flex; align-items: center; padding: 0 .5rem; gap: .25rem;
  font: inherit; font-size: .875rem; border-radius: var(--sapButton_TokenBorderCornerRadius); cursor: pointer;
  background: var(--sapButton_TokenBackground); border: .0625rem solid var(--sapButton_TokenBorderColor); color: var(--sapTextColor);
}
.token:hover { border-color: var(--sapButton_Selected_BorderColor); }
.token.match, .token[aria-pressed="true"] { background: var(--sapButton_Selected_Background); border-color: var(--sapButton_Selected_BorderColor); color: var(--sapButton_Selected_TextColor); }

/* ---------- Dynamic Page / Object Page Header ---------- */
.page-header { background: var(--sapObjectHeader_Background); box-shadow: var(--sapContent_HeaderShadow); }
.page-header .content { padding-top: 1rem; padding-bottom: 1.25rem; }
.breadcrumbs { display: flex; gap: .375rem; align-items: center; font-size: .875rem; color: var(--sapContent_LabelColor); margin-bottom: .75rem; flex-wrap: wrap; }
.breadcrumbs .ico { font-size: .625rem; }
.op-title-row { display: flex; gap: 1.5rem; align-items: flex-start; }
.op-title { flex: 1; min-width: 0; }
.op-title h1 { font-size: 1.5rem; }
.op-subtitle { color: var(--sapContent_LabelColor); margin-top: .25rem; }
.op-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.op-header-content { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: 1.5rem; }
.op-header-content.indent { padding-left: 6.5rem; }
.kv { display: flex; flex-direction: column; gap: .25rem; min-width: 9rem; }
.kv .label { color: var(--sapContent_LabelColor); }
.kpi { font-size: 2rem; font-weight: 400; line-height: 1; }
.kpi small { font-size: .875rem; color: var(--sapContent_LabelColor); margin-left: .25rem; }

/* Icon Tab Bar */
.tabbar { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.page-header .tabbar { margin-top: 1rem; margin-bottom: -1.25rem; }
.tabbar::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; background: none; border: 0; padding: .75rem 0 .875rem; font: inherit; font-size: .875rem; color: var(--sapTab_TextColor); cursor: pointer; display: inline-flex; align-items: center; gap: .375rem; text-decoration: none; }
.tab:hover { color: var(--sapTab_Selected_TextColor); text-decoration: none; }
.tab .count { color: var(--sapContent_LabelColor); }
.tab[aria-selected="true"] { color: var(--sapTab_Selected_TextColor); font-weight: 700; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--sapTab_Selected_Indicator_Dimension); background: var(--sapTab_Selected_TextColor); border-radius: .125rem .125rem 0 0; }

/* Info-Toolbar (aktiver Filter) */
.infobar { display: flex; align-items: center; gap: .5rem; height: 2rem; padding: 0 .5rem 0 1rem; border-radius: .5rem; background: var(--sapInfobar_Background); color: var(--sapInfobar_TextColor); margin-bottom: 1rem; }
.infobar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.infobar button { border: 0; background: transparent; color: inherit; cursor: pointer; width: 1.75rem; height: 1.75rem; border-radius: .375rem; display: grid; place-items: center; }
.infobar button:hover { background: var(--sapInfobar_Hover_Background); }

/* ---------- Sections / Cards ---------- */
.op-section { padding: 2rem 0 .5rem; }
.op-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.card { background: var(--sapTile_Background); border: .0625rem solid var(--sapTile_BorderColor); border-radius: var(--sapElement_BorderCornerRadius); box-shadow: var(--sapContent_Shadow0); overflow: hidden; }
.card-header { display: flex; align-items: center; gap: .75rem; padding: 1rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--sapTitleColor); }
.card-subtitle { font-size: .875rem; color: var(--sapContent_LabelColor); font-weight: 400; }
.card-body { padding: 0 1rem 1rem; }
.text-block { padding: 0 1rem 1rem; display: grid; gap: .75rem; }
.text-block p { max-width: 46rem; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.form-display { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 1.5rem; padding: 0 1rem 1rem; margin: 0; }
.form-display dt { color: var(--sapContent_LabelColor); }
.form-display dd { margin: 0; }
.page-content { padding-bottom: 2rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-bottom: 1rem; }
.tl-item::before { content: ""; position: absolute; left: 1.1875rem; top: 2.5rem; bottom: 0; width: .125rem; background: var(--sapList_BorderColor); }
.tl-item.last::before { display: none; }
.tl-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--sapGroup_ContentBackground); color: var(--sapSelectedColor); box-shadow: inset 0 0 0 .125rem var(--sapSelectedColor); font-size: 1rem; }
.tl-item.current .tl-icon { background: var(--sapButton_Emphasized_Background); color: var(--sapButton_Emphasized_TextColor); box-shadow: inset 0 0 0 .0625rem var(--sapButton_Emphasized_BorderColor); }
.tl-card { padding: 1rem; transition: box-shadow .3s, background .3s; }
.tl-card.highlight { background: var(--sapList_SelectionBackgroundColor); box-shadow: 0 0 0 .125rem var(--sapList_SelectionBorderColor); }
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .25rem 1rem; flex-wrap: wrap; }
.tl-card h3 { font-size: 1rem; }
.tl-org { margin-top: .125rem; }
.tl-meta { color: var(--sapContent_LabelColor); margin-top: .125rem; }
.tl-meta .ico { font-size: .8125rem; margin-right: .25rem; }
.tl-date { color: var(--sapContent_LabelColor); white-space: nowrap; }
.roles { list-style: none; margin: 1rem 0 0; padding: 0; border-top: .0625rem solid var(--sapList_BorderColor); }
.roles > li { padding: .75rem 0 .75rem 1rem; border-bottom: .0625rem solid var(--sapList_BorderColor); position: relative; }
.roles > li:last-child { border-bottom: 0; padding-bottom: 0; }
.roles > li::before { content: ""; position: absolute; left: 0; top: 1.125rem; width: .375rem; height: .375rem; border-radius: 50%; background: var(--sapSelectedColor); }
.roles h4 { font-size: .875rem; }
.skillbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.skillbar .label { color: var(--sapContent_LabelColor); margin-right: .25rem; }

/* ---------- List ---------- */
.list { list-style: none; margin: 0; padding: 0; background: var(--sapList_Background); }
.list > li + li { border-top: .0625rem solid var(--sapList_BorderColor); }
.list a, .list .li { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .5rem 1rem; color: var(--sapList_TextColor); text-decoration: none; }
.list a:hover { background: var(--sapList_Hover_Background); text-decoration: none; }
.list a[aria-current="true"] { background: var(--sapList_SelectionBackgroundColor); }
.list a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .1875rem; background: var(--sapList_SelectionBorderColor); }
.li-icon { font-size: 1.125rem; color: var(--sapContent_IconColor); width: 1.25rem; text-align: center; flex: none; }
.li-text { flex: 1; min-width: 0; }
.li-title { font-size: 1rem; display: block; }
.li-desc { color: var(--sapContent_LabelColor); font-size: .875rem; overflow-wrap: anywhere; display: block; }
.li-nav { color: var(--sapContent_LabelColor); font-size: .875rem; flex: none; }

/* ---------- Flexible Column Layout ---------- */
.fcl { display: grid; grid-template-columns: minmax(18rem, 1fr) 2fr; height: calc(100vh - 3.25rem); }
.fcl-col { overflow-y: auto; min-width: 0; }
.fcl-begin { background: var(--sapList_Background); border-right: .0625rem solid var(--sapList_BorderColor); }
.fcl-begin .col-head { padding: 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: .0625rem solid var(--sapList_BorderColor); }
.fcl-begin .col-head h1 { font-size: 1.25rem; }
.fcl.full .fcl-begin { display: none; }
.fcl.full { grid-template-columns: 1fr; }
.fcl-mid .page-header .content, .fcl-mid .content { max-width: 60rem; }
.fcl-mid .page-header .content { padding-top: 1.25rem; }
.detail-list { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: .5rem; }
.detail-list li { display: flex; gap: .5rem; align-items: flex-start; }
.detail-list .ico { color: var(--sapPositiveElementColor); font-size: .875rem; margin-top: .25rem; }
.detail-list .ico.info { color: var(--sapInformationColor); }

/* ---------- Formular-Elemente ---------- */
.form { display: grid; gap: 1rem; padding: 0 1rem 1rem; }
.field { display: grid; gap: .25rem; }
.field label { color: var(--sapContent_LabelColor); }
.field label .req { color: var(--sapField_RequiredColor); margin-left: .125rem; }
.input {
  width: 100%; min-height: 2.25rem; padding: .375rem .625rem; font: inherit; font-size: .875rem;
  color: var(--sapField_TextColor); background: var(--sapField_Background);
  border: .0625rem solid var(--sapField_BorderColor); border-radius: var(--sapField_BorderCornerRadius);
  box-shadow: var(--sapField_Shadow);
}
.input:hover { border-color: var(--sapField_Hover_BorderColor); background: var(--sapField_Hover_Background); }
.input:focus { outline: .125rem solid var(--sapContent_FocusColor); outline-offset: -.25rem; }
textarea.input { min-height: 7rem; resize: vertical; }
select.input { appearance: none; background-image: none; padding-right: 2.25rem; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap > .ico { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--sapContent_IconColor); }
.field.invalid .input { border-color: var(--sapField_InvalidColor); border-width: .125rem; background: var(--sapField_InvalidBackground); }
.field .msg { display: none; font-size: .75rem; color: var(--sapField_InvalidColor); }
.field.invalid .msg { display: block; }
.form-hint { color: var(--sapContent_LabelColor); font-size: .75rem; }

/* Switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.switch { position: relative; flex: none; width: 2.5rem; height: 1.5rem; border-radius: .75rem; border: .0625rem solid var(--sapButton_Track_BorderColor); background: var(--sapButton_Track_Background); cursor: pointer; padding: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: .125rem; left: .125rem; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--sapButton_Handle_Background); border: .0625rem solid var(--sapButton_Handle_BorderColor); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--sapButton_Track_Selected_Background); border-color: var(--sapButton_Track_Selected_BorderColor); }
.switch[aria-checked="true"]::after { transform: translateX(1rem); background: var(--sapButton_Handle_Selected_Background); border-color: var(--sapButton_Handle_Selected_BorderColor); }

/* ---------- Message Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 4rem; transform: translate(-50%, 1rem); z-index: 200;
  background: color-mix(in srgb, var(--sapTextColor) 90%, transparent); color: var(--sapBackgroundColor);
  padding: 1rem; border-radius: .5rem; max-width: calc(100% - 2rem); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--sapContent_Shadow2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Benutzermenü (Popover) ---------- */
.popover {
  position: fixed; top: 3.5rem; right: .5rem; z-index: 60; width: 20rem; max-width: calc(100vw - 1rem);
  background: var(--sapGroup_ContentBackground); color: var(--sapTextColor);
  border: .0625rem solid var(--sapGroup_ContentBorderColor); border-radius: var(--sapElement_BorderCornerRadius); box-shadow: var(--sapContent_Shadow2);
  overflow: hidden; transform-origin: top right; animation: pop-in .12s ease-out;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.um-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: 1.5rem 1rem 1rem; border-bottom: .0625rem solid var(--sapList_BorderColor); }
.um-head .avatar { width: 4rem; height: 4rem; font-size: 1.5rem; margin-bottom: .5rem; }
.um-head .name { font-size: 1rem; font-weight: 700; }
.um-head .role { color: var(--sapContent_LabelColor); }
.menu { list-style: none; margin: 0; padding: .25rem 0; }
.menu button, .menu a {
  width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 1rem;
  background: transparent; border: 0; font: inherit; font-size: .875rem; color: var(--sapList_TextColor); text-align: left; cursor: pointer; text-decoration: none;
}
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: var(--sapList_Hover_Background); text-decoration: none; outline-offset: -.125rem; }
.menu .ico { width: 1rem; font-size: 1rem; color: var(--sapContent_IconColor); text-align: center; }
.menu .grow { flex: 1; }
.menu .hint { color: var(--sapContent_LabelColor); }
.menu-sep { height: .0625rem; background: var(--sapList_BorderColor); margin: .25rem 0; }

/* ---------- Dialog ---------- */
dialog.dlg {
  padding: 0; border: .0625rem solid var(--sapGroup_ContentBorderColor); border-radius: var(--sapElement_BorderCornerRadius);
  background: var(--sapGroup_ContentBackground); color: var(--sapTextColor); box-shadow: var(--sapContent_Shadow3);
  width: min(44rem, calc(100vw - 2rem)); max-height: min(40rem, calc(100vh - 2rem));
  display: none; flex-direction: column; overflow: hidden;
}
dialog.dlg[open] { display: flex; animation: pop-in .15s ease-out; }
dialog.dlg.small { width: min(28rem, calc(100vw - 2rem)); }
dialog.dlg.large { width: min(60rem, calc(100vw - 2rem)); height: min(42rem, calc(100vh - 2rem)); }
dialog.dlg::backdrop { background: var(--sapBlockLayer_Background, #000); opacity: var(--sapBlockLayer_Opacity, .2); }
.dlg-head { flex: none; display: flex; align-items: center; gap: .5rem; min-height: 3rem; padding: 0 .5rem 0 1rem; background: var(--sapPageHeader_Background); border-bottom: .0625rem solid var(--sapPageHeader_BorderColor); }
.dlg-head h2 { flex: 1; font-size: 1rem; }
.dlg-head .btn { flex: none; }
.dlg-body { flex: 1; min-height: 0; overflow-y: auto; }
.dlg-body.pad { padding: 1rem; }
.dlg-foot { flex: none; display: flex; justify-content: flex-end; gap: .5rem; padding: .5rem 1rem; background: var(--sapPageFooter_Background); border-top: .0625rem solid var(--sapPageFooter_BorderColor); }

/* Einstellungen: Liste links, Detail rechts */
.settings { display: grid; grid-template-columns: 14rem 1fr; height: 100%; min-height: 24rem; }
.settings-nav { border-right: .0625rem solid var(--sapList_BorderColor); background: var(--sapList_Background); padding: .25rem 0; }
.settings-nav button { position: relative; width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 1rem; border: 0; background: transparent; font: inherit; font-size: .875rem; color: var(--sapList_TextColor); cursor: pointer; text-align: left; }
.settings-nav button:hover { background: var(--sapList_Hover_Background); }
.settings-nav button[aria-selected="true"] { background: var(--sapList_SelectionBackgroundColor); }
.settings-nav button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .1875rem; background: var(--sapList_SelectionBorderColor); }
.settings-nav .ico { width: 1rem; font-size: 1rem; color: var(--sapContent_IconColor); }
.settings-pane { padding: 1rem 1.5rem; overflow-y: auto; }
.settings-pane h3 { font-size: 1.125rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.settings-pane .pane-back { display: none; }
.settings-section-title { font-size: .875rem; font-weight: 700; margin: 1rem 0 .5rem; }

/* Theme-Auswahl */
.theme-list { list-style: none; margin: 0; padding: 0; border: .0625rem solid var(--sapList_BorderColor); border-radius: .5rem; overflow: hidden; }
.theme-list li + li { border-top: .0625rem solid var(--sapList_BorderColor); }
.theme-opt { width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .5rem 1rem; border: 0; background: var(--sapList_Background); font: inherit; font-size: .875rem; color: var(--sapList_TextColor); cursor: pointer; text-align: left; }
.theme-opt:hover { background: var(--sapList_Hover_Background); }
.theme-opt[aria-checked="true"] { background: var(--sapList_SelectionBackgroundColor); }
.theme-opt:disabled { opacity: var(--sapContent_DisabledOpacity); cursor: default; }
.theme-opt .check { margin-left: auto; color: var(--sapSelectedColor); visibility: hidden; }
.theme-opt[aria-checked="true"] .check { visibility: visible; }
.theme-swatch { flex: none; width: 2.5rem; height: 1.75rem; border-radius: .375rem; overflow: hidden; border: .0625rem solid var(--sapList_BorderColor); display: grid; grid-template-rows: .5rem 1fr; background: var(--p-bg); }
.theme-swatch i { display: block; background: var(--p-shell); border-bottom: .0625rem solid var(--p-border); }
.theme-swatch b { display: block; width: .875rem; height: .375rem; margin: .25rem; border-radius: .125rem; background: var(--p-brand); }

/* App Finder */
.af-toolbar { flex: none; display: flex; flex-direction: column; gap: .5rem; padding: .75rem 1rem 0; border-bottom: .0625rem solid var(--sapList_BorderColor); background: var(--sapPageHeader_Background); }
.af-search { position: relative; }
.af-search .input { padding-left: 2.25rem; }
.af-search > .ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--sapContent_IconColor); pointer-events: none; }
.af-body { padding: 1rem; }
.af-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.af-grid .tile { width: auto; height: 8.5rem; }
.af-grid .tile-icon { font-size: 1.5rem; }
.af-group-title { font-size: 1rem; margin: .5rem 0 .75rem; }
.af-group + .af-group { margin-top: 1.25rem; }

/* Info */
.about-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.about-head .shell-logo { width: 3rem; height: 3rem; font-size: 1.125rem; border-radius: .75rem; margin: 0; }

/* ---------- Footer ---------- */
.page-footer { padding: 1.5rem 0 2rem; color: var(--sapContent_LabelColor); }
.page-footer .content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; }
.page-footer nav { display: flex; gap: 1.5rem; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 2rem 0; }
.legal .card { padding: 1.5rem; }
.legal h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.legal h2 { font-size: 1rem; margin: 1.5rem 0 .25rem; }
.legal p { max-width: 46rem; }
.todo { background: #fff3b8; color: #131e29; border-radius: .25rem; padding: 0 .25rem; }

/* ---------- Responsiv (Fiori: S < 600px, M < 1024px) ---------- */
@media (max-width: 1023px) {
  .content { padding: 0 1.5rem; }
  .grid-2, .grid-2.even { grid-template-columns: 1fr; }
  .fcl { grid-template-columns: 1fr; height: auto; }
  .fcl.has-detail .fcl-begin { display: none; }
  .fcl:not(.has-detail) .fcl-mid { display: none; }
  .fcl-begin { border-right: 0; }
  .fullscreen-toggle { display: none !important; }
}
@media (min-width: 1024px) { .fcl-close-mobile { display: none !important; } }
@media (max-width: 599px) {
  .content { padding: 0 1rem; }
  .shellbar .content { padding: 0 .5rem; gap: .25rem; }
  .shell-subtitle { display: none; }
  .shell-search { flex: 1 1 auto; }
  .lp-home .shell-title { display: none; }
  .tiles { display: grid; grid-template-columns: 1fr 1fr; }
  .tile { width: auto; height: 9.5rem; padding: .75rem; }
  .tile.wide { grid-column: span 2; width: auto; }
  .tile.flat { height: 4.5rem; }
  .tile .num-value { font-size: 1.75rem; }
  .tile-icon { font-size: 1.5rem; }
  .tile.feature .feature-text { font-size: 1.0625rem; }
  .tile-title { font-size: .9375rem; }
  .op-title-row { flex-wrap: wrap; gap: 1rem; }
  .avatar.xl { width: 4rem; height: 4rem; font-size: 1.5rem; }
  .op-title { flex-basis: calc(100% - 5rem); }
  .op-actions { width: 100%; }
  .op-actions .btn { flex: 1; }
  .op-actions .btn.icon-only { flex: none; }
  .op-header-content.indent { padding-left: 0; }
  .op-header-content { gap: 1rem 2rem; }
  .form-display { grid-template-columns: 1fr; gap: .125rem; }
  .form-display dd { margin-bottom: .625rem; }
  .tl-item { grid-template-columns: 2rem 1fr; gap: .75rem; }
  .tl-icon { width: 2rem; height: 2rem; font-size: .875rem; }
  .tl-item::before { left: .9375rem; top: 2rem; }
  .tabbar { gap: 1.25rem; }
  /* Dialoge auf dem Handy bildschirmfüllend (wie Fiori "stretch on phone") */
  dialog.dlg, dialog.dlg.small, dialog.dlg.large { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .settings { grid-template-columns: 1fr; }
  .settings.show-pane .settings-nav { display: none; }
  .settings:not(.show-pane) .settings-pane { display: none; }
  .settings-nav { border-right: 0; }
  .settings-pane { padding: 1rem; }
  .settings-pane .pane-back { display: inline-flex; }
  .af-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
.shell-btn.text { width: auto; padding: 0 .625rem; display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; font-size: .875rem; }

/* ---------- Profilfoto im Avatar (freigestellt, Hintergrund = Fiori-Avatarfarbe) ---------- */
.avatar.photo, .shell-avatar.photo { overflow: hidden; padding: 0; }
.avatar.photo img, .shell-avatar.photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.35); transform-origin: 50% 12%;
}

/* ---------- Shell-Suche: Vorschlagsliste (Fiori Launchpad) ---------- */
.shellbar .content { position: relative; }
.shell-search-toggle { display: none; }
.search-pop {
  position: fixed; z-index: 70; max-height: min(28rem, calc(100vh - 5rem)); overflow-y: auto; padding: .25rem 0;
  background: var(--sapGroup_ContentBackground); color: var(--sapTextColor);
  border: .0625rem solid var(--sapGroup_ContentBorderColor); border-radius: var(--sapElement_BorderCornerRadius);
  box-shadow: var(--sapContent_Shadow2); animation: pop-in .1s ease-out;
}
.sp-group { padding: .5rem 1rem .25rem; font-size: .875rem; font-weight: 700; color: var(--sapContent_LabelColor); }
.sp-item {
  display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .375rem 1rem;
  color: var(--sapList_TextColor); text-decoration: none; cursor: pointer;
}
.sp-item:hover { text-decoration: none; }
.sp-item[aria-selected="true"] { background: var(--sapList_Hover_Background); box-shadow: inset .1875rem 0 0 var(--sapList_SelectionBorderColor); }
.sp-ico { flex: none; width: 2rem; height: 2rem; border-radius: .5rem; display: grid; place-items: center; background: var(--sapAvatar_6_Background); color: var(--sapAvatar_6_TextColor); border: .0625rem solid var(--sapAvatar_6_BorderColor); }
.sp-ico .ico { font-size: 1rem; }
.sp-text { flex: 1; min-width: 0; }
.sp-title, .sp-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-title { font-size: .875rem; }
.sp-sub { font-size: .75rem; color: var(--sapContent_LabelColor); }
.sp-cat { flex: none; font-size: .75rem; color: var(--sapContent_LabelColor); }
.sp-ext { flex: none; font-size: .75rem; color: var(--sapContent_IconColor); }
.search-pop .hl { font-weight: 700; color: var(--sapTextColor); }
.sp-empty { padding: .5rem 1rem 1rem; color: var(--sapContent_LabelColor); }
.sp-more {
  width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 1rem; margin-top: .25rem;
  border: 0; border-top: .0625rem solid var(--sapList_BorderColor); background: transparent;
  font: inherit; font-size: .875rem; color: var(--sapLinkColor); cursor: pointer; text-align: left;
}
.sp-more:hover { background: var(--sapList_Hover_Background); }
.sp-more .ico { width: 2rem; text-align: center; }

@media (max-width: 599px) {
  /* Unterseiten: Lupe in der Shellbar, Suche klappt über die ganze Leiste auf */
  body:not(.lp-home) .shell-search { display: none; }
  body:not(.lp-home) .shell-search-toggle { display: grid; }
  .shellbar.search-open .shell-search { display: block; position: absolute; left: .5rem; right: .5rem; top: .5rem; z-index: 3; }
  .sp-cat { display: none; }
}

/* ---------- Suchergebnisseite ---------- */
.result-list .sp-ico { width: 2.5rem; height: 2.5rem; }
.result-list .sp-ico .ico { font-size: 1.125rem; }
.result-list .hl { font-weight: 700; }
.result-cat { flex: none; font-size: .875rem; color: var(--sapContent_LabelColor); }
.sp-more { text-decoration: none; }
.sp-more:hover { text-decoration: none; }
@media (max-width: 599px) { .result-cat { display: none; } }

/* ---------- Space-Leiste (Spaces & Pages) ---------- */
.spacebar { background: var(--sapShell_Navigation_Background); box-shadow: var(--sapContent_HeaderShadow); }
.spacebar .content { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; max-width: none; padding: 0 1rem; }
.spacebar .content::-webkit-scrollbar { display: none; }
.space-tab {
  position: relative; flex: none; display: flex; align-items: center; height: 2.75rem; padding: 0 .75rem;
  color: var(--sapShell_Navigation_TextColor); font-size: .875rem; text-decoration: none; border-radius: .5rem .5rem 0 0;
}
.space-tab:hover { background: var(--sapShell_Navigation_Hover_Background); text-decoration: none; }
.space-tab[aria-selected="true"] { color: var(--sapShell_Navigation_Selected_TextColor); font-weight: 700; }
.space-tab[aria-selected="true"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 0; height: .1875rem; border-radius: .125rem .125rem 0 0; background: var(--sapShell_Navigation_SelectedColor); }

/* ---------- List Report: Filterleiste + Tabelle ---------- */
.variant { display: inline-flex; align-items: center; gap: .25rem; color: var(--sapLinkColor); font-weight: 600; }
.variant .ico { font-size: .75rem; }
.filterbar { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem 1rem; align-items: end; margin-top: 1rem; }
.filterbar .af-search .input { padding-left: 2.25rem; }
.filterbar-actions { display: flex; justify-content: flex-end; }
.tbl-toolbar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: .0625rem solid var(--sapList_BorderColor); }
.tbl-toolbar .card-title { white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tbl th {
  text-align: left; font-weight: 400; color: var(--sapList_HeaderTextColor); background: var(--sapList_HeaderBackground);
  padding: .625rem 1rem; border-bottom: .0625rem solid var(--sapList_BorderColor); white-space: nowrap;
}
.tbl td { padding: .625rem 1rem; border-bottom: .0625rem solid var(--sapList_BorderColor); color: var(--sapList_TextColor); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .col-sel { width: 2.75rem; padding-right: 0; }
.tbl .col-nav { width: 2.5rem; text-align: right; color: var(--sapContent_IconColor); }
.tbl input[type="checkbox"] { width: 1.125rem; height: 1.125rem; accent-color: var(--sapSelectedColor); cursor: pointer; margin: 0; vertical-align: middle; }
.tbl tr.row { cursor: pointer; }
.tbl tr.row:hover td { background: var(--sapList_Hover_Background); }
.tbl tr.row.selected td { background: var(--sapList_SelectionBackgroundColor); }
.tbl tr.row:focus-visible { outline: .125rem solid var(--sapContent_FocusColor); outline-offset: -.125rem; }
.tbl .no-data td { text-align: center; color: var(--sapContent_LabelColor); padding: 2rem 1rem; }
.link-like { color: var(--sapLinkColor); }
.cell-person { display: inline-flex; align-items: center; gap: .5rem; }
.avatar.xs { width: 1.75rem; height: 1.75rem; }
.btn:disabled, .btn:disabled:hover { opacity: var(--sapContent_DisabledOpacity); cursor: default; background: var(--sapButton_Lite_Background); border-color: var(--sapButton_Lite_BorderColor); color: var(--sapButton_Lite_TextColor); }

/* ---------- Message Box ---------- */
dialog.msgbox .dlg-head { gap: .5rem; }
dialog.msgbox .mb-icon { font-size: 1rem; }
dialog.msgbox.error .dlg-head { box-shadow: inset 0 .1875rem 0 var(--sapErrorBorderColor); }
dialog.msgbox.error .mb-icon { color: var(--sapNegativeElementColor); }
dialog.msgbox.warning .dlg-head { box-shadow: inset 0 .1875rem 0 var(--sapWarningBorderColor); }
dialog.msgbox.warning .mb-icon { color: var(--sapCriticalElementColor); }
dialog.msgbox.information .mb-icon { color: var(--sapInformativeElementColor); }
.mb-text { line-height: 1.5; }
.mb-link { display: inline-block; margin-top: .75rem; padding: 0; border: 0; background: none; font: inherit; color: var(--sapLinkColor); cursor: pointer; }
.mb-link:hover { text-decoration: underline; }
.mb-details { display: grid; grid-template-columns: max-content 1fr; gap: .375rem 1rem; margin: .75rem 0 0; padding: .75rem; border-radius: .5rem; background: var(--sapBackgroundColor); font-size: .8125rem; }
.mb-details dt { color: var(--sapContent_LabelColor); }
.mb-details dd { margin: 0; font-family: "72Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

@media (max-width: 1023px) { .tbl .hide-m { display: none; } }
@media (max-width: 599px) {
  .tbl .hide-s { display: none; }
  .tbl th, .tbl td { padding: .625rem .5rem; }
  .filterbar { grid-template-columns: 1fr; }
  .spacebar .content { padding: 0 .5rem; }
  /* Message Box auf dem Handy nicht bildschirmfüllend, sondern als Dialog */
  dialog.dlg.msgbox { width: calc(100vw - 2rem); height: fit-content; max-height: calc(100dvh - 2rem); margin: auto; border-radius: var(--sapElement_BorderCornerRadius); border: .0625rem solid var(--sapGroup_ContentBorderColor); }
  .mb-details { grid-template-columns: 1fr; gap: 0; }
  .mb-details dd { margin-bottom: .5rem; }
}
dialog.dlg.msgbox { width: min(34rem, calc(100vw - 2rem)); }
.mb-details dd { overflow-wrap: normal; word-break: normal; }
.mb-details dd.plain { font-family: inherit; }
.tile-footer > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-footer > .ico, .tile-footer > .status { flex: none; }

/* ---------- Objektstatus-Varianten (sap.m.ObjectStatus, inverted) ---------- */
.status.neutral { color: var(--sapNeutralTextColor); background: var(--sapNeutralBackground); border-color: var(--sapNeutralBorderColor); }
.status.negative { color: var(--sapNegativeTextColor); background: var(--sapErrorBackground); border-color: var(--sapErrorBorderColor); }
/* nicht invertiert: farbiger Text + Icon */
.ostat { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: var(--sapTextColor); white-space: nowrap; }
.ostat .ico { font-size: .875rem; }
.ostat.negative { color: var(--sapNegativeTextColor); }

/* ---------- Message Strip (Information) ---------- */
.msgstrip {
  display: flex; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; padding: .5rem 1rem;
  border-radius: var(--sapElement_BorderCornerRadius); border: .0625rem solid var(--sapInformationBorderColor);
  background: var(--sapInformationBackground); color: var(--sapTextColor);
}
.msgstrip .ico { color: var(--sapInformativeElementColor); margin-top: .1875rem; }

/* ---------- Tabellen-Ergänzungen ---------- */
.tbl .num { text-align: right; white-space: nowrap; }
.cell-2 { display: flex; flex-direction: column; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: .8125rem; color: var(--sapContent_LabelColor); }
.tbl tr.sum td { font-weight: 700; border-top: .125rem solid var(--sapList_BorderColor); }

/* ---------- Belegfluss (vereinfachter Process Flow) ---------- */
.pflow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.pflow-node {
  display: flex; flex-direction: column; gap: .25rem; min-width: 10rem; padding: .75rem 1rem;
  border: .0625rem solid var(--sapList_BorderColor); border-radius: .5rem; background: var(--sapList_Background);
}
.pflow-node.current { border-color: var(--sapList_SelectionBorderColor); box-shadow: inset 0 0 0 .0625rem var(--sapList_SelectionBorderColor); background: var(--sapList_SelectionBackgroundColor); }
.pflow-type { font-size: .75rem; color: var(--sapContent_LabelColor); }
.pflow-id { font-weight: 700; }
.pflow-node .status { align-self: flex-start; }
.pflow-arrow { color: var(--sapContent_IconColor); }
@media (max-width: 599px) {
  .pflow { flex-direction: column; align-items: stretch; }
  .pflow-arrow { align-self: center; transform: rotate(90deg); }
}

/* ---------- Absprung-Links zwischen Apps ---------- */
a.xnav { color: var(--sapLinkColor); font-weight: 600; text-decoration: none; }
a.xnav:hover { text-decoration: underline; }
.tbl tr.row a.xnav { position: relative; z-index: 1; }

/* ---------- Shell: Glocke + Hilfe ---------- */
.shell-bell { position: relative; }
.shell-badge {
  position: absolute; top: .125rem; right: .125rem; min-width: 1rem; height: 1rem; padding: 0 .25rem;
  border-radius: .5rem; display: grid; place-items: center; font-size: .625rem; font-weight: 700; line-height: 1;
  background: var(--sapContent_BadgeBackground); color: var(--sapContent_BadgeTextColor);
  box-shadow: 0 0 0 .0625rem var(--sapContent_BadgeBorderColor); pointer-events: none;
}
.popover.shell-pop { top: 3.5rem; right: auto; }
.popover.notif-pop { width: min(24rem, calc(100vw - 1rem)); max-height: min(34rem, calc(100vh - 5rem)); display: flex; flex-direction: column; }
.popover.help-pop { width: min(17rem, calc(100vw - 1rem)); }
.popover.shell-pop[hidden] { display: none; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .5rem .5rem 1rem; border-bottom: .0625rem solid var(--sapList_BorderColor); }
.pop-head h2 { font-size: 1rem; }
.pop-empty { padding: 2rem 1rem; text-align: center; color: var(--sapContent_LabelColor); }
.pop-empty > .ico { font-size: 2rem; color: var(--sapContent_NonInteractiveIconColor); display: block; margin: 0 auto .5rem; }

.notif-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.notif { position: relative; display: flex; align-items: flex-start; border-bottom: .0625rem solid var(--sapList_BorderColor); }
.notif:last-child { border-bottom: 0; }
.notif.high::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .1875rem; background: var(--sapNegativeElementColor); }
.notif-link { flex: 1; min-width: 0; display: flex; gap: .75rem; padding: .75rem .25rem .75rem 1rem; color: var(--sapList_TextColor); text-decoration: none; }
.notif-link:hover { background: var(--sapList_Hover_Background); text-decoration: none; }
.notif-ico { width: 2rem; height: 2rem; font-size: .875rem; }
.notif-text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.notif-title { font-size: .875rem; display: flex; align-items: center; gap: .25rem; }
.notif.unread .notif-title { font-weight: 700; }
.notif.unread .notif-link::after { content: ""; flex: none; align-self: center; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sapSelectedColor); margin-left: auto; }
.notif-prio .ico { font-size: .75rem; }
.notif-desc { font-size: .8125rem; color: var(--sapTextColor); }
.notif-meta { font-size: .75rem; color: var(--sapContent_LabelColor); }
.notif-close { margin: .5rem .5rem 0 0; flex: none; }

/* Hilfe-Dialoge */
.gs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gs-list li { display: flex; gap: .75rem; align-items: flex-start; }
.gs-text { color: var(--sapContent_LabelColor); margin-top: .125rem; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 1rem; margin: 0; align-items: center; }
.keys dd { margin: 0; }
kbd {
  display: inline-block; min-width: 2rem; padding: .125rem .5rem; text-align: center; font: inherit; font-size: .8125rem; font-weight: 600;
  border: .0625rem solid var(--sapButton_BorderColor); border-bottom-width: .1875rem; border-radius: .375rem;
  background: var(--sapButton_Background); color: var(--sapTextColor);
}
@media (max-width: 599px) {
  .shellbar .shell-btn { width: 2rem; }
}
.pop-head { flex-wrap: wrap; }
.pop-head h2 { white-space: nowrap; }
.pop-head .btn { margin-left: auto; }

/* ---------- Markenhinweis im Footer ---------- */
.page-footer .trademark { flex-basis: 100%; margin: .25rem 0 0; font-size: .75rem; line-height: 1.4; color: var(--sapContent_LabelColor); max-width: 60rem; }
.fcl-footer { padding: 1.5rem 0 1rem; border-top: .0625rem solid var(--sapList_BorderColor); margin-top: 1rem; }
.fcl-footer .content { padding: 0 1rem; }
.fcl-begin { display: flex; flex-direction: column; }
.fcl-begin .list { flex: none; }
.fcl-begin .fcl-footer { margin-top: auto; }
.fcl-footer-mobile { display: none; }
@media (max-width: 1023px) { .fcl-footer-mobile { display: block; } }
