/* SAPify Portal: Shell-Leiste und Kacheln im Stil des SAP Fiori Launchpads */
:root { --shell-bg: #354a5f; --shell-fg: #ffffff; --kachel-bg: #ffffff; --kachel-rand: #e5e5e5; }
[data-theme="dark"] { --shell-bg: #1d2d3e; --kachel-bg: #20242a; --kachel-rand: #3a4048; }

.shell { background: var(--shell-bg); color: var(--shell-fg); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.shell-inner { display: flex; align-items: center; gap: 16px; height: 52px; }
.shell-home { display: flex; align-items: center; }
.shell-logo { height: 26px; width: auto; display: block; }
.shell-titel { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.shell-nav { display: flex; gap: 2px; margin-left: 12px; }
.shell-nav a { color: var(--shell-fg); opacity: .85; text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 6px; }
.shell-nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.shell-nav a.aktiv { opacity: 1; background: rgba(255,255,255,.18); font-weight: 600; }
.shell-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.shell-btn { color: var(--shell-fg); }
.shell-btn:hover { background: rgba(255,255,255,.12); }

.avatar, .avatar-knopf { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; background: #5b738b; overflow: hidden; flex-shrink: 0; }
.avatar-knopf { border: 2px solid rgba(255,255,255,.7); cursor: pointer; padding: 0; }
.avatar img, .avatar-knopf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.gross { width: 96px; height: 96px; font-size: 30px; }
.avatar.klein { width: 28px; height: 28px; font-size: 11px; }

.menue { position: absolute; right: 0; top: 46px; min-width: 260px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.3); padding: 6px; z-index: 60; }
.menue-kopf { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menue-kopf b { display: block; }
.menue-kopf span { font-size: 12.5px; color: var(--text-muted); }
.menue-eintrag { display: block; width: 100%; text-align: left; padding: 9px 10px; border: none; background: none; color: var(--text); font: inherit; font-size: 14px; border-radius: 6px; text-decoration: none; cursor: pointer; }
.menue-eintrag:hover { background: var(--surface-hover); }

/* Launchpad */
.begruessung { font-size: 22px; font-weight: 300; margin: 0 0 4px; color: var(--sap-dark); }
/* Gruppen stehen nebeneinander und brechen erst um, wenn die Breite nicht reicht */
.gruppen { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: flex-start; }
.gruppe-titel { font-size: 16px; font-weight: 600; color: var(--sap-dark); margin: 26px 0 12px; }
.gruppe .kacheln { flex-wrap: nowrap; }
.kacheln { display: flex; flex-wrap: wrap; gap: 16px; }
.kachel { width: 176px; height: 176px; background: var(--kachel-bg); border: 1px solid var(--kachel-rand); border-radius: 12px; box-shadow: 0 0 2px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.08);
  display: flex; flex-direction: column; padding: 16px; text-decoration: none; color: var(--text); position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.kachel:hover { box-shadow: 0 4px 16px rgba(0,0,0,.18); transform: translateY(-1px); }
.kachel:focus-visible { outline: 2px solid var(--sap-blue); outline-offset: 2px; }
.kachel::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--kachel-farbe, var(--sap-blue)); }
.kachel-titel { font-size: 15px; font-weight: 600; line-height: 1.25; }
.kachel-text { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.35; }
.kachel-fuss { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.kachel-symbol { font-size: 30px; line-height: 1; }
.kachel-rolle { font-size: 11px; color: var(--text-muted); text-align: right; }
.kachel.ohne-sso .kachel-rolle::after { content: " ↗"; }
.leer { padding: 30px; text-align: center; color: var(--text-muted); }

/* Verwaltung */
.profil-kopf { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.rechte-tabelle td, .rechte-tabelle th { padding: 6px 8px; }
.rechte-tabelle select { min-width: 190px; }
.chip { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; background: var(--surface-hover); border: 1px solid var(--border); margin: 2px 4px 2px 0; white-space: nowrap; }
.chip.admin { background: rgba(10,110,209,.15); color: var(--sap-blue); border-color: transparent; font-weight: 600; }
.mfa-qr { display: flex; justify-content: center; margin: 10px 0; }
.mfa-qr svg { background: #fff; padding: 6px; border-radius: 6px; }
.codes-liste { font-family: Consolas, monospace; font-size: 14px; columns: 2; margin: 8px 0 14px; padding-left: 22px; }
.farbfeld { width: 54px; padding: 2px; height: 36px; }
.zelle-person { display: flex; align-items: center; gap: 10px; }
.sub.plain { font-family: inherit; }
@media (max-width: 700px) {
  .shell-titel, .shell-nav a span { display: none; }
  .gruppe { width: 100%; }
  .gruppe .kacheln { flex-wrap: wrap; }
  .kachel { width: calc(50% - 8px); height: 160px; }
}

/* Das Logo hat helle Schrift (Fassung für dunklen Grund): Kopf- und Fusszeile sind deshalb in
   beiden Designs dunkelblau. */
footer.site-footer { background: var(--shell-bg); color: rgba(255,255,255,.75); border-top: none; }
.fuss-logo { display: inline-flex; align-items: center; }
.fuss-logo img { height: 22px; width: auto; display: block; }
