/* =========================================================================
   BRE · Mitarbeiter-Hub — Enterprise (hell, clean)
   App-Chrome mit Topbar, links-bündige Kacheln mit echten Bereichs-Icons,
   Akzentfarbe (--hub-accent) nur als Icon-Tönung + Hover. HTML aus PHP.
   ========================================================================= */

.bre-hub-screen{
  position:fixed; inset:0; z-index:99990; overflow:auto;
  display:flex; flex-direction:column;
  background:#f6f7f9; color:var(--bre-gray-900);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;
  -webkit-font-smoothing:antialiased; box-sizing:border-box;
}
.bre-hub-screen *{box-sizing:border-box}

/* --- Topbar --- */
.bre-hub-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 28px; background:#fff; border-bottom:1px solid #e8eaee; flex-shrink:0;
}
.bre-hub-brand{display:flex; align-items:center; gap:11px}
.bre-hub-mark{
  width:28px; height:28px; border-radius:8px; background:var(--bre-gray-900); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700;
}
.bre-hub-wm{font-size:14.5px; font-weight:700; letter-spacing:-.2px; color:var(--bre-gray-900)}
.bre-hub-wm span{color:var(--bre-gray-400); font-weight:500}
.bre-hub-user{display:flex; align-items:center; gap:12px}
.bre-hub-uname{font-size:13px; color:var(--bre-gray-600)}
.bre-hub-av{
  width:30px; height:30px; border-radius:50%; background:var(--bre-gray-100); border:1px solid var(--bre-gray-200);
  display:flex; align-items:center; justify-content:center; font-size:11.5px; font-weight:700; color:var(--bre-gray-600);
}
.bre-hub-logout{
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:9px; color:var(--bre-gray-400); border:1px solid transparent; text-decoration:none; transition:.15s;
}
.bre-hub-logout:hover{background:var(--bre-gray-100); color:var(--bre-gray-900)}

/* --- Inhalt --- */
.bre-hub-wrap, .bre-hub-empty{
  flex:1; display:flex; flex-direction:column; justify-content:center;
  width:100%; max-width:1000px; margin:0 auto; padding:48px 24px;
}
.bre-hub-head{margin-bottom:30px}
.bre-hub-eyebrow{font-size:12px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; color:var(--bre-gray-400); margin-bottom:8px}
.bre-hub-greet{font-size:28px; font-weight:700; letter-spacing:-.5px; color:var(--bre-gray-900); line-height:1.15}
.bre-hub-sub{font-size:15px; color:var(--bre-gray-500); margin-top:6px}

.bre-hub-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
@media(max-width:820px){.bre-hub-grid{grid-template-columns:1fr}}

.bre-hub-card{
  --hub-accent:var(--bre-gray-500);
  display:flex; flex-direction:column; align-items:flex-start; text-align:left;
  background:#fff; border:1px solid #e8eaee; border-radius:16px; padding:22px;
  color:var(--bre-gray-900); text-decoration:none; min-height:100%;
  transition:transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s;
}
.bre-hub-card:hover{transform:translateY(-4px); border-color:#cfd6e0; box-shadow:0 14px 34px rgba(15,23,42,.10)}

.bre-hub-toprow{display:flex; align-items:flex-start; justify-content:space-between; width:100%; margin-bottom:16px}
.bre-hub-ic{
  width:48px; height:48px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  background:#f4f6f9; border:1px solid #e8eaee; color:var(--hub-accent);
  transition:transform .2s, border-color .2s;
}
.bre-hub-card:hover .bre-hub-ic{transform:scale(1.05); border-color:color-mix(in srgb, var(--hub-accent) 35%, #e8eaee)}
.bre-hub-ic svg{width:28px; height:28px}
.bre-hub-ic .bre-emoji-icon{font-size:28px; line-height:1; display:block}
.bre-hub-kbd{
  font-size:11px; font-weight:600; color:var(--bre-gray-400); border:1px solid #e8eaee; border-radius:6px;
  width:22px; height:22px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}

.bre-hub-card h2{font-size:17px; font-weight:700; letter-spacing:-.2px; margin:0 0 6px; color:var(--bre-gray-900)}
.bre-hub-card p{font-size:13px; color:var(--bre-gray-500); line-height:1.55; margin:0 0 18px}
.bre-hub-go{
  display:inline-flex; align-items:center; gap:7px; margin-top:auto;
  font-size:13px; font-weight:600; color:var(--bre-gray-400); transition:color .2s, gap .2s;
}
.bre-hub-card:hover .bre-hub-go{color:var(--hub-accent); gap:10px}

/* --- Leerer Zustand --- */
.bre-hub-empty{text-align:center; align-items:center}
.bre-hub-empty h2{font-size:24px; font-weight:700; color:var(--bre-gray-900); margin:0}
.bre-hub-empty p{color:var(--bre-gray-500); max-width:440px; margin:10px auto 0; line-height:1.6}

/* Niedrige Höhe (Tablet quer): oben ausrichten. */
@media(max-height:760px){
  .bre-hub-wrap{justify-content:flex-start; padding-top:34px}
  .bre-hub-greet{font-size:24px}
}
@media (prefers-reduced-motion:reduce){ .bre-hub-card, .bre-hub-ic{transition:none} }
